
    /* ===== 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 del módulo */
        --mm-orange: #f59e0b;
        --mm-amber: #d97706;
        --mm-amber-lt: #fef3c7;
        --mm-green: #10b981;
        --mm-red: #ef4444;
        --mm-red-lt: #fee2e2;
        --mm-gray-lt: #f1f5f9;
    }
    
    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; }
    
    /* ===== NAVEGACIÓN MODERNA ===== */
    nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 50;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        padding: 0 2rem;
        height: 72px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .nav-logo { height: 48px; width: auto; display: block; }
    .menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--navy); }
    
    #menu { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
    #menu li a {
        display: block;
        padding: 0.5rem 1rem;
        color: #4a5568;
        font-weight: 500;
        text-decoration: none;
        border-radius: 9999px;
        transition: all 0.2s;
        font-size: 0.875rem;
    }
    #menu li a i { margin-right: 0.5rem; }
    #menu li a:hover { background: var(--muted); color: var(--foreground); }
    
    @media (max-width: 768px) {
        .menu-toggle { display: block; }
        nav { padding: 0 1rem; height: 64px; }
        body { padding-top: 64px; }
        #menu {
            position: fixed;
            top: 64px;
            right: -100%;
            width: 280px;
            height: calc(100vh - 64px);
            background: white;
            flex-direction: column;
            padding: 1rem 0;
            transition: right 0.3s ease;
            box-shadow: -5px 0 20px rgba(0,0,0,0.1);
            gap: 0;
        }
        #menu.active { right: 0; }
        #menu li a { padding: 1rem 1.5rem; border-radius: 0; }
    }
    
    /* ===== HERO ===== */
    .mm-hero {
        background: var(--gradient-hero);
        padding: 2rem 0;
        text-align: center;
        margin-bottom: 2rem;
    }
    .mm-hero-badge {
        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;
    }
    .mm-hero-badge i { color: var(--gold); }
    .mm-hero h1 {
        font-size: 2rem;
        color: white;
        margin-bottom: 0.5rem;
    }
    .mm-hero p {
        color: rgba(255,255,255,0.8);
        max-width: 700px;
        margin: 0 auto;
        font-size: 0.9rem;
    }
    
    /* ===== CONTENEDOR PRINCIPAL ===== */
    .mm-wrap {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 1.5rem 2rem;
    }
    
    /* ===== TARJETAS ===== */
    .mm-card {
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 1rem;
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        box-shadow: var(--shadow-card);
    }
    .mm-card-head {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1.25rem;
        padding-bottom: 0.75rem;
        border-bottom: 2px solid var(--gold);
    }
    .mm-step {
        width: 40px;
        height: 40px;
        background: var(--gradient-gold);
        color: var(--navy);
        border-radius: 0.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 1rem;
    }
    .mm-card-head h2 {
        font-size: 1.25rem;
        margin: 0;
    }
    
    /* ===== TIPO TABS ===== */
    .mm-tipo-tabs {
        display: flex;
        gap: 1rem;
        margin-bottom: 1.25rem;
        flex-wrap: wrap;
    }
    .mm-tipo-tab {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
        background: var(--muted);
        border-radius: 0.75rem;
        cursor: pointer;
        transition: all 0.2s;
        border: 1px solid transparent;
    }
    .mm-tipo-tab.active {
        background: var(--gradient-gold);
        border-color: var(--gold);
    }
    .mm-tipo-tab .t-icon { font-size: 1.5rem; }
    .t-name { font-weight: 600; font-size: 0.85rem; }
    .t-desc { font-size: 0.65rem; color: var(--muted-foreground); }
    .mm-tipo-tab input { display: none; }
    
    /* ===== GRID ===== */
    .mm-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.25rem;
    }
    .mm-field label {
        display: block;
        font-size: 0.7rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: var(--muted-foreground);
    }
    .mm-field input, .mm-field 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;
    }
    .mm-field input:focus, .mm-field select:focus {
        outline: none;
        border-color: var(--gold);
        box-shadow: 0 0 0 3px rgba(210,158,0,0.1);
    }
    
    .mm-divider { margin: 1rem 0; border: none; height: 1px; background: var(--border); }
    
    /* ===== VIGENCIA ===== */
    .mm-vig-label {
        display: block;
        font-size: 0.7rem;
        font-weight: 600;
        margin-bottom: 0.75rem;
        color: var(--muted-foreground);
    }
    .mm-vig-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }
    .mm-vig-btn {
        background: var(--muted);
        border: 1px solid var(--border);
        padding: 0.5rem 1rem;
        border-radius: 0.75rem;
        cursor: pointer;
        transition: all 0.2s;
        text-align: center;
        min-width: 70px;
    }
    .mm-vig-btn.active {
        background: var(--gradient-gold);
        border-color: var(--gold);
        color: var(--navy);
    }
    .v-num { font-weight: 700; font-size: 1rem; display: block; }
    .v-sub { font-size: 0.6rem; }
    
    /* ===== CHIPS ===== */
    .mm-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
        margin-top: 1rem;
    }
    .mm-chip {
        background: var(--muted);
        padding: 0.5rem 1rem;
        border-radius: 9999px;
        font-size: 0.75rem;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }
    .mm-chip .ci { font-size: 0.9rem; }
    
    .mm-ind-anual {
        margin-top: 1rem;
        padding: 0.5rem 1rem;
        background: var(--muted);
        border-radius: 0.75rem;
        font-size: 0.75rem;
        display: none;
    }
    
    /* ===== BOTONES ===== */
    .mm-btn-row {
        display: flex;
        gap: 1rem;
        margin: 1.5rem 0;
        flex-wrap: wrap;
    }
    .mm-btn {
        padding: 0.75rem 1.5rem;
        border-radius: 9999px;
        font-weight: 600;
        font-size: 0.875rem;
        cursor: pointer;
        transition: all 0.2s;
        border: none;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }
    .mm-btn-primary {
        background: var(--gradient-gold);
        color: var(--navy);
    }
    .mm-btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05); }
    .mm-btn-secondary {
        background: var(--muted);
        color: var(--foreground);
        border: 1px solid var(--border);
    }
    .mm-btn-secondary:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
    
    /* ===== KPIs ===== */
    .mm-kpis {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        margin: 1.5rem 0;
    }
    .mm-kpi {
        background: var(--muted);
        border-radius: 0.75rem;
        padding: 1rem;
        text-align: center;
    }
    .mm-kpi.kpi-main {
        background: var(--gradient-gold);
        color: var(--navy);
    }
    .kk-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
    .kk-label { font-size: 0.65rem; font-weight: 600; text-transform: uppercase; }
    .kk-val { font-size: 1.25rem; font-weight: 700; font-family: var(--font-display); }
    .kk-sub { font-size: 0.6rem; margin-top: 0.25rem; opacity: 0.8; }
    
    .mm-modo-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.25rem 0.75rem;
        border-radius: 9999px;
        font-size: 0.7rem;
        font-weight: 600;
        margin-bottom: 1rem;
    }
    .modo-automatico { background: var(--mm-green); color: white; }
    .modo-manual { background: var(--mm-orange); color: white; }
    
    .mm-ult-box {
        background: var(--mm-green);
        color: white;
        padding: 0.5rem 1rem;
        border-radius: 0.75rem;
        margin-bottom: 1rem;
        font-size: 0.75rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    /* ===== TABLA ===== */
    .mm-table-wrap {
        overflow-x: auto;
        margin: 1rem 0;
    }
    .mm-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.7rem;
    }
    .mm-table th, .mm-table td {
        padding: 0.6rem 0.4rem;
        text-align: center;
        border-bottom: 1px solid var(--border);
    }
    .mm-table th {
        background: var(--muted);
        font-weight: 600;
        color: var(--gold);
    }
    .row-vencido { background: var(--mm-red-lt); }
    .row-outside { opacity: 0.5; }
    .td-red { color: var(--mm-red); font-weight: 600; }
    .td-green { color: var(--mm-green); font-weight: 600; }
    .td-km, .td-final { font-weight: 600; }
    
    .mm-leyenda {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        margin-top: 1rem;
        font-size: 0.65rem;
    }
    .mm-leyenda-dot {
        display: inline-block;
        width: 12px;
        height: 12px;
        border-radius: 2px;
        margin-right: 0.25rem;
    }
    
    .mm-legal {
        text-align: center;
        font-size: 0.65rem;
        color: var(--muted-foreground);
        margin-top: 1rem;
        padding: 0.75rem;
        background: var(--muted);
        border-radius: 0.75rem;
    }
    
    /* ===== FOOTER ===== */
    footer {
        background: var(--gradient-hero);
        color: white;
        margin-top: 3rem;
        padding: 2rem 0;
        text-align: center;
    }
    footer p { color: rgba(255,255,255,0.7); }
    footer a {
        color: rgba(255,255,255,0.7);
        margin: 0 0.5rem;
        font-size: 1.25rem;
        transition: all 0.2s;
        display: inline-block;
        text-decoration: none;
    }
    footer a:hover { color: white; transform: translateY(-2px); }
    
    /* ===== 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); }
    
    @media (max-width: 768px) {
        .mm-grid { grid-template-columns: 1fr; }
        .mm-kpis { grid-template-columns: 1fr; }
        .mm-tipo-tabs { flex-direction: column; }
        .mm-vig-grid { justify-content: center; }
    }

