/* =========================================================
   Baya Aduanas — estilos
   Paleta tomada de baya.com.pe
   ========================================================= */

:root {
  --navy: #002B72;
  --navy-deep: #001E52;
  --night: 0, 18, 52;           /* azul noche para capas (rgb) */
  --navy-line: #2A4F8F;
  --navy-muted: #5C7DB3;
  --cyan: #00B5F8;
  --cyan-dark: #0070A0;
  --cyan-tint: #E3F6FE;
  --orange: #E8890C;
  --gray-bg: #EAEAEA;
  --line: #D5D8DD;
  --text: #4A4A4A;
  --muted: #666666;
  --on-dark: #E1E8F4;
  --on-dark-muted: #C2CFE6;
  --white: #FFFFFF;
  --input-border: #8A8D94;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --container: 1240px;
  --shadow-pop: 0 16px 40px rgba(0, 30, 82, .22);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: var(--cyan-dark); }
a:hover { color: var(--navy); }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--cyan); color: var(--navy); padding: 10px 16px; border-radius: var(--radius-md);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ---------- Íconos ---------- */
.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon--lg { width: 32px; height: 32px; stroke-width: 1.5; color: var(--cyan-dark); }
.icon--xl { width: 36px; height: 36px; stroke-width: 1.5; color: var(--cyan-dark); }

.icon-box {
  width: 56px; height: 56px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: var(--navy); color: var(--cyan);
}
.icon-box .icon { width: 28px; height: 28px; }
.title-with-icon > .icon-box { position: relative; }
.title-with-icon > .icon-box::after {
  content: ""; position: absolute; top: -4px; right: -4px;
  width: 9px; height: 9px; border-radius: 2px; background: var(--orange);
}
.icon-box--cyan { background: var(--cyan); color: var(--navy); width: 48px; height: 48px; }
.icon-box--cyan .icon { width: 26px; height: 26px; }
.icon-box--outline { background: transparent; border: 1px solid rgba(255,255,255,.6); color: var(--cyan); width: 44px; height: 44px; }
.icon-box--outline .icon { width: 24px; height: 24px; }
.icon-box--line { background: transparent; border: 1px solid var(--cyan); color: var(--cyan); width: 64px; height: 64px; }
.icon-box--line .icon { width: 32px; height: 32px; stroke-width: 1.5; }
.icon-box--soft { background: var(--cyan-tint); color: var(--cyan-dark); width: 44px; height: 44px; }
.icon-box--soft .icon { width: 24px; height: 24px; }

/* ---------- Tipografía ---------- */
.h2 {
  font-family: var(--font-display);
  font-weight: 700; font-size: clamp(36px, 4vw, 48px); line-height: 1;
  text-transform: uppercase;
}
.h2--light { color: var(--white); }
.eyebrow {
  display: inline-flex; gap: 10px; align-items: center;
  font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .8px;
  text-transform: uppercase; color: var(--muted);
}
.eyebrow--light { color: var(--on-dark-muted); }
.lead { font-size: 18px; line-height: 28px; color: var(--text); margin-top: 20px; }
.muted { color: var(--muted); max-width: 420px; }
.mono { font-family: var(--font-mono); font-size: 12px; color: var(--cyan-dark); }
.text-link { display: inline-block; margin-top: 32px; font-weight: 600; }

.title-with-icon { display: flex; gap: 20px; align-items: center; }
.title-with-icon--small { margin-bottom: 20px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 12px 20px; border-radius: var(--radius-md);
  font: 600 16px/1 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: filter .2s, background .2s, color .2s;
}
.btn--lg { min-height: 48px; padding: 14px 24px; }
/* Texto blanco sobre azul accesible (5.4:1). El celeste #00B5F8 con blanco solo da 2.3:1 */
.btn--primary { background: var(--cyan-dark); color: var(--white); }
.btn--primary:hover { background: #005F88; color: var(--white); }
.btn--ghost { color: var(--white); border-color: rgba(255,255,255,.55); background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.08); color: var(--white); }
.btn--line { background: var(--white); color: var(--navy); border-color: rgba(0, 43, 114, .35); }
.btn--line:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn:disabled { opacity: .65; cursor: wait; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Barra superior ---------- */
.topbar { background: var(--navy-deep); color: var(--on-dark-muted); font-size: 14px; }
.topbar a { color: var(--white); text-decoration: none; }
.topbar a:hover { color: var(--cyan); }
.topbar__inner {
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between;
  padding-top: 8px; padding-bottom: 8px;
}
.topbar__info { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.topbar__info li, .topbar__info a { display: inline-flex; gap: 8px; align-items: center; }
.topbar__info .icon { width: 16px; height: 16px; color: var(--cyan); }
.topbar__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.topbar__btn { border: 1px solid var(--navy-muted); padding: 6px 14px; border-radius: var(--radius-sm); }
.topbar__btn--solid { background: var(--cyan); border-color: var(--cyan); color: var(--navy) !important; font-weight: 600; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.header.is-scrolled { box-shadow: 0 4px 20px rgba(0, 30, 82, .08); }
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 32px;
  padding-top: 14px; padding-bottom: 14px;
}
.header__end { display: flex; align-items: center; gap: 22px; min-width: 0; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo__img { display: block; height: 56px; width: auto; }
.logo--light .logo__img { height: 52px; }

.nav { display: flex; align-items: center; gap: 26px; font-weight: 500; }
.nav a:not(.btn) { color: var(--navy); text-decoration: none; position: relative; }
.nav a:not(.btn):hover { color: var(--cyan-dark); }

.lang {
  display: inline-flex; align-items: center; flex: none; padding: 3px;
  border: 1px solid rgba(0, 43, 114, .18); border-radius: 999px; background: var(--white);
}
.lang a {
  min-width: 34px; padding: 6px 8px; border-radius: 999px; text-align: center;
  font-size: 13px; font-weight: 700; letter-spacing: .04em; line-height: 1;
  color: var(--navy); text-decoration: none;
}
.lang a.is-current { background: var(--navy); color: var(--white); }
.lang a:hover:not(.is-current) { color: var(--cyan-dark); }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 10px;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius-md); cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero con video ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--white); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Capa azul noche: tono uniforme + refuerzo a la izquierda para el texto */
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(var(--night), .85) 0%, rgba(var(--night), .45) 55%, rgba(var(--night), .10) 100%),
    rgba(var(--night), .62);
}
.hero__inner { position: relative; padding-top: 128px; padding-bottom: 136px; }
.hero__content { max-width: 760px; }
.hero .eyebrow { color: var(--cyan); margin-bottom: 20px; }
.hero .eyebrow .icon { width: 18px; height: 18px; }
.hero__title {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(46px, 6vw, 84px); line-height: .95; letter-spacing: -.5px;
}
.hero__title span { color: var(--cyan); }
.hero__lead { margin: 28px 0 36px; max-width: 560px; font-size: 18px; line-height: 28px; color: var(--on-dark); }

/* ---------- Cifras ---------- */
.stats { border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { display: flex; gap: 16px; align-items: center; padding: 28px 24px; border-right: 1px solid var(--line); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; padding-right: 0; }
.stat strong {
  display: block; font-family: var(--font-display); font-size: 40px; line-height: 1;
  font-weight: 700; text-transform: uppercase;
}
.stat span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section--gray { background: var(--gray-bg); }
.section--tight { padding: 80px 0; }
.section-head { margin-bottom: 40px; }
.section-head--split { display: flex; flex-wrap: wrap; gap: 16px 48px; align-items: flex-end; justify-content: space-between; }
.section-head--split .title-with-icon { align-items: flex-start; max-width: 680px; }
.section-head .eyebrow { margin-bottom: 4px; }

/* ---------- Proceso (línea de tiempo) ---------- */
.process { background: #F5F8FC; }
.process .section-head { margin-bottom: 52px; align-items: center; }
.process .section-head--split .title-with-icon { align-items: flex-start; gap: 16px; max-width: 740px; }
.process .icon-box { margin-top: 2px; }
.process .icon-box { width: 52px; height: 52px; border-radius: 12px; }
.process .icon-box .icon { width: 26px; height: 26px; color: var(--cyan); }
.process .eyebrow { color: #6D86A6; letter-spacing: 1.4px; margin-bottom: 6px; }
.process .h2 { max-width: 640px; font-size: clamp(40px, 4.4vw, 52px); letter-spacing: .2px; }
.process__lede {
  max-width: 280px; margin: 0;
  font-size: 15px; line-height: 1.55; color: #8B95A5;
}
.timeline {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px;
}
.tl-step { position: relative; display: flex; flex-direction: column; }
.tl-step__marker { position: relative; display: flex; align-items: center; height: 64px; }
.tl-step__icon {
  position: relative; z-index: 1;
  width: 64px; height: 64px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy); color: var(--white);
  box-shadow: 0 0 0 8px #F5F8FC;
}
.tl-step__icon .icon { width: 28px; height: 28px; stroke-width: 1.6; }
.tl-step--last .tl-step__icon { background: var(--cyan); color: var(--navy); }
.tl-step:not(:last-child) .tl-step__marker::after {
  content: ""; position: absolute; top: 50%; left: 72px; right: -30px; height: 2px;
  transform: translateY(-50%);
  background-image: repeating-linear-gradient(90deg, #3EC4F8 0 8px, transparent 8px 16px);
}
.tl-step__card {
  position: relative; overflow: hidden; flex: 1;
  display: flex; flex-direction: column;
  margin-top: 28px; padding: 22px 22px 20px;
  background: var(--white); border: 1px solid rgba(0, 43, 114, .06); border-radius: 16px;
  box-shadow: 0 10px 28px rgba(16, 42, 84, .06);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.tl-step__card:hover { border-color: rgba(0, 181, 248, .45); box-shadow: 0 16px 36px rgba(0, 30, 82, .10); transform: translateY(-4px); }
.tl-step__num {
  position: absolute; top: -8px; right: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 92px; line-height: 1;
  color: #F2F5F9; pointer-events: none;
}
.tl-step__card > *:not(.tl-step__num) { position: relative; }
.tl-step__card .mono { color: var(--cyan-dark); letter-spacing: .6px; }
.tl-step__card h3 { margin: 10px 0 8px; max-width: 14ch; font-size: 20px; line-height: 26px; font-weight: 700; }
.tl-step__card p { color: #5E6878; font-size: 14.5px; line-height: 1.45; }

.chips { list-style: none; margin: auto 0 0; padding: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; line-height: 18px; font-weight: 500;
  padding: 5px 10px; border-radius: 999px;
  background: #F4F7FB; color: #3D4E66; border: 1px solid #E7EEF5;
}
.chip--dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chip--green::before { background: #2E9E5B; }
.chip--orange::before { background: var(--orange); }
.chip--red::before { background: #D93025; }

.process__cta {
  margin-top: 28px; padding: 18px 22px 18px 26px;
  display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between;
  background: var(--navy); color: var(--on-dark); border-radius: 14px;
}
.process__cta-text { display: flex; gap: 14px; align-items: center; flex: 1 1 460px; font-size: 15px; line-height: 1.45; }
.process__cta-text .icon { width: 32px; height: 32px; color: var(--cyan); stroke-width: 1.5; }
.process__cta-text strong { color: var(--white); }
.process__cta .btn { flex: none; padding-inline: 22px; }

/* ---------- Servicios (foto + capa) ---------- */
.services { display: flex; flex-wrap: wrap; gap: 20px; }
.services-carousel__viewport { position: relative; overflow: hidden; touch-action: pan-y; cursor: grab; }
.services-carousel__viewport.is-dragging { cursor: grabbing; }
.services-carousel .services { flex-wrap: nowrap; will-change: transform; }
.services-carousel .service,
.services-carousel .service--lg {
  flex: 0 0 calc((100% - 60px) / 4);
  height: 420px;
}
@media (min-width: 1101px) {
  .services-carousel {
    width: calc(100% + max(0px, (100vw - 1240px) / 2 - 20px));
  }
}
.services-carousel .service__body,
.services-carousel .service--lg .service__body {
  box-sizing: border-box;
  height: 203px;
  padding: 18px 16px 16px;
  display: grid;
  grid-template-rows: 51px 82px 20px;
  align-content: start;
  gap: 8px;
}
.services-carousel .service__title { align-items: flex-start; gap: 8px; }
.services-carousel .service__title .icon { width: 22px; height: 22px; margin-top: 1px; flex: none; }
.services-carousel .service h3,
.services-carousel .service--lg h3 { font-size: 22px; line-height: 1.15; }
.services-carousel .service p,
.services-carousel .service--lg p { font-size: 14.5px; line-height: 1.4; margin: 0; }
.services-carousel__nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; margin-top: 18px;
}
.services-carousel__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.services-carousel__dots { display: flex; align-items: center; gap: 8px; }
.services-carousel__dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px;
  background: #C5D0E0; cursor: pointer;
}
.services-carousel__dot.is-active { width: 28px; background: var(--orange); }
.services-carousel__arrows { display: flex; gap: 8px; flex: none; }
.services-carousel__arrow {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); background: var(--white);
  color: var(--navy); cursor: pointer;
}
.services-carousel__arrow:hover { background: var(--navy); color: var(--white); }
.services-carousel__arrow .icon { width: 18px; height: 18px; }
.services-carousel__progress {
  height: 2px; background: #E3EAF3; border-radius: 99px; overflow: hidden;
}
.services-carousel__progress span {
  display: block; height: 100%; width: 100%; background: var(--cyan);
  transform: scaleX(0); transform-origin: left center;
}
@media (max-width: 1100px) {
  .services-carousel .service,
  .services-carousel .service--lg { flex-basis: calc((100% - 20px) / 2); height: 400px; }
}
@media (max-width: 700px) {
  .services-carousel .service,
  .services-carousel .service--lg { flex-basis: 86%; height: 400px; }
  .services-carousel .service h3,
  .services-carousel .service--lg h3 { font-size: 26px; line-height: 1.15; }
  .services-carousel .service p,
  .services-carousel .service--lg p { font-size: 15px; line-height: 1.45; }
  .services-carousel .service__body,
  .services-carousel .service--lg .service__body {
    height: 220px;
    grid-template-rows: 60px 87px 22px;
  }
}
.service {
  position: relative; overflow: hidden; display: block;
  flex: 1 1 300px; min-width: 0; height: 400px;
  border-radius: var(--radius-lg); color: var(--white); text-decoration: none;
}
.service--lg { flex-basis: 480px; height: 460px; }
.service .mark {
  position: absolute; z-index: 3; top: 12px; right: 12px;
  width: 14px; height: 14px;
  border-top: 2px solid var(--orange); border-right: 2px solid var(--orange);
}
.service img {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.22, 1, .36, 1);
}
.service::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: rgba(0, 24, 64, .86);
  opacity: 0;
  transition: opacity .65s cubic-bezier(.22, 1, .36, 1);
}
.service::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,43,114,.10) 15%, rgba(0,30,82,.94) 72%);
}
.service:hover { color: var(--white); }
.service:hover::before { opacity: 1; }
.service:hover img { transform: scale(1.06); }
.service__body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 28px; display: flex; flex-direction: column; gap: 10px;
}
.service--lg .service__body { padding: 32px; gap: 12px; }
.service__top { display: flex; justify-content: space-between; align-items: center; }
.service__top .mono { color: var(--on-dark-muted); }
.service h3 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: 30px; line-height: 32px;
}
.service--lg h3 { font-size: 36px; line-height: 38px; }
.service p { color: var(--on-dark); font-size: 15px; line-height: 22px; max-width: 460px; }
.service--lg p { font-size: 16px; line-height: 24px; }
.service__link { font-weight: 600; color: var(--cyan); }

/* ---------- Banda con foto ---------- */
.band { position: relative; overflow: hidden; background: var(--navy); color: var(--white); }
.band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band__overlay { position: absolute; inset: 0; background: rgba(0, 30, 82, .84); }
.band__inner {
  position: relative; padding-top: 96px; padding-bottom: 96px;
  display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: center; justify-content: space-between;
}
.band__text { flex: 1 1 560px; display: flex; gap: 24px; align-items: flex-start; }
.band__title {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(38px, 4.5vw, 60px); line-height: 1;
}
.band__text p { margin-top: 16px; font-size: 18px; line-height: 28px; color: var(--on-dark); max-width: 560px; }

/* ---------- Nosotros ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: 40px 64px;
  align-items: center;
}
.about__photo {
  margin: 0; position: relative; overflow: hidden;
  border-radius: 16px; border: 1px solid rgba(0, 43, 114, .08);
  box-shadow: 0 10px 28px rgba(16, 42, 84, .06);
}
.about__photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: center 28%; }
.about__caption {
  position: absolute; left: 16px; bottom: 16px;
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  max-width: calc(100% - 32px);
  margin: 0; padding: 10px 14px;
  background: rgba(0, 30, 82, .92); color: var(--white); border-radius: 12px;
}
.about__caption strong {
  font-family: var(--font-display); font-size: 28px; line-height: 1;
  font-weight: 700; text-transform: uppercase; color: var(--cyan);
}
.about__caption span { font-size: 14.5px; line-height: 1.3; color: var(--on-dark); }
.about__text { min-width: 0; }
.about__text .lead { margin-top: 8px; }
.about__points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.about__points li {
  display: flex; gap: 14px; align-items: center;
  padding: 14px 16px;
  background: #F5F8FC; border: 1px solid rgba(0, 43, 114, .06); border-radius: 14px;
  color: var(--navy); font-size: 15.5px; line-height: 1.4;
}
.about__mark {
  width: 40px; height: 40px; flex: none; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--cyan-tint); color: var(--cyan-dark);
}
.about__mark .icon { width: 20px; height: 20px; }
.about__text .text-link { margin-top: 22px; }

/* ---------- Tarifarios ---------- */
.rates {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: 32px 56px;
  align-items: center;
}
.rates__intro .muted { margin-top: 16px; max-width: 320px; }
.rates__list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rate-card {
  display: flex; flex-direction: column; min-height: 248px;
  background: var(--white); border: 1px solid rgba(0, 43, 114, .08); border-radius: 16px;
  padding: 22px 22px 18px; color: var(--navy); text-decoration: none; overflow: hidden;
  box-shadow: 0 10px 28px rgba(16, 42, 84, .05);
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), box-shadow .45s cubic-bezier(.22, 1, .36, 1), border-color .45s;
}
.rate-card:hover {
  color: var(--navy); transform: translateY(-4px);
  border-color: rgba(0, 181, 248, .55);
  box-shadow: 0 18px 36px rgba(0, 30, 82, .12);
}
.services-carousel .service img.is-team { object-position: center 22%; }
.services-carousel .service img[src*="consultoria-inspeccion"] { object-position: center 42%; }
.services-carousel .service img[src*="taller-capacitacion"] { object-position: center 62%; }
.rate-card__head { display: flex; justify-content: space-between; align-items: flex-start; }
.rate-card__photo {
  width: 100%; height: 148px; margin: 0 0 16px;
  object-fit: cover; object-position: center 42%;
  border-radius: 12px;
}
.rate-card__mark {
  width: 48px; height: 48px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--cyan-tint); color: var(--cyan-dark);
}
.rate-card__mark .icon { width: 24px; height: 24px; }
.rate-card__dl {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--cyan-dark);
  transition: background .35s, color .35s, border-color .35s;
}
.rate-card__dl .icon { width: 18px; height: 18px; }
.rate-card:hover .rate-card__dl { background: var(--cyan); border-color: var(--cyan); color: var(--navy); }
.rate-card strong { display: block; margin-top: 28px; font-size: 22px; line-height: 28px; font-weight: 700; }
.rate-card p { margin-top: 8px; font-size: 14.5px; line-height: 1.45; color: #5E6878; }
.rate-card__meta { margin-top: auto; padding-top: 18px; font-size: 13px; font-weight: 600; color: var(--cyan-dark); }

/* ---------- Contacto ---------- */
.contact { display: flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.contact__side { flex: 1 1 380px; min-width: 0; position: relative; background: var(--navy); color: var(--white); }
.contact__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact__overlay { position: absolute; inset: 0; background: rgba(0, 30, 82, .88); }
.contact__content { position: relative; padding: 40px; }
.contact__lead { margin: 16px 0 32px; color: var(--on-dark); }
.contact__list { margin: 0; display: grid; gap: 20px; }
.contact__list > div { display: flex; gap: 14px; }
.contact__list .icon { color: var(--cyan); width: 22px; height: 22px; margin-top: 2px; }
.contact__list dt { font-size: 12px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--on-dark-muted); }
.contact__list dd { margin: 4px 0 0; }
.contact__list dd a { color: var(--white); font-size: 18px; font-weight: 600; text-decoration: none; }
.contact__list dd a:hover { color: var(--cyan); }

.form {
  flex: 2 1 480px; min-width: 0; padding: 40px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-content: start;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  font: 16px/1.4 var(--font-body); color: var(--navy);
  border: 1px solid var(--input-border); border-radius: var(--radius-md); background: var(--white);
}
.field input, .field select { height: 48px; padding: 0 14px; }
.field textarea { padding: 12px 14px; resize: vertical; }
.field.has-error input, .field.has-error textarea { border-color: #B3261E; }
.field__error { color: #B3261E; font-size: 13px; min-height: 0; }
.form__footer { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
.form__send { display: flex; flex-wrap: wrap; gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 20px; color: var(--muted); }
.check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--navy); }
.check.has-error { color: #B3261E; }
.form__status { font-size: 14px; color: var(--cyan-dark); font-weight: 600; }
.form__status.is-error { color: #B3261E; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-deep);
  color: var(--on-dark-muted);
  font-size: 15px;
  border-top: 4px solid var(--cyan);
}
.footer a { color: var(--white); text-decoration: none; }
.footer a:hover { color: var(--cyan); }
.footer__main {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 48px 72px;
  padding-top: 64px;
  padding-bottom: 48px;
}
.footer__brand p { margin-top: 18px; max-width: 340px; line-height: 1.55; }
.footer__contact { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.footer__contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer__contact .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--cyan); }
.footer__contact a, .footer__contact span { color: var(--white); line-height: 1.4; }
.footer__cols {
  display: grid;
  grid-template-columns: 150px 190px minmax(180px, 220px);
  justify-content: end;
  align-content: start;
  gap: 28px 48px;
  padding-top: 8px;
}
.footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer h3 {
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--cyan); margin-bottom: 6px;
}
.footer nav a { line-height: 1.35; }
.footer__book { display: inline-flex; gap: 8px; align-items: flex-start; }
.footer__book .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--cyan); }
.footer__bottom { background: rgba(0, 0, 0, .22); border-top: 1px solid rgba(255, 255, 255, .08); }
.footer__bottom .container {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px; font-size: 13px;
}

/* ---------- WhatsApp multiagente ---------- */
.wa {
  --wa-green: #25D366;
  --wa-ease: cubic-bezier(0.23, 1, 0.32, 1);
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}

/* Botón */
.wa__toggle {
  position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: var(--white);
  box-shadow: 0 12px 28px rgba(0, 30, 82, .32), 0 0 0 4px rgba(0, 181, 248, .18);
  transition: transform .45s var(--wa-ease), box-shadow .45s var(--wa-ease), background .45s var(--wa-ease);
  -webkit-tap-highlight-color: transparent;
}
.wa__toggle:hover, .wa__toggle:focus-visible { color: var(--white); }
.wa__toggle:active { transform: scale(0.96); }
.wa__toggle > span:not(.wa__online) { grid-area: 1 / 1; display: grid; place-items: center; transition: opacity .35s var(--wa-ease), transform .35s var(--wa-ease); }
.wa-glyph { width: 30px; height: 30px; fill: currentColor; }
.wa__toggle-close { opacity: 0; transform: rotate(-90deg) scale(.6); color: var(--white); }
.wa__toggle-close .icon { width: 26px; height: 26px; stroke-width: 2; }
.wa.is-open .wa__toggle { background: var(--navy-deep); box-shadow: 0 10px 24px rgba(0, 30, 82, .28); }
.wa.is-open .wa__toggle-open { opacity: 0; transform: rotate(90deg) scale(.6); }
.wa.is-open .wa__toggle-close { opacity: 1; transform: none; }
.wa__online {
  position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: #C5CEDB; border: 3px solid var(--white); display: block;
}
.wa.is-online .wa__online { background: var(--wa-green); }
.wa.is-open .wa__online { opacity: 0; }

/* Panel: fuera del flujo para no empujar el botón ni el aviso */
.wa__panel {
  position: absolute; right: 0; bottom: 76px;
  width: 340px; max-width: calc(100vw - 32px);
  background: var(--white); border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(0, 43, 114, .08);
  box-shadow: 0 24px 60px rgba(0, 30, 82, .22);
  transform-origin: bottom right;
  transition: opacity .4s var(--wa-ease), transform .4s var(--wa-ease);
}
.wa__panel[hidden] { display: block; visibility: hidden; opacity: 0; transform: translateY(10px) scale(.96); pointer-events: none; }
.wa__panel.is-closing { opacity: 0; transform: translateY(10px) scale(.96); transition-duration: .22s; }

.wa__head {
  display: flex; gap: 12px; align-items: center;
  padding: 18px 14px 18px 18px; background: var(--navy); color: var(--white);
  border-top: 3px solid var(--cyan);
}
.wa__head-icon { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(0, 181, 248, .16); color: var(--cyan); }
.wa__head-icon .wa-glyph { width: 22px; height: 22px; }
.wa__head-text { flex: 1; min-width: 0; }
.wa__title { font-weight: 600; font-size: 16px; line-height: 21px; }
.wa__hours {
  margin-top: 6px; width: fit-content; max-width: 100%;
  padding: 3px 8px 3px 7px; border-radius: 999px;
  font-size: 12px; line-height: 16px; color: var(--on-dark);
  background: rgba(255,255,255,.08);
  display: flex; gap: 6px; align-items: center;
}
.wa__hours::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #8A97AD; flex: none; }
.wa.is-online .wa__hours::before { background: var(--wa-green); }
.wa__close {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  display: grid; place-items: center; border: 0; cursor: pointer;
  background: rgba(255,255,255,.08); color: var(--white);
  transition: background .25s;
}
.wa__close .icon { width: 18px; height: 18px; stroke-width: 2; }

.wa__list { list-style: none; margin: 0; padding: 12px; display: grid; gap: 8px; max-height: min(56vh, 420px); overflow-y: auto; overscroll-behavior: contain; background: #F4F7FB; }
.wa__item { animation: wa-row .45s var(--wa-ease) both; animation-delay: calc(var(--i) * 55ms); }
.wa__agent {
  display: flex; gap: 12px; align-items: center;
  padding: 12px; border-radius: 14px;
  background: var(--white); border: 1px solid rgba(0, 43, 114, .06);
  box-shadow: 0 6px 16px rgba(16, 42, 84, .04);
  color: var(--navy); text-decoration: none;
  transition: transform .4s var(--wa-ease), border-color .4s, box-shadow .4s;
}
.wa__agent:active { transform: translateY(0); }
.wa__avatar {
  width: 44px; height: 44px; flex: none; border-radius: 12px;
  display: grid; place-items: center; background: var(--cyan-tint); color: var(--cyan-dark);
}
.wa__avatar img { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; }
.wa__avatar .icon { width: 22px; height: 22px; stroke-width: 1.6; }
.wa__agent-text { flex: 1; min-width: 0; }
.wa__agent-name { display: block; font-weight: 600; font-size: 15px; line-height: 20px; }
.wa__agent-desc { display: block; margin-top: 2px; font-size: 13px; line-height: 18px; color: #7A8494; }
.wa__agent-go {
  width: 32px; height: 32px; flex: none; padding: 7px; box-sizing: border-box;
  border-radius: 50%; background: #F3F6FA; color: var(--cyan-dark); stroke-width: 2;
  transition: background .35s, color .35s, transform .35s var(--wa-ease);
}
.wa__foot { padding: 4px 16px 14px; font-size: 12px; line-height: 17px; color: #8A93A3; background: #F4F7FB; }

/* Mensaje de bienvenida */
.wa__nudge {
  position: relative; max-width: 250px; margin: 0;
  padding: 12px 34px 12px 14px; border-radius: 16px 16px 6px 16px;
  background: var(--white); color: var(--navy); font-size: 14px; line-height: 20px;
  box-shadow: 0 14px 34px rgba(0, 30, 82, .16);
  animation: wa-in .4s var(--wa-ease);
}
.wa__nudge::after {
  content: ""; position: absolute; right: 22px; bottom: -6px;
  width: 12px; height: 12px; background: var(--white); transform: rotate(45deg);
}
.wa__nudge[hidden] { display: none; }
.wa__nudge-close {
  position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: transparent; color: var(--muted); cursor: pointer;
}
.wa__nudge-close .icon { width: 16px; height: 16px; stroke-width: 2; }
@keyframes wa-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes wa-row { from { opacity: 0; transform: translateY(8px); } }

@media (hover: hover) and (pointer: fine) {
  .wa__toggle:hover { color: var(--white); transform: translateY(-3px); box-shadow: 0 16px 32px rgba(0, 30, 82, .36), 0 0 0 5px rgba(0, 181, 248, .28); }
  .wa__agent:hover { transform: translateY(-2px); border-color: rgba(0, 181, 248, .5); box-shadow: 0 12px 26px rgba(0, 30, 82, .1); }
  .wa__agent:hover .wa__agent-go { background: var(--cyan); color: var(--navy); }
  .wa__close:hover { background: rgba(255,255,255,.16); }
}

@media (max-width: 640px) {
  .wa { right: 16px; bottom: 16px; }
  .wa__panel { width: calc(100vw - 32px); }
  .wa__nudge { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .wa__panel, .wa__toggle, .wa__toggle > span, .wa__nudge, .wa__item, .wa__agent { transition: none; animation: none; }
}

/* ---------- Galería (Misión tecnológica en China) ---------- */
.gallery {
  background: #F5F8FC;
  border-top: 1px solid rgba(0, 43, 114, .06);
}
.gallery .section-head { margin-bottom: 44px; align-items: flex-end; }
.gallery .section-head--split .title-with-icon { align-items: flex-start; gap: 16px; max-width: 720px; }
.gallery .icon-box { width: 52px; height: 52px; border-radius: 12px; margin-top: 2px; }
.gallery .icon-box .icon { width: 26px; height: 26px; color: var(--cyan); }
.gallery .eyebrow { color: var(--cyan-dark); letter-spacing: 1.2px; margin-bottom: 6px; }
.gallery .h2 { max-width: 640px; font-size: clamp(36px, 4.2vw, 48px); }
.gallery__lede {
  max-width: 360px; margin: 0;
  font-size: 15px; line-height: 1.55; color: #64748B;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}
.gallery-card {
  position: relative;
  grid-column: span 3;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 1px solid rgba(0, 43, 114, .08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--white);
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(16, 42, 84, .08);
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), box-shadow .45s cubic-bezier(.22, 1, .36, 1), border-color .35s;
}
.gallery-card--wide {
  grid-column: span 7;
  aspect-ratio: auto;
  height: 400px;
}
.gallery-card--side {
  grid-column: span 5;
  aspect-ratio: auto;
  height: 400px;
}
.gallery-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .75s cubic-bezier(.22, 1, .36, 1);
}
.gallery-card::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0, 24, 64, 0) 40%, rgba(0, 24, 64, .55) 72%, rgba(0, 18, 52, .92) 100%);
  transition: opacity .4s ease;
}
.gallery-card__zoom {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0, 24, 64, .52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .2);
  color: var(--white);
  opacity: .85;
  transition: background .3s, color .3s, border-color .3s, transform .3s;
}
.gallery-card__zoom .icon { width: 16px; height: 16px; stroke-width: 1.85; }
.gallery-card__caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 20px 20px 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.gallery-card--wide .gallery-card__caption,
.gallery-card--side .gallery-card__caption {
  padding: 26px 26px 24px; gap: 6px;
}
.gallery-card__caption .mono {
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--cyan);
}
.gallery-card__caption strong {
  font-family: var(--font-display);
  font-size: 22px; line-height: 1.08; font-weight: 700;
  text-transform: uppercase; color: var(--white);
}
.gallery-card--wide .gallery-card__caption strong,
.gallery-card--side .gallery-card__caption strong {
  font-size: 28px;
}
.gallery-card__desc {
  margin-top: 2px;
  font-size: 14px; line-height: 1.4;
  color: var(--on-dark);
  max-width: 460px;
}

@media (hover: hover) and (pointer: fine) {
  .gallery-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 181, 248, .5);
    box-shadow: 0 20px 38px rgba(0, 30, 82, .16);
  }
  .gallery-card:hover img { transform: scale(1.055); }
  .gallery-card:hover .gallery-card__zoom {
    background: var(--cyan); border-color: var(--cyan); color: var(--navy);
    opacity: 1; transform: scale(1.06);
  }
}

/* ---------- Lightbox de galería ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center;
  padding: 24px 72px;
  background: rgba(0, 16, 44, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: lb-in .22s ease;
}
.lightbox[hidden] { display: none; }
@keyframes lb-in { from { opacity: 0; } }
.lightbox__stage {
  margin: 0;
  max-width: min(92vw, 1020px);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.lightbox__img {
  max-height: 74vh; max-width: 100%;
  width: auto; height: auto;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  border: 1px solid rgba(255, 255, 255, .12);
}
.lightbox__bar {
  width: 100%; max-width: 760px;
  display: flex; gap: 16px 28px; align-items: flex-start; justify-content: space-between;
  color: var(--white);
}
.lightbox__meta { display: flex; flex-direction: column; gap: 4px; }
.lightbox__meta .mono { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.lightbox__meta strong { font-family: var(--font-display); font-size: 26px; line-height: 1.05; text-transform: uppercase; }
.lightbox__meta p { font-size: 14.5px; line-height: 1.45; color: var(--on-dark-muted); }
.lightbox__count { flex: none; color: var(--on-dark-muted); padding-top: 2px; font-variant-numeric: tabular-nums; }
.lightbox__close,
.lightbox__nav {
  position: fixed;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(0, 30, 82, .72);
  color: var(--white);
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
.lightbox__close .icon, .lightbox__nav .icon { width: 22px; height: 22px; stroke-width: 2; }
.lightbox__close:hover, .lightbox__nav:hover {
  background: var(--cyan); border-color: var(--cyan); color: var(--navy);
}

/* ---------- Aparición al hacer scroll (fallback sin GSAP) ---------- */
.js-fallback .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js-fallback .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-step:nth-child(2) .tl-step__marker::after { display: none; }
  .stat:nth-child(2) { border-right: 0; padding-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-card { grid-column: span 1; aspect-ratio: 4 / 5; height: auto; }
  .gallery-card--wide { grid-column: span 2; aspect-ratio: 16 / 10; height: auto; }
  .gallery-card--side { grid-column: span 1; aspect-ratio: 4 / 5; height: auto; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .header__end { gap: 10px; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px 24px 24px; box-shadow: 0 16px 24px rgba(0,30,82,.08);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; }
  .logo__img { height: 46px; }
  .hero__inner { padding-top: 88px; padding-bottom: 96px; }
  .rates, .rates__list { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 28px; }
  .footer__main { grid-template-columns: 1fr; gap: 36px; }
  .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: start; padding-top: 0; }
}

@media (max-width: 640px) {
  .topbar__info li:last-child { display: none; }
  .stats__grid { grid-template-columns: 1fr; }
  /* Línea de tiempo vertical en celular */
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .process .h2 { max-width: none; }
  .process__lede { max-width: none; }
  .tl-step { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; padding-bottom: 20px; }
  .tl-step__marker { height: auto; align-items: flex-start; }
  .tl-step__icon { width: 56px; height: 56px; box-shadow: 0 0 0 6px #F5F8FC; }
  .tl-step__icon .icon { width: 26px; height: 26px; }
  .tl-step .tl-step__marker::after,
  .tl-step:nth-child(2) .tl-step__marker::after {
    display: block; content: ""; position: absolute;
    top: 62px; bottom: -28px; left: 27px; right: auto; width: 2px; height: auto;
    transform: none;
    background-image: repeating-linear-gradient(180deg, #3EC4F8 0 8px, transparent 8px 16px);
  }
  .tl-step:last-child .tl-step__marker::after { display: none; }
  .tl-step__card { margin-top: 0; }
  .tl-step__num { font-size: 56px; }
  .stat { padding-left: 0 !important; padding-right: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .section { padding: 72px 0; }
  .service, .service--lg { height: 420px; flex-basis: 100%; }
  .band__text { flex-direction: column; }
  .about { grid-template-columns: 1fr; gap: 28px; }
  .about__caption { left: 12px; bottom: 12px; max-width: calc(100% - 24px); }
  .form { grid-template-columns: 1fr; padding: 28px 24px; }
  .form__send { width: 100%; }
  .form__send .btn { flex: 1 1 100%; }
  .contact__content { padding: 32px 24px; }
  .gallery__lede { max-width: none; }
  .gallery-grid { grid-template-columns: 1fr; gap: 14px; }
  .gallery-card, .gallery-card--side { grid-column: span 1; aspect-ratio: 4 / 5; }
  .gallery-card--wide { grid-column: span 1; aspect-ratio: 4 / 3; }
  .lightbox { padding: 64px 16px 24px; }
  .lightbox__nav { top: auto; bottom: 20px; transform: none; }
  .lightbox__nav--prev { left: 16px; }
  .lightbox__nav--next { right: 16px; }
  .lightbox__bar { padding-bottom: 52px; }
  .footer__main, .footer__cols { grid-template-columns: 1fr; gap: 32px; }
  .footer__cols { padding-top: 0; }
  .footer__bottom .container { flex-direction: column; }
}

/* Movimiento reducido: sin video en loop ni animaciones */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .service img, .service::before, .gallery-card, .gallery-card img, .lightbox { transition: none; animation: none; }
  .service:hover img, .gallery-card:hover img { transform: none; }
  .route { display: none !important; }
}

/* ---------- Ruta del avión (estela fugaz hasta el footer) ---------- */
.route {
  display: none;
  position: absolute;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 6;
  overflow-x: clip;
  overflow-y: visible;
}
.route.is-on { display: block; }
.route__svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* Geometría invisible de referencia (sin línea permanente que contamine el margen) */
.route__track {
  fill: none;
  stroke: none;
}

/* Estela curva corta que se disipa suavemente detrás del avión */
.route__mist {
  fill: none;
  stroke: url(#routeMistGrad);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.route__trail {
  fill: none;
  stroke: url(#routeTrailGrad);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Avión top-down sin cápsula blanca */
.route__plane {
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  z-index: 2;
  will-change: transform;
  --boost: 0;
}
.route__radar {
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1.25px solid rgba(0, 181, 248, .42);
  opacity: 0;
  animation: route-radar 3s cubic-bezier(.16, 1, .3, 1) infinite;
}
@keyframes route-radar {
  0% { transform: scale(.6); opacity: .45; }
  75% { transform: scale(1.65); opacity: 0; }
  100% { transform: scale(1.65); opacity: 0; }
}

/* Estelas gemelas suaves saliendo de ambos motores */
.route__contrail {
  position: absolute;
  right: calc(100% - 22px);
  width: calc(16px + var(--boost) * 18px);
  height: 1.75px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 181, 248, 0), rgba(0, 181, 248, .42) 72%, rgba(255, 255, 255, .8));
  opacity: calc(.45 + var(--boost) * .5);
  transition: width .2s ease, opacity .25s ease;
}
.route__contrail--top { top: 14.5px; }
.route__contrail--bot { top: 29.75px; }

.route__jet {
  position: relative;
  width: 46px;
  height: 46px;
  display: block;
  overflow: visible;
  transform: scale(calc(1 + var(--boost) * .08));
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, .95)) drop-shadow(0 6px 9px rgba(0, 30, 82, .2));
  transition: transform .22s ease, filter .35s ease;
}
.jet__body { fill: var(--navy); transition: fill .35s ease; }
.jet__wing { fill: #0A3D91; transition: fill .35s ease; }
.jet__engine { fill: var(--navy-deep); transition: fill .35s ease; }
.jet__accent { fill: var(--cyan); }
.jet__cockpit { fill: #7AD7FF; transition: fill .35s ease; }
.jet__fin { stroke: var(--cyan); stroke-width: 1.8; stroke-linecap: round; fill: none; }

/* Adaptación automática sobre secciones oscuras (.band y .footer) */
.route__plane.is-on-dark .jet__body { fill: #FFFFFF; }
.route__plane.is-on-dark .jet__wing { fill: #D9EBFF; }
.route__plane.is-on-dark .jet__engine { fill: #8EC7F8; }
.route__plane.is-on-dark .jet__cockpit { fill: var(--navy); }
.route__plane.is-on-dark .route__jet {
  filter: drop-shadow(0 0 10px rgba(0, 181, 248, .55)) drop-shadow(0 6px 10px rgba(0, 10, 32, .42));
}

/* Indicador de progreso ligero y discreto */
.route__pct {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transform: translate(-50%, 28px);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  line-height: 1;
  color: var(--navy);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 43, 114, .1);
  border-radius: 999px;
  padding: 3.5px 7.5px 3.5px 6px;
  box-shadow: 0 4px 12px rgba(0, 30, 82, .07);
  z-index: 2;
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .25s ease;
}
.route__pct::before {
  content: "";
  width: 4.5px;
  height: 4.5px;
  border-radius: 50%;
  background: var(--cyan);
}
.route__pct.is-above {
  transform: translate(-50%, calc(-100% - 28px));
}
.route__pct.is-on-dark {
  color: var(--on-dark);
  background: rgba(0, 30, 82, .8);
  border-color: rgba(0, 181, 248, .38);
  box-shadow: 0 6px 16px rgba(0, 10, 32, .32);
}

@media (max-width: 1379px) {
  .route { display: none !important; }
}

/* ---------- Ajustes impeccable ---------- */
::selection { background: var(--cyan); color: var(--navy); }
input, textarea { caret-color: var(--cyan-dark); }
a { text-underline-offset: 3px; }
.stat strong, .tl-step__num { font-variant-numeric: tabular-nums; }
html { scrollbar-color: var(--navy-muted) #F4F6F9; }
.stats__grid { padding-block: 12px; }
.service__title { display: flex; gap: 12px; align-items: center; }
.service__title .icon { width: 30px; height: 30px; stroke-width: 1.5; color: var(--cyan); }
.title-with-icon--small { align-items: center; }

/* =========================================================
   Páginas de Tarifarios (Aduanas y Carga Internacional)
   ========================================================= */
.rates-hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 68%, #073B8C 100%);
  color: var(--white);
  padding: 56px 0 48px;
  overflow: hidden;
}
.rates-hero__top {
  display: flex; flex-wrap: wrap; gap: 20px 32px;
  align-items: flex-end; justify-content: space-between;
}
.breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--on-dark-muted); margin-bottom: 14px;
}
.breadcrumb a { color: var(--cyan); text-decoration: none; font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.rates-hero h1 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(38px, 4.6vw, 58px); line-height: .98; letter-spacing: -.3px;
}
.rates-hero__lead {
  margin-top: 14px; max-width: 620px;
  font-size: 16.5px; line-height: 1.55; color: var(--on-dark);
}
.rates-hero__meta {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px;
}
.meta-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 12px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  color: var(--on-dark);
}
.meta-pill .icon { width: 15px; height: 15px; color: var(--cyan); }
.rates-hero__actions {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}

/* Selector entre Tarifario de Aduanas y Tarifario de Carga */
.rates-switcher {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.rates-switcher__inner {
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.switcher-links {
  display: inline-flex; flex-wrap: wrap; gap: 8px;
  padding: 4px; border-radius: 12px;
  background: #F1F5FA; border: 1px solid rgba(0, 43, 114, .08);
}
.switcher-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 9px;
  font-size: 14.5px; font-weight: 600;
  color: var(--navy); text-decoration: none;
  transition: background .2s, color .2s, box-shadow .2s;
}
.switcher-link:hover { background: rgba(0, 43, 114, .06); color: var(--navy); }
.switcher-link.is-current {
  background: var(--navy); color: var(--white);
  box-shadow: 0 6px 14px rgba(0, 30, 82, .18);
}
.switcher-link .icon { width: 17px; height: 17px; color: var(--cyan); }

/* Contenido principal de tablas */
.rates-main {
  background: #F5F8FC;
  padding: 48px 0 80px;
}

/* Pestañas de categorías (Tarifario de carga) */
.rates-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 24px;
}
.rates-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px;
  border: 1px solid rgba(0, 43, 114, .14);
  background: var(--white); color: var(--navy);
  font: 600 14.5px/1 var(--font-body);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.rates-tab:hover { border-color: var(--cyan); color: var(--cyan-dark); }
.rates-tab.is-active {
  background: var(--navy); border-color: var(--navy); color: var(--white);
  box-shadow: 0 8px 20px rgba(0, 30, 82, .16);
}
.rates-tab .tab-count {
  font-family: var(--font-mono); font-size: 11px;
  padding: 2px 6px; border-radius: 999px;
  background: rgba(0, 181, 248, .15); color: var(--cyan-dark);
}
.rates-tab.is-active .tab-count {
  background: rgba(0, 181, 248, .25); color: var(--cyan);
}
.tab-panel[hidden] { display: none; }

/* Tarjeta de tabla */
.tbl-stack { display: grid; gap: 24px; }
.tbl-card {
  background: var(--white);
  border: 1px solid rgba(0, 43, 114, .08);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(16, 42, 84, .05);
  overflow: hidden;
}
.tbl-card__head {
  display: flex; flex-wrap: wrap; gap: 14px 24px;
  align-items: center; justify-content: space-between;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #E7EEF5;
}
.tbl-card__title {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: 26px; line-height: 1.05; color: var(--navy);
}
.tbl-card__sub {
  margin-top: 4px; font-size: 14px; color: #5E6878;
}

/* Controles de filtro y búsqueda */
.rates-tools {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.filter-pills { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.filter-pill {
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid #D5DFEC; background: #F7FAFD; color: #3D4E66;
  font: 600 13px/1 var(--font-body); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.filter-pill:hover { border-color: var(--cyan); color: var(--navy); }
.filter-pill.is-active {
  background: var(--cyan); border-color: var(--cyan); color: var(--navy);
}
.rates-search {
  position: relative; min-width: 240px; flex: 1 1 240px; max-width: 340px;
}
.rates-search input {
  width: 100%; height: 38px; padding: 0 14px 0 36px;
  border: 1px solid #C9D5E4; border-radius: 999px;
  font: 14px/1 var(--font-body); color: var(--navy);
  background: #F9FBFD;
}
.rates-search input:focus {
  outline: none; border-color: var(--cyan); background: var(--white);
  box-shadow: 0 0 0 3px rgba(0, 181, 248, .18);
}
.rates-search .icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: #64748B; pointer-events: none;
}

/* Tabla responsive */
.tbl-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table {
  width: 100%; border-collapse: collapse;
  font-size: 14.5px; line-height: 1.45;
  text-align: left;
}
.data-table thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--navy); color: var(--white);
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 13px 16px; white-space: nowrap;
}
.data-table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid #E9EFF6;
  color: #2B3A52;
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: #F2F9FE; }
.data-table td.num, .data-table th.num {
  text-align: right; font-family: var(--font-mono);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.data-table td.price {
  text-align: right; font-family: var(--font-mono);
  font-weight: 600; color: var(--navy);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.data-table td.service-name { font-weight: 600; color: var(--navy); }
.data-table td.muted-cell { color: #5E6878; font-size: 13.5px; }
.tbl-empty {
  padding: 28px 24px; text-align: center; color: #64748B; font-size: 14.5px;
}

/* Badges dentro de tablas */
.t-badge {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 6px; white-space: nowrap;
}
.t-badge--impo { background: var(--cyan-tint); color: var(--cyan-dark); }
.t-badge--expo { background: #E7EEF9; color: var(--navy); }
.t-badge--direct { background: #E6F6EC; color: #19743D; }
.t-badge--via { background: #F1F5F9; color: #475569; }
.t-badge--freq { background: #F4F7FB; color: #3D4E66; border: 1px solid #E2EAF3; }

/* Resumen de tarifas preferenciales (Aduanas) */
.pref-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px; padding: 20px 24px 24px;
}
.pref-item {
  padding: 16px; border-radius: 12px;
  background: #F7FAFD; border: 1px solid #E5EEF7;
  display: flex; flex-direction: column; gap: 6px;
}
.pref-item span { font-size: 13px; color: #5E6878; line-height: 1.35; }
.pref-item strong {
  font-family: var(--font-mono); font-size: 20px; font-weight: 600;
  color: var(--navy); font-variant-numeric: tabular-nums;
}
.pref-item small { font-size: 12px; color: var(--cyan-dark); font-weight: 500; }

/* Bloque de notas y CTA al pie del tarifario */
.rates-notes {
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid rgba(0, 43, 114, .08);
  display: flex; flex-wrap: wrap; gap: 20px 36px;
  align-items: center; justify-content: space-between;
}
.rates-notes ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 8px; flex: 1 1 460px;
  font-size: 14px; color: #4A5568;
}
.rates-notes li { position: relative; padding-left: 20px; }
.rates-notes li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--cyan);
}

@media (max-width: 1024px) {
  .pref-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .rates-hero { padding: 40px 0 36px; }
  .tbl-card__head { padding: 18px 16px 14px; }
  .data-table thead th, .data-table tbody td { padding: 11px 12px; font-size: 13.5px; }
  .pref-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px; }
  .rates-search { max-width: none; }
}

@media print {
  .topbar, .header, .rates-switcher, .rates-tabs, .rates-tools, .rates-hero__actions, .wa, .footer, .rates-notes .btn, .route {
    display: none !important;
  }
  .rates-hero { background: #fff !important; color: #002B72 !important; padding: 12px 0 16px !important; border-bottom: 2px solid #002B72; }
  .rates-hero::before { display: none; }
  .rates-hero__lead, .meta-pill { color: #333 !important; border-color: #ccc !important; }
  .rates-main { background: #fff !important; padding: 16px 0 !important; }
  .tab-panel[hidden] { display: block !important; margin-bottom: 20px; }
  .tbl-card { box-shadow: none !important; border: 1px solid #ccc !important; break-inside: avoid; }
  .data-table thead th { background: #002B72 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.title-with-icon--small .h2 { margin: 0; }
/* Contraste AA: grises que no llegaban a 4.5:1 */
.process__lede { color: #5E6B7E; }
.tl-step__card p { color: #5E6878; }
