/* ============================================================
   ESTUDIO DE INTERFERENCIA - Estilos específicos
   ============================================================ */

/* Reset de estilos para el formulario dentro del sitio */
#interferenceDetector {
    background: #0f172a; /* Slate 900 / mismo tono que el panel lateral */
    border: 1px solid #1e293b;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
    margin: 20px auto;
    font-family: inherit; /* Hereda la fuente principal del simulador */
    max-width: 820px;
    width: 92%;
    color: #f8fafc;
}

#interferenceDetector h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f8fafc;
}

#interferenceDetector p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Grupo de formulario */
#interferenceDetector .form-group {
    margin-bottom: 16px;
}

#interferenceDetector label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 6px;
    color: #cbd5e1;
}

#interferenceDetector select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #334155;
    border-radius: 10px;
    background: #1e293b;
    font-family: inherit;
    font-size: 0.9rem;
    color: #f8fafc;
    transition: border-color 0.15s, box-shadow 0.15s;
}

#interferenceDetector select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #1e293b;
}

.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fafbfc;
    font-family: "DM Sans", sans-serif;
    font-size: 0.95rem;
    color: #0b1a33;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
    appearance: auto; /* Asegura que se vea el desplegable nativo */
}

.form-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 40px;
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.4);
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -8px rgba(16, 185, 129, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.btn-outline:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

/* Resultados del diagnóstico */
#diagnosticoResult {
    margin-top: 20px;
    padding: 16px 20px;
    background: #1e293b;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
    color: #f8fafc;
}

#diagNivel {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #f8fafc !important;
}

#diagMensaje {
    margin: 0 0 12px 0;
    color: #475569;
}

#diagRecomendaciones ul,
#diagAcciones ul {
    margin: 8px 0 0 20px;
    padding-left: 0;
    list-style-type: disc;
}

#diagRecomendaciones li,
#diagAcciones li {
    margin-bottom: 4px;
    font-size: 0.95rem;
}

/* Alerta de acciones urgentes */
#diagAcciones {
    background: rgba(239, 68, 68, 0.15) !important; /* Rojo translúcido */
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-left: 4px solid #ef4444;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 12px;
    color: #fca5a5 !important;
}

#diagCanales {
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 500;
}

/* Botón para abrir el detector (estilo outline) */
#abrirDetectorBtn {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    padding: 12px 24px;
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

#abrirDetectorBtn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

/* Responsive */
/* En pantallas muy grandes, limitamos aún más para que no se estire demasiado */
@media (min-width: 1200px) {
    #interferenceDetector {
        max-width: 900px;
    }
}

@media (max-width: 640px) {
    #interferenceDetector {
        padding: 20px;
        width: 96%;
        margin: 10px auto;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
    #abrirDetectorBtn {
        width: 100%;
        justify-content: center;
    }
}

/* En pantallas medianas/grandes, dos columnas para las preguntas */
/*@media (min-width: 768px) {
    #interferenceForm {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px 24px;
    }

    #interferenceForm .btn-primary {
        grid-column: span 2;
    }
}*/

/* ============================================================
   CONTRASTE PARA RESULTADOS DEL DIAGNÓSTICO
   ============================================================ */

/* Contenedor principal de resultados */
#diagnosticoResult {
    background: #f8fafc;
    border-left: 4px solid #2563eb;
    color: #0b1a33; /* Texto oscuro por defecto */
}

/* Título del nivel */
#diagNivel {
    color: #0b1a33 !important; /* Forzamos oscuro */
}

/* Mensaje descriptivo */
#diagMensaje {
    color: #334155 !important;
}

/* Recomendaciones - lista */
#diagRecomendaciones {
    color: #0b1a33 !important;
}

#diagRecomendaciones ul {
    color: #0b1a33 !important;
    list-style-type: disc;
    padding-left: 20px;
}

#diagRecomendaciones li {
    color: #0b1a33 !important;
    margin-bottom: 6px;
}

/* Acciones urgentes - fondo y texto con alto contraste */
#diagAcciones {
    background: #fef2f2 !important; /* Rojo muy claro */
    border-left: 4px solid #dc2626;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    color: #7f1d1d !important; /* Rojo oscuro para texto */
}

#diagAcciones strong {
    color: #f87171 !important;
    display: block;
    margin-bottom: 4px;
}

#diagAcciones ul {
    color: #7f1d1d !important;
    list-style-type: disc;
    padding-left: 20px;
}

#diagAcciones li {
    color: #7f1d1d !important;
    margin-bottom: 4px;
}

#diagAcciones ul, 
#diagAcciones li {
    color: #fca5a5 !important;
}

/* Canales sugeridos */
#diagCanales {
    color: #1e293b !important;
    font-weight: 500;
}

/* Botón de guardar */
#guardarDiagnosticoBtn {
    background: #10b981 !important;
    color: white !important;
}

#guardarDiagnosticoBtn:hover {
    background: #059669 !important;
}

#diagMensaje, 
#diagRecomendaciones, 
#diagRecomendaciones ul, 
#diagRecomendaciones li {
    color: #cbd5e1 !important;
}

#diagCanales {
    color: #38bdf8 !important; /* Cyan para resaltar canales en oscuro */
    font-weight: 600;
}