/* ============================================
   INVITACIÓN DE BODA — GLASSMORPHISM
   Alejandro & Londy | Warm Ash - Aura Architecture
   ============================================ */

:root {
  --verde-oscuro: #54582f;
  --verde-medio: #86895d;
  --verde-claro: #bec092;
  --beige-fondo: #faf8f2;
}

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

body, html {
  font-family: 'Montserrat', sans-serif;
  background-color: #faf8f2;
  color: var(--verde-oscuro);
  overflow-x: hidden;
}

/* ============================================
   WARM ASH - AURA BACKGROUND ARCHITECTURE
   ============================================ */
body { background-color: #faf8f2; }
.aura-bg { position: relative; overflow: hidden; min-height: 100vh; }
.aura-layer-1 { position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,0) 0%, rgba(214,204,190,0.12) 28%, rgba(255, 208, 171, 255) 18%, rgb(196,181,160) 68%, rgb(168,148,122) 100%); mix-blend-mode: multiply; filter: blur(98px); transform: translateZ(0); will-change: transform; pointer-events: none; }
.aura-layer-2 { position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,0) 0%, rgba(140, 161, 106, 0.22) 34%, rgb(255,255,255) 66%, rgb(196,181,160) 82%, rgb(168,148,122) 100%); mix-blend-mode: multiply; filter: blur(143px); transform: translateZ(0); will-change: transform; pointer-events: none; }
.aura-layer-3 { position: absolute; inset: 0; background: radial-gradient(circle at 10% 11%, rgba(255, 237, 214, 0.5) 0%, transparent 50%); mix-blend-mode: multiply; filter: blur(125px); transform: translateZ(0); will-change: transform; pointer-events: none; }
.aura-layer-4 { position: absolute; inset: 0; background: radial-gradient(circle at 95% 8%, rgba(158, 183, 118, 0.5) 0%, transparent 50%); mix-blend-mode: multiply; filter: blur(125px); transform: translateZ(0); will-change: transform; pointer-events: none; }
.aura-content { position: relative; z-index: 1; }

/* Incremento de blur en pantallas Desktop (>= 768px) para un difuminado aún más etéreo y amplio */
@media (min-width: 768px) {
  .aura-layer-1 { filter: blur(140px); }
  .aura-layer-2 { filter: blur(195px); }
  .aura-layer-3 { filter: blur(175px); }
  .aura-layer-4 { filter: blur(175px); }
}

/* ============================
   DECORACIONES FLORALES
   Flotan entre el Aura y el Glassmorphism Dashboard
   z-index: 2
   ============================ */
.decoracion-rama {
  position: fixed;
  z-index: 2;
  pointer-events: none;
  width: 40vw;
  max-width: 280px;
  min-width: 140px;
  opacity: 0.6;
  filter: drop-shadow(0 8px 12px rgba(84, 88, 47, 0.12));
}
.rama-bottom-right { bottom: -15px; right: -15px; }
.rama-top-left { top: -15px; left: -15px; transform: rotate(180deg); }

/* ============================
   BOTÓN DE MÚSICA FLOTANTE
   Glassmorphism — z-index: 9000
   ============================ */
.btn-musica {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-musica:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.15);
}
.btn-musica.playing {
  animation: pulse-music 2s ease-in-out infinite;
}
@keyframes pulse-music {
  0%, 100% { box-shadow: 0 4px 20px rgba(84, 88, 47, 0.15); }
  50% { box-shadow: 0 4px 28px rgba(84, 88, 47, 0.45); }
}

/* ============================
   LOADER INICIAL
   z-index: 9999 (encima de todo)
   ============================ */
#loader-inicial {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #faf8f2;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 1.2s ease;
}
.corona-wrapper {
  position: relative;
  width: 450px;
  height: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.corona-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: float 5s ease-in-out infinite;
}
.iniciales-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-family: 'Pinyon Script', cursive;
  font-size: 6.5rem;
  color: var(--verde-oscuro);
  font-weight: normal;
  line-height: 1;
  white-space: nowrap;
}
.y-ampersand {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8rem;
  font-weight: 300;
  vertical-align: middle;
}
@keyframes float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

/* ============================
   DASHBOARD GLASSMORPHISM
   z-index: 10 (contenido interactivo)
   ============================ */
main {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  opacity: 0;
  transform: translateY(180px);
  transition: opacity 2.5s cubic-bezier(0.22, 1, 0.36, 1), transform 2.5s cubic-bezier(0.22, 1, 0.36, 1);
}
main.visible {
  opacity: 1;
  transform: translateY(0);
}

.glass-card {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 25px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  padding: 50px 30px;
  max-width: 500px;
  width: 100%;
  text-align: center;
}

/* EFECTO SCROLL BIDIRECCIONAL */
.fade-in-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
   TIPOGRAFÍA GENERAL
   ============================ */
.versiculo {
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.6;
  font-weight: 600;
  color: var(--verde-oscuro);
}
.cita-biblica {
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 10px;
  color: var(--verde-medio);
}
.pre-titulo {
  font-size: 0.8rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--verde-medio);
  margin-bottom: 10px;
}
.nombres {
  font-family: 'Pinyon Script', cursive;
  font-size: 4.5rem;
  color: var(--verde-oscuro);
  font-weight: normal;
  margin: 30px 0 25px 0;
  line-height: 1.1;
}
.y-conjuncion {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 300;
  display: inline-block;
  margin: 15px 0;
}
.seccion-titulo {
  font-family: 'Pinyon Script', cursive;
  font-size: 2.8rem;
  font-weight: normal;
  margin-bottom: 20px;
  color: var(--verde-oscuro);
}
.divisor {
  width: 50px;
  height: 1px;
  background: rgba(84, 88, 47, 0.3);
  margin: 40px auto;
}

/* ============================
   TEXTO INVITACIÓN + FOTO
   ============================ */
.texto-invitacion {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--verde-oscuro);
  margin-bottom: 25px;
  padding: 0 10px;
}
.pareja-img-container {
  margin: 0 auto 30px auto;
  max-width: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}
.pareja-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  image-rendering: auto;
}

/* ============================
   CONTADOR
   ============================ */
.contador-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}
.contador-item {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 12px;
  width: 70px;
}
.contador-item span {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--verde-oscuro);
}
.contador-item p {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
  color: var(--verde-medio);
  font-weight: 600;
}

/* ============================
   DETALLES (FECHA / HORA)
   ============================ */
.grid-detalles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.detalle-item {
  background: rgba(255, 255, 255, 0.6);
  padding: 15px;
  border-radius: 12px;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
}
.detalle-item strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--verde-medio);
  margin-bottom: 5px;
}

/* ============================
   UBICACIÓN
   ============================ */
.mapa-container {
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
}
.mapa-container iframe {
  display: block;
  width: 100%;
}
.direccion-texto {
  font-size: 0.9rem;
  color: var(--verde-oscuro);
  line-height: 1.6;
  font-weight: 600;
  margin-bottom: 15px;
}
.btn-mapa {
  display: inline-block;
  padding: 10px 24px;
  background: var(--verde-oscuro);
  color: #fff;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: background 0.3s ease;
}
.btn-mapa:hover { background: var(--verde-medio); }

/* ============================
   CÓDIGO DE VESTIMENTA
   ============================ */
.vestimenta-nota {
  font-size: 0.95rem;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--verde-oscuro);
  line-height: 1.6;
}

/* ============================
   SECCIÓN REGALOS / CUBIERTO
   ============================ */
.regalos-texto {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--verde-oscuro);
  padding: 0 10px;
}
.regalos-texto strong {
  color: var(--verde-oscuro);
  font-weight: 700;
}

/* ============================
   RSVP AVISO
   ============================ */
.rsvp-aviso {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--verde-medio);
  margin-bottom: 20px;
  font-style: italic;
}

/* ============================
   FORMULARIO
   ============================ */
.label-custom {
  display: block;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--verde-oscuro);
}
input[type="text"],
input[type="email"],
input[type="tel"],
select {
  width: 100%;
  padding: 14px 18px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  color: var(--verde-oscuro);
  outline: none;
  transition: border-color 0.3s ease;
}
input:focus, select:focus {
  border-color: var(--verde-medio);
}
.checkbox-container {
  display: flex;
  align-items: flex-start;
  text-align: left;
  margin-bottom: 25px;
  font-size: 0.85rem;
}
.checkbox-container input { margin-right: 12px; margin-top: 3px; }

button[type="submit"] {
  width: 100%;
  padding: 16px;
  background-color: var(--verde-oscuro);
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.3s ease;
}
button[type="submit"]:hover { background-color: var(--verde-medio); }

.oculto { display: none !important; }

/* ============================
   RESPONSIVE — MÓVIL
   ============================ */
@media (max-width: 520px) {
  .glass-card { padding: 35px 18px; }
  .nombres { font-size: 3.4rem; }
  .seccion-titulo { font-size: 2.2rem; }
  .corona-wrapper { width: 300px; height: 300px; }
  .iniciales-loader { font-size: 4.5rem; }
  .decoracion-rama { width: 35vw; min-width: 100px; max-width: 180px; }
  .btn-musica { bottom: 16px; right: 16px; width: 44px; height: 44px; font-size: 1.1rem; }
}
