/* ==========================================
   ESTILOS GLOBALES Y VARIABLES
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --gold: #c9a84c;
  --gold-light: #e8d48a;
  --dark: #0d0c0a;
  --dark2: #1a1915;
  --cream: #f9f4eb;
  --cream2: #ede5d4;
  --text-muted: #8a8070;
}

body {
  font-family: 'Josefin Sans', sans-serif;
  background: var(--dark);
  color: var(--cream);
  overflow-x: hidden;
}

/* ==========================================
   NAVEGACIÓN MINIMALISTA
   ========================================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 12, 10, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.nav-logo-img {
  height: 150px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.nav-logo-img:hover {
  transform: scale(1.03);
}

/* ==========================================
   HERO & COMING SOON
   ========================================== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 10rem 2rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 40%,
    rgba(201, 168, 76, 0.12) 0%,
    transparent 60%
  );
}

.hero-line-v {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(201, 168, 76, 0.2) 30%,
    rgba(201, 168, 76, 0.2) 70%,
    transparent
  );
  z-index: 1;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 800px;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--cream);
  margin-bottom: 1rem;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-subtitle {
  font-size: 0.95rem;
  line-height: 1.8;
  letter-spacing: 0.05em;
  color: var(--cream2);
  margin: 1.5rem auto 2.5rem;
  font-weight: 300;
  max-width: 600px;
}

.hero-subtitle strong {
  color: var(--cream);
  font-weight: 400;
}

/* ==========================================
   COUNTDOWN TEMPORIZADOR
   ========================================== */
.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.time-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.time-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  font-weight: 300;
}

.time-label {
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

.time-sep {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: rgba(201, 168, 76, 0.3);
  line-height: 1;
  margin-top: -20px;
}

/* ==========================================
   FORMULARIO VIP
   ========================================== */
.vip-form {
  background: rgba(26, 25, 21, 0.7);
  border: 1px solid rgba(201, 168, 76, 0.2);
  padding: 3rem;
  max-width: 450px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.form-row {
  margin-bottom: 1.8rem;
  text-align: left;
}

.form-row label {
  display: block;
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
  font-weight: 300;
}

.form-row input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
  padding: 0.6rem 0;
  color: var(--cream);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 200;
  letter-spacing: 0.05em;
  transition: all 0.3s;
  outline: none;
}

.form-row input:focus {
  border-bottom-color: var(--gold);
  background: rgba(201, 168, 76, 0.03);
}

.form-row input::placeholder {
  color: rgba(138, 128, 112, 0.5);
}

.btn-primary {
  width: 100%;
  padding: 1.2rem;
  background: var(--gold);
  color: var(--dark);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  font-weight: 400;
  transition: all 0.3s;
  margin-top: 1rem;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(201, 168, 76, 0.15);
}

/* ==========================================
   MENSAJES DEL FORMULARIO
   ========================================== */
#form-mensaje {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  margin-top: 1.5rem;
  text-align: center;
  display: none;
  line-height: 1.5;
}

.msg-success {
  color: var(--gold);
}

.msg-error {
  color: #ff6b6b;
}

/* ==========================================
   FOOTER Y LOGO KAI
   ========================================== */
footer {
  margin-top: 4rem;
  padding: 2rem;
  text-align: center;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
}

.social-links a {
  color: var(--gold);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--cream);
}

.copyright {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: rgba(138, 128, 112, 0.5);
}

.powered-by-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  width: 100%;
  max-width: 300px;
}

.powered-by-text {
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.kai-logo {
  height: 35px;
  width: auto;
  object-fit: contain;
  /* Si tu logo es muy oscuro para el fondo negro, descomenta la siguiente línea: */
  /* filter: invert(1) brightness(0.9); */
  opacity: 0.7;
  transition: opacity 0.3s;
}

.kai-logo:hover {
  opacity: 1;
}

/* ==========================================
   ANIMACIONES DE ENTRADA ESCALONADAS
   ========================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow {
  animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  opacity: 0;
}
.hero-title {
  animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
  opacity: 0;
}
.hero-subtitle {
  animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s forwards;
  opacity: 0;
}
.countdown {
  animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s forwards;
  opacity: 0;
}
.vip-form {
  animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.8s forwards;
  opacity: 0;
}
footer {
  animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 1.2s forwards;
  opacity: 0;
}

/* ==========================================
   MEDIA QUERIES (MÓVIL Y RESPONSIVIDAD)
   ========================================== */
@media (max-width: 600px) {
  nav { 
    padding: 1rem; 
  }
  .nav-logo-img { 
    height: 60px; /* Un poco más pequeño para que respire bien */
  }
  .hero { 
    padding: 7rem 1.5rem; 
  }
  .vip-form { 
    padding: 2rem 1.5rem; 
  }
  
  /* Ajustes del Temporizador para que no se desborde */
  .countdown { 
    gap: 0.5rem; /* Menos espacio entre números */
  }
  .time-num { 
    font-size: 2rem; 
  }
  .time-sep { 
    font-size: 1.5rem; 
    margin-top: -10px;
  }
  .time-box {
    min-width: 50px;
  }

  /* Prevenir Zoom en iOS al tocar los inputs */
  .form-row input {
    font-size: 16px; 
  }

  /* Footer responsivo */
  .social-links {
    flex-wrap: wrap; /* Si no caben, que pasen abajo ordenadamente */
    gap: 1.5rem;
  }
}

/* Opcional: Para pantallas SÚPER pequeñas (como teléfonos antiguos) */
@media (max-width: 360px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .social-links {
    gap: 1rem;
    font-size: 0.55rem;
  }
}

/* ==========================================
   ESTILOS ESPECTACULARES DE ÉXITO (POST-ENVÍO)
   ========================================== */

/* Contenedor principal que reemplazará el contenido del form */
.form-success-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
  opacity: 0; /* Empieza oculto para la animación */
  animation: fadeUp 1s ease 0.2s forwards; /* Reutilizamos fadeUp con un retraso */
  padding: 1rem 0;
}

/* El icono circular de la palomita */
.success-icon-wrap {
  margin-bottom: 1rem;
}

.success-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.4); /* Brillo sutil */
}

/* Titulo y Subtítulo elegantes */
.success-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  color: var(--cream);
  line-height: 1.2;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.success-subtitle {
  font-size: 1rem;
  color: var(--cream2);
  line-height: 1.8;
  max-width: 380px;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.success-subtitle strong {
  color: var(--gold);
  font-weight: 400;
}

/* === Efecto Gold Confetti === */
@keyframes confettiDrop {
  0% { transform: translateY(-100%) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

.confetti {
  position: fixed;
  top: -10px;
  z-index: 1000;
  opacity: 1;
  pointer-events: none; /* No bloquea clics detrás */
}

/* Ajuste sutil para móviles */
@media(max-width:600px){
  .success-title { font-size: 2.1rem; }
  .success-icon { width: 60px; height: 60px; font-size: 1.8rem; }
}