/* Caribbean Heritage by MasterKey
   Concepto: la página es un viaje de un día en el Caribe. Noche en el mar (logo dorado),
   amanecer, el día en las islas, la partida, el legado y el atardecer donde invitamos a sumarse.
   El cielo (.sky) es fijo y cambia de color con cada sección (GSAP anima --sky y --glow).
   Radios: botones en píldora, tarjetas 20px, fotos en arco como las puertas de las casas caribeñas. */

:root {
  color-scheme: dark;
  --sky: #07112b;
  --glow: rgba(242, 193, 78, 0.16);
  --ink: #fff6e6;
  --muted: rgba(255, 246, 230, 0.74);
  --gold: #f2c14e;
  --sun: #ffc93c;
  --coral: #ff6b4a;
  --turq: #19c2b8;
  --red: #d63a2f;
  --green: #2f9a52;
  --night: #0d0718;
  --card: rgba(10, 6, 20, 0.42);
  --line: rgba(255, 246, 230, 0.16);
  --r: 20px;
  --wrap: 1360px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --display: "Bricolage Grotesque", "Outfit", system-ui, sans-serif;
  --body: "Outfit", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font: 300 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% 0%, var(--glow), transparent 62%),
    radial-gradient(90% 60% at 50% 110%, var(--glow), transparent 70%),
    var(--sky);
}

img, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1; letter-spacing: -0.025em; font-weight: 700; }
p, figure, dl, dd { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--sun); color: #1a1004; padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }

.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sun); margin-bottom: 22px; }
.section-title { font-size: clamp(38px, 4.6vw, 68px); margin-bottom: 22px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 500 15px/1 var(--body); white-space: nowrap; text-decoration: none; cursor: pointer;
  padding: 17px 28px; border-radius: 999px; border: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
  will-change: transform;
}
.btn:active { scale: 0.97; }
.btn .ph, .btn .ph-fill { font-size: 18px; }
.btn--sun { background: linear-gradient(180deg, #ffd95e, #ffb43c); color: #2a1503; box-shadow: 0 10px 30px -10px rgba(255, 170, 50, 0.7); }
.btn--sun:hover { box-shadow: 0 14px 40px -8px rgba(255, 170, 50, 0.9); }
.btn--ghost { background: rgba(255, 246, 230, 0.06); color: var(--ink); border-color: rgba(255, 246, 230, 0.32); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--sun); color: var(--sun); }
.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color .4s, border-color .4s, translate .5s var(--ease); border-bottom: 1px solid transparent; }
.nav.is-solid { background: rgba(7, 10, 26, 0.55); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
.nav.is-hidden { translate: 0 -100%; }
.nav__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; height: 70px; display: flex; align-items: center; gap: 32px; }
.nav__brand img { height: 44px; width: auto; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { text-decoration: none; font-size: 15px; color: var(--muted); transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: rgba(0,0,0,.2); }
.lang button { font: 500 12px/1 var(--body); letter-spacing: .08em; color: var(--muted); background: none; border: 0; padding: 7px 10px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: rgba(255, 201, 60, 0.18); color: var(--sun); }
@media (max-width: 960px) { .nav__links { display: none; } .nav__actions { margin-left: auto; } }
@media (max-width: 420px) { .nav__actions .btn { display: none; } .nav__brand img { height: 38px; } }

/* ---------- 1. Hero: noche en el mar ---------- */
.hero {
  position: relative; min-height: 100dvh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 90px 24px 150px; text-align: center; isolation: isolate;
}
.sea { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.moon {
  position: absolute; z-index: 0; top: 15vh; right: 18vw; width: clamp(54px, 6vw, 92px); aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(ellipse 38% 30% at 38% 44%, rgba(150, 140, 110, 0.22), transparent 70%),
    radial-gradient(ellipse 26% 22% at 64% 62%, rgba(150, 140, 110, 0.18), transparent 70%),
    radial-gradient(ellipse 18% 14% at 60% 28%, rgba(150, 140, 110, 0.14), transparent 70%),
    radial-gradient(circle at 40% 40%, #fffdf2, #eee6c8 60%, #cfc6a4 100%);
  box-shadow: 0 0 40px 10px rgba(255, 248, 220, 0.28), 0 0 140px 60px rgba(190, 205, 255, 0.12);
}
@media (max-width: 760px) { .moon { top: 11vh; right: 10vw; } }
.palm { position: absolute; bottom: 0; z-index: 1; pointer-events: none; overflow: visible; }
.palm--left { left: -2vw; width: min(34vw, 460px); height: min(80vh, 760px); }
.palm--right { right: -2vw; width: min(30vw, 420px); height: min(70vh, 660px); scale: -1 1; }
.hero__stage { position: relative; z-index: 2; width: min(860px, 92vw, calc((100dvh - 430px) * 2)); min-width: min(520px, 100%); }
.hero__stage video {
  width: 100%; aspect-ratio: 2 / 1; object-fit: cover; mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse closest-side at 50% 50%, #000 66%, transparent 100%);
  mask-image: radial-gradient(ellipse closest-side at 50% 50%, #000 66%, transparent 100%);
}
.hero__copy { position: relative; z-index: 3; max-width: 900px; }
.hero h1 { font-size: clamp(38px, 4.6vw, 68px); text-wrap: balance; margin-bottom: 18px; }
.hero__sub { color: var(--muted); font-size: 18px; max-width: 46ch; margin: 0 auto 30px; text-wrap: balance; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
@media (max-width: 760px) {
  .hero { padding: 96px 18px 170px; }
  .hero__stage { width: 100vw; min-width: 0; }
  .palm--left { width: 46vw; height: 50vh; left: -10vw; }
  .palm--right { width: 40vw; height: 42vh; right: -10vw; }
  .hero__sub { font-size: 16.5px; }
}

/* ---------- 2. Manifiesto ---------- */
.statement { padding: 26vh 0 14vh; }
.statement__big { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 4.8vw, 74px); line-height: 1.08; letter-spacing: -0.025em; max-width: 21ch; }
.statement__big .w { display: inline-block; }
.statement__big .w--hi { color: var(--sun); font-style: italic; padding-right: .06em; }
.statement__small { margin-top: 40px; color: var(--muted); font-size: 19px; max-width: 46ch; }
.wide-photo { margin: 14vh auto 0; max-width: calc(var(--wrap) + 160px); padding: 0 28px; }
.wide-photo__inner { overflow: hidden; border-radius: 28px; aspect-ratio: 16 / 9; clip-path: inset(0 0 0 0 round 28px); }
.wide-photo img { width: 100%; height: 118%; object-fit: cover; object-position: 50% 62%; }
@media (max-width: 760px) {
  .statement { padding: 18vh 0 10vh; }
  .wide-photo { padding: 0 16px; }
  .wide-photo__inner { height: auto; aspect-ratio: 3 / 2; }
  .wide-photo img { height: 100%; transform: none !important; }
}

/* ---------- 3. El viaje (horizontal) ---------- */
.journey { position: relative; overflow: hidden; }
.journey__track {
  display: flex; height: 100dvh; width: max-content;
  background: linear-gradient(90deg, #0a1638 0%, #2b1442 18%, #8f2f3a 30%, #d4573b 40%, #f08a3c 47%, #138a92 60%, #0b6b78 70%, #12385c 82%, #2a1440 100%);
}
.panel { position: relative; width: 100vw; height: 100%; flex: 0 0 auto; overflow: hidden; padding: 120px 7vw 80px; display: flex; align-items: center; }
.panel__body { position: relative; z-index: 2; max-width: 560px; }
.panel__text { color: var(--muted); font-size: 19px; margin-top: 20px; max-width: 44ch; }
.chapter { font-size: clamp(64px, 9vw, 150px); letter-spacing: -0.04em; line-height: .92; }

.panel--intro { align-items: center; }
.ghost-word {
  position: absolute; right: -4vw; bottom: 4vh;
  font: 800 clamp(120px, 22vw, 360px)/1 var(--display); letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(242, 193, 78, 0.28); white-space: nowrap; pointer-events: none;
}
.doc-title { font-size: clamp(44px, 5.4vw, 84px); line-height: .98; }
.doc-title span { display: block; font-size: .42em; font-weight: 500; color: var(--sun); letter-spacing: 0; margin-bottom: 10px; }
.facts { display: flex; gap: 44px; margin: 32px 0 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { font: 600 22px/1.2 var(--display); }

.panel--roots { align-items: flex-end; }
.sunburst { position: absolute; width: min(64vh, 600px); aspect-ratio: 1; right: 12vw; top: 50%; translate: 0 -58%; pointer-events: none; }
.sunburst__rays {
  position: absolute; inset: -45%; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 220, 140, 0.22) 0deg 3deg, transparent 3deg 11deg, rgba(255, 200, 110, 0.12) 11deg 13deg, transparent 13deg 22deg);
  -webkit-mask-image: radial-gradient(circle, #000 14%, rgba(0,0,0,.5) 34%, transparent 62%);
  mask-image: radial-gradient(circle, #000 14%, rgba(0,0,0,.5) 34%, transparent 62%);
  filter: blur(5px);
}
.sunburst__halo { position: absolute; inset: -20%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 120, 0.55) 0%, rgba(255, 150, 60, 0.25) 35%, transparent 65%); }
.sunburst__core {
  position: absolute; inset: 26%; border-radius: 50%;
  background: radial-gradient(circle at 46% 42%, #fffdf0 0%, #fff0b0 22%, #ffd36a 48%, #ffa640 76%, #ff7a2f 100%);
  box-shadow: 0 0 60px 20px rgba(255, 190, 80, 0.6), 0 0 160px 70px rgba(255, 130, 50, 0.35);
}
.panel__body--low { padding-bottom: 12vh; }
.kente-strip { position: absolute; left: 0; right: 0; bottom: 0; height: 34px; opacity: .95; }

.panel--islands { justify-content: flex-end; align-items: flex-start; padding-top: 18vh; }
.palm--island { left: 6vw; width: min(42vw, 520px); height: 92%; }
.sea--panel { top: auto; bottom: 0; height: 38%; z-index: 1; }
.panel__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.panel__video { width: 100%; height: 100%; object-fit: cover; }
.panel__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, #f08a3c 0%, rgba(240, 138, 60, 0.55) 9%, rgba(240, 138, 60, 0) 26%, rgba(6, 40, 52, 0) 48%, rgba(6, 40, 52, 0.72) 78%, rgba(6, 40, 52, 0.85) 100%),
    linear-gradient(0deg, rgba(4, 30, 40, 0.55), transparent 35%);
}
.panel__credit { position: absolute; z-index: 2; right: 7vw; bottom: 6vh; font-size: 13px; letter-spacing: .04em; color: rgba(255, 246, 230, 0.8); }
.sun-low { position: absolute; left: 50%; bottom: 31%; width: 220px; aspect-ratio: 1; translate: -50% 50%; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, #fff6d0 0%, #ffd27a 40%, rgba(255, 160, 70, 0.0) 70%); filter: blur(2px); }
.isle { position: absolute; right: 6vw; bottom: calc(30% - 4px); width: 62%; height: 70px; z-index: 0; }
.birds { position: absolute; left: 20%; top: 14%; width: 300px; height: 120px; z-index: 1; overflow: visible; }
.bird { fill: none; stroke: rgba(20, 30, 40, 0.75); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.panel__body--right { text-align: right; }
.panel__body--right .panel__text { margin-left: auto; }

.panel--leaving { flex-direction: column; justify-content: flex-start; align-items: flex-start; padding-top: 15vh; }
.route { position: absolute; left: 4vw; right: 4vw; bottom: 5vh; width: 92vw; height: 62vh; overflow: visible; }
.route__line { fill: none; stroke: rgba(255, 246, 230, 0.85); stroke-width: 3; stroke-linecap: round; }
.route__main { stroke: var(--sun); stroke-width: 4; }
.route__dot { fill: var(--ink); }
.route__dot--origin { fill: var(--sun); }
.route__label { fill: var(--ink); font: 500 22px var(--body); text-anchor: middle; }
.route__label--origin { fill: var(--sun); font-weight: 600; }


.panel--legacy { justify-content: space-between; gap: 6vw; }
.arch { overflow: hidden; border-radius: 999px 999px var(--r) var(--r); border: 6px solid rgba(255, 246, 230, 0.9); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch--legacy { flex: 0 0 auto; width: min(34vw, 460px); aspect-ratio: 3 / 4.4; }

@media (max-width: 899px), (prefers-reduced-motion: reduce) {
  .journey__track { flex-direction: column; width: 100%; height: auto; background: linear-gradient(180deg, #0a1638 0%, #2b1442 18%, #a83a35 36%, #d4573b 46%, #138a92 62%, #0b6b78 74%, #12385c 88%, #2a1440 100%); }
  .panel { width: 100%; min-height: 100svh; height: auto; padding: 110px 22px 80px; }
  .ghost-word { font-size: 34vw; right: -8vw; top: 18%; }
  .sunburst { width: 78vw; right: 11vw; top: 36%; }
  .isle { width: 100%; right: 0; }
  .panel--islands { padding-top: 110px; justify-content: flex-start; }
  .panel__body--right { text-align: left; }
  .panel__body--right .panel__text { margin-left: 0; }
  .palm--island { width: 70vw; height: 70%; left: auto; right: -6vw; }
  .route { inset: auto auto 6vh -8%; width: 116%; height: 50vh; }
  .route__label { font-size: 34px; }
  .panel--leaving .panel__body { margin-top: 0; padding-bottom: 46vh; }
  .panel--legacy { flex-direction: column; align-items: flex-start; justify-content: center; gap: 40px; }
  .arch--legacy { width: min(86vw, 420px); }
}

/* ---------- Banda kente ---------- */
.band { position: relative; height: 84px; overflow: hidden; display: flex; align-items: center; rotate: -1.5deg; margin: -10px -20px; z-index: 3; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.band__bg { position: absolute; inset: 0; opacity: .28; }
.band::before { content: ""; position: absolute; inset: 0; background: #120b06; z-index: -1; }
.band__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.band__set { display: flex; align-items: center; gap: 36px; padding-right: 36px; }
.band__set span { font: 700 34px/1 var(--display); letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.band__set i { color: var(--sun); font-size: 26px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .band__track { animation: none; } }

/* ---------- 4. Ritmo: steelpan ---------- */
.rhythm { padding: 20vh 0; }
.rhythm__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.pan-wrap { position: relative; max-width: 560px; width: 100%; justify-self: center; }
.pan { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 40px 60px rgba(0,0,0,.55)); }
.pan__ripples circle { fill: none; stroke: var(--sun); stroke-width: 2; }
.note { cursor: pointer; outline: none; }
.note__shape { fill: url(#panNote); stroke: rgba(60, 35, 5, 0.55); stroke-width: 2; transition: filter .3s; }
.note__ring { fill: rgba(255, 245, 200, 0); stroke: none; }
.note:hover .note__shape, .note:focus-visible .note__shape { filter: brightness(1.15); }
.note:focus-visible .note__shape { stroke: var(--ink); stroke-width: 4; }
.note.is-active .note__shape { filter: brightness(1.3) saturate(1.2); }
.rhythm__hint { color: var(--muted); font-size: 18px; margin-bottom: 30px; }
.pillar { min-height: 190px; padding: 28px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(8px); margin-bottom: 22px; }
.pillar__icon { font-size: 34px; color: var(--sun); }
.pillar__t { font-size: 30px; margin: 14px 0 10px; }
.pillar__d { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.chip { font: 400 14px/1 var(--body); color: var(--ink); background: transparent; border: 1px solid var(--line); padding: 11px 16px; border-radius: 999px; cursor: pointer; transition: border-color .25s, background-color .25s, color .25s; }
.chip:hover { border-color: var(--sun); }
.chip[aria-pressed="true"] { background: rgba(255, 201, 60, 0.16); border-color: var(--sun); color: var(--sun); }
@media (max-width: 900px) {
  .rhythm { padding: 14vh 0; }
  .rhythm__grid { grid-template-columns: 1fr; }
  .pan-wrap { max-width: 400px; }
}

/* ---------- 5. MasterKey ---------- */
.mk { padding: 0 0 20vh; }
.railing { position: relative; height: 110px; margin-bottom: 14vh; }
.railing__lattice { position: absolute; inset: 0 0 18px 0; opacity: .16; }
.railing__colors { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; display: flex; }
.railing__colors span { flex: 1; }
.railing__colors span:nth-child(1) { background: var(--red); }
.railing__colors span:nth-child(2) { background: var(--sun); }
.railing__colors span:nth-child(3) { background: var(--green); }
.mk__grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.arch--mk { aspect-ratio: 1600 / 1066; width: 100%; border-radius: 50% 50% var(--r) var(--r) / 20% 20% var(--r) var(--r); }
.arch--mk img { object-fit: cover; object-position: 50% 50%; }
.mk__copy p { color: var(--muted); font-size: 19px; max-width: 42ch; }
@media (max-width: 860px) { .mk__grid { grid-template-columns: 1fr; } .railing { height: 80px; margin-bottom: 10vh; } }

/* ---------- 6. Súmate: atardecer ---------- */
.join { position: relative; overflow: hidden; padding: 210px 0 300px; isolation: isolate; }
.bunting { position: absolute; top: 0; left: 0; width: 100%; height: 150px; z-index: 2; overflow: visible; }
.bunting path.string { fill: none; stroke: rgba(255, 246, 230, 0.6); stroke-width: 1.5; }
.sun {
  position: absolute; left: 50%; bottom: 60px; z-index: 0; width: min(70vw, 760px); aspect-ratio: 1; translate: -50% 40%;
  border-radius: 50%; background: radial-gradient(circle at 50% 45%, #fff1b0 0%, #ffc93c 38%, #ff7a2f 70%, rgba(255, 90, 40, 0) 72%);
  filter: blur(1px);
}
.sea--join { top: auto; bottom: 0; height: 300px; z-index: 1; }
.join__grid { position: relative; z-index: 3; display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.join__lead { color: var(--muted); font-size: 19px; max-width: 46ch; margin-bottom: 36px; }
.audiences { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.aud { text-align: left; cursor: pointer; font: inherit; color: inherit; background: var(--card); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 6px; transition: border-color .3s var(--ease), background-color .3s var(--ease), translate .3s var(--ease); }
.aud:hover { border-color: rgba(255, 201, 60, .6); translate: 0 -3px; }
.aud[aria-pressed="true"] { border-color: var(--sun); background: rgba(40, 14, 10, .6); }
.aud .ph { font-size: 28px; color: var(--sun); margin-bottom: 4px; }
.aud__t { font-weight: 500; font-size: 16px; }
.aud__d { color: var(--muted); font-size: 14.5px; line-height: 1.55; }

.form { background: rgba(14, 6, 16, 0.62); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: var(--r); padding: 34px; display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea { font: 400 16px/1.4 var(--body); color: var(--ink); background: rgba(5, 2, 10, 0.6); border: 1px solid rgba(255, 246, 230, .26); border-radius: 12px; padding: 13px 14px; width: 100%; transition: border-color .2s, box-shadow .2s; }
.field select option { background: #1a0d14; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 3px rgba(255, 201, 60, .22); }
.field__hint { font-size: 13px; color: var(--muted); }
.field__error { display: none; font-size: 13px; color: #ffb3a6; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ffb3a6; }
.field.is-invalid .field__error { display: block; }
.form__status { font-size: 14px; color: var(--muted); }
.form__status.is-ok { color: var(--sun); }
.form__status.is-error { color: #ffb3a6; }
@media (max-width: 900px) {
  .join { padding: 170px 0 260px; }
  .join__grid { grid-template-columns: 1fr; }
  .form { padding: 24px; }
}
@media (max-width: 560px) { .audiences { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--night); padding: 30px 0 40px; position: relative; }
.footer__inner { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 24px 48px; }
.footer__logo { width: 210px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: flex-end; }
.footer__links a { text-decoration: none; color: var(--muted); font-size: 15px; }
.footer__links a:hover { color: var(--sun); }
.footer__copy { grid-column: 1 / -1; font-size: 13px; color: var(--muted); padding-top: 22px; border-top: 1px solid var(--line); }
@media (max-width: 700px) { .footer__inner { grid-template-columns: 1fr; } .footer__links { justify-content: flex-start; } }

/* ---------- Reproductor de música ---------- */
.player {
  position: fixed; left: 20px; bottom: 20px; z-index: 45;
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 14px/1 var(--body); color: var(--ink); cursor: pointer;
  padding: 12px 18px 12px 14px; border-radius: 999px;
  background: rgba(10, 6, 20, 0.6); border: 1px solid rgba(255, 201, 60, 0.4);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.6);
  transition: border-color .3s, background-color .3s;
}
.player:hover { border-color: var(--sun); }
.player[aria-pressed="true"] { background: rgba(40, 18, 8, 0.7); border-color: var(--sun); }
.player__bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; }
.player__bars i { width: 3px; height: 100%; border-radius: 2px; background: var(--sun); transform-origin: bottom; transform: scaleY(0.25); transition: transform .12s linear; }
@media (max-width: 520px) { .player { left: 14px; bottom: 14px; padding: 12px; } .player__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* ---------- Grano de película ---------- */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* Estados iniciales de animación: solo si hay JS + GSAP y movimiento permitido */
@media (prefers-reduced-motion: no-preference) {
  .anim .hero__copy > *, .anim .fade-up { opacity: 0; }
}

@media (max-width: 899px), (prefers-reduced-motion: reduce) {
  .panel__media::after { background: linear-gradient(180deg, rgba(6, 40, 52, 0.8) 0%, rgba(6, 40, 52, 0.25) 45%, rgba(6, 40, 52, 0.6) 100%); }
  .panel__credit { right: 22px; bottom: 28px; }
}

/* =========================================================
   Material real: videos, fotos de archivo y texturas
   ========================================================= */
.scene-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; z-index: 0; }
.scene-video--night {
  opacity: .7;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 28%, rgba(0,0,0,.6) 52%, #000 78%);
  mask-image: linear-gradient(180deg, transparent 0%, transparent 28%, rgba(0,0,0,.6) 52%, #000 78%);
}

/* Raíces: djembé en arco con el sol detrás, franja de kente real */
.roots-art { position: absolute; right: 11vw; top: 50%; translate: 0 -54%; width: min(28vw, 400px); aspect-ratio: 3 / 4; }
.roots-art .sunburst { position: absolute; inset: -48%; width: auto; aspect-ratio: auto; right: auto; top: auto; translate: none; }
.arch--roots { position: relative; z-index: 1; width: 100%; height: 100%; }
.arch--roots img { object-position: 62% 50%; }
.kente-strip { height: 46px; background: url("assets/kente.webp") center / 560px auto repeat-x; box-shadow: 0 -10px 30px rgba(0,0,0,.35); }

/* La partida: mapa de 1855 detrás de la ruta y muro de archivo */
.panel--leaving { width: 178vw; }
.old-map {
  position: absolute; left: 0; top: 0; bottom: 0; width: 100vw; z-index: 0;
  background: url("assets/mapa-antillas-1855.webp") center / cover no-repeat;
  opacity: .22; filter: sepia(.5) contrast(1.1); mix-blend-mode: luminosity;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 55%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 55%, #000 40%, transparent 100%);
}
.route { z-index: 1; }
.archive { position: absolute; z-index: 2; right: 5vw; top: 50%; translate: 0 -50%; width: 66vw; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3vw; align-items: center; }
.archive .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.print { margin: 0; background: #f3ead6; padding: 12px 12px 16px; border-radius: 4px; box-shadow: 0 30px 60px -25px rgba(0,0,0,.7), 0 2px 0 rgba(0,0,0,.08); }
.print img { width: 100%; height: auto; filter: sepia(.25) contrast(1.05); }
.print figcaption { color: #2b2219; font: 400 13.5px/1.35 var(--body); margin-top: 10px; display: grid; gap: 2px; }
.print figcaption small { font: 600 15px var(--display); color: #8a5a1c; }
.print--1 { rotate: -3deg; }
.print--2 { rotate: 2deg; translate: 0 -5vh; }
.print--3 { rotate: -1.5deg; translate: 0 6vh; }

/* El legado: Limón desde el aire, teñido */
.panel__media--legacy img { width: 100%; height: 100%; object-fit: cover; }
.panel__media.panel__media--legacy::after { background: linear-gradient(90deg, rgba(14, 40, 78, 0.94) 0%, rgba(30, 20, 64, 0.78) 45%, rgba(42, 20, 64, 0.5) 100%); }
.arch--legacy { position: relative; z-index: 2; }

/* El ritmo: foto real de un steelpan detrás del tambor */
.pan-wrap { isolation: isolate; }
.arch--pan { position: absolute; z-index: -1; width: 44%; aspect-ratio: 3 / 4; right: -16%; bottom: -12%; rotate: 5deg; border-width: 5px; }
.arch--pan img { object-position: 50% 14%; }

/* MasterKey: fachada real con celosía en lugar del patrón dibujado */
.railing { height: 190px; }
.railing__photo { position: absolute; inset: 0 0 18px 0; background: url("assets/casa-gingerbread.webp") center 40% / cover no-repeat; }
.railing__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--sky) 0%, rgba(58, 20, 54, 0.2) 45%, rgba(58, 20, 54, 0.1) 100%); }

/* Súmate: atardecer real */
.join::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, #6a1c2e 0%, rgba(106, 28, 46, 0.55) 16%, rgba(30, 8, 20, 0.2) 48%, rgba(13, 7, 24, 0.75) 86%, #0d0718 100%); }

/* Créditos */
.footer__credits { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }
.footer__credits summary { cursor: pointer; font-size: 13px; color: var(--ink); width: fit-content; }
.footer__credits p { margin-top: 10px; max-width: 110ch; line-height: 1.6; }
.footer__credits a { color: var(--sun); }

@media (max-width: 899px), (prefers-reduced-motion: reduce) {
  .panel--roots { flex-direction: column; justify-content: center; align-items: flex-start; }
  .roots-art { position: relative; right: auto; top: auto; translate: none; width: min(70vw, 330px); margin: 0 auto 56px; }
  .panel--leaving { width: 100%; }
  .old-map { width: 100%; }
  .panel--leaving .panel__body { padding-bottom: 0; }
  .panel--leaving .route { position: relative; inset: auto; order: 2; width: 116%; margin-left: -8%; height: auto; aspect-ratio: 2 / 1; }
  .archive { position: relative; right: auto; top: auto; translate: none; width: 100%; order: 3; grid-template-columns: 1fr; gap: 28px; margin-top: 20px; }
  .print--2, .print--3 { translate: none; }
  .arch--pan { display: none; }
  .railing { height: 130px; }
}
.hero h1, .hero__sub { text-shadow: 0 2px 28px rgba(3, 6, 20, 0.85), 0 1px 3px rgba(3, 6, 20, 0.6); }
.hero__copy::before { content: ""; position: absolute; inset: -12% -10%; z-index: -1; background: radial-gradient(ellipse at center, rgba(5, 10, 30, 0.55), transparent 70%); pointer-events: none; }
