/* Variables de Diseño - ¡Súper fáciles de actualizar! */
:root {
    --primary-color: #A98754; /* Color dorado/elegante */
    --secondary-color: #2C3E50; /* Azul oscuro/grisáceo para textos fuertes */
    --bg-color: #FDFCF0; /* Fondo crema muy suave */
    --text-color: #4A4A4A;
    --font-titles: 'Cormorant Garamond', serif;
    --font-text: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-text);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    text-align: center;
}

/* Pantalla de Bienvenida - CSS CORREGIDO */
body.locked {
    overflow: hidden; /* Evita que hagan scroll antes de abrir */
}

.welcome-screen {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 99999; /* Z-index altísimo para asegurar que cubra todo */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease, visibility 1s ease;
}

.welcome-content {
    text-align: center;
    padding: 20px;
    z-index: 100000;
}

.welcome-screen h2 {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-family: var(--font-titles);
}

.welcome-screen p {
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.welcome-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Asegura que los clics pasen a través cuando está oculta */
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

/* Tipografía */
h1, h2, h3, .title, .subtitle {
    font-family: var(--font-titles);
    color: var(--secondary-color);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

/* Música Flotante */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.floating-btn:hover {
    transform: scale(1.1);
}
.floating-btn.playing {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(169, 135, 84, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(169, 135, 84, 0); }
    100% { box-shadow: 0 0 0 0 rgba(169, 135, 84, 0); }
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: url('assets/foto-principal.jpg'); /* Reemplazar con tu foto */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero .title {
    font-size: 5rem;
    color: white;
    margin: 10px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero .date, .hero .subtitle {
    font-size: 1.5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Versículo y Padres */
.verse {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 40px;
    color: var(--primary-color);
}
.parents-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin: 30px 0;
}
.honor {
    margin-top: 40px;
    font-size: 2rem;
}

/* Contador */
.countdown-section {
    background-color: #f7f5eb;
}
.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.time-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    min-width: 100px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.time-box span {
    font-size: 2.5rem;
    font-family: var(--font-titles);
    color: var(--primary-color);
    font-weight: bold;
}
.time-box p {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Eventos */
.events-grid, .dress-grid, .details-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.event-card, .detail-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.event-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.time {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 15px 0;
}
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    margin-top: 20px;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font-family: var(--font-text);
    font-size: 1rem;
}
.btn:hover {
    background-color: #8c6e42;
}
.btn-whatsapp {
    background-color: #25D366;
    font-size: 1.2rem;
    margin-top: 30px;
}
.btn-whatsapp:hover {
    background-color: #128C7E;
}

/* Vestimenta y Detalles */
.dress-code {
    background-color: #2C3E50;
    color: white;
}
.dress-code h2, .dress-code .event-icon {
    color: var(--primary-color);
}
.note {
    margin-top: 30px;
    font-style: italic;
    opacity: 0.8;
}

footer {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0;
    font-family: var(--font-titles);
    font-size: 2rem;
}

/* Móvil */
@media (max-width: 768px) {
    .hero .title { font-size: 3.5rem; }
    h2 { font-size: 2rem; }
    .events-grid, .dress-grid, .details-grid { flex-direction: column; align-items: center; }
}
