/* =========================================================
   Kailua 2027 · Reunión de 10 años
   Paleta tomada del logo: crema, oro, azul profundo, turquesa,
   púrpura/magenta y espuma blanca.
   ========================================================= */

:root {
  --cream: #f7eedc;
  --cream-2: #fbf6ea;
  --sand: #efe1c4;
  --gold: #c8a24a;
  --gold-2: #e6c77a;
  --gold-3: #a8802b;
  --navy: #10224d;
  --navy-2: #0b1736;
  --deep: #070f26;
  --blue: #1e4fa3;
  --blue-2: #2f7fd1;
  --teal: #22b3c7;
  --teal-2: #7fe0e6;
  --plum: #5e1f5e;
  --magenta: #a8256e;
  --magenta-2: #c93b7a;
  --foam: #ffffff;
  --ink: #1c1b2e;
  --ink-2: #4a4864;
  --ink-3: #7a789a;

  --font-script: 'Kaushan Script', cursive;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Jost', system-ui, -apple-system, sans-serif;

  --radius: 22px;
  --shadow-soft: 0 20px 60px rgba(16, 34, 77, 0.14);
  --shadow-gold: 0 0 0 1px rgba(200, 162, 74, 0.55), 0 24px 70px rgba(200, 162, 74, 0.18);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--gold-2); color: var(--navy-2); }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(720px, 100% - 40px); }
.script { font-family: var(--font-script); font-weight: 400; }

/* ---------- Intro: cortina azul detrás de la ola; la ola sube y se queda ---------- */
.intro {
  position: fixed; inset: 0; z-index: 5; pointer-events: none;
  background:
    radial-gradient(2px 2px at 12% 22%, rgba(236,206,128,0.9) 50%, transparent 52%),
    radial-gradient(2px 2px at 78% 14%, rgba(236,206,128,0.8) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 40% 36%, rgba(255,255,255,0.8) 50%, transparent 52%),
    radial-gradient(2px 2px at 88% 44%, rgba(236,206,128,0.7) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 24% 58%, rgba(127,224,230,0.8) 50%, transparent 52%),
    radial-gradient(2px 2px at 60% 18%, rgba(255,255,255,0.6) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 70% 62%, rgba(236,206,128,0.7) 50%, transparent 52%),
    radial-gradient(70% 55% at 50% 20%, rgba(94,31,94,0.35) 0%, rgba(94,31,94,0) 70%),
    linear-gradient(180deg, #070f26 0%, #0b1f4d 55%, #11397a 100%);
  transition: opacity 1.1s ease;
}
.intro.is-done { opacity: 0; }
.hero .olas--hero { z-index: 6; animation: introOla 1.3s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both; }
.hero__content { opacity: 0; transition: opacity 0.9s ease 0.15s; }
.nav { opacity: 0; transition: opacity 0.6s ease 0.3s; }
body.is-ready .hero__content, body.is-ready .nav { opacity: 1; }
body.is-settled .hero .olas--hero { z-index: 3; } /* tras la intro, la ola vuelve detrás del contenido */
@keyframes introOla { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .hero .olas--hero { animation: none; }
  .hero__content, .nav { opacity: 1; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 16px clamp(16px, 4vw, 40px);
  transition: background 0.5s, box-shadow 0.5s, backdrop-filter 0.5s, padding 0.4s, opacity 0.6s ease 0.3s;
}
.nav.is-scrolled {
  background: rgba(251, 246, 234, 0.82);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 rgba(200, 162, 74, 0.35), 0 10px 40px rgba(16, 34, 77, 0.08);
  padding-block: 10px;
}
.nav__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-size: 20px; letter-spacing: 0.06em; color: var(--navy); }
.nav__brand img { border-radius: 50%; box-shadow: 0 0 0 1.5px var(--gold); }
.nav__brand em { font-family: var(--font-script); font-style: normal; font-size: 24px; color: var(--plum); margin-right: 4px; }
.nav__links { display: flex; gap: clamp(14px, 3vw, 34px); font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 400; color: var(--ink-2); }
.nav__links a { position: relative; padding: 4px 0; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease-out); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 720px) { .nav__links { font-size: 12px; gap: 22px; } }

/* ---------- Botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 34px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 500; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, background 0.35s, color 0.35s;
  overflow: hidden; isolation: isolate;
}
.btn--sm { padding: 11px 22px; font-size: 12.5px; }
.btn--block { width: 100%; }
.btn--gold {
  color: var(--navy-2);
  background: linear-gradient(135deg, #f1d992 0%, var(--gold) 45%, #d9b458 70%, #f3dc9a 100%);
  background-size: 200% 200%;
  box-shadow: 0 10px 30px rgba(200, 162, 74, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn--gold::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.8s var(--ease-out);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(200, 162, 74, 0.45), inset 0 1px 0 rgba(255,255,255,0.7); }
.btn--gold:hover::before { transform: translateX(120%); }
.btn--ghost { color: var(--navy); border-color: rgba(16, 34, 77, 0.35); background: rgba(255, 255, 255, 0.35); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--gold); background: rgba(255,255,255,0.6); transform: translateY(-2px); }
.btn--light { color: var(--cream); border-color: rgba(247, 238, 220, 0.4); background: rgba(255,255,255,0.06); }
.btn--light:hover { border-color: var(--gold-2); background: rgba(255,255,255,0.12); }
.btn__spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(16, 34, 77, 0.25); border-top-color: var(--navy-2); animation: spin 0.8s linear infinite; }
.btn.is-loading { pointer-events: none; opacity: 0.85; }
.btn.is-loading .btn__spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100svh; min-height: 560px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: clamp(56px, 7svh, 96px) 20px 0;
  background: var(--navy-2);
  color: var(--cream-2);
}
.hero__video { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__video video {
  width: 100%; height: 100%; object-fit: cover; object-position: center 35%;
  filter: saturate(0.85) contrast(1.05) brightness(0.9);
  transform: scale(1.04);
  animation: heroKen 41s ease-in-out infinite alternate;
}
@keyframes heroKen { from { transform: scale(1.04) translateY(0); } to { transform: scale(1.1) translateY(-1.5%); } }
.hero__tint {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11,23,54,0.78) 0%, rgba(16,34,77,0.55) 38%, rgba(16,34,77,0.35) 62%, rgba(7,15,38,0.55) 100%),
    radial-gradient(70% 50% at 50% 30%, rgba(94,31,94,0.35) 0%, rgba(94,31,94,0) 70%);
  mix-blend-mode: normal;
}
.hero__tint::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 40% at 50% 28%, rgba(236,206,128,0.22) 0%, rgba(236,206,128,0) 70%);
  animation: sunBreath 9s ease-in-out infinite;
}
@keyframes sunBreath { 0%, 100% { opacity: 0.8; } 50% { opacity: 1; } }
.hero__sparkles { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.hero__sparkles i {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle, #fff7d6 0%, var(--gold-2) 40%, rgba(230,199,122,0) 72%);
  opacity: 0; animation: sparkle var(--dur, 6s) var(--delay, 0s) ease-in-out infinite;
}
@keyframes sparkle {
  0% { transform: translateY(0) scale(0.4); opacity: 0; }
  20% { opacity: 0.95; }
  60% { opacity: 0.6; }
  100% { transform: translateY(-90px) scale(1.2); opacity: 0; }
}
.hero__content { position: relative; z-index: 4; text-align: center; max-width: 820px; padding-bottom: 0; }

.hero__eyebrow { margin: 0; font-size: 13px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--gold-2); font-weight: 500; text-shadow: 0 2px 20px rgba(0,0,0,0.4); }
.hero__title { margin: 6px 0 0; line-height: 0.95; display: flex; flex-direction: column; align-items: center; }
.hero__script {
  font-family: var(--font-script); font-weight: 400; font-size: clamp(60px, min(15vw, 13svh), 160px);
  background: linear-gradient(100deg, #fff6dc 0%, var(--gold-2) 35%, #fff 60%, var(--teal-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: 0 0.15em 0.12em; margin-bottom: -0.08em;
  filter: drop-shadow(0 14px 30px rgba(7,15,38,0.55)) drop-shadow(0 0 30px rgba(236,206,128,0.25));
}
.hero__year {
  font-family: var(--font-serif); font-weight: 500; font-size: clamp(18px, 3svh, 34px); letter-spacing: 0.55em; padding-left: 0.55em;
  color: var(--gold-2); position: relative; text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero__year::before, .hero__year::after {
  content: ''; position: absolute; top: 50%; width: clamp(36px, 8vw, 90px); height: 1px; background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
}
.hero__year::before { right: calc(100% + 10px); }
.hero__year::after { left: calc(100% + 10px); }
.hero__sub { margin: 22px auto 0; max-width: 560px; font-family: var(--font-serif); font-size: clamp(18px, 2.4vw, 23px); line-height: 1.5; color: rgba(251,246,234,0.88); font-style: italic; text-shadow: 0 2px 16px rgba(0,0,0,0.5); }

.countdown { display: flex; justify-content: center; gap: clamp(8px, 2vw, 18px); margin-top: 2svh; }
.countdown__item {
  min-width: clamp(58px, 9vw, 84px); padding: clamp(8px, 1.4svh, 12px) 8px clamp(6px, 1.1svh, 10px); border-radius: 16px;
  background: rgba(7,15,38,0.55); border: 1px solid rgba(236,206,128,0.45);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.12);
}
.countdown__item span { display: block; font-family: var(--font-serif); font-weight: 600; font-size: clamp(20px, 3.3svh, 34px); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.countdown__item small { display: block; margin-top: 4px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-2); }
.countdown__label { margin: 10px 0 0; font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(251,246,234,0.7); }

.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 2.2svh; }

.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 5; width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid rgba(255,255,255,0.75); }
.hero__scroll span { position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: scrollDot 1.8s ease-in-out infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

.hero__content > * { animation: fadeUp 1.1s var(--ease-out) both; }
.hero__content > :nth-child(2) { animation-delay: 0.15s; }
.hero__content > :nth-child(3) { animation-delay: 0.25s; }
.hero__content > :nth-child(4) { animation-delay: 0.35s; }
.hero__content > :nth-child(5) { animation-delay: 0.45s; }
.hero__content > :nth-child(6) { animation-delay: 0.55s; }

/* Logo centrado en el hero */
.hero__logo { width: clamp(90px, 12.5svh, 200px); height: auto; margin: 0 auto 1.2svh; border-radius: 50%; box-shadow: 0 0 0 2px rgba(236,206,128,0.7), 0 24px 60px rgba(7,15,38,0.5), 0 0 60px rgba(236,206,128,0.18); animation: logoFloat 7s ease-in-out infinite; }
@keyframes logoFloat { 0%, 100% { transform: translateY(0) rotate(-0.6deg); } 50% { transform: translateY(-10px) rotate(0.6deg); } }

/* Nav sobre el video (antes de hacer scroll) */
.nav:not(.is-scrolled) .nav__brand { color: var(--cream-2); }
.nav:not(.is-scrolled) .nav__brand em { color: var(--gold-2); }
.nav:not(.is-scrolled) .nav__links { color: rgba(251,246,234,0.85); }
.nav:not(.is-scrolled) .nav__links a::after { background: var(--gold-2); }


/* ---------- Olas pintadas (hero y footer) ---------- */
.olas { position: absolute; left: 0; right: 0; bottom: 0; height: min(54.5vw, 48svh); pointer-events: none; z-index: 3; }
.olas__par { position: absolute; inset: 0; will-change: transform; }
.olas::before {
  /* agua profunda detrás de la pintura: rellena lo que la ola deja ver del video por abajo */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(7,15,38,0) 0%, rgba(7,15,38,0.28) 55%, rgba(7,15,38,0.55) 100%);
}
.olas--footer::before { display: none; }
.olas__par { z-index: 1; }
.olas__layer { position: absolute; height: auto; max-width: none; user-select: none; -webkit-user-drag: none; }
.olas__fondo { left: -10vw; width: 120vw; height: auto; bottom: 0; opacity: 0.95; animation: olaDeriva 24s ease-in-out infinite alternate; }
@media (min-aspect-ratio: 5/4) { .olas__fondo { display: none; } }
.olas__principal { left: -4vw; width: 108vw; height: 110%; bottom: -10%; object-fit: cover; object-position: 50% 0; transform-origin: 30% 100%; animation: olaRespira 10s ease-in-out infinite; }
.olas__perlas { position: absolute; inset: 0; width: 100%; height: 100%; }
.olas--footer { height: 100%; }
.olas--footer .olas__suave { left: -4vw; width: 108vw; height: auto; bottom: -4vw; animation: olaRespira 12s ease-in-out infinite; transform-origin: 50% 100%; }
.olas--footer .olas__par { transition: transform 0.12s linear; }
@keyframes olaRespira { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(0.5%, 0, 0) scale(1.016); } }
@keyframes olaDeriva { from { transform: translate3d(-1.5%, 0, 0); } to { transform: translate3d(1.5%, 0, 0); } }
@media (max-width: 700px) {
  .hero { padding-top: 60px; }
  .hero__logo { width: 11svh; }
  .hero__script { font-size: clamp(56px, 13svh, 110px); }
  .hero__cta { flex-wrap: nowrap; gap: 10px; }
  .hero__cta .btn { padding: 12px 18px; font-size: 12px; letter-spacing: 0.1em; white-space: nowrap; }
  .olas { height: 40svh; }
  .olas__fondo { left: -30vw; width: 160vw; bottom: 4%; }
  .olas__principal { left: -30vw; width: 160vw; }
  .olas--footer { height: 100%; }
  .olas--footer .olas__suave { left: -36vw; width: 172vw; bottom: -8vw; }
}

/* ---------- Secciones ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.section--cream { background: var(--cream); }
.section--navy { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--cream); overflow: hidden; }
.section--deep { background: var(--deep); color: var(--cream); overflow: hidden; }
.section--cream::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.78 0 0 0 0 0.63 0 0 0 0 0.29 0 0 0 0.12 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.section__head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 70px); position: relative; }
.section__eyebrow { margin: 0 0 10px; font-size: 12.5px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--gold-3); font-weight: 500; }
.section__head--light .section__eyebrow { color: var(--gold-2); }
.section__title { margin: 0; font-family: var(--font-serif); font-weight: 500; font-size: clamp(34px, 5.4vw, 58px); line-height: 1.08; color: var(--navy); }
.section__title .script { font-size: 1.22em; color: var(--magenta); margin-right: 0.12em; }
.section__head--light .section__title { color: var(--cream-2); }
.section__head--light .section__title .script { color: var(--teal-2); }
.section__lead { margin: 16px auto 0; font-size: 17px; color: var(--ink-2); max-width: 520px; }
.section__head--light .section__lead { color: rgba(247, 238, 220, 0.72); }

/* ---------- Divisores (olas que se deslizan en bucle sin costura) ---------- */
.divider { position: relative; height: clamp(70px, 9vw, 120px); margin-top: -1px; margin-bottom: -1px; overflow: hidden; z-index: 2; }
.divider__svg { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; display: block; animation: dividerDrift 26s linear infinite; will-change: transform; }
.divider__svg--a { opacity: 0.55; }
.divider__svg--b { animation-duration: 17s; animation-direction: reverse; }
.divider--to-navy { background: var(--cream); }
.divider--to-navy .divider__svg--a path { fill: var(--teal); }
.divider--to-navy .divider__svg--b path { fill: var(--navy); }
.divider--to-cream { background: var(--navy-2); }
.divider--to-cream .divider__svg--a path { fill: var(--teal-2); }
.divider--to-cream .divider__svg--b path { fill: var(--cream); }
.divider--to-deep { background: var(--cream); }
.divider--to-deep .divider__svg--a path { fill: var(--magenta); }
.divider--to-deep .divider__svg--b path { fill: var(--navy-2); }
@keyframes dividerDrift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* ---------- Transición: oleaje pintado que se hunde en el azul profundo ---------- */
.transicion {
  position: relative; height: 34vw; min-height: 170px; overflow: hidden; margin-bottom: -1px; z-index: 2;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream) 48%, var(--deep) 66%, var(--deep) 100%);
}
.transicion__ola {
  position: absolute; left: -4vw; bottom: 0; width: 108vw; max-width: none; height: auto;
  transform-origin: 50% 100%; animation: olaRespira 12s ease-in-out infinite;
}
@media (max-width: 700px) { .transicion { height: 54vw; } .transicion__ola { left: -36vw; width: 172vw; } }
.detalles { padding-top: clamp(40px, 6vw, 90px); }
.footer { padding-top: 40px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Galería (scroll horizontal) ---------- */
.recuerdos { padding: clamp(48px, 6vw, 80px) 0 clamp(20px, 3vw, 36px); }
.registro { padding-top: clamp(36px, 5vw, 64px); }
.recuerdos .section__head { margin-bottom: clamp(22px, 3vw, 36px); }
.gallery-wrap { position: relative; }
.gallery {
  display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; padding: 4px clamp(24px, 6vw, 140px) 4px; scroll-padding-inline: clamp(24px, 6vw, 140px);
  scrollbar-width: none; cursor: grab; background: transparent;
  -webkit-overflow-scrolling: touch;
}
.gallery.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery.is-dragging .gallery__item { pointer-events: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery__item {
  position: relative; flex: 0 0 auto; height: clamp(190px, 30vh, 300px); overflow: hidden; border-radius: 14px; cursor: zoom-in;
  background: var(--sand); scroll-snap-align: start; margin: 0;
  transform: translateY(24px); opacity: 0;
  transition: transform 0.9s var(--ease-out), opacity 0.9s var(--ease-out);
}
.gallery__item.in { transform: none; opacity: 1; }
.gallery__item img, .gallery__item video { height: 100%; width: auto; max-width: 70vw; display: block; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.gallery__item:hover img, .gallery__item:hover video { transform: scale(1.05); }
.gallery__item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,34,77,0) 50%, rgba(16,34,77,0.75) 100%);
  opacity: 0; transition: opacity 0.5s;
}
.gallery__item:hover::after { opacity: 1; }
.gallery__cap {
  position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2;
  font-family: var(--font-serif); font-style: italic; font-size: 17px; color: var(--cream-2);
  transform: translateY(10px); opacity: 0; transition: transform 0.5s var(--ease-out), opacity 0.5s;
}
.gallery__cap::before { content: ''; display: block; width: 28px; height: 1px; background: var(--gold-2); margin-bottom: 6px; }
.gallery__item:hover .gallery__cap { transform: none; opacity: 1; }
.gallery__cap small { display: block; font-family: var(--font-sans); font-style: normal; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-2); margin-top: 2px; }
@media (hover: none) { .gallery__item::after, .gallery__cap { opacity: 1; transform: none; } }
.gallery__play { position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--navy); background: rgba(255,255,255,0.85); box-shadow: 0 0 0 1px rgba(200,162,74,0.6), 0 8px 24px rgba(0,0,0,0.25); backdrop-filter: blur(6px); transition: transform 0.4s var(--ease-spring), background 0.3s; }
.gallery__item:hover .gallery__play { transform: scale(1.1); background: var(--gold-2); }
.gallery__nav {
  position: absolute; top: 50%; transform: translateY(-60%); z-index: 4; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(200,162,74,0.6);
  background: rgba(251,246,234,0.9); color: var(--navy); font-size: 28px; line-height: 1; display: grid; place-items: center; padding-bottom: 4px;
  backdrop-filter: blur(8px); transition: transform 0.3s, background 0.3s, opacity 0.3s;
}
.gallery__nav:hover { background: var(--gold-2); transform: translateY(-60%) scale(1.06); }
.gallery__nav--prev { left: clamp(8px, 3vw, 70px); }
.gallery__nav--next { right: clamp(8px, 3vw, 70px); }
.gallery__nav[disabled] { display: none; }
@media (max-width: 700px) { .gallery__nav { display: none; } .gallery__item { height: 200px; } }

/* subir fotos */
.subir { margin-top: clamp(18px, 2.5vw, 28px); text-align: center; }
.subir__intro { margin: 0 0 12px; font-size: 15px; color: var(--ink-2); }
.subir__intro a { color: var(--magenta); border-bottom: 1px solid rgba(168,37,110,0.35); }
.subir__form { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.subir__input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.subir__caption { padding: 12px 16px; border-radius: 999px; border: 1.5px solid rgba(16,34,77,0.16); background: rgba(255,255,255,0.85); font: inherit; font-size: 15px; width: min(320px, 80vw); }
.subir__caption:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(200,162,74,0.22); }
.subir__estado { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); min-height: 20px; }
.subir__estado.is-error { color: #8a1c55; }
.subir__estado.is-ok { color: var(--gold-3); }

/* ---------- Formularios ---------- */
.card {
  position: relative; border-radius: var(--radius); padding: clamp(26px, 4vw, 48px);
  background: rgba(255,255,255,0.62); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-gold);
}
.card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(160deg, rgba(255,255,255,0.7), rgba(255,255,255,0) 40%);
}
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; position: relative; }
.field label { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 500; color: var(--ink-2); }
.field input {
  width: 100%; padding: 15px 18px; border-radius: 14px; border: 1.5px solid rgba(16,34,77,0.16);
  background: rgba(255,255,255,0.85); font: inherit; font-weight: 400; font-size: 16px; color: var(--ink);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.field input::placeholder { color: rgba(74,72,100,0.45); }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(200,162,74,0.22); background: #fff; }
.field input.is-invalid { border-color: var(--magenta-2); box-shadow: 0 0 0 4px rgba(201,59,122,0.15); }
.field__wrap { position: relative; }
.field__wrap input { padding-right: 52px; letter-spacing: 0.18em; font-weight: 500; }
.field__eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; color: var(--ink-3); display: grid; place-items: center; transition: color 0.3s, background 0.3s; }
.field__eye:hover { color: var(--navy); background: rgba(200,162,74,0.15); }
.field__eye.is-on { color: var(--gold-3); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

.switch { display: flex; align-items: center; gap: 14px; margin: 4px 0 20px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track { position: relative; width: 50px; height: 28px; border-radius: 999px; background: rgba(16,34,77,0.18); transition: background 0.35s; flex-shrink: 0; }
.switch__thumb { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.25); transition: transform 0.35s var(--ease-spring); }
.switch input:checked + .switch__track { background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(22px); }
.switch input:focus-visible + .switch__track { box-shadow: 0 0 0 4px rgba(200,162,74,0.3); }
.switch__label { font-size: 16px; font-weight: 400; color: var(--ink); }
.switch__label em { color: var(--ink-3); font-style: normal; }
.field--plus { animation: fadeUp 0.5s var(--ease-out) both; }

.form__error { margin: -6px 0 16px; padding: 12px 16px; border-radius: 12px; background: rgba(201,59,122,0.10); border: 1px solid rgba(201,59,122,0.35); color: #8a1c55; font-size: 14.5px; font-weight: 400; }
.form__note { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--ink-3); }
.form__note--light { color: rgba(247,238,220,0.6); }
.form__note--light a { color: var(--gold-2); border-bottom: 1px solid rgba(230,199,122,0.4); }

.success { text-align: center; padding: 10px 0; animation: fadeUp 0.8s var(--ease-out) both; }
.success h3 { margin: 18px 0 8px; font-family: var(--font-serif); font-weight: 500; font-size: clamp(28px, 4vw, 38px); color: var(--navy); }
.success h3 span { color: var(--magenta); font-family: var(--font-script); font-weight: 400; }
.success p { margin: 0 auto 22px; max-width: 420px; color: var(--ink-2); }
.success__extra { margin-top: -10px !important; font-size: 15px; }
.success__extra a { color: var(--magenta); border-bottom: 1px solid rgba(168,37,110,0.35); }
.success__check { width: 96px; height: 96px; }
.success__check circle { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 230; stroke-dashoffset: 230; animation: draw 1s var(--ease-out) 0.1s forwards; }
.success__check path { fill: none; stroke: var(--navy); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 0.6s var(--ease-out) 0.7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Detalles / bóveda ---------- */
.detalles__glow { display: none; position: absolute; left: 50%; top: 40%; width: 80vw; height: 80vw; max-width: 900px; max-height: 900px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(200,162,74,0.16) 0%, rgba(34,179,199,0.08) 40%, rgba(0,0,0,0) 70%); pointer-events: none; }
.vault {
  position: relative; border-radius: 28px; overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(230,199,122,0.35);
  box-shadow: 0 40px 100px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.12);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.vault::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from 90deg, rgba(230,199,122,0.0), rgba(230,199,122,0.9), rgba(127,224,230,0.6), rgba(230,199,122,0.0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.6; animation: haloSpin 12s linear infinite;
}
.vault__door { padding: clamp(28px, 4vw, 48px); transition: opacity 0.6s, transform 0.8s var(--ease-out); }
.vault.is-open .vault__door { position: absolute; inset: 0; opacity: 0; transform: translateY(-30px) scale(0.97); pointer-events: none; }
.vault__lock { width: 84px; height: 84px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 50%; color: var(--gold-2); background: radial-gradient(circle, rgba(230,199,122,0.18), rgba(230,199,122,0.02)); border: 1px solid rgba(230,199,122,0.45); box-shadow: 0 0 40px rgba(230,199,122,0.15); }
.vault__shackle { transform-origin: 22px 28px; transition: transform 0.6s var(--ease-spring); }
.vault.is-unlocking .vault__shackle { transform: translateY(-6px) rotate(-18deg); }
.vault .field label { color: rgba(247,238,220,0.7); }
.vault .field input { background: rgba(7,15,38,0.55); border-color: rgba(230,199,122,0.25); color: var(--cream-2); }
.vault .field input::placeholder { color: rgba(247,238,220,0.35); }
.vault .field input:focus { background: rgba(7,15,38,0.8); border-color: var(--gold-2); box-shadow: 0 0 0 4px rgba(230,199,122,0.18); }
.vault .field__eye { color: rgba(247,238,220,0.55); }
.vault .field__eye:hover { color: var(--gold-2); background: rgba(230,199,122,0.12); }
.vault .form__error { background: rgba(201,59,122,0.15); border-color: rgba(201,59,122,0.5); color: #ffd3e6; }

.vault__inside { padding: clamp(28px, 4vw, 48px); animation: fadeUp 0.9s var(--ease-out) both; }
.vault__hola { margin: 0 0 24px; text-align: center; font-family: var(--font-serif); font-style: italic; font-size: clamp(22px, 3vw, 30px); color: var(--gold-2); }
.vault__hola strong { font-family: var(--font-script); font-style: normal; font-weight: 400; color: var(--teal-2); }
.details { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.detail {
  padding: 20px 22px; border-radius: 18px; background: rgba(255,255,255,0.05); border: 1px solid rgba(230,199,122,0.22);
  transform: translateY(16px); opacity: 0; animation: fadeUp 0.8s var(--ease-out) forwards; animation-delay: var(--i, 0s);
}
.detail--full { grid-column: 1 / -1; }
.detail__k { margin: 0 0 6px; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-2); font-weight: 500; }
.detail__v { margin: 0; font-family: var(--font-serif); font-size: 21px; line-height: 1.35; color: var(--cream-2); }
.detail__v small { display: block; font-family: var(--font-sans); font-size: 14px; color: rgba(247,238,220,0.65); margin-top: 4px; }
.detail__v a { color: var(--teal-2); border-bottom: 1px solid rgba(127,224,230,0.4); }
.detail ol { margin: 6px 0 0; padding-left: 18px; font-family: var(--font-serif); font-size: 19px; color: var(--cream-2); }
.detail ol li { margin-bottom: 4px; }
.detail ol li span { color: var(--gold-2); margin-right: 8px; font-variant-numeric: tabular-nums; }
.vault__nota { margin: 22px 0 0; text-align: center; font-style: italic; font-family: var(--font-serif); font-size: 18px; color: rgba(247,238,220,0.7); }
.vault__inside .btn { display: flex; margin: 24px auto 0; width: fit-content; }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; background: var(--deep); color: var(--cream); padding-top: 70px; }
.footer__content { position: relative; z-index: 2; text-align: center; padding: 10px 20px 28px; }
.footer__sea { position: relative; height: 30vw; min-height: 160px; overflow: visible; }
@media (max-width: 700px) { .footer__sea { height: 48vw; } }
.footer__content img { margin: 0 auto 12px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--gold), 0 20px 40px rgba(0,0,0,0.4); }
.footer__brand { margin: 0; font-family: var(--font-serif); font-size: 22px; letter-spacing: 0.1em; }
.footer__brand em { font-family: var(--font-script); font-style: normal; font-size: 30px; color: var(--gold-2); margin-right: 6px; }
.footer__line { margin: 6px 0 0; font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(247,238,220,0.55); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; background: rgba(7,15,38,0.92); backdrop-filter: blur(10px); animation: lbIn 0.35s var(--ease-out); }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox__fig { margin: 0; max-width: min(1100px, 92vw); max-height: 88vh; text-align: center; }
.lightbox__fig img, .lightbox__fig video { max-width: 100%; max-height: 80vh; margin: 0 auto; border-radius: 14px; box-shadow: 0 0 0 1px rgba(230,199,122,0.6), 0 40px 100px rgba(0,0,0,0.6); animation: lbImg 0.5s var(--ease-out); }
@keyframes lbImg { from { transform: scale(0.94); opacity: 0; } to { transform: none; opacity: 1; } }
.lightbox__fig figcaption { margin-top: 14px; font-family: var(--font-serif); font-style: italic; font-size: 20px; color: var(--cream-2); }
.lightbox__close, .lightbox__nav { position: absolute; border: 0; background: rgba(255,255,255,0.08); color: var(--cream); width: 52px; height: 52px; border-radius: 50%; font-size: 30px; line-height: 1; display: grid; place-items: center; transition: background 0.3s, transform 0.3s; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(230,199,122,0.3); transform: scale(1.06); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 40px; padding-bottom: 6px; }
.lightbox__nav:hover { transform: translateY(-50%) scale(1.06); }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }
@media (max-width: 640px) { .lightbox__nav { top: auto; bottom: 20px; transform: none; } .lightbox__nav:hover { transform: none; } }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal, .gallery__item { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
