/* PROCOSTA · estilos
   Paleta y tipografías del Manual de Identidad Visual (A4, A5). El sistema completo
   está descrito en DESIGN.md, en la raíz del proyecto.

   Sistema
   - Retícula de 12 columnas, ancho máximo 1320 px. Todos los titulares arrancan en
     el mismo eje izquierdo que el contenido.
   - Formas redondeadas: paneles (28 px), tarjetas (18–24 px), campos (12 px) y
     botones en píldora. Cada sección abre con un filete azul sobre el título.
   - Sin fotos de ambiente: las imágenes son las fotos de producto de PROCOSTA y
     gráficos dibujados (mapa del Ecuador, cadena comercial, buque de carga).
   - Los colores del emblema (hoja, campo, mar) dan tinte a los paneles de cada línea
     SEDA; el ámbar marca los acentos pequeños. */

:root {
  color-scheme: light;

  /* Paleta corporativa */
  --azul: #032659;          /* Azul Procosta */
  --azul-noche: #021A3D;
  --azul-mar: #0065B0;
  --azul-cielo: #0A93DF;
  --azul-tinte: #E8EEF5;    /* Azul Procosta al 9 % sobre blanco: sección activa */
  --verde-hoja: #1F8A1A;
  --verde-brote: #4FB000;
  --verde-profundo: #0D6A1E;
  --ambar: #FDBC01;
  --ocre: #DA8601;
  --tierra: #A65B01;
  --blanco: #FFFFFF;
  --papel: #F3F5F2;         /* fondo claro de las láminas del manual */
  --error: #B3261E;
  --blanco-humo: #D2DCE9;

  /* Tintes de las líneas de producto y de los estados */
  --hoja-tinte: #E2ECD6;    /* panel SEDA Banano y Plátano, tarjeta Visión */
  --hoja-estudio: #F2F6EC;
  --tierra-tinte: #E8E3DC;  /* panel SEDA Roots & Tubers */
  --tierra-estudio: #F6F3EE;
  --tierra-oscura: #7E4500; /* texto sobre el tinte tierra: 5,4:1 */
  --wa: #25D366;            /* verde de WhatsApp */
  --wa-hover: #1EBE5C;
  --wa-tinte: #E2F5E8;
  --wa-oscuro: #0F7A3E;
  --ok-tinte: #EAF3E6;
  --error-tinte: #FBEAE8;
  --error-oscuro: #7A1A14;
  --aviso-tinte: #FBF1DE;
  --aviso-oscuro: #5C3A00;

  --ink: var(--azul);
  --muted: #4A5B73;
  --rule: rgba(3, 38, 89, .16);
  --rule-strong: var(--azul);
  --rule-dark: rgba(255, 255, 255, .24);
  --field-line: #8592A6;    /* borde de campos: 3,3:1 sobre blanco */
  --on-dark-soft: var(--blanco-humo);
  --focus: var(--azul-mar);

  /* Tipografía */
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-hero: clamp(44px, 6.4vw, 96px);
  --fs-h2: clamp(30px, 3.2vw, 46px);
  --fs-h3: clamp(22px, 1.8vw, 27px);
  --fs-lead: clamp(19px, 1.5vw, 22px);
  --fs-sub: clamp(17px, 1.3vw, 19px);
  --fs-body: 17px;
  --fs-small: 16px;
  --fs-label: 14px;

  /* Espacio */
  --max: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --gap: clamp(16px, 2vw, 32px);
  --section-y: clamp(56px, 6vw, 92px);
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: clamp(36px, 4vw, 60px);
  --header-h: 76px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--blanco);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll { overflow: hidden; }

img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

::selection { background: var(--ambar); color: var(--azul); }
/* Superficies del navegador también en la paleta: cursor de texto y controles nativos. */
:root { accent-color: var(--azul); }
input, textarea { caret-color: var(--azul-mar); }

[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 16px; top: -100px; z-index: 100;
  background: var(--azul); color: var(--blanco);
  padding: 12px 18px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
/* Al llegar desde el menú, la línea del encabezado queda justo bajo la cabecera. */
.section { scroll-margin-top: calc(28px - var(--section-y)); }

/* ---------- Tipografía ---------- */
.hero-title,
.sec-title,
.h3,
.lead,
.why-close,
.footer-slogan,
.product-name {
  font-family: var(--serif);
  font-weight: 400;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.38;
  text-wrap: balance;
}
.h3 { font-size: var(--fs-h3); line-height: 1.15; }
.minor-title { font-size: var(--fs-small); font-weight: 600; line-height: 1.4; }
.footer-slogan,
.why-close { text-wrap: balance; }

/* Tonos de las franjas del emblema: solo para marcas pequeñas. */
.tone-hoja  { --tone: var(--verde-hoja); --tone-ink: var(--verde-profundo); }
.tone-campo { --tone: var(--ocre);       --tone-ink: var(--tierra); }
.tone-mar   { --tone: var(--azul-mar);   --tone-ink: var(--azul-mar); }

/* ---------- Encabezado de sección ----------
   Línea azul, titular sobre el eje izquierdo y una segunda línea más discreta. */
.sec-head {
  border-top: 1px solid var(--rule-strong);
  padding-top: var(--space-3);
}
.sec-title {
  max-width: 30ch;
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -0.012em;
}
.sec-title span { display: block; }

.subhead {
  margin-top: 14px;
  font-size: var(--fs-sub);
  font-weight: 500;
  line-height: 1.45;
  color: var(--muted);
  max-width: 46ch;
}
.sec-intro { margin-top: 10px; max-width: 58ch; }

/* ---------- Botones ---------- */
/* Botón principal: píldora con la flecha en su propio círculo, como «Enviar consulta». */
.button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 8px 0 26px;
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 120ms var(--ease-out);
}
.button:active { transform: scale(.97); }
.button-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--azul-tinte);
  transition: transform 220ms var(--ease-out), background-color 160ms ease;
}

.button-light { background: var(--blanco); color: var(--azul); }
@media (hover: hover) and (pointer: fine) {
  .button-light:hover { background: var(--ambar); }
  .button-light:hover .button-icon { transform: translateY(2px); background: rgba(255, 255, 255, .55); }
}

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  background: var(--blanco);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
}

.header-logo { margin-right: auto; display: block; padding-block: 6px; }
.header-logo img { height: 38px; width: auto; }

/* Navegación: resaltado redondeado (píldora). Cursor = azul con texto blanco;
   sección activa = tinte azul claro. El tamaño nunca cambia entre estados.
   Es la única zona con curvas además del logotipo y el botón de WhatsApp. */
.nav-list { display: flex; align-items: center; gap: 2px; }

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}
.nav-list a[aria-current="true"] { background: var(--azul-tinte); }
.nav-list a:focus-visible { outline-offset: 2px; }

/* Contacto sigue el mismo criterio, con un filete azul que lo distingue en reposo. */
.nav-list .nav-contact {
  margin-left: 8px;
  box-shadow: inset 0 0 0 1px var(--azul);
}

@media (hover: hover) and (pointer: fine) {
  .nav-list a:hover { background: var(--azul); color: var(--blanco); }
}

.nav-slogan { display: none; }

/* Idiomas: banderas circulares. La activa lleva un anillo azul; la otra queda
   un poco apagada hasta pasar el cursor. */
.lang-switch { display: flex; align-items: center; gap: 4px; }
.lang-switch button {
  appearance: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transition: transform 120ms var(--ease-out);
}
.lang-switch .flag {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  opacity: .62;
  filter: saturate(.7);
  transition: opacity 150ms ease, filter 150ms ease;
}
.lang-switch button[aria-pressed="true"] .flag {
  opacity: 1;
  filter: none;
  outline: 2px solid var(--azul);
  outline-offset: 2px;
}
.lang-switch button:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) {
  .lang-switch button:hover .flag { opacity: 1; filter: none; }
}

.menu-toggle {
  display: none;
  appearance: none;
  border: 0;
  background: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  padding: 0;
  cursor: pointer;
}
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 22px; height: 2px;
  margin-inline: auto;
  background: currentColor;
  transition: transform 220ms var(--ease-out), background-color 150ms ease;
}
.menu-toggle-bars { position: relative; }
.menu-toggle-bars::before,
.menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { transform: translateY(-7px); }
.menu-toggle-bars::after { transform: translateY(7px); }
.menu-open .menu-toggle-bars { background: transparent; }
.menu-open .menu-toggle-bars::before { transform: rotate(45deg); }
.menu-open .menu-toggle-bars::after { transform: rotate(-45deg); }

/* ---------- 1 · Inicio ---------- */
.hero {
  position: relative;
  margin-top: var(--header-h);
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  min-height: 520px;
  max-height: 1040px;
  overflow: hidden;
  background: var(--azul-noche);
  color: var(--blanco);
  --focus: var(--ambar);
}

.hero-media,
.hero-scrim { position: absolute; inset: 0; }

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.hero-scrim {
  background: linear-gradient(to top, rgba(2, 26, 61, .74) 0%, rgba(2, 26, 61, .38) 40%, rgba(2, 26, 61, .06) 70%, rgba(2, 26, 61, .14) 100%); /* taste-skill-ignore: velo de legibilidad sobre el video */
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding-bottom: clamp(40px, 8vh, 96px);
}

.hero-title {
  font-size: var(--fs-hero);
  line-height: .96;
  letter-spacing: -0.025em;
  max-width: 13ch;
}
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: clamp(24px, 4vh, 36px); }

/* Pausa del video: círculo translúcido junto al botón, con el icono que cambia. */
.hero-toggle {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: var(--blanco);
  cursor: pointer;
  transition: background-color 160ms ease, transform 120ms var(--ease-out);
}
.hero-toggle svg { grid-area: 1 / 1; transition: opacity 180ms ease, transform 220ms var(--ease-out), filter 180ms ease; }
.hero-toggle .icon-play,
.hero-toggle[aria-pressed="true"] .icon-pause { opacity: 0; transform: scale(.6); filter: blur(2px); }
.hero-toggle[aria-pressed="true"] .icon-play { opacity: 1; transform: none; filter: none; }
.hero-toggle:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) {
  .hero-toggle:hover { background: rgba(255, 255, 255, .28); }
}

/* ---------- 2 · Quiénes somos ---------- */
/* El origen: el contorno real del Ecuador en trama de puntos sobre el azul de la
   marca, cruzado por la línea ecuatorial en ámbar. */
.origin {
  position: relative;
  margin-top: var(--space-4);
  overflow: hidden;
  border-radius: 28px;
  background: var(--azul);
  color: var(--blanco);
}
.origin-map { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 540; }
.origin-map #dots-sea circle { fill: rgba(255, 255, 255, .13); }
.origin-map #dots-land circle { fill: var(--blanco); }
.origin-equator { stroke: var(--ambar); stroke-width: 2; }
/* Halo del color del panel detrás de cada rótulo: se lee limpio sobre la trama. */
.origin-tag, .origin-name, .origin-label, .origin-sea-name { paint-order: stroke; stroke: var(--azul); stroke-width: 10px; stroke-linejoin: round; }
.origin-tag { font-family: var(--sans); font-size: 18px; font-weight: 600; fill: var(--ambar); }
.origin-name { font-family: var(--serif); font-size: 58px; fill: var(--blanco); }
.origin-label { font-family: var(--sans); font-size: 17px; font-weight: 500; fill: var(--on-dark-soft); }
.origin-sea-name { font-family: var(--sans); font-size: 19px; letter-spacing: .02em; fill: rgba(255, 255, 255, .5); }
.origin-lead {
  position: absolute;
  left: clamp(24px, 4vw, 56px);
  bottom: clamp(24px, 3.6vw, 52px);
  max-width: 28ch;
  font-family: var(--serif);
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.16;
  text-wrap: balance;
}

.about-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2) var(--gap);
  margin-top: var(--space-4);
}
.about-copy p { max-width: 60ch; }

/* La experiencia de los fundadores, como un recorrido del origen al mercado. */
.journey { margin-top: var(--space-5); }
.journey-title { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h3); line-height: 1.15; color: var(--azul); }
.journey-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: var(--space-3);
}
.journey-steps::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 7px;
  height: 2px;
  background: var(--azul);
  transform-origin: left center;
}
.journey-steps::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 2px;
  border: 6px solid transparent;
  border-left: 10px solid var(--azul);
  border-right: 0;
}
.journey-steps li {
  position: relative;
  padding-top: 34px;
  padding-right: 24px;
  font-size: var(--fs-sub);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}
.journey-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--azul);
  outline: 5px solid var(--blanco);
}

/* Misión y visión: dos campos de color, mismo peso. */
.purpose {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: var(--space-5);
}
.purpose-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(28px, 3.4vw, 48px);
  border-radius: 24px;
}
.purpose-mission { background: var(--azul-tinte); }
.purpose-vision { background: var(--hoja-tinte); }
.purpose-title { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.3vw, 34px); line-height: 1.1; color: var(--azul); }
.purpose-text { max-width: 46ch; font-size: var(--fs-sub); line-height: 1.55; color: var(--ink); }

/* ---------- 3 · Nuestros productos ---------- */
.products { background: var(--papel); }

/* Cada línea es un panel con el color de su mundo: hoja para banano y plátano,
   tierra para raíces y tubérculos. Dentro, sus productos en tarjetas de dos
   mitades iguales: la foto y su texto, centrado a la misma altura. */
.line {
  --panel: var(--hoja-tinte);
  --studio: var(--hoja-estudio);
  --line-ink: var(--verde-profundo);
  margin-top: var(--space-4);
  padding: clamp(16px, 2.8vw, 40px);
  border-radius: 28px;
  background: var(--panel);
}
.line + .line { margin-top: 20px; }
.line-roots { --panel: var(--tierra-tinte); --studio: var(--tierra-estudio); --line-ink: var(--tierra-oscura); }

.line-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 42ch);
  align-items: center;
  column-gap: clamp(20px, 3vw, 44px);
  margin-bottom: clamp(18px, 2.4vw, 32px);
}
/* Logotipo completo con su área de protección. */
.line-logo { display: block; width: auto; height: clamp(72px, 7vw, 96px); }
.line-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 2.3vw, 34px);
  line-height: 1.1;
  color: var(--azul);
}
.line-sub { margin-top: 6px; font-size: var(--fs-small); font-weight: 600; color: var(--line-ink); }
.line-desc { font-size: var(--fs-small); line-height: 1.6; color: var(--ink); }

.product-grid { display: grid; gap: 16px; }

.product {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border-radius: 20px;
  background: var(--blanco);
}

.product-media {
  position: relative;
  margin: 0;
  aspect-ratio: 5 / 4;
  max-width: 100%;
  overflow: hidden;
  background: var(--studio);
}
.product-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  transition: transform 900ms var(--ease-out);
}
/* Fotos de estudio sobre blanco: el blanco toma el tono de la línea. */
.product-studio .product-media img {
  object-fit: contain;
  padding: 6% 4%;
  mix-blend-mode: multiply;
}

.product-origin {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--azul);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.product-origin span { font-weight: 400; color: var(--muted); }

.product-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: clamp(22px, 2.6vw, 40px);
}
@media (min-width: 1200px) {
  .product-body { padding: 24px clamp(24px, 2.2vw, 36px); }
}
.product-name {
  font-size: clamp(28px, 2.3vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--azul);
  text-wrap: balance;
}
.product-desc { max-width: 32ch; font-size: var(--fs-small); line-height: 1.6; color: var(--ink); }

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 8px;
  padding: 0 16px 0 18px;
  border-radius: 999px;
  white-space: nowrap;
  background: var(--azul-tinte);
  color: var(--azul);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 120ms var(--ease-out);
}
.product-link svg { transition: transform 200ms var(--ease-out); }
.product-link:active { transform: scale(.97); }

@media (hover: hover) and (pointer: fine) {
  .product:hover .product-media img { transform: scale(1.04); }
  .product-link:hover { background: var(--azul); color: var(--blanco); }
  .product-link:hover svg { transform: translateX(3px); }
}

/* Escritorio amplio: dos tarjetas por fila, fotos verticales. */
@media (min-width: 1200px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .product-media { aspect-ratio: 4 / 5; }
}
@media (max-width: 900px) {
  .line-head { grid-template-columns: auto minmax(0, 1fr); row-gap: 16px; }
  .line-desc { grid-column: 1 / -1; }
}
/* Celular: la foto arriba y el texto debajo. */
@media (max-width: 599px) {
  .line { border-radius: 22px; }
  .line-head { column-gap: 16px; }
  .product { grid-template-columns: minmax(0, 1fr); border-radius: 16px; }
  .product-media { aspect-ratio: 4 / 3; }
  .product-body { padding: 20px 20px 24px; }
}

/* Entrada al aparecer: sube y aparece una vez; sin script, todo queda visible. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  /* Los recorridos se dibujan al aparecer: el riel de la experiencia y los
     conectores de la cadena, uno tras otro, del origen al comprador. */
  .journey-steps::before { transition: transform 1100ms var(--ease-out) 250ms; }
  .js .journey:not(.is-in) .journey-steps::before { transform: scaleX(0); }
  .journey-steps::after,
  .chain-step::before { transition: opacity 300ms ease var(--arrow-delay, 1100ms); }
  .js .journey:not(.is-in) .journey-steps::after,
  .js .chain:not(.is-in) .chain-step::before { opacity: 0; }
  .chain-step::after { transition: transform 600ms var(--ease-out) var(--line-delay, 300ms); }
  .js .chain:not(.is-in) .chain-step::after { transform: scaleX(0); }
  .chain-step:nth-child(1) { --line-delay: 300ms; --arrow-delay: 750ms; }
  .chain-step:nth-child(2) { --line-delay: 480ms; --arrow-delay: 930ms; }
  .chain-step:nth-child(3) { --line-delay: 660ms; --arrow-delay: 1110ms; }

  /* El buque se carga: los contenedores bajan a su sitio uno tras otro. */
  .contact-art .box { transition: opacity 420ms var(--ease-out), transform 520ms var(--ease-out); transition-delay: calc(300ms + var(--i) * 45ms); }
  .js .contact-art:not(.is-in) .box { opacity: 0; transform: translateY(-18px); }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 767px) {
  .js .journey:not(.is-in) .journey-steps::before { transform: scaleY(0); }
  .js .chain:not(.is-in) .chain-step::after { transform: scaleY(0); }
}

/* ---------- 4 · ¿Por qué PROCOSTA? ---------- */
.why {
  background: var(--azul);
  color: var(--blanco);
  --focus: var(--ambar);
  --rule-strong: rgba(255, 255, 255, .7);
}
.why .subhead { color: var(--on-dark-soft); }

/* La red: copia a la izquierda, la cadena a la derecha, del origen al comprador. */
.chain {
  --chain-gap: clamp(22px, 2.6vw, 40px);
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
  padding: clamp(24px, 3.4vw, 48px);
  border-radius: 28px;
  background: rgba(255, 255, 255, .06);
}
.chain-title { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h3); line-height: 1.15; }
.chain-copy p { margin-top: 12px; max-width: 36ch; font-size: var(--fs-small); line-height: 1.6; color: var(--on-dark-soft); }

.chain-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: var(--chain-gap);
}
.chain-step { position: relative; display: grid; gap: 10px; justify-items: center; }
/* Conector en ámbar con punta de flecha hacia el paso siguiente. */
.chain-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + 6px);
  width: calc(var(--chain-gap) - 14px);
  height: 2px;
  margin-top: -1px;
  background: var(--ambar);
  transform-origin: left center;
}
.chain-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + var(--chain-gap) - 12px);
  margin-top: -5px;
  border: 5px solid transparent;
  border-left: 8px solid var(--ambar);
  border-right: 0;
}
.chain-node {
  display: grid;
  place-items: center;
  align-self: stretch;
  width: 100%;
  padding: 12px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .1);
  color: var(--blanco);
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}
.chain-node-end { background: var(--ambar); color: var(--azul); }
.chain-mark {
  display: grid;
  place-items: center;
  width: clamp(96px, 9vw, 132px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--blanco);
  outline: 8px solid rgba(255, 255, 255, .08);
}
.chain-mark img { width: 72%; height: auto; }

/* Los argumentos: la frase de cierre a la izquierda y cuatro pilares a la derecha. */
.why-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  align-items: center;
  margin-top: var(--space-4);
}
.why-close {
  grid-column: 1 / span 4;
  max-width: 26ch;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.14;
  color: var(--ambar);
}
.pillars {
  grid-column: 5 / span 8;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.pillar {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: clamp(22px, 2.4vw, 32px);
  border-radius: 20px;
  background: rgba(255, 255, 255, .06);
}
.pillar-title { font-family: var(--serif); font-weight: 400; font-size: clamp(21px, 1.7vw, 24px); line-height: 1.2; }
.pillar-title::before {
  content: "";
  display: block;
  width: 24px;
  height: 3px;
  margin-bottom: 16px;
  background: var(--ambar);
}
.pillar p { font-size: var(--fs-small); line-height: 1.6; color: var(--on-dark-soft); }

/* Escritorio compacto: la frase de cierre pasa encima de los pilares. */
@media (max-width: 1199px) {
  .why-close { grid-column: 1 / -1; max-width: 26ch; }
  .pillars { grid-column: 1 / -1; }
}

/* ---------- 5 · Contacto ---------- */
/* Hablemos: título, los tres canales directos en una fila y, debajo, el formulario
   en una tarjeta blanca a todo el ancho (encabezado a la izquierda, campos a la
   derecha). Cada canal es una tarjeta completa que se puede tocar. */
.contact { background: var(--papel); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding-top: var(--space-3);
  border-top: 1px solid var(--rule-strong);
}
.contact-intro { display: grid; gap: var(--space-4); }

/* Título a la izquierda y, a la derecha, la ilustración: un buque portacontenedores
   al atardecer con los contenedores en los colores de la marca. Geometría recta. */
.contact-top {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--gap);
  align-items: end;
}
.contact-art { margin: 0; overflow: hidden; border-radius: 24px; background: var(--azul); }
.contact-art-svg { display: block; width: 100%; height: auto; }
.art-sky { fill: var(--azul); }
.art-sun { fill: var(--ambar); }
.art-sea { fill: var(--azul-noche); }
.art-waves { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 1.5; }
.art-sun-glint { fill: none; stroke: var(--ambar); stroke-width: 2; opacity: .55; }
.art-hull { fill: var(--blanco); }
.art-waterline { fill: none; stroke: var(--azul-mar); stroke-width: 7; }
.art-bridge { fill: var(--blanco); }
.art-bridge-top { fill: var(--blanco-humo); }
.art-windows { fill: var(--azul); }
.art-mast { fill: none; stroke: var(--blanco); stroke-width: 2; }
.contact-art .ribs { fill: none; stroke: rgba(2, 26, 61, .18); stroke-width: 1; }
@media (max-width: 767px) {
  .contact-top { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .contact-art { border-radius: 20px; }
}
.enquiry {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  column-gap: var(--space-5);
  padding: clamp(24px, 3.2vw, 48px);
  border-radius: 24px;
  background: var(--blanco);
}
.enquiry > .form-grid,
.enquiry > .form-actions { grid-column: 2; }
.enquiry-head { grid-column: 1; grid-row: 1 / span 3; align-self: start; }

.channels { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; }
@media (max-width: 1199px) {
  .channels { grid-template-columns: 1fr; gap: 12px; }
}
.channel { position: relative; display: grid; }
.channel-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 96px;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--blanco);
  color: var(--azul);
  text-decoration: none;
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
a.channel-link:active { transform: scale(.985); }
.channel-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--azul-tinte);
  color: var(--azul);
  transition: background-color 200ms ease, color 200ms ease;
}
.channel-icon-wa { background: var(--wa-tinte); color: var(--wa-oscuro); }
.channel-text { display: grid; gap: 2px; min-width: 0; }
.channel-label { font-size: var(--fs-label); font-weight: 500; color: var(--muted); transition: color 200ms ease; }
.channel-value {
  font-size: 17px;
  font-weight: 600;
  font-style: normal;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.channel-address { font-size: 16px; font-weight: 500; }
.channel-arrow { transition: transform 200ms var(--ease-out); }

/* Copiar el correo: el icono se transforma en un check durante 2 s. */
.channel-email .channel-link { grid-template-columns: auto minmax(0, 1fr); padding-right: 78px; }
.channel-copy {
  position: absolute;
  top: 50%;
  right: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border: 0;
  border-radius: 50%;
  background: var(--papel);
  color: var(--azul);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 120ms var(--ease-out);
}
.channel-copy:active { transform: scale(.92); }
.channel-copy svg { grid-area: 1 / 1; transition: opacity 180ms ease, transform 220ms var(--ease-out), filter 180ms ease; }
.channel-copy .check-icon,
.channel-copy.is-copied .copy-icon { opacity: 0; transform: scale(.6); filter: blur(2px); }
.channel-copy.is-copied .check-icon { opacity: 1; transform: none; filter: none; }
.channel-copy.is-copied { background: var(--verde-hoja); color: var(--blanco); }

@media (hover: hover) and (pointer: fine) {
  .channel:not(.channel-static):hover .channel-link { background: var(--azul); color: var(--blanco); }
  .channel:not(.channel-static):hover .channel-label { color: var(--on-dark-soft); }
  .channel:not(.channel-static):hover .channel-icon { background: rgba(255, 255, 255, .12); color: var(--blanco); }
  .channel:hover a[href^="mailto"] .channel-arrow { transform: translateX(3px); }
  .channel:hover a[target="_blank"] .channel-arrow { transform: translate(2px, -2px); }
  .channel:hover .channel-copy:not(.is-copied) { background: rgba(255, 255, 255, .14); color: var(--blanco); }
  .channel .channel-copy:not(.is-copied):hover { background: var(--blanco); color: var(--azul); }
}

.enquiry-title { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.3vw, 34px); line-height: 1.1; color: var(--azul); }
.enquiry-note { margin-top: 12px; max-width: 30ch; font-size: var(--fs-small); color: var(--muted); }

/* Formulario */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px var(--space-3);
}
.field { display: grid; gap: 8px; align-content: start; }
.field-wide { grid-column: 1 / -1; }

.field > label,
.field legend {
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.3;
  padding: 0;
}
.optional { font-weight: 400; color: var(--muted); }

/* Productos de interés: píldoras seleccionables. La casilla nativa sigue ahí (oculta
   a la vista, no al teclado ni al lector de pantalla) y el check aparece al marcarla. */
.choices { margin: 0; padding: 0; border: 0; min-width: 0; }
.choices legend { margin-bottom: 8px; }
.choice-list { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px 0 12px;
  border: 1px solid var(--field-line);
  border-radius: 999px;
  background: var(--blanco);
  color: var(--azul);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 120ms var(--ease-out);
}
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.choice-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--field-line);
  border-radius: 50%;
  color: var(--blanco);
  transition: background-color 160ms ease, border-color 160ms ease;
}
.choice-mark svg { opacity: 0; transform: scale(.6); transition: opacity 160ms ease, transform 220ms var(--ease-out); }
.choice input:checked + .choice-mark { background: var(--azul); border-color: var(--azul); }
.choice input:checked + .choice-mark svg { opacity: 1; transform: none; }
.choice:has(input:checked) { background: var(--azul-tinte); border-color: var(--azul); }
.choice:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.choice:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .choice:hover { border-color: var(--azul); }
}

.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  border: 1px solid var(--field-line);
  border-radius: 12px;
  background: var(--blanco);
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 150ms ease, outline-color 150ms ease;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 148px; resize: vertical; }
.field input:hover,
.field textarea:hover { border-color: var(--azul); }
.field input:focus-visible,
.field textarea:focus-visible { border-color: var(--azul); outline: 3px solid rgba(0, 101, 176, .28); outline-offset: 0; }

.field-error {
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.35;
  color: var(--error);
}
.has-error input,
.has-error textarea { border-color: var(--error); }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions {
  margin-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
}
.form-status {
  flex: 1 1 280px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--azul-tinte);
  color: var(--azul);
  font-size: var(--fs-small);
  line-height: 1.45;
}
.form-status[data-kind="success"] { background: var(--ok-tinte); color: var(--verde-profundo); }
.form-status[data-kind="error"] { background: var(--error-tinte); color: var(--error-oscuro); }
.form-status[data-kind="warning"] { background: var(--aviso-tinte); color: var(--aviso-oscuro); }

/* Enviar: píldora azul con la flecha en su propio círculo. */
.submit {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 8px 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--azul);
  color: var(--blanco);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease, transform 120ms var(--ease-out);
}
.submit-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  transition: transform 220ms var(--ease-out), background-color 160ms ease;
}
.submit:active { transform: scale(.97); }
.submit:disabled { background: var(--muted); cursor: progress; }
@media (hover: hover) and (pointer: fine) {
  .submit:not(:disabled):hover { background: var(--azul-mar); }
  .submit:not(:disabled):hover .submit-icon { transform: translateX(3px); background: rgba(255, 255, 255, .22); }
}

/* ---------- Pie de página ---------- */
.site-footer { background: var(--blanco); }

/* Tribanda del manual (A6): hoja, campo y mar. */
.tribanda { display: flex; height: 6px; }
.tribanda span { flex: 1; }
.tribanda span:nth-child(1) { background: var(--verde-hoja); }
.tribanda span:nth-child(2) { background: var(--ocre); }
.tribanda span:nth-child(3) { background: var(--azul-mar); }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: var(--space-4);
  padding-top: clamp(56px, 6.5vw, 88px);
  align-items: start;
}
.footer-logo { grid-column: 1 / span 2; display: block; width: 150px; padding: 4px 0; }
.footer-logo img { width: 100%; height: auto; }
.footer-slogan {
  grid-column: 3 / span 4;
  font-size: var(--fs-h2);
  line-height: 1.06;
  letter-spacing: -0.012em;
}
/* Oficina y canales directos, entre el eslogan y la navegación. */
.footer-contact {
  grid-column: 7 / span 3;
  display: grid;
  gap: 4px;
  font-size: var(--fs-small);
  font-style: normal;
  line-height: 1.5;
}
.footer-label { margin-bottom: 4px; font-size: var(--fs-label); font-weight: 600; color: var(--muted); }
.footer-contact a { margin-top: 2px; width: fit-content; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--rule); transition: color 150ms ease, text-decoration-color 150ms ease; }
.footer-contact a:first-of-type { margin-top: 12px; }
@media (hover: hover) and (pointer: fine) {
  .footer-contact a:hover { color: var(--azul-mar); text-decoration-color: currentColor; }
}

.footer-nav {
  grid-column: 10 / span 3;
  display: grid;
  border-top: 1px solid var(--rule);
}
.footer-nav a {
  font-size: var(--fs-small);
  font-weight: 500;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  transition: color 150ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .footer-nav a:hover { color: var(--azul-mar); }
}

.footer-bottom {
  margin-top: clamp(48px, 5.5vw, 80px);
  border-top: 1px solid var(--rule);
  padding: 18px 0 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: var(--fs-label);
  color: var(--muted);
}
.back-top { font-weight: 500; text-underline-offset: 4px; }
.footer-legal { margin-left: 12px; text-underline-offset: 4px; }
.form-legal { margin-top: 14px; font-size: var(--fs-label); line-height: 1.5; color: var(--muted); }
.form-legal a { color: var(--azul); text-underline-offset: 3px; }
.enquiry > .form-legal { grid-column: 2; }
@media (hover: hover) and (pointer: fine) {
  .back-top:hover { color: var(--azul); }
}

/* ---------- WhatsApp flotante ----------
   Botón circular en el verde de WhatsApp, con un pulso suave alrededor. */
.whatsapp-float {
  position: fixed;
  right: max(20px, env(safe-area-inset-right, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa);
  color: var(--blanco);
  box-shadow: 0 6px 18px -6px rgba(2, 26, 61, .45); /* taste-skill-ignore: botón flotante */
  transition: background-color 150ms ease, opacity 200ms ease, transform 200ms var(--ease-out);
}
.whatsapp-float svg { width: 30px; height: 30px; position: relative; }

/* Halo latente: dos anillos que se expanden y se desvanecen, sin parar. Con
   «reducir movimiento» queda un halo fijo. */
.whatsapp-float::before,
.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--wa);
  opacity: 0;
  z-index: -1;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .whatsapp-float::before { animation: wa-pulse 2.4s ease-out infinite; }
  .whatsapp-float::after { animation: wa-pulse 2.4s ease-out 1.2s infinite; }
}
@media (prefers-reduced-motion: reduce) {
  /* Sin movimiento: un halo fijo y suave. */
  .whatsapp-float::before { opacity: .22; transform: scale(1.28); }
}
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: .45; }
  100% { transform: scale(1.75); opacity: 0; }
}

.whatsapp-float:focus-visible { outline: 2px solid var(--azul-mar); outline-offset: 4px; }
.whatsapp-float:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) {
  .whatsapp-float:hover { background: var(--wa-hover); transform: scale(1.05); }
}

/* Se aparta mientras está a la vista el formulario o el pie, para no taparlos. */
.whatsapp-float.is-away,
.menu-open ~ .wa-dock .whatsapp-float {
  opacity: 0;
  transform: translateY(10px) scale(.9);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
}

/* ---------- Movimiento ----------
   Solo la entrada del inicio y el cambio de foto en las vitrinas.
   El contenido nunca espera una animación para verse. */
@media (prefers-reduced-motion: no-preference) {
  .hero-title { animation: rise 700ms var(--ease-out) 100ms both; }
  .hero-actions { animation: rise 700ms var(--ease-out) 220ms both; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .product-media img { transition: none; }
  .product:hover .product-media img { transform: none; }
}

/* En pantallas verticales el canal guía la mirada: el video se encuadra a la derecha. */
@media (max-aspect-ratio: 1 / 1) {
  .hero-video { object-position: 74% 50%; }
}

/* ---------- Escritorio compacto ---------- */
@media (max-width: 1180px) {
  .header-inner { gap: 12px; }
  .nav-list a { padding: 0 12px; }
}

/* ---------- Tableta ---------- */
@media (max-width: 1023px) {

  .origin-tag, .origin-label { font-size: 26px; }
  .origin-sea-name { font-size: 28px; }
  .chain { grid-template-columns: 1fr; }
  .why-close { grid-column: 1 / -1; max-width: 24ch; }
  .pillars { grid-column: 1 / -1; }

  .channels { grid-template-columns: 1fr; gap: 12px; }
  .enquiry { grid-template-columns: 1fr; }
  .enquiry > .form-grid,
  .enquiry > .form-actions,
  .enquiry > .form-legal,
  .enquiry-head { grid-column: 1; grid-row: auto; }
  .enquiry-head { margin-bottom: var(--space-3); }
  .enquiry { grid-column: 1 / -1; }

  .footer-logo { grid-column: 1 / span 4; }
  .footer-slogan { grid-column: 5 / span 8; }
  .footer-contact { grid-column: 1 / span 6; }
  .footer-nav { grid-column: 7 / span 6; }
}

/* ---------- Menú móvil ---------- */
@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .menu-toggle { display: block; }
  .header-logo img { height: 32px; }
  .lang-switch button { width: 44px; }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    background: var(--blanco);
    padding: var(--space-2) var(--gutter) var(--space-4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 180ms ease, transform 200ms var(--ease-out), visibility 0s linear 200ms;
  }
  .menu-open .main-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 180ms ease, transform 200ms var(--ease-out), visibility 0s;
  }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--rule); }
  .nav-list a,
  .nav-list .nav-contact {
    display: flex;
    min-height: 64px;
    margin: 0;
    padding: 0 12px;
    font-family: var(--serif);
    font-size: clamp(26px, 7vw, 34px);
    font-weight: 400;
    box-shadow: none;
  }
  /* En pantallas táctiles el resaltado aparece al tocar. */
  .nav-list a:active { background: var(--azul); color: var(--blanco); }
  .nav-slogan {
    display: block;
    margin-top: var(--space-4);
    padding-inline: 12px;
    font-family: var(--serif);
    font-size: var(--fs-lead);
    color: var(--muted);
  }
}

/* ---------- Celular ---------- */
@media (max-width: 767px) {
  .whatsapp-float { width: 56px; height: 56px; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); }
  .whatsapp-float svg { width: 28px; height: 28px; }
  :root { --fs-body: 16.5px; --fs-h2: clamp(26px, 7vw, 36px); }

  .hero { min-height: 500px; }


  /* Mapa: se encuadra en el Ecuador continental y la frase pasa debajo. */
  .origin { border-radius: 22px; }
  .origin-map { aspect-ratio: 1 / 1; }
  .origin-tag { font-size: 30px; }
  .origin-name { font-size: 72px; }
  .origin-lead { position: static; max-width: none; padding: 0 22px 26px; font-size: 24px; }
  .about-copy { grid-template-columns: 1fr; }

  .journey-steps { grid-template-columns: 1fr; gap: 22px; }
  .journey-steps::before { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; transform-origin: center top; }
  .journey-steps::after { display: none; }
  .journey-steps li { padding: 0 0 0 36px; }

  .purpose { grid-template-columns: 1fr; gap: 14px; }
  .purpose-card { border-radius: 20px; }

  /* La cadena pasa a vertical: cada paso debajo del anterior. */
  .chain { border-radius: 22px; }
  .chain-flow { grid-template-columns: 1fr; gap: 34px; }
  .chain-step { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .chain-step:not(:last-child)::after {
    top: calc(100% + 6px); left: 50%;
    width: 2px; height: 18px;
    margin: 0 0 0 -1px;
    transform-origin: center top;
  }
  .chain-step:not(:last-child)::before {
    top: calc(100% + 34px - 12px); left: 50%;
    margin: 0 0 0 -5px;
    border: 5px solid transparent;
    border-top: 8px solid var(--ambar);
    border-bottom: 0;
  }
  .pillars { grid-template-columns: 1fr; }

  .form-grid { grid-template-columns: 1fr; }

  .channel-link { min-height: 76px; padding: 14px 16px; gap: 14px; border-radius: 16px; }
  .channel-email .channel-link { padding-right: 70px; }
  .channel-copy { right: 14px; }
  .channel-icon { width: 42px; height: 42px; }
  .channel-value { font-size: 16px; }
  .enquiry { border-radius: 20px; }
  .submit { width: 100%; justify-content: space-between; }

  .footer-logo { grid-column: 1 / -1; width: 136px; }
  .footer-slogan,
  .footer-contact,
  .footer-nav { grid-column: 1 / -1; }
  /* Deja sitio al botón de WhatsApp al final de la página. */
  .footer-bottom { padding-bottom: 96px; }
}
