/* ── RESET ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── TOKENS ─────────────────────────────── */
:root {
  --navy: #170252;
  --white: #ffffff;
  --overlay: rgba(23, 2, 82, 0.40);
  --font-display: 'Zen Old Mincho', Georgia, serif;
  --font-body:    'Roboto', sans-serif;
  --nav-h: 190px;
}

html {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  scroll-behavior: smooth;
  width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  /* Sin max-width — las secciones ocupan el 100% del viewport */
}

/* Barra de admin de WordPress (solo en modo logged-in) */
body.admin-bar .hero {
  padding-top: calc(var(--nav-h) + 32px);
}
body.admin-bar .nav { top: 32px; }

section {
  width: 100%;
  height: 100vh;
  scroll-snap-align: start;
  overflow: hidden;
  position: relative;
}

footer { scroll-snap-align: start; width: 100%; }

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }

/* ── BOTONES ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  min-width: 220px;
  padding: 0 28px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1),
              box-shadow 0.35s cubic-bezier(.4,0,.2,1),
              background 0.25s ease,
              color 0.25s ease,
              opacity 0.25s ease;
  will-change: transform;
}
.btn:hover {
  transform: translateY(-4px);
}

.btn-fill {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 2px 0 rgba(23, 2, 82, 0);
}
.btn-fill:hover {
  box-shadow: 0 10px 22px -8px rgba(23, 2, 82, 0.45);
  opacity: 0.95;
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 10px 22px -8px rgba(23, 2, 82, 0.35);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  box-shadow: 0 10px 22px -8px rgba(255, 255, 255, 0.25);
}

/* ════════════════════════════════════════
   NAV
   — En top: estado "pastilla" centrado (logo arriba, links debajo)
   — Con scroll: estado "expandido" (logo izq, links der, gradient blanco)
   Logo y links usan posición absoluta para que las transiciones
   entre ambos estados sean realmente interpolables (no hay
   `flex-direction` cambiando bruscamente).
════════════════════════════════════════ */
:root {
  --nav-ease: cubic-bezier(.65, 0, .35, 1);
  --nav-dur: 0.9s;
}
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%;
  height: 210px; /* alto en estado "pastilla" — logo grande */
  z-index: 200;
  background: #ffffff;
  transition: height var(--nav-dur) var(--nav-ease),
              background var(--nav-dur) var(--nav-ease);
}

/* Baja el nav cuando está la admin bar */
body.admin-bar .nav { top: 32px; }

/* ── LOGO: del centro-arriba al izquierda-medio ── */
.nav-logo {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  transition: top var(--nav-dur) var(--nav-ease),
              left var(--nav-dur) var(--nav-ease),
              transform var(--nav-dur) var(--nav-ease);
}
.nav-logo img {
  height: 140px;
  width: auto;
  display: block;
  transition: height var(--nav-dur) var(--nav-ease);
}

/* ── LINKS: del centro-abajo a la derecha-medio ── */
.nav-links {
  position: absolute;
  top: 178px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 60px;
  list-style: none;
  margin: 0;
  white-space: nowrap;
  transition: top var(--nav-dur) var(--nav-ease),
              left var(--nav-dur) var(--nav-ease),
              right var(--nav-dur) var(--nav-ease),
              transform var(--nav-dur) var(--nav-ease),
              gap var(--nav-dur) var(--nav-ease);
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.8;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }

/* ── Language Switcher: banderitas flotantes bottom-right ────
   Se posiciona en la esquina inferior derecha del viewport,
   fuera del header — no colisiona nunca con nav ni scroll state. */
.lang-switcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 300;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(23, 2, 82, 0.12);
}
.lang-btn {
  display: block;
  width: 28px;
  height: 20px;
  border-radius: 3px;
  overflow: hidden;
  opacity: 0.5;
  transition: opacity 0.2s, transform 0.2s;
  line-height: 0;
}
.lang-btn svg {
  width: 100%;
  height: 100%;
  display: block;
}
.lang-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.lang-btn.is-active {
  opacity: 1;
}
.lang-btn.is-active::after {
  content: '';
  display: block;
  width: 60%;
  height: 2px;
  background: var(--navy);
  margin: 3px auto 0;
  border-radius: 2px;
}
@media (max-width: 768px) {
  .lang-switcher {
    bottom: 16px;
    right: 16px;
    padding: 6px 8px;
    gap: 6px;
  }
  .lang-btn {
    width: 24px;
    height: 18px;
  }
}
@media (max-width: 480px) {
  .lang-switcher {
    bottom: 12px;
    right: 12px;
  }
}

/* ─────── Botón hamburguesa (oculto por defecto en desktop) ─────── */
.nav-toggle {
  display: none;
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 210;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.3s, opacity 0.3s;
}
.nav.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.nav.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ─────── Estado expandido (al hacer scroll) ─────── */
.nav.is-scrolled {
  height: 96px;
  background: #ffffff;
}
.nav.is-scrolled .nav-logo {
  top: 50%;
  left: 56px;
  transform: translateY(-50%);
}
.nav.is-scrolled .nav-logo img {
  height: 64px;
}
.nav.is-scrolled .nav-links {
  top: 50%;
  left: auto;
  right: 56px;
  transform: translateY(-50%);
  gap: 44px;
}

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-h);
  text-align: center;
  background: var(--white);
  gap: clamp(16px, 3.5vh, 60px);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 60px);
  font-weight: 400;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--navy);
}
.hero-sub {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--navy);
  max-width: 440px;
  margin: 0 auto;
}
.hero-fish {
  width: 480px;
  height: 240px;
  flex-shrink: 0;
}
.hero-fish img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hero-ctas { display: flex; justify-content: center; gap: 0; }

/* ════════════════════════════════════════
   SECTION 1 — ORIGEN
════════════════════════════════════════ */
.origen-bg { position: absolute; inset: 0; z-index: 0; }
.origen-bg img { width: 100%; height: 100%; object-fit: cover; }

.origen-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15.625rem; /* 250px a 16px base */
  text-align: center;
  padding: var(--nav-h) 5rem 3rem;
}
.origen-reveal { overflow: hidden; }
.origen-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 400;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--white);
}
.origen-body {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.4vw, 1.3rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--white);
  max-width: 35rem;
}
.origen-fish {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.origen-fish img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }

/* ════════════════════════════════════════
   SECTION 2 — FEATURES 01–04
════════════════════════════════════════ */
.section-features {
  display: flex;
  align-items: center;
  padding: 0 92px;
  background: var(--white);
}
.features-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(23,2,82,0.15);
}
.feature {
  padding: 48px 40px 60px 0;
  position: relative;
}
.feature:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 1px;
  background: rgba(23,2,82,0.12);
}
.feature:not(:first-child) { padding-left: 40px; }
.feature-num {
  font-family: var(--font-display);
  font-size: clamp(80px, 10vw, 150px);
  font-weight: 700;
  line-height: 0.65;
  letter-spacing: -0.1em;
  color: var(--navy);
  margin-bottom: 40px;
  display: block;
}
.feature-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 40px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
}
.feature-body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  color: var(--navy);
  opacity: 0.75;
  max-width: 288px;
}

/* ════════════════════════════════════════
   SECTION 3 — EDITORIAL
   Cada .ed-text llena el ancho de su fila vía JS (fitEditorialText).
   El font-size del clamp() es la base de medición — JS lo sobreescribe.
════════════════════════════════════════ */
.section-editorial {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 92px;
  background: var(--white);
  gap: clamp(12px, 2vh, 32px);
}
.ed-row-1,
.ed-row-3 {
  display: flex;
  width: 100%;
}
.ed-text {
  font-family: var(--font-display);
  /* Base grande para que el JS de fit-to-width tenga margen.
     El JS lo sobreescribe línea a línea para llenar el ancho disponible. */
  font-size: 200px;
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--navy);
  white-space: nowrap;
  flex: 1 1 auto;
}
.ed-row-2 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.ed-aside {
  width: 460px;
  padding-top: 0.6em;
  flex-shrink: 0;
}
.ed-label {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 400;
  line-height: 28px;
  text-transform: uppercase;
  text-decoration: underline;
  color: var(--navy);
  margin-bottom: 12px;
}
.ed-body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  color: var(--navy);
  opacity: 0.72;
}
.ed-row-4 {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 40px;
}
/* Bloque CTA (aside + botón) — fila propia debajo de "El origen".
   Los 4 titulares grandes (Una empresa / Peruana / Conectada con / El origen)
   quedan como secuencia editorial arriba, y el CTA vive como un bloque
   explicativo debajo, con su propio aire. */
.ed-cta-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;                /* separación clara entre aside y botón */
  max-width: 460px;
  margin-top: 48px;         /* respira de "El origen" superior */
}
.ed-cta-block .ed-aside {
  width: 100%;
  max-width: none;
  padding-top: 0;
}
.ed-text-right { text-align: right; }

/* ════════════════════════════════════════
   SECTION 4 — PRODUCTOS
════════════════════════════════════════ */
.section-products {
  background: var(--white);
  overflow: visible;
  z-index: 1;
}
.products-info {
  position: absolute;
  left: 9%;
  top: 50%;
  transform: translateY(-50%);
  width: 40%;
  z-index: 3;
}
.products-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.8vw, 58px);
  font-weight: 400;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 24px;
}
.products-body {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.2vw, 18px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--navy);
  margin-bottom: 36px;
}
.p-img {
  position: absolute;
  cursor: pointer;
  overflow: visible;
  pointer-events: all;
}
.p-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1), filter 0.4s ease;
  will-change: transform, filter;
}
.p-img:hover img {
  transform: scale(1.07);
  filter: drop-shadow(8px 12px 28px rgba(23, 2, 82, 0.35));
}
.p-bonito {
  left: 38%; top: 0%; width: 34%;
  aspect-ratio: 830 / 354;
  transform: rotate(4.78deg);
  z-index: 2;
}
.p-calamar {
  left: 50%; top: 30%; width: 32%;
  aspect-ratio: 778 / 426;
  transform: rotate(-9.53deg);
  z-index: 1;
}
.p-bivalvo {
  left: 72%; top: 52%; width: 18%;
  aspect-ratio: 430 / 317;
  transform: rotate(-9.53deg);
  z-index: 3; /* encima de todo para que sea clicable */
  pointer-events: all;
}

/* ════════════════════════════════════════
   SECTION 5 — CALIDAD
════════════════════════════════════════ */
.section-quality {
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 90px 56px;
  color: var(--white);
}
.quality-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 60px);
  font-weight: 400;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--white);
  text-align: center;
  max-width: 1073px;
  margin: 0 auto 60px;
}
.quality-composition {
  width: 100%;
  max-width: 1600px;
  height: 380px;
  margin: 0 auto 80px;
  overflow: hidden;
}
.quality-composition img { width: 100%; height: 100%; object-fit: cover; }
.quality-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0;
  gap: 48px;
}
.quality-card { padding-right: 0; }
.quality-num {
  font-family: var(--font-display);
  font-size: 50px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -5px;
  color: var(--white);
  margin-bottom: 16px;
  display: block;
}
.quality-card-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 40px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}
.quality-card-body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  color: var(--white);
  opacity: 0.7;
  max-width: 288px;
}

/* ════════════════════════════════════════
   SECTION 6 — CTA
════════════════════════════════════════ */
.section-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.section-cta .bg { position: absolute; inset: 0; overflow: hidden; }
.section-cta .bg img {
  position: absolute;
  width: 100%; height: 205.09%;
  top: -52.24%; left: 0;
  object-fit: cover;
}
.section-cta .overlay { position: absolute; inset: 0; background: var(--overlay); }
.section-cta .content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 1200px;
  padding: 0 156px;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 60px);
  font-weight: 400;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 40px;
}
.cta-body {
  font-family: var(--font-body);
  font-size: 21px;
  font-weight: 400;
  line-height: 24px;
  color: var(--white);
  max-width: 592px;
  margin: 0 auto 60px;
}

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
footer {
  background: var(--navy);
  color: var(--white);
  padding: 60px 52px 40px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 60px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 400;
  line-height: 70px;
  color: var(--white);
  text-transform: uppercase;
}
.footer-cta-block { text-align: right; }
.footer-cta-label {
  font-family: var(--font-body);
  font-size: 21px;
  font-weight: 400;
  text-decoration: underline;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
  display: block;
}
.footer-nav {
  display: flex;
  gap: 60px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.footer-nav-col a {
  display: block;
  font-family: var(--font-body);
  font-size: 21px;
  font-weight: 400;
  line-height: 24px;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.footer-nav-col a:hover { opacity: 1; }
.footer-bottom {
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.35;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


/* ════════════════════════════════════════════════════════════════
   PÁGINAS INTERNAS — Override scroll-snap
   En las páginas internas el contenido suele superar 100vh,
   así que desactivamos el snap mandatory y dejamos height auto.
   La clase `is-internal-page` se añade vía body_class filter
   en functions.php para Quiénes Somos, Productos y Contacto.
══════════════════════════════════════════════════════════════════ */
html:has(body.is-internal-page) {
  scroll-snap-type: none;
}
body.is-internal-page section {
  scroll-snap-align: none;
  height: auto;
}
/* Red conectada (Quiénes Somos): también 100vh para que coja la pantalla */
body.is-internal-page .qs-red {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* La CTA final (Trabajemos juntos) sí mantiene 100vh en páginas internas.
   Normaliza el fondo (imagen full-cover) y el centrado del contenido.        */
body.is-internal-page .section-cta {
  height: 100vh;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.is-internal-page .section-cta .bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
body.is-internal-page .section-cta .bg img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.is-internal-page .section-cta .overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
}
body.is-internal-page .section-cta .content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
body.is-internal-page .section-cta .cta-body {
  margin-bottom: 0;
}

/* Botón sobre fondo oscuro de la CTA: invertimos colores para contraste
   y forzamos visibilidad (por si GSAP intentara animar opacity) */
.section-cta .btn-fill {
  background: var(--white);
  color: var(--navy);
  opacity: 1 !important;
  visibility: visible !important;
}
.section-cta .btn-fill:hover {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 10px 22px -8px rgba(0, 0, 0, 0.5);
  opacity: 1 !important;
}


/* ════════════════════════════════════════════════════════════════
   QUIÉNES SOMOS
══════════════════════════════════════════════════════════════════ */

/* ── HERO ──────────────────────────────────────
   Imagen de pargos como fondo full-bleed (100vw × 120vh),
   textos centrados por encima.
   ─────────────────────────────────────────────── */
body.is-internal-page .qs-hero,
.qs-hero {
  position: relative;
  width: 100%;
  height: 120vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: calc(var(--nav-h) + 80px) 5% 40px;
  text-align: center;
  background: var(--white);
  overflow: hidden;
}
/* Imagen de fondo: full-bleed, ligeramente bajada para dar aire al texto */
.qs-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  transform: translateY(60px);
  z-index: 0;
}
/* Contenido: por encima del fondo */
.qs-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}
.qs-hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 80px);
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 28px;
}
.qs-hero-sub {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 400;
  line-height: 1.7;
  color: var(--navy);
  max-width: 480px;
  margin: 0 auto;
}

/* ── VALORES ────────────────────────────────── */
.qs-valores {
  padding: 100px 60px 100px;
  background: var(--white);
}
.qs-valores-head {
  max-width: 1440px;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.qs-valores-h2 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 4px;
  margin: 0;
  max-width: 360px;
}
.qs-valores-sub {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--navy);
  opacity: 0.7;
  max-width: 520px;
  margin: 0;
}
.qs-valores-list {
  max-width: 1440px;
  margin: 0 auto;
}
.qs-valor {
  padding: 0;
  display: grid;
  grid-template-columns: 1.8fr 0.85fr;   /* título con más espacio */
  gap: 40px;
  align-items: end;
  position: relative;
}
.qs-valor + .qs-valor {
  margin-top: 60px;
}
.qs-valor-title {
  font-family: var(--font-display);
  font-size: clamp(64px, 9vw, 160px);   /* max reducido: 180 → 160 */
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0;
  /* Desactivar soft hyphens (&shy;) en desktop —
     evita que "FIABILIDAD" se corte como "FIABI-LIDAD" */
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
}

/* Última fila (Sostenibilidad ambiental): el título ocupa todo el ancho y el
   párrafo se posiciona absoluto abajo-derecha para no descuadrar el layout */
.qs-valor:last-child {
  display: block;
}
.qs-valor:last-child .qs-valor-body {
  position: absolute;
  right: 0;
  bottom: 0.4em;
  max-width: 380px;
  text-align: left;
}
.qs-valor-body {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.15vw, 18px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--navy);
  opacity: 0.78;
  max-width: 380px;
  text-wrap: balance;
}

/* ── COBERTURA — capas: barcos (fondo) + pez transparente + título ──
   - .qs-cobertura-bg: imagen de barcos full-bleed cubriendo toda la sección
   - .qs-cobertura-overlay: tinte azul sutil para integrar la imagen al diseño
   - .qs-cobertura-pez: PNG con fondo transparente flotando encima, centrado
   - .qs-cobertura-title: blanco abajo-izquierda
══════════════════════════════════════════════════════════════════ */
body.is-internal-page .qs-cobertura,
.qs-cobertura {
  position: relative;
  width: 100%;
  height: 100vh;
  background: var(--white);
  min-height: 600px;
  overflow: hidden;
}
/* Fondo: imagen de barcos en los 65vh inferiores */
.qs-cobertura-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60vh;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
/* Tinte azul sutil — solo sobre los barcos (65vh inferiores) */
.qs-cobertura-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60vh;
  background: rgba(23, 2, 82, 0.18);
  z-index: 1;
}
/* Pez transparente flotando: ancho completo de pantalla, tal cual la imagen */
.qs-cobertura-pez {
  position: absolute;
  top: 8%;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 2;
  pointer-events: none;
  display: block;
}
/* Wrapper del título: replica el patrón .qs-red + .qs-red-head
   para que el título quede alineado horizontalmente con "UNA RED CONECTADA..." */
.qs-cobertura-content {
  position: absolute;
  bottom: 8%;
  left: 0;
  right: 0;
  padding: 0 92px;
  z-index: 3;
  pointer-events: none;
}
/* Título: max-width + margin auto = mismo eje X que el título de Red Conectada */
.qs-cobertura-title {
  max-width: 1280px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.2vw, 64px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--white);
}

/* ── RED CONECTADA (timeline puertos) ─────────── */
.qs-red {
  padding: 140px 92px 160px;
  background: var(--white);
}
.qs-red-head {
  width: 100%;
  max-width: 1280px;
  margin: 0 0 100px;
}
.qs-red-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 28px;
  max-width: 900px;
}
/* Desktop: 2 líneas naturales por wrap (Una red conectada con / el litoral peruano)
   Los <span> aparecen inline con espacios entre ellos */
.qs-red-title span { display: inline; }
.qs-red-body {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.1vw, 18px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--navy);
  opacity: 0.78;
  max-width: 620px;
}
.qs-puertos-timeline {
  /* Full-bleed: rompe el padding del .qs-red para llegar a borde-borde */
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  padding: 28px 60px 0;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.qs-puertos-line {
  position: absolute;
  top: 36px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(23, 2, 82, 0.35);
  z-index: 0;
}
.qs-puerto {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  flex: 1;
}
.qs-puerto-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy);
  margin-bottom: 22px;
  display: block;
  transition: transform 0.3s, background 0.3s;
}
.qs-puerto:hover .qs-puerto-dot {
  transform: scale(1.18);
}
.qs-puerto-name {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  color: var(--navy);
}


/* ════════════════════════════════════════════════════════════════
   PRODUCTOS
══════════════════════════════════════════════════════════════════ */

/* ── HERO ────────────────────────────────────── */
.pr-hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: calc(var(--nav-h) + 10px) 5% 32px;
  text-align: center;
  background: var(--white);
  gap: clamp(12px, 2vh, 28px);
}
.pr-hero-content {
  max-width: 720px;
}
.pr-hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 90px);
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 14px;
}
.pr-hero-sub {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 400;
  line-height: 1.65;
  color: var(--navy);
  opacity: 0.8;
  max-width: 580px;
  margin: 0 auto;
}
.pr-hero-img {
  /* Ancho controlado: no full-bleed, evita que se vea excesivamente grande */
  width: 100%;
  max-width: 310px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pr-hero-img img {
  width: 100%;
  height: auto;
  max-height: 24vh;
  object-fit: contain;
  display: block;
}

/* ── CATÁLOGO + FILTROS ─────────────────────── */
.pr-catalogo {
  padding: 60px 56px 40px;
  background: var(--white);
  border-top: 1px solid rgba(23, 2, 82, 0.18);
  border-bottom: 1px solid rgba(23, 2, 82, 0.18);
  position: sticky;
  top: var(--nav-h);
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
}
.pr-catalogo-head {
  max-width: none;
  margin: 0 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 60px;
}
.pr-catalogo-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 60px);
  font-weight: 400;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--navy) !important;
  opacity: 1 !important;
}
.pr-catalogo-sub {
  font-family: var(--font-body);
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--navy) !important;
  opacity: 1 !important;
  max-width: 460px;
}
.pr-filtros {
  max-width: none;
  margin: 0;
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(23, 2, 82, 0.18);
  padding-top: 24px;
  justify-content: space-between;
}
.pr-filtro {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.5vw, 24px);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy) !important;
  padding: 6px 0;
  position: relative;
  opacity: 1 !important;
  visibility: visible !important;
  transition: color 0.25s;
}
.pr-filtro:hover {
  color: var(--navy);
}
.pr-filtro.pr-filtro-active {
  color: var(--navy);
}
.pr-filtro.pr-filtro-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--navy);
}
.pr-count {
  font-family: var(--font-body);
  font-size: 0.55em;
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0.55;
  vertical-align: middle;
  margin-left: 4px;
}

/* ── LISTA DE PRODUCTOS ─────────────────────── */
.pr-lista {
  padding: 48px 56px 80px;
  background: var(--white);
  max-width: none;
  margin: 0;
}
.pr-producto {
  display: grid;
  grid-template-columns: 0.85fr 1.3fr;
  gap: 48px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(23, 2, 82, 0.12);
  align-items: center;
  transition: opacity 0.35s, transform 0.35s, background 0.25s;
}
.pr-producto:hover {
  background: transparent;
}
.pr-producto.pr-hidden {
  display: none;
}
.pr-producto-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 18px;
}
.pr-producto-data {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.55;
  color: var(--navy);
}
.pr-producto-data p {
  margin-bottom: 6px;
}
.pr-producto-data span {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--navy);
  opacity: 0.6;
  display: inline;
  margin-right: 4px;
}
.pr-producto-data-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.pr-producto-info,
.pr-producto-img {
  opacity: 1;
  visibility: visible;
}
.pr-producto-img {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  max-height: 420px;
}
.pr-producto-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  padding: 0;
  transform: scale(1.15);
  transform-origin: right center;
  transition: transform 0.5s, filter 0.5s;
  filter: brightness(1.04) contrast(1.02);
}
.pr-producto:hover .pr-producto-img img {
  transform: scale(1.22);
}

/* Cefalópodos (calamares, pulpo, etc.) — formas más extendidas/irregulares,
   se cortan con el zoom general → escala más conservadora */
.pr-producto[data-cat="cefalopodos"] .pr-producto-img img {
  transform: scale(1);
}
.pr-producto[data-cat="cefalopodos"]:hover .pr-producto-img img {
  transform: scale(1.04);
}
.pr-producto-img-empty {
  background: repeating-linear-gradient(
    -45deg,
    rgba(23, 2, 82, 0.025),
    rgba(23, 2, 82, 0.025) 8px,
    rgba(23, 2, 82, 0.05) 8px,
    rgba(23, 2, 82, 0.05) 16px
  );
}
.pr-producto-img-pending {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.45;
}

.pr-empty {
  text-align: center;
  padding: 80px 0;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--navy);
  opacity: 0.5;
}

.pr-mas {
  text-align: center;
  padding-top: 60px;
}


/* ════════════════════════════════════════════════════════════════
   CONTACTO
══════════════════════════════════════════════════════════════════ */

.ct-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 60px) 5% 60px;
  background: var(--white);
}
.ct-hero-content {
  text-align: center;
  margin-bottom: 80px;
}
.ct-hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 100px);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 28px;
}
.ct-hero-sub {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 400;
  line-height: 1.65;
  color: var(--navy);
  opacity: 0.8;
  max-width: 520px;
  margin: 0 auto;
}

.ct-form {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}
.ct-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.ct-form-row-full {
  grid-template-columns: 1fr;
}
.ct-field {
  display: flex;
  flex-direction: column;
}
.ct-field label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
  opacity: 0.85;
}
.ct-field input,
.ct-field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(23, 2, 82, 0.35);
  padding: 6px 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--navy);
  outline: none;
  transition: border-color 0.25s;
}
.ct-field input:focus,
.ct-field textarea:focus {
  border-bottom-color: var(--navy);
}
.ct-field-textarea textarea {
  border: 1px solid rgba(23, 2, 82, 0.35);
  padding: 14px;
  min-height: 120px;
  resize: vertical;
  border-radius: 2px;
}
.ct-form-actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* Mensaje de éxito / error del formulario de contacto */
.ct-alert {
  max-width: 620px;
  margin: 0 auto 24px;
  padding: 16px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
}
.ct-alert-ok {
  background: rgba(23, 2, 82, 0.06);
  color: var(--navy);
  border: 1px solid rgba(23, 2, 82, 0.25);
}
.ct-alert-error {
  background: rgba(200, 16, 46, 0.08);
  color: #a80f24;
  border: 1px solid rgba(200, 16, 46, 0.3);
}



/* ════════════════════════════════════════════════════════════════
   RESPONSIVE — Sistema completo de breakpoints
   - Desktop: > 1024px (default, sin media query)
   - Tablet: ≤ 1024px
   - Mobile: ≤ 768px (aparece menú hamburguesa)
   - Mobile pequeño: ≤ 480px
══════════════════════════════════════════════════════════════════ */

/* ── TABLET (≤ 1024px) ───────────────────────────── */
@media (max-width: 1024px) {
  /* Secciones internas reducen padding lateral */
  .qs-valores { padding: 80px 40px; }
  .qs-red { padding: 100px 40px 120px; }
  .pr-catalogo { padding: 60px 40px 40px; }
  .pr-lista { padding: 48px 40px 80px; }
  .features { padding: 0 40px; }

  /* iPad/Tablet: hero de Quiénes Somos a 100vh (pantalla completa) */
  body.is-internal-page .qs-hero,
  .qs-hero {
    min-height: 100vh;
    height: auto;
  }

  /* iPad/Tablet: unificar Cobertura y Red-title al mismo eje derecho
     (mismo font-size + mismo max-width = mismo punto de wrap) */
  .qs-cobertura-title,
  .qs-red-title {
    font-size: clamp(32px, 5vw, 52px);
    max-width: 520px;
    line-height: 1.1;
  }

  /* Productos: imagen más pequeña, info y imagen siguen lado a lado */
  .pr-producto {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .pr-producto-img { max-height: 320px; }

  /* CTA section sin padding extremo */
  .section-cta .content { padding: 0 60px; }

  /* Footer */
  .footer { padding: 60px 40px 30px; }
}

/* ── MOBILE (≤ 768px) ─────────────────────────────── */
@media (max-width: 768px) {
  /* ══════════════════════════════════════════════════
     BASE: desactivar scroll-snap y liberar altura fija
     para que las secciones puedan crecer con contenido
     ══════════════════════════════════════════════════ */
  html {
    scroll-snap-type: none;
  }
  section {
    height: auto;
    min-height: auto;
    overflow: visible;
    scroll-snap-align: none;
  }
  /* Secciones que SÍ deben ser full-screen en móvil (visual dominante) */
  .hero,
  .section-origen,
  .section-products {
    min-height: 100vh;
  }
  .section-origen,
  .section-products {
    overflow: hidden;
  }
  /* CTA reducida a 50vh — no necesita full screen */
  .section-cta {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* ── NAV: aparece hamburguesa ── */
  .nav { height: 80px; }
  .nav-logo {
    top: 50%;
    left: 24px;
    transform: translateY(-50%);
  }
  .nav-logo img { height: 38px; }
  .nav-toggle { display: flex; }

  /* Menu links: panel desplegable desde arriba */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    background: var(--white);
    transform: translateX(0);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    padding: 0;
    margin: 0;
  }
  .nav.is-open .nav-links {
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links li { list-style: none; }
  .nav-links a {
    font-family: var(--font-display);
    font-size: 28px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    opacity: 1;
  }

  /* Scrolled state también más simple */
  .nav.is-scrolled { height: 70px; }
  .nav.is-scrolled .nav-logo { left: 24px; top: 50%; transform: translateY(-50%); }
  .nav.is-scrolled .nav-logo img { height: 32px; }
  .nav.is-scrolled .nav-links {
    top: 0; left: 0; right: 0;
    transform: none;
    gap: 32px;
  }
  body.admin-bar .nav { top: 0; }
  body.admin-bar .nav-links { top: 46px; }

  /* ── H1 UNIFORME EN TODA LA WEB (estilo origen) ── */
  .hero-title,
  .qs-hero-title,
  .pr-hero-title,
  .ct-hero-title,
  .origen-title {
    font-size: clamp(1.6rem, 5.5vw, 2rem);
    line-height: 1.1;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: uppercase;
    font-family: var(--font-display);
  }

  /* ── HOME: hero ── */
  .hero {
    padding: 40px 24px 40px;
    gap: 36px;
    justify-content: center;
  }
  .hero-sub {
    font-size: 14px;
    line-height: 1.4;
    max-width: 380px;
  }
  .hero-fish {
    width: 100%;
    max-width: 340px;
    height: auto;
    aspect-ratio: 850 / 425;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-fish img {
    display: block;
    margin: 0 auto;
    object-position: center;
  }
  .hero-ctas {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  .hero-ctas .btn {
    width: 100%;
    min-width: 0;
  }

  /* ── SECTION ORIGEN — texto arriba/abajo con pez de FONDO absoluto,
     100vw de ancho y aspect plano. Texto z-index arriba, pez detrás.
     Sección crece para que ningún texto se corte.
     ─────────────────────────────────────────── */
  .section-origen {
    min-height: 58svh;
    height: auto;
    max-height: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    gap: clamp(16px, 3svh, 32px);
    padding: clamp(24px, 4svh, 44px) clamp(20px, 5%, 40px);
    text-align: center;
    position: relative;
  }
  /* Content wrapper se disuelve — reveals suben como flex items */
  .origen-content {
    display: contents;
  }
  .origen-reveal:first-of-type { order: 1; z-index: 3; position: relative; }
  .origen-reveal:last-of-type  { order: 3; z-index: 3; position: relative; }

  .origen-title {
    /* Hereda tamaño unificado de la regla H1 de la línea ~1670 */
    max-width: min(94%, 560px);
    margin: 0 auto;
    text-align: center;
  }
  .origen-body {
    font-size: clamp(13px, 1.4vw, 15px);
    line-height: 1.5;
    max-width: min(92%, 460px);
    margin: 0 auto;
    text-align: center;
  }
  /* Pez como CAPA DE FONDO absoluta — ancho pantalla, aspect plano,
     centrado vertical/horizontal, detrás del texto (z-index 0). */
  .origen-fish {
    order: 2;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 153vw;
    max-width: none;
    height: auto;
    aspect-ratio: 20 / 9;
    padding: 0;
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: 0;
  }
  .origen-fish img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    object-position: center;
  }

  /* ── Features section apilada con tipografía tipo valores ── */
  .section-features {
    padding: 60px 24px;
    flex-direction: column;
    gap: 40px;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 0;
    border-top: none;
  }
  .feature {
    padding: 40px 0 !important;    /* FUERZA todos igual — mata el :not(:first-child) padding-left del desktop */
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-bottom: 1px solid rgba(23,2,82,0.12);
    opacity: 1 !important;
    visibility: visible !important;
  }
  .feature:not(:first-child) { padding-left: 0 !important; }  /* mata el override desktop */
  .feature:not(:last-child)::after { display: none; }
  .feature:last-child { border-bottom: none; }
  /* Número: mantiene su peso editorial, ligeramente más pequeño */
  .feature-num {
    font-size: clamp(60px, 18vw, 100px);
    line-height: 0.75;
    margin-bottom: 12px;
    display: block;
  }
  /* Título: MISMO estilo que qs-valor-title (grande, serif, uppercase) */
  .feature-title {
    font-size: clamp(28px, 8vw, 42px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
  }
  /* Body: mismo tamaño que qs-valor-body */
  .feature-body {
    font-size: clamp(14px, 1.15vw, 18px);
    line-height: 1.5;
    opacity: 0.78;
    max-width: none;
  }

  /* ══════════════════════════════════════════════════
     SECTION EDITORIAL — 70vh, orden móvil:
     Una empresa / Peruana / Conectada con / El origen /
     [Label + body] / [Botón]
     Uso display:contents en las rows para aplanar el layout
     y luego ordeno todo con flex order
     ══════════════════════════════════════════════════ */
  .section-editorial {
    min-height: 70vh;
    padding: 60px 24px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    text-align: center;
  }
  /* Las rows desaparecen del layout, sus hijos suben al padre */
  .ed-row-1,
  .ed-row-2,
  .ed-row-3,
  .ed-row-4 {
    display: contents;
  }
  /* ed-cta-block se aplana para que aside y btn sigan siendo hijos
     directos del section-editorial (permite orden global con order) */
  .ed-cta-block { display: contents; }
  /* Orden explícito de todos los elementos */
  .ed-row-1 .ed-text { order: 1; }   /* Una empresa */
  .ed-row-2 .ed-text { order: 2; }   /* Peruana */
  .ed-row-3 .ed-text { order: 3; }   /* Conectada con */
  .ed-row-4 .ed-text { order: 4; }   /* El origen */
  .ed-aside          { order: 5; }   /* Label + body */
  .ed-cta-block .btn { order: 6; }   /* Botón al final (nueva ubicación) */
  /* Neutralizamos el JS de fit-to-width en móvil */
  .ed-text {
    font-size: clamp(30px, 9.5vw, 48px) !important;
    line-height: 0.95 !important;
    letter-spacing: -0.02em !important;
    text-align: center !important;
    width: auto !important;
    max-width: 100%;
    word-wrap: break-word;
    margin: 0;
  }
  .ed-text-right { text-align: center !important; }
  /* Aside con margen arriba porque queda pegado al último titular */
  .ed-aside {
    width: 100%;
    max-width: 380px;
    padding-top: 0;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 12px;
  }
  .ed-label {
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: 0.06em;
    display: inline-block;
    margin-bottom: 8px;
  }
  .ed-body {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.75;
    text-align: center;
    max-width: none;
  }
  .ed-cta-block .btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    height: 46px;
  }

  /* ══════════════════════════════════════════════════
     SECTION PRODUCTS — texto centrado + peces flotando
     alrededor con rotaciones tipo composición editorial
     ══════════════════════════════════════════════════ */
  .section-products {
    padding: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  /* Info central: título, body, botón — centrados z-index arriba */
  .products-info {
    position: relative;
    inset: auto;
    transform: none;
    width: 100%;
    max-width: 340px;
    left: auto;
    top: auto;
    text-align: center;
    padding: 0 24px;
    z-index: 3;
  }
  .products-title {
    font-size: clamp(24px, 7vw, 38px);
    line-height: 1.15;
    margin-bottom: 20px;
    text-wrap: balance;
  }
  .products-body {
    font-size: 14px;
    line-height: 1.5;
    max-width: 320px;
    margin: 0 auto 24px;
    opacity: 0.78;
  }
  .products-info .btn {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
  }
  /* Los 3 productos flotan alrededor del texto en posiciones absolutas */
  .p-img {
    position: absolute;
    z-index: 1;
    aspect-ratio: auto !important;
    margin: 0;
  }
  .p-img img {
    height: auto;
    width: 100%;
    object-fit: contain;
  }
  /* Bonito arriba-izquierda: MÁS a la izquierda y MÁS girado */
  .p-bonito {
    top: 2%;
    left: -32%;
    width: 105% !important;
    right: auto !important;
    transform: rotate(-18deg) !important;
    aspect-ratio: 830 / 354 !important;
  }
  /* Bivalvo/Concha: +15% más grande y BAJADO */
  .p-bivalvo {
    top: 12%;
    right: -6%;
    left: auto !important;
    width: 44% !important;
    transform: rotate(18deg) !important;
    aspect-ratio: 430 / 317 !important;
  }
  /* Calamar: bajado más y rotación a -10° */
  .p-calamar {
    bottom: -5%;
    right: -18%;
    left: auto !important;
    top: auto !important;
    width: 105% !important;
    transform: rotate(-10deg) !important;
    aspect-ratio: 778 / 426 !important;
  }
  .p-img:hover img {
    transform: scale(1.05);
  }

  /* ══════════════════════════════════════════════════
     SECTION QUALITY — cards apiladas + tipografía móvil
     ══════════════════════════════════════════════════ */
  .section-quality {
    padding: 60px 24px;
  }
  .quality-title {
    font-size: clamp(24px, 7vw, 40px);
    line-height: 1.15;
    text-wrap: balance;
    padding: 0;
  }
  .quality-composition {
    max-width: 100%;
    height: auto;
    aspect-ratio: 3 / 1;
    margin: 32px auto 48px;
  }
  .quality-cards {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0;
  }
  .quality-card {
    padding-right: 0;
  }
  .quality-num {
    font-size: clamp(60px, 18vw, 100px);
    line-height: 0.75;
    letter-spacing: -3px;
    margin-bottom: 8px;
    display: block;
  }
  .quality-card-title {
    font-size: clamp(20px, 6vw, 28px);
    line-height: 1.15;
    margin-bottom: 10px;
  }
  .quality-card-body {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.75;
  }

  /* ══════════════════════════════════════════════════
     SECTION CTA — home version (título + body + botón)
     ══════════════════════════════════════════════════ */
  .cta-title {
    font-size: clamp(28px, 8vw, 44px) !important;
    line-height: 1.15;
    text-wrap: balance;
  }
  .cta-body {
    font-size: 14px;
    line-height: 1.5;
    max-width: 320px;
    margin: 0 auto 20px;
  }
  .section-cta .btn {
    width: 100%;
    max-width: 280px;
  }

  /* ══════════════════════════════════════════════════
     UNIVERSAL — botones y elementos globales
     ══════════════════════════════════════════════════ */
  .btn {
    padding: 0 20px;
    height: 44px;
    font-size: 12px;
    letter-spacing: 0.06em;
  }

  /* ── QUIÉNES SOMOS ── */
  body.is-internal-page .qs-hero,
  .qs-hero {
    height: auto;
    min-height: 70vh;
    padding: calc(80px + 40px) 24px 40px;
  }
  /* Pargo del hero QS: los peces ocupan toda la mitad inferior
     con object-fit cover anclado abajo-derecha (los pargos están
     a la derecha del PNG) */
  .qs-hero-bg {
    object-fit: cover !important;
    object-position: right bottom;
    transform: none;
    top: auto;
    bottom: 0;
    height: 55vh;
    max-height: none;
  }
  .qs-hero-content { padding: 0; }

  .qs-valores {
    padding: 60px 24px;
  }
  .qs-valores-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
  }
  .qs-valores-list { gap: 24px; }
  .qs-valor {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  /* Junto los bloques de valores (antes 60px de margin-top heredado del desktop) */
  .qs-valor + .qs-valor {
    margin-top: 28px;
  }
  .qs-valor-title {
    font-size: clamp(40px, 13vw, 72px);
    /* Hyphens automáticos (funcionan con lang="es") + fallback */
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
  .qs-valor:last-child .qs-valor-body {
    position: static;
    margin-top: 12px;
  }

  /* Cobertura responsive */
  body.is-internal-page .qs-cobertura,
  .qs-cobertura {
    height: 80vh;
    min-height: 500px;
  }
  .qs-cobertura-content { padding: 0 24px; }
  .qs-cobertura-title { font-size: clamp(28px, 8vw, 48px); }
  /* Barcos reducidos — mitad inferior de la sección (40vh) */
  .qs-cobertura-bg { height: 40vh; }
  .qs-cobertura-overlay { height: 40vh; }
  /* Pez en la mitad superior (blanca), con su borde INFERIOR
     alineado exactamente al TOP de los barcos (a 40vh desde abajo) */
  .qs-cobertura-pez {
    top: auto;
    bottom: 40vh;
  }

  /* Red conectada */
  body.is-internal-page .qs-red,
  .qs-red {
    min-height: auto;
    padding: 50px 24px 40px;
  }
  .qs-red-title { font-size: clamp(28px, 7vw, 44px); }
  /* Móvil: 4 líneas — cada span en su línea */
  .qs-red-title span { display: block; }
  /* Timeline VERTICAL con línea central en móvil */
  .qs-puertos-timeline {
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 28px;
    padding: 12px 0 0;
    position: relative;
    width: 100%;
    margin-left: 0;
  }
  .qs-puerto {
    flex: 0 0 auto;
    width: auto;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
  /* Línea vertical central animable — sigue el ritmo del timeline
     compacto (12px top, gap 28px, sin padding bottom) */
  .qs-puertos-line {
    display: block;
    position: absolute;
    top: 20px;
    bottom: 12px;
    left: calc(50% - 0.5px);
    width: 1px;
    height: auto;
    right: auto;
    background: rgba(23, 2, 82, 0.35);
    transform-origin: top center;
    z-index: 1;
  }
  /* Nombre con "recuadro blanco" para que la línea no interfiera con la lectura */
  .qs-puerto-name {
    background: var(--white);
    padding: 4px 14px;
    position: relative;
    z-index: 3;
  }
  .qs-puerto-dot {
    margin-bottom: 0;
    z-index: 3;
    position: relative;
  }

  /* ── PRODUCTOS ── */
  .pr-catalogo,
  .pr-lista {
    padding: 50px 24px 30px;
  }
  .pr-lista { padding: 30px 24px 60px; }
  .pr-catalogo-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
  }
  .pr-catalogo-title { font-size: clamp(28px, 7vw, 44px); }
  .pr-filtros {
    flex-wrap: wrap;
    gap: 12px 20px;
    justify-content: flex-start;
  }
  .pr-filtro { font-size: 14px; }

  .pr-producto {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 0;
  }
  .pr-producto-info { order: 2; }
  .pr-producto-img { order: 1; max-height: 280px; }
  .pr-producto-img img {
    object-position: center center;
    transform: scale(1.05) !important;
    transform-origin: center;
  }
  .pr-producto-title { font-size: clamp(22px, 6vw, 28px); }
  .pr-producto-data-two { grid-template-columns: 1fr; gap: 0; }

  /* Hero productos */
  .pr-hero { padding: 100px 24px 30px; min-height: auto; }
  .pr-hero-title { font-size: clamp(28px, 8vw, 44px); }

  /* ── CONTACTO ── */
  .ct-hero { padding: 100px 24px 60px; }
  .ct-hero-title { font-size: clamp(28px, 8vw, 44px); }
  .ct-form { padding: 0 24px 60px; }
  .ct-form-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* ── CTA TRABAJEMOS JUNTOS ── */
  body.is-internal-page .section-cta {
    min-height: 50vh;
    height: auto;
  }
  .section-cta .content { padding: 0 24px; }
  .cta-title { font-size: clamp(32px, 9vw, 56px); }

  /* ── BOTONES ── */
  .btn { min-width: 180px; height: 44px; font-size: 12px; }

  /* ── FOOTER ── */
  /* ══════════════════════════════════════════════════
     FOOTER — tipografía reducida para móvil
     ══════════════════════════════════════════════════ */
  footer {
    padding: 40px 24px 20px;
  }
  .footer-top {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 32px;
  }
  .footer-logo {
    font-size: clamp(32px, 9vw, 44px);
    line-height: 1;
  }
  .footer-cta-block {
    text-align: left;
    width: 100%;
  }
  .footer-cta-label {
    font-size: 13px;
    line-height: 1.3;
    margin-bottom: 12px;
    letter-spacing: 0.04em;
  }
  .footer-cta-block .btn {
    min-width: 0 !important;
    width: 100%;
    height: 44px;
    font-size: 12px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 8px;
    padding-top: 20px;
    margin-bottom: 24px;
  }
  .footer-nav-col a {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
    letter-spacing: 0.04em;
  }
  .footer-nav-col a[style*="font-size:14px"] {
    font-size: 11px !important;
    margin-bottom: 4px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    font-size: 10px;
    letter-spacing: 0.05em;
  }
  .footer-bottom a[style*="font-size:12px"] {
    font-size: 10px !important;
  }
  .footer-bottom > div {
    flex-wrap: wrap;
    gap: 12px 20px !important;
  }
}

/* ── MOBILE PEQUEÑO (≤ 480px) ──────────────────────── */
@media (max-width: 480px) {
  /* Tipografía aún más compacta */
  .qs-valor-title { font-size: clamp(36px, 13vw, 60px); }
  .qs-cobertura-title { font-size: clamp(24px, 7vw, 36px); }

  /* Productos: imagen un poco más alta para mejor visualización */
  .pr-producto-img { max-height: 240px; }

  /* Filtros aún más compactos */
  .pr-filtro { font-size: 13px; padding: 6px 0; }
  .pr-filtros { gap: 10px 16px; }

  /* Botones ocupan más ancho */
  .btn { width: 100%; min-width: 0; }

  /* Menú móvil links un poco más pequeños */
  .nav-links a { font-size: 24px; }

  /* Hero pargo: subir más para que el texto sea legible */
  .qs-hero-bg { object-position: center 80%; }

  /* Cobertura más compacto */
  .qs-cobertura { height: 70vh; min-height: 420px; }
  .qs-cobertura-bg, .qs-cobertura-overlay { height: 60vh; }

  /* Una sola columna para puertos */
  .qs-puerto { flex: 0 0 100%; }

  /* Padding aún más reducido */
  .pr-catalogo, .pr-lista,
  .qs-valores, .qs-red,
  .section-features, .section-editorial, .section-quality,
  .products-info, .origen-content, .hero,
  footer,
  .ct-hero, .ct-form {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}


/* ══════════════════════════════════════════════════════════════════
   TABLET PORTRAIT (iPad 641-1024px): usar layout MÓVIL (más limpio
   que intentar meter con calzador el layout desktop).
   Solo el hero de QS se mantiene a 100vh (definido en el tablet
   media query anterior).
   Cobertura + Red titles con eje derecho unificado como en móvil.
   ══════════════════════════════════════════════════════════════════ */
@media (min-width: 641px) and (max-width: 1024px) {
  /* ── QS VALORES: replicar layout móvil ── */
  .qs-valores {
    padding: 60px 40px;
  }
  .qs-valores-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
    max-width: none;
  }
  .qs-valor {
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
  }
  .qs-valor + .qs-valor {
    margin-top: 28px;
  }
  .qs-valor-title {
    font-size: clamp(48px, 9vw, 80px);
    line-height: 0.9;
    letter-spacing: -0.03em;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
  .qs-valor:last-child {
    display: block;
    position: static;
  }
  .qs-valor:last-child .qs-valor-body {
    position: static;
    margin-top: 12px;
    right: auto;
    bottom: auto;
    max-width: none;
  }
  .qs-valor-body {
    font-size: 15px;
    line-height: 1.5;
    max-width: 500px;    /* fuerza wrap natural en 2-3 líneas legibles */
  }

  /* ── QS Cobertura/Red títulos: eje derecho unificado ── */
  .qs-cobertura-title,
  .qs-red-title {
    font-size: clamp(36px, 5vw, 56px);
    max-width: 560px;
    line-height: 1.1;
  }
  /* iPad: título Red Conectada en 2 líneas exactas
     "UNA RED CONECTADA CON" / "EL LITORAL PERUANO" */
  .qs-red-title span {
    display: inline;
  }
  .qs-red-title span:nth-child(3) {
    display: block;    /* fuerza salto antes de "el litoral" */
  }

  /* ══════════════════════════════════════════════════
     HOME: SECTION EDITORIAL en iPad — layout compacto 60vh
     "UNA EMPRESA / PERUANA" apiladas a la izquierda,
     aside (label + body) debajo también a la izquierda,
     luego "CONECTADA CON / EL ORIGEN" + botón.
     ══════════════════════════════════════════════════ */
  .section-editorial {
    min-height: 60vh;
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: clamp(12px, 2vh, 24px);
    text-align: left;
  }
  .ed-row-1,
  .ed-row-3 {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }
  /* Row-2 se aplana: aside y PERUANA se colocan directamente en section-editorial */
  .ed-row-2 {
    display: contents;
  }
  /* Row-4: botón y EL ORIGEN en la misma línea */
  .ed-row-4 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    text-align: left;
    width: 100%;
  }
  /* Font size con clamp — proporcional al viewport, sin overflow */
  .ed-text {
    font-size: clamp(48px, 9vw, 96px) !important;
    line-height: 0.95 !important;
    letter-spacing: -0.02em !important;
    text-align: left !important;
    width: auto !important;
    margin: 0;
  }
  .ed-text-right { text-align: right !important; }
  /* Aside a la IZQUIERDA, ARRIBA de todo (order: 1) */
  .ed-aside {
    width: 100%;
    max-width: 460px;
    padding-top: 4px;
    text-align: left;
    align-self: flex-start;
    order: 1 !important;    /* fuerza que quede al top */
  }
  /* Orden explícito de todos los elementos flex hijos de section-editorial:
     1. Aside (label + body)          — ARRIBA
     2. UNA EMPRESA
     3. PERUANA                       — justo encima de empresa
     4. CONECTADA CON
     5. Botón + EL ORIGEN             — al final */
  .ed-row-1          { order: 2 !important; }
  .ed-row-2 .ed-text { order: 3 !important; }
  .ed-row-3          { order: 4 !important; }
  .ed-row-4          { order: 5 !important; }
  .ed-label {
    font-size: 16px;
    line-height: 1.3;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: underline;
    display: block;
    margin-bottom: 10px;
  }
  .ed-body {
    font-size: 14px;
    line-height: 1.55;
    opacity: 0.72;
    text-align: left;
    max-width: none;
  }
  .ed-cta-block .btn {
    width: auto;
    max-width: none;
    min-width: 200px;
    order: 0;
    margin: 0;
  }
  .ed-row-4 .ed-text { order: 0; }

  /* ══════════════════════════════════════════════════
     SECTION PRODUCTS en iPad: peces reducidos + texto más ancho
     - Bonito y calamar -35% respecto a móvil
     - Bivalvo/concha -15% respecto a móvil
     - Info al 75% del viewport (más espacio para el texto)
     ══════════════════════════════════════════════════ */
  .products-info {
    max-width: 75% !important;   /* texto ocupa 75% del ancho del viewport */
    width: 75%;
  }
  .products-title {
    font-size: clamp(32px, 5vw, 56px);
    text-wrap: balance;
  }
  .products-body {
    font-size: 15px;
    max-width: 500px;
    margin: 0 auto 28px;
  }
  /* Bonito: 105% → 68% (-35%) */
  .p-bonito {
    top: 2%;
    left: -18%;
    width: 68% !important;
    transform: rotate(-18deg) !important;
  }
  /* Bivalvo/Concha: 44% → 37% (-15%) */
  .p-bivalvo {
    top: 12%;
    right: -4%;
    width: 37% !important;
    transform: rotate(18deg) !important;
  }
  /* Calamar: 105% → 68% (-35%) */
  .p-calamar {
    bottom: 2%;
    right: -12%;
    width: 68% !important;
    transform: rotate(-10deg) !important;
  }

  /* ══════════════════════════════════════════════════
     SECTION QUALITY en iPad: 4 puntos en grid 2x2
     ══════════════════════════════════════════════════ */
  .section-quality {
    padding: 80px 60px;
  }
  .quality-title {
    font-size: clamp(28px, 4.5vw, 44px);
    text-wrap: balance;
  }
  .quality-composition {
    max-width: 100%;
    height: auto;
    aspect-ratio: 3 / 1;
    margin: 32px auto 48px;
  }
  .quality-cards {
    grid-template-columns: 1fr 1fr;  /* 2 columnas */
    gap: 48px 60px;                   /* 48px vertical, 60px horizontal */
    padding: 0;
  }
  .quality-card {
    padding-right: 0;
  }
  .quality-num {
    font-size: clamp(56px, 10vw, 90px);
    line-height: 0.75;
  }
  .quality-card-title {
    font-size: clamp(20px, 2.8vw, 26px);
    line-height: 1.15;
    margin-bottom: 10px;
  }
  .quality-card-body {
    font-size: 14px;
    line-height: 1.5;
  }

  /* ══════════════════════════════════════════════════
     CTA en iPad
     - Home ("¿Necesitas producto pesquero…"): 70vh — texto largo
     - Interiores ("Trabajemos juntos"): 50vh — texto más corto
     ══════════════════════════════════════════════════ */
  .section-cta {
    min-height: 70vh !important;
    height: auto !important;
  }
  body.is-internal-page .section-cta {
    min-height: 50vh !important;
  }

  /* ══════════════════════════════════════════════════
     FOOTER en iPad: botón contacto tamaño estándar
     ══════════════════════════════════════════════════ */
  .footer-cta-block .btn {
    width: auto !important;
    min-width: 200px !important;
    max-width: none;
    height: 46px;
    padding: 0 28px;
    font-size: 13px;
  }
  .footer-cta-block {
    text-align: left;
  }

  /* ══════════════════════════════════════════════════
     PRODUCTOS iPad: texto e imagen lado a lado 50/50
     ══════════════════════════════════════════════════ */
  .pr-producto {
    grid-template-columns: 1fr 1fr !important;       /* 50% info / 50% imagen */
    gap: 48px;
    padding: 32px 0;
    align-items: center;
  }
  .pr-producto-info {
    order: 1 !important;    /* info a la izquierda */
  }
  .pr-producto-img {
    order: 2 !important;    /* imagen a la derecha */
    max-height: none;
    aspect-ratio: 16 / 10;
  }
  .pr-producto-img img {
    transform: scale(1.15) !important;   /* zoom natural como desktop */
    transform-origin: right center;
    object-position: right center !important;
  }
  /* Cefalópodos siguen sin zoom */
  .pr-producto[data-cat="cefalopodos"] .pr-producto-img img {
    transform: scale(1) !important;
  }
  .pr-producto-title {
    font-size: clamp(24px, 3vw, 32px);
    margin-bottom: 16px;
  }
  .pr-producto-data-two {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* ══════════════════════════════════════════════════
     HOME: HERO en iPad — bloque centrado en 90vh
     (10vh reservado para el header fijo arriba)
     ══════════════════════════════════════════════════ */
  .hero {
    min-height: 90vh;
    height: auto;
    padding: 80px 40px 40px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
  }
  .hero-title {
    font-size: clamp(32px, 5.5vw, 60px);
    line-height: 1.1;
  }
  .hero-sub {
    font-size: clamp(14px, 1.4vw, 17px);
    max-width: 560px;
  }
  .hero-fish {
    max-width: 380px;
    width: 100%;
    height: auto;
    aspect-ratio: 850 / 425;
  }
  .hero-ctas {
    flex-direction: row;    /* botones lado a lado en iPad */
    gap: 16px;
    width: auto;
    max-width: none;
  }
  .hero-ctas .btn {
    width: auto;
    min-width: 200px;
  }

  /* ══════════════════════════════════════════════════
     HOME: SECTION ORIGEN en iPad — flow real (título → pez → body)
     como flex items directos de section. height fijo 60svh, sin gap
     artificial. Pez REAL en el flujo, no absolute.
     ══════════════════════════════════════════════════ */
  .section-origen {
    height: 60vh;              /* fallback */
    height: 60svh;             /* preferido */
    min-height: 460px;
    max-height: 780px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(14px, 2svh, 28px);
    padding: clamp(24px, 4svh, 48px) clamp(24px, 5%, 60px);
    text-align: center;
    position: relative;
  }
  /* Content wrapper se disuelve — reveals suben como flex items */
  .section-origen .origen-content {
    display: contents;
    padding: 0;
  }
  .section-origen .origen-reveal:first-of-type { order: 1; z-index: 1; position: relative; }
  .section-origen .origen-fish                 { order: 2; z-index: 1; }
  .section-origen .origen-reveal:last-of-type  { order: 3; z-index: 1; position: relative; }
  .section-origen .origen-title {
    font-size: clamp(1.5rem, 3.6vw, 2.4rem);
    line-height: 1.15;
    max-width: min(94%, 640px);
    margin: 0;
  }
  .section-origen .origen-body {
    font-size: clamp(14px, 1.5vw, 17px);
    line-height: 1.5;
    max-width: min(92%, 520px);
    margin: 0;
  }
  /* Pez como flex item REAL — width 55-65% ancho con cap por altura */
  .section-origen .origen-fish {
    position: relative;
    inset: auto;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    width: min(clamp(340px, 58vw, 620px), calc(34svh * 1.6));
    max-width: 92vw;
    height: auto;
    aspect-ratio: 16 / 10;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    flex-shrink: 0;
  }
  .section-origen .origen-fish img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }
  .section-features {
    min-height: 75vh;
    height: auto;
    padding: 80px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
  }
  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 60px 60px;              /* mismo gap vertical y horizontal → cuadrícula homogénea */
    width: 100%;
    max-width: 820px;
    border-top: none;
  }
  .feature {
    padding: 0 !important;       /* sin padding: el gap del grid ya iguala márgenes */
    border-bottom: none !important;
  }
  .feature:not(:last-child)::after { display: none; }
  .feature-num {
    font-size: clamp(72px, 11vw, 110px);   /* +12px sobre antes */
    line-height: 0.75;
    margin-bottom: 16px;
    display: block;
  }
  .feature-title {
    font-size: clamp(24px, 2.8vw, 32px);   /* ligeramente mayor */
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
  }
  .feature-body {
    font-size: 15px;                        /* 14→15 más legible */
    line-height: 1.55;
    max-width: none;
  }

  /* ── QS Cobertura: sección reducida a 50vh (pez + barcos + texto) ── */
  body.is-internal-page .qs-cobertura,
  .qs-cobertura {
    height: 50vh;
    min-height: 400px;
    max-height: none;
  }
  /* Barcos reducidos -4vh */
  .qs-cobertura-bg,
  .qs-cobertura-overlay {
    height: 34vh;
  }
  /* Pez sin cambios — sigue arriba, ahora los barcos suben a él */
  .qs-cobertura-pez {
    top: 4%;
  }
  /* Título alineado al padding estándar de iPad (40px = mismo eje
     que el resto de secciones y el logo del header) */
  .qs-cobertura-content {
    padding: 0 40px;
  }
  .qs-cobertura-title {
    max-width: none;
    margin-left: 0;
    margin-right: auto;
  }

  /* ── QS Red Conectada: sección compacta ≤100vh + puertos HORIZONTALES
     como en desktop (revierte el layout vertical del móvil) ── */
  body.is-internal-page .qs-red,
  .qs-red {
    min-height: auto;
    max-height: 100vh;
    padding: 60px 40px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .qs-red-head {
    margin-bottom: 40px;
  }
  .qs-red-body {
    font-size: 14px;
    line-height: 1.5;
  }
  /* Timeline horizontal (como desktop) */
  .qs-puertos-timeline {
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
    padding: 28px 0 0;
    width: 100%;
    margin-left: 0;
  }
  .qs-puerto {
    flex: 1;
    gap: 22px;
    align-items: center;
  }
  /* Línea horizontal en la parte superior donde están los puntos */
  .qs-puertos-line {
    top: 36px;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 1px;
    transform-origin: left center;
    display: block;
  }
  /* Reset: quitar el "recuadro blanco" del móvil, nombres normales */
  .qs-puerto-name {
    background: transparent;
    padding: 0;
    font-size: clamp(14px, 1.6vw, 18px);
  }
  .qs-puerto-dot {
    margin-bottom: 0;
    width: 18px;
    height: 18px;
  }
}
