/* =========================================================================
   INVITACIÓN XV AÑOS — AMARILIS
   Paleta: Azul pavo + Plateado + Blanco sobre fondos oscuros elegantes
   ========================================================================= */

:root {
  /* Fondos */
  --bg-deep: #050914;
  --bg-navy: #0a1230;
  --bg-navy-2: #0e1a3e;

  /* Azul pavo */
  --peacock-900: #081c3a;
  --peacock-800: #0e2a5c;
  --peacock-700: #163a82;
  --peacock-600: #1f4fae;
  --peacock-500: #2f66d6;
  --peacock-glow: #5b86ff;

  /* Plateado */
  --silver-100: #f5f7fb;
  --silver-200: #e4e9f2;
  --silver-300: #c9d2e0;
  --silver-400: #a9b4c8;
  --silver-600: #7d879c;

  --white: #ffffff;
  --text-soft: rgba(245, 247, 251, 0.78);
  --text-faint: rgba(245, 247, 251, 0.55);

  --font-title: "Cormorant Garamond", serif;
  --font-body: "Montserrat", sans-serif;

  --shadow-soft: 0 20px 60px rgba(2, 6, 20, 0.55);
  --radius-lg: 22px;
  --radius-md: 14px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

/* Cualquier elemento con el atributo "hidden" debe ocultarse sin importar
   qué otras clases (display:flex, display:inline-flex, etc.) tenga aplicadas */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--silver-100);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

section {
  position: relative;
  padding: 7rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* ---------- Fondo general degradado azul pavo ---------- */
main {
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(47, 102, 214, 0.18), transparent 60%),
    radial-gradient(ellipse 70% 50% at 15% 100%, rgba(31, 79, 174, 0.15), transparent 60%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-navy) 45%, var(--peacock-900) 100%);
}

/* ---------- Textura de brillo sutil (partículas) ---------- */
main::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(220, 230, 250, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 75% 15%, rgba(220, 230, 250, 0.35), transparent),
    radial-gradient(1px 1px at 50% 70%, rgba(220, 230, 250, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 90% 60%, rgba(220, 230, 250, 0.3), transparent),
    radial-gradient(1px 1px at 10% 85%, rgba(220, 230, 250, 0.35), transparent);
  background-repeat: repeat;
  background-size: 100% 100%;
}

/* =========================================================================
   PRELOADER
   ========================================================================= */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  background: var(--bg-deep);
  transition: opacity 0.9s var(--ease), visibility 0.9s var(--ease);
}
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-emblem {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader-ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--silver-300);
  border-top-color: var(--peacock-glow);
  border-radius: 50%;
  animation: spin 1.4s linear infinite;
}
.preloader-initial {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--silver-100);
}
.preloader-text {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================================
   NAV DOTS (lateral, solo desktop)
   ========================================================================= */
.dots-nav {
  position: fixed;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  flex-direction: column;
  gap: 0.9rem;
  z-index: 50;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(201, 210, 224, 0.35);
  border: 1px solid rgba(201, 210, 224, 0.4);
  transition: all 0.3s var(--ease);
}
.dot.active,
.dot:hover {
  background: var(--peacock-glow);
  border-color: var(--peacock-glow);
  transform: scale(1.3);
}
@media (min-width: 900px) {
  .dots-nav { display: flex; }
}

/* =========================================================================
   1. PORTADA
   ========================================================================= */
.portada {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  max-width: none;
  overflow: hidden;
}

.portada-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(91, 134, 255, 0.28), transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(31, 79, 174, 0.25), transparent 55%),
    radial-gradient(circle at 85% 80%, rgba(14, 42, 92, 0.4), transparent 60%),
    linear-gradient(160deg, var(--bg-deep) 0%, var(--peacock-900) 55%, var(--bg-navy) 100%);
  z-index: -2;
}

.portada-shimmer {
  position: absolute;
  inset: -20%;
  z-index: -1;
  background: conic-gradient(from 0deg, transparent 0%, rgba(91, 134, 255, 0.06) 20%, transparent 40%);
  animation: shimmer-rotate 18s linear infinite;
  pointer-events: none;
}
@keyframes shimmer-rotate { to { transform: rotate(360deg); } }

.portada-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver-300);
  margin: 0;
}
.eyebrow-sm { margin-bottom: 0.6rem; opacity: 0.8; }

.padres {
  font-family: var(--font-title);
  font-style: italic;
  font-size: clamp(0.95rem, 3vw, 1.15rem);
  color: var(--silver-200);
  margin: 0.3rem 0 0.5rem;
}

.frase-hero {
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.6rem, 10vw, 4.2rem);
  margin: 0.2rem 0;
  background: linear-gradient(135deg, var(--silver-100) 10%, var(--peacock-glow) 55%, var(--silver-200) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(91, 134, 255, 0.25);
}

.ornament {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--silver-300);
  margin: 0.8rem 0;
}
.ornament span {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--silver-300));
}
.ornament span:last-child { background: linear-gradient(90deg, var(--silver-300), transparent); }
.ornament i { font-size: 0.8rem; color: var(--peacock-glow); font-style: normal; }

.nombre {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(2.8rem, 13vw, 5.5rem);
  margin: 0.1rem 0 0.3rem;
  letter-spacing: 0.02em;
  color: var(--silver-100);
}

.fecha-corta {
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--silver-300);
  margin: 0 0 2.4rem;
}

.btn-elegante {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.6rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--silver-100), var(--silver-300));
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(91, 134, 255, 0.2), 0 0 0 1px rgba(255,255,255,0.4) inset;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.btn-elegante:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(91, 134, 255, 0.32), 0 0 0 1px rgba(255,255,255,0.5) inset;
}
.btn-elegante:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--silver-100);
  border: 1px solid var(--silver-300);
  box-shadow: none;
}
.btn-outline:hover {
  background: rgba(245, 247, 251, 0.08);
  box-shadow: 0 10px 26px rgba(91, 134, 255, 0.18);
}

.scroll-hint {
  position: absolute;
  bottom: 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-faint);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 34px;
  background: rgba(201, 210, 224, 0.25);
  overflow: hidden;
}
.scroll-line i {
  display: block;
  width: 100%;
  height: 12px;
  background: linear-gradient(180deg, transparent, var(--peacock-glow));
  animation: scroll-drop 1.8s ease-in-out infinite;
}
@keyframes scroll-drop {
  0% { transform: translateY(-14px); }
  100% { transform: translateY(34px); }
}

/* =========================================================================
   SOBRE ANIMADO — pantalla de apertura de la portada
   ========================================================================= */
.sobre-wrap {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.sobre-wrap.oculto {
  opacity: 0;
  pointer-events: none;
}

.sobre {
  position: relative;
  width: 230px;
  height: 150px;
  cursor: pointer;
  perspective: 800px;
}

.sobre-cuerpo {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(155deg, var(--peacock-800), var(--bg-navy));
  border: 1px solid rgba(201, 210, 224, 0.35);
  box-shadow: var(--shadow-soft);
}
.sobre-cuerpo::before,
.sobre-cuerpo::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 52%;
  height: 68%;
  background: linear-gradient(160deg, rgba(255,255,255,0.05), transparent 70%);
  clip-path: polygon(0 100%, 0 0, 100% 100%);
}
.sobre-cuerpo::before { left: 0; }
.sobre-cuerpo::after { right: 0; transform: scaleX(-1); }

.sobre-carta {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 10%;
  height: 78%;
  border-radius: 6px;
  background: linear-gradient(160deg, var(--silver-100), var(--silver-200));
  box-shadow: 0 -6px 18px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateY(6px);
  transition: transform 0.7s 0.25s var(--ease), opacity 0.6s 0.25s var(--ease);
  z-index: 1;
}

.sobre-solapa {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 68%;
  background: linear-gradient(200deg, var(--peacock-700), var(--peacock-900));
  border: 1px solid rgba(201, 210, 224, 0.35);
  border-bottom: none;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transition: transform 0.7s var(--ease);
  z-index: 2;
  box-shadow: 0 6px 16px rgba(2, 6, 20, 0.35);
}

.sobre-sello {
  position: absolute;
  top: 38%;
  left: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--silver-100), var(--silver-400) 70%);
  color: var(--peacock-900);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  z-index: 3;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.sobre.abierto .sobre-solapa {
  transform: rotateX(-165deg);
}
.sobre.abierto .sobre-sello {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
}
.sobre.abierto .sobre-carta {
  opacity: 1;
  transform: translateY(-58px);
}

.sobre-texto {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver-300);
  animation: sobre-pulso 2.4s ease-in-out infinite;
}
@keyframes sobre-pulso {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Mientras el sobre no se ha abierto, el contenido de la portada espera
   pausado (listo para revelarse en orden apenas se abra) */
.portada.esperando .reveal {
  animation-play-state: paused;
}

/* ---------- Animación de entrada (reveal) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal-in 1s var(--ease) forwards;
}
.reveal:nth-child(1) { animation-delay: 0.15s; }
.reveal:nth-child(2) { animation-delay: 0.3s; }
.reveal:nth-child(3) { animation-delay: 0.45s; }
.reveal:nth-child(4) { animation-delay: 0.6s; }
.reveal:nth-child(5) { animation-delay: 0.75s; }
.reveal:nth-child(6) { animation-delay: 0.9s; }
.reveal:nth-child(7) { animation-delay: 1.05s; }
.reveal:nth-child(8) { animation-delay: 1.2s; }
@keyframes reveal-in {
  to { opacity: 1; transform: translateY(0); }
}

/* Secciones que aparecen al hacer scroll */
.fade-section {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.fade-section.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================================
   TÍTULOS Y TEXTOS COMUNES
   ========================================================================= */
.kicker {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--peacock-glow);
  margin: 0 0 0.6rem;
}
.section-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 2.8rem);
  margin: 0 0 2.4rem;
  color: var(--silver-100);
}

/* =========================================================================
   2. FRASE
   ========================================================================= */
.frase-section .ornament { justify-content: center; margin: 0 auto 1.6rem; }
blockquote#frase-elegante {
  font-family: var(--font-title);
  font-style: italic;
  font-size: clamp(1.4rem, 4.5vw, 2rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--silver-100);
  margin: 0 auto;
  max-width: 640px;
}
.firma {
  margin-top: 1.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--silver-400);
}

/* =========================================================================
   3. CUENTA REGRESIVA
   ========================================================================= */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.cd-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 90px;
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(201, 210, 224, 0.25);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(6px);
}
.cd-number {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--silver-100);
  line-height: 1;
}
.cd-label {
  margin-top: 0.35rem;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver-400);
}
.cd-sep {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--silver-400);
  opacity: 0.6;
}
.evento-comenzo {
  margin-top: 2rem;
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--peacock-glow);
}

@media (max-width: 420px) {
  .cd-item { width: 68px; height: 76px; }
  .cd-number { font-size: 1.7rem; }
}

/* =========================================================================
   4. EVENTO
   ========================================================================= */
.evento-card {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding: 2.4rem 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid rgba(201, 210, 224, 0.22);
  box-shadow: var(--shadow-soft);
  text-align: left;
}
.evento-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.evento-icono {
  font-size: 1.3rem;
  filter: grayscale(0.3) brightness(1.3);
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.evento-label {
  margin: 0 0 0.15rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver-400);
}
.evento-valor {
  margin: 0;
  font-size: 1.05rem;
  color: var(--silver-100);
}
.evento-nota {
  margin: 0.3rem 0 0;
  font-size: 0.75rem;
  color: var(--silver-600);
}
.evento-card .btn-elegante {
  align-self: center;
  margin-top: 0.6rem;
}

/* =========================================================================
   5. CONFIRMACIÓN (RSVP)
   ========================================================================= */
.rsvp-intro {
  color: var(--text-soft);
  margin-top: -1.2rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}
#rsvp-limite { color: var(--peacock-glow); }

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: 2.2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid rgba(201, 210, 224, 0.22);
  box-shadow: var(--shadow-soft);
}

.rsvp-toggle {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}
.rsvp-opcion {
  flex: 1 1 160px;
  padding: 0.9rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--silver-100);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201, 210, 224, 0.3);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.rsvp-opcion:hover { border-color: var(--peacock-glow); }
.rsvp-opcion.activo {
  background: linear-gradient(135deg, var(--silver-100), var(--silver-300));
  color: var(--bg-deep);
  border-color: transparent;
  font-weight: 600;
}

.rsvp-campos {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  text-align: left;
}
.campo {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--silver-400);
}
.campo input,
.campo select {
  font-family: var(--font-body);
  font-size: 1rem;
  text-transform: none;
  letter-spacing: normal;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(201, 210, 224, 0.3);
  background: rgba(5, 9, 20, 0.4);
  color: var(--silver-100);
  outline: none;
  transition: border-color 0.3s var(--ease);
}
.campo input::placeholder { color: var(--silver-600); }
.campo input:focus,
.campo select:focus { border-color: var(--peacock-glow); }
.campo select option { background: var(--bg-navy); color: var(--silver-100); }

.campo-hint {
  text-transform: none;
  letter-spacing: normal;
  color: var(--silver-600);
  font-size: 0.72rem;
}

.campo-fijo { gap: 0.6rem; }
.personas-fijo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(201, 210, 224, 0.3);
  background: rgba(91, 134, 255, 0.08);
  color: var(--silver-100);
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
}

.rsvp-no-msg {
  color: var(--text-soft);
  font-size: 0.9rem;
  text-align: center;
}

.rsvp-submit { align-self: center; }

.rsvp-status {
  margin-top: 1.6rem;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-md);
  background: rgba(91, 134, 255, 0.12);
  border: 1px solid rgba(91, 134, 255, 0.35);
  color: var(--silver-100);
  font-size: 0.9rem;
}

/* =========================================================================
   6. GALERÍA
   ========================================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.gallery-item {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(201, 210, 224, 0.2);
  background: linear-gradient(160deg, var(--peacock-800), var(--bg-navy));
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.35));
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.gallery-item:hover::after { opacity: 1; }

.gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  height: 100%;
  color: var(--silver-400);
  font-size: 1.4rem;
}
.gallery-placeholder small {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver-600);
}

@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 4, 12, 0.92);
  backdrop-filter: blur(6px);
  animation: fade-in 0.3s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 88vw;
  max-height: 82vh;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  animation: zoom-in 0.35s var(--ease);
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoom-in { from { transform: scale(0.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201, 210, 224, 0.3);
  color: var(--silver-100);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.18); }
.lightbox-close { top: 1.5rem; right: 1.5rem; width: 42px; height: 42px; font-size: 1.6rem; line-height: 1; }
.lightbox-prev,
.lightbox-next { top: 50%; transform: translateY(-50%); width: 46px; height: 46px; font-size: 1.1rem; }
.lightbox-prev { left: 1.2rem; }
.lightbox-next { right: 1.2rem; }

@media (max-width: 640px) {
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}

/* =========================================================================
   7. MENSAJE FINAL
   ========================================================================= */
.final-section .ornament { justify-content: center; margin: 0 auto 1.4rem; }
.final-mensaje {
  max-width: 560px;
  margin: 0 auto 2.2rem;
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 1rem;
}

.regalos-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 520px;
  margin: 0 auto;
  padding: 2.4rem 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid rgba(201, 210, 224, 0.22);
  box-shadow: var(--shadow-soft);
}
.regalos-icono {
  font-size: 2.1rem;
  filter: drop-shadow(0 4px 10px rgba(91, 134, 255, 0.25));
}
.regalos-texto {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 1rem;
}
.regalos-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--silver-100), var(--silver-300));
  color: var(--bg-deep);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(91, 134, 255, 0.18);
}
.footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(201, 210, 224, 0.15);
  color: var(--silver-600);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

/* =========================================================================
   RESPONSIVE GENERAL
   ========================================================================= */
@media (max-width: 480px) {
  section { padding: 5rem 1.2rem; }
}
