/* RESETEO BÁSICO */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #121212; 
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
}

/* --- PANTALLA DE INICIO --- */
.pantalla-inicio {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #121212;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.img-inicio {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%; 
    border: 3px solid #FFFFFF; 
    margin-bottom: 25px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.titulo-boda {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #FFFFFF;
    margin-bottom: 30px;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-align: center;
}

.pulsa-aqui {
    font-size: 1rem;
    color: #ffffff;
    cursor: pointer;
    letter-spacing: 3px;
    padding: 15px 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    animation: pulsar 2s infinite;
}

@keyframes pulsar {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; border-color: #FFFFFF; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* --- CONTENEDOR PRINCIPAL --- */
.main-container {
    width: 100%;
    max-width: 500px;
    background-color: #FFFFFF; /* Fondo blanco solicitado */
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    min-height: 100vh;
}

.seccion-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* --- BLOQUES Y SECCIONES --- */
.bloque-interactivo, .seccion-extra, .boton-container {
    width: 100%;
    padding: 40px 20px;
    background-color: #FFFFFF; /* Fondo blanco solicitado */
    text-align: center;
}

.titulo-contador, .titulo-seccion {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #4a2700; /* Texto color marrón solicitado */
    margin-bottom: 25px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
}

#countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.tiempo-unidad {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 75px;
}

.tiempo-unidad span {
    font-size: 2.5rem;
    font-weight: 300;
    color: #4a2700; /* Contador color marrón solicitado */
    line-height: 1;
    margin-bottom: 8px;
}

.tiempo-unidad label {
    font-size: 0.7rem;
    color: #4a2700; /* Color marrón para visibilidad sobre blanco */
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

#mensaje-final {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #4a2700;
    margin-top: 10px;
}

/* --- BOTONES COLOR #4a2700 --- */
.rsvp-btn {
    width: 85%;
    padding: 20px;
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 2px;
    font-weight: 600;
    color: #FFFFFF;
    background-color: #4a2700; /* Color marrón solicitado */
    border: 1px solid #4a2700;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.rsvp-btn:hover {
    background-color: #331b00;
    color: #FFFFFF;
}

.rsvp-btn:active {
    transform: translateY(2px);
}

/* --- GALERÍA --- */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.foto-galeria {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.foto-galeria:hover {
    transform: scale(1.03);
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 10000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100vh; 
    background-color: rgba(0, 0, 0, 0.95); 
    justify-content: center;
    align-items: center;
}

.modal-contenido {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
}

.cerrar-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* --- MODAL DEL CUESTIONARIO --- */
.modal-cuestionario {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.cuestionario-contenido {
    background-color: #FFFFFF; /* Fondo blanco solicitado */
    border: 1px solid #4a2700;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    padding: 40px 30px;
    position: relative;
    text-align: center;
    color: #4a2700; /* Texto color marrón solicitado */
    box-shadow: 0 0 20px rgba(74, 39, 0, 0.2);
}

.cerrar-cuestionario {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #4a2700;
}

.titulo-cuestionario {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.pregunta {
    margin-bottom: 25px;
    text-align: left;
}

.pregunta label {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.pregunta input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #4a2700;
    background-color: transparent;
    color: #4a2700;
    font-family: 'Montserrat', sans-serif;
    outline: none;
}

.pregunta input::placeholder {
    color: #A0A0A0;
}

.btn-enviar-cuestionario {
    width: 100%;
    padding: 15px;
    background-color: #4a2700; /* Botón color marrón solicitado */
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.2s;
    margin-top: 10px;
    font-family: 'Montserrat', sans-serif;
}

.btn-enviar-cuestionario:active {
    transform: scale(0.95);
}
