/*
  Congeladora de Mariscos AGUA — identidad "cámara glacial"
  Paleta extraída del hielo, el camarón y el azul del logo.
  Tipografía: Instrument Serif (titulares, agua) + Figtree (cuerpo).
*/

:root {
  --abyss: #021018;
  --depth: #062433;
  --tide: #0c3d52;
  --glacier: #7ee0f7;
  --ice: #d8f4fb;
  --foam: #f3fbfe;
  --mist: #9ec4d4;
  --coral: #ee6b1a;
  --sun: #efc14d;
  --glass: rgba(8, 36, 50, 0.55);
  --line: rgba(126, 224, 247, 0.22);
  --display: 'Anton', 'Arial Narrow', 'Haettenschweiler', Impact, sans-serif;
  --text: 'Figtree', system-ui, sans-serif;
  --shell: min(1180px, calc(100vw - 2.4rem));
  --gutter: max(1.2rem, calc((100vw - var(--shell)) / 2));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: var(--text);
  color: var(--ice);
  background: var(--abyss);
  line-height: 1.6;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
blockquote {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.9;
  margin: 0;
}

/* el titular se mide contra el alto util: nunca desborda el hero */
h1 {
  font-size: clamp(3.6rem, min(10vw, 16vh), 9.2rem);
}

h2 {
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
}

h3 {
  font-family: var(--text);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  font-size: 1.5rem;
  margin: 0;
}

h1 em,
h2 em,
blockquote em {
  font-style: normal;
  color: var(--glacier);
}

p {
  margin: 0 0 1rem;
}

h2 + p,
h2 + .muted,
blockquote + p {
  margin-top: 1.15rem;
}

::selection {
  background: rgba(126, 224, 247, 0.35);
  color: #fff;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 50;
  pointer-events: none;
  background: rgba(126, 224, 247, 0.08);
}

.progress i {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--glacier), var(--sun));
  box-shadow: 0 0 14px rgba(126, 224, 247, 0.6);
}

#frost {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.85;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background:
    repeating-radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.22) 0 0.6px, transparent 0.7px 3px),
    repeating-radial-gradient(circle at 78% 64%, rgba(216, 244, 251, 0.16) 0 0.5px, transparent 0.6px 4px);
}

/* Masthead ---------------------------------------------------------------- */

.mast {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.7rem var(--gutter);
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.mast.is-stuck {
  background: rgba(2, 16, 24, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
}

.mark {
  display: grid;
  place-items: center;
  padding: 0.28rem 0.55rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.mark img {
  height: 40px;
  width: auto;
}

.mark--foot {
  display: inline-grid;
  margin-bottom: 1rem;
}

.nav {
  display: flex;
  gap: 0.15rem;
  margin-left: auto;
}

.nav a {
  padding: 0.55rem 0.8rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ice);
  opacity: 0.85;
  border-radius: 999px;
  transition: background 0.2s ease, opacity 0.2s ease, color 0.2s ease;
}

.nav a:hover {
  opacity: 1;
  background: rgba(126, 224, 247, 0.1);
  color: #fff;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.05rem;
  background: var(--coral);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(238, 107, 26, 0.35);
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(238, 107, 26, 0.45);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ice);
  border-radius: 2px;
  transition: transform 0.25s var(--ease);
}

.burger.is-open span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.burger.is-open span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.45rem;
  font-family: var(--text);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.2s var(--ease), background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn svg {
  transition: transform 0.2s var(--ease);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn-ice {
  background: linear-gradient(180deg, #e8fbff 0%, var(--glacier) 100%);
  color: var(--abyss);
  box-shadow: 0 10px 30px rgba(126, 224, 247, 0.28);
}

.btn-ice:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(216, 244, 251, 0.35);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-lg {
  padding: 1.1rem 1.7rem;
  font-size: 1.02rem;
}

/* Hero / stage ------------------------------------------------------------ */

.stage {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding: 7rem var(--gutter) 6.5rem;
  overflow: hidden;
}

.stage-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.stage-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  /* apenas desenfocada: se distingue la camara, pero el texto sigue mandando.
     Arranca empañada y se despeja junto con el vaho. */
  filter: blur(1.5px) saturate(1.15) brightness(0.9);
  animation: defrost 2.8s var(--ease) both;
}

.stage-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(2, 16, 24, 0.92) 0%, rgba(2, 16, 24, 0.6) 42%, rgba(2, 16, 24, 0.12) 100%),
    linear-gradient(180deg, rgba(2, 16, 24, 0.45) 0%, rgba(2, 16, 24, 0.12) 42%, rgba(2, 16, 24, 0.82) 100%);
}

/* Vaho de camara. Tres nubes con ritmos distintos: sale el aire frio,
   sube y se disipa. Corre una sola vez al cargar. */
.fog {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.fog span {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -30%;
  height: 130%;
  border-radius: 50%;
  background: radial-gradient(
    60% 60% at 50% 60%,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(226, 248, 255, 0.55) 38%,
    rgba(200, 236, 250, 0) 72%
  );
  filter: blur(26px);
  opacity: 0;
  animation: fog-out 3.2s var(--ease) both;
}

.fog span:nth-child(2) {
  animation-duration: 4s;
  animation-delay: 0.18s;
  filter: blur(44px);
}

.fog span:nth-child(3) {
  animation-duration: 5s;
  animation-delay: 0.35s;
  filter: blur(70px);
}

@keyframes fog-out {
  0% {
    opacity: 1;
    transform: translateY(28%) scale(1.15);
  }
  35% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: translateY(-55%) scale(1.5);
  }
}

/* Fauna que nada por el hero (el JS coloca cada pieza). Va por detras del
   texto: z-index 2, y .stage-copy en 3. */
.swim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.swim img {
  position: absolute;
  top: 0;
  left: 0;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
  will-change: transform;
}

.stage-caustic {
  position: absolute;
  inset: -20%;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(40% 30% at 20% 80%, rgba(126, 224, 247, 0.18), transparent 70%),
    radial-gradient(30% 25% at 80% 20%, rgba(126, 224, 247, 0.12), transparent 70%);
  animation: caustic 12s ease-in-out infinite alternate;
}

.stage-copy {
  position: relative;
  z-index: 3;
  max-width: 44rem;
}

/* El titular entra linea por linea. Nada de clip-path ni overflow aqui: el
   recorte crea un grupo de composicion propio y Chrome lo pinta sobre un
   bloque negro cuando el canvas de nieve va en mix-blend-mode. */
h1 .hl {
  display: block;
}

/* Entra sola al cargar. Nada de depender de una clase que ponga el JS: si el
   script falla o queda cacheado, el titular no puede quedarse invisible. */
h1 .hl > span {
  display: block;
  animation: rise 0.9s var(--ease) both var(--ld, 0ms);
}

h1 .hl:nth-child(2) > span {
  --ld: 160ms;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.45em);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.2rem;
  padding: 0.4rem 0.85rem 0.4rem 0.45rem;
  background: rgba(8, 36, 50, 0.45);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--glacier);
}

.chip img {
  width: 22px;
  height: 22px;
  animation: spin-slow 18s linear infinite;
}

.lede {
  position: relative;
  max-width: 38rem;
  margin: 1.8rem 0 0;
  padding: 1.15rem 1.4rem 1.15rem 1.5rem;
  border-left: 3px solid var(--glacier);
  background: rgba(2, 16, 24, 0.42);
  backdrop-filter: blur(14px);
  color: var(--foam);
  font-size: clamp(1.2rem, 1.45vw, 1.6rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.005em;
  box-shadow: 0 18px 40px rgba(2, 16, 24, 0.35);
}

.stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
}








.drop {
  position: absolute;
  left: var(--gutter);
  bottom: 1.6rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--mist);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}

.drop span {
  width: 18px;
  height: 28px;
  border: 1px solid var(--glacier);
  border-radius: 12px;
  position: relative;
}

.drop span::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 6px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  background: var(--glacier);
  border-radius: 50%;
  animation: drip 1.6s var(--ease) infinite;
}

/* Dock -------------------------------------------------------------------- */

.dock {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin: -3.4rem var(--gutter) 0;
}

.dock-cell {
  padding: 1.25rem 1.3rem 1.15rem;
  background: rgba(6, 36, 51, 0.78);
  border: 1px solid var(--line);
  border-radius: 20px;
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.dock-cell b {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: #fff;
  line-height: 1;
}

.dock-cell b span {
  font: inherit;
  color: inherit;
}

.dock-cell > span {
  display: block;
  margin-top: 0.35rem;
  color: var(--mist);
  font-size: 0.88rem;
}

/* Shared type ------------------------------------------------------------- */

.eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
}

.eyebrow--light {
  color: var(--sun);
}

.muted {
  font-size: 1.1rem;
  max-width: 36rem;
  color: var(--mist);
  font-size: 1.05rem;
}

.muted--light {
  color: rgba(216, 244, 251, 0.78);
}

/* Product reel ------------------------------------------------------------ */

.reel {
  padding: 6.5rem 0 4.5rem;
}

.reel-head {
  padding: 0 var(--gutter) 2rem;
}

.reel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 420px);
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) 1.4rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.reel-track::-webkit-scrollbar {
  display: none;
}

.slide {
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
  position: relative;
  scroll-snap-align: start;
  height: min(68vh, 520px);
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.slide:hover img {
  transform: scale(1.06);
}

.slide--portrait img {
  object-position: center 78%;
}

.slide-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 4.5rem 1.3rem 1.3rem;
  background: linear-gradient(180deg, transparent, rgba(2, 16, 24, 0.92));
}

/* Mas especifico que .slide img, que estira toda imagen de la tarjeta */
.slide .h3-icon,
.h3-icon {
  display: inline-block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  vertical-align: -0.45em;
  margin-right: 0.4rem;
  transition: transform 0.4s var(--ease);
}

.slide:hover .h3-icon {
  transform: rotate(-8deg) scale(1.1);
}

.slide-meta h3 {
  margin: 0.35rem 0 0.4rem;
  color: #fff;
}

.slide-meta p {
  margin: 0;
  color: var(--mist);
  font-size: 0.92rem;
}

.slide-meta small {
  display: inline-block;
  margin-top: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--glacier);
}

.flag {
  display: inline-flex;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: rgba(126, 224, 247, 0.16);
  color: var(--glacier);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.flag--mx {
  background: rgba(239, 193, 77, 0.16);
  color: var(--sun);
}

.flag--both {
  background: rgba(238, 107, 26, 0.16);
  color: #ffb07a;
}

.reel-bar {
  height: 3px;
  margin: 0 var(--gutter);
  background: rgba(126, 224, 247, 0.12);
  border-radius: 99px;
  overflow: hidden;
}

.reel-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--glacier), var(--coral));
  border-radius: inherit;
  transform: scaleX(0.18);
  transform-origin: left;
}

[hidden] {
  display: none !important;
}

/* Cold chamber ------------------------------------------------------------ */

.chamber {
  position: relative;
  isolation: isolate;
  margin-top: 2rem;
  padding: 6rem var(--gutter) 5.5rem;
  overflow: hidden;
}

.chamber-bg,
.chamber-frost {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.chamber-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.55);
}

.chamber-frost {
  background:
    linear-gradient(180deg, rgba(2, 16, 24, 0.55), rgba(6, 36, 51, 0.82)),
    radial-gradient(70% 50% at 50% 0%, rgba(126, 224, 247, 0.18), transparent 60%);
  backdrop-filter: blur(2px);
}

.chamber-inner {
  max-width: var(--shell);
  margin: 0 auto;
}

.path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 2.6rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: node;
}

.slide:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.4);
}

.path-node:hover {
  border-color: rgba(126, 224, 247, 0.5);
  transform: translateY(-4px);
}

.path-node {
  position: relative;
  padding: 1.4rem 1.2rem 1.3rem;
  background: rgba(2, 16, 24, 0.45);
  border: 1px solid var(--line);
  border-radius: 22px;
  backdrop-filter: blur(12px);
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}

.path-node::after {
  counter-increment: node;
  content: '0' counter(node);
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  font-family: var(--display);
  font-size: 1.3rem;
  color: rgba(126, 224, 247, 0.45);
}

.path-node img {
  width: 52px;
  height: 52px;
  margin-bottom: 0.85rem;
  animation: bob 4s ease-in-out infinite;
}

.path-node h3 {
  margin: 0 0 0.4rem;
  color: #fff;
}

.path-node p {
  margin: 0;
  color: var(--mist);
  font-size: 0.92rem;
}

/* Origin / plant ---------------------------------------------------------- */

.origin {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-areas:
    'frame sheet'
    'shot-a shot-b'
    'shot-c chapters';
  gap: 1.1rem;
  padding: 5.5rem var(--gutter) 4rem;
}

.origin-frame {
  grid-area: frame;
  position: relative;
  min-height: 340px;
  border-radius: 28px;
  overflow: hidden;
}

.origin-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.origin-cap {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  margin: 0;
  padding: 0.4rem 0.75rem;
  background: rgba(2, 16, 24, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.origin-sheet {
  grid-area: sheet;
  align-self: end;
  padding: 1.8rem 1.7rem 1.6rem;
  margin-top: 2.4rem;
  background: rgba(6, 36, 51, 0.72);
  border: 1px solid var(--line);
  border-radius: 28px;
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.origin-sheet h2 {
  font-size: clamp(1.9rem, 2.7vw, 2.8rem);
}

.origin-sheet p:last-child {
  margin: 0.9rem 0 0;
  color: var(--mist);
}

.origin-shot {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--depth);
}

.origin-shot img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.origin-shot--a { grid-area: shot-a; }
.origin-shot--b { grid-area: shot-b; }
.origin-shot--c { grid-area: shot-c; }

/* La del operador se ve COMPLETA: manda su propia proporcion y no se recorta.
   La de al lado se estira para emparejar el renglon. */
.origin-shot--b img {
  height: auto;
  aspect-ratio: 549 / 577;
  object-fit: contain;
  background: var(--depth);
}

.origin-shot--a {
  display: flex;
  flex-direction: column;
}

.origin-shot--a img {
  flex: 1 1 auto;
  height: auto;
  min-height: 240px;
}

.origin-shot--c img {
  height: 360px;
  object-position: center 32%;
}

.origin-shot figcaption {
  padding: 0.7rem 1rem 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
}

.chapters {
  grid-area: chapters;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 0.8rem;
}

.chapter {
  padding: 1.2rem 1.25rem 1.15rem;
  background: rgba(6, 36, 51, 0.55);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: transform 0.25s var(--ease), border-color 0.25s ease, background 0.25s ease;
}

.chapter:hover {
  transform: translateY(-4px);
  border-color: rgba(126, 224, 247, 0.45);
  background: rgba(12, 61, 82, 0.6);
}

.chapter span {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--glacier);
}

.chapter h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  color: #fff;
}

.chapter p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--mist);
}

/* Process belt ------------------------------------------------------------ */

.line {
  padding: 4.5rem 0 5rem;
  background:
    radial-gradient(80% 50% at 50% 0%, rgba(12, 61, 82, 0.55), transparent 70%),
    var(--abyss);
}

.line-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  align-items: end;
  gap: 1.5rem 2.5rem;
  padding: 0 var(--gutter) 2rem;
}

.line-intro .muted {
  margin: 0;
  padding-bottom: 0.4rem;
}

.line-intro .switch {
  grid-column: 1 / -1;
  margin-top: 0;
}

.switch,
.chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.3rem;
  padding: 0.28rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.switch button,
.chips button {
  border: 0;
  background: transparent;
  color: var(--mist);
  font-family: var(--text);
  font-size: 0.88rem;
  font-weight: 650;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.switch button.is-on,
.chips button.is-on {
  background: var(--glacier);
  color: var(--abyss);
}

.belt {
  padding: 0.4rem var(--gutter) 0.8rem;
}

.stations {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.6rem 1.7rem;
  margin: 0;
  padding: 1.6rem 0 0.4rem;
  list-style: none;
}

.stations li {
  position: relative;
  padding-right: 0.8rem;
}

.stations li::before {
  content: '';
  position: absolute;
  top: -1.05rem;
  left: 0;
  right: -1.7rem;
  height: 2px;
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--glacier), rgba(126, 224, 247, 0.12));
  transform: scaleX(0);
  transition: transform 0.7s var(--ease) var(--d, 0ms);
}

.stations li.is-in::before {
  transform: scaleX(1);
}

/* el ultimo de cada renglon no arrastra la linea al vacio */
.stations li:nth-child(4n)::before {
  right: 0;
}

.stations li::after {
  content: '';
  position: absolute;
  top: -1.28rem;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--glacier);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(126, 224, 247, 0.18);
  transform: scale(0);
  transition: transform 0.5s var(--ease) var(--d, 0ms);
}

.stations li.is-in::after {
  transform: scale(1);
}

.stations b {
  display: block;
  font-family: var(--display);
  font-size: 1.8rem;
  letter-spacing: 0.02em;
  color: var(--sun);
  margin-bottom: 0.3rem;
}

.stations span {
  color: var(--ice);
  font-size: 1rem;
}

/* Tallas ------------------------------------------------------------------ */

.gauge {
  padding: 5rem var(--gutter) 4.5rem;
  background:
    linear-gradient(180deg, rgba(216, 244, 251, 0.04), transparent 30%),
    var(--depth);
}

.gauge-intro {
  margin-bottom: 1.8rem;
}

.gauge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: start;
  gap: 1.2rem;
}

.sheet-title {
  margin: 0;
  padding: 1rem 1.2rem;
  font-size: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.sheet-title span {
  font-family: var(--text);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
}

.sheet {
  overflow: auto;
  background: rgba(2, 16, 24, 0.45);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.sizes {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.sizes th {
  text-align: left;
  padding: 0.85rem 1.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
  border-bottom: 1px solid var(--line);
}

.sizes td {
  padding: 0.55rem 1.2rem;
  border-top: 1px solid rgba(126, 224, 247, 0.08);
}

.sizes td.grams {
  font-variant-numeric: tabular-nums;
  color: var(--glacier);
  font-weight: 650;
}

.sizes tbody tr:hover {
  background: rgba(126, 224, 247, 0.06);
}

.size-visual {
  width: 110px;
  padding-right: 1.1rem;
}

.size-visual img {
  width: calc(var(--shrimp, 0.5) * 78px);
  margin-left: auto;
  transform-origin: right center;
  transform: scaleX(0.12);
  opacity: 0;
  transition: transform 0.55s var(--ease) var(--shrimp-delay, 0ms),
    opacity 0.35s ease var(--shrimp-delay, 0ms);
}

.sheet.is-in .size-visual img,
.sheet.is-on.is-in .size-visual img {
  transform: none;
  opacity: 1;
}

.sizes tbody tr:hover .size-visual img {
  transform: scale(1.1) rotate(-6deg);
  transition-delay: 0ms;
}

/* Crew -------------------------------------------------------------------- */

.crew {
  position: relative;
  min-height: 86vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  padding: 6rem var(--gutter) 4.5rem;
  overflow: hidden;
}

.crew-photo,
.crew-veil {
  position: absolute;
  inset: 0;
}

.crew-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.crew-veil {
  background:
    linear-gradient(90deg, rgba(2, 16, 24, 0.88) 0%, rgba(2, 16, 24, 0.55) 55%, rgba(2, 16, 24, 0.25) 100%),
    linear-gradient(180deg, rgba(2, 16, 24, 0.2), rgba(2, 16, 24, 0.75));
}

.crew-copy {
  position: relative;
  z-index: 1;
  max-width: 36rem;
}

.crew-copy blockquote {
  font-size: clamp(1.7rem, 3.2vw, 2.7rem);
  color: #fff;
  margin-bottom: 1rem;
}

.values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.3rem 0 1rem;
}

.values span {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 16, 24, 0.35);
  backdrop-filter: blur(8px);
  font-size: 0.85rem;
  font-weight: 600;
}

.crew-aside {
  color: var(--mist);
  font-size: 0.95rem;
}

.crew-side {
  position: relative;
  z-index: 1;
  margin: 0;
  justify-self: end;
  width: min(280px, 100%);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.crew-side img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

/* Contact ----------------------------------------------------------------- */

.signal {
  padding: 5rem var(--gutter) 4.5rem;
}

.signal-card {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(1.8rem, 4vw, 3rem);
  background:
    radial-gradient(80% 80% at 100% 0%, rgba(126, 224, 247, 0.16), transparent 50%),
    rgba(6, 36, 51, 0.72);
  border: 1px solid var(--line);
  border-radius: 32px;
  backdrop-filter: blur(18px);
}

.signal-card .btn {
  margin: 0.4rem 0 1.8rem;
}

.buoys {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
}

.buoys dt {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 0.3rem;
}

.buoys dd {
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  color: #fff;
}

.buoys a {
  color: var(--glacier);
  text-decoration: none;
}

/* Footer / WA ------------------------------------------------------------- */

.colophon {
  padding: 2.4rem var(--gutter) 5.5rem;
  border-top: 1px solid var(--line);
  color: var(--mist);
  font-size: 0.92rem;
}

.legal {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wa {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 35;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: #1fad4a;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(31, 173, 74, 0.4);
  transition: transform 0.2s var(--ease);
}

.wa:hover {
  transform: translateY(-3px) scale(1.04);
}

/* Motion ------------------------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
  transition: opacity 0.8s var(--ease) var(--d, 0ms),
    transform 0.8s var(--ease) var(--d, 0ms),
    filter 0.8s var(--ease) var(--d, 0ms);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

@keyframes defrost {
  0% {
    filter: blur(16px) saturate(0.7) brightness(1.25);
    transform: scale(1.09);
  }
  100% {
    filter: blur(1.5px) saturate(1.15) brightness(0.9);
    transform: scale(1.04);
  }
}

@keyframes caustic {
  from { transform: translate3d(-2%, 1%, 0) scale(1); }
  to { transform: translate3d(3%, -2%, 0) scale(1.08); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes drip {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .fog,
  .swim {
    display: none;
  }

  .reveal,
  h1 .hl > span,
  .stage-photo img,
  .path-node img,
  .chip img,
  .size-visual img {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    filter: none;
    transform: none;
  }
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 1080px) {
  .origin {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      'frame frame'
      'sheet sheet'
      'shot-a shot-b'
      'shot-c chapters';
  }

  .origin-sheet {
    margin-top: -4.5rem;
    margin-left: 1.2rem;
    margin-right: 1.2rem;
  }

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

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

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

  .crew-side {
    display: none;
  }
}

@media (max-width: 860px) {
  .burger {
    display: flex;
    margin-left: auto;
  }

  .pill {
    display: none;
  }

  .nav {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: var(--gutter);
    right: var(--gutter);
    display: none;
    flex-direction: column;
    padding: 0.6rem;
    background: rgba(2, 16, 24, 0.94);
    border: 1px solid var(--line);
    border-radius: 18px;
    backdrop-filter: blur(16px);
  }

  .nav.is-open {
    display: flex;
  }

  .dock {
    grid-template-columns: 1fr 1fr;
    margin-top: -2.2rem;
  }

  .stage {
    padding-bottom: 9rem;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: clamp(2.6rem, 12vw, 3.6rem);
  }

  .mark img {
    height: 32px;
  }

  .dock,
  .path,
  .chapters,
  .buoys {
    grid-template-columns: 1fr;
  }

  .origin {
    grid-template-columns: 1fr;
    grid-template-areas:
      'frame'
      'sheet'
      'shot-a'
      'shot-b'
      'shot-c'
      'chapters';
  }

  .origin-sheet {
    margin: -3.2rem 0.6rem 0;
  }

  .origin-shot--c img,
  .origin-shot img {
    height: 220px;
  }

  .origin-shot--b img {
    height: auto;
  }

  .stage-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .switch,
  .chips {
    border-radius: 18px;
  }

  .reel-track {
    grid-auto-columns: 82vw;
  }

  .slide {
    height: 72vw;
    min-height: 320px;
  }
}
