

  /* Quitar flechas en Chrome, Safari, Edge */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

    /* ===== SISTEMA DE DISEÑO MODERNO NAVY + GOLD ===== */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    
    :root {
        --radius: 0.875rem;
        --background: oklch(0.99 0.005 90);
        --foreground: oklch(0.18 0.04 260);
        --card: oklch(1 0 0);
        --card-foreground: oklch(0.18 0.04 260);
        --navy: oklch(0.22 0.06 265);
        --navy-deep: oklch(0.14 0.05 265);
        --primary: oklch(0.22 0.06 265);
        --primary-foreground: oklch(0.98 0.005 90);
        --gold: oklch(0.82 0.16 85);
        --gold-foreground: oklch(0.18 0.04 260);
        --muted: oklch(0.96 0.01 250);
        --muted-foreground: oklch(0.45 0.03 260);
        --accent: oklch(0.82 0.16 85);
        --border: oklch(0.9 0.012 260);
        --input: oklch(0.9 0.012 260);
        --ring: oklch(0.82 0.16 85);
        --gradient-hero: linear-gradient(135deg, oklch(0.14 0.05 265) 0%, oklch(0.22 0.06 265) 55%, oklch(0.32 0.09 270) 100%);
        --gradient-gold: linear-gradient(135deg, oklch(0.88 0.14 88) 0%, oklch(0.78 0.17 75) 100%);
        --shadow-elegant: 0 25px 60px -25px color-mix(in oklab, var(--navy-deep) 45%, transparent);
        --shadow-gold: 0 20px 50px -20px color-mix(in oklab, var(--gold) 55%, transparent);
        --shadow-card: 0 10px 30px -15px color-mix(in oklab, var(--navy-deep) 25%, transparent);
        --font-display: 'Space Grotesk', system-ui, sans-serif;
        --font-sans: 'Inter', system-ui, sans-serif;
        
        /* Colores específicos */
        --jade: #10b981;
        --jade-dark: #059669;
        --coral: #ef4444;
        --coral-dark: #dc2626;
        --amber: #f59e0b;
        --amber-dark: #d97706;
        --steel: #3b82f6;
    }
    
    body {
        background-color: var(--background);
        color: var(--foreground);
        font-family: var(--font-sans);
        -webkit-font-smoothing: antialiased;
        padding-top: 72px;
    }
    
    h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; }
    
    
    /* ===== HERO ===== */
    .hero {
        background: var(--gradient-hero);
        padding: 2rem 0;
        text-align: center;
        margin-bottom: 2rem;
    }
    .hero-eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background: rgba(255,255,255,0.1);
        backdrop-filter: blur(10px);
        padding: 0.35rem 1rem;
        border-radius: 9999px;
        font-size: 0.7rem;
        font-weight: 500;
        color: rgba(255,255,255,0.8);
        margin-bottom: 1rem;
    }
    .hero-eyebrow i { color: var(--gold); }
    .hero h1 {
        font-size: 2rem;
        color: white;
        margin-bottom: 0.5rem;
    }
    .hero h1 em {
        background: var(--gradient-gold);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-style: normal;
    }
    .hero-sub {
        color: rgba(255,255,255,0.8);
        max-width: 600px;
        margin: 0 auto 1rem;
        font-size: 0.9rem;
    }
    .hero-pills {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1rem;
    }
    .hero-pill {
        background: rgba(255,255,255,0.1);
        padding: 0.3rem 0.8rem;
        border-radius: 9999px;
        font-size: 0.7rem;
        color: rgba(255,255,255,0.8);
    }
    
    /* ===== MAIN GRID ===== */
    .wrap {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 1.5rem 2rem;
    }
    .main-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    @media (max-width: 1024px) {
        .main-grid { grid-template-columns: 1fr; }
    }
    
    /* ===== PANELES ===== */
    .panel {
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 1rem;
        margin-bottom: 1.5rem;
        overflow: hidden;
        box-shadow: var(--shadow-card);
    }
    .ph {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid var(--border);
    }
    .pi {
        width: 48px;
        height: 48px;
        border-radius: 0.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        color: white;
    }
    .pi-steel { background: var(--steel); }
    .pi-amber { background: var(--amber); }
    .pi-jade { background: var(--jade); }
    .pi-coral { background: var(--coral); }
    
    .ph h2 { font-size: 1rem; margin: 0; }
    .psub { font-size: 0.65rem; color: var(--muted-foreground); }
    
    .fg {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        padding: 1.25rem;
    }
    .fi label {
        display: block;
        font-size: 0.7rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: var(--muted-foreground);
    }
    .fi input, .fi select {
        width: 100%;
        padding: 0.7rem 1rem;
        border: 1px solid var(--border);
        border-radius: 0.75rem;
        font-size: 0.875rem;
        font-family: var(--font-sans);
        background: var(--background);
        transition: all 0.2s;
    }
    .fi input:focus, .fi select:focus {
        outline: none;
        border-color: var(--gold);
        box-shadow: 0 0 0 3px rgba(210,158,0,0.1);
    }
    .fi input[readonly] {
        background: var(--muted);
        cursor: not-allowed;
    }
    .sub-field { margin-top: 0.5rem; }
    
    .info-box {
        background: var(--muted);
        padding: 0.75rem;
        border-radius: 0.75rem;
        font-size: 0.7rem;
        color: var(--muted-foreground);
        margin: 0 1.25rem 1.25rem;
    }
    
    /* ===== KPIs ===== */
    .kpi-strip {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    .kpi {
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 0.75rem;
        padding: 1rem;
        text-align: center;
        box-shadow: var(--shadow-card);
    }
    .kl { font-size: 0.65rem; font-weight: 600; text-transform: uppercase; color: var(--muted-foreground); }
    .kv { font-size: 1.5rem; font-weight: 700; font-family: var(--font-display); color: var(--gold); }
    .ks { font-size: 0.6rem; color: var(--muted-foreground); margin-top: 0.25rem; }
    .kpi-jade .kv { color: var(--jade); }
    .kpi-coral .kv { color: var(--coral); }
    .kpi-amber .kv { color: var(--amber); }
    .kpi-blue .kv { color: var(--steel); }
    
    /* ===== TABLA RESULTADOS ===== */
    .results-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.75rem;
    }
    .results-table tr {
        border-bottom: 1px solid var(--border);
    }
    .results-table td {
        padding: 0.75rem 1rem;
    }
    .results-table td:first-child {
        font-weight: 500;
        color: var(--muted-foreground);
    }
    .results-table td:last-child {
        font-weight: 700;
        text-align: right;
    }
    .tr-total td:first-child { font-weight: 700; color: var(--gold); }
    .tr-total td:last-child { font-size: 1rem; color: var(--gold); }
    
    /* ===== DIAGNÓSTICO ===== */
    .diag-banner {
        display: none;
        align-items: center;
        gap: 0.75rem;
        padding: 1rem;
        border-radius: 0.75rem;
        margin: 1rem 0;
        font-size: 0.8rem;
        font-weight: 500;
    }
    .diag-banner.show { display: flex; }
    .db-ok { background: rgba(16,185,129,0.15); color: var(--jade-dark); border: 1px solid rgba(16,185,129,0.3); }
    .db-warn { background: rgba(245,158,11,0.15); color: var(--amber-dark); border: 1px solid rgba(245,158,11,0.3); }
    .db-danger { background: rgba(239,68,68,0.15); color: var(--coral-dark); border: 1px solid rgba(239,68,68,0.3); }
    
    /* ===== GAUGE ===== */
    .gauge-wrap {
        padding: 1rem;
        margin-top: 0.5rem;
    }
    .gauge-scale {
        display: flex;
        justify-content: space-between;
        font-size: 0.6rem;
        color: var(--muted-foreground);
        margin-bottom: 0.25rem;
    }
    .gauge-track {
        height: 8px;
        background: var(--muted);
        border-radius: 4px;
        overflow: hidden;
    }
    .gauge-fill {
        height: 100%;
        width: 0%;
        border-radius: 4px;
        transition: width 0.5s ease;
    }
    .gauge-note {
        text-align: center;
        font-size: 0.7rem;
        font-weight: 600;
        margin-top: 0.5rem;
    }
    
    /* ===== LEGAL ===== */
    .legal {
        text-align: center;
        font-size: 0.65rem;
        color: var(--muted-foreground);
        margin-top: 2rem;
        padding: 1rem;
        background: var(--muted);
        border-radius: 0.75rem;
    }
    

    
    /* ===== WHATSAPP FLOTANTE ===== */
    .whatsapp-float {
        position: fixed;
        bottom: 1.5rem;
        right: 1.5rem;
        background: #25D366;
        color: white;
        width: 3.5rem;
        height: 3.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 9999px;
        font-size: 1.75rem;
        box-shadow: 0 10px 25px -5px rgba(0,0,0,0.2);
        transition: transform 0.2s;
        z-index: 40;
        text-decoration: none;
    }
    .whatsapp-float:hover { transform: scale(1.1); }
    
    .btn-back-floating {
        position: fixed;
        bottom: 1.5rem;
        left: 1.5rem;
        background: var(--navy);
        color: white;
        width: 3rem;
        height: 3rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 9999px;
        font-size: 1.25rem;
        box-shadow: var(--shadow-card);
        transition: all 0.2s;
        z-index: 40;
        text-decoration: none;
    }
    .btn-back-floating:hover { transform: scale(1.1); background: var(--gold); color: var(--navy); }
