/* evaluacion.css - Estilos Mobile-First y Modo Oscuro COSCABAL */
:root {
    --primary: #4f46e5;
    --primary-light: #818cf8;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --glass-blur: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    padding-bottom: 40px;
    -webkit-font-smoothing: antialiased;
}

.app-container {
    max-width: 650px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    margin: 0 -15px 25px -15px;
    padding-left: 15px;
    padding-right: 15px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    transition: all 0.2s;
}
.back-btn:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.app-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-header h1 i {
    color: var(--primary-light);
}

.subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Paneles Glassmorphism */
.glass-panel {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.glass-panel h2 {
    font-size: 1.15rem;
    margin-bottom: 18px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.glass-panel h2 i {
    color: var(--primary-light);
}

.section-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: -8px 0 18px 0;
}

/* Formularios */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media(min-width: 480px) {
    .form-grid { grid-template-columns: 1fr 1fr; }
    .full-width { grid-column: span 2; }
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

input[type="text"], 
input[type="date"], 
select {
    width: 100%;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border);
    color: white;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.25s;
}

input:focus, select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.25);
}

/* Control de Nota Inicial */
.score-display-card {
    background: rgba(0,0,0,0.25);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    border: 1px dashed rgba(255,255,255,0.15);
}

.score-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.score-input-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.ctrl-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 1.4rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
    transition: transform 0.1s, background 0.2s;
}
.ctrl-btn:active { transform: scale(0.92); }
.ctrl-btn.minus { background: #334155; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }

input[type="number"] {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    color: white;
    font-size: 2.2rem;
    font-weight: 700;
    width: 120px;
    text-align: center;
    border-radius: 10px;
    -moz-appearance: textfield;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Resultados */
.result-box {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(79, 70, 229, 0.05));
    border: 1px solid rgba(79, 70, 229, 0.35);
}

.result-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-value {
    font-size: 1.85rem;
    font-weight: 700;
    color: white;
}

/* Lista de Ítems Técnicos */
.tech-item {
    display: flex;
    flex-direction: column;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.tech-item:last-child { border-bottom: none; }

.tech-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.tech-title {
    font-size: 0.95rem;
    font-weight: 500;
}

.tech-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(0,0,0,0.25);
    padding: 8px;
    border-radius: 10px;
}

.tech-controls button {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: #334155;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
}
.tech-controls button:active { background: #475569; }
.tech-controls input {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    width: 70px;
    text-align: center;
}

/* Panel de Auditoría */
.audit-panel {
    transition: all 0.3s ease;
}
.audit-panel.coherente {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.05);
}
.audit-panel.incoherente {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.05);
}

.audit-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.audit-stat {
    display: flex;
    flex-direction: column;
}
.audit-stat span { font-size: 0.85rem; color: var(--text-muted); }
.audit-stat strong { font-size: 1.4rem; }

.audit-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}
.coherente .audit-status { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.incoherente .audit-status { background: rgba(239, 68, 68, 0.2); color: var(--danger); }

.audit-msg {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Botón de Envío */
.submit-btn {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #3730a3);
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(79, 70, 229, 0.45);
}
.submit-btn:active { transform: translateY(0); }

/* Pantalla de carga y Modales */
.loading-overlay {
    position: fixed;
    top:0; left:0; right:0; bottom:0;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.spinner {
    width: 45px; height: 45px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

.modal-overlay {
    position: fixed;
    top:0; left:0; right:0; bottom:0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}
.modal-card {
    background: #1e293b;
    border: 1px solid var(--border);
    padding: 28px;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    width: 100%;
}
.modal-icon { font-size: 2.8rem; margin-bottom: 14px; }
.modal-icon.success { color: var(--success); }
.modal-icon.error { color: var(--danger); }
.modal-card h3 { margin-bottom: 8px; font-size: 1.2rem; }
.modal-card p { color: var(--text-muted); margin-bottom: 20px; font-size: 0.9rem; }
.btn-modal {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: var(--primary);
    color: white;
    font-weight: 600;
    cursor: pointer;
}

/* Animaciones */
.slide-up {
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes slideUp {
    0% { opacity: 0; transform: translateY(16px); }
    100% { opacity: 1; transform: translateY(0); }
}