/* Variables de Color */
:root {
    --azul-primario: #004a99;
    --texto-oscuro: #333;
    --texto-suave: #555;
    --blanco: #ffffff;
    --borde: #f0f0f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--blanco);
    color: var(--texto-oscuro);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background-color: var(--blanco);
    padding: 15px 0;
    border-bottom: 2px solid var(--borde);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: center;
}

.logo {
    height: 80px;
    width: auto;
}

/* Hero Section */
.hero {
    padding: 60px 0;
    text-align: center;
}

.hero-image-container {
    max-width: 850px;
    margin: 0 auto 40px;
}

.hero-img {
    width: 100%;
    height: auto;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--azul-primario);
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--texto-suave);
    max-width: 750px;
    margin: 0 auto 35px;
}

/* Bot贸n */
.btn-start {
    display: inline-block;
    background-color: var(--azul-primario);
    color: var(--blanco);
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0,74,153,0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-start:hover {
    transform: translateY(-3px);
    background-color: #003670;
}

/* Responsive M贸vil */
@media (max-width: 768px) {
    .logo {
        height: 60px;
    }
    .hero {
        padding: 40px 0;
    }
}






/* Sección de Cards */
.cards-section {
    padding: 80px 0;
    background-color: var(--blanco);
}

.section-title {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    color: var(--azul-primario);
    font-size: 2.2rem;
    margin-bottom: 50px;
}

/* El Grid Mágico */
.cards-grid {
    display: grid;
    /* 3 columnas en PC, 2 en Tablet, 1 en Móvil */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--blanco);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--borde);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card img {
    width: 234px; /* Tu medida exacta */
    height: 224px; /* Tu medida exacta */
    margin-top: 20px;
    object-fit: cover;
    border-radius: 10px;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    color: var(--azul-primario);
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.card-content p {
    color: var(--texto-suave);
    font-size: 0.95rem;
    margin-bottom: 20px;
    min-height: 60px; /* Para que todas las cards midan lo mismo */
}

.btn-more {
    display: inline-block;
    color: var(--azul-primario);
    text-decoration: none;
    font-weight: bold;
    border: 2px solid var(--azul-primario);
    padding: 8px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-more:hover {
    background-color: var(--azul-primario);
    color: var(--blanco);
}

/* Ajuste para móviles */
@media (max-width: 600px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}


/* Botón Empezar a Jugar------------------------------------------ */
.btn-outline-back {
    display: inline-block;
    background-color: #3b82f6; /* Azul brillante para destacar en el fondo oscuro */
    color: var(--blanco);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    border: 2px solid #3b82f6;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-outline-back:hover {
    background-color: transparent;
    color: #3b82f6;
    transform: scale(1.05);
}

/* Mejora al Botón Confirmar Respuesta */
.btn-confirm {
    width: 100%;
    padding: 18px;
    background: #10b981; /* Verde esmeralda */
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.btn-confirm:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-confirm:active:not(:disabled) {
    transform: translateY(0);
}

/* Estilo para el badge de Pregunta */
.badge {
    display: inline-block;
    background: #1e293b;
    border: 1px solid #334155;
    color: #3b82f6;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: bold;
}

/* Botón Empezar a Jugar------------------------------------------ */





#modal-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    min-height: 80px; /* Para que no salte el texto al cargar el icono */
}


.opt-btn {
    background: #1e293b;
    border: 2px solid #334155;
    color: #cbd5e1;
    padding: 18px;
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.opt-btn:hover { border-color: #3b82f6; background: #1e293b; }

.opt-btn.seleccionado {
    background: #1e3a8a;
    border-color: #3b82f6;
    color: #fff;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.btn-confirm {
    width: 100%;
    padding: 15px;
    background: #059669;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.btn-confirm:disabled { background: #334155; cursor: not-allowed; opacity: 0.5; }


/* Fondo oscuro translúcido */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

/* Caja del mensaje */
.modal-content {
    background: #1e293b;
    padding: 40px;
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    color: white;
    border: 1px solid #334155;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

/* Animación de entrada */
.modal-overlay[style*="display: flex"] .modal-content {
    transform: scale(1);
}





.modal-close-x:hover {
    color: #ff4444 !important;
    transform: scale(1.1);
}

/* Asegurar que el modal content sea relativo para posicionar la X */
.modal-content {
    position: relative;
}







.site-footer {
    background-color: var(--blanco);
    padding: 25px 20px; /* Reducido drásticamente */
    margin-top: 30px;
    border-top: 1px solid var(--borde);
    text-align: center;
}

.footer-line {
    width: 30px;
    height: 2px;
    background: var(--azul-primario);
    margin: 0 auto 15px;
    border-radius: 2px;
}

.footer-mission {
    color: var(--texto-oscuro);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem; /* Letra más pequeña */
    margin-bottom: 5px;
}

.footer-bottom {
    color: var(--texto-suave);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}
