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

:root {
  --gold: #c9a84c;
  --gold-light: #e8d08a;
  --gold-pale: #f5e9c0;
  --white: #ffffff;
  --black-deep: #000000;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-modal: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(201, 168, 76, 0.3);
  --font-script: 'Great Vibes', cursive;
  --font-body: 'Lucida Sans', Georgia, serif;
}

body {
  font-family: var(--font-body);
  background: var(--black-deep);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- FONDO --- */
#starCanvas { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.bg-gradient {
  position: fixed; inset: 0; z-index: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 105, 180, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(138, 43, 226, 0.08) 0%, transparent 45%),
    var(--black-deep);
}
.parallax-layer {
  position: fixed; inset: -10%; z-index: 2;
  background: radial-gradient(circle 450px at var(--mx, 50%) var(--my, 50%), 
              rgba(255, 20, 147, 0.12) 0%, transparent 100%);
  pointer-events: none;
}

/* --- ESTRUCTURA PRINCIPAL --- */
.page {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5rem 1.5rem; /* Espacio arriba y abajo para que no se pegue nada */
  min-height: 100vh;
}

.hero-card {
  position: relative;
  max-width: 600px;
  width: 100%;
  padding: 4rem 2.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  margin-bottom: 4rem; /* Distancia con el mensaje final */
}

/* --- TIPOGRAFÍA Y DORADOS --- */
.name, .highlight {
  background: linear-gradient(135deg, var(--gold-pale), var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.name {
  font-family: var(--font-script);
  font-size: clamp(3.8rem, 12vw, 7rem);
  line-height: 1.4;
  margin: 1rem 0;
  filter: drop-shadow(0 0 15px rgba(201, 168, 76, 0.4));
}

.highlight { font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }

.invite-text {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: clamp(0.85rem, 3vw, 1rem); /* Tamaño reducido */
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7); /* Ligeramente más opaco para dar elegancia */
  margin-top: 2rem;
}

.age-badge {
  font-family: var(--font-title);
  display: block;
  font-size: clamp(1.2rem, 3vw, 1.8rem); /* Tamaño aumentado */
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold-champagne);
  margin: 1.5rem 0;
  font-weight: 25;
}

.final-message {
  font-family: var(--font-script);
  font-size: clamp(2rem, 8vw, 3rem);
  color: var(--gold-pale);
  text-align: center;
  padding-bottom: 3rem;
  opacity: 0.8;
}

/* --- CONTADOR --- */
/* Ajuste de proximidad para el contador */
.countdown-label {
  font-family: var(--font-body);
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-light);
  margin-bottom: -1rem; /* Margen negativo para "succionar" el contador hacia arriba */
  font-size: 0.9rem;
}

.countdown-display { 
  display: flex; 
  justify-content: center; 
  gap: 1.5rem; 
  margin: 2rem 0 3rem 0; /* Reducimos el margen superior (2rem) y mantenemos el inferior (3rem) */
}
.countdown-unit { display: flex; flex-direction: column; align-items: center; }
.countdown-number { font-size: 2.2rem; color: var(--gold-pale); }
.countdown-sublabel { font-size: 0.7rem; color: var(--gold); text-transform: uppercase; }

/* --- BOTONES --- */
.cta-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2rem;
}

.cta-btn {
  padding: 1.1rem 2rem;
  text-decoration: none;
  color: #000;
  background: linear-gradient(135deg, var(--gold-pale), var(--gold));
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  width: 100%;
  max-width: 320px;
  border: none;
  transition: 0.3s;
}

.cta-btn-ghost {
  padding: 1.1rem 2rem; /* Igualamos el padding al botón principal */
  color: var(--gold-light);
  border: 1px solid var(--gold);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.75rem;     /* Un poco más pequeño que el principal para jerarquía */
  font-weight: 400;
  letter-spacing: 0.15em; /* Espaciado generoso para elegancia */
  text-transform: uppercase; /* Mayúsculas armónicas */
  width: 100%;
  max-width: 320px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none; /* Esto quita el subrayado del enlace */
  display: inline-flex;  /* Ayuda a que el texto se centre mejor si hay varias líneas */
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cta-btn-ghost:hover {
  background: rgba(201, 168, 76, 0.1);
  box-shadow: 0 0 15px rgba(201, 168, 76, 0.2);
}

/* --- MODAL (FIJADO) --- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.137);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-content {
  background: var(--glass-modal) !important;
  border: 1px solid var(--gold) !important;
  max-width: 500px;
}

.gift-data {
  margin: 2rem 0;
  padding: 1.5rem;
  border: 1px dashed var(--gold);
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 2.5rem;
  cursor: pointer;
}

/* --- MÚSICA --- */
#music-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
