/* ESTILOS GENERALES Y RESET */
* {
    box-sizing: border-box;
}

body { 
    margin: 0; 
    padding: 0; 
    /* Fondo con degradado suave inspirado en los tonos crema/menta de la tarjeta */
    background: linear-gradient(135deg, #f4f7f1 0%, #e2eedb 100%); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh; 
    font-family: 'Montserrat', sans-serif; 
    overflow: hidden;
}

/* ----------------------------------------------------
   PANTALLA DE PORTADA (INTRO PREMIUM)
------------------------------------------------------- */
#pantalla-inicio { 
    position: fixed; 
    width: 100%; 
    height: 100%; 
    /* Fondo animado que cambia de tonalidades verde de manera sutil */
    background: linear-gradient(45deg, #163513, #2a4d25, #1b4318, #345c2e);
    background-size: 400% 400%;
    animation: gradienteFondo 12s ease infinite;
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    z-index: 100; 
    transition: opacity 1s ease;
}

/* Polvo de estrellas / partículas flotantes doradas */
.decoracion-fondo {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    background-image: 
        radial-gradient(circle, rgba(212,175,55,0.3) 1px, transparent 1px),
        radial-gradient(circle, rgba(212,175,55,0.2) 2px, transparent 2px);
    background-size: 40px 40px, 60px 60px;
    background-position: 0 0, 20px 30px;
    animation: flotarParticulas 8s linear infinite;
    opacity: 0.6;
}

.bloque-central {
    text-align: center;
    z-index: 2;
    padding: 20px;
}

.corona-svg {
    margin-bottom: 10px;
    animation: pulsoCorona 3s ease-in-out infinite;
}

.subtitulo-portada {
    color: #e0eed7;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 5px;
    opacity: 0.9;
}

.titulo-portada { 
    font-family: 'Cinzel', serif;
    color: #ffffff; 
    font-size: 2.2rem; 
    margin: 0;
    font-weight: 400; 
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nombre-quinceanera {
    font-family: 'Pinyon Script', cursive;
    color: #d4af37;
    font-size: 3.8rem;
    margin: 10px 0 40px 0;
    font-weight: 400;
    text-shadow: 0 3px 6px rgba(0,0,0,0.4);
    background: linear-gradient(to right, #f3e0aa, #d4af37, #f3e0aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contenedor-btn {
    position: relative;
    display: inline-block;
}

/* Efecto de onda pulsante dorada alrededor del botón */
.contenedor-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 50px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    animation: ondaBoton 2s infinite;
    pointer-events: none;
}

#btn-inicio { 
    padding: 16px 45px; 
    background: rgba(255, 255, 255, 0.05); 
    border: 1.5px solid #d4af37; 
    color: #ffffff; 
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem; 
    font-weight: 600;
    cursor: pointer; 
    border-radius: 50px; 
    text-transform: uppercase; 
    letter-spacing: 3px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: 0.4s all ease;
}

#btn-inicio:hover { 
    background: #d4af37; 
    color: #1b4318; 
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.8);
    transform: translateY(-2px);
}

/* ----------------------------------------------------
   CONTENEDOR DE LA INVITACIÓN PRINCIPAL (MÓVIL)
------------------------------------------------------- */
.contenedor-tarjeta {
    position: relative;
    width: 92vw;
    max-width: 410px;
    /* Bloqueo de aspecto exacto para celulares para que los botones nunca se desfacen */
    aspect-ratio: 562 / 1000; 
    background-image: url('invitacion.jpg');
    background-size: contain; 
    background-repeat: no-repeat; 
    background-position: center;
    border-radius: 12px;
    filter: drop-shadow(0px 12px 24px rgba(61, 106, 54, 0.15));
    animation: flotar 4s ease-in-out infinite;
}

/* Efecto de rayo de luz brillante moviéndose sobre la invitación */
.contenedor-tarjeta::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0) 35%, rgba(255,255,255,0.18) 50%, rgba(255,255,255,0) 65%);
    animation: brillo-movil 6s infinite linear;
    pointer-events: none;
    border-radius: 12px;
}

/* ZONAS DE TEXTO E INTERACTIVIDAD ENCIMA DE TU IMAGEN */
.btn-invisible {
    position: absolute;
    top: 73.8%;       /* Ajustado milimétricamente sobre los óvalos verdes de tu foto */
    height: 4.5%;     
    width: 38.5%;     
    background: rgba(255, 255, 255, 0); 
    cursor: pointer;
    border-radius: 25px;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none;
    
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.35);
    
    transition: background 0.3s ease, transform 0.2s;
}

.btn-invisible:hover {
    background: rgba(255, 255, 255, 0.18);
}
.btn-invisible:active {
    transform: scale(0.96);
}

.btn-confirmar { left: 8.4%; }
.btn-direccion { right: 8.4%; }
.oculto { display: none; }

/* ----------------------------------------------------
   ANIMACIONES ESPECTACULARES
------------------------------------------------------- */
@keyframes gradienteFondo {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes flotarParticulas {
    0% { background-position: 0 0, 20px 30px; }
    100% { background-position: 40px 80px, 60px 110px; }
}

@keyframes pulsoCorona {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(212,175,55,0.4)); }
    50% { transform: scale(1.06); filter: drop-shadow(0 0 8px rgba(212,175,55,0.8)); }
}

@keyframes ondaBoton {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.25); opacity: 0; }
}

@keyframes flotar {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes brillo-movil {
    0% { transform: translateX(-150%); }
    100% { transform: translateX(150%); }
}
