body, html {
  margin: 0;
  padding: 0;
  background: #000; /* clave */
  scroll-behavior: smooth;
}

@font-face {
  font-family: 'Cinzel';
  src: url('/fonts/Cinzel-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cinzel';
  src: url('/fonts/Cinzel-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  font-family: 'Cinzel', serif;
  background: #000;
  color: #e5d3a1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: url('/img/fondo_castillo.jpg') no-repeat center center;
  background-size: cover;
  z-index: -2;

  animation: bgMove 30s infinite alternate;
}

body::before {
  content: "";
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: -1;
}

@keyframes bgMove {
  from { background-position: center top; }
  to { background-position: center bottom; }
}

body.intro-active {
  animation: none;
  background-attachment: initial;
  overflow: hidden;
}

h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #d4af37;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  position: relative;
  text-shadow: 0 0 10px rgba(212,175,55,0.3);
}

h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: #d4af37;
  margin: 10px auto 0;
}

section {
  width: 100%;
  padding: 40px 20px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 16px;
  box-shadow:
    0 0 20px rgba(0,0,0,0.6),
    inset 0 0 30px rgba(255,255,255,0.02);
  position: relative;
  box-sizing: border-box;
  }

section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 40%;
  height: 1px;
  background: linear-gradient(to right, transparent, #d4af37, transparent);
  transform: translateX(-50%);
}


/* ================= INTRO ================= */

.intro {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #1a1a1a, #000);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
  /* 🔥 esto ayuda a evitar glitches en mobile */
  width: 100%;
  height: 100%;
  transform: translateZ(0); /* 🔥 fix mobile rendering */
}

.intro-content {
  text-align: center;
  color: #d4af37;
  animation: fadeIn 2s ease;
}

/* ESCUDO */
.intro-escudo {
  width: 120px;
  margin-bottom: 20px;
  opacity: 0;
  animation: aparecer 2s ease forwards;
}

/* TEXTO */
.linea {
  font-size: 18px;
  opacity: 0;
  margin: 5px 0;
  animation: aparecer 2s ease forwards;
}

.linea.delay {
  animation-delay: 1s;
}

/* NOMBRE */
.intro-nombre {
  font-size: 48px;
  margin: 20px 0;
  opacity: 0;
  animation: aparecer 2s ease forwards;
  animation-delay: 2s;
}

/* BOTÓN */
.intro-btn {
  margin-top: 25px;
  padding: 14px 32px;
  font-size: 16px;
  letter-spacing: 1px;
  color: #d4af37;
  background: linear-gradient(145deg, #1a1a1a, #000);
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  will-change: transform;
}

/* brillo interno */
.intro-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(212,175,55,0.2),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s;
}

/* hover glow */
.intro-btn:hover {
  transform: scale(1.05);
  border-color: #d4af37;
  box-shadow:
    0 0 10px rgba(212,175,55,0.4),
    0 0 25px rgba(212,175,55,0.2);
}

/* activa brillo */
.intro-btn:hover::before {
  opacity: 1;
}

.intro-btn:active {
  transform: scale(0.97);
}

.intro-btn {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

/* cuando se activa */
.intro-btn.show {
  opacity: 1;
  transform: translateY(0);
}


/* ANIMACIONES */
@keyframes aparecer {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0 }
  to { opacity: 1 }
}

#smoke {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.25;
}

.intro-content {
  position: relative;
  z-index: 2;
}

.intro-escudo {
  width: 120px;
  margin-bottom: 20px;
  opacity: 0;
  animation: aparecer 2s ease forwards;
  filter: drop-shadow(0 0 10px rgba(212,175,55,0.3));
}

.intro-escudo:hover {
  filter: drop-shadow(0 0 25px rgba(212,175,55,0.8));
}

#app {
  opacity: 0;
  transition: opacity 1s ease;
}

#app.visible {
  opacity: 1;
}
/*hero*/
.hero {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  transform: scale(1.08);
  transition: all 1.5s ease;
}

/* cuando aparece */
.hero.show {
  opacity: 1;
  transform: scale(1);
}

.fondo {
  width: 100%;
  display: block;
  border-radius: 12px;
  filter: brightness(0.95);
}

.container::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  box-shadow: inset 0 0 80px rgba(0,0,0,0.6);
  pointer-events: none;
}



/* 🔥 Fondo */
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('/img/fondo.png') center/cover no-repeat;
  z-index: 1;
}

/* 🖤 Oscurecer para look cinematográfico */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at center, rgba(0,0,0,0.15), rgba(0,0,0,0.9)),
    linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,1));
  z-index: 2;
}

/* 🐉 Dragones */
.dragon {
  position: absolute;
  bottom: 0;
  width: 40%;
  max-width: 700px;
  z-index: 3;
  pointer-events: none;
  filter: brightness(0.9) contrast(1.1) drop-shadow(0 0 20px rgba(255,120,0,0.2));
  opacity: 0.9;
}

.dragon-left {
  left: -8%;
  /*transform: scaleX(-1);*/
}

.dragon-right {
  right: -8%;
}

/* 👑 Contenido */
.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  color: #d4af37;
  padding: 20px;
  margin-top: -180px;
}

/* Ornamentos */
.ornament {
  width: 60%;
  max-width: 500px;
  margin: 10px auto;
  display: block;
  opacity: 0.8;
}


/* Logo */
.logo {
  width: 80%;
  max-width: 600px;
  margin: 20px auto;
  display: block;
  filter: drop-shadow(0 0 12px rgba(212,175,55,0.35));
}

/* Frase */
.hero-quote {
  margin-top: 20px;
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: #e6c77b;
  text-shadow: 0 0 12px rgba(212,175,55,0.6);
}

/* 🪑 Trono */
.throne {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 35%;
  max-width: 500px;
  z-index: 4;
  opacity: 0.9;
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .dragon {
    width: 80%;
    opacity: 0.5;
  }

  .dragon-left {
    left: -40%;
  }

  .dragon-right {
    right: -40%;
  }

  .throne {
    width: 60%;
  }

  .logo {
    width: 95%;
  }
}

/* SECCIÓN */
.story {
  width: 100%;
  padding: 100px 20px;
  text-align: center;
  color: #e5d3a1;
  position: relative;
}

/* CONTENIDO */
.story-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  box-sizing: border-box;
}

/* TEXTO */
.line {
  opacity: 0;
  margin: 20px 0;
  font-size: 18px;
  line-height: 2.2;
  letter-spacing: 1px;
  transform: translateY(30px);
  filter: blur(4px);
}

/* separación narrativa */
.space {
  margin-top: 40px;
}

/* CASA VERONICA (PUNCH) */
.house {
  font-size: 36px;
  margin: 40px 0;
  color: #d4af37;
  letter-spacing: 4px;
  opacity: 0;

  text-shadow:
    0 0 10px rgba(212,175,55,0.4),
    0 0 25px rgba(212,175,55,0.2);
}

.house::after {
  content: "";
  display: block;
  width: 80px;
  height: 2px;
  margin: 10px auto;
  background: #d4af37;

  transform: scaleX(0);
  transform-origin: center;
  transition: transform 1s ease;
}

.house.active::after {
  transform: scaleX(1);
}

.rsvp {
  width: 100%;
  text-align: center;
  padding: 80px 20px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  margin: 40px 0px;
}

.btn-rsvp {
  padding: 14px 30px;
  color: #d4af37;
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: 8px;
  cursor: pointer;
  background: linear-gradient(145deg, #000, #1a1a1a);
  border: 1px solid #d4af37;
  box-shadow: 0 0 10px rgba(212,175,55,0.2);
  transition: all 0.3s ease;
}

.btn-rsvp:hover {
  box-shadow: 0 0 20px rgba(212,175,55,0.5);
  transform: scale(1.05);
}

.btn-rsvp.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

/*vestimenta*/
/* =========================
   🎬 SECCIÓN VESTIMENTA
========================= */
.vestimenta {
  padding: 140px 20px;
  text-align: center;
  position: relative;
  overflow: visible;
}

/* TITULO */
.vestimenta h2 {
  font-size: 38px;
  margin-bottom: 60px;
  color: #d4af37;
  letter-spacing: 3px;
  text-shadow: 0 0 20px rgba(212,175,55,0.3);
}

/* SUBTEXTO */
.vestimenta-sub {
  max-width: 600px;
  margin: 0 auto 60px;
  font-size: 14px;
  letter-spacing: 2px;
  color: #c9b37a;
  opacity: 0.8;
}

/* =========================
   🎭 ESCENARIO
========================= */
.vestimenta-stage {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 100px;
}

/* =========================
   🎭 PERSONAJES BASE
========================= */
.char {
  position: relative;
  opacity: 0;
  transform: translateY(60px) scale(0.95);
  filter: blur(4px);

  transition:
    opacity 0.8s ease,
    transform 0.8s ease,
    filter 0.8s ease;
}

/* aparece */
.char.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* =========================
   🖼 IMAGEN
========================= */
.char img {
  display: block;
  max-width: 100%;

  transition: all 0.6s ease;

  filter:
    drop-shadow(0 20px 40px rgba(0,0,0,0.9))
    drop-shadow(0 0 25px rgba(212,175,55,0.15));
}

/* =========================
   👑 PRINCIPALES
========================= */
.char.main {
  z-index: 2;
}

.char.main img {
  height: 420px;
}

.char.main span {
  display: block;
  margin-top: 15px;
  font-size: 14px;
  letter-spacing: 2px;
  color: #d4af37;
}

/* hover */
.char.main:hover {
  transform: translateY(-12px) scale(1.05);
}

.char.main:hover img {
  filter:
    drop-shadow(0 30px 60px rgba(0,0,0,1))
    drop-shadow(0 0 40px rgba(212,175,55,0.5));
}

/* =========================
   🛡 SECUNDARIOS
========================= */
.char.side {
  transform: scale(0.9);
  opacity: 0.85;
}

.char.side img {
  height: 280px;

  filter:
    brightness(0.85)
    drop-shadow(0 10px 25px rgba(0,0,0,0.8));
}

.char.side span {
  font-size: 12px;
  opacity: 0.7;
}

/* =========================
   🌫 GLOW SUELO
========================= */
.char::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 60px;

  background: radial-gradient(circle, rgba(212,175,55,0.15), transparent);
  filter: blur(20px);

  opacity: 0;
  transition: opacity 0.5s ease;
}

.char.main:hover::after {
  opacity: 1;
}

/* =========================
   🎬 VIDA SUTIL
========================= */
.char.main {
  animation: floatChar 6s ease-in-out infinite;
}

@keyframes floatChar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* =========================
   🌫 AMBIENTE
========================= */
.vestimenta::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;

  background:
    radial-gradient(circle at center, rgba(255,140,0,0.15), transparent 70%);

  filter: blur(60px);
  pointer-events: none;
}

/* =========================
   📱 MOBILE
========================= */
@media (max-width: 768px) {

  .vestimenta {
    padding: 100px 15px;
  }

  .vestimenta h2 {
    font-size: 28px;
  }

  .vestimenta-stage {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .char {
    filter: none;
  }

  .char.main img {
    height: 300px;
  }

  /* 🔥 ahora SI se ven secundarios */
  .char.side {
    display: block;
    opacity: 0.5;
    transform: scale(0.85);
  }

  .char.side img {
    height: 220px;
  }

  .char.main span {
    font-size: 12px;
  }
}

/*particles*/
.particles {
  position: fixed;
  inset: 0;
  z-index: 1; 
  pointer-events: none;
}

.particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, #ffb347, #ff5e00);
  border-radius: 50%;
  opacity: 0.8;
  filter: blur(0.5px);
  animation: floatUp linear infinite;
}

@keyframes float {
  from {
    transform: translateY(100vh);
    opacity: 0;
  }
  to {
    transform: translateY(-10vh);
    opacity: 1;
  }
}

.show {
  animation: fadeUp 1s ease forwards;
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateY(-20vh) translateX(var(--drift));
    opacity: 0;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .dragon {
    width: 90%;
    opacity: 0.5;
  }

  .dragon-left {
    left: -40%;
    bottom: -10%;
  }

  .dragon-right {
    right: -40%;
    bottom: -10%;
  }
}

@media (max-width: 768px) {
  .line {
    font-size: 16px;
    line-height: 2;
  }

  .house {
    font-size: 28px;
  }
}

.hero,
.intro,
#app {
  will-change: transform, opacity;
  transform: translateZ(0);
}

.evento {
  width: 100%;
  padding: 100px 20px;
  text-align: center;
}

.evento-box {
  max-width: 600px;
  margin: 0 auto;
  padding: 50px 30px;

  border-radius: 16px;
  border: 1px solid rgba(212,175,55,0.2);

  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);

  box-shadow:
    0 0 20px rgba(0,0,0,0.6),
    inset 0 0 30px rgba(255,255,255,0.02);
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease;

}

.evento-box.show {
  opacity: 1;
  transform: translateY(0);
}



/* título */
.evento h2 {
  font-size: 24px;
  margin-bottom: 30px;
}

/* fecha */
.evento-fecha {
  font-size: 20px;
  letter-spacing: 2px;
  color: #d4af37;
  margin: 20px 0;
}

/* lugar */
.evento-lugar {
  font-size: 16px;
  opacity: 0.8;
}

/*ubicacion*/
/* =========================
   📍 UBICACIÓN
========================= */
.ubicacion {
  padding: 140px 20px;
  text-align: center;
}

.ubicacion h2 {
  font-size: 36px;
  color: #d4af37;
  margin-bottom: 15px;
  letter-spacing: 3px;
}

.ubicacion-text {
  max-width: 500px;
  margin: 0 auto 50px;
  opacity: 0.8;
}

/* CAJA */
.ubicacion-box {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px 30px;

  border-radius: 16px;
  border: 1px solid rgba(212,175,55,0.2);

  background: rgba(0,0,0,0.6);

  backdrop-filter: blur(6px);
}

/* TITULO */
.ubicacion-box h3 {
  color: #d4af37;
  margin-bottom: 10px;
}

/* DIRECCION */
.direccion {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 25px;
}

/* =========================
   🗺 MAPA PRO
========================= */
.mapa {
  width: 100%;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;

  border: 1px solid rgba(212,175,55,0.2);
}

.mapa iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* BOTÓN */
.btn-mapa {
  display: inline-block;
  padding: 12px 25px;

  border: 1px solid #d4af37;
  color: #d4af37;
  text-decoration: none;
  border-radius: 8px;

  transition: all 0.3s ease;
}

.btn-mapa:hover {
  background: #d4af37;
  color: #000;
}

/* =========================
   🎬 ANIMACIÓN
========================= */
.ubicacion-box {
  opacity: 0;
  transform: translateY(40px);
}

.ubicacion-box.show {
  opacity: 1;
  transform: translateY(0);
  transition: all 1s ease;
}

/* =========================
   📱 MOBILE
========================= */
@media (max-width: 768px) {

  .ubicacion {
    padding: 100px 15px;
  }

  .ubicacion-box {
    padding: 25px;
  }

  .mapa {
    height: 200px;
  }
}


/*Footer*/
/* =========================
   🎬 FOOTER REINO
========================= */
.footer-reino {
  position: relative;
  padding: 180px 20px;
  text-align: center;
  overflow: hidden;

  background: radial-gradient(circle at center, #1a1a1a, #000);
}

/* OVERLAY DRAMÁTICO */
.footer-overlay {
  position: absolute;
  inset: 0;

  background:
    radial-gradient(circle at center, rgba(212,175,55,0.08), transparent 70%),
    linear-gradient(to top, rgba(0,0,0,1), rgba(0,0,0,0.7));

  z-index: 1;
}

/* CONTENIDO */
.footer-content {
  position: relative;
  z-index: 2;
  color: #d4af37;
  max-width: 600px;
  margin: 0 auto;
}

/* TEXTO */
.footer-text {
  font-size: 14px;
  letter-spacing: 2px;
  opacity: 0.7;
  margin-bottom: 20px;
}

/* TITULO FINAL */
.footer-content h2 {
  font-size: 42px;
  margin: 20px 0;
  letter-spacing: 4px;

  text-shadow:
    0 0 20px rgba(212,175,55,0.5),
    0 0 40px rgba(212,175,55,0.2);
}

/* SUB */
.footer-sub {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 30px;
}

/* DIVIDER */
.footer-divider {
  width: 80px;
  height: 2px;
  margin: 25px auto;

  background: linear-gradient(to right, transparent, #d4af37, transparent);
}

/* FECHA */
.footer-date {
  font-size: 16px;
  letter-spacing: 3px;
  opacity: 0.9;
}

/* =========================
   ✨ ANIMACIÓN ENTRADA
========================= */
.footer-content {
  opacity: 0;
  transform: translateY(40px);
}

.footer-content.show {
  opacity: 1;
  transform: translateY(0);
  transition: all 1.2s ease;
}

/* =========================
   🌫 AMBIENTE (humo final)
========================= */
.footer-reino::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;

  background:
    radial-gradient(circle at center, rgba(255,140,0,0.2), transparent);

  filter: blur(80px);
}

/* =========================
   📱 MOBILE
========================= */
@media (max-width: 768px) {

  .footer-reino {
    padding: 120px 20px;
  }

  .footer-content h2 {
    font-size: 28px;
  }

  .footer-text,
  .footer-sub {
    font-size: 12px;
  }
}

/*login*/
.login-bg {
  background: radial-gradient(#000, #111);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-box {
  padding: 40px;
  background: rgba(0,0,0,0.8);
  border: 1px solid #d4af37;
  border-radius: 12px;
  text-align: center;
}

.login-box input {
  display: block;
  margin: 10px auto;
  padding: 10px;
  width: 200px;
}

.login-box button {
  margin-top: 10px;
  padding: 10px 20px;
}

