/* --- Configuración Base --- */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 10px;
    color: #333;
    /* Fondo */
    background-image: url('imagenes/fondo_cielo.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Contenedor Principal */
.container {
    width: 100%;
    max-width: 600px; /* Ancho máximo para PC */
    background-color: rgba(255, 255, 255, 0.92);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
}

/* Tipografía */
h1 {
    font-family: 'Dancing Script', cursive;
    color: #8e44ad;
    font-size: 2.5rem; /* Más chico */
    margin: 0 0 10px 0;
}

h2.grand-question {
    font-family: 'Dancing Script', cursive;
    color: #8e44ad;
    font-size: 2rem;
    margin: 20px 0;
    animation: pulse 1.5s infinite alternate;
}

p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #444;
}

/* Galería de Imágenes */
.image-gallery {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.gallery-item {
    width: 80px; /* Imágenes más pequeñas para móvil */
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

/* Botones */
.buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    position: relative; /* Necesario para el contexto del botón No */
    min-height: 60px; /* Espacio reservado para que no colapse */
}

button {
    border: none;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

#yesButton {
    background-color: #8e44ad;
    color: white;
    padding: 12px 25px;
    font-size: 1rem;
    z-index: 10; /* Que el SI siempre esté por encima */
}

#noButton {
    background-color: #e74c3c;
    color: white;
    padding: 10px 15px; /* Un poco más pequeño que el Sí */
    font-size: 0.85rem;
    position: relative; /* Para poder moverlo con JS */
}

/* Mensaje de Respuesta */
#responseMessage {
    margin-top: 20px;
    font-size: 1.1rem;
    font-weight: bold;
}

.hidden {
    display: none !important;
}

/* --- Animaciones --- */
@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-message {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Salto vertical para el click en móvil */
@keyframes jump {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

.jump-animation {
    animation: jump 0.4s ease-in-out;
}

/* --- MEDIA QUERY: AJUSTES ESPECÍFICOS MÓVIL --- */
@media (max-width: 480px) {
    h1 { font-size: 2.2rem; }
    h2.grand-question { font-size: 1.8rem; }
    p { font-size: 0.9rem; }
    
    .gallery-item {
        width: 70px;
        height: 70px;
    }

    .buttons {
        /* En móvil, los ponemos en columna para que sea más fácil tocar el SÍ */
        flex-direction: column; 
        align-items: center;
        gap: 10px;
    }

    #yesButton {
        width: 100%;
        max-width: 200px;
    }
    
    #noButton {
        width: auto;
        margin-top: 5px;
    }
}