*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    -webkit-font-smoothing: antialiased;
}

img, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

[hidden]:not([hidden="until-found"]) {
    display: none !important;
}

:root {
    --eq-green: var(--color-primary);
    --eq-green-hover: var(--color-primary-hover);
    --eq-green-light: var(--color-primary-soft);
    --eq-green-bg: var(--color-primary-bg);
    --eq-green-soft: var(--color-primary-hover);
    --eq-surface: var(--surface);
    --eq-surface-low: var(--surface-low);
    --eq-surface-mid: var(--surface-container);
    --eq-border-light: var(--border-light);
    --eq-border: var(--border-light);
    --eq-text: var(--text-on-surface);
    --eq-text-muted: var(--text-muted);
    --eq-text-faint: var(--text-faint);
    --eq-radius-lg: 16px;
    --eq-radius-md: 12px;
    --eq-radius-sm: 8px;
    --eq-radius-pill: 40px;
    --eq-shadow-sm: 0 1px 3px color-mix(in srgb, var(--text-on-surface) 6%, transparent), 0 1px 2px color-mix(in srgb, var(--text-on-surface) 4%, transparent);
    --eq-shadow-md: 0 4px 16px color-mix(in srgb, var(--text-on-surface) 6%, transparent);
    --eq-shadow-lg: 0 8px 32px color-mix(in srgb, var(--text-on-surface) 8%, transparent);
    --eq-transition: all .18s cubic-bezier(.2,.9,.4,1.1);
    --eq-header-h: 60px;
    --eq-sidebar-w: 272px;
    --eq-sidebar-mini-w: 72px;
    --eq-app-h: 100vh;
}

@supports (height: 100dvh) {
    :root { --eq-app-h: 100dvh; }
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: calc(14px * var(--eq-escala));
    line-height: 1.55;
    color: var(--eq-text);
    background: var(--eq-surface-low);
    overflow: hidden;
    height: var(--eq-app-h);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    color: var(--eq-text);
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: .875rem;
}

a {
    color: var(--eq-green);
    text-decoration: none;
}

    a:hover {
        color: var(--eq-green-hover);
    }

.eq-wrapper {
    min-height: var(--eq-app-h);
    display: flex;
    flex-direction: column;
}

.eq-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--eq-header-h);
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 20px;
    color: var(--surface);
    background: linear-gradient(95deg, var(--color-primary-dark), var(--color-primary) 60%);
    box-shadow: 0 1px 0 color-mix(in srgb, var(--surface) 14%, transparent) inset, 0 6px 20px color-mix(in srgb, var(--text-on-surface) 16%, transparent);
}

.eq-header-logo { flex-shrink: 0; }

.eq-header-marca {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 14px 4px 5px;
    border-radius: 999px;
    color: var(--surface);
    text-decoration: none;
    background: color-mix(in srgb, var(--surface) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--surface) 18%, transparent);
    transition: var(--transition);
}

.eq-header-marca:hover {
    color: var(--surface);
    background: color-mix(in srgb, var(--surface) 18%, transparent);
}

.eq-header-sello {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--color-primary);
    font-family: var(--font-display);
    font-size: calc(16px * var(--eq-escala));
    font-weight: 800;
    line-height: 1;
}

.eq-header-nombre {
    font-family: var(--font-display);
    font-size: calc(15px * var(--eq-escala));
    font-weight: 800;
    letter-spacing: .06em;
    white-space: nowrap;
}

.eq-header-nav {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.eq-header-nav-items {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
}

.eq-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding-left: 12px;
    border-left: 1px solid color-mix(in srgb, var(--surface) 22%, transparent);
}

.eq-header .cht-notif-trigger,
.eq-header-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 36px;
    min-width: 36px;
    padding: 0 10px;
    font-size: max(12px, calc(13px * var(--eq-escala)));
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    color: var(--surface);
    background: color-mix(in srgb, var(--surface) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--surface) 22%, transparent);
    border-radius: var(--radius);
    transition: var(--transition);
}

.eq-header .cht-notif-trigger:hover,
.eq-header-btn:hover {
    color: var(--surface);
    background: color-mix(in srgb, var(--surface) 22%, transparent);
    border-color: color-mix(in srgb, var(--surface) 40%, transparent);
}

.eq-header .cht-notif-trigger:focus-visible,
.eq-header-btn:focus-visible,
.eq-btn-salir:focus-visible,
.eq-header-marca:focus-visible {
    outline: 2px solid var(--surface);
    outline-offset: 2px;
}

.eq-header .cht-notif-trigger i,
.eq-header-btn i { font-size: calc(14px * var(--eq-escala)); }

.eq-header .eql-midia-acceso i { font-size: calc(16px * var(--eq-escala)); color: color-mix(in srgb, var(--orange) 40%, var(--surface)); }

@media (max-width: 400px) {
    .eq-header:has(.eql-midia-acceso) #eq-nueva-pestana { display: none; }
}

.eq-header .cht-notif-badge {
    top: -6px;
    right: -6px;
    border: 2px solid var(--color-primary);
    box-sizing: content-box;
}

.eq-header .eq-btn-ghost {
    height: 36px;
    color: var(--surface);
    background: color-mix(in srgb, var(--surface) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--surface) 22%, transparent);
    border-radius: var(--radius);
}

.eq-header .eq-btn-ghost:hover { background: color-mix(in srgb, var(--surface) 22%, transparent); }

.eq-btn-salir {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px;
    font-size: max(12px, calc(13px * var(--eq-escala)));
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--surface);
    border-radius: var(--radius);
    transition: var(--transition);
}

.eq-btn-salir:hover {
    color: var(--error-text);
    background: var(--error-bg);
    border-color: var(--error);
}

@media (max-width: 1100px) {
    .eq-header-btn span { display: none; }
}

@media (min-width: 769px) and (max-width: 1100px) {
    :root { --eq-sidebar-w: 224px; }
}

@media (max-width: 900px) {
    .eq-header { padding: 0 12px; gap: 10px; }
    .eq-header-nombre { display: none; }
    .eq-header-marca { padding-right: 5px; }
    .eq-btn-salir span { display: none; }
    .eq-btn-salir { width: 36px; padding: 0; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .eq-header-marca,
    .eq-header .cht-notif-trigger,
    .eq-header-btn,
    .eq-btn-salir { transition: none; }
}

.eq-sidebar {
    position: fixed;
    top: var(--eq-header-h);
    left: 0;
    bottom: 0;
    width: var(--eq-sidebar-w);
    background: var(--eq-surface);
    border-right: 1px solid var(--eq-border-light);
    box-shadow: 2px 0 20px color-mix(in srgb, var(--text-on-surface) 3%, transparent);
    z-index: 1050;
    overflow: hidden;
    transition: width .28s cubic-bezier(.2,.9,.4,1.1);
}

.eq-sidebar-inner {
    height: 100%;
    padding-bottom: 2rem;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
}

.eq-sidebar.minimized {
    width: var(--eq-sidebar-mini-w);
}

.eq-main {
    margin-top: var(--eq-header-h);
    margin-left: var(--eq-sidebar-w);
    height: calc(var(--eq-app-h) - var(--eq-header-h));
    transition: margin-left .28s cubic-bezier(.2,.9,.4,1.1);
    background: var(--eq-surface-low);
    display: flex;
    flex-direction: column;
}

.eq-sidebar.minimized ~ .eq-main {
    margin-left: var(--eq-sidebar-mini-w);
}

.eq-page-inner {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.eq-toggle-btn {
    position: fixed;
    top: 50%;
    left: calc(var(--eq-sidebar-w) - 16px);
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: var(--eq-surface);
    border: 1.5px solid var(--eq-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1060;
    color: var(--eq-text-muted);
    font-size: var(--fs-xs);
    box-shadow: var(--eq-shadow-md);
    transition: left .28s cubic-bezier(.2,.9,.4,1.1), color .15s, background .15s;
}

.eq-sidebar.minimized ~ .eq-toggle-btn {
    left: calc(var(--eq-sidebar-mini-w) - 16px);
}

.eq-toggle-btn:hover {
    background: var(--eq-green-bg);
    color: var(--eq-green);
    border-color: var(--eq-green-light);
}

.eq-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: color-mix(in srgb, var(--text-on-surface) 30%, transparent);
    backdrop-filter: blur(3px);
    z-index: 1040;
}

@media (max-width: 768px) {
    .eq-sidebar {
        transform: translateX(-100%);
        transition: transform .28s cubic-bezier(.2,.9,.4,1.1);
        width: min(320px, 88vw) !important;
    }

    body.sidebar-open .eq-sidebar {
        transform: translateX(0);
    }

    body.sidebar-open .eq-backdrop {
        display: block;
    }

    .eq-main {
        margin-left: 0 !important;
    }

    .eq-toggle-btn { display: none; }
}

.eq-menu-btn { display: none; }

@media (max-width: 768px) {
    .eq-menu-btn { display: inline-flex; flex-shrink: 0; }
}

.eq-page-tools {
    flex-shrink: 0;
}

.eql-tools-bar {
    z-index: 10;
    background: var(--eq-surface);
    border-bottom: 1px solid var(--eq-border-light);
    box-shadow: 0 1px 4px color-mix(in srgb, var(--text-on-surface) 6%, transparent);
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    min-height: 52px;
}

.eql-tools-title {
    font-weight: 600;
    font-size: calc(14px * var(--eq-escala));
    color: var(--eq-text);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 0;
    border-bottom: 2px solid var(--eq-green);
    letter-spacing: -.01em;
    flex-shrink: 0;
}

.eql-tools-title i {
    color: var(--eq-green);
    font-size: max(12px, calc(13px * var(--eq-escala)));
}

.eql-tools-badge,
.eql-tools-actions {
    margin-left: auto;
}

.eql-tools-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--eq-green);
    background: var(--eq-green-light);
    padding: 4px 10px;
    border-radius: var(--eq-radius-pill);
    flex-shrink: 0;
}

.eql-tools-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

h1.eql-tools-title { margin: 0; }

@media (max-width: 600px) {
    .eql-tools-bar { min-height: 46px; gap: 8px; flex-wrap: wrap; row-gap: 2px; padding-top: 2px; padding-bottom: 8px; }
    .eql-tools-title {
        flex: 1 1 0;
        min-width: 0;
        display: block;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        padding: 8px 0;
    }
    .eql-tools-title i { margin-right: 6px; }
    .eql-tools-bar > .eql-tools-badge,
    .eql-tools-bar > .eql-fecha-badge { flex: 0 0 auto; margin-left: 0; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .eql-tools-right { flex: 1 1 100%; margin-left: 0; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
    .eql-tools-right:not(:has(.eql-toolbar-btn, input, select, label, button)) { flex: 0 1 auto; margin-left: auto; flex-wrap: nowrap; min-width: 0; }
    .eql-tools-right .eql-toolbar-btn:not(.eql-toolbar-btn--icon) { flex: 1 1 auto; justify-content: center; }
    .eql-tools-bar > .eql-tools-badge { margin-left: 0; }
}

.eql-tools-combos {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.eql-tools-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
}

.eq-error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    gap: 10px;
    text-align: center;
    padding: 40px 20px;
}
.eq-error-code {
    font-size: calc(56px * var(--eq-escala));
    font-weight: 700;
    color: var(--border-light);
    letter-spacing: 3px;
}
.eq-error-title {
    font-size: calc(16px * var(--eq-escala));
    font-weight: 600;
    color: var(--text-on-surface);
    margin-top: 4px;
}
.eq-error-desc {
    font-size: max(12px, calc(13px * var(--eq-escala)));
    color: var(--text-muted);
    max-width: 380px;
    line-height: 1.6;
}
.eq-error-btn {
    margin-top: 16px;
    padding: 9px 22px;
    background: var(--color-primary);
    color: var(--surface);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: max(12px, calc(13px * var(--eq-escala)));
    font-weight: 500;
    transition: var(--transition);
}
.eq-error-btn:hover { background: var(--color-primary-hover); }

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}

[class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
    width: 100%;
}

@media (min-width: 768px) {
    .col-md-1 {
        width: 8.333%;
    }

    .col-md-2 {
        width: 16.667%;
    }

    .col-md-3 {
        width: 25%;
    }

    .col-md-4 {
        width: 33.333%;
    }

    .col-md-5 {
        width: 41.667%;
    }

    .col-md-6 {
        width: 50%;
    }

    .col-md-7 {
        width: 58.333%;
    }

    .col-md-8 {
        width: 66.667%;
    }

    .col-md-9 {
        width: 75%;
    }

    .col-md-10 {
        width: 83.333%;
    }

    .col-md-11 {
        width: 91.667%;
    }

    .col-md-12 {
        width: 100%;
    }
}

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

.align-items-start {
    align-items: flex-start;
}

.justify-content-end {
    justify-content: flex-end;
}

.d-flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-2 {
    gap: .5rem;
}

.gap-3 {
    gap: .75rem;
}

.w-100 {
    width: 100%;
}

.eql-muted {
    color: var(--eq-text-muted);
}

.eql-texto-centro {
    text-align: center;
}

.fw-600 {
    font-weight: 600;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: .25rem;
}

.mt-2 {
    margin-top: .5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 2rem;
}

.eql-mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: .25rem;
}

.mb-2 {
    margin-bottom: .5rem;
}

.eql-mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 2rem;
}

.eql-ml-1 {
    margin-left: .25rem;
}

.eql-ml-2 {
    margin-left: .5rem;
}

.ml-3 {
    margin-left: 1rem;
}

.eql-mr-1 {
    margin-right: .25rem;
}

.mr-2 {
    margin-right: .5rem;
}

.mr-3 {
    margin-right: 1rem;
}

@media (min-width: 768px) {
    .mb-md-0 {
        margin-bottom: 0 !important;
    }

    .mt-md-0 {
        margin-top: 0 !important;
    }

    .d-md-flex {
        display: flex;
    }
}

.eq-relativo {
    position: relative;
}

.eql-circulo {
    border-radius: 50% !important;
}

.eql-p-1 { padding: .25rem; }
.eql-p-2 { padding: .5rem; }
.eql-pl-1 { padding-left: .25rem; }
.eql-pr-1 { padding-right: .25rem; }
.eql-pt-1 { padding-top: .25rem; }
.eql-m-1 { margin: .25rem; }
.eql-m-2 { margin: .5rem; }
.eql-img-fluida { max-width: 100%; height: auto; }

.eql-texto {
    color: var(--eq-text) !important;
}

.eql-ml-auto {
    margin-left: auto !important;
}

.ml-md-auto {
    margin-left: auto !important;
}

.mx-2 {
    margin-left: .5rem;
    margin-right: .5rem;
}

.font-weight-bold {
    font-weight: 700;
}

.border {
    border: 1px solid var(--eq-border);
}

.border-white {
    border-color: var(--surface) !important;
}

.eql-oculto { display: none !important; }
.eql-sobre-primario { color: var(--surface) !important; }

.eql-page-body {
    padding: 24px 28px;
    background: var(--eq-surface-low);
    min-height: calc(var(--eq-app-h) - var(--eq-header-h) - 52px);
}
.eql-page-body > * { max-width: 1020px; margin-left: auto; margin-right: auto; }
.eql-page-body:has(.eql-grid-source) > * { max-width: none; }

.eq-promo-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
    align-items: start;
}

.eq-rich-text {
    font-size: max(12px, calc(13.5px * var(--eq-escala)));
    line-height: 1.72;
    color: var(--eq-text-muted);
}
.eq-rich-text p  { margin: 0 0 .8em; }
.eq-rich-text p:last-child { margin-bottom: 0; }
.eq-rich-text h1,.eq-rich-text h2,.eq-rich-text h3 {
    color: var(--eq-text); font-weight: 700;
    margin: 1em 0 .4em; line-height: 1.3;
}
.eq-rich-text ul,.eq-rich-text ol { padding-left: 20px; margin: .5em 0; }
.eq-rich-text li { margin-bottom: .3em; }

.eq-promo-img {
    display: flex; align-items: flex-start; justify-content: center;
    border-radius: var(--eq-radius-sm); overflow: hidden;
    position: sticky; top: 12px;
}
.eq-promo-img img, .eq-promo-img svg { width: 100%; height: auto; border-radius: var(--eq-radius-sm); }

@media (max-width: 768px) {
    .eql-page-body { padding: 16px; }
    .eq-promo-layout { grid-template-columns: 1fr; }
    .eq-promo-img { position: static; }
}

.eq-btn-demo {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 18px; background: var(--eq-green); color: var(--surface) !important;
    border-radius: var(--eq-radius-pill); font-size: max(12px, calc(13px * var(--eq-escala))); font-weight: 600;
    text-decoration: none !important; border: none; cursor: pointer;
    transition: background .15s, transform 180ms cubic-bezier(0.23,1,0.32,1);
}
.eq-btn-demo:hover { background: var(--eq-green-hover); transform: translateY(-1px); }
.eq-btn-demo:active { transform: scale(0.97); transition-duration: 80ms; }

#eq-pld {
    position: fixed;
    top: var(--eq-header-h);
    left: 0; right: 0;
    height: 3px;
    overflow: hidden;
    z-index: 10200;
    pointer-events: none;

    background: oklch(93% 0.022 152);
    opacity: 0;
    transition: opacity 180ms cubic-bezier(0, 0, 0.2, 1);
}

#eq-pld.on { opacity: 1; }

#eq-pld-bar {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 40%;
    background: oklch(45% 0.17 155);
    border-radius: 0 2px 2px 0;
    transform: translateX(-100%);
    will-change: transform;
}

#eq-pld.on #eq-pld-bar {
    animation: eq-seg-a 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

#eq-pld::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 22%;
    background: oklch(57% 0.13 155 / 0.52);
    border-radius: 0 2px 2px 0;
    transform: translateX(-100%);
}

#eq-pld.on::after {
    animation: eq-seg-b 2s cubic-bezier(0.4, 0, 0.6, 1) 0.65s infinite;
}

@keyframes eq-seg-a {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(305%);  }
}

@keyframes eq-seg-b {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(568%);  }
}

.eq-main {
    position: relative;
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    #eq-pld.on #eq-pld-bar  { animation: none; transform: translateX(120%); }
    #eq-pld.on::after       { animation: none; }
}

@media (max-width: 768px) { .eql-desk-only { display: none !important; } }
@media (min-width: 769px) { .eql-mob-only  { display: none !important; } }

.eql-action-bar {
    background: var(--eq-surface);
    border-bottom: 1px solid var(--eq-border-light);
    position: sticky;
    top: 0;
    z-index: 5;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 14px;
    min-height: 44px;
}

.eql-toolbar-sep {
    width: 1px;
    height: 20px;
    background: var(--eq-border-light);
    flex-shrink: 0;
    align-self: center;
    margin: 0 1px;
}

.eql-toolbar-end {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 5px;
}

.eql-action-bar .eql-icon-label { display: none; }
.eql-mob-sheet-overlay .eql-icon-label { display: inline; }

@media (max-width: 768px) {
    .activar-diccionario-caracteristicas { display: none !important; }

    .eql-action-bar .eql-toolbar-secondary,
    .eql-action-bar .eql-toolbar-sep { display: none !important; }

    .eql-action-bar .eql-tool-group:not(:has(> :not(.eql-toolbar-secondary))) { display: none; }

    .eql-toolbar-end { margin-left: 0; }
}

.eql-mob-sheet-overlay {
    position: fixed;
    inset: 0;
    background: oklch(0% 0 0 / 0);
    z-index: 300;
    display: flex;
    align-items: flex-end;
    pointer-events: none;
    transition: background 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.eql-mob-sheet-overlay.open {
    background: oklch(0% 0 0 / 0.45);
    pointer-events: all;
}

.eql-mob-sheet {
    width: 100%;
    background: var(--eq-surface);
    border-radius: 16px 16px 0 0;
    max-height: 72vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    padding-bottom: env(safe-area-inset-bottom, 16px);
}

.eql-mob-sheet-overlay.open .eql-mob-sheet {
    transform: translateY(0);
}

.eql-mob-sheet-handle {
    width: 36px;
    height: 4px;
    background: var(--eq-border);
    border-radius: 2px;
    margin: 12px auto 4px;
    flex-shrink: 0;
}

.eql-mob-sheet-body {
    padding: 4px 0 8px;
}

.eql-mob-sheet-overlay .eql-sheet-item {
    display: flex !important;
    width: 100% !important;
    height: 52px !important;
    padding: 0 20px !important;
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 1px solid var(--eq-border-light) !important;
    font-size: calc(14px * var(--eq-escala)) !important;
    font-weight: 500 !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    background: var(--eq-surface) !important;
    color: var(--eq-text) !important;
    cursor: pointer;
    transition: background 0.12s;
    text-align: left;
    box-sizing: border-box;
    white-space: nowrap;
}

.eql-mob-sheet-overlay .eql-sheet-item > svg:first-child,
.eql-mob-sheet-overlay .eql-sheet-item > i:first-child {
    width: 22px;
    min-width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.eql-mob-sheet-overlay .eql-sheet-item:last-child {
    border-bottom: none !important;
}

.eql-mob-sheet-overlay .eql-sheet-item:active {
    background: var(--eq-surface-low) !important;
}

.eql-mob-sheet-overlay .eql-sheet-grupo-titulo {
    justify-content: flex-start !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

.eql-mob-sheet-overlay .eql-sheet-grupo-titulo > i {
    align-self: center;
}

.eql-mob-sheet-overlay .eql-sheet-grupo-titulo > span {
    flex: 1;
    text-align: left;
}

.eql-sheet-grupo-flecha {
    margin-left: auto;
    font-size: max(12px, calc(12px * var(--eq-escala)));
    color: var(--text-muted);
    transition: transform 0.15s ease;
}

.eql-sheet-grupo.is-abierto .eql-sheet-grupo-flecha {
    transform: rotate(180deg);
}

.eql-sheet-grupo-lista {
    max-height: 40vh;
    overflow-y: auto;
    background: var(--surface-low);
    border-bottom: 1px solid var(--eq-border-light);
}

.eql-sheet-grupo-lista[hidden] {
    display: none;
}

.eql-sheet-opcion {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 0 20px 0 56px;
    border: none;
    background: transparent;
    color: var(--text-on-surface);
    font: inherit;
    font-size: calc(14px * var(--eq-escala));
    text-align: left;
    cursor: pointer;
}

.eql-sheet-opcion:active {
    background: var(--surface-container);
}

.eql-sheet-opcion.is-active {
    color: var(--color-primary);
    font-weight: 600;
}

.eql-sheet-grupo-rotulo {
    padding: 10px 20px 4px 56px;
    font-size: max(12px, calc(12px * var(--eq-escala)));
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.eq-toast {
    position: fixed;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px)); right: max(24px, env(safe-area-inset-right, 0px));
    z-index: 9800;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 340px;
    padding: 12px 18px;
    border-radius: 10px;
    background: oklch(17% 0.005 155);
    color: oklch(96% 0.003 155);
    font-size: max(12px, calc(13px * var(--eq-escala)));
    line-height: 1.5;
    box-shadow: 0 8px 28px color-mix(in srgb, var(--text-on-surface) 22%, transparent);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 200ms ease, transform 220ms cubic-bezier(.25, .46, .45, .94);
}
.eq-toast.shown {
    opacity: 1;
    transform: translateY(0);
}
.eq-toast b { font-weight: 600; font-size: max(12px, calc(13.5px * var(--eq-escala))); }
.eq-toast span { color: oklch(72% 0.005 155); }
.eq-toast--danger  { box-shadow: 0 8px 28px color-mix(in srgb, var(--text-on-surface) 22%, transparent), inset 0 -2px 0 var(--error-text); }
.eq-toast--success { box-shadow: 0 8px 28px color-mix(in srgb, var(--text-on-surface) 22%, transparent), inset 0 -2px 0 var(--color-primary); }
.eq-toast--warning { box-shadow: 0 8px 28px color-mix(in srgb, var(--text-on-surface) 22%, transparent), inset 0 -2px 0 var(--warning-text); }
.eq-toast--info    { box-shadow: 0 8px 28px color-mix(in srgb, var(--text-on-surface) 22%, transparent), inset 0 -2px 0 var(--ind-info); }

.vg-flow-nav {
    position: sticky; bottom: 0; z-index: 10;
    background: var(--eq-surface-low);
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0; margin-top: 28px;
    border-top: 1px solid var(--eq-border-light);
}
.vg-flow-step { font-size: max(12px, calc(12px * var(--eq-escala))); color: var(--eq-text-faint); flex: 1; text-align: center; }
.vg-flow-btn {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: max(12px, calc(13.5px * var(--eq-escala))); font-weight: 500; border-radius: var(--eq-radius-sm);
    cursor: pointer; padding: 8px 16px;
    transition: var(--eq-transition); font-family: inherit; white-space: nowrap;
}
.vg-flow-btn--sec {
    background: var(--eq-surface); color: var(--eq-text);
    border: 1.5px solid var(--eq-border);
}
.vg-flow-btn--sec:hover { background: var(--eq-surface-low); border-color: var(--eq-text-faint); }
.vg-flow-btn--pri { background: var(--eq-green); color: var(--surface); border: none; }
.vg-flow-btn--pri:hover { background: var(--eq-green-hover); }

.eql-success { color: var(--success-text); }
.eql-warning { color: var(--warning-text); }
.eql-orange  { color: var(--orange-text);  }
.eql-danger  { color: var(--error-text);   }
.eql-info    { color: var(--info-text);    }
.eql-primary { color: var(--color-primary); }

i.eql-success { color: var(--ind-success); }
i.eql-warning { color: var(--ind-warning); }
i.eql-orange  { color: var(--ind-orange);  }
i.eql-danger  { color: var(--ind-danger);  }
i.eql-info    { color: var(--ind-info);    }

.eql-success { color: var(--success-text) !important; }
.text-warning { color: var(--warning-text) !important; }
.text-orange  { color: var(--orange-text)  !important; }
.eql-danger  { color: var(--error-text)   !important; }
.eql-primary { color: var(--color-primary) !important; }
.text-info    { color: var(--info-text)    !important; }

.cursor-pointer { cursor: pointer; }

.eql-adv-ico    { font-size: 1.15rem; padding-left: 3px; vertical-align: middle; }

.eql-editable {
    border-bottom: 1px dashed var(--text-faint);
    transition: border-color 0.15s;
}

.eql-error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 56px 32px;
    gap: 10px;
    min-height: 260px;
}

.eql-error-state__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--error-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: calc(20px * var(--eq-escala));
    color: var(--error-text);
    margin-bottom: 6px;
    flex-shrink: 0;
}

.eql-error-state--aviso .eql-error-state__icon {
    background: var(--info-bg);
    color: var(--info-text);
}

.eql-error-state__title {
    font-size: calc(15px * var(--eq-escala));
    font-weight: 600;
    color: var(--text-on-surface);
    margin: 0;
}

.eql-error-state__msg {
    font-size: max(12px, calc(13px * var(--eq-escala)));
    color: var(--text-muted);
    max-width: 480px;
    line-height: 1.6;
    margin: 0;
}

.eql-error-state__actions {
    margin-top: 10px;
}

.eq-reauth-overlay {
    position: fixed; inset: 0;
    background: color-mix(in srgb, var(--text-on-surface) 65%, transparent);
    display: flex; align-items: center; justify-content: center;
    z-index: 9998;
    opacity: 0; transition: opacity 0.2s ease;
    pointer-events: none;
}
.eq-reauth-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.eq-reauth-box {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 28px 32px 32px;
    width: 100%; max-width: 380px;
    box-shadow: 0 24px 64px color-mix(in srgb, var(--text-on-surface) 25%, transparent);
    transform: translateY(14px);
    transition: transform 0.22s ease;
}
.eq-reauth-overlay.open .eq-reauth-box { transform: translateY(0); }
.eq-reauth-icon {
    width: 40px; height: 40px;
    background: var(--color-primary-bg);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
    color: var(--color-primary); font-size: 1rem;
}
.eq-reauth-title {
    font-size: 1.05rem; font-weight: 700;
    color: var(--text-on-surface);
    margin: 0 0 8px; letter-spacing: -0.015em;
}
.eq-reauth-desc {
    font-size: 0.875rem; color: var(--text-muted);
    margin: 0 0 18px; line-height: 1.55;
}
.eq-reauth-input {
    width: 100%; height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: 0.875rem;
    color: var(--text-on-surface);
    background: var(--surface-low);
    box-sizing: border-box; outline: none;
    transition: border-color 0.15s;
}
.eq-reauth-input:focus { border-color: var(--color-primary); background: var(--surface); }
.eq-reauth-error-msg {
    min-height: 18px;
    font-size: 0.8rem; color: var(--error-text);
    margin-top: 5px;
}
.eq-reauth-actions {
    display: flex; gap: 8px;
    margin-top: 18px; justify-content: flex-end;
}
.eq-reauth-btn {
    height: 36px; padding: 0 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: 0.875rem;
    font-weight: 500; cursor: pointer; border: none;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex; align-items: center;
}
.eq-reauth-btn--primary {
    background: var(--color-primary); color: var(--surface);
}
.eq-reauth-btn--primary:hover { background: var(--color-primary-hover); }
.eq-reauth-btn--primary[disabled] { opacity: 0.6; cursor: not-allowed; }
.eq-reauth-btn--ghost {
    background: transparent; color: var(--text-muted);
    border: 1px solid var(--border-light);
}
.eq-reauth-btn--ghost:hover { color: var(--text-on-surface); border-color: var(--outline-var); }

.eql-grid-overlay {
    position: fixed;
    z-index: 2000;
    will-change: transform;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    animation: eql-overlay-in 0.15s ease;
}
.eql-grid-overlay--dlg {
    position: absolute;
    z-index: 50;
}
@keyframes eql-overlay-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.eql-grid-overlay-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 20px 28px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: 0 4px 20px color-mix(in srgb, var(--text-on-surface) 10%, transparent);
}
.eq-mant {
    position: fixed;
    inset: 0;
    z-index: 9900;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: color-mix(in srgb, var(--text-on-surface) 45%, transparent);
}

.eq-mant.is-visible { display: flex; }

.eq-mant-caja:focus { outline: none; }

.eq-mant-caja {
    width: 100%;
    max-width: 400px;
    padding: 28px 26px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 16px 40px color-mix(in srgb, var(--text-on-surface) 22%, transparent);
}

.eq-mant-rueda {
    width: 32px;
    height: 32px;
    margin: 0 auto 16px;
    border: 3px solid var(--border-light);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: eq-mant-giro 1s linear infinite;
}

.eq-mant-rueda.is-listo {
    animation: none;
    border-color: var(--color-primary);
    background: var(--color-primary-bg);
}

@keyframes eq-mant-giro { to { transform: rotate(360deg); } }

.eq-mant-titulo {
    margin: 0 0 8px;
    font: 700 calc(18px * var(--eq-escala))/1.3 var(--font-display);
    color: var(--text-on-surface);
}

.eq-mant-texto {
    margin: 0;
    font: 400 calc(14px * var(--eq-escala))/1.55 var(--font-body);
    color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
    .eq-mant-rueda { animation: none; }
}

.eql-grid-overlay-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--color-primary-soft);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: eql-spin 0.65s linear infinite;
}
@keyframes eql-spin { to { transform: rotate(360deg); } }
.eql-grid-overlay-msg {
    font-size: max(12px, calc(13px * var(--eq-escala)));
    font-weight: 500;
    color: var(--text-on-surface);
    letter-spacing: 0.01em;
}
.eql-grid-overlay-dots i {
    font-style: normal;
    animation: eql-dot-pulse 1.2s ease-in-out infinite;
    opacity: 0;
}
.eql-grid-overlay-dots i:nth-child(2) { animation-delay: 0.2s; }
.eql-grid-overlay-dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes eql-dot-pulse {
    0%, 100% { opacity: 0; }
    50%       { opacity: 1; }
}

.eql-dlg-cargando {
    display: flex;
    flex-direction: column;
    padding: 16px 0 0;
    font-size: max(12px, calc(13px * var(--eq-escala)));
    color: var(--text-muted);
    min-height: 120px;
}
.eql-dlg-cargando-texto { padding: 0 20px; }

.eql-esqueleto {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 16px 20px 20px;
}

.eql-esq-bloque {
    display: block;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg, color-mix(in srgb, var(--text-on-surface) 10%, var(--surface)) 30%, color-mix(in srgb, var(--text-on-surface) 4%, var(--surface)) 50%, color-mix(in srgb, var(--text-on-surface) 10%, var(--surface)) 70%);
    background-size: 300% 100%;
    animation: eql-esq-brillo 1.4s linear infinite;
}

@keyframes eql-esq-brillo {
    from { background-position: 100% 0; }
    to   { background-position: 0 0; }
}

.eql-esq-titulo { width: 34%; height: 22px; }
.eql-esq-linea { width: 100%; height: 12px; }
.eql-esq-linea--media { width: 72%; }
.eql-esq-linea--corta { width: 45%; }
.eql-esq-caja { width: 100%; height: 76px; }
.eql-esq-icono { flex: 0 0 40px; width: 40px; height: 40px; }

.eql-esq-pagina {
    position: fixed;
    bottom: 0;
    z-index: 900;
    overflow: hidden;
    background: var(--surface);
}

.eql-esqueleto--pagina { gap: 16px; padding: 20px 28px; }

body:has(.ing-search-fab:not(.hidden)) .eq-toast { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
.eql-page-body:has(.ing-search-fab) { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }

.eql-esq-tarjetas {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.eql-esq-tarjeta,
.eql-esq-fila {
    display: flex;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
}

.eql-esq-tarjeta { flex-direction: column; }
.eql-esq-fila { align-items: center; }
.eql-esq-fila-texto { display: flex; flex-direction: column; flex: 1; gap: 8px; }

.eql-esq-barra { display: flex; flex-wrap: wrap; gap: 8px; }
.eql-esq-boton { width: 84px; height: 32px; }
.eql-esq-boton--ancho { width: 140px; margin-left: auto; }
.eql-esq-tabla { display: flex; flex-direction: column; border: 1px solid var(--border-light); border-radius: var(--radius); overflow: hidden; }
.eql-esq-celdas { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--border-light); }
.eql-esq-celdas:last-child { border-bottom: 0; }
.eql-esq-celdas--cabecera { background: var(--surface-container); }
.eql-esq-celda { flex: 1 1 0; min-width: 0; height: 12px; }
.eql-esq-celda--ancha { flex: 2.4 1 0; }
.eql-esq-campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.eql-esq-campo { display: flex; flex-direction: column; gap: 8px; }
.eql-esq-input { width: 100%; height: 40px; }
.eql-esq-estadisticas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.eql-esq-estadistica { height: 64px; }
.eql-esq-grafico { width: 100%; height: 260px; }
.eql-esq-parrafo { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
@media (max-width: 700px) {
    .eql-esq-campos { grid-template-columns: 1fr; }
    .eql-esq-estadisticas { grid-template-columns: 1fr; }
    .eql-esq-celdas .eql-esq-celda:nth-child(n + 4) { display: none; }
    .eql-esq-barra .eql-esq-boton:nth-child(n + 3):not(.eql-esq-boton--ancho) { display: none; }
    .eql-esq-grafico { height: 180px; }
}

@media (max-width: 700px) {
    .eql-esqueleto--pagina { padding: 16px; }
    .eql-esq-tarjetas { grid-template-columns: 1fr; }
    .eql-esq-tarjetas .eql-esq-tarjeta:nth-child(n + 2) { display: none; }
    .eql-esq-titulo { width: 60%; }
}

@media (prefers-reduced-motion: reduce) {
    .eql-esq-bloque { animation: none; }
}
.eql-dlg-error {
    padding: 24px;
    color: var(--error-text);
    font-size: max(12px, calc(13px * var(--eq-escala)));
}

.eql-date-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 1;
    min-width: 0;
}

.eql-date-nav-btn {
    display: grid;
    place-items: center;
    width: 28px;
    height: 30px;
    flex-shrink: 0;
    padding: 0;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color 120ms ease-out, color 120ms ease-out, background 120ms ease-out;
}
.eql-date-nav-btn:hover:not(:disabled) {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-bg);
}
.eql-date-nav-btn:disabled { opacity: .35; pointer-events: none; }

.eql-hscroll {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.eql-hscroll-content {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px 10px;
    overflow-x: auto;
    scrollbar-width: none;
    min-width: 0;
}
.eql-hscroll-content::-webkit-scrollbar { display: none; }

.eql-hscroll-btn { flex-shrink: 0; }

.eql-hscroll--sin-overflow > .eql-hscroll-btn { display: none; }

.eql-date-nav-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.eql-date-nav-label {
    font-family: var(--font-mono);
    font-size: max(12px, calc(12px * var(--eq-escala)));
    font-weight: 600;
    color: var(--text-on-surface);
    white-space: nowrap;
}

.eql-date-picker-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 120ms ease-out, color 120ms ease-out;
}
.eql-date-picker-toggle:hover {
    background: var(--surface-container);
    color: var(--color-primary);
}

.eql-date-picker {
    display: none;
    position: fixed;
    z-index: 2200;
    will-change: transform;
    width: 260px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--text-on-surface) 12%, transparent);
    flex-direction: column;
    overflow: hidden;
}
.eql-date-picker.eql-date-picker--open { display: flex; }

.eql-date-picker-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-muted);
    flex-shrink: 0;
}
.eql-date-picker-input {
    flex: 1;
    border: none;
    outline: none;
    background: none;
    font-size: max(12px, calc(13px * var(--eq-escala)));
    color: var(--text-on-surface);
}
.eql-date-picker-input::placeholder { color: var(--text-faint); }

.eql-date-picker-list { overflow-y: auto; max-height: 260px; }

.eql-date-picker-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    transition: background .12s;
}
.eql-date-picker-item:last-child { border-bottom: none; }
.eql-date-picker-item:hover { background: var(--surface-low); }
.eql-date-picker-item--current { background: var(--color-primary-bg); }
.eql-date-picker-item--current .eql-date-picker-item-date { color: var(--color-primary); }

.eql-date-picker-item-date {
    font-size: max(12px, calc(12px * var(--eq-escala)));
    font-weight: 600;
    color: var(--text-on-surface);
}
.eql-date-picker-item-name {
    font-size: var(--fs-xs);
    color: var(--text-muted);
}
.eql-date-picker-empty {
    padding: 20px 12px;
    text-align: center;
    font-size: max(12px, calc(13px * var(--eq-escala)));
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .eql-date-picker { max-width: calc(100vw - 16px); }
    .eql-date-picker-list { max-height: 50vh; }
    .eql-date-picker-item { padding-top: 12px; padding-bottom: 12px; }
}

.eql-fecha-badge {
    font-size: var(--fs-xs);
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
    background: var(--surface-low);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 3px 9px;
    white-space: nowrap;
    flex-shrink: 0;
}

.eql-pencil {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.eql-pencil-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-primary);
    font-size: var(--fs-xs);
    cursor: pointer;
    opacity: .6;
    transition: opacity .12s, background .12s;
}

.eql-pencil-btn:hover,
.eql-pencil-btn:focus-visible {
    opacity: 1;
    background: var(--color-primary-bg);
}

.eql-pencil.is-editando .eql-pencil-btn,
.eql-pencil.is-editando .eql-pencil-valor { display: none; }

.eql-pencil-input {
    width: 72px;
    padding: 2px 6px;
    text-align: right;
    font: inherit;
    color: var(--text-on-surface);
    background: var(--surface);
    border: 1.5px solid var(--color-primary);
    border-radius: var(--radius-sm);
    outline: none;
}

.eql-bloqueo {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    height: 30px;
    padding: 0 11px;
    font: 600 max(12px, calc(12px * var(--eq-escala))) var(--font-body);
    color: var(--warning-text);
    background: var(--warning-bg);
    border: 1px solid color-mix(in srgb, var(--warning-text) 35%, transparent);
    border-radius: var(--radius);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.eql-bloqueo:hover,
.eql-bloqueo[aria-expanded="true"] { border-color: var(--warning-text); }

.eql-bloqueo:focus-visible { outline: 2px solid var(--warning-text); outline-offset: 2px; }

.eql-bloqueo-txt { overflow: hidden; text-overflow: ellipsis; }
.eql-bloqueo-info { opacity: .7; font-size: var(--fs-xs); }

.eql-bloqueo-fondo {
    position: fixed;
    inset: 0;
    z-index: 8990;
    background: color-mix(in srgb, var(--text-on-surface) 40%, transparent);
}

.eql-bloqueo-fondo[hidden] { display: none; }

.eql-bloqueo-pop {
    position: fixed;
    z-index: 9000;
    will-change: transform;
    width: 380px;
    max-width: calc(100vw - 16px);
    max-height: min(70vh, 520px);
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px color-mix(in srgb, var(--text-on-surface) 18%, transparent);
    overflow: hidden;
}

.eql-bloqueo-pop[hidden] { display: none; }

.eql-bloqueo-cab {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: var(--warning-bg);
    border-bottom: 1px solid var(--border-light);
}

.eql-bloqueo-cab-ico {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: var(--warning-text);
    background: var(--surface);
}

.eql-bloqueo-cab-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.eql-bloqueo-cab-txt strong { font-size: max(12px, calc(13px * var(--eq-escala))); color: var(--text-on-surface); }
.eql-bloqueo-cab-txt span { font: 600 var(--fs-xs) var(--font-mono); color: var(--text-muted); }

.eql-bloqueo-x {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
}

.eql-bloqueo-x:hover { background: var(--surface-container); color: var(--text-on-surface); }

.eql-bloqueo-cuerpo {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 14px 14px;
    overflow-y: auto;
}

.eql-bloqueo-motivo { margin: 0; font-size: max(12px, calc(12.5px * var(--eq-escala))); line-height: 1.5; color: var(--text-on-surface); }

.eql-bloqueo-sec h4 {
    margin: 0 0 6px;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.eql-bloqueo-sec ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }

.eql-bloqueo-sec li {
    position: relative;
    padding: 6px 10px;
    font-size: max(12px, calc(12px * var(--eq-escala)));
    line-height: 1.4;
    color: var(--text-on-surface);
    background: var(--surface-low);
    border-radius: var(--radius-sm);
}

@media (max-width: 600px) {
    .eql-bloqueo-txt { max-width: 46vw; }

    .eql-bloqueo-pop--hoja {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: auto;
        max-width: none;
        max-height: 78vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
}

.eql-bloqueo--icono {
    width: 28px;
    height: 28px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
}

.eql-plan-lock {
    opacity: .6;
    cursor: not-allowed;
}

.eql-plan-lock-ico {
    margin-left: 6px;
    font-size: .8em;
    color: var(--text-faint);
}

.eql-back {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    margin-right: 2px;
    background: transparent;
    border: 1.5px solid var(--border-light);
    border-radius: 50%;
    font-family: inherit;
    color: var(--text-muted);
    cursor: pointer;
    flex-shrink: 0;
    transition: color .15s, border-color .15s, background .15s;
}

.eql-back span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.eql-back i {
    font-size: max(12px, calc(12px * var(--eq-escala)));
    transition: transform .15s;
}

.eql-back:hover {
    color: var(--eql-acento, var(--color-primary));
    border-color: var(--eql-acento, var(--color-primary));
    background: var(--eql-acento-bg, var(--color-primary-bg));
}

.eql-back:hover i { transform: translateX(-2px); }

.eql-back:focus-visible {
    outline: 2px solid var(--eql-acento, var(--color-primary));
    outline-offset: 2px;
}

.eql-tools-bar:has(.eql-back) .eql-tools-title {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
}

.eql-tools-bar:has(.eql-back) .eql-tools-title i { margin-right: 8px; }

@media (min-width: 769px) {
    .eql-tools-right.eql-tools-right--inline { flex-wrap: nowrap; gap: 8px; }
}

@media (max-width: 768px) {
    .eql-tools-right--inline .eql-fecha-badge { display: none; }
    .eql-tools-bar:has(.eql-back) { flex-wrap: wrap; padding-top: 4px; padding-bottom: 6px; row-gap: 4px; }
    .eql-tools-bar:has(.eql-back) .eql-tools-title { flex: 1 1 0; }
    .eql-tools-bar:has(.eql-back) .eql-tools-right { flex: 1 1 100%; margin-left: 0; justify-content: space-between; gap: 8px; }
    .eql-tools-bar:has(.eql-back) .eql-tools-right.eql-tools-right--inline { flex: 0 1 auto; min-width: 0; margin-left: auto; flex-wrap: nowrap; justify-content: flex-end; gap: 6px; }
    .eql-tools-bar:has(.eql-back) .eql-tools-right:not(:has(.eql-toolbar-btn, input, select, label, button)) { flex: 0 1 auto; min-width: 0; margin-left: auto; flex-wrap: nowrap; justify-content: flex-end; }
}

.eql-vacio {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--surface-low);
}

.eql-vacio-cabecera {
    display: flex;
    align-items: center;
    padding: 0 20px;
    height: 56px;
    background: var(--color-primary);
    flex-shrink: 0;
}

.eql-vacio-logo {
    color: var(--surface);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: .06em;
    text-decoration: none;
}

.eql-vacio-contenido {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 14px;
}

@media (max-width: 480px) {
    .eql-action-bar .eql-toolbar-end {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: flex-end;
    }

    .eql-action-bar .eql-toolbar-btn--primary {
        min-width: 0;
        max-width: 100%;
        padding-inline: 10px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 400px) {
    .eq-header { padding: 0 8px; gap: 6px; }
    .eq-header-marca { padding-right: 3px; }
    .eq-header-nav-items { gap: 4px; }
    .eq-header-actions { gap: 6px; padding-left: 6px; }
    .eq-header .cht-notif-trigger,
    .eq-header-btn { min-width: 34px; padding: 0 8px; }
    .eq-btn-salir { width: 34px; }

    .eql-page-body { padding: 12px 10px; }
    .eql-tools-bar,
    .eql-action-bar { padding-left: 10px; padding-right: 10px; }
    .eql-tools-title { font-size: max(12px, calc(13px * var(--eq-escala))); }

    .eql-page-body img,
    .eql-page-body svg,
    .eql-page-body video,
    .eql-page-body canvas { max-width: 100%; }
    .eql-page-body pre { overflow-x: auto; max-width: 100%; }
}

.eql-ocupado {
    cursor: progress;
    opacity: 0.65;
}

@media (max-width: 520px) {
    .eql-toolbar-btn.eql-icono-movil {
        width: 36px;
        min-width: 36px;
        padding: 0;
        justify-content: center;
        flex: 0 0 auto;
    }

    .eql-toolbar-btn.eql-icono-movil .eql-btn-texto,
    .eql-toolbar-btn.eql-icono-movil .eql-btn-ayuda { display: none; }

    .eq-header-nav-items .eq-btn.eql-icono-movil .eql-btn-texto { display: none; }

    .eql-action-bar .eql-fila-unica { flex-wrap: nowrap; gap: 6px; }
}

.eql-estado {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 48px 20px;
    text-align: center;
    color: var(--text-muted);
}

.eql-estado--aviso {
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 14px;
    padding: 14px 16px;
    text-align: left;
    background: var(--info-bg);
    border: 1px solid color-mix(in srgb, var(--info) 30%, transparent);
    border-radius: var(--radius);
}

.eql-estado-icono {
    font-size: calc(34px * var(--eq-escala));
    color: var(--text-faint);
}

.eql-estado--aviso .eql-estado-icono {
    margin-top: 2px;
    font-size: calc(20px * var(--eq-escala));
    color: var(--info-text);
}

.eql-estado-texto {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
}

.eql-estado--aviso .eql-estado-texto {
    align-items: flex-start;
}

.eql-estado-titulo {
    margin: 0 0 4px;
    font-size: calc(16px * var(--eq-escala));
    font-weight: 700;
    color: var(--text-on-surface);
    text-wrap: balance;
}

.eql-estado-mensaje {
    max-width: 52ch;
    margin: 0;
    font-size: max(12px, calc(13.5px * var(--eq-escala)));
    line-height: 1.6;
}

.eql-siguiente {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin: 0 0 16px;
    padding: 12px 16px;
    background: var(--color-primary-bg);
    border: 1px solid color-mix(in srgb, var(--color-primary) 25%, transparent);
    border-radius: var(--radius-md);
}

.eql-siguiente-titulo {
    margin: 0;
    font-size: max(12px, calc(13.5px * var(--eq-escala)));
    font-weight: 700;
    color: var(--color-primary-dark);
}

.eql-siguiente .eql-estado-acciones { margin: 0; justify-content: flex-start; }

@media (max-width: 480px) {
    .eql-siguiente .eql-estado-acciones { flex-direction: column; align-items: stretch; width: 100%; }
}

.eql-estado-acciones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.eql-estado--aviso .eql-estado-acciones {
    justify-content: flex-start;
}

.eql-estado-acciones .eql-estado-accion {
    justify-content: center;
    height: auto;
    min-height: 36px;
    white-space: normal;
    line-height: 1.35;
}

@media (max-width: 480px) {
    .eql-estado { padding: 32px 8px; }
    .eql-estado--aviso { flex-direction: column; gap: 8px; padding: 14px; }
    .eql-estado-acciones { flex-direction: column; align-items: stretch; align-self: stretch; }
    .eql-estado-acciones .eql-estado-accion { min-height: 40px; padding: 8px 12px; }
}
