/* =========================================
   VARIABLES & BASE
   ========================================= */
:root {
    --bg-color: #121212;         /* Negro profundo */
    --surface-color: #1e1e1e;   /* Gris oscuro para contenedores */
    --accent-color: #87CEEB;    /* Azul Cielo Pastel */
    --text-primary: #f5f5f5;    /* Crema suave */
    --text-secondary: #a0a0a0;  /* Gris para subtítulos */
    --font-main: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Bloquear scroll mientras el sobre esté activo */
body.no-scroll {
    overflow: hidden;
    height: 100vh;
    position: fixed;
    width: 100%;
}

/* =========================================
   PANTALLA DE SOBRE POSTAL REFINADA
   ========================================= */
#envelope-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #f5f1e6; /* Color papel hueso vintage */
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease;
    
    /* BORDE DE CORREO AÉREO DELICADO */
    padding: 12px; /* Grosor del borde */
    background-image: repeating-linear-gradient(
        45deg,
        #b22222 0%, #b22222 5%,
        #f5f1e6 5%, #f5f1e6 10%,
        #191970 10%, #191970 15%,
        #f5f1e6 15%, #f5f1e6 20%
    );
    background-size: 100px 100px;
}

/* El cuerpo de la postal */
.envelope-content {
    background-color: #f5f1e6;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column; /* Optimizado para móvil por defecto */
    align-items: center;
    justify-content: space-around;
    padding: 40px 20px;
    position: relative;
    /* Sombra interna para dar profundidad de papel */
    box-shadow: inset 0 0 50px rgba(0,0,0,0.05);
}

/* Título "Para: Pao" */
.envelope-to {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-style: italic;
    color: #3e3a35;
    margin: 0;
    /* Decoración de línea sutil abajo */
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 10px;
    text-align: center;
}

/* Contenedor del Sello */
.stamp-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.stamp-wrapper:hover {
    transform: scale(1.05);
}

.main-stamp {
    width: 250px; /* Tamaño ajustado para móvil */
    max-width: 80vw;
    height: auto;
    /* Sombra de objeto real */
    filter: drop-shadow(5px 5px 15px rgba(0,0,0,0.2));
    margin-bottom: 20px;
}

.stamp-text {
    font-family: var(--font-main);
    font-size: 0.75rem;
    color: #8b857a;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.8;
    animation: pulseFade 2.5s infinite;
}

@keyframes pulseFade {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Clase para abrir (JS) */
#envelope-screen.open {
    transform: translateY(-100%);
    opacity: 0;
}

/* AJUSTES PARA DESKTOP (Si se ve en PC) */
@media (min-width: 768px) {
    .envelope-content {
        flex-direction: row;
        max-width: 800px;
        max-height: 500px;
        padding: 30px;
    }
    
    .envelope-to {
        flex: 1;
        border-bottom: none;
        border-right: 1px solid rgba(0,0,0,0.1);
        padding: 0 40px 0 0;
        margin: 0;
    }
    
    .stamp-wrapper {
        flex: 1;
        padding-left: 40px;
    }
    
    .main-stamp { width: 300px; }
}

/* =========================================
   SECCIONES GENERALES
   ========================================= */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* LOADER */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 9999;
    transition: opacity 0.8s ease;
}

/* ANIMACIÓN REVEAL (Para el JS) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   SECCIÓN 1: HERO
   ========================================= */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(to bottom, rgba(18,18,18,0.5), var(--bg-color)), 
                url('img/img_hero.png') center/cover no-repeat;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.arrow {
    width: 1px;
    height: 50px;
    background: var(--accent-color);
    margin: 10px auto 0;
    position: relative;
    overflow: hidden;
}

.arrow::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: white;
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% { transform: translateY(-100%); }
    50% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

/* =========================================
   SECCIÓN 2: CARTA
   ========================================= */
#letter {
    padding: 100px 0;
}

.digital-letter {
    background: var(--surface-color);
    padding: 40px; /* Reducido un poco para móvil */
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    font-family: var(--font-serif);
    font-size: 1.15rem;
    border-left: 3px solid var(--accent-color);
}

.digital-letter p {
    margin-bottom: 25px;
}

.signature {
    margin-top: 50px;
    font-style: italic;
    color: var(--accent-color);
}

/* =========================================
   SECCIÓN 3: FLASHBACKS
   ========================================= */
#flashbacks {
    padding: 50px 0;
}

.section-title {
    font-family: var(--font-serif);
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--accent-color);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.photo-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    filter: grayscale(80%);
    transition: 0.5s ease;
    cursor: pointer; 
    border-radius: 4px;
}

.photo-item:hover {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================
   SECCIÓN 4: CIERRE
   ========================================= */
#closure {
    padding: 100px 0;
    text-align: center;
}

.closure-box {
    border: 1px solid rgba(135, 206, 235, 0.3); 
    padding: 40px;
    display: inline-block;
}

.closure-box h3 {
    font-family: var(--font-serif);
    margin-bottom: 15px;
    color: var(--accent-color);
}

/* FOOTER */
footer {
    padding: 40px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* RESPONSIVE CARTA */
@media (max-width: 600px) {
    .digital-letter {
        padding: 30px;
        font-size: 1.1rem;
    }
}

/* =========================================
   BOTÓN INTERACTIVO "MOLESTAR" Y PULSACIÓN
   ========================================= */
.pulse-container {
    display: inline-block;
    position: relative;
    text-align: center;
}

.minimal-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--text-secondary);
    padding: 12px 24px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    gap: 10px; 
    position: relative;
    z-index: 2; 
}

.minimal-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent-color);
    background-color: #87CEEB1a; 
}

.btn-icon {
    width: 18px;
    height: 18px;
    opacity: 0.7;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.minimal-btn:hover .btn-icon {
    opacity: 1;
    transform: translateX(3px); 
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border: 1px solid var(--accent-color);
    border-radius: 2px;
    opacity: 0;
    z-index: 1;
    animation: pulseAnimation 3s infinite; 
    pointer-events: none; 
}

.pulse-container:hover .pulse-ring {
    animation-play-state: paused;
    opacity: 0;
}

@keyframes pulseAnimation {
    0% { transform: scale(0.95); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: scale(1.15) translateY(5px); opacity: 0; }
}

/* =========================================
   SISTEMA DE MODALES (MOLERSTAR & FLASHCARDS)
   ========================================= */
.modal {
    display: none; 
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    justify-content: center; 
    align-items: center; 
    background-color: rgba(18, 18, 18, 0); 
    opacity: 0; 
    visibility: hidden; 
    transition: background-color 0.4s ease-in, opacity 0.4s ease-in, visibility 0.4s ease-in;
}

.modal.show {
    background-color: rgba(18, 18, 18, 0.9); 
    opacity: 1; 
    visibility: visible;
    display: flex; /* Asegura que el contenido se centre al mostrarse */
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
    box-sizing: border-box;
    opacity: 0; 
    transform: scale(0.85); 
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease-in;
}

.modal.show .modal-content {
    opacity: 1; 
    transform: scale(1); 
}

/* Imagen de la broma (Molestar) */
.modal-content img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border: 1px solid rgba(135, 206, 235, 0.3);
    border-radius: 4px;
}

/* Botón de cerrar general (X) */
.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--text-secondary);
    font-size: 35px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
}

.close-btn:hover {
    color: var(--text-primary);
}

/* =========================================
   DISEÑO ESPECÍFICO: FLASHCARD RECUERDOS
   ========================================= */
.flashcard-content {
    background-color: #1a1a1a;
    width: 90%;
    max-width: 450px;
    margin: auto;
    padding: 25px;
    border-radius: 15px;
    position: relative;
    height: auto; /* Permite crecimiento dinámico */
    max-height: 85vh; /* Evita desbordamiento en móviles */
    overflow-y: auto; /* Scroll interno si el texto es muy largo */
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    border: 1px solid rgba(135, 206, 235, 0.2);
}

.flashcard-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 20px;
}

.flashcard-text {
    color: var(--text-primary);
    font-family: var(--font-serif);
    font-style: italic;
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.7;
    margin: 0;
    padding: 10px 5px 15px;
}

/* =========================================
   MODAL DE BLOQUEO (FECHA) - FIX BORROSO
   ========================================= */
.custom-modal {
    display: none; /* JS lo activará */
    position: fixed;
    z-index: 99999 !important; /* Prioridad máxima sobre el sobre */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    
    /* Fondo oscuro sólido inicial para evitar que el blur se anticipe */
    background-color: rgba(0, 0, 0, 0); 
    
    /* IMPORTANTE: Quitamos el blur de aquí para evitar borrosidad al inicio */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease, background-color 0.5s ease;
}

/* Solo aplicamos el desenfoque y el fondo oscuro cuando tiene la clase .show */
.custom-modal.show {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    background-color: rgba(0, 0, 0, 0.75) !important;
    
    /* El desenfoque ahora es dinámico */
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

/* Tarjeta del Pop-up de Fecha */
.date-card {
    background-color: #fcfbf8 !important; /* Color crema sólido */
    position: relative;
    z-index: 100000 !important;
    padding: 40px;
    border-radius: 20px;
    max-width: 400px;
    width: 85%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 1px solid #dcd7cc;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.custom-modal.show .date-card {
    transform: translateY(0) scale(1) !important;
    opacity: 1 !important; /* <--- ESTA ES LA MAGIA QUE FALTA */
    visibility: visible !important;
}

.modal-icon {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.date-card h2 {
    font-family: var(--font-serif); 
    color: #191970;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.date-card p {
    font-family: var(--font-main); 
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Botón Estilo BIOR */
.modal-btn {
    background-color: #b22222; /* Rojo del sello */
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(178, 34, 34, 0.3);
}

.modal-btn:hover {
    background-color: #8b0000;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(178, 34, 34, 0.4);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* =========================================
   SECCIÓN 1: HERO (FIX DE OVERLAP)
   ========================================= */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(to bottom, rgba(18,18,18,0.5), var(--bg-color)), 
                url('img/img_hero.png') center/cover no-repeat;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    width: 100%;
    height: 100%; /* Ocupa toda la pantalla */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra el título y subtítulo */
    align-items: center;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.1; /* FIX: Junta más las líneas si el texto baja a 2 renglones */
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: 20px; /* Dale un respiro extra debajo del subtítulo */
}

.scroll-indicator {
    position: absolute;
    bottom: 40px; /* Ahora se ancla al fondo real de la pantalla */
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.arrow {
    width: 1px;
    height: 50px;
    background: var(--accent-color);
    margin: 10px auto 0;
    position: relative;
    overflow: hidden;
}

.arrow::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: white;
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% { transform: translateY(-100%); }
    50% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

/* =========================================
   FIX: BOTÓN CERRAR EN LAS FLASHCARDS
   ========================================= */
.flashcard-content .close-btn {
    top: 15px; /* Lo metemos dentro de la tarjeta */
    right: 15px;
    font-size: 22px;
    width: 36px;
    height: 36px;
    
    /* Centrado perfecto del ícono */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Fondo oscuro semi-transparente para que contraste con la foto */
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    
    z-index: 20;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.flashcard-content .close-btn:hover {
    background-color: rgba(178, 34, 34, 0.8); /* Rojo oscuro al hacer hover */
    transform: scale(1.1);
}

/* =========================================
   DISEÑO ESPECÍFICO: FLASHCARD RECUERDOS (FIX SIN SCROLL)
   ========================================= */
.flashcard-content {
    background-color: #1a1a1a;
    width: 90%;
    max-width: 450px;
    margin: auto;
    padding: 20px; /* Reducido un poquito para ganar espacio */
    border-radius: 15px;
    position: relative;
    height: auto; 
    max-height: 85vh; 
    /* El overflow lo dejamos por seguridad en pantallas diminutas, 
       pero con el fix de abajo ya no debería activarse el scroll */
    overflow-y: auto; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    border: 1px solid rgba(135, 206, 235, 0.2);
}

.flashcard-content img {
    width: 100%;
    /* LA MAGIA ESTÁ AQUÍ: Forzamos a la imagen a no pasar de casi la mitad de la pantalla */
    max-height: 45vh; 
    height: auto;
    border-radius: 10px;
    object-fit: cover; /* Evita que la foto se deforme, solo la recorta estéticamente */
    margin-bottom: 15px;
}

.flashcard-text {
    color: var(--text-primary);
    font-family: var(--font-serif);
    font-style: italic;
    text-align: center;
    font-size: 1.05rem; /* Ajuste mínimo para textos largos */
    line-height: 1.5;
    margin: 0;
    padding: 5px 5px 10px;
    width: 100%;
}

/* El botón cerrar flotante dentro de la imagen */
.flashcard-content .close-btn {
    top: 15px; 
    right: 15px;
    font-size: 22px;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 20;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.flashcard-content .close-btn:hover {
    background-color: rgba(178, 34, 34, 0.8);
    transform: scale(1.1);
}

/* ==========================================================================
   NUEVA SECCIÓN: SOBRE DE INVITACIÓN DE CUMPLEAÑOS (RESPONSIVE)
   ========================================================================== */

/* Contenedor principal de la sección */
.seccion-sobre {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background-color: transparent; /* Se adapta al fondo de tu main */
    min-height: auto;
}

.contenedor-sobre {
    width: 100%;
    max-width: 500px; /* Tamaño ideal para móvil y escritorio */
    perspective: 1000px; /* Efecto 3D para el sobre */
}

/* El Sobre Interactivo */
.sobre-postal {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

/* Efecto hover sutil para indicar que es clickeable */
.sobre-postal:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.sobre-contenido-inicial h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin: 15px 0 8px 0;
    font-weight: 600;
}

.sobre-contenido-inicial p {
    font-size: 0.95rem;
    color: #7f8c8d;
    margin: 0;
}

.sobre-icono {
    font-size: 3rem;
    display: inline-block;
    animation: flotar 3s ease-in-out infinite;
}

/* Animación de flotado para el sobre */
@keyframes flotar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Bloque de la Pregunta (Revelado) */
.pregunta-cumple {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    padding: 35px 25px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
    animation: entradaSuave 0.5s ease forwards;
}

.pregunta-icono {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.pregunta-cumple h2 {
    font-size: 1.4rem;
    color: #2c3e50;
    line-height: 1.4;
    margin-bottom: 12px;
}

.pregunta-subtexto {
    font-size: 0.95rem;
    color: #627475;
    line-height: 1.5;
    margin-bottom: 25px;
}

/* Contenedor de Botones (Optimizado para móvil) */
.botones-opcion {
    display: flex;
    flex-direction: column; /* En móvil van uno arriba del otro para mejor clic */
    gap: 12px;
    width: 100%;
}

.btn-opcion {
    padding: 14px 20px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
    outline: none;
    display: block;
}

/* Estilos de botones individuales */
.btn-si {
    background-color: #2c3e50; /* Tono elegante oscuro */
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.2);
}

.btn-si:active {
    transform: scale(0.98);
}

.btn-no {
    background-color: #f8f9fa;
    color: #7f8c8d;
    border: 1px solid #e2e8f0;
}

.btn-no:active {
    background-color: #edf2f7;
}

/* ==========================================================================
   MODALES / POP-UPS DE RESPUESTA
   ========================================================================== */
.modal-respuesta {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Capa oscura de fondo */
    backdrop-filter: blur(4px); /* Difumina el fondo de forma elegante */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.modal-contenido-respuesta {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 24px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: popUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15) forwards;
}

.modal-icono-exito {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.modal-contenido-respuesta p {
    font-size: 0.95rem;
    color: #5a6566;
    line-height: 1.5;
    margin-bottom: 15px;
}

.btn-cerrar-modal {
    margin-top: 10px;
    padding: 10px 24px;
    background-color: #f1f3f5;
    border: none;
    border-radius: 20px;
    color: #495057;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-cerrar-modal:hover {
    background-color: #e9ecef;
}

/* ==========================================================================
   CLASES DE CONTROL (Para JavaScript) & ANIMACIONES
   ========================================================================== */
.id-oculto {
    display: none !important;
}

@keyframes entradaSuave {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes popUp {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   MEDIA QUERIES (Ajustes para pantallas más grandes como Tablet/Laptop)
   ========================================================================== */
@media (min-width: 480px) {
    /* En pantallas horizontales o laptops, los botones se ponen lado a lado */
    .botones-opcion {
        flex-direction: row;
    }
    
    .pregunta-cumple h2 {
        font-size: 1.5rem;
    }
}

/* Parche de compatibilidad para los modales de respuesta */
.modal-respuesta {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal-respuesta.show {
    display: flex !important;
    opacity: 1 !important;
}

.modal-respuesta.id-oculto {
    display: none !important;
}