/* Corrección de estilos para el modal de configuración */

.config-modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.config-modal.show {
    display: flex !important;
    opacity: 1;
}

.config-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.3);
    animation: modalAppear 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes modalAppear {
    0% {
        transform: scale(0.7) translateY(-50px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.config-section {
    margin-bottom: 25px;
}

.config-label {
    display: block;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
}

.config-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.config-option {
    flex: 1;
    min-width: 100px;
    position: relative;
}

.config-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.config-option span {
    display: block;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: #fff;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 600;
}

.config-option input[type="radio"]:checked + span {
    background: rgba(67, 233, 123, 0.3);
    border-color: #43e97b;
    box-shadow: 0 0 20px rgba(67, 233, 123, 0.5);
    transform: scale(1.05);
}

.config-option span:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.config-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
}

.config-help {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-top: 8px;
    text-align: center;
}

.config-select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.config-select:hover {
    border-color: #43e97b;
    background: rgba(255, 255, 255, 0.15);
}

.config-select:focus {
    outline: none;
    border-color: #43e97b;
    box-shadow: 0 0 0 3px rgba(67, 233, 123, 0.2);
}

.config-select option {
    background: #1e3c72;
    color: #fff;
}

/* Asegurar que el modal esté por encima de todo */
#configModal {
    z-index: 99999 !important;
}

/* Asegurar que no haya scroll cuando el modal está abierto */
body.modal-open {
    overflow: hidden;
}