/**
 * =========================================
 * ESTILOS PARA REPORTES TÉCNICOS DETALLADOS
 * =========================================
 * Diseño profesional y científico
 */

/* Contenedor principal de capas */
.technical-layers-container {
    background: #ffffff;
    padding: 0;
    margin: 20px 0;
}

/* Cada capa técnica */
.technical-layer {
    background: #f8f9fa;
    border-left: 4px solid #0066cc;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.technical-layer h4 {
    color: #1a1a1a;
    font-size: 1.4em;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e0e0;
}

/* Secciones dentro de cada capa */
.tech-section {
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
}

.tech-section h5 {
    color: #0066cc;
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tech-section p {
    margin: 8px 0;
    color: #444;
    line-height: 1.6;
}

.tech-section ul {
    margin: 10px 0;
    padding-left: 20px;
}

.tech-section ul li {
    margin: 8px 0;
    color: #333;
    line-height: 1.6;
}

.tech-section ul li strong {
    color: #0066cc;
    font-weight: 600;
}

/* Bloques de código */
.code-block {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 18px 22px;
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.7;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: 1px solid #333;
}

.code-block::before {
    content: '💻 Código de ejecución';
    display: block;
    color: #888;
    font-size: 0.85em;
    margin-bottom: 10px;
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
}

/* Resumen final de cada capa */
.tech-summary {
    background: linear-gradient(135deg, #e3f2fd 0%, #f1f8ff 100%);
    border-left: 4px solid #2196F3;
    padding: 15px 18px;
    margin-top: 20px;
    border-radius: 4px;
    font-size: 1.05em;
}

.tech-summary strong {
    color: #1565C0;
    font-weight: 700;
}

/* Estados y badges */
.badge-success {
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.85em;
    font-weight: 600;
}

.badge-warning {
    background: #ffc107;
    color: #000;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.85em;
    font-weight: 600;
}

.badge-danger {
    background: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.85em;
    font-weight: 600;
}

/* Símbolos de validación */
.tech-section li:has(strong)::marker {
    color: #0066cc;
}

/* Animación sutil al cargar */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.technical-layer {
    animation: slideIn 0.4s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .technical-layer {
        padding: 18px;
        margin-bottom: 20px;
    }

    .technical-layer h4 {
        font-size: 1.2em;
    }

    .code-block {
        font-size: 0.8em;
        padding: 12px 15px;
    }

    .tech-section {
        padding: 12px;
    }
}

/* Impresión */
@media print {
    .technical-layer {
        page-break-inside: avoid;
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .code-block {
        background: #f5f5f5;
        color: #000;
        border: 1px solid #ccc;
    }

    .tech-summary {
        background: #f0f0f0;
        border-left-color: #666;
    }
}

/* Dictamen final */
.final-verdict {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    border-radius: 10px;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
}

.final-verdict h3 {
    color: #155724;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.final-verdict .confidence-score {
    font-size: 3em;
    font-weight: 900;
    color: #28a745;
    margin: 20px 0;
}

.final-verdict .explanation {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    margin: 20px 0;
    line-height: 1.8;
}
