/* ==========================================================================
   ESTILOS ESPECÍFICOS DEL JUEGO DE PREGUNTAS (css/estilos-propios.css)
   ========================================================================== */

/* Marcador de Equipos Superior */
.marcador-equipos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    width: 100%;
    max-width: 800px;
    margin-bottom: 25px;
}

.tarjeta-equipo {
    background: var(--color-tarjeta-blanca);
    padding: 15px 10px;
    border-radius: 18px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.05);
    border: 4px solid #ffffff;
    text-align: center;
    transition: all 0.2s ease;
}

/* Resaltar visualmente el equipo que tiene el turno activo */
.tarjeta-equipo.turno-activo {
    border-color: var(--color-primario-boton);
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(255, 71, 87, 0.2);
}

.equipo-nombre {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-texto-oscuro);
}

.equipo-puntos {
    font-family: var(--fuente-titulos);
    font-size: 1.8rem;
    color: var(--color-primario-boton);
    margin-top: 5px;
}

/* Caja contenedora extendida para el juego */
.contenedor-juego {
    max-width: 700px;
}

/* Indicador de Categoría */
.badge-categoria {
    display: inline-block;
    background: #f1f2f6;
    color: var(--color-texto-mutado);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enunciado de la Pregunta */
.pregunta-titulo {
    font-family: var(--fuente-general);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-texto-oscuro);
    margin-bottom: 30px;
}

/* Grilla de opciones de respuestas */
.opciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

/* Botones de respuesta individuales */
.btn-opcion {
    display: block;
    background: #f8f9fa;
    border: 3px solid #e4e7eb;
    border-radius: 16px;
    padding: 18px 20px;
    font-family: var(--fuente-general);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-texto-oscuro);
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.btn-opcion:hover:not(.descartado) {
    background: #ffffff;
    border-color: var(--color-primario-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.05);
}

/* Opción fallada previamente (deshabilitada) */
.btn-opcion.descartado {
    background: #f1f2f6;
    border-color: #dcdde1;
    color: var(--color-texto-mutado);
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: line-through;
    pointer-events: none;
}

/* Alertas de Feedback */
.feedback-caja {
    padding: 18px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 25px;
}

.feedback-caja.correcto {
    background: #2ed573;
    color: white;
    border: 3px solid #26af5f;
}

.feedback-caja.incorrecto {
    background: #ff4757;
    color: white;
    border: 3px solid #e84118;
}

/* Estilos de Clasificación / Ranking */
.ranking-lista {
    margin: 25px 0;
    padding: 0;
    list-style: none;
}

.ranking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border: 3px solid #f1f2f6;
    padding: 16px 20px;
    border-radius: 16px;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 700;
}

.ranking-item.ganador {
    background: #fff275;
    border-color: #ffb606;
    transform: scale(1.02);
}

.ranking-posicion {
    font-family: var(--fuente-titulos);
    color: var(--color-primario-boton);
    margin-right: 10px;
}



        /* Estilos para el selector integrado */
        .selector-rondas-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: #f8f9fa;
            border: 3px solid #f1f2f6;
            border-radius: 14px;
            padding: 4px;
            margin-top: 5px;
            box-sizing: border-box;
            height: 54px; /* Misma altura aproximada que los select normales */
        }

        .btn-control-ronda {
            width: 46px;
            height: 100%;
            border: none;
            border-radius: 10px;
            background: transparent;
            color: var(--color-texto-oscuro);
            font-family: var(--fuente-general);
            font-size: 1.8rem;
            font-weight: 700;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s ease;
            user-select: none;
            line-height: 1;
        }

        .btn-control-ronda:hover {
            background: #e4e7eb;
        }

        .btn-control-ronda:active {
            background: #dcdde1;
        }

        .input-rondas-display {
            font-family: var(--fuente-general);
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--color-texto-oscuro);
            text-align: center;
            width: 60px;
            border: none;
            background: transparent;
            outline: none;
            pointer-events: none; /* Evita escritura manual */
        }
