/* ==========================================================================
   CASERÍO BOOKS — Sistema visual
   Dirección: "El caserío en la sala oscura". Editorial cinematográfico:
   la oscuridad de la sala (Azul Noche), la luz de respiro (Gris Hielo),
   la estructura del celuloide (perforaciones del logo) y la colina turquesa.
   ========================================================================== */

:root {
  /* Paleta del Brandbook */
  --marine: #0B2B5E;
  --teal: #008C99;
  --night: #05162B;
  --ice: #F0F6F7;

  /* Derivados */
  --teal-bright: #19B3C1;
  --night-2: #0A2140;
  --ink: #05162B;
  --ice-dim: rgba(240, 246, 247, 0.72);
  --ice-faint: rgba(240, 246, 247, 0.14);
  --marine-faint: rgba(11, 43, 94, 0.14);

  /* Tipografía */
  --f-display: "Poppins", "Helvetica Neue", sans-serif;
  --f-body: "Montserrat", "Helvetica Neue", sans-serif;
  --f-mono: "Montserrat", "Helvetica Neue", sans-serif;

  /* Ritmo */
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --nav-h: 84px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--night);
  color: var(--ice);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--teal); color: #fff; }

/* Grano de película sobre todo el sitio */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Utilidades ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.slate {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-bright);
}
.slate::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
.light .slate { color: var(--teal); }

.display {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0;
}
.display em { font-style: italic; font-weight: 500; color: var(--teal-bright); }
.light .display em { color: var(--teal); }

.h-xxl { font-size: clamp(44px, 8vw, 128px); }
.h-xl  { font-size: clamp(36px, 5.4vw, 86px); }
.h-l   { font-size: clamp(30px, 3.8vw, 58px); }
.h-m   { font-size: clamp(24px, 2.6vw, 38px); }

.lede {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 300;
  line-height: 1.55;
  color: var(--ice-dim);
  max-width: 38ch;
}
.light .lede { color: rgba(5, 22, 43, 0.72); }

.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }

/* Secciones claras (Gris Hielo) */
.light { background: var(--ice); color: var(--ink); }
.marine { background: var(--marine); }

section { position: relative; }
.pad { padding: clamp(88px, 12vw, 176px) 0; }
.pad-s { padding: clamp(64px, 8vw, 112px) 0; }

/* Tira de perforaciones (eco del logo) */
.film-edge {
  height: 26px;
  background: var(--edge-bg, var(--marine));
  position: relative;
}
.film-edge::before {
  content: "";
  position: absolute;
  inset: 7px 0;
  background: repeating-linear-gradient(90deg, transparent 0 14px, var(--edge-hole, var(--night)) 14px 30px, transparent 30px 44px);
}

/* ---------- Botones ---------- */
.btn {
  --b: var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 28px;
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid var(--b);
  background: var(--b);
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ice);
  transform: translateY(101%);
  transition: transform .5s var(--ease);
  z-index: -1;
  border-radius: inherit;
}
.btn:hover { color: var(--night); border-color: var(--ice); }
.btn:hover::before { transform: translateY(0); }
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.btn--ghost { background: transparent; border-color: var(--ice-faint); color: var(--ice); }
.light .btn--ghost { border-color: var(--marine-faint); color: var(--marine); }
.light .btn:hover { color: #fff; border-color: var(--marine); }
.light .btn::before { background: var(--marine); }

.link {
  font-weight: 600;
  text-decoration: none;
  color: var(--teal-bright);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .4s var(--ease);
  padding-bottom: 2px;
}
.light .link { color: var(--teal); }
.link:hover { background-size: 100% 1px; }

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

/* ---------- Navegación ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  transition: background .4s var(--ease), border-color .4s var(--ease), height .4s var(--ease);
  border-bottom: 1px solid transparent;
}
/* El desenfoque va en un pseudo-elemento: si se aplica al <nav>, el menú móvil (fixed) queda atrapado dentro */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(5, 22, 43, 0.86);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.nav.is-scrolled::before { opacity: 1; }
.nav.is-scrolled {
  border-color: var(--ice-faint);
  height: 68px;
}
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav__logo img { height: 56px; width: auto; transition: height .4s var(--ease); }
.nav.is-scrolled .nav__logo img { height: 46px; }
.nav__logo span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; color: var(--ice-dim); text-transform: uppercase; }

/* Selector de idioma: desplegable junto al logo */
.lang { position: relative; margin-right: auto; }
.lang > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 9px 12px 9px 11px; border: 1px solid var(--ice-faint); border-radius: 999px; background: rgba(5, 22, 43, .35); font-size: 11px; font-weight: 600; letter-spacing: .08em; line-height: 1; color: var(--ice); transition: background .3s var(--ease), border-color .3s; }
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary:hover, .lang[open] > summary { background: rgba(240, 246, 247, .08); border-color: rgba(240, 246, 247, .3); }
.lang__chev { width: 10px; height: 10px; transition: transform .3s var(--ease); }
.lang[open] .lang__chev { transform: rotate(180deg); }
.lang svg.flag, .lang__opt svg { width: 18px; height: 12px; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(240, 246, 247, .18); }
.lang__menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 168px; padding: 6px; border-radius: 14px; background: var(--night-2); border: 1px solid var(--ice-faint); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); display: grid; gap: 2px; z-index: 60; }
.lang__opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; font-size: 13px; font-weight: 500; line-height: 1; color: var(--ice-dim); text-decoration: none; transition: background .25s, color .25s; }
.lang__opt:hover { background: rgba(240, 246, 247, .08); color: var(--ice); }
.lang__opt[aria-current] { color: var(--ice); background: rgba(0, 140, 153, .22); }
.lang__opt[aria-current]::after { content: "✓"; margin-left: auto; color: var(--teal-bright); font-size: 12px; }
@media (max-width: 480px) {
  .nav .wrap { gap: 12px; }
  .nav__logo img { height: 42px; }
  .lang > summary { padding: 8px 10px; font-size: 10px; }
}

.nav__links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ice-dim);
  position: relative;
  transition: color .3s;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ice); }
.nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -10px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--teal-bright);
  transform: translateX(-50%);
}
.nav__cta { padding: 12px 20px; font-size: 14px; }

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--ice-faint);
  color: var(--ice);
  border-radius: 999px;
  width: 48px; height: 48px;
  cursor: pointer;
}
.nav__toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 4px auto; transition: transform .3s var(--ease), opacity .3s; }
.nav-open .nav__toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav__toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 1180px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 18px;
    padding: 0 var(--gutter);
    background: var(--night);
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform .6s var(--ease), visibility 0s linear .6s;
    z-index: -1;
  }
  .nav-open .nav__links { visibility: visible; transition: transform .6s var(--ease), visibility 0s; }
  .nav-open .nav__links { transform: translateY(0); }
  .nav__links a { font-family: var(--f-display); font-size: clamp(26px, 7.4vw, 40px); line-height: 1.15; color: var(--ice); font-weight: 600; }
  .nav__links a[aria-current="page"] { color: var(--teal-bright); }
  .nav__links .nav__cta[aria-current="page"] { color: #fff; }
  .nav__links a[aria-current="page"]::after { display: none; }
  .nav__links li:last-child { margin-top: 18px; }
  .nav__links .nav__cta { font-family: var(--f-body); font-size: 16px; }
  .nav__logo span { display: none; }
}

/* ---------- Hero portada ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 48px) 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 78% 40%, rgba(0, 140, 153, 0.18), transparent 70%),
    radial-gradient(50% 60% at 10% 100%, rgba(11, 43, 94, 0.7), transparent 70%),
    var(--night);
}
.hero__grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 4.5vw, 80px);
  align-items: center;
}
.hero__text { container-type: inline-size; }
/* Título en 4 líneas fijas: el tamaño se ajusta al ancho de la columna (--hfit según idioma) */
.hero h1 { margin-top: 28px; font-size: clamp(34px, var(--hfit, 12.6cqi), 88px); }
html[lang="ca"] .hero h1 { --hfit: 12.2cqi; }
html[lang="eu"] .hero h1 { --hfit: 9.9cqi; }
html[lang="en"] .hero h1 { --hfit: 9.5cqi; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; white-space: nowrap; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
.hero h1 .line:nth-child(4) > span { animation-delay: .36s; }
@keyframes rise { to { transform: translateY(0); } }

.hero__foot { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 28px 44px; align-items: flex-end; }
.hero__foot .lede { margin: 0; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.fade-in { opacity: 0; animation: fade 1.2s var(--ease) .55s forwards; }
.fade-in-2 { opacity: 0; animation: fade 1.2s var(--ease) .8s forwards; }
@keyframes fade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Visor de cámara */
.viewfinder {
  position: relative;
  aspect-ratio: 16 / 9;
  width: auto;
  max-width: none;
  justify-self: stretch;
  opacity: 0;
  animation: fade 1.4s var(--ease) .35s forwards;
}
.viewfinder__img {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 6px;
}
.viewfinder__img video { width: 100%; height: 100%; object-fit: cover; display: block; }
.viewfinder__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: slowzoom 18s ease-in-out infinite alternate; filter: saturate(.92) contrast(1.04); }
@keyframes slowzoom { to { transform: scale(1.14) translateY(-2%); } }
.viewfinder::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(var(--ice), var(--ice)) top left / 26px 1.5px,
    linear-gradient(var(--ice), var(--ice)) top left / 1.5px 26px,
    linear-gradient(var(--ice), var(--ice)) top right / 26px 1.5px,
    linear-gradient(var(--ice), var(--ice)) top right / 1.5px 26px,
    linear-gradient(var(--ice), var(--ice)) bottom left / 26px 1.5px,
    linear-gradient(var(--ice), var(--ice)) bottom left / 1.5px 26px,
    linear-gradient(var(--ice), var(--ice)) bottom right / 26px 1.5px,
    linear-gradient(var(--ice), var(--ice)) bottom right / 1.5px 26px;
  background-repeat: no-repeat;
  opacity: .85;
}
.viewfinder__hud {
  position: absolute;
  z-index: 3;
  left: 30px; right: 30px;
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ice);
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.viewfinder__hud--top { top: 28px; }
.viewfinder__hud--bot { bottom: 28px; }
.viewfinder__hud--bot > :last-child { visibility: hidden; } /* queda bajo el sello */
.rec { display: inline-flex; align-items: center; gap: 8px; }
.rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #E5484D; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.viewfinder__badge {
  position: absolute;
  z-index: 4;
  right: -40px;
  bottom: -40px;
  width: 132px; height: 132px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: 0 20px 60px -20px rgba(0, 140, 153, .8);
}
.viewfinder__badge b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 46px; line-height: .8; }
.viewfinder__badge small { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.viewfinder__badge svg { position: absolute; inset: 0; animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  /* Móvil: título, texto, vídeo y, después, los botones */
  .hero__grid { grid-template-columns: 1fr; gap: 0; align-content: start; }
  .hero__text, .hero__foot { display: contents; }
  .hero__text > .slate { order: 1; }
  .hero h1 { order: 2; font-size: min(var(--hfit-m, 11.5vw), 64px); }
  html[lang="ca"] .hero h1 { --hfit-m: 11.2vw; }
  html[lang="eu"] .hero h1 { --hfit-m: 9.1vw; }
  html[lang="en"] .hero h1 { --hfit-m: 8.6vw; }
  .hero__foot .lede { order: 3; margin-top: 26px; }
  .viewfinder { order: 4; justify-self: stretch; width: auto; max-width: none; margin: 34px 0 0; }
  .hero__ctas { order: 5; margin: 34px 0 8px; }
  .viewfinder__badge { width: 78px; height: 78px; right: -8px; bottom: -26px; }
  .viewfinder__badge b { font-size: 26px; }
  .viewfinder__badge small { font-size: 7px; letter-spacing: .1em; }
  .viewfinder__hud { left: 22px; right: 22px; font-size: 9px; }
  .viewfinder__hud--top { top: 20px; }
  .viewfinder__hud--bot { bottom: 20px; }
  .viewfinder::before { inset: 10px; }
}

/* ---------- Marquesina ---------- */
.marquee {
  border-top: 1px solid var(--ice-faint);
  border-bottom: 1px solid var(--ice-faint);
  margin-top: clamp(48px, 7vw, 96px);
  overflow: hidden;
  white-space: nowrap;
  padding: 20px 0;
}
.marquee__track { display: inline-flex; gap: 48px; animation: marquee 40s linear infinite; }
.marquee__track span { font-family: var(--f-display); font-size: clamp(20px, 2.2vw, 30px); font-weight: 500; font-style: italic; color: var(--ice-dim); display: inline-flex; align-items: center; gap: 48px; }
.marquee__track span::after { content: "✦"; font-style: normal; font-size: .5em; color: var(--teal-bright); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Encabezado de página interior ---------- */
.page-head {
  padding: calc(var(--nav-h) + clamp(64px, 10vw, 140px)) 0 clamp(56px, 8vw, 110px);
  background:
    radial-gradient(50% 70% at 85% 0%, rgba(0, 140, 153, 0.16), transparent 70%),
    var(--night);
  position: relative;
  overflow: hidden;
}
.page-head__grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.page-head h1 { margin-top: 26px; }
.page-head .lede { margin-top: 30px; }
.page-head__num {
  font-family: var(--f-display);
  font-size: clamp(100px, 16vw, 240px); font-weight: 700;
  line-height: .75;
  color: transparent;
  -webkit-text-stroke: 1px rgba(240, 246, 247, 0.18);
  user-select: none;
}
@media (max-width: 760px) { .page-head__grid { grid-template-columns: 1fr; } .page-head__num { display: none; } }

/* ---------- Colina (eco de la colina turquesa del logo) ---------- */
.hill { display: block; width: 100%; height: clamp(50px, 8vw, 120px); margin-bottom: -1px; }
.hill path { fill: var(--hill, var(--ice)); }

/* ---------- Pilares ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--marine-faint); }
.pillar { padding: 40px 36px 48px 0; border-right: 1px solid var(--marine-faint); }
.pillar + .pillar { padding-left: 36px; }
.pillar:last-child { border-right: 0; }
.pillar__n { font-family: var(--f-mono); font-size: 12px; color: var(--teal); letter-spacing: .12em; }
.pillar h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.12; margin: 36px 0 18px; color: var(--marine); }
.pillar p { margin: 0; color: rgba(5, 22, 43, .72); font-weight: 300; max-width: 34ch; }
.pillar__icon { width: 44px; height: 44px; color: var(--teal); }
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 36px 0; border-right: 0; border-bottom: 1px solid var(--marine-faint); }
}

.split-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 80px; align-items: end; margin-bottom: clamp(48px, 7vw, 96px); }
.split-head .lede { justify-self: end; }
@media (max-width: 860px) { .split-head { grid-template-columns: 1fr; } .split-head .lede { justify-self: start; } }

/* ---------- Contacto rápido / tira de fotos ---------- */
.reel {
  display: grid;
  grid-template-columns: 1.1fr .9fr 1fr;
  gap: 16px;
  align-items: start;
}
.reel figure { margin: 0; position: relative; overflow: hidden; border-radius: 4px; background: var(--night-2); }
.reel figure:nth-child(2) { margin-top: 18%; }
.reel figure:nth-child(3) { margin-top: 6%; }
.reel img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: grayscale(.25); }
.reel figure:hover img { transform: scale(1.04); filter: none; }
.reel figcaption {
  position: absolute; left: 14px; bottom: 12px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--ice);
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
@media (max-width: 760px) {
  .reel { grid-template-columns: 1fr 1fr; }
  .reel figure:nth-child(3) { display: none; }
}

/* ---------- Packs ---------- */
.packs { border-top: 1px solid var(--marine-faint); }
.packs__note { margin: 28px 0 0; max-width: 760px; font-size: 13px; line-height: 1.6; color: rgba(5, 22, 43, .6); }
.pack {
  display: grid;
  grid-template-columns: 70px minmax(0, 3fr) minmax(0, 4fr) minmax(0, 2fr);
  gap: 24px 40px;
  padding: 44px 0;
  border-bottom: 1px solid var(--marine-faint);
  position: relative;
  transition: background .5s var(--ease);
}
.pack::before {
  content: "";
  position: absolute;
  left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1); top: 0; bottom: 0;
  background: rgba(0, 140, 153, 0.05);
  opacity: 0;
  transition: opacity .4s;
  z-index: 0;
}
.pack:hover::before { opacity: 1; }
.pack > * { position: relative; z-index: 1; }
.pack__n { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; color: var(--teal); padding-top: 10px; }
.pack__name { font-family: var(--f-display); font-size: clamp(28px, 2.6vw, 40px); line-height: 1.05; color: var(--marine); margin: 0; font-weight: 600; letter-spacing: -.02em; }
.pack__tag { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-top: 14px; }
.pack__ideal { margin: 0 0 18px; font-weight: 500; color: var(--ink); }
.pack ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pack li { font-weight: 300; color: rgba(5, 22, 43, .78); padding-left: 26px; position: relative; font-size: 16px; }
.pack li::before { content: ""; position: absolute; left: 0; top: .78em; width: 14px; height: 1px; background: var(--teal); }
.pack li.gift { color: var(--marine); font-weight: 500; }
.pack li.gift::before { content: "✦"; background: none; top: 0; width: auto; height: auto; color: var(--teal); font-size: 12px; }
.pack__price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.pack__price b { font-family: var(--f-display); font-weight: 600; font-size: clamp(40px, 4vw, 60px); line-height: 1; color: var(--marine); letter-spacing: -.02em; }
.pack__price b sup { font-size: .42em; vertical-align: top; margin-left: 4px; position: relative; top: .2em; }
.pack__iva { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(11, 43, 94, .6); }
.pack__save { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: #fff; background: var(--teal); padding: 5px 10px; border-radius: 999px; text-transform: uppercase; }
.pack__price .link { margin-top: auto; padding-top: 18px; }
.pack--star .pack__name::after {
  content: attr(data-badge);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 14px;
  padding: 5px 10px;
  border: 1px solid var(--teal);
  color: var(--teal);
  border-radius: 999px;
  position: relative;
  top: -.5em;
  white-space: nowrap;
}
@media (max-width: 980px) {
  .pack { grid-template-columns: 1fr; gap: 18px; padding: 36px 0; }
  .pack__n { padding: 0; }
  .pack__price { text-align: left; align-items: flex-start; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px; }
  .pack__price .link { margin: 0 0 0 auto; padding: 0; }
}

/* Packs: versión compacta en portada */
.pack-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--ice-faint); border: 1px solid var(--ice-faint); }
.pack-card {
  background: var(--night);
  padding: 32px 26px 28px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  transition: background .5s var(--ease);
  position: relative;
}
.pack-card:hover { background: var(--marine); }
.pack-card .mono { color: var(--teal-bright); }
.pack-card h3 { font-family: var(--f-display); font-weight: 600; font-size: 26px; line-height: 1.1; margin: 22px 0 12px; }
.pack-card p { margin: 0; font-size: 15px; color: var(--ice-dim); font-weight: 300; }
.pack-card .price { margin-top: auto; padding-top: 28px; font-family: var(--f-display); font-size: 40px; font-weight: 600; letter-spacing: -.02em; line-height: 1; display: flex; justify-content: space-between; align-items: baseline; }
.pack-card .price i { font-style: normal; font-family: var(--f-body); font-size: 20px; transition: transform .4s var(--ease); color: var(--teal-bright); }
.pack-card:hover .price i { transform: translate(4px, -4px); }
@media (max-width: 1100px) { .pack-cards { grid-template-columns: repeat(2, 1fr); } .pack-card:last-child { grid-column: span 2; } }
@media (max-width: 560px) { .pack-cards { grid-template-columns: 1fr; } .pack-card:last-child { grid-column: auto; } .pack-card { min-height: 0; } }

/* ---------- Bandas de cifras ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ice-faint); }
.stat { padding: 40px clamp(24px, 3.5vw, 56px) 12px; border-left: 1px solid var(--ice-faint); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat:last-child { padding-right: 0; }
.stat b { font-family: var(--f-display); font-weight: 600; font-size: clamp(48px, 5vw, 80px); line-height: 1; letter-spacing: -.03em; display: flex; align-items: baseline; gap: .14em; white-space: nowrap; }
.stat b em.unit { margin-left: -.1em; }
.stat b em { color: var(--teal-bright); font-style: italic; font-weight: 500; font-size: .5em; letter-spacing: -.01em; }
.stat span { display: block; margin-top: 16px; color: var(--ice-dim); font-size: 15px; font-weight: 300; max-width: 28ch; }
@media (max-width: 800px) {
  .stats { grid-template-columns: 1fr; }
  .stat, .stat:first-child, .stat:last-child { padding: 32px 0; border-left: 0; }
  .stat + .stat { border-top: 1px solid var(--ice-faint); }
}

/* ---------- Proceso / línea de tiempo ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.timeline::before {
  content: "";
  position: absolute;
  top: 31px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--teal) var(--progress, 0%), var(--marine-faint) var(--progress, 0%));
}
.dark .timeline::before { background: linear-gradient(90deg, var(--teal-bright) var(--progress, 0%), var(--ice-faint) var(--progress, 0%)); }
.step { padding-right: 32px; position: relative; }
.step__day {
  width: 62px; height: 62px;
  border-radius: 50%;
  border: 1px solid var(--marine-faint);
  background: var(--ice);
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--marine);
  position: relative;
  transition: background .4s, color .4s, border-color .4s;
}
.dark .step__day { background: var(--night); border-color: var(--ice-faint); color: var(--ice); }
.step.is-on .step__day { background: var(--teal); color: #fff; border-color: var(--teal); }
.step h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(22px, 2vw, 28px); line-height: 1.15; margin: 34px 0 14px; }
.light .step h3 { color: var(--marine); }
.step p { margin: 0; font-weight: 300; font-size: 16px; color: rgba(5, 22, 43, .72); }
.dark .step p { color: var(--ice-dim); }
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 44px; padding-left: 0; }
  .timeline::before { top: 0; bottom: 0; left: 31px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--teal) var(--progress, 0%), var(--marine-faint) var(--progress, 0%)); }
  .dark .timeline::before { background: linear-gradient(180deg, var(--teal-bright) var(--progress, 0%), var(--ice-faint) var(--progress, 0%)); }
  .step { display: grid; grid-template-columns: 62px 1fr; gap: 0 24px; padding: 0; }
  .step h3 { margin: 12px 0 10px; }
  .step p { grid-column: 2; }
}

/* ---------- Equipo técnico ---------- */
.gear { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--ice-faint); border: 1px solid var(--ice-faint); }
.gear__item { background: var(--night); padding: clamp(32px, 4vw, 56px); position: relative; overflow: hidden; }
.gear__item .mono { color: var(--teal-bright); }
.gear__item h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(28px, 3vw, 44px); line-height: 1.1; letter-spacing: -.02em; margin: 26px 0 18px; }
.gear__item p { margin: 0; color: var(--ice-dim); font-weight: 300; max-width: 42ch; }
.gear__spec { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.gear__spec span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; padding: 7px 12px; border: 1px solid var(--ice-faint); border-radius: 999px; color: var(--ice-dim); }
.gear__item svg.bg { position: absolute; right: -30px; bottom: -30px; width: 220px; height: 220px; color: rgba(240,246,247,.04); }
.gear__item--wide { grid-column: 1 / -1; }
@media (max-width: 800px) { .gear { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--marine-faint); }
.faq details { border-bottom: 1px solid var(--marine-faint); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 60px 1fr 40px;
  align-items: center;
  gap: 16px;
  padding: 28px 0;
  font-family: var(--f-display);
  font-size: clamp(18px, 1.8vw, 24px); font-weight: 600;
  line-height: 1.15;
  color: var(--marine);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .mono { color: var(--teal); }
.faq summary .plus { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--marine-faint); position: relative; transition: background .3s, transform .5s var(--ease); }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: var(--marine); transform: translate(-50%, -50%); }
.faq summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.faq details[open] summary .plus { background: var(--teal); border-color: var(--teal); }
.faq details[open] summary .plus::before, .faq details[open] summary .plus::after { background: #fff; }
.faq details[open] summary .plus::after { transform: translate(-50%, -50%) rotate(0); }
.faq .ans { padding: 0 56px 32px 76px; color: rgba(5, 22, 43, .74); font-weight: 300; max-width: 70ch; }
.faq .ans p { margin: 0; }
@media (max-width: 640px) {
  .faq summary { grid-template-columns: 1fr 40px; }
  .faq summary .mono { display: none; }
  .faq .ans { padding: 0 0 28px; }
}

/* ---------- Portfolio ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 48px; }
.filter {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--ice-faint);
  background: transparent;
  color: var(--ice-dim);
  cursor: pointer;
  transition: all .3s var(--ease);
}
.filter:hover { color: var(--ice); border-color: var(--ice-dim); }
.filter.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }
.filter sup { margin-left: 4px; opacity: .7; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery .shot { margin: 0; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }
/* Vídeos en cuadrícula por filas: mantiene el orden de la lista de YouTube */
.gallery--video { margin-bottom: 16px; }
.gallery--video .shot { margin: 0; }
.gallery__note { margin: 0 0 40px; font-size: 12px; color: var(--ice-dim); }
.gallery__note a { color: var(--teal-bright); text-decoration: underline; text-underline-offset: 2px; }
.shot {
  break-inside: avoid;
  margin: 0 0 16px;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: zoom-in;
  background: var(--night-2);
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  color: inherit;
  text-align: left;
}
.shot img { width: 100%; height: auto; transition: transform 1.2s var(--ease), opacity .6s; }
.shot:hover img { transform: scale(1.035); }
.shot__meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 50px 18px 16px;
  background: linear-gradient(transparent, rgba(5, 22, 43, .85));
  display: flex;
  justify-content: space-between;
  align-items: end;
  opacity: 0;
  transform: translateY(8px);
  transition: all .5s var(--ease);
}
.shot:hover .shot__meta, .shot:focus-visible .shot__meta { opacity: 1; transform: none; }
.shot__meta b { font-family: var(--f-display); font-weight: 600; font-size: 20px; }
.shot__meta span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--teal-bright); }
.shot.is-hidden { display: none; }

/* Tarjeta de vídeo (placeholder elegante hasta que subas los vídeos) */
.shot--video { aspect-ratio: 16 / 9; display: grid; place-items: center; cursor: pointer; }
.shot--video video, .shot--video img.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot--video .empty {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 10px, rgba(240,246,247,.05) 10px 22px, transparent 22px 34px) top / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 10px, rgba(240,246,247,.05) 10px 22px, transparent 22px 34px) bottom / 100% 14px no-repeat,
    radial-gradient(70% 80% at 50% 50%, rgba(0, 140, 153, .22), transparent 70%),
    var(--night-2);
}
.play {
  position: relative;
  z-index: 2;
  width: 76px; height: 76px;
  border-radius: 50%;
  background: rgba(240, 246, 247, .1);
  border: 1px solid rgba(240, 246, 247, .3);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  transition: transform .5s var(--ease), background .4s;
}
.shot--video:hover .play { background: var(--teal); border-color: var(--teal); }
.play::before { content: ""; border-left: 16px solid var(--ice); border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }
.shot--video .shot__meta { opacity: 1; transform: none; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 6px; padding: 60px 18px 14px; }
.shot--video .shot__meta b { font-size: 17px; line-height: 1.2; }
.shot--video .shot__meta span { font-size: 10px; text-transform: uppercase; }
.shot--video .play { position: absolute; top: 14px; right: 14px; width: auto; height: 32px; padding: 0 14px 0 12px; border-radius: 999px; display: flex; align-items: center; gap: 8px; background: rgba(5, 22, 43, .55); }
.shot--video .play::before { border-left-width: 9px; border-top-width: 5.5px; border-bottom-width: 5.5px; margin-left: 2px; }
.shot--video .play::after { content: "Play"; font-family: var(--f-mono); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ice); }
.shot__soon { position: absolute; top: 16px; left: 16px; z-index: 2; font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 6px 10px; border: 1px solid var(--ice-faint); border-radius: 999px; color: var(--ice-dim); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(3, 12, 24, .96);
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__stage { height: 100vh; height: 100svh; display: grid; place-items: center; padding: 70px 0; }
.lightbox__stage iframe { width: min(92vw, calc((100svh - 140px) * 16 / 9)); aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 3px; background: #000; }
.lightbox__stage img, .lightbox__stage video { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 3px; }
.lightbox button {
  background: none; border: 1px solid var(--ice-faint); color: var(--ice);
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer; font-size: 20px;
  justify-self: center; transition: background .3s, border-color .3s;
}
.lightbox button:hover { background: var(--teal); border-color: var(--teal); }
.lightbox__close { position: absolute; top: 18px; right: 18px; }
.lightbox__count { position: absolute; top: 32px; left: 32px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; color: var(--ice-dim); }
@media (max-width: 640px) {
  .lightbox { grid-template-columns: 1fr; }
  .lightbox__prev, .lightbox__next { position: absolute; bottom: 20px; }
  .lightbox__prev { left: calc(50% - 64px); }
  .lightbox__next { right: calc(50% - 64px); }
}

/* ---------- Concepto ---------- */
.manifesto { font-family: var(--f-display); font-size: clamp(26px, 3.3vw, 50px); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; color: var(--marine); max-width: 22ch; margin: 0; }
.manifesto em { color: var(--teal); }
.manifesto .w { opacity: .14; transition: opacity .5s; }
.manifesto .w.is-lit { opacity: 1; }

.triad { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.triad__item { border-top: 1px solid var(--ice-faint); padding-top: 28px; }
.triad__from { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ice-dim); }
.triad__to { font-family: var(--f-display); font-size: clamp(26px, 2.5vw, 38px); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; margin: 18px 0 18px; }
.triad__to em { color: var(--teal-bright); }
.triad__item p { color: var(--ice-dim); font-weight: 300; margin: 0; }
.triad__arrow { display: block; font-family: var(--f-body); color: var(--teal-bright); margin-top: 10px; }
@media (max-width: 860px) { .triad { grid-template-columns: 1fr; } }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.two-col p { font-weight: 300; font-size: 18px; color: rgba(5, 22, 43, .76); }
.two-col p strong { color: var(--marine); font-weight: 600; }
.dark .two-col p, .two-col.on-dark p { color: var(--ice-dim); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.framed { position: relative; }
.framed img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 4px; }
.framed--wide img { aspect-ratio: 4/3; }
.framed::after {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--teal);
  border-radius: 4px;
  z-index: -1;
}
.framed figcaption { margin-top: 30px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(5,22,43,.55); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 120px); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.channels { display: grid; gap: 1px; background: var(--ice-faint); border: 1px solid var(--ice-faint); margin-top: 40px; }
.channel { background: var(--night); padding: 26px 28px; display: flex; justify-content: space-between; align-items: center; text-decoration: none; transition: background .4s; gap: 20px; }
.channel:hover { background: var(--marine); }
.channel b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 22px; line-height: 1.1; }
.channel small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-bright); }
.channel i { font-style: normal; font-size: 22px; color: var(--teal-bright); transition: transform .4s var(--ease); }
.channel:hover i { transform: translate(4px, -4px); }

.form { background: var(--ice); color: var(--ink); padding: clamp(28px, 4vw, 56px); border-radius: 6px; position: relative; }
.form::before {
  content: "";
  position: absolute; top: 0; left: 24px; right: 24px; height: 10px;
  transform: translateY(-100%);
  background: repeating-linear-gradient(90deg, var(--ice) 0 18px, transparent 18px 30px);
  border-radius: 3px 3px 0 0;
}
.form h2 { color: var(--marine); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field { position: relative; margin-top: 26px; }
.field label { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--marine); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(11, 43, 94, .3);
  padding: 10px 0 12px;
  border-radius: 0;
  transition: border-color .3s;
  appearance: none;
  -webkit-appearance: none;
}
.field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230B2B5E' stroke-width='1.5'/%3E%3C/svg%3E") right 4px center no-repeat; padding-right: 28px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label { margin: 0; cursor: pointer; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(11,43,94,.25); font-family: var(--f-body); font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--marine); transition: all .3s; }
.chips input:checked + label { background: var(--marine); border-color: var(--marine); color: #fff; }
.chips input:focus-visible + label { outline: 2px solid var(--teal); outline-offset: 2px; }
.form .btn { margin-top: 36px; width: 100%; }
.form__note { font-size: 13px; color: rgba(5,22,43,.55); margin: 16px 0 0; text-align: center; }
.form__privacy { font-size: 12px; color: rgba(5,22,43,.5); margin: 8px 0 0; text-align: center; }
.form__privacy a { color: var(--teal); }

/* ---------- CTA final ---------- */
.cta {
  background:
    radial-gradient(60% 90% at 50% 120%, rgba(0, 140, 153, .45), transparent 70%),
    var(--marine);
  text-align: center;
  overflow: hidden;
}
.cta .display { max-width: 14ch; margin: 26px auto 0; }
/* Títulos con cortes de línea fijos */
.cta .display.cta__lines { max-width: none; white-space: nowrap; }
@media (max-width: 600px) { .cta .display.cta__lines { font-size: var(--cta-fit, 8.4vw); } }
html[lang="eu"] .cta .display.cta__lines { --cta-fit: 8vw; }
.cta .lede { margin: 28px auto 44px; text-align: center; }
.cta__ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta .btn--ghost { border-color: rgba(240,246,247,.3); }

/* ---------- Footer ---------- */
.footer { background: var(--night); padding: clamp(64px, 8vw, 110px) 0 36px; border-top: 1px solid var(--ice-faint); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand img { height: 92px; width: auto; }
.footer__brand p { color: var(--ice-dim); font-weight: 300; max-width: 30ch; margin: 22px 0 0; font-size: 15px; }
.footer h4 { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-bright); font-weight: 400; margin: 0 0 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { text-decoration: none; color: var(--ice-dim); font-size: 15px; transition: color .3s; }
.footer ul a:hover { color: var(--ice); }
.footer__law { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 22px; margin-top: 56px; }
.footer__law h4 { margin: 0; }
.footer__law ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__law ul a { font-size: 13px; }
.footer__big {
  font-family: var(--f-display);
  font-size: clamp(40px, 11vw, 176px); font-weight: 700;
  line-height: .8;
  letter-spacing: -.03em;
  margin: clamp(56px, 8vw, 110px) 0 28px;
  color: var(--ice);
  white-space: nowrap;
  user-select: none;
}
.footer__big em { -webkit-text-stroke: 0; color: var(--teal); font-style: italic; }
.footer__legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(240,246,247,.45); border-top: 1px solid var(--ice-faint); padding-top: 24px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* WhatsApp flotante */
.wa-float {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 40;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 40px -12px rgba(0, 140, 153, .9);
  transition: transform .4s var(--ease);
}
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Revelado al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }

/* ---------- 404 ---------- */
.err { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter); }
.err .display { font-size: clamp(100px, 20vw, 280px); line-height: .9; color: transparent; -webkit-text-stroke: 1px rgba(240,246,247,.35); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
  .fade-in, .fade-in-2, .viewfinder { opacity: 1; }
}

/* ---------- Páginas legales (aviso legal, privacidad, cookies) ---------- */
.doc { max-width: 820px; color: var(--night); }
.doc h2 { color: var(--marine); margin: 56px 0 16px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { line-height: 1.7; font-weight: 400; }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; border-left: 2px solid var(--teal); padding-left: 20px; }
.doc a { color: var(--teal); text-underline-offset: 3px; }
.doc strong { font-weight: 600; }
.doc__table { width: 100%; border-collapse: collapse; margin: 22px 0 22px; font-size: 14px; line-height: 1.55; }
.doc__table th { text-align: left; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ice); background: var(--marine); padding: 12px 14px; }
.doc__table td { vertical-align: top; padding: 14px; border-bottom: 1px solid rgba(11,43,94,.15); }
.doc__table tbody tr:nth-child(even) td { background: rgba(11,43,94,.04); }
.doc__note { font-size: .85rem; opacity: .7; margin-top: 48px !important; }
@media (max-width: 760px) {
  .doc__table thead { display: none; }
  .doc__table, .doc__table tbody, .doc__table tr, .doc__table td { display: block; }
  .doc__table tr { border: 1px solid rgba(11,43,94,.18); border-radius: 12px; padding: 6px 16px; margin-bottom: 14px; background: #fff; }
  .doc__table tbody tr:nth-child(even) td { background: none; }
  .doc__table td { padding: 10px 0; }
  .doc__table td:last-child { border-bottom: 0; }
  .doc__table td::before { content: attr(data-label); display: block; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 4px; }
}

/* ---------- Opiniones reales ---------- */
.opinions { padding-top: 0; }
.opinions__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.opinion { margin: 0; display: flex; flex-direction: column; gap: 32px; padding: clamp(28px, 3vw, 44px); border: 1px solid var(--ice-faint); border-radius: 4px; background: rgba(240, 246, 247, 0.03); }
.opinion blockquote { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--ice); }
.opinion blockquote::before { content: "«"; display: block; font-size: 64px; line-height: .8; color: var(--teal-bright); margin-bottom: 12px; }
.opinion blockquote::after { content: "»"; }
.opinion figcaption { margin-top: auto; display: flex; align-items: center; gap: 14px; }
.opinion figcaption b { display: block; font-family: var(--f-display); font-weight: 600; color: var(--ice); }
.opinion figcaption small { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ice-dim); margin-top: 4px; }
.opinion__avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--marine); color: var(--teal-bright); font-family: var(--f-display); font-weight: 600; font-size: 18px; }
.opinion__avatar img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .opinions__grid { grid-template-columns: 1fr; } }
