 /* style.css */
:root {
    --lab-bg: #F5F5F7;
    --lab-slate: #1E293B;
    --lab-orange: #FF8C00;
    --lab-card: #FFFFFF;
    --lab-border: #E2E8F0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--lab-bg);
    color: var(--lab-slate);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.mono { font-family: 'JetBrains Mono', monospace; }

.card {
    background: var(--lab-card);
    border: 1px solid var(--lab-border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(30, 41, 59, 0.08);
}

.equation-container {
    background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.equation {
    font-size: 2.5rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.3rem;
    position: relative;
    z-index: 1;
}

.equation-var { color: var(--lab-orange); font-weight: 700; }
.disponible-highlight { color: var(--lab-orange); font-weight: 700; }

.indicator-card { border-left: 4px solid var(--lab-orange); }

.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.grid-pattern {
    background-image: 
        linear-gradient(to right, #E2E8F0 1px, transparent 1px),
        linear-gradient(to bottom, #E2E8F0 1px, transparent 1px);
    background-size: 40px 40px;
}

.btn-primary {
    background: var(--lab-orange);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    background: #E67E00;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 140, 0, 0.3);
}

.lang-btn {
    color: #64748B;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: white;
    color: var(--lab-orange);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay.show { display: flex; }
.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}
@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
.modal-close {
    position: absolute;
    top: 1rem; right: 1rem;
    font-size: 1.5rem; cursor: pointer; color: #94A3B8;
}

/* Mobile First Adjustments */
@media (max-width: 768px) {
    .equation {
        font-size: 1.25rem;
        letter-spacing: 0.1rem;
    }
    .equation-container { padding: 1.5rem; }
    .card { padding: 1.5rem; }
    .no-scrollbar::-webkit-scrollbar { display: none; }
}