#calc-container { 
    background: #fff; 
    padding: 20px; 
    border-radius: 10px; 
    border: 1px solid #e2e8f0; 
    max-width: 500px; 
    margin: 20px auto; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
    box-sizing: border-box; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.header-row { display: flex; justify-content: center; align-items: center; border-bottom: 2px solid #f1f5f9; padding-bottom: 12px; margin-bottom: 18px; }
.header-row h3 { margin: 0; font-size: 1.1rem; font-weight: 800; color: #0f172a; letter-spacing: 0.5px;}
.calc-footer { margin-top: 25px; text-align: center; border-top: 1px solid #e2e8f0; padding-top: 12px; color: #64748b; font-size: 0.7rem; font-weight: 600; }
.mode-switch { display: flex; gap: 5px; background: #f1f5f9; padding: 4px; border-radius: 8px; margin-bottom: 18px; }
.mode-option { flex: 1; border: none; padding: 8px; font-size: 0.75rem; font-weight: 700; cursor: pointer; border-radius: 6px; color: #64748b; background: transparent; transition: all 0.2s ease; }
.mode-option.active { background: #fff; color: #0f172a; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.section-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 14px; margin-bottom: 12px; }
.section-title { font-size: 0.65rem; font-weight: 800; color: #94a3b8; text-transform: uppercase; display: block; margin-bottom: 10px; letter-spacing: 0.5px;}
.input-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mini-label { font-size: 0.65rem; font-weight: 700; color: #475569; display: block; margin-bottom: 4px; }
.mini-input { width: 100%; height: 34px; border: 1px solid #cbd5e0; border-radius: 5px; text-align: center; font-weight: 700; font-size: 0.9rem; color: #1e293b; transition: border-color 0.2s;}
.mini-input:focus { outline: none; border-color: #38bdf8; box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2); }
.etapa-item { position: relative; background: #fff; border: 1px solid #e2e8f0; border-left: 4px solid #f59e0b; padding: 12px; margin-bottom: 10px; border-radius: 6px; }
.fase-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.e-group { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700; color: #475569;}
.e-input { width: 55px; height: 30px; border: 1px solid #cbd5e0; border-radius: 4px; text-align: center; font-weight: 800; font-size: 0.9rem; }
.state-select { width: 100%; margin-top: 5px; height: 32px; border: 1px solid #cbd5e0; border-radius: 4px; background-color: #f8fafc; font-size: 0.75rem; font-weight: 700; color: #334155;}
.btn-x { position: absolute; top: 8px; right: 8px; border: none; background: #fee2e2; color: #ef4444; width: 22px; height: 22px; border-radius: 6px; cursor: pointer; font-size: 10px; display: flex; align-items: center; justify-content: center; transition: background 0.2s;}
.btn-x:hover { background: #fecaca; }
.action-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px;}
.btn-main { border: none; padding: 12px; border-radius: 6px; font-weight: 800; cursor: pointer; text-transform: uppercase; font-size: 0.75rem; width: 100%; transition: transform 0.1s;}
.btn-main:active { transform: translateY(1px); }
.btn-calc { background: #10b981; color: #fff; }
.btn-add { background: #e2e8f0; color: #475569; }
#resultado-panel { background: #0f172a; color: #fff; padding: 18px; border-radius: 8px; margin-top: 20px; }
.diag-header { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid #1e293b; padding-bottom: 15px; margin-bottom: 15px; }
.diag-col { display: flex; flex-direction: column; }
.diag-lbl { font-size: 0.65rem; color: #94a3b8; font-weight: 800; text-transform: uppercase; margin-bottom: 4px;}
.diag-val { font-size: 1.4rem; font-weight: 800; color: #38bdf8; }
.w-badge { font-size: 0.6rem; font-weight: 800; padding: 4px 8px; border-radius: 4px; text-transform: uppercase; margin-bottom: 2px; display: block; text-align: right; }
.w-ok { background: #10b981; color: #fff; }
.w-warn { background: #ef4444; color: #fff; }
.ing-list { font-family: 'Courier New', monospace; line-height: 1.6; }
.ing-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #1e293b; font-size: 0.85rem; color: #e2e8f0;}
.total-row { display: flex; justify-content: space-between; margin-top: 15px; padding-top: 12px; border-top: 2px dashed #334155; font-size: 1.2rem; font-weight: 800; color: #10b981; }
.hidden { display: none !important; }
#qr-result { margin-top: 20px; padding: 15px; background: #fff; border-radius: 8px; text-align: center; }
#qr-img-target { max-width: 150px; display: block; margin: 0 auto; border: 2px solid #f1f5f9; padding: 5px; border-radius: 4px;}
.tech-box { background: #1e293b; border-radius: 6px; padding: 10px; margin-bottom: 15px; font-size: 0.75rem; border-left: 4px solid #64748b; transition: all 0.3s ease;}
.tech-row { display: flex; justify-content: space-between; margin-bottom: 4px; color: #cbd5e1;}
.tech-val { font-weight: 700; color: #fff; }
.tech-status-row { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #334155; text-align: center; font-weight: 800; display: flex; flex-direction: column;}
.val-optima { border-left-color: #10b981; }
.val-optima .tech-status-row { color: #10b981; }
.val-exigente { border-left-color: #f59e0b; }
.val-exigente .tech-status-row { color: #f59e0b; }
.val-critica { border-left-color: #ef4444; }
.val-critica .tech-status-row { color: #ef4444; }
.cronograma-fase { font-size: 0.68rem; color: #64748b; margin-top: 5px; font-weight: 700; border-top: 1px dotted #e2e8f0; padding-top: 4px;}

/* MODIFICACIÓN 6: Transición suave para el color de Maduración */
#res-um-display { transition: color 0.3s ease; }