/* =================================================================
   ROSE GOLD DISCO - MASTER STYLES (v5.0 Final Production)
   ================================================================= */

:root {
    /* PALETA */
    --bg-void: #020202;
    --gold-metallic: #d4af37;
    --rose-neon: #ff9eb5;
    --rose-deep: #8a3a4b;
    
    /* FUENTES */
    --font-clean: 'Montserrat', sans-serif;
    --font-serif: 'Bodoni Moda', serif;
    --font-brush: 'Brittany', cursive; 

    /* EFECTOS */
    --glow-text: 0 0 10px rgba(255, 191, 202, 0.4);
}

/* Fuente Local */
@font-face {
    font-family: 'Brittany';
    src: url('assets/fonts/BrittanySignature.ttf') format('truetype');
    font-weight: normal; font-style: normal; font-display: swap;
}

/* --- BASE & SCROLL FIX --- */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0; padding: 0;
    background-color: var(--bg-void);
    color: #fff;
    font-family: var(--font-clean);
    
    /* CORRECCIÓN DE SCROLL PARA MÓVILES */
    min-height: 100vh;
    height: auto; 
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto; /* Permite bajar si el contenido es largo */
    
    display: flex;
    flex-direction: column;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
}

/* --- FONDO MAESTRO --- */
#ambient-background {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    
    /* IMAGEN HORNEADA (BOLA + ESTRELLAS + HUMO) */
    background-image: url('assets/img/main-bg-baked.jpg');
    background-size: cover;
    background-position: center bottom; /* Bola anclada abajo */
    background-repeat: no-repeat;
    
    /* Velo opcional para mejorar lectura si la imagen es muy brillante */
    box-shadow: inset 0 0 150px rgba(0,0,0,0.6);
}

/* --- CONTENEDOR DE PANTALLA --- */
.screen {
    width: 100%;
    min-height: 100vh; /* Ocupa al menos toda la pantalla */
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Empezar arriba para respetar el layout vertical */
    padding-top: 10vh; /* Margen superior seguro */
}

.intro-content {
    width: 100%; max-width: 500px;
    display: flex; flex-direction: column; align-items: center;
    position: relative; z-index: 2;
}

/* --- TIPOGRAFÍA --- */
.clean-subtitle {
    font-family: var(--font-clean);
    font-size: 0.8rem; letter-spacing: 0.4em;
    text-transform: uppercase; color: var(--gold-metallic);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 5px rgba(0,0,0,0.8);
}

.brush-title {
    font-family: var(--font-brush);
    /* Ajuste de tamaño para móviles */
    font-size: clamp(4rem, 15vw, 7rem); 
    line-height: 1;
    color: #fff;
    
    /* Rotación */
    transform: rotate(-6deg);
    
    /* CENTRADO ÓPTICO */
    text-align: center;
    width: 100%;
    
    /* Margen para separarlo del "Save the Date" arriba y del Nombre abajo */
    margin: 20px 0 10px 0; 
    
    /* CORRECCIÓN VISUAL DE ALINEACIÓN */
    /* Como está rotado, empujamos un poco a la derecha para que se sienta centrado */
    position: relative;
    left: 10px; 
    z-index: 10;
    
    /* Glow intenso */
    text-shadow: 
        0 0 5px #fff,
        0 0 20px var(--rose-neon),
        0 0 40px var(--rose-deep);
}





/* ESPACIADOR VISUAL */
/* Empuja la fecha y el botón para que no tapen la bola disco del fondo */
.visual-spacer {
    height: 25vh; /* Ajusta este valor según donde quede la bola en tu imagen jpg */
    width: 100%;
}

/* --- FECHA & BOTONES --- */
.clean-info {
    font-family: var(--font-clean);
    font-size: 1rem; letter-spacing: 0.2em;
    color: #fff; margin-bottom: 2rem;
    border-top: 1px solid rgba(255/* Si estás usando el GIF */
.gif-name-wrapper {
    width: 100%;
    max-width: 500px;
    
    /* CORRECCIÓN DE ESPACIO (Separarlo del título) */
    /* Antes tenía -40px, lo bajamos a -10px o 0px para que no choque */
    margin: -10px auto 20px auto; 
    
    position: relative; 
    z-index: 10;
    display: flex;
    justify-content: center;

    /* EL TRUCO MAESTRO: MÁSCARA DE DESVANECIMIENTO */
    /* Esto hace que los bordes del rectángulo se vuelvan invisibles suavemente */
    -webkit-mask-image: radial-gradient(closest-side, black 70%, transparent 100%);
    mask-image: radial-gradient(closest-side, black 70%, transparent 100%);
}

.name-gif {
    width: 100%; 
    height: auto;
    display: block;
    
    /* Potenciar brillo para que destaque más */
    filter: drop-shadow(0 0 10px var(--rose-neon));
    object-fit: contain;
    
    /* Asegurar que no se corte por padding */
    padding: 10px; 
},255,255,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding: 0.8rem 2rem;
    background: rgba(0,0,0,0.3); /* Legibilidad extra */
    backdrop-filter: blur(2px);
    border-radius: 4px;
}

.cta-button {
    background: rgba(0,0,0,0.4); /* Fondo semitransparente */
    border: 1px solid var(--rose-neon);
    border-radius: 4px;
    padding: 1.2rem 3rem;
    color: #fff;
    font-family: var(--font-clean); font-size: 0.9rem; font-weight: 600;
    letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
    cursor: pointer; transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(183, 110, 121, 0.2);
    backdrop-filter: blur(5px);
}

.cta-button:hover {
    background: rgba(255, 191, 202, 0.15);
    box-shadow: 0 0 30px var(--rose-neon);
    border-color: #fff;
}

/* --- ADMIN & MODALES --- */
#admin-trigger-container { position: fixed; bottom: 20px; right: 20px; z-index: 100; }
#admin-btn { background: none; border: none; cursor: pointer; opacity: 0.5; }
.spin-slow { width: 32px; animation: spin 10s linear infinite; }

.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal.active { opacity: 1; pointer-events: auto; }

.modal-content.glass-effect {
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid var(--gold-metallic);
    padding: 2.5rem; border-radius: 4px;
    text-align: center; width: 90%; max-width: 400px;
    box-shadow: 0 0 50px rgba(183, 110, 121, 0.2);
}

.modal-title { font-family: var(--font-serif); color: var(--gold-metallic); margin-top: 0; }
.modal-desc { font-size: 0.9rem; color: #ccc; margin-bottom: 1.5rem; }

input {
    width: 100%; background: transparent;
    border: none; border-bottom: 1px solid var(--gold-metallic);
    color: #fff; padding: 12px; margin: 10px 0 20px 0;
    font-family: var(--font-clean); outline: none; text-align: center; font-size: 1.2rem;
}
.modal-submit-btn {
    width: 100%; padding: 15px;
    background: var(--gold-metallic); border: none;
    color: #000; font-weight: bold; text-transform: uppercase;
    cursor: pointer; letter-spacing: 2px;
}
.close-btn { position: absolute; top: 15px; right: 20px; font-size: 1.5rem; cursor: pointer; color: #fff; }

.hidden { display: none !important; }
@keyframes spin { 100% { transform: rotate(360deg); } }
