/* Estilos personalizados - VERSIÓN SALA DE CINE CLÁSICA */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Contenedor principal */
.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Tarjeta principal - ligeramente más clara para contraste */
.card {
    border: none;
    border-radius: 24px;
    background: rgba(30, 30, 46, 0.95);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5) !important;
    width: 100%;
    color: #e0e0e0;
}

/* Contenedor de la barra de progreso */
.progress-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    /*max-width: 300px;*/
    margin-left: auto;
    margin-right: auto;
}

/* Barra de progreso personalizada */
.progress {
    background-color: rgba(255,255,255,0.1);
    border-radius: 20px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(135deg, #e50914 0%, #b2070d 100%);
    transition: width 0.4s ease;
}

/* Texto de la barra de progreso */
.progress-text {
    font-size: 0.9rem;
    color: #a0a0a0;
    font-weight: 500;
}

/* Estilos para la pantalla de inicio */
/*
#pantalla-inicio .card {
    background: rgba(30, 30, 46, 0.95);
}
*/

#btnComenzar {
    font-size: 1.2rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #e50914 0%, #b2070d 100%);
    border: none;
    transition: all 0.3s ease;
    color: white;
    margin: 20px 0;
}

#btnComenzar:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(229, 9, 20, 0.4);
}

/* Espacio reservado para el título */
.titulo-reservado {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 100%;
}

/* Cuando el título está oculto, el espacio sigue existiendo pero es invisible */
.titulo-reservado.d-none {
    display: flex !important;
    visibility: hidden;
    opacity: 0;
}

/* Estilo del título de la película */
.titulo-pelicula {
    font-size: 1.8rem;
    color: #ffffff;
    text-align: center;
    line-height: 1.4;
    word-break: break-word;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(229, 9, 20, 0.3);
}

/* Contenedor de emojis - FONDO CLARO para que resalten */
.emoji-container {
    font-size: 5rem;
    word-break: break-word;
    line-height: 1.3;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: inset 0 4px 15px rgba(0,0,0,0.1), 0 8px 20px rgba(0,0,0,0.2);
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.emoji-container:hover {
    transform: scale(1.01);
}

/* BOTÓN REVELAR - VERSIÓN DESTACADA */
.btn-success {
    background: linear-gradient(135deg, #3a3a55 0%, #2a2a40 100%);
    color: #ffffff;
    border: 2px solid #e50914;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.btn-success:hover:not(:disabled) {
    background: linear-gradient(135deg, #e50914 0%, #b2070d 100%);
    border-color: #e50914;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(229, 9, 20, 0.4) !important;
}

/* Botón primario (Siguiente) - Estilo rojo cinematográfico */
.btn-primary {
    background: linear-gradient(135deg, #e50914 0%, #b2070d 100%);
    color: white;
    border: none;
    font-weight: 700;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #f50a16 0%, #c4080f 100%);
    box-shadow: 0 10px 20px rgba(229, 9, 20, 0.3) !important;
}

/* BOTÓN VOLVER A JUGAR - VERSIÓN MEJORADA (MÁS DESTACADO) */
.btn-outline-primary {
    border: 3px solid #e50914;
    color: #ffffff;
    /*background: rgba(30, 30, 46, 0.8);*/
    background-color: #e50914;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 14px 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.3);
}

.btn-outline-primary:hover:not(:disabled) {
    background: #e50914;
    color: white;
    border-color: #e50914;
    box-shadow: 0 0 25px rgba(229, 9, 20, 0.6) !important;
    transform: translateY(-2px);
}

/* Botones principales - estilos base */
.btn {
    border-radius: 40px;
    padding: 12px 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4) !important;
}

.btn:active:not(:disabled) {
    transform: translateY(-1px);
}

/* Estado de botones deshabilitados */
.btn:disabled {
    opacity: 0.4;
    transform: none;
    box-shadow: none !important;
    pointer-events: none;
    filter: grayscale(50%);
}

/* Animaciones básicas */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.btn:active:not(:disabled) {
    animation: pulse 0.3s ease;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .container {
        padding: 12px;
    }
    
    .card {
        border-radius: 20px;
    }
    
    .emoji-container {
        font-size: 3.5rem;
        padding: 1.2rem;
        min-height: 140px;
    }
    
    .btn {
        padding: 16px 16px;
        font-size: 0.9rem;
    }
    
    .btn-outline-primary {
        font-size: 1rem;
        padding: 14px 16px;
        border-width: 2px;
    }
    
    .d-flex.gap-2 {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .titulo-reservado {
        min-height: 60px;
    }
    
    .titulo-pelicula {
        font-size: 1.5rem;
    }
    
    #pantalla-inicio .display-1 {
        font-size: 3.5rem;
    }
    
    #pantalla-inicio .display-5 {
        font-size: 1.8rem;
    }
    
    #btnComenzar {
        font-size: 1.1rem;
        padding: 10px 25px !important;
    }
    
    .progress-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 8px;
    }
    
    .emoji-container {
        font-size: 3rem;
        padding: 1rem;
        min-height: 120px;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    .titulo-reservado {
        min-height: 50px;
    }
    
    .titulo-pelicula {
        font-size: 1.1rem;
    }
    
    #pantalla-inicio .display-1 {
        font-size: 3rem;
    }
    
    #pantalla-inicio .display-5 {
        font-size: 1.5rem;
    }
    
    #btnComenzar {
        font-size: 1rem;
        padding: 8px 20px !important;
    }
}

/* Efecto de brillo para el botón revelar */
#btnRevelar {
    position: relative;
    overflow: hidden;
}

#btnRevelar::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(229, 9, 20, 0.1);
    transform: rotate(45deg);
    transition: all 0.3s ease;
    opacity: 0;
}

#btnRevelar:hover:not(:disabled)::after {
    opacity: 1;
    top: -30%;
    left: -30%;
}

/* Mejoras de accesibilidad */
.btn:focus-visible {
    outline: 3px solid #e50914;
    outline-offset: 2px;
}

/* Transiciones suaves */
#titulo-container,
#emojis,
#pantalla-inicio,
#pantalla-juego {
    transition: all 0.3s ease;
}