/* =====================================================================
   BDLN Borderline · estilos
   Paleta de referencia del manual gráfico de Tierra de Gaviotas:
   #0A1028 noche · #141E3C · #C8CDD4 plata · #2E1A47 violeta
   Tipografía del logo: Dune (propietaria) → alternativa web: Orbitron
   ===================================================================== */

/* Tipografías alojadas en el sitio (licencia SIL OFL 1.1, ver /assets/fonts) */
@font-face {
  font-family: 'Orbitron';
  src: url('/assets/fonts/Orbitron-Variable.ttf') format('truetype');
  font-weight: 400 900; font-display: swap;
}
@font-face {
  font-family: 'Sora';
  src: url('/assets/fonts/Sora-Variable.ttf') format('truetype');
  font-weight: 100 800; font-display: swap;
}

:root {
  /* color */
  --field: #0A1028;          /* fondo: cambia con cada planeta */
  --night: #0A1028;
  --night-2: #141E3C;
  --violet: #2E1A47;
  --silver: #C8CDD4;
  --ink: #EEF0F5;
  --ink-soft: #AEB6C6;
  --accent: #A974FF;         /* el violeta eléctrico de los afiches */
  --on-accent: #0A0618;
  --surface: rgba(255, 255, 255, .05);
  --surface-2: rgba(255, 255, 255, .085);

  /* tipografía */
  --display: 'Orbitron', 'Segoe UI', system-ui, sans-serif;
  --text: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --t-small: .9375rem;
  --t-body: clamp(1rem, .97rem + .15vw, 1.0625rem);
  --t-lede: clamp(1.0625rem, 1rem + .35vw, 1.3125rem);
  --t-statement: clamp(1.375rem, 1.1rem + 1.1vw, 2rem);
  --t-h3: clamp(1.25rem, 1.05rem + .8vw, 1.75rem);
  --t-h2: clamp(2.25rem, 1.5rem + 3vw, 4.25rem);
  --t-num: clamp(2.25rem, 1.5rem + 3vw, 4.5rem);

  /* espacio y medidas */
  --maxw: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --pad: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  --gap: clamp(112px, 12vw, 192px);      /* entre secciones */
  --head: clamp(40px, 5vw, 72px);        /* entre título de sección y contenido */
  --col: clamp(16px, 2.4vw, 32px);       /* entre columnas */
  --cut: 18px;                            /* esquina cortada de paneles y botones */

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--field);
  color: var(--ink);
  font: 400 var(--t-body)/1.65 var(--text);
  transition: background-color 1.2s var(--ease-io);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 12px 18px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Marco: mismos márgenes en todo el sitio ---------- */
.wrap { padding-left: var(--pad); padding-right: var(--pad); }
.section { padding-top: var(--gap); }

/* ---------- Estrellas ---------- */
.nebula, .stars { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
.nebula { image-rendering: auto; }
main, .footer, .nav { position: relative; z-index: 1; }

/* ---------- Texto ---------- */
.h2 { font: 700 var(--t-h2)/1.02 var(--display); letter-spacing: -0.02em; margin: 0; }
.lede { font-size: var(--t-lede); line-height: 1.55; max-width: 42ch; margin: 0; }
.statement { font-size: var(--t-statement); line-height: 1.32; max-width: 26ch; margin: 0; }
.kicker { font: 600 .875rem/1.2 var(--display); letter-spacing: .04em; color: var(--accent); margin: 0 0 14px; transition: color .6s var(--ease); }

/* Encabezado de sección: título a la izquierda, bajada a la derecha */
.sec-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col);
  align-items: end;
  margin-bottom: var(--head);
}
.sec-head .h2 { grid-column: 1 / 8; }
.sec-head .lede { grid-column: 8 / 13; padding-bottom: .35em; }
@media (max-width: 900px) {
  .sec-head .h2, .sec-head .lede { grid-column: 1 / -1; }
  .sec-head .lede { margin-top: 18px; padding: 0; }
}

.link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  text-decoration-color: var(--accent);
  transition: color .25s var(--ease), text-underline-offset .25s var(--ease);
}
.link:hover { color: var(--accent); text-underline-offset: 9px; }

/* Botón: plano, esquinas cortadas como una placa de la nave */
.btn {
  --c: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px;
  background: var(--accent); color: var(--on-accent);
  font: 700 .95rem/1 var(--display); letter-spacing: .03em;
  text-decoration: none; border: 0; cursor: pointer; white-space: nowrap;
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
  transition: transform .35s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.btn:hover { background: var(--ink); }
.btn:active { transform: scale(.96) !important; }
.btn--small { min-height: 42px; padding: 0 20px; font-size: .82rem; --c: 10px; }
.btn--big { min-height: 62px; padding: 0 40px; font-size: clamp(1rem, .9rem + .4vw, 1.15rem); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.actions--center { justify-content: center; margin-top: var(--head); }

/* Panel: superficie con un paso de tono y esquina cortada */
.panel {
  background: var(--surface);
  padding: clamp(24px, 2.6vw, 40px);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  transition: background-color .35s var(--ease), transform .45s var(--ease);
}
.panel:hover { background: var(--surface-2); }
.panel__title { font: 700 var(--t-h3)/1.15 var(--display); margin: 0 0 16px; }
.panel p:last-child { margin: 0; }

.is-pending { color: var(--ink-soft); }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
  padding: 16px var(--pad);
  transition: background-color .4s var(--ease), padding .4s var(--ease);
}
.nav.is-solid { background: var(--field); padding-top: 10px; padding-bottom: 10px; }
.nav__mark { font: 900 1.5rem/1 var(--display); letter-spacing: .02em; text-decoration: none; margin-right: auto; }
.nav__links { display: flex; gap: clamp(16px, 2.2vw, 32px); }
.nav__links a { text-decoration: none; font-size: .95rem; position: relative; padding: 6px 0; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__toggle { display: none; }

@media (max-width: 900px) {
  .nav__toggle {
    display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px;
    background: var(--ink); color: var(--night); border: 0; font-weight: 600; cursor: pointer;
  }
  .nav__cta { display: none; }
  .nav__links {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: 8px;
    padding: 80px var(--gutter); background: var(--field);
    opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
  }
  .nav__links a { font: 700 clamp(2rem, 9vw, 3rem)/1.25 var(--display); }
  .menu-open .nav__links { opacity: 1; pointer-events: auto; }
  .menu-open { overflow: hidden; }
}

/* ---------- Planetas (WebGL o 2D) ---------- */
.planet-canvas { display: block; transition: opacity .38s var(--ease), transform .5s var(--ease); }
.planet-canvas.is-leaving { opacity: 0; transform: scale(.55) translateX(-14%) rotate(-8deg); }
.planet-canvas.is-arriving { opacity: 0; transform: scale(1.3) translateX(12%); transition: none; }

/* =====================================================================
   INICIO
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding-top: clamp(104px, 14vh, 140px);
  padding-bottom: clamp(20px, 3vh, 36px);
  overflow-x: clip;
}
.hero__planet {
  position: absolute;
  width: min(136vh, 108vw); aspect-ratio: 1;
  right: max(-36vw, -470px); top: -24vh;
  z-index: -1;
  will-change: transform;
}
.hero__top {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col);
  align-items: start;
}
.hero__lede { grid-column: 1 / 7; font-size: var(--t-statement); line-height: 1.3; max-width: 22ch; margin: 0 0 clamp(28px, 4vh, 48px); }
.hero__next { grid-column: 1 / 7; max-width: 30rem; }
.hero__title { font: 700 clamp(1.75rem, 1.2rem + 2vw, 2.75rem)/1.08 var(--display); letter-spacing: -0.01em; margin: 0 0 14px; }
.hero__when { font-size: var(--t-lede); line-height: 1.45; margin: 0 0 28px; }
.hero__fine { margin: 20px 0 0; font-size: var(--t-small); color: var(--ink-soft); }

.countdown[hidden] { display: none; }
.countdown { display: flex; gap: clamp(16px, 2vw, 28px); margin: -8px 0 28px; }
.countdown span { display: grid; font-size: .875rem; color: var(--ink-soft); }
.countdown b { font: 700 clamp(1.8rem, 1.2rem + 2vw, 3rem)/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }

.wordmark { margin: clamp(28px, 4vh, 48px) 0 0; align-self: end; line-height: .8; will-change: transform; }
.wordmark__big {
  display: flex; justify-content: space-between;
  font: 900 min(calc(min(100vw - 2 * var(--gutter), var(--maxw)) * .28), 36vh)/.8 var(--display);
  letter-spacing: -0.03em;
  overflow: hidden;
  padding-top: .04em;
}
.wl { display: inline-block; }
.wordmark__sub {
  display: flex; justify-content: space-between;
  font: 500 clamp(.95rem, 2.2vw, 2.2rem)/1 var(--display);
  text-transform: uppercase;
  margin-top: clamp(12px, 1.6vw, 24px);
  padding-inline: .3em;
  color: var(--silver);
}

.can-reveal .wl { transform: translateY(105%); }
.is-loaded.can-reveal .wl { transform: none; transition: transform 1.2s var(--ease); }
.is-loaded .wl:nth-child(2) { transition-delay: .08s; }
.is-loaded .wl:nth-child(3) { transition-delay: .16s; }
.is-loaded .wl:nth-child(4) { transition-delay: .24s; }

@media (max-width: 900px) {
  .hero { grid-template-rows: auto 1fr auto; }
  .hero__lede, .hero__next { grid-column: 1 / -1; }
  .hero__lede { margin-bottom: 32px; }
  .hero__planet { width: 125vw; right: -68vw; top: 44vh; opacity: .85; }
  .wordmark { grid-row: 3; }
}

/* =====================================================================
   HISTORIA
   ===================================================================== */
.story {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col);
  align-items: center;
}
.story__text { grid-column: 1 / 7; }
.story__text .h2 { margin-bottom: var(--head); max-width: 12ch; }
.story__text .lede { margin-top: 20px; color: var(--ink-soft); }
.story__photo { grid-column: 8 / 13; margin: 0; }
.story__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
figcaption { margin-top: 12px; font-size: var(--t-small); color: var(--ink-soft); }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col); margin: var(--head) 0 0; }
.facts dt { font: 900 var(--t-num)/.9 var(--display); letter-spacing: -0.03em; }
.facts dd { margin: 12px 0 0; font-size: var(--t-small); line-height: 1.4; color: var(--ink-soft); }
@media (max-width: 900px) {
  .story__text, .story__photo { grid-column: 1 / -1; }
  .story__photo { margin-top: var(--head); }
}

/* =====================================================================
   BITÁCORA
   ===================================================================== */
.log__body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col);
  align-items: center;
}
.log__stage { grid-column: 1 / 8; position: relative; aspect-ratio: 1; width: 100%; max-width: 84vh; justify-self: center; margin: -5% 0; }
.log__planet { width: 100%; height: 100%; }
.log__entries { grid-column: 8 / 13; }

.entry { padding-bottom: 56px; }
.entry__name { font: 700 clamp(1.75rem, 1.15rem + 2vw, 3rem)/1.05 var(--display); letter-spacing: -0.02em; margin: 0 0 20px; }
.entry__text { font-size: var(--t-lede); line-height: 1.55; max-width: 36ch; margin-bottom: 28px; }

/* ficha: filas con un paso de tono, sin líneas */
.ficha { display: grid; gap: 3px; margin: 0; }
.ficha > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; padding: 12px 16px; background: var(--surface); }
.ficha dt { font: 600 .82rem/1.6 var(--display); color: var(--ink-soft); letter-spacing: .03em; }
.ficha dd { margin: 0; font-weight: 600; line-height: 1.5; }

.is-interactive .log__entries { display: grid; }
.is-interactive .entry { grid-area: 1 / 1; padding: 0; visibility: hidden; opacity: 0; transform: translateY(24px); }
.is-interactive .entry.is-on { visibility: visible; opacity: 1; transform: none; }
.is-ready .entry { transition: opacity .6s var(--ease), transform .8s var(--ease), visibility 0s .6s; }
.is-ready .entry.is-on { transition-delay: .25s, .25s, 0s; }

/* órbita y nave */
.orbit {
  position: relative;
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-top: var(--head);
  padding-top: 34px;
}
.orbit__path { position: absolute; left: 0; right: 0; top: 34px; width: 100%; height: 40px; transform: translateY(-50%); overflow: visible; pointer-events: none; }
.orbit__path line { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 2 12; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .7; }
.orbit__stop {
  position: relative; z-index: 1;
  display: grid; justify-items: center; gap: 14px;
  background: none; border: 0; padding: 0 0 6px; cursor: pointer;
  min-width: 64px;
}
.orbit__stop:first-of-type { justify-items: start; }
.orbit__stop:last-of-type { justify-items: end; }
.orbit__dot {
  width: 22px; height: 22px; border-radius: 50%;
  margin-top: -11px;
  background: var(--field); box-shadow: inset 0 0 0 3px var(--accent);
  transition: transform .4s var(--ease), background-color .4s var(--ease);
}
.orbit__label { font: 700 clamp(.8rem, .7rem + .4vw, 1rem)/1.2 var(--display); white-space: nowrap; transition: color .3s var(--ease); }
.orbit__stop:hover .orbit__dot { transform: scale(1.35); }
.orbit__stop[aria-pressed="true"] .orbit__dot { background: var(--accent); transform: scale(1.45); }
.orbit__stop[aria-pressed="true"] .orbit__label { color: var(--accent); }
.orbit__ship {
  position: absolute; left: 0; top: 0;
  width: 48px; height: 24px;
  fill: var(--ink);
  transform: translateX(var(--x, 0));
  transition: transform 1.1s var(--ease-io), fill .4s;
}
.orbit__ship circle { fill: var(--accent); }
.orbit__ship.is-back { transform: translateX(var(--x, 0)) scaleX(-1); }

@media (max-width: 900px) {
  .log__stage, .log__entries { grid-column: 1 / -1; }
  .log__stage { width: min(100%, 520px); margin: -8% auto -4%; }
  .orbit { gap: 4px; }
  .orbit__stop { flex: 1 1 0; min-width: 0; }
  .orbit__label { font-size: .72rem; white-space: normal; text-align: center; max-width: 9ch; line-height: 1.25; }
  .orbit__stop:first-of-type .orbit__label { text-align: left; }
  .orbit__stop:last-of-type .orbit__label { text-align: right; }
}
@media (max-width: 480px) { .ficha > div { grid-template-columns: 5.5rem 1fr; padding: 10px 12px; } }
[data-js="off"] .orbit { display: none; }

/* =====================================================================
   A BORDO
   ===================================================================== */
.aboard__body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col);
  align-items: stretch;
}
.aboard__photo { grid-column: 1 / 7; margin: 0; overflow: hidden; }
.aboard__photo img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.specs { grid-column: 7 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin: 0; }
.specs > div { background: var(--surface); padding: clamp(22px, 2.4vw, 36px); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; transition: background-color .35s var(--ease); }
.specs > div:hover { background: var(--surface-2); }
.specs dt { font: 900 clamp(2rem, 1.3rem + 2.4vw, 3.5rem)/1 var(--display); letter-spacing: -0.02em; white-space: nowrap; }
.specs dd { margin: 0; line-height: 1.45; max-width: 24ch; }
@media (max-width: 900px) {
  .aboard__photo, .specs { grid-column: 1 / -1; }
  .aboard__photo img { min-height: 0; aspect-ratio: 4 / 3; }
  .specs { margin-top: 3px; }
}
@media (max-width: 480px) { .specs { grid-template-columns: 1fr; } }

/* =====================================================================
   NOKTUN
   ===================================================================== */
.noktun__main {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col);
  align-items: stretch;
}
.noktun__film { grid-column: 1 / 8; margin: 0; overflow: hidden; }
.noktun__film img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.lineup { grid-column: 8 / 13; background: var(--surface); padding: clamp(24px, 2.6vw, 40px); clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.lineup__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.lineup__list li { display: grid; gap: 2px; }
.lineup__name { font: 700 clamp(1.4rem, 1rem + 1.4vw, 2.25rem)/1.1 var(--display); letter-spacing: -0.01em; transition: color .3s var(--ease), transform .4s var(--ease); }
.lineup__list li:hover .lineup__name { color: var(--accent); transform: translateX(8px); }
.lineup__role { color: var(--ink-soft); font-size: var(--t-small); }

.noktun__pics {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col);
  align-items: center;
  margin-top: var(--head);
}
.noktun__pics figure { margin: 0; }
.noktun__pics figure:nth-child(1) { grid-column: 1 / 4; }
.noktun__pics figure:nth-child(2) { grid-column: 4 / 7; }
.noktun__pics img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.quote { grid-column: 8 / 13; margin: 0; }
.quote p { font: 700 clamp(1.5rem, 1rem + 1.5vw, 2.25rem)/1.2 var(--display); letter-spacing: -0.01em; margin: 0 0 18px; max-width: 18ch; }
.quote footer { color: var(--ink-soft); font-size: var(--t-small); }
@media (max-width: 900px) {
  .noktun__film, .lineup { grid-column: 1 / -1; }
  .lineup { margin-top: 3px; }
  .noktun__pics figure:nth-child(1) { grid-column: 1 / 7; }
  .noktun__pics figure:nth-child(2) { grid-column: 7 / 13; }
  .quote { grid-column: 1 / -1; margin-top: 40px; }
}

/* =====================================================================
   LA SERIE
   ===================================================================== */
.series__trailer { position: relative; aspect-ratio: 21 / 9; overflow: hidden; background: var(--night-2); }
.series__trailer img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.72); transition: transform 1.2s var(--ease); }
.series__trailer:hover img { transform: scale(1.04); }
.series__soon {
  position: absolute; left: 0; bottom: 0; margin: 0;
  padding: 16px 24px; background: var(--accent); color: var(--on-accent);
  font: 700 clamp(.95rem, .8rem + .5vw, 1.2rem)/1 var(--display);
}
.series__trailer iframe { width: 100%; height: 100%; border: 0; display: block; }
.series__play {
  width: 100%; height: 100%; border: 0; cursor: pointer; padding: 0;
  background: var(--night-2) center / cover no-repeat;
  display: flex; align-items: flex-end; justify-content: flex-start;
  font-size: 0;
}
.series__play::after { content: 'Ver el tráiler'; background: var(--accent); color: var(--on-accent); padding: 16px 24px; font: 700 1.1rem/1 var(--display); }

.episodes {
  list-style: none; margin: var(--head) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--col);
}
.ep { display: grid; align-content: start; }
.ep__planet { width: 100%; aspect-ratio: 1; margin-bottom: 8px; transition: transform .6s var(--ease); }
.ep:hover .ep__planet { transform: scale(1.06); }
.ep .kicker { margin-bottom: 8px; }
.ep__title { font: 700 var(--t-h3)/1.15 var(--display); margin: 0 0 6px; }
.ep__state { color: var(--ink-soft); margin: 0; font-size: var(--t-small); }
@media (max-width: 900px) { .episodes { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } .series__trailer { aspect-ratio: 16 / 9; } }

/* =====================================================================
   ENTRADAS
   ===================================================================== */
.tickets__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col); }
.price { font: 900 clamp(2rem, 1.4rem + 2.2vw, 3.5rem)/1 var(--display); letter-spacing: -0.02em; margin: 0 0 20px; }
.price.is-pending { font: 700 var(--t-lede)/1.3 var(--display); letter-spacing: 0; color: var(--accent); }
.rules { margin: 0; padding: 0 0 0 1.1em; display: grid; gap: 10px; }
.rules li::marker { color: var(--accent); }
@media (max-width: 900px) { .tickets__grid { grid-template-columns: 1fr 1fr; } .panel--rules { grid-column: 1 / -1; } }
@media (max-width: 600px) { .tickets__grid { grid-template-columns: 1fr; } }

/* =====================================================================
   EMBAJADORES
   ===================================================================== */
.crew {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 3px;
}
.crew__item {
  display: grid; align-content: start; gap: 6px;
  background: var(--surface); padding: 24px 26px;
  transition: background-color .3s var(--ease);
}
.crew__item:hover { background: var(--surface-2); }
.crew__name { font: 700 1.1rem/1.25 var(--display); margin: 0 0 6px; overflow-wrap: anywhere; }
.crew__link { font-size: var(--t-small); color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; text-decoration-thickness: 2px; overflow-wrap: anywhere; justify-self: start; }
a.crew__link:hover { color: var(--accent); }
.crew__link.is-pending { text-decoration: none; color: var(--ink-soft); }
.crew__fallback { grid-column: 1 / -1; padding: 24px; background: var(--surface); }

.join {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px;
  margin-top: var(--head);
  padding: clamp(28px, 3vw, 48px);
  background: var(--accent); color: var(--on-accent);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.join__title { font: 700 var(--t-h3)/1.15 var(--display); margin: 0 0 8px; }
.join p { margin: 0; max-width: 52ch; }
.join .btn { background: var(--on-accent); color: var(--ink); }
.join .btn:hover { background: var(--ink); color: var(--on-accent); }
.join :focus-visible { outline-color: var(--on-accent); }

/* =====================================================================
   CULTURA (la única sección clara: la nave aterriza en Tierra)
   ===================================================================== */
.culture { background: var(--silver); color: var(--night); padding-top: var(--gap); padding-bottom: var(--gap); margin-top: var(--gap); }
.culture__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col); align-items: end; }
.culture .h2 { grid-column: 1 / 8; margin-bottom: var(--head); max-width: 14ch; }
.culture__text { grid-column: 1 / 7; font-size: var(--t-lede); line-height: 1.55; margin: 0; max-width: 46ch; }
.culture__quote { grid-column: 8 / 13; margin: 0; }
.culture__quote p { font: 700 clamp(1.4rem, 1rem + 1.4vw, 2.1rem)/1.2 var(--display); letter-spacing: -0.01em; margin: 0; max-width: 20ch; }
.culture__org { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 20px; margin-top: var(--head); text-decoration: none; font-weight: 600; justify-self: start; }
.culture__org img { width: 72px; height: auto; transition: transform .5s var(--ease); }
.culture__org span { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.culture__org:hover img { transform: rotate(-8deg) scale(1.06); }
.culture ::selection { background: var(--night); color: var(--silver); }
.culture :focus-visible { outline-color: var(--night); }
@media (max-width: 900px) {
  .culture .h2, .culture__text, .culture__quote { grid-column: 1 / -1; }
  .culture__quote { margin-top: 32px; }
}

/* =====================================================================
   PREGUNTAS
   ===================================================================== */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col); padding-bottom: var(--gap); }
.faq__head { grid-column: 1 / 5; align-self: start; position: sticky; top: 110px; }
.faq__head .h2 { margin-bottom: 20px; max-width: 10ch; }
.faq__list { grid-column: 6 / 13; display: grid; gap: 3px; }
.faq details { background: var(--surface); transition: background-color .3s var(--ease); }
.faq details[open], .faq details:hover { background: var(--surface-2); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 22px clamp(20px, 2.4vw, 32px);
  font: 600 var(--t-lede)/1.35 var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; flex: none; font: 700 1.6rem/1 var(--display); color: var(--accent);
  transition: transform .4s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 clamp(20px, 2.4vw, 32px) 24px; margin: 0; max-width: 62ch; }
@media (max-width: 900px) {
  .faq__head, .faq__list { grid-column: 1 / -1; }
  .faq__head { position: static; margin-bottom: var(--head); }
}

/* =====================================================================
   PIE
   ===================================================================== */
.footer { padding-top: clamp(72px, 9vw, 128px); padding-bottom: 28px; overflow: clip; }
.footer__tag { font: 700 var(--t-h2)/1 var(--display); letter-spacing: -0.02em; margin: 0 0 48px; }
.footer__cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col); row-gap: 32px; }
.footer__cols nav { grid-column: 1 / 4; }
.footer__cols div { grid-column: 4 / 8; }
.footer__cols p { grid-column: 8 / 13; }
.footer__cols nav, .footer__cols div { display: grid; gap: 10px; align-content: start; }
.footer__cols a { text-decoration-color: var(--accent); text-underline-offset: 5px; }
.footer__cols a:hover { color: var(--accent); }
.footer__cols p { margin: 0; color: var(--ink-soft); max-width: 44ch; }
.footer__mark {
  font: 900 calc(min(100vw - 2 * var(--gutter), var(--maxw)) * .28)/.78 var(--display); letter-spacing: -0.03em;
  margin: clamp(48px, 7vw, 96px) 0 0; color: var(--silver);
  display: flex; justify-content: space-between;
}
.footer__legal { margin: 20px 0 0; font-size: .875rem; color: var(--ink-soft); }
@media (max-width: 760px) {
  .footer__cols nav { grid-column: 1 / 7; }
  .footer__cols div { grid-column: 7 / 13; }
  .footer__cols p { grid-column: 1 / -1; }
}

/* =====================================================================
   MOVIMIENTO
   ===================================================================== */
.can-reveal .reveal { opacity: 0; transform: translateY(28px); }
.can-reveal .reveal.is-in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform 1s var(--ease); }
/* las imágenes entran destapándose */
.can-reveal figure.reveal { transform: none; opacity: 1; }
.can-reveal figure.reveal > img { clip-path: inset(0 0 100% 0); }
.can-reveal figure.reveal.is-in > img { clip-path: inset(0 0 0 0); transition: clip-path 1.3s var(--ease-io); }
.can-reveal figure.reveal figcaption { opacity: 0; }
.can-reveal figure.reveal.is-in figcaption { opacity: 1; transition: opacity .8s .6s var(--ease); }

/* foto que respira lento */
.drift { animation: drift 22s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-2%, -1.5%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .can-reveal .reveal, .can-reveal .wl { opacity: 1; transform: none; clip-path: none; }
}

/* Embajadores en teléfono: dos columnas compactas */
@media (max-width: 600px) {
  .crew { grid-template-columns: 1fr 1fr; }
  .crew__item { padding: 16px 14px; gap: 4px; }
  .crew__name { font-size: .88rem; margin-bottom: 4px; }
  .crew__link { font-size: .82rem; }
  .facts dt { font-size: clamp(1.9rem, 9vw, 2.5rem); }
}

/* Grilla de embajadores con columnas fijas: el bloque para postular completa la última fila */
.crew { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.crew__join { display: flex; }
.crew__join .join { flex: 1; margin-top: 0; clip-path: none; padding: clamp(22px, 2.4vw, 32px); }
@media (max-width: 1100px) { .crew { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .crew { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
