:root {
    --mahle-teal-900: #0C2150;
    --mahle-teal-800: #0B1B3A;
    --mahle-teal-700: #12306B;
    --mahle-teal-600: #0095D9;
    --mahle-teal-500: #2BA9E3;
    --mahle-teal-400: #6CC8EF;
    --mahle-teal-100: #E4F4FC;

    --mahle-cyan-hover: #0084C0;

    --mahle-ink-900: #071430;
    --mahle-ink-800: #0B1B3A;

    --mahle-paper-0: #FFFFFF;
    --mahle-paper-50: #F3F5F9;
    --mahle-paper-100: #EAEEF5;

    --mahle-steel-700: #2A3548;
    --mahle-steel-500: #5A6A80;
    --mahle-steel-300: #B4BFCF;
    --mahle-steel-100: #E4E8EF;

    --mahle-line-soft: #E1E6EF;
    --mahle-line-strong: #CBD3E0;

    --mahle-amber-500: #D98A16;
    --mahle-amber-100: #FBEBD4;

    --mahle-red-600: #B4302A;
    --mahle-red-100: #FBE5E3;

    --mahle-green-600: #1D8348;
    --mahle-green-100: #E1F5E9;

    --sidebar-width: 272px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;

    --font-display: 'IBM Plex Sans', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

    --dur-fast: 120ms;
    --dur-base: 200ms;

    --shadow-xs: 0 1px 2px rgba(7, 20, 48, .06);
    --shadow-sm: 0 1px 2px rgba(7, 20, 48, .05), 0 6px 18px rgba(7, 20, 48, .05);
    --shadow-md: 0 2px 4px rgba(7, 20, 48, .05), 0 14px 30px rgba(7, 20, 48, .10);
    --shadow-lg: 0 30px 70px rgba(7, 20, 48, .32);
    --ring: 0 0 0 3px rgba(0, 149, 217, .26);
}

* {
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--mahle-steel-300) transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--mahle-paper-50);
    color: var(--mahle-ink-900);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -webkit-tap-highlight-color: transparent;
}

body:has(.main-wrapper)::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(900px 480px at 100% 0%, rgba(0, 149, 217, .08), transparent 60%),
        radial-gradient(circle at 1px 1px, rgba(11, 27, 58, .08) 1px, transparent 0);
    background-size: auto, 26px 26px;
}

::selection {
    background: rgba(0, 149, 217, .22);
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -.015em;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

a, button, label[for], .btn-mahle, .btn-mahle-outline, .btn-mahle-danger {
    touch-action: manipulation;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 2px solid var(--mahle-teal-600);
    outline-offset: 2px;
}

.form-control-mahle:focus-visible,
.rich-editor:focus-visible {
    outline: none;
}

@keyframes mahleRise {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes mahleFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes mahlePop {
    from {
        opacity: 0;
        transform: scale(.96);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes mahleDrift {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(120px, -80px, 0) scale(1.15);
    }
}

.sidebar-mahle {
    width: var(--sidebar-width);
    height: 100vh;
    height: 100dvh;
    background:
        radial-gradient(420px 280px at 0% 0%, rgba(0, 149, 217, .26), transparent 70%),
        linear-gradient(185deg, var(--mahle-ink-900), var(--mahle-teal-900));
    border-right: 1px solid rgba(255, 255, 255, .05);
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: transform 280ms var(--ease-drawer);
}

.sidebar-mahle::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .07;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.brand-header {
    position: relative;
    z-index: 1;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
}

.brand-logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-logo-img {
    max-height: 34px;
    max-width: 190px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.brand-icon {
    width: 42px;
    height: 42px;
    background: var(--mahle-teal-500);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.btn-close-sidebar {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, .7);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.menu-nav {
    position: relative;
    z-index: 1;
    padding: 20px 12px calc(20px + env(safe-area-inset-bottom));
    overflow-y: auto;
    flex-grow: 1;
}

.nav-section-title {
    color: rgba(255, 255, 255, .38);
    font-family: var(--font-mono);
    font-size: .64rem;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    padding: 14px 16px 8px;
}

.menu-link {
    position: relative;
    color: rgba(255, 255, 255, .72);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px 11px 16px;
    border-radius: 10px;
    font-size: .875rem;
    font-weight: 500;
    margin-bottom: 2px;
    transition: background-color var(--dur-base) ease, color var(--dur-base) ease;
}

.menu-link i {
    font-size: 1.05rem;
    opacity: .85;
    transition: color var(--dur-base) ease, opacity var(--dur-base) ease;
}

.menu-link::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    width: 3px;
    height: 22px;
    border-radius: 0 3px 3px 0;
    background: var(--mahle-teal-400);
    transform: translateY(-50%) scaleY(0);
    transition: transform var(--dur-base) var(--ease-out);
}

.menu-link:active {
    background: rgba(255, 255, 255, .1);
}

.menu-link.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(0, 149, 217, .30), rgba(0, 149, 217, .08));
    box-shadow: inset 0 0 0 1px rgba(108, 200, 239, .18);
}

.menu-link.active::before {
    transform: translateY(-50%) scaleY(1);
}

.menu-link.active i {
    color: var(--mahle-teal-400);
    opacity: 1;
}

.menu-link-logout {
    color: #f0a898;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 14, 31, .6);
    z-index: 1030;
    opacity: 0;
    visibility: hidden;
    transition: opacity 220ms var(--ease-out), visibility 220ms;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    min-height: 100dvh;
    padding: 24px max(32px, calc((100vw - var(--sidebar-width) - 1480px) / 2)) 40px;
    max-width: 100vw;
}

.topbar-mahle {
    background: var(--mahle-paper-0);
    border: 1px solid var(--mahle-line-soft);
    border-radius: var(--radius-lg);
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.page-header .eyebrow {
    font-family: var(--font-mono);
    font-size: .68rem;
    color: var(--mahle-teal-600);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 0 0 4px;
}

.page-header h4 {
    margin: 0;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -.02em;
    color: var(--mahle-ink-900);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding-left: 16px;
    border-left: 1px solid var(--mahle-line-soft);
    background: transparent;
}

.user-profile .avatar-box {
    transition: box-shadow var(--dur-base) ease;
}

.badge-role {
    font-size: .7rem;
    background: var(--mahle-teal-100);
    color: var(--mahle-teal-700);
    padding: 2px 9px;
    border-radius: 5px;
    font-family: var(--font-mono);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.avatar-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--mahle-teal-600), var(--mahle-teal-700));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-mono);
    overflow: hidden;
    flex-shrink: 0;
}

.avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icono-perfil-opcion {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
    transition: background-color var(--dur-base) ease, border-color var(--dur-base) ease, color var(--dur-base) ease, transform var(--dur-fast) var(--ease-out);
}

.icono-perfil-opcion:active {
    transform: scale(.94);
}

.icono-perfil-opcion.active {
    background: var(--mahle-teal-600);
    border-color: var(--mahle-teal-600);
    color: #fff;
}

.kpi-card {
    position: relative;
    background: var(--mahle-paper-0);
    border: 1px solid var(--mahle-line-soft);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--dur-base) ease, border-color var(--dur-base) ease, transform var(--dur-base) var(--ease-out);
}

.kpi-card:is(.kpi-blue, .kpi-green, .kpi-amber, .kpi-purple)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 22px;
    bottom: 22px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--kpi-accent);
}

.kpi-blue { --kpi-accent: var(--mahle-teal-600); }
.kpi-green { --kpi-accent: var(--mahle-green-600); }
.kpi-amber { --kpi-accent: var(--mahle-amber-500); }
.kpi-purple { --kpi-accent: #6f42c1; }

.kpi-card-link .kpi-card::after,
a.kpi-card::after,
.info-card::after,
.quick-action-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 149, 217, .10), transparent 65%);
    transition: opacity var(--dur-base) ease;
}

.info-card,
.quick-action-card {
    position: relative;
}

.kpi-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: var(--mahle-teal-100);
    color: var(--mahle-teal-600);
    box-shadow: inset 0 0 0 1px rgba(7, 20, 48, .04);
}

.kpi-title {
    font-family: var(--font-mono);
    font-size: .66rem;
    color: var(--mahle-steel-500);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.kpi-value {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -.025em;
    font-variant-numeric: tabular-nums;
    color: var(--mahle-ink-900);
    margin-top: 4px;
}

.area-stat strong,
.categoria-stat strong {
    font-variant-numeric: tabular-nums;
}

.btn-mahle,
.btn-mahle-outline,
.btn-mahle-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    line-height: 1.25;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform var(--dur-fast) var(--ease-out),
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease,
        box-shadow 160ms ease;
}

.btn-mahle:active,
.btn-mahle-outline:active,
.btn-mahle-danger:active {
    transform: scale(.97);
}

.btn-mahle {
    background: var(--mahle-teal-600);
    border: 1px solid #0087C6;
    color: #fff;
    border-radius: 10px;
    padding: 9px 16px;
    font-weight: 600;
    font-size: .85rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(0, 83, 128, .28);
}

.btn-mahle-outline {
    background: var(--mahle-paper-0);
    border: 1px solid var(--mahle-line-strong);
    color: var(--mahle-steel-700);
    border-radius: 10px;
    padding: 9px 16px;
    font-weight: 600;
    font-size: .85rem;
    box-shadow: var(--shadow-xs);
}

.btn-mahle-danger {
    background: var(--mahle-red-100);
    border: 1px solid #f0c4bf;
    color: var(--mahle-red-600);
    border-radius: 10px;
    padding: 8px 14px;
    font-weight: 600;
    font-size: .8rem;
}

.badge-activo,
.badge-inactivo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 4px 10px;
    border-radius: 20px;
}

.badge-activo {
    background: var(--mahle-green-100);
    color: var(--mahle-green-600);
}

.badge-inactivo {
    background: var(--mahle-red-100);
    color: var(--mahle-red-600);
}

.alert {
    border-radius: var(--radius-md);
    border-width: 1px;
}

.modal.fade {
    transition: opacity 160ms var(--ease-out);
}

.modal.fade .modal-dialog {
    opacity: 0;
    transform: translateY(12px) scale(.98);
    transition: transform 220ms var(--ease-out), opacity 200ms var(--ease-out);
}

.modal.show .modal-dialog {
    opacity: 1;
    transform: none;
}

.modal.fade:not(.show) .modal-dialog {
    transition-duration: 140ms;
}

.modal.fade .modal-dialog.modal-fullscreen {
    transform: translateY(24px);
}

.modal.show .modal-dialog.modal-fullscreen {
    transform: none;
}

.modal-backdrop {
    --bs-backdrop-bg: #071430;
    --bs-backdrop-opacity: .55;
}

.modal-backdrop.fade {
    transition: opacity 180ms var(--ease-out);
}

.modal-mahle .modal-content {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.modal-mahle .modal-header {
    position: relative;
    background:
        radial-gradient(380px 160px at 100% 0%, rgba(0, 149, 217, .35), transparent 70%),
        linear-gradient(135deg, var(--mahle-ink-900), var(--mahle-teal-700));
    color: #fff;
    border: none;
    padding: 22px 26px;
}

.modal-mahle .modal-title {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -.01em;
}

.modal-mahle .modal-body {
    padding: 26px;
}

.modal-mahle .modal-footer {
    border-top: 1px solid var(--mahle-line-soft);
    padding: 16px 26px;
    gap: 8px;
}

.modal-mahle .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: .75;
    transition: opacity var(--dur-base) ease, transform var(--dur-fast) var(--ease-out);
}

.modal-mahle .btn-close:active {
    transform: scale(.9);
}

.form-label-mahle {
    font-family: var(--font-mono);
    font-size: .66rem;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--mahle-steel-500);
    margin-bottom: 5px;
    display: block;
}

.form-control-mahle {
    border-radius: 10px;
    border: 1.5px solid var(--mahle-line-soft);
    padding: 10px 13px;
    background-color: var(--mahle-paper-0);
    transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.form-select.form-control-mahle {
    padding-right: 2.25rem;
}

.form-control-mahle:focus {
    border-color: var(--mahle-teal-500);
    box-shadow: var(--ring);
    outline: none;
}

.table > :not(caption) > * > * {
    transition: background-color var(--dur-fast) ease;
}

body .area-header,
body .line-card,
body .table-card,
body .plant-facts,
body .info-card,
body .quick-action-card {
    border-color: var(--mahle-line-soft);
    box-shadow: var(--shadow-sm);
}

body .btn-linea-chip,
body .btn-back,
body .btn-volver-meses,
body .btn-action,
body .btn-editar-linea,
body .btn-rich {
    transition:
        transform var(--dur-fast) var(--ease-out),
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease;
}

body .btn-linea-chip:active,
body .btn-back:active,
body .btn-volver-meses:active,
body .btn-action:active,
body .btn-editar-linea:active,
body .btn-rich:active {
    transform: scale(.96);
}

body .fila-equipo {
    transition: background-color var(--dur-fast) ease;
}

body .galeria-foto {
    transition: transform 240ms var(--ease-out);
}

.lightbox-overlay.active {
    animation: mahleFade 160ms var(--ease-out);
}

.lightbox-overlay.active img {
    animation: mahlePop 220ms var(--ease-out);
}

.main-wrapper > :not(.modal):not(script):not(style):not(.row) {
    animation: mahleRise 260ms var(--ease-out) backwards;
}

.main-wrapper > :nth-child(2) { animation-delay: 30ms; }
.main-wrapper > :nth-child(3) { animation-delay: 60ms; }
.main-wrapper > :nth-child(4) { animation-delay: 90ms; }
.main-wrapper > :nth-child(5) { animation-delay: 120ms; }
.main-wrapper > :nth-child(6) { animation-delay: 150ms; }
.main-wrapper > :nth-child(n+7) { animation-delay: 180ms; }

.main-wrapper > .row > [class*="col"] {
    animation: mahleRise 260ms var(--ease-out) backwards;
}

.main-wrapper > .row > [class*="col"]:nth-child(1) { animation-delay: 60ms; }
.main-wrapper > .row > [class*="col"]:nth-child(2) { animation-delay: 100ms; }
.main-wrapper > .row > [class*="col"]:nth-child(3) { animation-delay: 140ms; }
.main-wrapper > .row > [class*="col"]:nth-child(4) { animation-delay: 180ms; }
.main-wrapper > .row > [class*="col"]:nth-child(5) { animation-delay: 210ms; }
.main-wrapper > .row > [class*="col"]:nth-child(n+6) { animation-delay: 240ms; }

.login-card > :not(form) {
    animation: mahleRise 460ms var(--ease-out) backwards;
}

.login-card > :nth-child(1) { animation-delay: 60ms; }
.login-card > :nth-child(2) { animation-delay: 110ms; }
.login-card > :nth-child(3) { animation-delay: 160ms; }
.login-card > :nth-child(n+4):not(form) { animation-delay: 210ms; }

.login-card form > * {
    animation: mahleRise 420ms var(--ease-out) backwards;
}

.login-card form > :nth-child(1) { animation-delay: 240ms; }
.login-card form > :nth-child(2) { animation-delay: 290ms; }
.login-card form > :nth-child(3) { animation-delay: 340ms; }
.login-card form > :nth-child(4) { animation-delay: 390ms; }

.login-hero-mid > div > * {
    animation: mahleRise 520ms var(--ease-out) backwards;
}

.login-hero-mid > div > :nth-child(1) { animation-delay: 120ms; }
.login-hero-mid > div > :nth-child(2) { animation-delay: 190ms; }
.login-hero-mid > div > :nth-child(3) { animation-delay: 260ms; }
.login-hero-mid > div > :nth-child(4) { animation-delay: 320ms; }
.login-hero-mid > div > :nth-child(5) { animation-delay: 380ms; }

.login-hero::before {
    content: '';
    position: absolute;
    width: 640px;
    height: 640px;
    left: -140px;
    bottom: -220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 149, 217, .30), transparent 65%);
    pointer-events: none;
    animation: mahleDrift 16s ease-in-out infinite alternate;
}

body .btn-login-submit {
    transition: background-color 150ms ease, transform var(--dur-fast) var(--ease-out), box-shadow 150ms ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 6px 16px rgba(0, 149, 217, .28);
}

body .btn-login-submit:active {
    transform: scale(.98);
}

.card-recuperar {
    animation: mahleRise 460ms var(--ease-out) backwards;
}

@media (hover: hover) and (pointer: fine) {

    .menu-link:hover {
        color: #fff;
        background: rgba(255, 255, 255, .07);
    }

    .menu-link:hover i {
        opacity: 1;
    }

    .menu-link-logout:hover {
        color: #ffbfae;
        background: rgba(180, 48, 42, .16);
    }

    .user-profile:hover .avatar-box {
        box-shadow: 0 0 0 3px var(--mahle-teal-100);
    }

    a.kpi-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
        border-color: var(--mahle-line-strong);
    }

    .kpi-card-link:hover .kpi-card {
        box-shadow: var(--shadow-md);
        border-color: var(--mahle-line-strong);
    }

    .kpi-card-link:hover .kpi-card::after,
    a.kpi-card:hover::after,
    .info-card:hover::after,
    .quick-action-card:hover::after {
        opacity: 1;
    }

    .btn-mahle:hover {
        background: var(--mahle-cyan-hover);
        border-color: #0079B3;
        color: #fff;
    }

    .btn-mahle-outline:hover {
        background: var(--mahle-teal-100);
        border-color: var(--mahle-teal-500);
        color: var(--mahle-teal-700);
    }

    .btn-mahle-danger:hover {
        background: var(--mahle-red-600);
        border-color: var(--mahle-red-600);
        color: #fff;
    }

    .modal-mahle .btn-close:hover {
        opacity: 1;
    }

    .icono-perfil-opcion:hover:not(.active) {
        background: var(--mahle-teal-100);
        border-color: var(--mahle-teal-500);
    }

    .form-control-mahle:hover:not(:focus) {
        border-color: var(--mahle-line-strong);
    }

    body .galeria-item:hover .galeria-foto {
        transform: scale(1.04);
    }

    body .btn-action:hover,
    body .btn-volver-meses:hover {
        background: var(--mahle-teal-100);
        border-color: var(--mahle-teal-500);
    }

    body .btn-login-submit:hover {
        background: var(--mahle-cyan-hover);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 8px 20px rgba(0, 149, 217, .34);
    }
}

@media (max-width: 991.98px) {
    .sidebar-mahle {
        transform: translateX(-100%);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .sidebar-mahle.show {
        transform: translateX(0);
        box-shadow: 24px 0 60px rgba(7, 20, 48, .35);
    }
    .main-wrapper {
        margin-left: 0 !important;
        padding: 16px 16px calc(32px + env(safe-area-inset-bottom)) !important;
    }
    .topbar-mahle {
        flex-wrap: wrap;
        gap: 12px;
    }
}

@media (max-width: 767.98px) {
    input,
    select,
    textarea,
    .form-control-mahle,
    .rich-editor {
        font-size: 16px;
    }
    .modal-mahle .modal-body {
        padding: 20px;
    }
    .modal-mahle .modal-header,
    .modal-mahle .modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 575.98px) {
    .brand-logo-img {
        max-width: 150px;
    }
    .kpi-value {
        font-size: 1.6rem;
    }
    .hero-content {
        padding: 28px 22px !important;
    }
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .main-wrapper > :not(.modal):not(script):not(style):not(.row),
    .main-wrapper > .row > [class*="col"],
    .login-card > :not(form),
    .login-card form > *,
    .login-hero-mid > div > *,
    .card-recuperar,
    .lightbox-overlay.active,
    .lightbox-overlay.active img {
        animation-name: mahleFade;
        animation-duration: 160ms;
        animation-delay: 0ms !important;
    }

    .login-hero::before {
        animation: none;
    }

    .sidebar-mahle {
        transition: none;
    }

    .modal.fade .modal-dialog,
    .modal.fade .modal-dialog.modal-fullscreen {
        transform: none;
    }

    .btn-mahle:active,
    .btn-mahle-outline:active,
    .btn-mahle-danger:active,
    body .btn-login-submit:active,
    body .btn-linea-chip:active,
    body .btn-back:active,
    body .btn-volver-meses:active,
    body .btn-action:active,
    body .btn-editar-linea:active,
    body .btn-rich:active,
    .icono-perfil-opcion:active {
        transform: none;
    }

    a.kpi-card:hover {
        transform: none;
    }

    body .galeria-item:hover .galeria-foto {
        transform: none;
    }
}

:root {
    --mahle-teal-900: #0A1D45;
    --mahle-teal-800: #0B1B3A;
    --mahle-teal-700: #102C63;
    --mahle-teal-600: #0095D9;
    --mahle-teal-500: #27A8E2;
    --mahle-teal-400: #6CC8EF;
    --mahle-teal-100: #E3F4FC;
    --mahle-ink-900: #061230;
    --mahle-ink-800: #0A1A3C;
    --mahle-paper-0: #FFFFFF;
    --mahle-paper-50: #F2F5FA;
    --mahle-paper-100: #E9EEF6;
    --mahle-steel-700: #28344A;
    --mahle-steel-500: #5A6A82;
    --mahle-steel-300: #B3BFD0;
    --mahle-steel-100: #E3E8F0;
    --mahle-line-soft: #E3E8F1;
    --mahle-amber-500: #D98A16;
    --mahle-amber-100: #FBEBD4;
    --mahle-red-600: #B4302A;
    --mahle-red-100: #FBE5E3;
    --mahle-green-600: #1D8348;
    --mahle-green-100: #E1F5E9;

    --pro-line: #E3E8F1;
    --pro-line-strong: #CDD5E3;
    --pro-radius: 18px;
    --pro-radius-sm: 12px;
    --pro-shadow-1: 0 1px 2px rgba(6, 18, 48, .05), 0 8px 24px rgba(6, 18, 48, .06);
    --pro-shadow-2: 0 2px 4px rgba(6, 18, 48, .06), 0 18px 40px rgba(6, 18, 48, .12);
    --pro-glow: 0 10px 28px rgba(0, 149, 217, .30);
    --pro-ease: cubic-bezier(0.23, 1, 0.32, 1);
    --pro-ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
    --pro-ring: 0 0 0 4px rgba(0, 149, 217, .22);
}

@keyframes proRise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

@keyframes proFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes proPop {
    from { opacity: 0; transform: scale(.96); }
    to { opacity: 1; transform: none; }
}

@keyframes proGrid {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(40px, 40px, 0); }
}

@keyframes proDrift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-90px, 70px, 0) scale(1.18); }
}

@keyframes proPulse {
    0% { transform: scale(1); opacity: .55; }
    100% { transform: scale(2.8); opacity: 0; }
}

@keyframes proFill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

body:has(.main-wrapper) {
    background: var(--pro-bg, #F2F5FA);
}

body:has(.main-wrapper)::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(760px 420px at 100% -4%, rgba(0, 149, 217, .13), transparent 62%),
        radial-gradient(620px 380px at -6% 104%, rgba(16, 44, 99, .10), transparent 62%),
        radial-gradient(circle at 1px 1px, rgba(10, 29, 69, .10) 1px, transparent 0);
    background-size: auto, auto, 24px 24px;
}

.sidebar-mahle {
    background:
        radial-gradient(460px 320px at 0% 0%, rgba(0, 149, 217, .34), transparent 70%),
        radial-gradient(380px 300px at 100% 100%, rgba(0, 149, 217, .16), transparent 70%),
        linear-gradient(185deg, #061230 0%, #0A1D45 100%);
    border-right: 1px solid rgba(255, 255, 255, .06);
}

.sidebar-mahle::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 72%);
    mask-image: linear-gradient(180deg, #000, transparent 72%);
}

.brand-header {
    position: relative;
    z-index: 1;
    min-height: 84px;
    padding: 20px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.menu-nav {
    position: relative;
    z-index: 1;
    padding: 14px 12px 12px;
}

.nav-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 14px 8px;
    font-family: var(--font-mono);
    font-size: .62rem;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .36);
}

.nav-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .12), transparent);
}

.menu-link {
    gap: 12px;
    padding: 7px 12px 7px 8px;
    margin-bottom: 3px;
    border-radius: 12px;
    font-size: .875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .74);
    box-shadow: none;
    background: transparent;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.menu-link i {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-size: 1rem;
    opacity: 1;
    color: rgba(255, 255, 255, .72);
    background: rgba(255, 255, 255, .06);
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.menu-link.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(0, 149, 217, .22), rgba(0, 149, 217, .04));
    box-shadow: inset 0 0 0 1px rgba(108, 200, 239, .16);
}

.menu-link.active i {
    color: #fff;
    background: linear-gradient(135deg, #22B0EC, #0079B8);
    box-shadow: 0 6px 16px rgba(0, 149, 217, .5);
}

.menu-link-logout i {
    color: #f4b3a5;
    background: rgba(180, 48, 42, .16);
}

.sidebar-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 12px calc(14px + env(safe-area-inset-bottom));
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .09);
}

.sidebar-footer .pulse {
    position: relative;
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #32D583;
}

.sidebar-footer .pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #32D583;
    animation: proPulse 2.2s ease-out infinite;
}

.sidebar-footer strong {
    display: block;
    font-size: .76rem;
    font-weight: 600;
    color: #fff;
}

.sidebar-footer span {
    display: block;
    font-family: var(--font-mono);
    font-size: .62rem;
    letter-spacing: .4px;
    color: rgba(255, 255, 255, .5);
}

.topbar-mahle {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 4px 0 6px;
    margin-bottom: 28px !important;
}

.page-header .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    font-size: .68rem;
    letter-spacing: 1.6px;
    color: var(--mahle-teal-600);
}

.page-header .eyebrow::before {
    content: '';
    width: 22px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--mahle-teal-600), var(--mahle-teal-400));
}

.page-header h4 {
    font-size: clamp(1.5rem, 2.6vw, 2.15rem);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.1;
    color: var(--mahle-ink-900);
}

.topbar-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--pro-line);
    box-shadow: 0 1px 2px rgba(6, 18, 48, .05);
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .3px;
    color: var(--mahle-steel-500);
    font-variant-numeric: tabular-nums;
}

.topbar-date i {
    color: var(--mahle-teal-600);
}

.user-profile {
    padding: 6px 8px 6px 16px !important;
    border: 1px solid var(--pro-line);
    border-radius: 14px;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(6, 18, 48, .05);
    transition: box-shadow .2s ease, border-color .2s ease;
}

.avatar-box {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: linear-gradient(135deg, #22B0EC, #102C63);
    box-shadow: 0 4px 10px rgba(0, 149, 217, .28);
}

.kpi-card {
    border: 1px solid var(--pro-line);
    border-radius: var(--pro-radius);
    padding: 22px;
    background: #fff;
    box-shadow: var(--pro-shadow-1);
}

.kpi-card:is(.kpi-blue, .kpi-green, .kpi-amber, .kpi-purple) {
    background:
        radial-gradient(260px 140px at 0% 0%, color-mix(in srgb, var(--kpi-accent) 11%, transparent), transparent 70%),
        #fff;
}

.kpi-card:is(.kpi-blue, .kpi-green, .kpi-amber, .kpi-purple)::before {
    top: 24px;
    bottom: 24px;
    width: 4px;
}

.kpi-card .kpi-icon-wrapper {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 1.25rem;
    color: #fff;
    background: linear-gradient(135deg, var(--kpi-accent, var(--mahle-teal-600)), color-mix(in srgb, var(--kpi-accent, var(--mahle-teal-600)) 62%, #061230));
    box-shadow: 0 8px 18px color-mix(in srgb, var(--kpi-accent, var(--mahle-teal-600)) 38%, transparent);
}

.kpi-title {
    font-size: .64rem;
    letter-spacing: 1.2px;
}

.kpi-value {
    font-size: 2.3rem;
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1.1;
    margin-top: 8px;
    font-variant-numeric: tabular-nums;
}

.hero-card {
    border-radius: 26px;
    box-shadow: var(--pro-shadow-2);
    background: #061230;
}

.hero-card::after {
    content: '';
    position: absolute;
    right: -140px;
    top: -170px;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(circle, rgba(0, 149, 217, .42), transparent 65%);
    animation: proDrift 14s ease-in-out infinite alternate;
}

.hero-overlay {
    inset: -40px;
    will-change: transform;
    animation: proGrid 10s linear infinite;
}

.hero-content h1 {
    font-size: clamp(1.8rem, 3.4vw, 2.85rem);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.07;
}

.hero-kicker {
    border-radius: 999px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
}

.hero-status {
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
}

.hero-card .carousel-indicators [data-bs-target] {
    position: relative;
    width: 34px;
    height: 3px;
    border-radius: 3px;
    opacity: 1;
    background-color: rgba(255, 255, 255, .25);
}

.hero-card .carousel-indicators .active::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 3px;
    background: #fff;
    transform-origin: left center;
    animation: proFill 5.5s linear forwards;
}

.info-card,
.quick-action-card,
.plant-facts,
.area-header,
.line-card,
.table-card {
    border: 1px solid var(--pro-line);
    border-radius: var(--pro-radius);
    background: #fff;
    box-shadow: var(--pro-shadow-1);
}

.info-card,
.quick-action-card {
    padding: 24px;
}

.info-icon,
.quick-action-icon,
.area-card-icon,
.categoria-icon {
    color: #fff;
    background: linear-gradient(135deg, #22B0EC, #0A5C94);
    box-shadow: 0 8px 18px rgba(0, 149, 217, .32);
}

.info-icon,
.quick-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
}

.categoria-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
}

.welcome-card {
    border-radius: 24px;
    background:
        radial-gradient(480px 260px at 100% 0%, rgba(0, 149, 217, .32), transparent 70%),
        linear-gradient(160deg, #061230 0%, #0A1D45 100%);
    box-shadow: var(--pro-shadow-2);
}

.plant-facts {
    overflow: hidden;
}

.fact-item {
    padding: 17px 20px;
}

.section-heading .label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.section-heading .label::before {
    content: '';
    width: 18px;
    height: 3px;
    border-radius: 3px;
    background: var(--mahle-teal-600);
}

.section-heading h5 {
    font-size: 1.25rem;
    letter-spacing: -.02em;
}

.area-card .kpi-title {
    color: var(--mahle-teal-600);
}

.area-stat,
.categoria-stat,
.data-item {
    border: 1px solid var(--pro-line);
    border-radius: var(--pro-radius-sm);
    background: var(--mahle-paper-50);
}

.area-funcion-box {
    border-radius: var(--pro-radius-sm);
    border-left: 3px solid var(--mahle-teal-600);
    background: linear-gradient(90deg, #E8F6FD, #F4F8FC);
}

.area-header {
    padding: 28px;
    background:
        radial-gradient(420px 200px at 100% 0%, rgba(0, 149, 217, .10), transparent 70%),
        #fff;
}

.area-title {
    font-size: 2rem;
    letter-spacing: -.035em;
}

.badge-categoria-actual {
    border-radius: 999px;
    background: var(--mahle-teal-100);
    border: 1px solid rgba(0, 149, 217, .35);
}

.btn-back {
    border-radius: 12px;
    border: 1px solid var(--pro-line-strong);
    box-shadow: 0 1px 2px rgba(6, 18, 48, .05);
}

.line-header {
    padding: 22px 26px;
    background: linear-gradient(90deg, #F6F9FD, #fff);
}

.line-number {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #102C63, #061230);
    box-shadow: 0 6px 14px rgba(6, 18, 48, .25);
}

.line-name {
    font-size: 1.12rem;
    letter-spacing: -.02em;
}

.quickbar-scroll {
    border-radius: 16px;
    border: 1px solid var(--pro-line);
    box-shadow: var(--pro-shadow-2);
    background: rgba(255, 255, 255, .96);
}

.btn-linea-chip {
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--pro-line-strong);
}

.btn-agregar-linea-chip {
    background: linear-gradient(135deg, #102C63, #061230);
    border-color: #061230;
}

.table-equipos thead th,
table thead th {
    background: #F4F7FB;
    color: var(--mahle-steel-500);
    letter-spacing: .8px;
    border-bottom: 1px solid var(--pro-line);
}

.table-equipos tbody td,
table tbody td {
    border-bottom: 1px solid #EDF1F7;
}

.fila-equipo:hover td:first-child,
table tbody tr:hover td:first-child {
    box-shadow: inset 3px 0 0 var(--mahle-teal-600);
}

.status-active,
.status-inactive,
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
}

.status-active::before,
.status-inactive::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.badge-activo,
.badge-inactivo {
    border-radius: 999px;
}

.mes-card {
    border-radius: 16px;
    padding: 22px;
}

.mes-card-icono {
    width: 46px;
    height: 46px;
    border-radius: 14px;
}

.buscador-mtto input {
    border-radius: 12px;
    background: #fff;
}

.btn-mahle,
.btn-mahle-outline,
.btn-mahle-danger {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    padding: 10px 18px;
    font-weight: 600;
    letter-spacing: -.005em;
    transition: transform .12s var(--pro-ease), background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .2s ease;
}

.btn-mahle {
    color: #fff;
    border: 1px solid #0382C2;
    background: linear-gradient(180deg, #19A4E3 0%, #0090D4 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 6px 16px rgba(0, 149, 217, .30);
}

.btn-mahle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 55%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .38), transparent);
    transform: translate3d(-130%, 0, 0) skewX(-20deg);
}

.btn-mahle-outline {
    background: #fff;
    border: 1px solid var(--pro-line-strong);
    box-shadow: 0 1px 2px rgba(6, 18, 48, .05);
}

.modal-mahle .modal-content {
    border-radius: 22px;
    box-shadow: 0 40px 90px rgba(6, 18, 48, .42);
}

.modal-mahle .modal-header {
    padding: 24px 28px;
    background:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 28px 28px,
        radial-gradient(420px 180px at 100% 0%, rgba(0, 149, 217, .45), transparent 70%),
        linear-gradient(135deg, #061230, #102C63);
}

.modal-mahle .modal-title {
    font-size: 1.12rem;
    letter-spacing: -.02em;
}

.modal-mahle .btn-close {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, .12);
    background-size: 12px;
    opacity: 1;
}

.modal-backdrop {
    --bs-backdrop-bg: #061230;
    --bs-backdrop-opacity: .62;
}

.form-control-mahle {
    border-radius: 12px;
    padding: 11px 14px;
    border: 1.5px solid var(--pro-line);
    background: #FAFBFD;
}

.form-control-mahle:focus {
    background: #fff;
    border-color: var(--mahle-teal-500);
    box-shadow: var(--pro-ring);
}

.alert {
    border: 0;
    border-left: 4px solid currentColor;
    border-radius: 14px;
    box-shadow: var(--pro-shadow-1);
}

.alert.is-leaving {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .22s var(--pro-ease), transform .22s var(--pro-ease);
}

.main-wrapper > :not(.modal):not(script):not(style):not(.row) {
    animation: proRise .42s var(--pro-ease) backwards;
}

.main-wrapper > :nth-child(2) { animation-delay: 40ms; }
.main-wrapper > :nth-child(3) { animation-delay: 80ms; }
.main-wrapper > :nth-child(4) { animation-delay: 120ms; }
.main-wrapper > :nth-child(5) { animation-delay: 160ms; }
.main-wrapper > :nth-child(6) { animation-delay: 200ms; }
.main-wrapper > :nth-child(n+7) { animation-delay: 240ms; }

.main-wrapper > .row > [class*="col"] {
    animation: proRise .46s var(--pro-ease) backwards;
}

.main-wrapper > .row > [class*="col"]:nth-child(1) { animation-delay: 80ms; }
.main-wrapper > .row > [class*="col"]:nth-child(2) { animation-delay: 130ms; }
.main-wrapper > .row > [class*="col"]:nth-child(3) { animation-delay: 180ms; }
.main-wrapper > .row > [class*="col"]:nth-child(4) { animation-delay: 230ms; }
.main-wrapper > .row > [class*="col"]:nth-child(5) { animation-delay: 270ms; }
.main-wrapper > .row > [class*="col"]:nth-child(n+6) { animation-delay: 300ms; }

.js .reveal {
    opacity: 0;
    transform: translateY(18px);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity .5s var(--pro-ease), transform .5s var(--pro-ease);
    transition-delay: var(--reveal-delay, 0ms);
}

.login-hero {
    background:
        radial-gradient(640px 420px at 12% 18%, rgba(0, 149, 217, .38), transparent 62%),
        radial-gradient(560px 420px at 92% 96%, rgba(34, 176, 236, .22), transparent 62%),
        linear-gradient(160deg, #061230 0%, #0A1D45 62%, #040B1F 100%);
}

.login-hero .grid-overlay {
    inset: -44px;
    will-change: transform;
    animation: proGrid 12s linear infinite;
    background-size: 44px 44px;
}

.login-hero::before {
    content: '';
    position: absolute;
    width: 640px;
    height: 640px;
    left: -140px;
    bottom: -220px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(0, 149, 217, .34), transparent 65%);
    animation: proDrift 16s ease-in-out infinite alternate;
}

.login-hero-mid h1 {
    font-size: clamp(2.2rem, 3.6vw, 3.3rem);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1.04;
    background: linear-gradient(120deg, #fff 35%, #8DD6F6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.login-feature {
    align-items: center;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .10);
    max-width: 460px;
    transition: background-color .2s ease, border-color .2s ease;
}

.login-feature i {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    margin: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #22B0EC, #0079B8);
    box-shadow: 0 6px 14px rgba(0, 149, 217, .4);
}

.login-panel {
    background:
        radial-gradient(circle at 1px 1px, rgba(10, 29, 69, .09) 1px, transparent 0) 0 0 / 22px 22px,
        #F4F7FB;
}

.login-card {
    max-width: 440px;
    padding: 44px 40px 34px;
    background: #fff;
    border: 1px solid var(--pro-line);
    border-radius: 26px;
    box-shadow: var(--pro-shadow-2);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0095D9, #6CC8EF, #102C63);
}

.login-card h2 {
    font-size: 2rem;
    letter-spacing: -.035em;
}

.field-login input {
    height: 56px;
    border-radius: 14px;
    background: #FAFBFD;
}

body .btn-login-submit {
    position: relative;
    overflow: hidden;
    height: 56px;
    border-radius: 14px;
    border: 1px solid #0382C2;
    background: linear-gradient(180deg, #19A4E3 0%, #0090D4 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 10px 24px rgba(0, 149, 217, .34);
}

body .btn-login-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 55%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .38), transparent);
    transform: translate3d(-130%, 0, 0) skewX(-20deg);
}

.card-recuperar {
    border-radius: 26px;
    padding: 46px 42px;
    box-shadow: 0 40px 90px rgba(0, 0, 0, .42);
    animation: proRise .5s var(--pro-ease) backwards;
}

.lightbox-overlay.active img {
    animation: proPop .24s var(--pro-ease);
}

@media (hover: hover) and (pointer: fine) {

    .menu-link:hover {
        color: #fff;
        background: rgba(255, 255, 255, .07);
    }

    .menu-link:hover i {
        color: #fff;
        background: rgba(255, 255, 255, .13);
    }

    .menu-link.active:hover i {
        background: linear-gradient(135deg, #22B0EC, #0079B8);
    }

    .menu-link-logout:hover i {
        background: rgba(180, 48, 42, .32);
    }

    .user-profile:hover {
        border-color: var(--pro-line-strong);
        box-shadow: var(--pro-shadow-1);
    }

    .user-profile:hover .avatar-box {
        box-shadow: 0 4px 10px rgba(0, 149, 217, .28);
    }

    a.kpi-card:hover,
    .kpi-card-link:hover .kpi-card,
    .info-card:hover,
    .quick-action-card:hover {
        border-color: rgba(0, 149, 217, .40);
        box-shadow: var(--pro-shadow-2);
    }

    .btn-mahle:hover {
        background: linear-gradient(180deg, #0F9BDC 0%, #0082C4 100%);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 10px 24px rgba(0, 149, 217, .42);
    }

    .btn-mahle:hover::after,
    body .btn-login-submit:hover::after {
        transform: translate3d(330%, 0, 0) skewX(-20deg);
        transition: transform .7s var(--pro-ease);
    }

    body .btn-login-submit:hover {
        background: linear-gradient(180deg, #0F9BDC 0%, #0082C4 100%);
    }

    .btn-agregar-linea-chip:hover {
        background: linear-gradient(135deg, #1B3F86, #0A1D45);
        color: #fff;
    }

    .login-feature:hover {
        background: rgba(255, 255, 255, .09);
        border-color: rgba(108, 200, 239, .35);
    }

    .area-card:hover,
    .categoria-card:hover {
        border-color: rgba(0, 149, 217, .40);
        box-shadow: var(--pro-shadow-2);
    }
}

@media (max-width: 991.98px) {
    .topbar-meta .topbar-date {
        display: none;
    }
    .topbar-mahle {
        margin-bottom: 20px !important;
    }
}

@media (max-width: 575.98px) {
    .kpi-value {
        font-size: 2rem;
    }
    .login-card,
    .card-recuperar {
        padding: 34px 24px 28px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .main-wrapper > :not(.modal):not(script):not(style):not(.row),
    .main-wrapper > .row > [class*="col"],
    .card-recuperar {
        animation-name: proFade;
        animation-duration: .18s;
        animation-delay: 0ms !important;
    }

    .hero-card::after,
    .hero-overlay,
    .login-hero::before,
    .login-hero .grid-overlay,
    .sidebar-footer .pulse::after {
        animation: none;
    }

    .hero-card .carousel-indicators .active::before {
        animation: none;
        transform: none;
    }

    .js .reveal {
        transform: none;
    }

    .btn-mahle::after,
    body .btn-login-submit::after {
        display: none;
    }
}


html.menu-abierto {
    overflow: hidden;
}

.menu-nav {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 991.98px) {

    #sidebarToggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 46px;
        height: 46px;
        padding: 0;
        border-radius: 14px;
        border: 1px solid var(--pro-line);
        background: #fff;
        color: var(--mahle-ink-900);
        box-shadow: 0 1px 2px rgba(6, 18, 48, .06), 0 6px 14px rgba(6, 18, 48, .06);
        transition: transform .12s var(--pro-ease), box-shadow .2s ease;
    }

    #sidebarToggle:active {
        transform: scale(.95);
    }

    #sidebarToggle i {
        font-size: 1.5rem;
        line-height: 1;
    }

    .sidebar-mahle {
        width: min(86vw, 320px);
    }

    .sidebar-mahle.show {
        box-shadow: 30px 0 70px rgba(6, 18, 48, .45);
    }

    .btn-close-sidebar {
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        border-radius: 12px;
        background: rgba(255, 255, 255, .09);
        color: #fff;
    }

    .menu-link {
        padding-top: 9px;
        padding-bottom: 9px;
    }
}

@media (min-width: 992px) {

    #sidebarToggle {
        display: none !important;
    }
}

@media (max-width: 991.98px) {

    .topbar-mahle {
        flex-wrap: nowrap;
        align-items: center;
        gap: 12px;
    }

    .topbar-mahle > .d-flex {
        flex: 1 1 auto;
        min-width: 0;
    }

    .topbar-mahle .page-header {
        min-width: 0;
    }

    .topbar-mahle .page-header h4 {
        font-size: 1.3rem;
        overflow-wrap: anywhere;
    }

    .topbar-meta {
        flex-shrink: 0;
    }

    .user-profile {
        padding: 5px !important;
    }
}

@media (max-width: 575.98px) {

    .page-header .eyebrow {
        display: none;
    }
}

[hidden] {
    display: none !important;
}

@keyframes proCrece {
    from { transform: scaleX(0); }
}

.lista-toolbar,
.equipos-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.lista-toolbar {
    margin: 4px 0 20px;
}

.equipos-toolbar {
    margin-bottom: 16px;
}

.equipos-toolbar-der {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lista-buscador {
    position: relative;
    flex: 1 1 280px;
    max-width: 440px;
}

.lista-buscador i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mahle-steel-500);
    pointer-events: none;
}

.lista-buscador input {
    width: 100%;
    height: 46px;
    padding: 0 16px 0 42px;
    border-radius: 14px;
    border: 1.5px solid var(--pro-line);
    background: #fff;
    font-size: .88rem;
    color: var(--mahle-ink-900);
    box-shadow: 0 1px 2px rgba(6, 18, 48, .04);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.lista-buscador input:focus {
    outline: none;
    border-color: var(--mahle-teal-500);
    box-shadow: var(--pro-ring);
}

.lista-contador {
    font-family: var(--font-mono);
    font-size: .74rem;
    letter-spacing: .3px;
    color: var(--mahle-steel-500);
}

.lista-contador strong {
    font-size: .9rem;
    color: var(--mahle-ink-900);
    font-variant-numeric: tabular-nums;
}

.lista-vacia,
.equipos-sin-resultados {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 40px 20px;
    text-align: center;
    border: 1.5px dashed var(--pro-line-strong);
    border-radius: 18px;
    background: rgba(255, 255, 255, .6);
    color: var(--mahle-steel-500);
}

.lista-vacia i,
.equipos-sin-resultados i {
    font-size: 1.6rem;
    color: var(--mahle-teal-600);
}

.lista-vacia strong,
.equipos-sin-resultados strong {
    color: var(--mahle-ink-900);
}

.area-card {
    --tono-a: #0A3A7A;
    --tono-b: #0095D9;
    padding: 0;
    overflow: hidden;
    border-radius: 22px;
}

.area-tono-1 { --tono-a: #0B5F63; --tono-b: #1FB5A8; }
.area-tono-2 { --tono-a: #2B2F8F; --tono-b: #5B6CF0; }
.area-tono-3 { --tono-a: #8A4A0B; --tono-b: #E39A2D; }
.area-tono-4 { --tono-a: #1B2A4A; --tono-b: #5C7AA8; }

.area-cabecera {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 22px 22px;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(135deg, var(--tono-a), var(--tono-b));
}

.area-cabecera::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(120deg, #000, transparent 78%);
    mask-image: linear-gradient(120deg, #000, transparent 78%);
}

.area-cabecera::after {
    content: '';
    position: absolute;
    right: -60px;
    top: -90px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 255, 255, .30), transparent 65%);
}

.area-numero {
    position: absolute;
    right: 16px;
    bottom: -16px;
    z-index: 0;
    font-family: var(--font-mono);
    font-size: 4.4rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.05em;
    color: rgba(255, 255, 255, .15);
    transition: transform .6s var(--pro-ease);
}

.area-card .area-card-icon {
    position: relative;
    z-index: 1;
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 16px;
    font-size: 1.45rem;
    color: #fff;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .30);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .16);
}

.area-cabecera-texto {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.area-etiqueta {
    font-family: var(--font-mono);
    font-size: .62rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .78);
}

.area-nombre {
    margin: 3px 0 0;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.15;
    color: #fff;
    overflow-wrap: anywhere;
}

.area-cuerpo {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 22px 22px;
}

.area-descripcion {
    margin: 0 0 14px;
    font-size: .9rem;
    font-weight: 500;
    color: var(--mahle-steel-700);
}

.area-card .area-funcion-box {
    margin: 0 0 18px;
    border-left: 3px solid var(--tono-b);
    background: linear-gradient(90deg, color-mix(in srgb, var(--tono-b) 10%, #fff), #F7F9FC);
}

.area-card .area-funcion-box span {
    color: var(--tono-a);
}

.area-card .area-stats {
    margin-top: auto;
    padding-top: 0;
}

.area-card .area-stat strong {
    font-size: 1.7rem;
    letter-spacing: -.03em;
    color: var(--tono-a);
}

.area-entrar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding: 13px 18px;
    border-radius: 14px;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, var(--tono-a), var(--tono-b));
    box-shadow: 0 10px 22px color-mix(in srgb, var(--tono-b) 32%, transparent);
    transition: transform .12s var(--pro-ease), box-shadow .25s ease;
}

.area-entrar:active {
    transform: scale(.98);
}

.area-entrar i {
    transition: transform .3s var(--pro-ease);
}

.migas {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--mahle-steel-500);
}

.migas a {
    color: var(--mahle-teal-600);
    text-decoration: none;
}

.migas i {
    font-size: .6rem;
    opacity: .6;
}

.migas span {
    color: var(--mahle-ink-900);
    font-weight: 600;
}

.area-header {
    position: relative;
    overflow: hidden;
}

.area-header::after {
    content: '';
    position: absolute;
    right: -80px;
    bottom: -130px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(0, 149, 217, .16), transparent 65%);
}

.area-header > * {
    position: relative;
    z-index: 1;
}

.categoria-card {
    --tono-a: #0A3A7A;
    --tono-b: #0095D9;
    padding: 0;
    overflow: hidden;
    border-radius: 22px;
}

.categoria-tono-laboratorio { --tono-a: #0B5F63; --tono-b: #1FB5A8; }
.categoria-tono-almacenamiento { --tono-a: #2B2F8F; --tono-b: #6C7BF2; }

.categoria-visual {
    position: relative;
    display: flex;
    align-items: flex-end;
    height: 158px;
    padding: 20px 22px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, var(--tono-a), var(--tono-b));
}

.categoria-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-mask-image: linear-gradient(110deg, #000, transparent 80%);
    mask-image: linear-gradient(110deg, #000, transparent 80%);
}

.categoria-marca {
    position: absolute;
    right: -20px;
    bottom: -34px;
    font-size: 9.5rem;
    line-height: 1;
    color: rgba(255, 255, 255, .15);
    transform: rotate(-8deg);
    transition: transform .7s var(--pro-ease);
}

.categoria-indice {
    position: absolute;
    top: 18px;
    left: 22px;
    padding: 5px 11px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: .62rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .28);
}

.categoria-card .categoria-icon {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0;
    display: grid;
    place-items: center;
    border-radius: 19px;
    font-size: 1.75rem;
    color: #fff;
    background: rgba(255, 255, 255, .20);
    border: 1px solid rgba(255, 255, 255, .34);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .18);
}

.categoria-cuerpo {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 22px 22px;
}

.categoria-card .categoria-nombre {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -.03em;
}

.categoria-card .categoria-descripcion {
    margin-top: 4px;
}

.categoria-card .categoria-stats {
    margin-top: auto;
    padding-top: 18px;
}

.categoria-card .categoria-stat strong {
    font-size: 1.6rem;
    letter-spacing: -.03em;
    color: var(--tono-a);
}

.categoria-entrar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed var(--pro-line-strong);
    font-size: .9rem;
    font-weight: 600;
    color: var(--tono-a);
}

.categoria-flecha {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--tono-a), var(--tono-b));
    box-shadow: 0 8px 18px color-mix(in srgb, var(--tono-b) 35%, transparent);
    transition: transform .35s var(--pro-ease);
}

.chip-total {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: .64rem;
    font-weight: 600;
    color: var(--mahle-teal-700);
    background: var(--mahle-teal-100);
}

.line-progreso {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.line-progreso-barra {
    position: relative;
    width: 150px;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #E4EAF3;
}

.line-progreso-barra span {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #1D8348, #34C77B);
    transform-origin: left center;
    transform: scaleX(var(--p, 0));
    animation: proCrece 1s var(--pro-ease) .3s backwards;
}

.line-progreso-texto {
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .3px;
    color: var(--mahle-steel-500);
}

.vista-toggle {
    display: inline-flex;
    padding: 3px;
    border-radius: 13px;
    background: #EAEFF6;
    border: 1px solid var(--pro-line);
}

.vista-btn {
    width: 38px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--mahle-steel-500);
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .12s var(--pro-ease);
}

.vista-btn:active {
    transform: scale(.94);
}

.vista-btn.is-activa {
    color: var(--mahle-teal-600);
    background: #fff;
    box-shadow: 0 1px 3px rgba(6, 18, 48, .14);
}

.equipos-bloque[data-vista="lista"] .vista-tarjetas,
.equipos-bloque[data-vista="tarjetas"] .vista-lista {
    display: none;
}

.equipos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
}

.equipo-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--pro-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--pro-shadow-1);
    transition: transform .3s var(--pro-ease), box-shadow .3s ease, border-color .3s ease;
}

.equipo-card:focus-visible {
    outline: 2px solid var(--mahle-teal-600);
    outline-offset: 3px;
}

.equipo-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #EAEFF6;
}

.equipo-card-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .6s var(--pro-ease);
}

.equipo-card-sinfoto {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 2.6rem;
    color: var(--mahle-steel-300);
    background: linear-gradient(135deg, #EEF2F8, #E1E8F2);
}

.equipo-card-estado {
    position: absolute;
    top: 12px;
    left: 12px;
}

.equipo-card-estado .status-active,
.equipo-card-estado .status-inactive {
    box-shadow: 0 4px 12px rgba(6, 18, 48, .18);
}

.equipo-card-fotos {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 600;
    color: #fff;
    background: rgba(6, 18, 48, .74);
}

.equipo-card-cuerpo {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 5px;
    padding: 16px 18px 8px;
}

.equipo-card-nombre {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.equipo-meta {
    display: grid;
    gap: 7px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.equipo-meta li {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    font-size: .8rem;
    color: var(--mahle-steel-700);
}

.equipo-meta i {
    flex-shrink: 0;
    color: var(--mahle-teal-600);
}

.equipo-meta span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.equipo-card-pie {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding: 13px 18px;
    border-top: 1px solid #EDF1F7;
    font-size: .8rem;
    font-weight: 600;
    color: var(--mahle-teal-600);
}

.equipo-card-pie i {
    transition: transform .3s var(--pro-ease);
}

.fila-equipo,
.equipo-card {
    animation: proRise .45s var(--pro-ease) backwards;
}

.table-equipos tbody tr:nth-child(1), .equipos-grid .equipo-card:nth-child(1) { animation-delay: 60ms; }
.table-equipos tbody tr:nth-child(2), .equipos-grid .equipo-card:nth-child(2) { animation-delay: 95ms; }
.table-equipos tbody tr:nth-child(3), .equipos-grid .equipo-card:nth-child(3) { animation-delay: 130ms; }
.table-equipos tbody tr:nth-child(4), .equipos-grid .equipo-card:nth-child(4) { animation-delay: 165ms; }
.table-equipos tbody tr:nth-child(5), .equipos-grid .equipo-card:nth-child(5) { animation-delay: 200ms; }
.table-equipos tbody tr:nth-child(6), .equipos-grid .equipo-card:nth-child(6) { animation-delay: 235ms; }
.table-equipos tbody tr:nth-child(n+7), .equipos-grid .equipo-card:nth-child(n+7) { animation-delay: 270ms; }

.modal-fullscreen .modal-body {
    padding: 30px max(24px, calc((100vw - 1320px) / 2)) 44px;
    background: #F2F5FA;
}

.detalle-titulo-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.detalle-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: .64rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--mahle-teal-400);
}

.modal-fullscreen .modal-title {
    font-size: 1.55rem;
    overflow-wrap: anywhere;
}

.detalle-resumen {
    padding: 22px 26px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--pro-line);
    box-shadow: var(--pro-shadow-1);
    margin-bottom: 24px !important;
}

.detalle-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.chip-dato {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--mahle-steel-700);
    background: #F1F5FA;
    border: 1px solid var(--pro-line);
}

.chip-dato i {
    color: var(--mahle-teal-600);
}

.detalle-layout {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr);
}

.detalle-bloque-media,
.detalle-bloque-info {
    min-width: 0;
    padding: 24px 26px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--pro-line);
    box-shadow: var(--pro-shadow-1);
}

.detalle-seccion-titulo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -.02em;
}

.detalle-seccion-titulo i {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    font-size: .95rem;
    color: var(--mahle-teal-600);
    background: var(--mahle-teal-100);
}

.detalle-conteo {
    padding: 2px 10px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: .68rem;
    font-weight: 600;
    color: var(--mahle-teal-700);
    background: var(--mahle-teal-100);
}

.detalle-bloque-info .detalle-seccion-titulo {
    margin: 4px 0 4px;
}

.detalle-bloque-media .galeria-fotos {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.detalle-bloque-media .galeria-fotos .galeria-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
    min-height: 220px;
}

.detalle-bloque-info .equipment-data-detalle {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.detalle-bloque-info .data-item {
    position: relative;
    padding: 12px 14px 12px 17px;
    border: 1px solid var(--pro-line);
    border-radius: 12px;
    background: #F8FAFD;
}

.detalle-bloque-info .data-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--mahle-teal-600);
}

.detalle-bloque-info .data-value {
    font-size: .88rem;
    color: var(--mahle-ink-900);
}

.detalle-bloque-info .location-box {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px !important;
    padding: 13px 15px;
    border-radius: 12px;
    font-size: .82rem;
    color: var(--mahle-steel-700);
    background: #F1F5FA;
    border: 1px dashed var(--pro-line-strong);
}

.detalle-bloque-info .location-box i {
    color: var(--mahle-teal-600);
}

.modal.show .detalle-resumen {
    animation: proRise .45s var(--pro-ease) .08s backwards;
}

.modal.show .detalle-bloque-media {
    animation: proRise .5s var(--pro-ease) .14s backwards;
}

.modal.show .detalle-bloque-info {
    animation: proRise .5s var(--pro-ease) .2s backwards;
}

.modal.show .galeria-item {
    animation: proPop .45s var(--pro-ease) backwards;
}

.modal.show .galeria-item:nth-child(1) { animation-delay: .22s; }
.modal.show .galeria-item:nth-child(2) { animation-delay: .28s; }
.modal.show .galeria-item:nth-child(3) { animation-delay: .34s; }
.modal.show .galeria-item:nth-child(4) { animation-delay: .40s; }
.modal.show .galeria-item:nth-child(n+5) { animation-delay: .46s; }

@media (min-width: 992px) {

    .detalle-layout {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
        align-items: start;
    }
}

@media (hover: hover) and (pointer: fine) {

    .area-card:hover .area-numero {
        transform: translate3d(-10px, -8px, 0);
    }

    .area-card:hover .area-entrar i {
        transform: translateX(5px);
    }

    .area-card:hover .area-entrar {
        box-shadow: 0 14px 28px color-mix(in srgb, var(--tono-b) 42%, transparent);
    }

    a.categoria-card:hover {
        transform: translateY(-5px);
    }

    .categoria-card:hover .categoria-marca {
        transform: rotate(0deg) scale(1.1) translate3d(-12px, -8px, 0);
    }

    .categoria-card:hover .categoria-flecha {
        transform: translateX(5px);
    }

    .equipo-card:hover {
        transform: translateY(-5px);
        border-color: rgba(0, 149, 217, .45);
        box-shadow: var(--pro-shadow-2);
    }

    .equipo-card:hover .equipo-card-media img {
        transform: scale(1.07);
    }

    .equipo-card:hover .equipo-card-pie i {
        transform: translateX(5px);
    }

    .vista-btn:hover:not(.is-activa) {
        color: var(--mahle-ink-900);
    }

    .detalle-bloque-media .galeria-item:hover .galeria-foto {
        transform: scale(1.06);
    }
}

@media (max-width: 575.98px) {

    .area-nombre {
        font-size: 1.25rem;
    }

    .categoria-visual {
        height: 130px;
    }

    .categoria-marca {
        font-size: 7.5rem;
    }

    .line-progreso-barra {
        width: 110px;
    }

    .detalle-resumen,
    .detalle-bloque-media,
    .detalle-bloque-info {
        padding: 18px;
    }

    .equipos-toolbar-der {
        width: 100%;
        justify-content: space-between;
    }
}

@media (prefers-reduced-motion: reduce) {

    .fila-equipo,
    .equipo-card,
    .modal.show .detalle-resumen,
    .modal.show .detalle-bloque-media,
    .modal.show .detalle-bloque-info,
    .modal.show .galeria-item {
        animation-name: proFade;
        animation-duration: .18s;
        animation-delay: 0ms !important;
    }

    .line-progreso-barra span {
        animation: none;
    }

    .area-card:hover .area-numero,
    .area-card:hover .area-entrar i,
    a.categoria-card:hover,
    .categoria-card:hover .categoria-marca,
    .categoria-card:hover .categoria-flecha,
    .equipo-card:hover,
    .equipo-card:hover .equipo-card-media img,
    .equipo-card:hover .equipo-card-pie i {
        transform: none;
    }
}

.kpi-barra {
    height: 6px;
    margin-top: 16px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(6, 18, 48, .07);
}

.kpi-barra span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--kpi-accent, var(--mahle-teal-600)), color-mix(in srgb, var(--kpi-accent, var(--mahle-teal-600)) 55%, #fff));
    transform-origin: left center;
    transform: scaleX(var(--p, 0));
    animation: proCrece 1s var(--pro-ease) .35s backwards;
}

.kpi-pie {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--kpi-accent, var(--mahle-teal-600));
}

.kpi-pie i {
    transition: transform .3s var(--pro-ease);
}

.kpi-card.link-kpi {
    height: 100%;
}

.kpi-card.link-kpi.active {
    border: 1px solid var(--kpi-accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--kpi-accent) 16%, transparent), var(--pro-shadow-2);
}

.main-wrapper .row > [class*="col"] > .kpi-card {
    height: 100%;
}

.kpi-button small {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--kpi-accent, var(--mahle-teal-600)) !important;
}

.kpi-button small::after {
    content: "\f138";
    font-family: "bootstrap-icons";
    font-weight: 400;
    transition: transform .3s var(--pro-ease);
}

.grafica-cabecera {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.grafica-etiqueta {
    padding: 4px 11px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: .62rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--mahle-teal-700);
    background: var(--mahle-teal-100);
}

.grafica-dona {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    align-items: center;
}

.grafica-dona-lienzo {
    position: relative;
    width: 100%;
    max-width: 270px;
    height: 270px;
    margin: 0 auto;
}

.grafica-dona-centro {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.grafica-dona-centro strong {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.04em;
    font-variant-numeric: tabular-nums;
    color: var(--mahle-ink-900);
}

.grafica-dona-centro span {
    margin-top: 6px;
    font-family: var(--font-mono);
    font-size: .64rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--mahle-steel-500);
}

.leyenda-kpi {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.leyenda-kpi li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #F6F9FD;
    border: 1px solid var(--pro-line);
}

.leyenda-punto {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    border-radius: 5px;
    background: var(--c);
    box-shadow: 0 4px 10px color-mix(in srgb, var(--c) 40%, transparent);
}

.leyenda-kpi strong {
    display: block;
    font-size: .92rem;
    letter-spacing: -.01em;
}

.leyenda-kpi li span:not(.leyenda-punto) {
    font-family: var(--font-mono);
    font-size: .72rem;
    color: var(--mahle-steel-500);
}

.grafica-barras {
    position: relative;
    height: 320px;
}

.indicador-caja {
    border: 1px solid var(--pro-line) !important;
    border-radius: 16px !important;
    padding: 18px !important;
    background: linear-gradient(180deg, #fff, #F6F9FD);
}

.indicador-caja small {
    font-family: var(--font-mono);
    font-size: .62rem !important;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.indicador-caja strong {
    display: block;
    margin-top: 6px;
    font-size: 2.1rem !important;
    letter-spacing: -.035em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.mes-card {
    position: relative;
    --mes-acento: var(--mahle-teal-600);
}

.mes-color-01, .mes-color-02, .mes-color-03, .mes-color-04, .mes-color-05, .mes-color-06,
.mes-color-07, .mes-color-08, .mes-color-09, .mes-color-10, .mes-color-11, .mes-color-12, .mes-color-sf { --mes-acento: #0B5CA8; }

.mes-card-nombre {
    font-size: 1.05rem;
    letter-spacing: -.02em;
}

.mes-card-cantidad {
    font-family: var(--font-mono);
    font-size: .74rem;
    color: var(--mahle-steel-700);
}

.mes-barra {
    height: 5px;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(6, 18, 48, .09);
}

.mes-barra span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--mes-acento);
    transform-origin: left center;
    transform: scaleX(var(--p, 0));
    animation: proCrece .9s var(--pro-ease) .3s backwards;
}

.mes-card::after {
    content: "\f138";
    font-family: "bootstrap-icons";
    position: absolute;
    top: 18px;
    right: 18px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: .9rem;
    color: var(--mes-acento);
    background: rgba(255, 255, 255, .78);
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity .25s ease, transform .3s var(--pro-ease);
}

.meses-grid .mes-card {
    animation: proRise .45s var(--pro-ease) backwards;
}

.meses-grid .mes-card:nth-child(1) { animation-delay: 60ms; }
.meses-grid .mes-card:nth-child(2) { animation-delay: 95ms; }
.meses-grid .mes-card:nth-child(3) { animation-delay: 130ms; }
.meses-grid .mes-card:nth-child(4) { animation-delay: 165ms; }
.meses-grid .mes-card:nth-child(5) { animation-delay: 200ms; }
.meses-grid .mes-card:nth-child(6) { animation-delay: 235ms; }
.meses-grid .mes-card:nth-child(7) { animation-delay: 270ms; }
.meses-grid .mes-card:nth-child(8) { animation-delay: 305ms; }
.meses-grid .mes-card:nth-child(9) { animation-delay: 340ms; }
.meses-grid .mes-card:nth-child(10) { animation-delay: 375ms; }
.meses-grid .mes-card:nth-child(11) { animation-delay: 410ms; }
.meses-grid .mes-card:nth-child(n+12) { animation-delay: 445ms; }

#vistaDetalle {
    animation: proRise .35s var(--pro-ease);
}

#vistaMeses {
    animation: proFade .3s ease;
}

#tablaMantenimientos tbody tr {
    animation: proFade .25s ease backwards;
}

.tipo-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
}

.tipo-chip::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.tipo-preventivo {
    color: #0A6FA3;
    background: #E3F4FC;
}

.tipo-correctivo {
    color: #fff;
    background: #0B1B3A;
}

.filtro-activo-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--mahle-teal-700);
    background: var(--mahle-teal-100);
    border: 1px solid rgba(0, 149, 217, .32);
}

.detalle-contador {
    padding: 3px 11px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: .7rem;
    font-weight: 600;
    color: var(--mahle-teal-700);
    background: var(--mahle-teal-100);
}

.usuarios-toolbar {
    margin: 0 0 18px;
    gap: 12px 16px;
}

.usuarios-toolbar .lista-buscador {
    flex: 1 1 260px;
    max-width: 380px;
}

.filtro-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filtro-chip {
    padding: 8px 15px;
    border-radius: 999px;
    border: 1px solid var(--pro-line-strong);
    background: #fff;
    font-size: .78rem;
    font-weight: 600;
    color: var(--mahle-steel-700);
    transition: transform .12s var(--pro-ease), background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.filtro-chip:active {
    transform: scale(.96);
}

.filtro-chip.is-activo {
    color: #fff;
    border-color: #061230;
    background: linear-gradient(135deg, #102C63, #061230);
    box-shadow: 0 6px 14px rgba(6, 18, 48, .22);
}

.rol-chip,
.estado-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 700;
}

.rol-administrador {
    color: #fff;
    background: #061230;
}

.rol-administrador i {
    color: #6CC8EF;
}

.rol-tecnico {
    color: #0A6FA3;
    background: #E3F4FC;
}

.estado-chip::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.estado-activo {
    color: #1D8348;
    background: #E1F5E9;
}

.estado-inactivo {
    color: #B4302A;
    background: #FBE5E3;
}

.tabla-usuarios tbody tr {
    transition: background-color .15s ease;
    animation: proFade .3s ease backwards;
}

.celda-correo {
    color: var(--mahle-steel-700);
}

.celda-fecha {
    font-size: .86rem;
    color: var(--mahle-steel-700);
    font-variant-numeric: tabular-nums;
}

.celda-fecha-hora {
    display: block;
    font-family: var(--font-mono);
    font-size: .7rem;
    color: var(--mahle-steel-500);
}

.acciones-usuario {
    display: flex;
    align-items: center;
    gap: 8px;
}

.acciones-usuario .btn {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 1rem;
    transition: transform .12s var(--pro-ease), background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.acciones-usuario .btn:active {
    transform: scale(.92);
}

.acciones-usuario .btn-outline-primary {
    color: #0A6FA3;
    background: #E3F4FC;
}

.acciones-usuario .btn-outline-warning {
    color: #946B00;
    background: #FBEBD4;
}

.acciones-usuario .btn-outline-success {
    color: #1D8348;
    background: #E1F5E9;
}

.acciones-usuario .btn-outline-danger {
    color: #B4302A;
    background: #FBE5E3;
}

.acciones-usuario .badge {
    padding: 7px 12px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .5px;
    color: var(--mahle-steel-500) !important;
    background: #F1F5FA !important;
    border: 1px dashed var(--pro-line-strong) !important;
}

@media (min-width: 576px) {

    .grafica-dona {
        grid-template-columns: 270px minmax(0, 1fr);
    }
}

@media (hover: hover) and (pointer: fine) {

    a.kpi-card:hover .kpi-pie i,
    .kpi-button:hover small::after {
        transform: translateX(4px);
    }

    .mes-card:hover::after {
        opacity: 1;
        transform: none;
    }

    .filtro-chip:hover:not(.is-activo) {
        color: var(--mahle-teal-700);
        border-color: var(--mahle-teal-500);
        background: var(--mahle-teal-100);
    }

    .acciones-usuario .btn-outline-primary:hover {
        color: #fff;
        background: var(--mahle-teal-600);
        box-shadow: 0 6px 14px rgba(0, 149, 217, .35);
    }

    .acciones-usuario .btn-outline-warning:hover {
        color: #fff;
        background: var(--mahle-amber-500);
        box-shadow: 0 6px 14px rgba(217, 138, 22, .35);
    }

    .acciones-usuario .btn-outline-success:hover {
        color: #fff;
        background: var(--mahle-green-600);
        box-shadow: 0 6px 14px rgba(29, 131, 72, .35);
    }

    .acciones-usuario .btn-outline-danger:hover {
        color: #fff;
        background: var(--mahle-red-600);
        box-shadow: 0 6px 14px rgba(180, 48, 42, .35);
    }

    .filtro-activo-chip:hover {
        background: #D2ECF9;
    }
}

@media (max-width: 767.98px) {

    .tabla-usuarios,
    .tabla-usuarios tbody {
        display: block;
    }

    .tabla-usuarios thead {
        display: none;
    }

    .tabla-usuarios tbody tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px 16px;
        margin-bottom: 14px;
        padding: 18px;
        border: 1px solid var(--pro-line);
        border-radius: 18px;
        background: #fff;
        box-shadow: var(--pro-shadow-1);
    }

    .tabla-usuarios tbody td {
        display: block;
        padding: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .tabla-usuarios tbody td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        font-family: var(--font-mono);
        font-size: .6rem;
        letter-spacing: 1.2px;
        text-transform: uppercase;
        color: var(--mahle-steel-500);
    }

    .tabla-usuarios tbody td[data-label="ID"] {
        display: none;
    }

    .tabla-usuarios tbody td[data-label="Usuario"],
    .tabla-usuarios tbody td[data-label="Correo"],
    .tabla-usuarios tbody td[data-label="Acciones"] {
        grid-column: 1 / -1;
    }

    .usuarios-toolbar .lista-buscador {
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    .meses-grid .mes-card,
    #vistaDetalle,
    #tablaMantenimientos tbody tr,
    .tabla-usuarios tbody tr {
        animation-name: proFade;
        animation-duration: .18s;
        animation-delay: 0ms !important;
    }

    .kpi-barra span,
    .mes-barra span {
        animation: none;
    }

    a.kpi-card:hover .kpi-pie i,
    .kpi-button:hover small::after,
    .mes-card:hover::after {
        transform: none;
    }
}

.enlace-generado {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 22px;
    padding: 20px 22px;
    border-radius: 20px;
    background:
        radial-gradient(360px 160px at 100% 0%, rgba(0, 149, 217, .14), transparent 70%),
        #fff;
    border: 1px solid rgba(0, 149, 217, .38);
    box-shadow: 0 0 0 4px rgba(0, 149, 217, .10), var(--pro-shadow-1);
    animation: proRise .4s var(--pro-ease);
}

.enlace-generado-icono {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-size: 1.3rem;
    color: #fff;
    background: linear-gradient(135deg, #22B0EC, #0A5C94);
    box-shadow: 0 8px 18px rgba(0, 149, 217, .32);
}

.enlace-generado-cuerpo {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.enlace-generado-cuerpo strong {
    font-size: 1rem;
    letter-spacing: -.015em;
}

.enlace-generado-cuerpo > span {
    font-size: .84rem;
    line-height: 1.55;
    color: var(--mahle-steel-500);
}

.enlace-generado-caja {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.enlace-generado-caja input {
    flex: 1;
    min-width: 0;
    height: 46px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1.5px solid var(--pro-line-strong);
    background: #F6F9FD;
    font-family: var(--font-mono);
    font-size: .74rem;
    color: var(--mahle-ink-900);
}

.enlace-generado-caja input:focus {
    outline: none;
    border-color: var(--mahle-teal-500);
    box-shadow: var(--pro-ring);
}

.enlace-generado-caja .btn-mahle {
    flex-shrink: 0;
    white-space: nowrap;
}

.acciones-usuario .btn-outline-secondary {
    color: #28344A;
    background: #EEF2F8;
}

@media (hover: hover) and (pointer: fine) {

    .acciones-usuario .btn-outline-secondary:hover {
        color: #fff;
        background: #102C63;
        box-shadow: 0 6px 14px rgba(16, 44, 99, .32);
    }
}

@media (max-width: 575.98px) {

    .enlace-generado {
        flex-direction: column;
    }

    .enlace-generado-caja {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {

    .enlace-generado {
        animation-name: proFade;
        animation-duration: .18s;
    }
}

.modal-mahle .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.modal-titulo-bloque {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.modal-icono {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-size: 1.25rem;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .26);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 8px 18px rgba(0, 0, 0, .18);
}

.modal-subtitulo {
    margin: 3px 0 0;
    font-size: .8rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, .72);
}

.modal-mahle .modal-body {
    padding: 28px;
}

.modal-mahle .modal-footer {
    align-items: center;
    background: #F7F9FC;
}

.modal-nota {
    margin-right: auto;
    font-size: .76rem;
    color: var(--mahle-steel-500);
}

.form-seccion-titulo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--mahle-ink-900);
}

.form-seccion-titulo i {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 9px;
    font-size: .9rem;
    color: var(--mahle-teal-600);
    background: var(--mahle-teal-100);
}

.form-seccion-titulo::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--pro-line-strong), transparent);
}

.row > .col-12 > .form-seccion-titulo {
    margin-top: 12px;
    margin-bottom: 2px;
}

.row > .col-12:first-child > .form-seccion-titulo {
    margin-top: 0;
}

.modal-body > .form-seccion-titulo:not(:first-child),
.modal-body > .mt-4 + .form-seccion-titulo {
    margin-top: 26px;
}

select.form-control-mahle,
.form-select.form-control-mahle {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 42px;
    background-color: #FAFBFD;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%235A6A82' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 14px;
    cursor: pointer;
}

select.form-control-mahle:focus,
.form-select.form-control-mahle:focus {
    background-color: #fff;
}

textarea.form-control-mahle {
    min-height: 96px;
    line-height: 1.55;
    resize: vertical;
}

input[type="date"].form-control-mahle {
    min-height: 48px;
}

.form-control-mahle::placeholder {
    color: #9AA7BA;
}

.form-control-mahle:user-invalid {
    border-color: #D9534F;
    box-shadow: 0 0 0 4px rgba(180, 48, 42, .12);
}

.campo-icono {
    position: relative;
}

.campo-icono > i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mahle-steel-500);
    pointer-events: none;
    transition: color .2s ease;
}

.campo-icono > input {
    padding-left: 46px;
}

.campo-icono:focus-within > i {
    color: var(--mahle-teal-600);
}

.campo-password {
    position: relative;
}

.campo-password > input {
    padding-right: 52px;
}

.campo-password-ver {
    position: absolute;
    right: 6px;
    top: 50%;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 10px;
    color: var(--mahle-steel-500);
    background: transparent;
    transition: background-color .2s ease, color .2s ease, transform .12s var(--pro-ease);
}

.campo-password-ver:active {
    transform: translateY(-50%) scale(.92);
}

.campo-estado {
    position: relative;
    --tono: #0095D9;
}

.campo-estado::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    z-index: 2;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    background: var(--tono);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--tono) 20%, transparent);
    transition: background-color .25s ease, box-shadow .25s ease;
}

.campo-estado > select {
    padding-left: 40px;
    font-weight: 600;
}

.campo-estado[data-tono="activo"],
.campo-estado[data-tono="operativa"],
.campo-estado[data-tono="completado"] { --tono: #1D8348; }

.campo-estado[data-tono="inactivo"],
.campo-estado[data-tono="detenida"] { --tono: #B4302A; }

.campo-estado[data-tono="mantenimiento"],
.campo-estado[data-tono="pendiente"] { --tono: #D98A16; }

.campo-estado[data-tono="programado"] { --tono: #0095D9; }

.campo-estado[data-tono="en-revision"] { --tono: #6941C6; }

.dropzone-envoltura {
    margin-bottom: 4px;
}

.dropzone {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

.dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.dropzone-contenido {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 26px 20px;
    text-align: center;
    border: 2px dashed var(--pro-line-strong);
    border-radius: 18px;
    background: #F7F9FC;
    transition: border-color .2s ease, background-color .2s ease, transform .25s var(--pro-ease);
}

.dropzone-icono {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 4px;
    border-radius: 16px;
    font-size: 1.5rem;
    color: var(--mahle-teal-600);
    background: var(--mahle-teal-100);
    transition: transform .3s var(--pro-ease);
}

.dropzone-contenido strong {
    font-size: .92rem;
    letter-spacing: -.01em;
}

.dropzone-contenido span {
    font-size: .78rem;
    color: var(--mahle-steel-500);
}

.dropzone.is-arrastrando .dropzone-contenido {
    border-color: var(--mahle-teal-500);
    background: #EAF6FD;
    transform: scale(1.01);
}

.dropzone.is-arrastrando .dropzone-icono {
    transform: translateY(-4px);
}

.dropzone-previas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.dropzone-previas:empty {
    display: none;
}

.dropzone-previa {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--pro-line);
    animation: proPop .3s var(--pro-ease) backwards;
}

.dropzone-previa img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.dropzone-quitar {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    font-size: .7rem;
    color: #fff;
    background: rgba(6, 18, 48, .78);
    transition: background-color .2s ease, transform .12s var(--pro-ease);
}

.dropzone-quitar:active {
    transform: scale(.9);
}

.perfil-cabecera {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 20px;
    margin-bottom: 24px;
    border-radius: 18px;
    background:
        radial-gradient(260px 120px at 100% 0%, rgba(0, 149, 217, .12), transparent 70%),
        #F6F9FD;
    border: 1px solid var(--pro-line);
}

.perfil-cabecera .perfil-avatar {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    margin: 0;
    border-radius: 24px;
    font-size: 2.1rem;
    box-shadow: 0 12px 26px rgba(0, 149, 217, .32);
}

.perfil-datos {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
}

.perfil-datos strong {
    font-size: 1.08rem;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
}

.perfil-datos label {
    margin: 6px 0 0;
}

.perfil-iconos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
    gap: 10px;
    margin-bottom: 0;
}

.perfil-iconos .icono-perfil-opcion {
    width: 100%;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-size: 1.15rem;
    border: 1.5px solid var(--pro-line);
    background: #fff;
    color: var(--mahle-steel-700);
}

.perfil-iconos .icono-perfil-opcion.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #22B0EC, #0A5C94);
    box-shadow: 0 8px 18px rgba(0, 149, 217, .38);
    animation: proPop .3s var(--pro-ease);
}

.modal-confirmacion .modal-content {
    border-radius: 24px;
}

.modal-confirmacion .modal-body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 38px 30px 24px;
    text-align: center;
}

.modal-confirmacion .confirmacion-cerrar {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 10px;
    background-color: #EEF2F8;
    background-size: 12px;
    filter: none;
    opacity: 1;
}

.confirmacion-icono {
    position: relative;
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 50%;
    font-size: 2rem;
    color: var(--mahle-teal-600);
    background: var(--mahle-teal-100);
}

.confirmacion-icono::before,
.confirmacion-icono::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0;
}

.modal.show .confirmacion-icono::before {
    animation: proOnda 1.4s var(--pro-ease) .15s 2;
}

.modal.show .confirmacion-icono::after {
    animation: proOnda 1.4s var(--pro-ease) .5s 2;
}

@keyframes proOnda {
    0% { transform: scale(1); opacity: .5; }
    100% { transform: scale(1.9); opacity: 0; }
}

.modal.show .confirmacion-icono i {
    animation: proPop .45s var(--pro-ease) .1s backwards;
}

.confirmacion-peligro .confirmacion-icono {
    color: var(--mahle-red-600);
    background: var(--mahle-red-100);
}

.confirmacion-titulo {
    margin: 0 0 8px;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -.03em;
}

.confirmacion-texto {
    margin: 0;
    font-size: .9rem;
    line-height: 1.55;
    color: var(--mahle-steel-500);
}

.modal-confirmacion .modal-footer {
    justify-content: center;
    gap: 10px;
    padding: 18px 26px 26px;
    border-top: 0;
    background: #fff;
}

.modal-confirmacion .modal-footer form {
    margin: 0;
}

.btn-mahle-peligro {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 18px;
    border: 1px solid #A32B25;
    border-radius: 12px;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(180deg, #CC3A33, #B4302A);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 8px 18px rgba(180, 48, 42, .3);
    transition: transform .12s var(--pro-ease), box-shadow .2s ease, background-color .2s ease;
}

.btn-mahle-peligro:active {
    transform: scale(.97);
}

.modal-body-documento {
    padding: 28px;
    background: #E6ECF4;
}

.modal-body-documento > .reporte-mahle {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 44px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 56px rgba(6, 18, 48, .20), 0 2px 6px rgba(6, 18, 48, .10);
    animation: proRise .5s var(--pro-ease) .1s backwards;
}

.modal-body-documento .reporte-calificacion-opciones {
    gap: 12px;
    max-width: 520px;
}

.modal-body-documento .reporte-check {
    gap: 10px;
    padding: 8px 14px;
    border: 1px solid var(--pro-line);
    border-radius: 12px;
    background: #F7F9FC;
}

.modal-body-documento .reporte-checkbox {
    width: 30px;
    height: 26px;
    border-radius: 8px;
    border: 2px solid var(--pro-line-strong);
    background: #fff;
    font-size: 15px;
    font-weight: 700;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .25s var(--pro-ease);
}

.modal-body-documento .reporte-checkbox.marcado {
    transform: scale(1.08);
}

.modal-body-documento .reporte-check:nth-child(1) .reporte-checkbox.marcado { color: #fff; background: #1D8348; border-color: #1D8348; }
.modal-body-documento .reporte-check:nth-child(2) .reporte-checkbox.marcado { color: #fff; background: #D98A16; border-color: #D98A16; }
.modal-body-documento .reporte-check:nth-child(3) .reporte-checkbox.marcado { color: #fff; background: #B4302A; border-color: #B4302A; }

.modal-body-documento .reporte-tabla {
    border-radius: 12px;
}

.modal-body-documento .reporte-firma-box {
    border-style: dashed;
    border-radius: 14px;
}

.modal.show .modal-body .row > [class*="col"] {
    animation: proRise .42s var(--pro-ease) backwards;
}

.modal.show .modal-body .row > [class*="col"]:nth-child(1) { animation-delay: 70ms; }
.modal.show .modal-body .row > [class*="col"]:nth-child(2) { animation-delay: 100ms; }
.modal.show .modal-body .row > [class*="col"]:nth-child(3) { animation-delay: 130ms; }
.modal.show .modal-body .row > [class*="col"]:nth-child(4) { animation-delay: 160ms; }
.modal.show .modal-body .row > [class*="col"]:nth-child(5) { animation-delay: 190ms; }
.modal.show .modal-body .row > [class*="col"]:nth-child(6) { animation-delay: 220ms; }
.modal.show .modal-body .row > [class*="col"]:nth-child(n+7) { animation-delay: 250ms; }

.modal.show .perfil-cabecera,
.modal.show .dropzone-envoltura {
    animation: proRise .45s var(--pro-ease) .08s backwards;
}

@media (hover: hover) and (pointer: fine) {

    .campo-password-ver:hover {
        color: var(--mahle-teal-600);
        background: var(--mahle-teal-100);
    }

    .dropzone:hover .dropzone-contenido {
        border-color: var(--mahle-teal-500);
        background: #F0F8FD;
    }

    .dropzone:hover .dropzone-icono {
        transform: translateY(-3px);
    }

    .dropzone-quitar:hover {
        background: var(--mahle-red-600);
    }

    .perfil-iconos .icono-perfil-opcion:hover:not(.active) {
        color: var(--mahle-teal-700);
        border-color: var(--mahle-teal-500);
        background: var(--mahle-teal-100);
        transform: translateY(-2px);
    }

    .btn-mahle-peligro:hover {
        background: linear-gradient(180deg, #C2332C, #A32B25);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 12px 24px rgba(180, 48, 42, .4);
    }

    .modal-confirmacion .confirmacion-cerrar:hover {
        background-color: #E1E8F2;
    }
}

@media (max-width: 575.98px) {

    .modal-mahle .modal-body {
        padding: 20px;
    }

    .modal-body-documento {
        padding: 12px;
    }

    .modal-body-documento > .reporte-mahle {
        padding: 22px 18px;
    }

    .perfil-cabecera {
        flex-direction: column;
        text-align: center;
    }

    .perfil-datos {
        align-items: center;
    }

    .modal-nota {
        width: 100%;
        margin-bottom: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .modal.show .modal-body .row > [class*="col"],
    .modal.show .perfil-cabecera,
    .modal.show .dropzone-envoltura,
    .modal-body-documento > .reporte-mahle,
    .dropzone-previa,
    .perfil-iconos .icono-perfil-opcion.active,
    .modal.show .confirmacion-icono i {
        animation-name: proFade;
        animation-duration: .18s;
        animation-delay: 0ms !important;
    }

    .modal.show .confirmacion-icono::before,
    .modal.show .confirmacion-icono::after {
        animation: none;
    }

    .dropzone:hover .dropzone-icono,
    .dropzone.is-arrastrando .dropzone-icono,
    .perfil-iconos .icono-perfil-opcion:hover:not(.active) {
        transform: none;
    }
}

.perfil-cabecera + .form-seccion-titulo {
    margin-top: 0 !important;
}

.modal-body > input[type="hidden"]:first-child + .form-seccion-titulo {
    margin-top: 0;
}

.modal-mahle .modal-title {
    margin: 0;
    line-height: 1.25;
}

.modal-titulo-bloque > div {
    min-width: 0;
}

.categoria-tono-extra-0 { --tono-a: #8A4A0B; --tono-b: #E39A2D; }
.categoria-tono-extra-1 { --tono-a: #1B2A4A; --tono-b: #5C7AA8; }
.categoria-tono-extra-2 { --tono-a: #8E1E4D; --tono-b: #E0587F; }
.categoria-tono-extra-3 { --tono-a: #1D6B3A; --tono-b: #3DBE74; }

.apartados-encabezado {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.apartados-encabezado .section-heading-apartados {
    margin: 0;
}

.selector-iconos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(54px, 1fr));
    gap: 10px;
}

.selector-icono {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.selector-icono input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.selector-icono span {
    display: grid;
    place-items: center;
    height: 54px;
    border-radius: 14px;
    font-size: 1.3rem;
    color: var(--mahle-steel-700);
    background: #fff;
    border: 1.5px solid var(--pro-line);
    transition: transform .2s var(--pro-ease), background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.selector-icono input:checked + span {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #22B0EC, #0A5C94);
    box-shadow: 0 8px 18px rgba(0, 149, 217, .38);
    transform: translateY(-2px);
}

.selector-icono input:active + span {
    transform: scale(.94);
}

.selector-icono input:focus-visible + span {
    outline: 2px solid var(--mahle-teal-600);
    outline-offset: 2px;
}

.sesion-activa {
    display: flex;
    flex-direction: column;
}

.sesion-activa-icono {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    border-radius: 18px;
    font-size: 1.7rem;
    color: #fff;
    background: linear-gradient(135deg, #22B0EC, #0A5C94);
    box-shadow: 0 12px 26px rgba(0, 149, 217, .32);
}

.sesion-activa .subtitle {
    margin-bottom: 20px;
}

.sesion-activa-aviso {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: .84rem;
    line-height: 1.5;
    color: #7A4F00;
    background: #FBEBD4;
    border: 1px solid #ECD3A0;
}

.sesion-activa-aviso i {
    margin-top: 2px;
    color: #D98A16;
}

.sesion-activa-enlace {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    padding: 13px;
    border-radius: 14px;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--mahle-teal-700);
    background: #fff;
    border: 1px solid var(--pro-line-strong);
    transition: background-color .2s ease, border-color .2s ease, transform .12s var(--pro-ease);
}

.sesion-activa-enlace:active {
    transform: scale(.98);
}

@media (hover: hover) and (pointer: fine) {

    .selector-icono:hover input:not(:checked) + span {
        color: var(--mahle-teal-700);
        border-color: var(--mahle-teal-500);
        background: var(--mahle-teal-100);
        transform: translateY(-2px);
    }

    .sesion-activa-enlace:hover {
        background: var(--mahle-teal-100);
        border-color: var(--mahle-teal-500);
    }
}

@media (prefers-reduced-motion: reduce) {

    .selector-icono input:checked + span,
    .selector-icono:hover input:not(:checked) + span {
        transform: none;
    }
}

.fila-equipo {
    cursor: pointer;
}

.select-por-pagina {
    width: auto;
    min-width: 150px;
    height: 40px;
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: .82rem;
}

.equipos-cargando {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 22px;
    font-size: .88rem;
    color: var(--mahle-steel-500);
}

.equipos-bloque.is-cargando .table-equipos tbody,
.equipos-bloque.is-cargando .equipos-grid {
    opacity: .45;
    transition: opacity .2s ease;
}

.paginacion-equipos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 4px 4px;
}

.paginacion-info {
    font-size: .85rem;
    color: var(--mahle-steel-500);
}

.paginacion-info strong {
    color: var(--mahle-ink-900);
}

.paginacion-error {
    color: var(--mahle-red-600);
}

.paginacion-botones {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.paginacion-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    display: inline-grid;
    place-items: center;
    border-radius: 11px;
    border: 1px solid #D2DAE6;
    background: #fff;
    font-size: .85rem;
    font-weight: 600;
    color: #28344A;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .12s var(--pro-ease);
}

.paginacion-btn:active:not(:disabled) {
    transform: scale(.94);
}

.paginacion-btn.is-activa {
    color: #fff;
    border-color: #0A74A8;
    background: var(--mahle-teal-600);
    box-shadow: 0 6px 14px rgba(0, 149, 217, .3);
}

.paginacion-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.paginacion-puntos {
    padding: 0 4px;
    color: var(--mahle-steel-500);
}

.ficha-cargando {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 320px;
    font-size: 1rem;
    color: var(--mahle-steel-500);
}

@media (hover: hover) and (pointer: fine) {

    .paginacion-btn:hover:not(:disabled):not(.is-activa) {
        color: var(--mahle-teal-700);
        border-color: var(--mahle-teal-500);
        background: var(--mahle-teal-100);
    }
}


/* Boton de menu flotante (solo telefono y tableta) */
.menu-flotante {
    display: none;
}

@media (max-width: 991.98px) {

    .menu-flotante {
        position: fixed;
        left: 14px;
        bottom: calc(18px + env(safe-area-inset-bottom, 0px));
        z-index: 1020;
        width: 56px;
        height: 56px;
        padding: 0;
        display: grid;
        place-items: center;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, .22);
        background: linear-gradient(145deg, #0B6FB8, #0B1B3A);
        color: #fff;
        font-size: 1.75rem;
        line-height: 1;
        box-shadow: 0 12px 26px rgba(6, 18, 48, .38), 0 2px 6px rgba(6, 18, 48, .28);
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        transition: transform .16s ease, opacity .2s ease, box-shadow .2s ease;
    }

    .menu-flotante:active {
        transform: scale(.91);
    }

    html.menu-abierto .menu-flotante,
    body.modal-open .menu-flotante {
        opacity: 0;
        pointer-events: none;
        transform: scale(.8);
    }

    .main-wrapper {
        padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

@media print {
    .menu-flotante {
        display: none !important;
    }
}
