/* amatacaballo.css - Estilos exclusivos para el minijuego */

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
}

.matacaballo-wrapper {
    max-width: 600px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

/* Control de pantallas gestionado por JS */
.oculta {
    display: none !important;
}

.activa {
    display: block;
}

/* Pantalla de Inicio */
h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.instrucciones-caja {
    background: #fdfbf7;
    border: 1px solid #e1d8c1;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: left;
    color: #4a4a4a;
}

.instrucciones-caja ul {
    padding-left: 20px;
}

.instrucciones-caja li {
    margin-bottom: 10px;
}

.mensaje-error {
    color: #d32f2f;
    background: #ffebee;
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
    font-weight: bold;
}

/* Botones */
.btn-principal, .btn-secundario {
    font-size: 1.2rem;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: background 0.3s;
}

.btn-principal {
    background-color: #e67e22;
    color: white;
}

.btn-principal:hover {
    background-color: #d35400;
}

.btn-principal:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.btn-secundario {
    background-color: #34495e;
    color: white;
    display: inline-block;
    text-decoration: none;
    margin-top: 20px;
    box-sizing: border-box;
}

.btn-secundario:hover {
    background-color: #2c3e50;
}

/* Pantalla de Juego */
.hud-juego {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.contador-preguntas {
    font-size: 1.2rem;
    color: #7f8c8d;
    font-weight: bold;
}

.cronometro-gigante {
    font-size: 3.5rem;
    font-family: monospace;
    font-weight: bold;
    color: #c0392b;
    letter-spacing: -2px;
}

.caja-pregunta h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 25px;
    line-height: 1.4;
}

.opciones-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.opciones-grid button {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.opciones-grid button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.opciones-grid button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Pantallas de Resultados / Timeout */
.resumen-estadisticas {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.dato {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.dato.penalizacion {
    color: #e74c3c;
}

.dato.tiempo-total {
    font-size: 1.5rem;
    color: #27ae60;
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.aviso-ranking {
    background: #e8f8f5;
    color: #16a085;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 0.95rem;
}

.aviso-error {
    background: #ffebee;
    color: #c0392b;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ffcdd2;
    margin: 20px 0;
    font-size: 0.95rem;
}