/* ==========================================================================
   SEGUROS ATLAS · CORREDORES 2026 — Costa Palmas, Los Cabos
   Rediseño v2 — editorial cinematográfico:
   serif monumental · hairlines · escenas oscuras · grano de film · marquee.
   Misma paleta (rojo Atlas / flama / dorado / arena). Sin neón.
   Los hooks de clase que anima js/corredores.js se conservan intactos.
   ========================================================================== */

:root {
  /* Brand — del logo CORREDORES 2026 */
  --brand: #d2202f;
  --brand-dark: #a4111e;
  --brand-light: #f26522;
  --gold: #c9922b;
  --gold-deep: #a3741c;
  --gold-light: #e0b558;
  --brand-rgb: 210, 32, 47;
  --gold-rgb: 201, 146, 43;

  /* Superficies — arena de día, café profundo de noche */
  --sand: #f3e7d2;
  --sand-soft: #f9f1e2;
  --sand-deep: #e9d9bd;
  --cream: #fdf6e9;
  --paper: #fbf4e6;
  --night: #1d140e;        /* escenas oscuras */
  --night-soft: #2a1d14;

  /* Tinta */
  --ink: #2b221c;
  --ink-soft: #5c514a;
  --ink-faint: #8b7f76;
  --line: rgba(43, 34, 28, 0.16);
  --line-strong: rgba(43, 34, 28, 0.4);
  --line-cream: rgba(253, 246, 233, 0.22);

  /* Tipografía */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --container: 1280px;
  --container-narrow: 820px;
  --gutter: clamp(1.2rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 10vw, 9rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  counter-reset: sec;
}

/* Grano de film — sutil, cinematográfico, sin luces */
body::after {
  content: ""; position: fixed; inset: -10%; z-index: 9998; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05; mix-blend-mode: multiply;
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); } 75% { transform: translate(-1%, 2%); } 100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) { body::after { animation: none; } }

/* El video de fondo del diseño anterior queda fuera de escena */
.bg-scene { display: none; }

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

/* ==========================================================================
   TYPOGRAPHY HELPERS
   ========================================================================== */
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
.eyebrow {
  display: flex; align-items: baseline; gap: 0.7rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.3rem;
}
/* Numeración de secciones — automática, estilo créditos */
.section { counter-increment: sec; }
.eyebrow::before {
  content: counter(sec, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 500; font-style: italic;
  letter-spacing: 0; color: var(--gold);
}
.lead {
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  color: var(--ink-soft);
  font-weight: 400;
  max-width: 58ch;
  margin-top: 1.4rem;
}
.note { color: var(--ink-faint); font-size: 0.9rem; max-width: 58ch; margin-top: 0.8rem; }
.rule {
  width: 100%; height: 1px; background: var(--line);
  margin-top: 1.6rem; position: relative;
}
.rule::before { content: ""; position: absolute; left: 0; top: -1px; width: 72px; height: 3px; background: var(--brand); }
.rule--left { margin-left: 0; }
.pull {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.25;
  color: var(--gold-light);
  margin-bottom: 1.6rem;
  text-wrap: balance;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }
/* El "center" heredado ahora es cabecera editorial alineada a la izquierda */
.center { text-align: left; }
.section { padding: var(--section-y) 0; position: relative; }
.section > .container.center {
  border-top: 1px solid var(--line-strong);
  padding-top: 1.4rem;
  margin-bottom: clamp(2rem, 4vw, 3.4rem);
}
.section--alt { background: transparent; }

/* ==========================================================================
   BOTONES — rectangulares, tipográficos
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 1rem 1.9rem; border-radius: 2px;
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
  position: relative;
}
.btn--primary { background: var(--brand); color: var(--cream); }
.btn--primary:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--cream); border-color: rgba(253, 246, 233, 0.55); }
.btn--ghost:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
/* Ghost sobre fondos claros */
.section .btn--ghost, .modal .btn--ghost { color: var(--ink); border-color: var(--line-strong); }
.section .btn--ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn--block { width: 100%; padding: 1.15rem; font-size: 0.82rem; }
.btn__spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow {
  display: inline-block; margin-top: 1.6rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand); border-bottom: 1px solid var(--brand);
  padding-bottom: 0.3rem; transition: color 0.25s, border-color 0.25s, letter-spacing 0.3s var(--ease);
}
.link-arrow:hover { color: var(--ink); border-color: var(--ink); letter-spacing: 0.24em; }

/* ==========================================================================
   INTRO — apertura de película (oscura)
   ========================================================================== */
.intro {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  overflow: hidden; background: var(--night);
}
.intro__bg {
  position: absolute; inset: -4%; background-size: cover; background-position: center;
  transform: scale(1.1); filter: saturate(0.8) brightness(0.5);
}
.intro__veil {
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(29,20,14,0.5), rgba(21,14,9,0.95) 78%);
}
.intro__ring { position: absolute; border-radius: 50%; border: 1px solid rgba(224,181,88,0.55); opacity: 0; }
.intro__ring--1 { width: 250px; height: 250px; }
.intro__ring--2 { width: 400px; height: 400px; border-color: rgba(224,181,88,0.3); }
.intro__ring--3 { width: 570px; height: 570px; border-color: rgba(224,181,88,0.16); }
.intro__core { position: relative; text-align: center; display: grid; gap: 1.2rem; justify-items: center; opacity: 0; }
.intro__g2g { width: 190px; max-width: 52vw; filter: brightness(0) invert(1); opacity: 0.9; }
/* El emblema CORREDORES vive en un medallón claro: no se lee sobre oscuro */
.intro__logo {
  width: clamp(200px, 36vw, 310px); aspect-ratio: 1;
  border-radius: 50%; padding: clamp(1rem, 2.2vw, 1.6rem);
  background: radial-gradient(circle at 50% 40%, #fffdf8 0%, var(--cream) 72%, var(--sand) 100%);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(224,181,88,0.4);
  object-fit: contain;
}
.intro__tagline { color: var(--gold-light); letter-spacing: 0.5em; font-size: 0.68rem; font-weight: 500; opacity: 0.9; text-transform: uppercase; }
.intro__skip {
  position: absolute; bottom: 2rem; right: 2rem; background: transparent;
  color: rgba(253,246,233,0.75); border: 1px solid rgba(253,246,233,0.3);
  padding: 0.55rem 1.2rem; border-radius: 2px;
  font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer; transition: background 0.25s, color 0.25s;
}
.intro__skip:hover { background: var(--cream); color: var(--ink); }
body.intro-done .intro { display: none; }

/* Prompt de sonido */
.intro__prompt {
  position: absolute; left: 50%; bottom: 13vh; transform: translateX(-50%);
  display: grid; gap: 1.2rem; justify-items: center; z-index: 10000;
  opacity: 0; pointer-events: none; padding: 0 1rem;
  width: min(560px, 92vw);
}
.intro__prompt[aria-hidden="false"] { pointer-events: auto; }
.intro__prompt-q {
  color: var(--cream); font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.5rem); font-weight: 400; font-style: italic;
  text-align: center; letter-spacing: 0.03em;
  text-shadow: 0 4px 24px rgba(0,0,0,0.6);
}
.intro__prompt-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; justify-content: center; }
.intro__prompt-btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  background: transparent; color: var(--cream);
  border: 1px solid rgba(253,246,233,0.4);
  border-radius: 2px;
  font-family: var(--font-body); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer; transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.intro__prompt-btn svg { width: 16px; height: 16px; }
.intro__prompt-btn:hover { background: rgba(253,246,233,0.12); transform: translateY(-2px); }
.intro__prompt-btn--primary { background: var(--brand); border-color: var(--brand); }
.intro__prompt-btn--primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
@media (max-width: 480px) {
  .intro__prompt { bottom: 9vh; }
  .intro__prompt-btn { padding: 0.7rem 1.1rem; font-size: 0.7rem; }
}

/* ==========================================================================
   NAV
   ========================================================================== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background 0.35s var(--ease), box-shadow 0.35s, padding 0.35s, border-color 0.35s;
  padding: 1.15rem 0;
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(243, 231, 210, 0.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  padding: 0.65rem 0;
}
.nav-container { max-width: 1380px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: flex-end; gap: 1rem; }
/* Logo del nav oculto por ahora (pendiente el asset correcto del 85 aniversario) */
.nav-logo { display: none; }
.nav-logo img { height: 30px; transition: filter 0.35s; }
#navbar:not(.scrolled) .nav-logo img { filter: brightness(0) invert(1); }
.nav-links { display: flex; align-items: center; gap: clamp(0.6rem, 1.8vw, 1.9rem); }
.nav-links a {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); padding: 0.4rem 0.1rem; position: relative; transition: color 0.25s;
}
#navbar:not(.scrolled) .nav-links a { color: rgba(253,246,233,0.92); text-shadow: 0 1px 10px rgba(0,0,0,0.35); }
.nav-links a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 0; height: 1px; background: var(--brand); transition: width 0.3s var(--ease); }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
#navbar:not(.scrolled) .nav-links a:not(.nav-cta)::after { background: var(--cream); }
.nav-cta {
  background: var(--brand); color: var(--cream) !important;
  padding: 0.65rem 1.4rem !important; border-radius: 2px;
  text-shadow: none !important; transition: background 0.25s, transform 0.25s;
}
.nav-cta:hover { background: var(--brand-dark); transform: translateY(-1px); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.3s; }
#navbar:not(.scrolled) .nav-toggle span { background: var(--cream); }

/* Mobile menu — arena y tinta */
.mobile-menu { position: fixed; inset: 0; z-index: 1100; pointer-events: none; opacity: 0; transition: opacity 0.4s; }
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu__content {
  position: absolute; inset: 0; background: var(--sand);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 1.4rem; padding: 0 clamp(2rem, 8vw, 4rem);
  transform: translateY(-100%); transition: transform 0.5s var(--ease);
}
.mobile-menu.open .mobile-menu__content { transform: translateY(0); }
.mobile-menu__close { position: absolute; top: 1.6rem; right: 1.6rem; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; }
.mobile-menu__close span { position: absolute; top: 50%; left: 8px; width: 24px; height: 2px; background: var(--ink); }
.mobile-menu__close span:first-child { transform: rotate(45deg); } .mobile-menu__close span:last-child { transform: rotate(-45deg); }
.mobile-menu__nav { display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; counter-reset: mnav; }
.mobile-menu__link {
  font-family: var(--font-display); font-size: clamp(2rem, 8vw, 2.9rem); font-weight: 500;
  color: var(--ink); line-height: 1.15; display: flex; align-items: baseline; gap: 0.8rem;
  counter-increment: mnav; transition: color 0.25s;
}
.mobile-menu__link::before {
  content: counter(mnav, decimal-leading-zero);
  font-family: var(--font-body); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.2em; color: var(--gold);
}
.mobile-menu__link:hover { color: var(--brand); }
.mobile-menu__link--cta { margin-top: 1rem; color: var(--brand); }
.mobile-menu__footer { position: absolute; bottom: 2rem; left: clamp(2rem, 8vw, 4rem); color: var(--ink-faint); }
.mobile-menu__footer img { height: 24px; margin: 0 0 0.5rem; }
.mobile-menu__footer p { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; }

/* ==========================================================================
   HERO — póster cinematográfico full-bleed
   ========================================================================== */
#hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; color: var(--cream);
}
.hero__photo {
  position: absolute; left: 0; right: 0; top: -12%; height: 112%;
  background-size: cover; background-position: center 30%;
  will-change: transform;
  filter: saturate(0.92) contrast(1.02);
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(29,20,14,0.42) 0%, rgba(29,20,14,0.05) 26%, rgba(29,20,14,0.0) 45%, rgba(29,20,14,0.52) 78%, rgba(29,20,14,0.82) 100%);
}
.hero__kicker {
  position: absolute; top: clamp(5.2rem, 9vh, 7rem); left: 50%; transform: translateX(-50%);
  z-index: 2;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.5em; text-transform: uppercase;
  color: var(--cream); white-space: nowrap;
  background: rgba(29,20,14,0.38); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 0.55rem 1.4rem 0.55rem 1.75rem; border-radius: 999px;
  border: 1px solid rgba(253,246,233,0.18);
}
.hero__content {
  position: relative; z-index: 2;
  width: 100%; max-width: 1380px; margin: 0 auto;
  padding: 0 var(--gutter) clamp(1.6rem, 3vh, 2.6rem);
}
.hero__venue {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.5rem); color: rgba(253,246,233,0.92);
  margin-bottom: 0.4rem; text-shadow: 0 2px 16px rgba(0,0,0,0.45);
}
.hero__title {
  font-family: var(--font-display); font-weight: 600; color: var(--cream);
  font-size: clamp(3.6rem, 11.5vw, 9.6rem); line-height: 0.88; letter-spacing: -0.02em;
  text-shadow: 0 10px 50px rgba(0,0,0,0.4);
  display: flex; align-items: baseline; flex-wrap: wrap; column-gap: clamp(1rem, 3vw, 2.4rem);
}
.hero__year {
  font-style: italic; font-weight: 500;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold-light);
  letter-spacing: 0.04em;
}
.hero__meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.9rem;
  color: rgba(253,246,233,0.9); font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase;
  font-size: clamp(0.7rem, 1.3vw, 0.85rem); margin-top: 1.1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero__dot { color: var(--gold-light); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }

/* Medallón — emblema del evento, esquina superior derecha del póster.
   Va arriba a propósito: así el año «2026» del título queda siempre libre y legible
   (antes el medallón invadía el «6» en pantallas de laptop y se leía «202»). */
.hero__badge {
  position: absolute; right: clamp(1.6rem, 5vw, 5.5rem); top: clamp(5.5rem, 13vh, 8.5rem); bottom: auto;
  z-index: 3;
  width: clamp(190px, 22vw, 300px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #fffdf8 0%, var(--cream) 70%, var(--sand) 100%);
  display: grid; place-items: center; padding: clamp(0.9rem, 1.6vw, 1.5rem);
  box-shadow: 0 34px 90px rgba(0,0,0,0.5);
}
.hero__badge::before { content: ""; position: absolute; inset: -26px; border-radius: 50%; border: 1px dashed rgba(224,181,88,0.35); pointer-events: none; }
.hero__badge::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 1px solid rgba(224,181,88,0.6); pointer-events: none; }
.hero__badge img { width: 100%; height: auto; }
/* En pantallas medianas baja de tamaño antes de ocultarse en móvil */
@media (max-width: 1180px) {
  .hero__badge { width: clamp(155px, 19vw, 220px); top: clamp(5rem, 12vh, 7rem); }
}

/* Barra de countdown — créditos al pie del póster */
.hero__count {
  position: relative; z-index: 2;
  background: var(--night);
  border-top: 1px solid var(--line-cream);
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(0.8rem, 3vw, 2.5rem);
  padding: clamp(0.7rem, 1.6vh, 1.1rem) var(--gutter);
}
.hero__count-label {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(0.9rem, 1.6vw, 1.2rem); color: var(--gold-light);
  white-space: nowrap;
}
/* librar el botón de sonido flotante */
.hero__count-label--end { margin-right: 3.6rem; }
.countdown { display: flex; align-items: baseline; justify-content: center; gap: clamp(0.5rem, 1.6vw, 1.3rem); }
.cd-unit { display: flex; align-items: baseline; gap: 0.5rem; }
.cd-num {
  font-family: var(--font-display); font-weight: 500; color: var(--cream);
  font-size: clamp(1.7rem, 3.6vw, 2.8rem); line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: transform 0.3s var(--ease-spring);
}
.cd-num.flip { transform: scale(1.14); }
.cd-lab { font-size: 0.58rem; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(253,246,233,0.55); }
.cd-sep { font-family: var(--font-display); font-size: clamp(1.2rem, 2.4vw, 1.9rem); color: rgba(224,181,88,0.6); }
.countdown-finished { color: var(--cream); font-family: var(--font-display); font-style: italic; font-size: 1.3rem; }

.hero__scroll { position: absolute; bottom: calc(clamp(3.2rem, 7vh, 4.6rem) + 1.4rem); left: 50%; transform: translateX(-50%); z-index: 3; width: 24px; height: 42px; border: 1.5px solid rgba(253,246,233,0.55); border-radius: 999px; }
.hero__scroll span { position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; background: var(--cream); border-radius: 2px; transform: translateX(-50%); animation: scrolldot 1.6s infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 13px); } 100% { opacity: 0; } }

/* ==========================================================================
   MARQUEE — cinta continua
   ========================================================================== */
.marquee {
  overflow: hidden; white-space: nowrap;
  border-bottom: 1px solid var(--line);
  background: var(--sand);
  padding: 0.85rem 0;
}
.marquee__track { display: inline-flex; animation: marquee 34s linear infinite; will-change: transform; }
.marquee__seq {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(0.95rem, 1.8vw, 1.25rem); color: var(--ink-soft);
  letter-spacing: 0.12em; text-transform: uppercase;
  padding-right: 0.5ch;
}
.marquee__seq em { font-style: normal; color: var(--brand); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ==========================================================================
   REVEAL (GSAP / fallback)
   ========================================================================== */
.reveal { opacity: 1; transform: none; }
.js-fx .reveal { opacity: 0; transform: translateY(34px); }
.js-fx .reveal.is-visible { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.no-gsap .reveal { opacity: 1; transform: none; }

/* Pre-hide para evitar flicker antes del primer tick de GSAP */
.js-fx .intro__bg { transform: scale(1.28); }
.js-fx .intro__veil { opacity: 0; }

.js-fx .hero__badge,
.js-fx .hero__title,
.js-fx .hero__venue,
.js-fx .hero__meta,
.js-fx .hero__actions a,
.js-fx .countdown .cd-unit,
.js-fx .countdown .cd-sep,
.js-fx .hero__scroll,
.js-fx .hotel-tile,
.js-fx .filosofia__text,
.js-fx .filosofia__media,
.js-fx .filosofia__text > *,
.js-fx .circle-frame,
.js-fx .day-card,
.js-fx .day-card .timeline li,
.js-fx .dress-card,
.js-fx .gallery__slide,
.js-fx .photo-tile,
.js-fx #reg-form .reg-block,
.js-fx #reg-form .reg-block .field,
.js-fx #footer .footer__inner > *,
.js-fx .section .container.center .eyebrow,
.js-fx .section .container.center .h2,
.js-fx .section .container.center .rule,
.js-fx .section .container.center .lead,
.js-fx .section .container.center .note {
  opacity: 0;
}

/* ==========================================================================
   BIENVENIDA — declaración + sede
   ========================================================================== */
.welcome-row { display: block; }
#about .container.center { margin-bottom: clamp(2rem, 4vw, 3rem); }
#about .lead em { font-family: var(--font-display); font-size: 1.15em; }

.hotels-grid { display: grid; grid-template-columns: 1fr; margin-top: 0; }
.hotel-tile {
  display: grid; grid-template-columns: 1.25fr 0.75fr; align-items: stretch;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 2px;
  overflow: hidden; transition: border-color 0.35s;
}
.hotel-tile:hover { border-color: var(--ink); }
.hotel-tile__img {
  min-height: clamp(260px, 38vw, 460px);
  background-size: cover; background-position: center;
  transition: transform 1.2s var(--ease); transform-origin: center;
}
.hotel-tile:hover .hotel-tile__img { transform: scale(1.04); }
.hotel-tile__body { padding: clamp(1.6rem, 3vw, 2.6rem); display: flex; flex-direction: column; justify-content: flex-end; gap: 0.5rem; border-left: 1px solid var(--line); }
.hotel-tile__kicker { font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.hotel-tile__body h3 { font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 600; line-height: 1.08; }
.hotel-tile__body p { color: var(--ink-soft); font-size: 0.95rem; }

/* ==========================================================================
   REGISTRO — cabecera fija + formulario editorial
   ========================================================================== */
#registro { border-top: 1px solid var(--line); }
#registro { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: clamp(2rem, 5vw, 5rem); max-width: 1380px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
#registro > .container.center {
  border-top: none; padding: 1.4rem 0 0; margin: 0;
  position: sticky; top: 92px; align-self: start;
  border-top: 1px solid var(--line-strong);
}
#registro > .container { padding-left: 0; padding-right: 0; max-width: none; }

.reg-form { margin-top: 1.4rem; }
.reg-block {
  position: relative; border: none; border-top: 1px solid var(--line-strong);
  padding: 1.8rem 0 1rem; margin: 0 0 1.6rem; background: transparent;
}
.reg-block legend {
  float: left; width: 100%;
  font-family: var(--font-body); font-size: 0.72rem;
  font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--brand); padding: 0 0 1.4rem;
}
/* Todo hijo directo del fieldset limpia el float del legend — sin esto,
   el primer .field se acomoda al costado y se sale del viewport en móvil. */
.reg-block > * { clear: both; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem 2rem; clear: both; }
.field { margin-bottom: 1.35rem; display: flex; flex-direction: column; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.req { color: var(--brand); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="date"], .field textarea, .field select {
  font-family: var(--font-body); font-size: 1.02rem; font-weight: 400; color: var(--ink);
  background: transparent;
  border: none; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  padding: 0.55rem 0.1rem;
  transition: border-color 0.25s, box-shadow 0.25s; width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-bottom-color: var(--brand);
  box-shadow: 0 1px 0 0 var(--brand);
}
.field textarea { resize: vertical; min-height: 52px; }

/* Teléfono: lada + 10 dígitos (E.164 / Twilio) */
.phone-row { display: flex; gap: 1.2rem; align-items: stretch; }
.phone-row .phone-lada {
  flex: 0 0 auto; width: auto; min-width: 6rem;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%235c514a' stroke-width='1.6' stroke-linecap='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.3rem center;
  padding-right: 1.6rem; cursor: pointer; font-variant-numeric: tabular-nums;
}
.phone-row input[type="tel"] { flex: 1 1 auto; min-width: 0; letter-spacing: 0.06em; }

.hint { font-size: 0.8rem; color: var(--ink-faint); margin-top: 0.35rem; }
.err { font-size: 0.78rem; color: var(--brand-dark); margin-top: 0.35rem; min-height: 0; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-bottom-color: var(--brand); box-shadow: 0 1px 0 0 var(--brand); }

/* Radios — chips rectangulares */
.radio-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.radio {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.15rem; border: 1px solid var(--line-strong); border-radius: 2px;
  cursor: pointer; background: transparent;
  transition: all 0.2s; font-weight: 500; font-size: 0.88rem;
}
.radio input { accent-color: var(--brand); }
.radio:hover { border-color: var(--ink); }
.radio:has(input:checked) { border-color: var(--ink); background: var(--ink); color: var(--cream); }

/* Archivos INE */
.file-field input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-btn {
  display: inline-flex !important; align-items: center; gap: 0.6rem;
  padding: 0.8rem 1.2rem; background: transparent;
  border: 1px dashed var(--line-strong); border-radius: 2px;
  color: var(--ink); cursor: pointer;
  font-size: 0.8rem; font-weight: 600 !important; letter-spacing: 0.1em; text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  max-width: 100%; overflow: hidden;
}
.file-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-btn:hover { border-color: var(--brand); color: var(--brand); }
.file-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.file-field.has-file .file-btn { border-style: solid; border-color: var(--brand); color: var(--brand); }
.field.invalid .file-btn { border-color: var(--brand); color: var(--brand-dark); background: rgba(var(--brand-rgb), 0.05); }

/* Los .field son flex → [hidden] necesita override explícito */
.field[hidden], .cond[hidden] { display: none !important; }
.cond { animation: fade-down 0.3s var(--ease); }
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.form-msg { padding: 0.9rem 1.1rem; border-radius: 2px; font-size: 0.9rem; margin-bottom: 1rem; }
.form-msg--error { background: rgba(var(--brand-rgb), 0.08); color: var(--brand-dark); border: 1px solid rgba(var(--brand-rgb), 0.35); }
.form-disclaimer { color: var(--ink-faint); font-size: 0.82rem; margin-top: 1.1rem; }

/* ==========================================================================
   FILOSOFÍA — escena nocturna
   ========================================================================== */
#filosofia {
  background: var(--night); color: var(--cream);
  padding: calc(var(--section-y) * 1.1) 0;
}
#filosofia .filosofia {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
}
#filosofia .eyebrow { color: var(--gold-light); }
#filosofia .eyebrow::before { color: rgba(224,181,88,0.7); }
#filosofia .h2 { color: var(--cream); }
#filosofia .rule { background: var(--line-cream); }
#filosofia .rule::before { background: var(--gold); }
.filosofia__text p { color: rgba(253,246,233,0.72); margin-bottom: 1rem; font-weight: 400; }
.filosofia__text .link-arrow { color: var(--gold-light); border-color: var(--gold-light); }
.filosofia__text .link-arrow:hover { color: var(--cream); border-color: var(--cream); }

/* Lente circular — eco del emblema */
.filosofia__media { display: grid; place-items: center; }
.circle-frame { position: relative; width: min(460px, 82vw); aspect-ratio: 1; }
.circle-frame__img {
  position: absolute; inset: 6%; border-radius: 50%;
  background-size: cover; background-position: center;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
  filter: saturate(0.95);
}
.circle-frame__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(224,181,88,0.5); animation: spin-slow 48s linear infinite; }
.circle-frame__ring::before { content: ""; position: absolute; inset: 3%; border-radius: 50%; border: 1px dashed rgba(224,181,88,0.28); }
.circle-frame__stars { display: none; }
@keyframes spin-slow { to { transform: rotate(360deg); } }

/* ==========================================================================
   AGENDA — itinerario de 4 días (timeline editorial)
   ========================================================================== */
.agenda-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.9rem, 1.8vw, 1.4rem);
}
.day-card {
  border: 1px solid var(--line-strong); border-radius: 2px;
  background: var(--sand-soft);
  display: flex; flex-direction: column;
}
/* Banda superior — acento alternado (eco del amarillo/naranja del brief con paleta Atlas) */
.day-card__head {
  position: relative; padding: 1.5rem 1.4rem 1.3rem;
  border-bottom: 1px solid var(--line);
}
.day-card__head::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.day-card:nth-child(odd)  .day-card__head::before { background: var(--gold); }
.day-card:nth-child(even) .day-card__head::before { background: var(--brand); }
.day-card__num {
  display: block;
  font-family: var(--font-display); font-weight: 600; font-style: italic;
  font-size: clamp(1.5rem, 2.4vw, 1.95rem); line-height: 1;
  color: var(--ink);
}
.day-card:nth-child(odd)  .day-card__num { color: var(--gold-deep); }
.day-card:nth-child(even) .day-card__num { color: var(--brand); }
.day-card__date {
  display: block; margin-top: 0.45rem;
  font-family: var(--font-body); font-size: 1.05rem; font-weight: 600;
  letter-spacing: 0.02em; color: var(--ink);
}
.day-card__date small {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-faint); margin-left: 0.35rem;
}

.timeline { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem 1.4rem 1.4rem; }
/* Cada renglón: hora (columna fija) + cuerpo (actividad + lugar + nota) */
.t-item { display: grid; grid-template-columns: 3.1rem 1fr; gap: 0.7rem; align-items: start; }
.t-time {
  font-family: var(--font-body); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.02em; color: var(--brand);
  padding-top: 0.12rem; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.day-card:nth-child(odd) .t-time { color: var(--gold-deep); }
.t-body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.t-act { color: var(--ink); font-size: 0.92rem; font-weight: 600; line-height: 1.25; }
.t-place { color: var(--ink-soft); font-size: 0.82rem; line-height: 1.25; }
.t-note {
  color: var(--ink-faint); font-size: 0.76rem; font-style: italic; line-height: 1.3;
  margin-top: 0.25rem;
}
.day-card__dress {
  margin: auto 1.4rem 1.5rem; padding-top: 0.9rem;
  border-top: 1px dashed var(--line);
  font-size: 0.78rem; color: var(--ink-soft); line-height: 1.35;
}
.day-card__dress strong { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   PHOTO GRID — Habitaciones / Gastronomía (editorial asimétrico)
   ========================================================================== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-flow: dense;
  gap: clamp(0.8rem, 1.8vw, 1.4rem);
  counter-reset: fig;
}
.photo-tile {
  position: relative; overflow: hidden; border-radius: 2px;
  aspect-ratio: 4 / 3; background: var(--sand-deep);
  counter-increment: fig;
}
.photo-tile { grid-column: span 2; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); filter: saturate(0.95); }
.photo-tile:hover img { transform: scale(1.06); }
.photo-tile::after {
  content: "fig. " counter(fig, decimal-leading-zero);
  position: absolute; left: 0.8rem; bottom: 0.7rem;
  font-family: var(--font-display); font-style: italic;
  font-size: 0.85rem; color: var(--cream);
  background: rgba(29,20,14,0.55); padding: 0.2rem 0.65rem; border-radius: 2px;
  letter-spacing: 0.06em; backdrop-filter: blur(4px);
}
.photo-tile--wide { grid-column: span 4; grid-row: span 2; aspect-ratio: auto; }
.photo-tile--w2 { grid-column: span 3; aspect-ratio: 16 / 9; }

/* ==========================================================================
   GALERÍA — sala oscura
   ========================================================================== */
#galeria { background: var(--night); color: var(--cream); }
#galeria .eyebrow { color: var(--gold-light); }
#galeria .eyebrow::before { color: rgba(224,181,88,0.7); }
#galeria .h2 { color: var(--cream); }
#galeria .lead { color: rgba(253,246,233,0.65); }
#galeria > .container.center { border-top-color: var(--line-cream); }
#galeria .rule { background: var(--line-cream); }
#galeria .rule::before { background: var(--gold); }

.gallery-wrap { position: relative; margin-top: clamp(2rem, 4vw, 3rem); padding: 0 clamp(1rem, 4vw, 3rem); }
.gallery__track {
  display: flex; gap: clamp(1rem, 2.4vw, 1.8rem);
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
  padding: 0.4rem 0.5rem 1rem;
  scroll-padding-left: clamp(1rem, 4vw, 3rem);
  scroll-padding-right: clamp(1rem, 4vw, 3rem);
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide {
  flex: 0 0 clamp(300px, 58%, 780px);
  scroll-snap-align: center; position: relative;
  border-radius: 2px; overflow: hidden;
  aspect-ratio: 16 / 10; background: var(--night-soft);
  box-shadow: 0 24px 70px rgba(0,0,0,0.45);
}
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); filter: saturate(0.95); }
.gallery__slide:hover img { transform: scale(1.05); }
.gallery__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: clamp(1.1rem, 2.4vw, 1.8rem);
  background: linear-gradient(to top, rgba(21,14,9,0.88) 0%, rgba(21,14,9,0.45) 60%, transparent 100%);
  color: var(--cream);
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
}
.gallery__kicker {
  order: 2; flex: 0 0 auto;
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold-light);
}
.gallery__caption h3 {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 500; line-height: 1.1;
}
.gallery__nav {
  position: absolute; top: calc(50% - 1rem); transform: translateY(-50%);
  z-index: 5; width: 50px; height: 50px;
  background: var(--cream); color: var(--ink);
  border: none; border-radius: 50%; cursor: pointer;
  box-shadow: 0 14px 40px rgba(0,0,0,0.4);
  display: grid; place-items: center;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s;
}
.gallery__nav:hover { transform: translateY(-50%) scale(1.08); background: var(--brand); color: var(--cream); }
.gallery__nav svg { width: 18px; height: 18px; }
.gallery__nav--prev { left: clamp(0.5rem, 1.5vw, 1.4rem); }
.gallery__nav--next { right: clamp(0.5rem, 1.5vw, 1.4rem); }
.gallery__dots { display: flex; justify-content: center; gap: 0.55rem; margin-top: 1.3rem; }
.gallery__dot {
  width: 22px; height: 2px; border-radius: 0;
  background: rgba(253,246,233,0.25); border: none; padding: 0; cursor: pointer;
  transition: background 0.3s;
}
.gallery__dot:hover { background: rgba(253,246,233,0.5); }
.gallery__dot.is-active { background: var(--gold-light); }
@media (max-width: 720px) {
  .gallery__slide { flex: 0 0 86%; }
  .gallery__nav { display: none; }
}

/* ==========================================================================
   DRESS CODE — lectura de datos + díptico día/noche
   ========================================================================== */
.weather-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  text-align: left;
}
.weather-strip__item {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 1.1rem 1.2rem;
  border-left: 1px solid var(--line);
}
.weather-strip__item:first-child { border-left: none; }
.weather-strip__item svg { width: 26px; height: 26px; color: var(--gold-deep); flex-shrink: 0; }
.weather-strip__label {
  display: block; font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 0.15rem;
}
.weather-strip__item strong {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 600; color: var(--ink); line-height: 1.15;
}
.weather-strip__tip { margin-top: 1rem; font-style: italic; }

.container.dress-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
  border: 1px solid var(--line-strong); border-radius: 2px; overflow: hidden;
  padding: 0;
  width: min(calc(var(--container) - 2 * var(--gutter)), calc(100% - 2 * var(--gutter)));
}
.dress-card {
  background: var(--sand-soft);
  padding: clamp(2.4rem, 5vw, 3.6rem) clamp(1.6rem, 3.4vw, 2.8rem);
  text-align: left; position: relative;
}
.dress-card + .dress-card { border-left: 1px solid var(--line-strong); background: var(--paper); }
.dress-card__icon {
  width: 62px; height: 62px; margin-bottom: 1.4rem;
  display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(var(--gold-rgb), 0.55); color: var(--gold-deep); background: transparent;
}
.dress-card__icon svg { width: 26px; height: 26px; }
.dress-card__when {
  display: block; font-size: 0.66rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--brand); font-weight: 600; margin-bottom: 0.3rem;
}
.dress-card h3 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 600; margin-bottom: 0.5rem; }
.dress-card p { color: var(--ink-soft); }

/* ==========================================================================
   MODAL
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 2000; display: none; place-items: center; padding: 1.5rem; background: rgba(21,14,9,0.72); backdrop-filter: blur(6px); }
.modal.open { display: grid; }
.modal__card {
  background: var(--cream); border: 1px solid var(--line-strong); border-radius: 2px;
  padding: clamp(2rem, 5vw, 3rem); max-width: 460px; width: 100%; text-align: center;
  position: relative; box-shadow: 0 40px 120px rgba(0,0,0,0.5); animation: pop 0.4s var(--ease-spring);
}
@keyframes pop { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal__close { position: absolute; top: 0.9rem; right: 1.1rem; background: none; border: 0; font-size: 1.7rem; color: var(--ink-faint); cursor: pointer; line-height: 1; }
.modal__card h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 600; margin: 0.6rem 0 0.4rem; color: var(--ink); }
.modal__card p { color: var(--ink-soft); }
.modal__code {
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; letter-spacing: 0.18em;
  color: var(--brand); border: 1px dashed rgba(var(--brand-rgb), 0.5); border-radius: 2px;
  padding: 0.6rem 1.2rem; margin: 1rem auto; display: inline-block;
}
.modal__qr { margin: 1rem auto; }
.modal__qr img { width: 190px; height: 190px; margin: 0 auto; border-radius: 2px; border: 1px solid var(--line); }
.modal__note { font-size: 0.82rem; color: var(--ink-faint); margin-bottom: 1.2rem; }

/* Contactos del organizador dentro del modal de registro exitoso */
.modal__contact {
  border-top: 1px solid var(--line); margin: 0.4rem 0 1.3rem; padding-top: 1.2rem;
  display: flex; flex-direction: column; align-items: center; gap: 1.1rem;
}
.modal__contact-label {
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-faint);
}
.modal__contact-person { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; }
.modal__contact-person + .modal__contact-person {
  border-top: 1px dashed var(--line); padding-top: 1rem; width: 100%;
}
.modal__contact-role {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brand);
}
.modal__contact-name {
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: 1.3rem; color: var(--ink); line-height: 1.1;
}
.modal__contact-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: 0.6rem; }
.modal__contact-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.1rem; border-radius: 2px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.modal__contact-btn svg { width: 17px; height: 17px; flex: 0 0 auto; }
.modal__contact-btn:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.modal__contact-btn--wa { border-color: #1db954; color: #128c3e; }
.modal__contact-btn--wa:hover { background: #1db954; color: #fff; border-color: #1db954; }

/* ==========================================================================
   FOOTER — créditos finales
   ========================================================================== */
#footer {
  background: var(--night); color: var(--cream);
  padding: clamp(3.5rem, 7vw, 6rem) 0 2.2rem; text-align: center;
  border-top: 1px solid rgba(224,181,88,0.35);
}
.footer__inner { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; display: grid; gap: 0.8rem; justify-items: center; }
.footer__inner::before {
  content: "Nos vemos en Costa Palmas";
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(2rem, 5.5vw, 3.6rem); line-height: 1.1;
  color: var(--gold-light); margin-bottom: 1.4rem; text-wrap: balance;
}
.footer__logo { height: 50px; filter: brightness(0) invert(1); opacity: 0.92; }
.footer__tag { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; opacity: 0.75; }
.footer__event { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; margin-top: 0.6rem; opacity: 0.85; }
.footer__legal { font-size: 0.78rem; opacity: 0.55; max-width: 54ch; margin-top: 0.6rem; }
.footer__copy { font-size: 0.72rem; opacity: 0.45; margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line-cream); width: 100%; letter-spacing: 0.08em; }

/* ==========================================================================
   WIDGETS — sonido y playlist
   ========================================================================== */
.sound-toggle {
  position: fixed; bottom: 1.4rem; right: 1.4rem; z-index: 1500;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: var(--cream);
  border: 1px solid rgba(253,246,233,0.2);
  cursor: pointer; display: grid; place-items: center; padding: 0;
  transition: transform 0.3s var(--ease), background 0.3s;
  box-shadow: 0 10px 26px rgba(0,0,0,0.3);
}
.sound-toggle:hover { transform: scale(1.08); background: var(--brand); }
.sound-toggle__icon { width: 20px; height: 20px; }
.sound-toggle__icon--on { display: none; }
.sound-toggle.on .sound-toggle__icon--on { display: block; }
.sound-toggle.on .sound-toggle__icon--off { display: none; }

/* Oculto por ahora — la playlist del evento no está definida.
   Para reactivarlo: quitar el display:none. */
.spotify-widget { position: fixed; bottom: 1.4rem; left: 1.4rem; z-index: 1500; display: none; }
.spotify-toggle {
  display: inline-flex; align-items: center; gap: 0.55rem;
  height: 46px; padding: 0 1.1rem 0 0.6rem;
  background: var(--ink); color: var(--cream);
  border: 1px solid rgba(253,246,233,0.2); border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
  box-shadow: 0 10px 26px rgba(0,0,0,0.3);
  transition: transform 0.25s var(--ease), background 0.3s;
}
.spotify-toggle:hover { transform: scale(1.05); background: #1db954; }
.spotify-toggle svg { width: 20px; height: 20px; color: #1db954; transition: color 0.3s; }
.spotify-toggle:hover svg { color: var(--cream); }
.spotify-widget__panel {
  position: absolute; bottom: calc(100% + 0.9rem); left: 0;
  width: min(360px, calc(100vw - 2rem));
  background: rgba(21, 14, 9, 0.97);
  border: 1px solid rgba(253,246,233,0.12);
  border-radius: 8px; padding: 0.55rem;
  box-shadow: 0 22px 60px rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(0.96);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  transform-origin: bottom left;
}
.spotify-widget__panel.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.spotify-widget__close {
  position: absolute; top: -10px; right: -10px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--cream); color: var(--ink); border: none;
  font-size: 1.3rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35); z-index: 2;
}
.spotify-widget__iframe { display: block; width: 100%; height: 380px; border: none; border-radius: 6px; }
body:not(.intro-done) .sound-toggle,
body:not(.intro-done) .spotify-widget { opacity: 0; pointer-events: none; }
.sound-toggle, .spotify-widget { transition: opacity 0.7s var(--ease); }
@media (max-width: 720px) {
  .sound-toggle { bottom: 1rem; right: 1rem; width: 42px; height: 42px; }
  .spotify-widget { bottom: 1rem; left: 1rem; }
  .spotify-toggle { height: 42px; padding: 0 0.7rem; }
  .spotify-toggle__label { display: none; }
  .spotify-widget__panel { width: calc(100vw - 6rem); max-width: 340px; }
  .spotify-widget__iframe { height: 352px; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1020px) {
  #registro { grid-template-columns: 1fr; }
  #registro > .container.center { position: static; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  #filosofia .filosofia { grid-template-columns: 1fr; }
  .filosofia__media { order: -1; }
  .hotel-tile { grid-template-columns: 1fr; }
  .hotel-tile__body { border-left: none; border-top: 1px solid var(--line); }
  .agenda-grid { grid-template-columns: repeat(2, 1fr); }
  /* En móvil el emblema ya comunica la marca — el kicker redundante se oculta
     para que no se encime con el medallón. */
  .hero__kicker { display: none; }
  /* Badge pasa al flujo, centrado sobre el título */
  .hero__badge {
    position: static; align-self: center; order: 0;
    width: clamp(150px, 38vw, 190px);
    margin: clamp(4.5rem, 10vh, 6rem) auto 1.4rem;
  }
  .hero__badge::before { inset: -16px; }
  .hero__badge::after { inset: -8px; }
  .weather-strip { grid-template-columns: 1fr 1fr; }
  .weather-strip__item:nth-child(3) { border-left: none; }
  .weather-strip__item { border-top: 1px solid var(--line); }
  .weather-strip__item:nth-child(-n+2) { border-top: none; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-tile { grid-column: span 1; }
  .photo-tile--wide { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }
  .photo-tile--w2 { grid-column: span 2; aspect-ratio: 16 / 10; }
}
@media (max-width: 720px) {
  .grid-2 { grid-template-columns: 1fr; }
  .agenda-grid { grid-template-columns: 1fr; }
  .container.dress-grid { grid-template-columns: 1fr; }
  .dress-card + .dress-card { border-left: none; border-top: 1px solid var(--line-strong); }
  #hero { min-height: 100svh; }
  .hero__photo { background-image: url('../img/corredores/hero-mobile.jpg') !important; }
  .hero__kicker { letter-spacing: 0.3em; font-size: 0.6rem; width: 90vw; text-align: center; white-space: normal; }
  .hero__count { flex-wrap: wrap; justify-content: center; row-gap: 0.2rem; }
  .hero__count-label--end { display: none; }
  .hero__scroll { display: none; }
  /* CTAs centrados y del mismo ancho — apilados se ven como un bloque */
  .hero__actions { justify-content: center; }
  .hero__actions .btn { flex: 1 1 15rem; max-width: 22rem; }
  .phone-row { flex-direction: row; }
}
@media (max-width: 480px) {
  .weather-strip { grid-template-columns: 1fr 1fr; }
  .weather-strip__item { padding: 0.85rem 0.8rem; gap: 0.55rem; }
  .weather-strip__item svg { width: 22px; height: 22px; }
  .weather-strip__item strong { font-size: 0.92rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   REGISTRO CERRADO — aviso de fin de periodo
   ========================================================================== */
#registro { display: block; }
#registro > .container.center { position: static; border-top: none; padding-top: 1.4rem; text-align: center; }
.reg-closed { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.reg-closed .eyebrow { justify-content: center; }
.reg-closed .lead { margin-left: auto; margin-right: auto; }
.reg-closed .rule { width: 72px; margin-left: auto; margin-right: auto; }
.reg-closed .rule::before { left: 50%; transform: translateX(-50%); }
.reg-closed__badge {
  width: clamp(170px, 30vw, 250px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #fffdf8 0%, var(--cream) 70%, var(--sand) 100%);
  display: grid; place-items: center; padding: clamp(0.9rem, 2vw, 1.5rem);
  margin-bottom: 1.8rem; position: relative;
  box-shadow: 0 26px 70px rgba(46, 38, 34, 0.22);
}
.reg-closed__badge::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(224,181,88,0.6); }
.reg-closed__badge img { width: 100%; height: auto; }
.reg-closed__actions { margin-top: 1.8rem; }
