/* ============================================================
 * sim.css — CSS unificado de SIM4
 * Generado por concatenación de los CSS custom del proyecto:
 *   1) app-overrides.css    (global, overrides del tema; cargado por base.html)
 *   2) report-dashboard.css (scopeado a .report-dashboard / .report-informes-menu-card)
 *   3) auth-landing.css     (scopeado a .landing-modern / .lm-*)
 *
 * Contextos que NO entran en este archivo (siguen aparte por diseño):
 *   - summernote-iframe-theme.css : dentro del iframe de django-summernote
 *   - shared-pdf-document.css      : PDF generado por WeasyPrint (unidades pt)
 *   - poll-email-views.css         : HTML standalone de encuestas por email
 * ============================================================ */


/* ============================================================
 * SECTION 1 — APP OVERRIDES (global)
 * Origen: static/css/app-overrides.css
 * ============================================================ */
/* =============================================================================
 * SIM — estilos de aplicación (consolidado)
 * Cargar DESPUÉS de: css/horizontal-layout/style.css (tema oficial)
 * No editar horizontal-layout/style.css aquí.
 * ============================================================================= */

/* ----- APP — tema claro/oscuro (html[data-color-scheme]) (app-color-scheme.css) ----- */
/* Tema oscuro — solo área autenticada (base.html). Alcance: html[data-color-scheme="dark"] */

/* Enlaces sin subrayado por defecto (Bootstrap reboot); usar .text-decoration-underline / .link-underline* si se desea */
:root {
    --bs-link-decoration: none;
}

a,
a:hover,
a:focus {
    text-decoration: none;
}

.btn-link,
.btn-link:hover,
.btn-link:focus {
    text-decoration: none;
}

/*
 * Enlace reutilizable: mismo color que el contenedor (celdas .table, texto corrido).
 * Usar en <a> cuando no quieras el color de --bs-link-color del reboot (p. ej. modal BS en tabla).
 */
.link-inherit {
    color: inherit !important;
}

.link-inherit:hover,
.link-inherit:focus,
.link-inherit:focus-visible {
    color: inherit !important;
}

html[data-color-scheme="dark"] {
    color-scheme: dark;
    /*
     * Paleta oscura de la app: mismo criterio que Bootstrap [data-bs-theme=dark] en style.css (~8493+).
     * Muchas utilidades usan rgba(var(--bs-*-color-rgb), …) !important; si solo se redefine --bs-*-color
     * el RGB del :root claro (18,19,26 / 0,0,0 / …) deja texto o rayas de tabla ilegibles.
     */
    --bs-body-color: #e8eaef;
    --bs-body-color-rgb: 232, 234, 239;
    --bs-body-bg: #12141a;
    --bs-body-bg-rgb: 18, 20, 26;
    --bs-emphasis-color: #fff;
    --bs-emphasis-color-rgb: 255, 255, 255;
    --bs-secondary-color: #9aa5b8;
    --bs-secondary-color-rgb: 154, 165, 184;
    --bs-secondary-bg: #252a35;
    --bs-secondary-bg-rgb: 37, 42, 53;
    --bs-tertiary-color: rgba(232, 234, 239, 0.5);
    --bs-tertiary-color-rgb: 232, 234, 239;
    --bs-tertiary-bg: #2a303c;
    --bs-tertiary-bg-rgb: 42, 48, 60;
    /* BS solo redefine esto en [data-bs-theme=dark]; sin ello la flecha del select queda #343a40 sobre fondo oscuro */
    --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23c8d0e0' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    --bs-breadcrumb-divider-color: #6c7585;
}

/* .text-black es #000 con !important; los títulos de menú módulo lo usan sobre fondo oscuro */
html[data-color-scheme="dark"] .text-black {
    color: #e8eaef !important;
}

html[data-color-scheme="dark"] body,
html[data-color-scheme="dark"] .container-scroller {
    background-color: #12141a !important;
    color: #e8eaef !important;
}

html[data-color-scheme="dark"] .main-panel {
    background: #12141a !important;
}

html[data-color-scheme="dark"] .content-wrapper {
    color: #e8eaef;
}

html[data-color-scheme="dark"] .navbar.horizontal-layout {
    background: #1a1d26 !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35) !important;
}

html[data-color-scheme="dark"] .navbar.horizontal-layout .navbar-menu-wrapper {
    color: #e8eaef !important;
}

html[data-color-scheme="dark"] .navbar.horizontal-layout .nav-bottom .page-navigation > .nav-item > .nav-link {
    color: #c8d0e0 !important;
}

/* Chevron MDI del menú horizontal: hereda color del link; se fuerza por si el tema claro dejó gris ilegible */
html[data-color-scheme="dark"] .navbar.horizontal-layout .nav-bottom .page-navigation > .nav-item > .nav-link .menu-arrow,
html[data-color-scheme="dark"] .navbar.horizontal-layout .nav-bottom .page-navigation > .nav-item > .nav-link .menu-arrow::before {
    color: #c8d0e0 !important;
}

/* Rollover: el tema pone #f2f2f9 en .nav-link y .submenu (style.css ~29792–29876) */
html[data-color-scheme="dark"] .navbar.horizontal-layout .nav-bottom .page-navigation > .nav-item:hover > .nav-link {
    background: #2a303c !important;
    color: #fff !important;
}

html[data-color-scheme="dark"] .navbar.horizontal-layout .nav-bottom .page-navigation > .nav-item:hover .submenu {
    background: transparent !important;
}

html[data-color-scheme="dark"] .navbar.horizontal-layout .nav-bottom .page-navigation > .nav-item.active > .nav-link,
html[data-color-scheme="dark"] .navbar.horizontal-layout .nav-bottom .page-navigation > .nav-item.active:hover > .nav-link {
    background: linear-gradient(30deg, #464de4, #814eff) !important;
    color: #fff !important;
}

html[data-color-scheme="dark"] .navbar.horizontal-layout .nav-bottom .page-navigation > .nav-item.active > .nav-link .link-icon,
html[data-color-scheme="dark"] .navbar.horizontal-layout .nav-bottom .page-navigation > .nav-item.active > .nav-link .menu-arrow {
    color: #fff !important;
}

html[data-color-scheme="dark"] .navbar.horizontal-layout .nav-bottom .page-navigation > .nav-item:hover > .nav-link .link-icon {
    color: #b8c4ff !important;
}

html[data-color-scheme="dark"] .navbar.horizontal-layout .nav-bottom .page-navigation > .nav-item .submenu ul li a {
    color: #d0d8e8 !important;
}

html[data-color-scheme="dark"] .navbar.horizontal-layout .nav-bottom .page-navigation > .nav-item .submenu ul li a:hover {
    background: rgba(99, 123, 255, 0.18) !important;
}

@media (min-width: 768px) {
    html[data-color-scheme="dark"] .navbar.horizontal-layout .nav-bottom .page-navigation > .nav-item:not(.mega-menu) .submenu ul {
        background: #22262f !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
    }

    html[data-color-scheme="dark"] .navbar.horizontal-layout .nav-bottom .page-navigation > .nav-item.mega-menu .submenu {
        background: #22262f !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
    }
}

/* Barra de menú horizontal (incl. móvil con menú desplegado): fondo claro del tema por defecto */
html[data-color-scheme="dark"] .navbar.horizontal-layout .nav-bottom.fixed-top .page-navigation {
    background: #1a1d26 !important;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.28) !important;
}

@media (max-width: 767.98px) {
    html[data-color-scheme="dark"] .navbar.horizontal-layout .nav-bottom .page-navigation > .nav-item:not(.mega-menu) .submenu ul {
        background: #22262f !important;
    }

    html[data-color-scheme="dark"] .navbar.horizontal-layout .nav-bottom .page-navigation > .nav-item.mega-menu .submenu {
        background: #22262f !important;
    }
}

html[data-color-scheme="dark"] .navbar.horizontal-layout .navbar-toggler .mdi {
    color: #e8eaef !important;
}

html[data-color-scheme="dark"] .theme-toggle-btn {
    color: #b8c5d9 !important;
}

html[data-color-scheme="dark"] .theme-toggle-btn:hover {
    color: #fff !important;
}

html[data-color-scheme="dark"] .card {
    background-color: #1e222b !important;
    border-color: #2f3542 !important;
    color: #e8eaef !important;
}

html[data-color-scheme="dark"] .card-header,
html[data-color-scheme="dark"] .card-footer {
    background-color: #252a35 !important;
    border-color: #2f3542 !important;
    color: #e8eaef !important;
}

/*
 * Barras Bootstrap (.progress): el riel usa --bs-secondary-bg; sobre .card oscuro se ve
 * como una franja más clara (“columna”). Debe fundirse con el fondo (transparente).
 */
html[data-color-scheme="dark"] .progress,
html[data-color-scheme="dark"] .progress-stacked {
    --bs-progress-bg: transparent;
    background-color: transparent !important;
    --bs-progress-box-shadow: none;
    box-shadow: none !important;
}

html[data-color-scheme="dark"] .text-muted {
    color: #9aa5b8 !important;
}

html[data-color-scheme="dark"] .text-dark {
    color: #e8eaef !important;
}

html[data-color-scheme="dark"] .border,
html[data-color-scheme="dark"] .border-top,
html[data-color-scheme="dark"] .border-bottom {
    border-color: #2f3542 !important;
}

html[data-color-scheme="dark"] .table {
    --bs-table-bg: transparent;
    --bs-table-color: #e8eaef;
    /* Hover usa box-shadow inset + --bs-table-bg-state; sin esto queda #eff3f5 y el texto claro no se ve */
    --bs-table-hover-bg: rgba(99, 123, 255, 0.22);
    --bs-table-hover-color: #fff;
    color: #e8eaef !important;
    border-color: #2f3542 !important;
}

html[data-color-scheme="dark"] .table > :not(caption) > * > * {
    background-color: transparent;
    border-bottom-color: #2f3542 !important;
    color: inherit;
}

html[data-color-scheme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(255, 255, 255, 0.04) !important;
}

html[data-color-scheme="dark"] .table-hover > tbody > tr:hover > * {
    --bs-table-color-state: var(--bs-table-hover-color);
    --bs-table-bg-state: var(--bs-table-hover-bg);
    color: var(--bs-table-hover-color) !important;
}

html[data-color-scheme="dark"] thead.table-secondary,
html[data-color-scheme="dark"] .table-secondary {
    --bs-table-bg: #2a303c;
    --bs-table-color: #e8eaef;
    color: #e8eaef !important;
}

/* Tema claro: hover de tabla con texto oscuro sobre fondo suave (misma mecánica box-shadow que BS) */
html[data-color-scheme="light"] .table {
    --bs-table-hover-bg: #e2e8f0;
    --bs-table-hover-color: #1a1d26;
}

html[data-color-scheme="light"] .table-hover > tbody > tr:hover > * {
    --bs-table-color-state: var(--bs-table-hover-color);
    --bs-table-bg-state: var(--bs-table-hover-bg);
    color: var(--bs-table-hover-color) !important;
}

/* Encabezados .table-light / .bg-light en tablas: en oscuro el texto no debe quedar invisible */
html[data-color-scheme="dark"] .table thead tr.table-light > *,
html[data-color-scheme="dark"] .table thead tr.bg-light > *,
html[data-color-scheme="dark"] .table tbody tr.table-light > th,
html[data-color-scheme="dark"] .table tbody tr.bg-light > th {
    --bs-table-bg: #2a303c;
    --bs-table-color: #e8eaef;
    background-color: #2a303c !important;
    color: #e8eaef !important;
}

html[data-color-scheme="dark"] .table thead .table-light,
html[data-color-scheme="dark"] .table thead .bg-light {
    --bs-table-bg: #2a303c;
    --bs-table-color: #e8eaef;
    color: #e8eaef !important;
}

/* Tablas sin clase .table (solo table-bordered): mismos encabezados claros */
html[data-color-scheme="dark"] table thead tr.table-light > th,
html[data-color-scheme="dark"] table thead tr.table-light > td,
html[data-color-scheme="dark"] table thead tr.bg-light > th,
html[data-color-scheme="dark"] table thead tr.bg-light > td {
    background-color: #2a303c !important;
    color: #e8eaef !important;
    border-color: #3d4554 !important;
}

/* tfoot.table-light: mismo conflicto que thead (fondo transparente en celdas + --bs-table-color oscuro) */
html[data-color-scheme="dark"] .table tfoot.table-light > tr > *,
html[data-color-scheme="dark"] .table tfoot.bg-light > tr > * {
    --bs-table-bg: #2a303c;
    --bs-table-color: #e8eaef;
    background-color: #2a303c !important;
    color: #e8eaef !important;
}

html[data-color-scheme="dark"] .form-control,
html[data-color-scheme="dark"] .form-select,
html[data-color-scheme="dark"] textarea {
    background-color: #252a35 !important;
    border-color: #3d4554 !important;
    color: #e8eaef !important;
}

html[data-color-scheme="dark"] .form-control:focus,
html[data-color-scheme="dark"] .form-select:focus {
    background-color: #2a303c !important;
    border-color: #5c6bc0 !important;
    color: #fff !important;
}

/* .form-select usa var(--bs-form-select-bg-img) del html; refuerzo por si algún scope pierde la variable */
html[data-color-scheme="dark"] .form-select {
    background-image: var(--bs-form-select-bg-img), var(--bs-form-select-bg-icon, none);
}

/* Select2: triángulo del .arrow b sigue siendo #888 del vendor — poco contraste sobre #252a35 */
html[data-color-scheme="dark"] .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #c8d0e0 transparent transparent transparent !important;
}

html[data-color-scheme="dark"] .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #c8d0e0 transparent !important;
}

/* Acordeón: variables en el botón para que ::after herede (BS [data-bs-theme=dark]) */
html[data-color-scheme="dark"] .accordion-button {
    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23a8c4ff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23d6deff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/*
 * Acordeones (Bootstrap + tema .accordion-solid-*): capas .card / --bs-accordion-bg
 * forzaban blanco u opacidad desalineada con el fondo de página en claro/oscuro.
 */
.accordion:not(.accordion-multi-colored) {
    --bs-accordion-bg: transparent;
    --bs-accordion-btn-bg: transparent;
}

.accordion-item,
.accordion-header,
.accordion-body,
.accordion-collapse {
    background-color: transparent !important;
}

.accordion-button {
    background-color: transparent !important;
}

.accordion-button:not(.collapsed) {
    background-color: var(--bs-accordion-active-bg) !important;
    color: var(--bs-accordion-active-color, inherit) !important;
}

.accordion:not(.accordion-multi-colored) .card,
.accordion:not(.accordion-multi-colored) .card-header,
.accordion:not(.accordion-multi-colored) .card-body,
.accordion:not(.accordion-multi-colored) .card-footer {
    background-color: transparent !important;
}

.accordion.accordion-solid-content .card .card-body {
    background-color: transparent !important;
    color: inherit !important;
}

.accordion.accordion-solid-header .card .card-header a[aria-expanded="true"] {
    background: transparent !important;
    color: inherit !important;
}

.accordion.accordion-solid-header .card .card-header a[aria-expanded="true"]:before {
    color: inherit !important;
}

html[data-color-scheme="dark"] .accordion:not(.accordion-multi-colored) .card,
html[data-color-scheme="dark"] .accordion:not(.accordion-multi-colored) .card-header,
html[data-color-scheme="dark"] .accordion:not(.accordion-multi-colored) .card-body,
html[data-color-scheme="dark"] .accordion:not(.accordion-multi-colored) .card-footer {
    background-color: transparent !important;
}

/* Dropdown .dropdown-toggle::after usa currentColor; outline-dark/secondary quedan casi negros sobre card oscura */
html[data-color-scheme="dark"] .btn-outline-dark,
html[data-color-scheme="dark"] .btn-outline-secondary {
    color: #d0d8e8 !important;
    border-color: #5d6575 !important;
}

html[data-color-scheme="dark"] .btn-outline-dark:hover,
html[data-color-scheme="dark"] .btn-outline-dark:focus,
html[data-color-scheme="dark"] .btn-outline-secondary:hover,
html[data-color-scheme="dark"] .btn-outline-secondary:focus {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.06) !important;
    border-color: #8b95a8 !important;
}

html[data-color-scheme="dark"] .btn-light {
    --bs-btn-bg: #2a303c;
    --bs-btn-border-color: #3d4554;
    --bs-btn-color: #e8eaef;
    --bs-btn-hover-bg: #3d4554;
    --bs-btn-hover-border-color: #5d6575;
    --bs-btn-hover-color: #fff;
}

html[data-color-scheme="dark"] .breadcrumb-item + .breadcrumb-item::before {
    color: var(--bs-breadcrumb-divider-color, #6c7585) !important;
}

html[data-color-scheme="dark"] .input-group-text {
    background-color: #2a303c !important;
    border-color: #3d4554 !important;
    color: #c8d0e0 !important;
}

html[data-color-scheme="dark"] .modal-content {
    background-color: #1e222b !important;
    border-color: #2f3542 !important;
    color: #e8eaef !important;
}

html[data-color-scheme="dark"] .modal-header,
html[data-color-scheme="dark"] .modal-footer {
    border-color: #2f3542 !important;
}

html[data-color-scheme="dark"] .breadcrumb-item a,
html[data-color-scheme="dark"] .breadcrumb-item.active {
    color: #b8c5d9 !important;
}

html[data-color-scheme="dark"] .footer {
    background: transparent !important;
}

html[data-color-scheme="dark"] .dropdown-menu {
    background-color: #22262f !important;
    border-color: #2f3542 !important;
}

html[data-color-scheme="dark"] .dropdown-item {
    color: #e8eaef !important;
}

html[data-color-scheme="dark"] .dropdown-item:hover,
html[data-color-scheme="dark"] .dropdown-item:focus {
    background-color: rgba(99, 123, 255, 0.2) !important;
    color: #fff !important;
}

html[data-color-scheme="dark"] .list-group-item {
    background-color: #1e222b !important;
    border-color: #2f3542 !important;
    color: #e8eaef !important;
}

html[data-color-scheme="dark"] .page-link {
    background-color: #252a35 !important;
    border-color: #3d4554 !important;
    color: #b8c5d9 !important;
}

html[data-color-scheme="dark"] .page-item.active .page-link {
    background-color: #5c6bc0 !important;
    border-color: #5c6bc0 !important;
    color: #fff !important;
}

html[data-color-scheme="dark"] hr {
    border-color: #2f3542 !important;
    opacity: 1;
}

/* Pestañas: el tema horizontal fija variables (#ebedf2, activo en blanco) — hay que sustituirlas en oscuro */
html[data-color-scheme="dark"] .nav-tabs {
    --bs-nav-link-color: #b8c5d9;
    --bs-nav-link-hover-color: #fff;
    --bs-nav-tabs-border-color: #2f3542;
    --bs-nav-tabs-link-hover-border-color: #3d4554 #3d4554 #2f3542;
    --bs-nav-tabs-link-active-color: #fff;
    --bs-nav-tabs-link-active-bg: #252a35;
    --bs-nav-tabs-link-active-border-color: #2f3542 #2f3542 #252a35;
    border-bottom-color: #2f3542 !important;
}

html[data-color-scheme="dark"] .card .nav-tabs,
html[data-color-scheme="dark"] .modal-content .nav-tabs {
    --bs-nav-tabs-link-active-bg: #1e222b;
    --bs-nav-tabs-link-active-border-color: #2f3542 #2f3542 #1e222b;
}

html[data-color-scheme="dark"] .nav-tabs .nav-link,
html[data-color-scheme="dark"] .nav.nav-tabs .nav-link {
    color: var(--bs-nav-link-color) !important;
    background-color: transparent !important;
}

html[data-color-scheme="dark"] .nav-tabs .nav-link:hover,
html[data-color-scheme="dark"] .nav-tabs .nav-link:focus,
html[data-color-scheme="dark"] .nav.nav-tabs .nav-link:hover,
html[data-color-scheme="dark"] .nav.nav-tabs .nav-link:focus {
    color: var(--bs-nav-link-hover-color) !important;
}

html[data-color-scheme="dark"] .nav-tabs .nav-link.active,
html[data-color-scheme="dark"] .nav-tabs .nav-item.show .nav-link,
html[data-color-scheme="dark"] .nav.nav-tabs .nav-link.active {
    color: var(--bs-nav-tabs-link-active-color) !important;
    background-color: var(--bs-nav-tabs-link-active-bg) !important;
    border-color: var(--bs-nav-tabs-link-active-border-color) !important;
}

html[data-color-scheme="dark"] .nav-tabs button.nav-link {
    color: var(--bs-nav-link-color) !important;
    background-color: transparent !important;
}

html[data-color-scheme="dark"] .nav-tabs button.nav-link:hover,
html[data-color-scheme="dark"] .nav-tabs button.nav-link:focus {
    color: var(--bs-nav-link-hover-color) !important;
}

html[data-color-scheme="dark"] .nav-tabs button.nav-link.active {
    color: var(--bs-nav-tabs-link-active-color) !important;
    background-color: var(--bs-nav-tabs-link-active-bg) !important;
    border-color: var(--bs-nav-tabs-link-active-border-color) !important;
}

html[data-color-scheme="dark"] .tab-content,
html[data-color-scheme="dark"] .tab-pane {
    color: #e8eaef;
}

html[data-color-scheme="dark"] .nav-pills {
    --bs-nav-link-color: #b8c5d9;
    --bs-nav-link-hover-color: #fff;
    --bs-nav-pills-link-active-bg: #5c6bc0;
    --bs-nav-pills-link-active-color: #fff;
}

html[data-color-scheme="dark"] .nav-pills .nav-link:not(.active) {
    color: #b8c5d9 !important;
    background-color: transparent !important;
}

/* Utilidades Bootstrap (.text-primary con !important) sobre pestañas */
html[data-color-scheme="dark"] .nav-tabs .nav-link.text-primary:not(.active) {
    color: #b8c5d9 !important;
}

html[data-color-scheme="dark"] .nav-tabs .nav-link.text-primary.active {
    color: #fff !important;
}

html[data-color-scheme="dark"] .alert {
    border-width: 1px;
}

html[data-color-scheme="dark"] .select2-container--default .select2-selection--single,
html[data-color-scheme="dark"] .select2-container--default .select2-selection--multiple {
    background-color: #252a35 !important;
    border-color: #3d4554 !important;
}

html[data-color-scheme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #e8eaef !important;
}

html[data-color-scheme="dark"] .select2-dropdown {
    background-color: #22262f !important;
    border-color: #2f3542 !important;
}

html[data-color-scheme="dark"] .select2-container--default .select2-results__option {
    background-color: #22262f !important;
    color: #e8eaef !important;
}

html[data-color-scheme="dark"] .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #5c6bc0 !important;
    color: #fff !important;
}

html[data-color-scheme="dark"] .dataTables_wrapper .dataTables_length,
html[data-color-scheme="dark"] .dataTables_wrapper .dataTables_filter,
html[data-color-scheme="dark"] .dataTables_wrapper .dataTables_info,
html[data-color-scheme="dark"] .dataTables_wrapper .dataTables_paginate {
    color: #c8d0e0 !important;
}

html[data-color-scheme="dark"] .dataTables_wrapper .dataTables_filter input {
    background-color: #252a35 !important;
    border-color: #3d4554 !important;
    color: #e8eaef !important;
}

html[data-color-scheme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button a {
    color: #c8d0e0 !important;
}

/* Home: tarjetas blancas de accesos (index, pending, task_search, consolidación) */
html[data-color-scheme="dark"] .home-dashboard-tile {
    background-color: #252a35 !important;
    border: 1px solid #2f3542 !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4) !important;
}

html[data-color-scheme="dark"] .home-dashboard-tile .btn-outline-warning {
    color: #f0d080;
    border-color: #a67c35;
}

html[data-color-scheme="dark"] .home-dashboard-tile .btn-outline-warning:hover {
    background-color: rgba(240, 208, 128, 0.12);
    color: #ffe8a8;
    border-color: #c9a545;
}

html[data-color-scheme="dark"] .home-dashboard-tile .btn-outline-primary {
    color: #a8bfff;
    border-color: #5c6bc0;
}

html[data-color-scheme="dark"] .home-dashboard-tile .btn-outline-primary:hover {
    background-color: rgba(92, 107, 192, 0.2);
    color: #d6deff;
    border-color: #7a87d7;
}

html[data-color-scheme="dark"] .home-dashboard-tile .btn-outline-danger {
    color: #f0a0a0;
    border-color: #a65c5c;
}

html[data-color-scheme="dark"] .home-dashboard-tile .btn-outline-danger:hover {
    background-color: rgba(220, 100, 100, 0.15);
    color: #ffcfcf;
    border-color: #c87878;
}

html[data-color-scheme="dark"] .home-dashboard-tile .btn-outline-success {
    color: #8fd4a8;
    border-color: #3d8b55;
}

html[data-color-scheme="dark"] .home-dashboard-tile .btn-outline-success:hover {
    background-color: rgba(80, 180, 120, 0.15);
    color: #b8f0cc;
    border-color: #52a66e;
}

/* bootstrap-datepicker (container body): cabecera mes y días coherentes con tema oscuro */
html[data-color-scheme="dark"] .datepicker {
    background-color: #252a35 !important;
    color: #e8eaef !important;
}

html[data-color-scheme="dark"] .datepicker-dropdown:after {
    border-bottom-color: #252a35 !important;
}

html[data-color-scheme="dark"] .datepicker table thead tr th {
    background-color: #2d3340 !important;
    color: #e8eaef !important;
}

html[data-color-scheme="dark"] .datepicker table thead tr th.dow {
    color: #9aa5b8 !important;
}

html[data-color-scheme="dark"] .datepicker .datepicker-switch,
html[data-color-scheme="dark"] .datepicker .prev,
html[data-color-scheme="dark"] .datepicker .next {
    color: #e8eaef !important;
}

html[data-color-scheme="dark"] .datepicker .datepicker-switch:hover,
html[data-color-scheme="dark"] .datepicker .prev:hover,
html[data-color-scheme="dark"] .datepicker .next:hover,
html[data-color-scheme="dark"] .datepicker tfoot tr th:hover {
    background-color: #3d4554 !important;
}

html[data-color-scheme="dark"] .datepicker table tr td.day:hover,
html[data-color-scheme="dark"] .datepicker table tr td span:hover,
html[data-color-scheme="dark"] .datepicker table tr td span.focused {
    background: #3d4554 !important;
}

html[data-color-scheme="dark"] .datepicker table tr td.new,
html[data-color-scheme="dark"] .datepicker table tr td.old {
    color: #6c7585 !important;
}

html[data-color-scheme="dark"] .datepicker table tr td.today {
    background-color: #4a3d1a !important;
    background-image: none !important;
    color: #f5e6a8 !important;
}

html[data-color-scheme="dark"] .datepicker table tr td.highlighted {
    background: #2a3d52 !important;
}

/*
 * Summernote (django-summernote, iframe: false).
 * La documentación oficial (summernote.org) no define un tema oscuro para summernote-bs5;
 * la personalización es por CSS (p. ej. .note-editor / .note-editable) y callbacks onInit opcionales.
 * Fondo “transparente” respecto al marco: el área editable hereda el mismo tono que .card oscuro.
 */
html[data-color-scheme="dark"] .note-editor.note-frame,
html[data-color-scheme="dark"] .note-editor.note-airframe {
    border-color: #3d4554 !important;
    background-color: #1e222b !important;
}

html[data-color-scheme="dark"] .note-editor.note-frame .note-toolbar,
html[data-color-scheme="dark"] .note-editor.note-airframe .note-toolbar {
    background-color: #252a35 !important;
    border-bottom-color: #3d4554 !important;
}

html[data-color-scheme="dark"] .note-editor.note-frame .note-toolbar .note-btn,
html[data-color-scheme="dark"] .note-editor.note-airframe .note-toolbar .note-btn {
    color: #e8eaef !important;
    border-color: #3d4554 !important;
    background-color: #2a303c !important;
}

html[data-color-scheme="dark"] .note-editor.note-frame .note-toolbar .note-btn:hover,
html[data-color-scheme="dark"] .note-editor.note-frame .note-toolbar .note-btn:focus,
html[data-color-scheme="dark"] .note-editor.note-frame .note-toolbar .note-btn.active,
html[data-color-scheme="dark"] .note-editor.note-airframe .note-toolbar .note-btn:hover,
html[data-color-scheme="dark"] .note-editor.note-airframe .note-toolbar .note-btn:focus,
html[data-color-scheme="dark"] .note-editor.note-airframe .note-toolbar .note-btn.active {
    background-color: #3d4554 !important;
    color: #fff !important;
}

html[data-color-scheme="dark"] .note-editor.note-frame .note-editing-area,
html[data-color-scheme="dark"] .note-editor.note-airframe .note-editing-area {
    background-color: transparent !important;
}

html[data-color-scheme="dark"] .note-editor.note-frame .note-editing-area .note-editable,
html[data-color-scheme="dark"] .note-editor.note-airframe .note-editing-area .note-editable,
html[data-color-scheme="dark"] .note-editor .note-editing-area .note-editable {
    background-color: transparent !important;
    color: #e8eaef !important;
}

html[data-color-scheme="dark"] .note-editor .note-editing-area .note-editable a {
    color: #8ab4ff !important;
}

html[data-color-scheme="dark"] .note-editor.note-frame .note-placeholder,
html[data-color-scheme="dark"] .note-editor.note-airframe .note-placeholder {
    color: #9aa5b8 !important;
}

html[data-color-scheme="dark"] .note-editor.note-frame .note-statusbar,
html[data-color-scheme="dark"] .note-editor.note-airframe .note-statusbar {
    background-color: #252a35 !important;
    border-top-color: #3d4554 !important;
    color: #9aa5b8 !important;
}

html[data-color-scheme="dark"] .note-editor.note-frame .note-editing-area .note-codable,
html[data-color-scheme="dark"] .note-editor.note-airframe .note-editing-area .note-codable {
    background-color: #1a1d24 !important;
    color: #e8eaef !important;
    border-color: #3d4554 !important;
}

html[data-color-scheme="dark"] .note-editor .note-dropzone {
    background-color: #252a35 !important;
    color: #9aa5b8 !important;
}

html[data-color-scheme="dark"] .note-editor .note-toolbar .note-dropdown-menu,
html[data-color-scheme="dark"] .note-popover .popover-content {
    background-color: #252a35 !important;
    border-color: #3d4554 !important;
    color: #e8eaef !important;
}

html[data-color-scheme="dark"] .note-editor .note-toolbar .note-dropdown-menu .note-btn,
html[data-color-scheme="dark"] .note-popover .popover-content .note-btn {
    color: #e8eaef !important;
    border-color: #3d4554 !important;
    background-color: #2a303c !important;
}

html[data-color-scheme="dark"] .note-editor .note-toolbar .note-dropdown-menu .note-btn:hover,
html[data-color-scheme="dark"] .note-popover .popover-content .note-btn:hover {
    background-color: #3d4554 !important;
}

html[data-color-scheme="dark"] .note-editor .note-toolbar .note-dropdown-menu .note-palette-title,
html[data-color-scheme="dark"] .note-popover .popover-content .note-palette-title {
    border-bottom-color: #3d4554 !important;
    color: #9aa5b8 !important;
}

html[data-color-scheme="dark"] .note-modal .modal-content {
    background-color: #252a35 !important;
    border-color: #3d4554 !important;
    color: #e8eaef !important;
}

html[data-color-scheme="dark"] .note-modal .modal-header,
html[data-color-scheme="dark"] .note-modal .modal-footer {
    background-color: #1e222b !important;
    border-color: #3d4554 !important;
    color: #e8eaef !important;
}

html[data-color-scheme="dark"] .note-modal .note-image-dialog .note-dropzone {
    color: #9aa5b8 !important;
    border-color: #3d4554 !important;
}

html[data-color-scheme="dark"] .note-modal .form-control,
html[data-color-scheme="dark"] .note-modal .note-modal-form label {
    background-color: #1e222b !important;
    border-color: #3d4554 !important;
    color: #e8eaef !important;
}

html[data-color-scheme="dark"] .note-modal .note-modal-content {
    background-color: #252a35 !important;
    border-color: #3d4554 !important;
    color: #e8eaef !important;
}

html[data-color-scheme="dark"] .note-editor.note-frame.fullscreen,
html[data-color-scheme="dark"] .note-editor.note-airframe.fullscreen {
    background-color: #1e222b !important;
}

/* ----- APP — organigrama (organigrama.css) ----- */
/**
 * Organigrama (MPTT .tree + nodos .org-node).
 * Cualquier plantilla con class="tree" y estas clases reutiliza el layout.
 * Tema oscuro: html[data-color-scheme="dark"] (misma convención que app-color-scheme.css).
 */

.tree {
    --org-line: var(--bs-border-color, #dee2e6);
    --org-node-bg: #fff;
    --org-node-border: var(--bs-border-color, #dee2e6);
    --org-node-color: var(--bs-body-color, #212529);
    --org-node-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    padding: 0.5rem 0 1rem;
}

html[data-color-scheme="dark"] .tree {
    --org-line: #3d4554;
    --org-node-bg: #252a35;
    --org-node-border: #3d4554;
    --org-node-color: #e8eaef;
    --org-node-shadow: 0 0.125rem 0.35rem rgba(0, 0, 0, 0.35);
}

.tree ul {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    padding: 1.25rem 0 0;
    margin: 0 auto;
}

.tree > ul {
    padding-top: 0;
}

.tree li {
    position: relative;
    list-style: none;
    text-align: center;
    padding: 1.25rem 0.35rem 0;
    flex: 0 0 auto;
}

.tree li::before,
.tree li::after {
    content: "";
    position: absolute;
    top: 0;
    right: 50%;
    width: 50%;
    height: 1.25rem;
    border-top: 1px solid var(--org-line);
}

.tree li::after {
    right: auto;
    left: 50%;
    border-left: 1px solid var(--org-line);
}

.tree li:only-child {
    padding-top: 0;
}

.tree li:only-child::before,
.tree li:only-child::after {
    display: none;
}

.tree ul.children > li:first-child::before {
    border: 0 none;
}

.tree ul.children > li:last-child::after {
    border: 0 none;
}

.tree ul.children > li:last-child::before {
    border-right: 1px solid var(--org-line);
    border-radius: 0 0.25rem 0 0;
}

.tree ul.children > li:first-child::after {
    border-radius: 0.25rem 0 0 0;
}

.tree ul.children::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 1.25rem;
    margin-left: -0.5px;
    border-left: 1px solid var(--org-line);
}

.tree > ul > li::before,
.tree > ul > li::after {
    display: none;
}

.tree .org-node {
    min-width: 3.5rem;
    max-width: 6.25rem;
    padding: 0.12rem 0.2rem;
    cursor: pointer;
    background-color: var(--org-node-bg) !important;
    border-color: var(--org-node-border) !important;
    color: var(--org-node-color) !important;
    box-shadow: var(--org-node-shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease, font-size 0.18s ease,
        border-color 0.18s ease, outline 0.18s ease;
    font-size: 0.5625rem;
    line-height: 1.15;
}

.tree .org-node:hover {
    transform: scale(1.22);
    box-shadow: 0 0.35rem 1rem rgba(70, 77, 228, 0.28), 0 0.15rem 0.4rem rgba(0, 0, 0, 0.12) !important;
    font-size: 0.8125rem;
    border-color: rgba(70, 77, 228, 0.55) !important;
    outline: 1px solid rgba(70, 77, 228, 0.35);
    outline-offset: 1px;
    z-index: 2;
    /* Una sola línea por bloque de texto; los <br> del HTML siguen separando cargo / persona */
    white-space: nowrap;
    max-width: none;
    width: max-content;
    overflow: visible;
}

html[data-color-scheme="dark"] .tree .org-node:hover {
    box-shadow: 0 0.4rem 1.1rem rgba(99, 123, 255, 0.35), 0 0.2rem 0.5rem rgba(0, 0, 0, 0.5) !important;
    border-color: rgba(129, 142, 255, 0.65) !important;
    outline-color: rgba(129, 142, 255, 0.45);
}

.tree a.org-node-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.95rem;
    height: 0.95rem;
    font-size: 0.65rem;
    border-radius: 0.15rem;
    background-color: var(--org-node-bg);
    color: var(--bs-success, #198754) !important;
    vertical-align: middle;
}

html[data-color-scheme="dark"] .tree a.org-node-add {
    color: #6ee7a8 !important;
}

/* Modal lista colapsable (añadir class="org-chart-modal" al .modal) */
.org-chart-modal .org-modal-row {
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}

html[data-color-scheme="dark"] .org-chart-modal .org-modal-row {
    border-bottom-color: #2f3542;
}

.org-chart-modal .org-modal-collapse-inner {
    border-left: 1px solid var(--bs-border-color, #dee2e6);
}

html[data-color-scheme="dark"] .org-chart-modal .org-modal-collapse-inner {
    border-left-color: #2f3542;
}

html[data-color-scheme="dark"] .org-chart-modal .text-success {
    color: #6ee7a8 !important;
}

/* ----- APP — acciones flotantes / botones (app-add-actions.css) ----- */
/**
 * Acciones "Agregar" (+) en verde success — mismo criterio que comply_detail (lecturas).
 * Cubre title con "Agregar" / "agregar" y la clase opt-in .sim-add-link.
 */

a[title*="Agregar"],
a[title*="agregar"] {
    color: var(--bs-success) !important;
}

a[title*="Agregar"]:hover,
a[title*="agregar"]:hover {
    color: #157347 !important;
}

/* Sobreescribe text-primary / text-info / text-dark en el mismo enlace */
a.text-primary[title*="Agregar"],
a.text-primary[title*="agregar"],
a.text-info[title*="Agregar"],
a.text-info[title*="agregar"],
a.text-dark[title*="Agregar"],
a.text-dark[title*="agregar"],
a[title*="Agregar"].text-primary,
a[title*="agregar"].text-primary {
    color: var(--bs-success) !important;
}

a.sim-add-link {
    color: var(--bs-success) !important;
    text-decoration: none;
}

a.sim-add-link:hover {
    color: #157347 !important;
}

html[data-color-scheme="dark"] a[title*="Agregar"],
html[data-color-scheme="dark"] a[title*="agregar"],
html[data-color-scheme="dark"] a.sim-add-link {
    color: #75b798 !important;
}

html[data-color-scheme="dark"] a[title*="Agregar"]:hover,
html[data-color-scheme="dark"] a[title*="agregar"]:hover,
html[data-color-scheme="dark"] a.sim-add-link:hover {
    color: #96ceb4 !important;
}

/* Icono + en verde dentro de enlaces sim-add-link o con title Agregar */
a[title*="Agregar"] .mdi-plus,
a[title*="agregar"] .mdi-plus,
a.sim-add-link .mdi-plus {
    color: inherit;
}

/* Altas con ?parent= en la URL (p. ej. task/create/?parent=…) — mismo verde aunque falte title */
a[href*="create/?parent="],
a[href*="create?parent="],
a[href*="task/child/"],
a[href*="item/child/"],
a[href*="action/child/"],
a[href*="/read/create/"] {
    color: var(--bs-success) !important;
}

a[href*="create/?parent="]:hover,
a[href*="create?parent="]:hover,
a[href*="task/child/"]:hover,
a[href*="item/child/"]:hover,
a[href*="action/child/"]:hover,
a[href*="/read/create/"]:hover {
    color: #157347 !important;
}

html[data-color-scheme="dark"] a[href*="create/?parent="],
html[data-color-scheme="dark"] a[href*="create?parent="],
html[data-color-scheme="dark"] a[href*="task/child/"],
html[data-color-scheme="dark"] a[href*="item/child/"],
html[data-color-scheme="dark"] a[href*="action/child/"],
html[data-color-scheme="dark"] a[href*="/read/create/"] {
    color: #75b798 !important;
}

html[data-color-scheme="dark"] a[href*="create/?parent="]:hover,
html[data-color-scheme="dark"] a[href*="create?parent="]:hover,
html[data-color-scheme="dark"] a[href*="task/child/"]:hover,
html[data-color-scheme="dark"] a[href*="item/child/"]:hover,
html[data-color-scheme="dark"] a[href*="action/child/"]:hover,
html[data-color-scheme="dark"] a[href*="/read/create/"]:hover {
    color: #96ceb4 !important;
}

/* ----- APP — form-switch Bootstrap 5 (task-bs5-switch.css) ----- */
/* Interruptores BS5 (sustituyen bootstrap4-toggle en formularios) */
.task-bs5-switch.form-switch {
    --task-switch-accent: #464de4;
    min-height: 1.5rem;
}

.task-bs5-switch.form-switch .form-check-input {
    width: 2.75em;
    height: 1.375em;
    margin-top: 0.15em;
    margin-left: 0;
    margin-inline-start: 0;
    cursor: pointer;
    border-radius: 2rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.15s ease;
}

.task-bs5-switch.form-switch .form-check-input:checked {
    background-color: var(--task-switch-accent);
    border-color: var(--task-switch-accent);
}

.task-bs5-switch.form-switch .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(70, 77, 228, 0.25);
}

.task-bs5-switch .form-check-label {
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.35;
    user-select: none;
}

.task-bs5-switch--wide .form-check-label {
    max-width: min(100%, 22rem);
}

@media (min-width: 992px) {
    .task-bs5-switch--wide .form-check-label {
        max-width: 26rem;
    }
}

.task-bs5-switch .form-check-input:checked + .form-check-label .task-bs5-switch-state-off {
    display: none !important;
}

.task-bs5-switch .form-check-input:not(:checked) + .form-check-label .task-bs5-switch-state-on {
    display: none !important;
}

.task-bs5-switch-col {
    min-width: 0;
}

/* ----- MPI — términos legales: etiqueta + panel fijo de definición ----- */
.mpi-legal-term {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.02em;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    padding: 0 0.1em;
    border-radius: 0.15rem;
}

.mpi-legal-term.is-active {
    background-color: rgba(var(--bs-primary-rgb), 0.14);
    text-decoration: none;
}

.mpi-legal-term:focus {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

.sim-mpi-legal-panel {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right, 0px));
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    z-index: 10960;
    width: min(32rem, calc(100vw - 2rem));
    max-height: min(28rem, 70vh);
    display: flex;
    flex-direction: column;
    background: var(--bs-body-bg);
    border: 2px solid var(--bs-primary);
    border-radius: 0.375rem;
    box-shadow: 0 0.65rem 2rem rgba(0, 0, 0, 0.22);
}

.sim-mpi-legal-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    background: var(--bs-primary);
    color: #fff;
    padding: 0.85rem 1rem;
}

.sim-mpi-legal-panel__title {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.35;
    flex: 1 1 auto;
}

.sim-mpi-legal-panel__body {
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 1rem 1.1rem;
    font-size: 0.95rem;
    line-height: 1.55;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.sim-mpi-legal-panel__close {
    flex: 0 0 auto;
    margin-top: 0.1rem;
    opacity: 0.9;
}

@media (max-width: 575.98px) {
    .sim-mpi-legal-panel {
        left: max(0.75rem, env(safe-area-inset-left, 0px));
        right: max(0.75rem, env(safe-area-inset-right, 0px));
        width: auto;
        max-height: min(32rem, 75vh);
    }
}

/* Tarjetas de requisito: no recortar interacción del término legal */
.card.border-warning .card-body,
.card.border-warning {
    overflow: visible;
}

/* ----- APP — tablas tipo listado (order-listing.css) ----- */
/**
 * Tablas .order-listing (DataTables + Bootstrap 5) y pestañas asociadas.
 * Incluido desde templates/base.html tras dataTables.bootstrap5.
 */

/* ---------- Pestañas: menos padding / aire (global) ---------- */
.nav-tabs {
  gap: 0.125rem;
  flex-wrap: wrap;
  row-gap: 0;
  margin-bottom: 0.35rem;
}

.nav-tabs .nav-item {
  margin-bottom: 0;
}

.nav-tabs .nav-link {
  padding: 0.3rem 0.65rem;
  line-height: 1.25;
  font-size: 0.875rem;
}

/* Contenido bajo tabs: sin padding extra */
.tab-content {
  padding-top: 0.35rem;
}

.tab-content > .tab-pane {
  padding-top: 0;
  padding-bottom: 0;
}

.tab-content .table-responsive {
  margin-top: 0;
  margin-bottom: 0;
}

/* ---------- Sin borde exterior (marco de la tabla / wrapper) ---------- */
.dataTables_wrapper:has(table.order-listing) {
  border: none !important;
  box-shadow: none !important;
}

.table-responsive:has(> table.order-listing),
.table-responsive:has(table.order-listing) {
  border: none !important;
  box-shadow: none !important;
}

table.order-listing.table,
table.order-listing.table.dataTable {
  border: 0 !important;
  outline: none;
}

/* Quita solo el perímetro: laterales, arriba del thead y abajo del último tbody */
table.order-listing.table > :not(caption) > * > *:first-child {
  border-left: none !important;
}

table.order-listing.table > :not(caption) > * > *:last-child {
  border-right: none !important;
}

table.order-listing.table > thead > tr:first-child > th,
table.order-listing.table > thead > tr:first-child > td {
  border-top: none !important;
}

table.order-listing.table > tbody > tr > th,
table.order-listing.table > tbody > tr > td {
  border-bottom: none !important;
}

/* ---------- Colores de filas (paleta SIM, sin marrón/gris Bootstrap) ---------- */
table.order-listing.table-striped {
  --bs-table-striped-bg: rgba(var(--bs-primary-rgb), 0.06);
  --bs-table-border-color: transparent;
}

table.order-listing.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: transparent !important;
}

table.order-listing.table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-bg-type: rgba(var(--bs-primary-rgb), 0.06);
}

table.order-listing.table-hover {
  --bs-table-hover-bg: rgba(var(--bs-primary-rgb), 0.1);
}

table.order-listing.table thead th,
table.order-listing.table thead.table-secondary th {
  --bs-table-bg: rgba(var(--bs-primary-rgb), 0.09);
  --bs-table-color: var(--bs-emphasis-color);
  border-bottom: none !important;
}

html[data-color-scheme="dark"] table.order-listing.table-striped {
  --bs-table-striped-bg: rgba(var(--bs-primary-rgb), 0.14);
}

html[data-color-scheme="dark"] table.order-listing.table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-bg-type: rgba(var(--bs-primary-rgb), 0.14);
  background-color: rgba(var(--bs-primary-rgb), 0.14) !important;
}

html[data-color-scheme="dark"] table.order-listing.table-hover {
  --bs-table-hover-bg: rgba(var(--bs-primary-rgb), 0.22);
  --bs-table-hover-color: #fff;
}

html[data-color-scheme="dark"] table.order-listing.table thead th,
html[data-color-scheme="dark"] table.order-listing.table thead.table-secondary th {
  --bs-table-bg: #2a303c;
  --bs-table-color: #e8eaef;
}

/* ---------- Celdas order-listing ---------- */
table.order-listing.table > :not(caption) > * > * {
  padding-top: 0.35rem;
  padding-bottom: 0.28rem;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
  line-height: 1.25;
}

table.order-listing.table thead th,
table.order-listing.table thead.table-secondary th {
  padding-top: 0.4rem;
  padding-bottom: 0.32rem;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
  line-height: 1.2;
}

/* Misma separación si la tabla no usa la clase Bootstrap .table */
table.order-listing:not(.table) > :not(caption) > * > * {
  padding-top: 0.35rem;
  padding-bottom: 0.28rem;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
  line-height: 1.25;
}

/* ---------- DataTables alrededor de order-listing ---------- */
.dataTables_wrapper:has(table.order-listing) > .row {
  --bs-gutter-x: 0.75rem;
  --bs-gutter-y: 0;
  margin-bottom: 0 !important;
  margin-top: 0 !important;
}

.dataTables_wrapper:has(table.order-listing) > .row:first-child {
  margin-bottom: 0 !important;
}

.dataTables_wrapper:has(table.order-listing) > .row:nth-child(2) {
  margin-top: 0 !important;
}

.dataTables_wrapper:has(table.order-listing) > .row:last-child {
  margin-top: 0.25rem !important;
  margin-bottom: 0 !important;
}

.dataTables_wrapper:has(table.order-listing) > .row > [class*="col-"] {
  padding-top: 0;
  padding-bottom: 0;
}

.dataTables_wrapper:has(table.order-listing) .dataTables_length,
.dataTables_wrapper:has(table.order-listing) .dataTables_filter {
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.dataTables_wrapper:has(table.order-listing) .dataTables_length label,
.dataTables_wrapper:has(table.order-listing) .dataTables_filter label {
  margin-bottom: 0;
  line-height: 1.25;
  font-size: 0.875rem;
}

.dataTables_wrapper:has(table.order-listing) .dataTables_filter input {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  font-size: 0.875rem;
}

.dataTables_wrapper:has(table.order-listing) .dataTables_length select {
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  font-size: 0.875rem;
}

.dataTables_wrapper:has(table.order-listing) .dataTables_info {
  padding-top: 0.2rem;
  padding-bottom: 0;
  line-height: 1.25;
  font-size: 0.8125rem;
}

.dataTables_wrapper:has(table.order-listing) .dataTables_paginate {
  padding-top: 0.15rem;
  padding-bottom: 0;
}

.dataTables_wrapper:has(table.order-listing) .pagination {
  margin-bottom: 0;
  margin-top: 0;
}

.dataTables_wrapper:has(table.order-listing) .pagination .page-link {
  padding: 0.2rem 0.45rem;
  font-size: 0.8125rem;
}

/* Tabla dentro del wrapper: pegada al buscador */
.dataTables_wrapper:has(table.order-listing) table.dataTable {
  margin-top: 0 !important;
  margin-bottom: 0.25rem !important;
}

/* Flechas de orden: un poco más abajo (el tema las sube demasiado) */
.dataTables_wrapper:has(table.order-listing) .dataTable thead .sorting:before,
.dataTables_wrapper:has(table.order-listing) .dataTable thead .sorting:after,
.dataTables_wrapper:has(table.order-listing) .dataTable thead .sorting_asc:before,
.dataTables_wrapper:has(table.order-listing) .dataTable thead .sorting_asc:after,
.dataTables_wrapper:has(table.order-listing) .dataTable thead .sorting_desc:before,
.dataTables_wrapper:has(table.order-listing) .dataTable thead .sorting_desc:after,
.dataTables_wrapper:has(table.order-listing) .dataTable thead .sorting_asc_disabled:before,
.dataTables_wrapper:has(table.order-listing) .dataTable thead .sorting_asc_disabled:after,
.dataTables_wrapper:has(table.order-listing) .dataTable thead .sorting_desc_disabled:before,
.dataTables_wrapper:has(table.order-listing) .dataTable thead .sorting_desc_disabled:after {
  line-height: 1;
  transform: translateY(2px);
}

/* ----- APP — formularios / layout (form-layout-overrides.css) ----- */
/*
 * Overrides globales de formularios / tablas (antes inline en base.html).
 * Patrón reutilizable: columna estrecha con enlace/icono .mdi-plus junto a un campo (Crispy + Select2).
 *
 * No añadir padding-top global en .page-body-wrapper / .content-wrapper para el menú fijo: genera bandas en
 * blanco/gris bajo la barra y choca con el layout del tema; cualquier offset del menú fijo debe resolverse
 * en otro mecanismo (p. ej. clase en una plantilla concreta), no aquí de forma amplia.
 */

/*
 * BS5: solo usamos .col-sm-* en plantillas. Por debajo de sm el ancho no aplica y
 * varias columnas pueden compartir fila y solapar Select2/controles.
 * Forzar una columna lógica por fila en pantallas extra pequeñas.
 */
@media (max-width: 575.98px) {
    form .row > [class*="col-sm-"]:not([class*="col-sm-0"]):not([class*="col-0"]):not([class*="col-sm-auto"]),
    form .row > [class~="col-sm"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100%;
    }
}

/*
 * Select2: ancho completo (complementa width: 100% en opciones / defaults JS) y rejilla estable.
 * min-width: 0 en columnas evita que el contenido flex desborde y se dibuje “encima” de la columna siguiente.
 */
form .select2-container {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}

form .row > [class*="col-"] {
    min-width: 0;
}

/* Abierto: por encima de controles y columnas vecinas (navbar fija ~999; modales ~1050+) */
form .select2-container.select2-container--open {
    z-index: 1080 !important;
}

form .select2-dropdown {
    z-index: 1081 !important;
}

/*
 * Lista desplegable Select2 (AJAX / django-select2 “heavy”): el UMD de admin trae
 * max-height:200px en .select2-results > .select2-results__options. Sin ese tope, un tema
 * o CSS migrado puede dejar el panel muy alto y Select2 pide página tras página para
 * “rellenar” el hueco. Refuerzo explícito = resultados por lotes al hacer scroll; al
 * escribir en la búsqueda siguen las peticiones por término (mismo endpoint).
 */
.select2-container--default .select2-results > .select2-results__options,
form .select2-container--default .select2-results > .select2-results__options {
    max-height: 200px !important;
    overflow-y: auto !important;
    box-sizing: border-box;
}

.select2-container .select2-selection--single {
    height: 37px !important;
}
/* Filtros bootstrap-datepicker: ancho compacto (data-provide antes de init; .sim-datepicker-wrap después) */
.input-group[data-provide="datepicker"],
.input-group.sim-datepicker-wrap {
    max-width: 10rem;
    flex: 0 0 auto;
    width: auto;
}

.input-group[data-provide="datepicker"] .form-control,
.input-group.sim-datepicker-wrap .form-control {
    min-width: 0;
}

/*
 * Móvil: el tema oculta .nav-bottom con display:none; .header-toggled (clase vía template.js) debe mostrarlo.
 * Refuerzo !important por si otro estilo o el manejo de data-bs-toggle en BS5 compite en la cascada.
 */
@media (max-width: 767.98px) {
    .navbar.horizontal-layout .nav-bottom.header-toggled {
        display: block !important;
    }
}

/*
 * Menú horizontal: .navbar.horizontal-layout .nav-bottom.fixed-top usa z-index 999 en style.css.
 * Un datepicker más alto tapaba el menú; mantenerlo por debajo de esa barra y por encima del contenido.
 */
.datepicker,
.datepicker.datepicker-dropdown {
    z-index: 990 !important;
}

/*
 * Con modal abierto: el backdrop BS5 va a 1050, pero el tema añade `.modal { z-index: 9999 }`
 * (horizontal-layout/style.css). Un datepicker a 1060 queda detrás del propio modal.
 * Por encima del modal del tema para que el calendario (container body) sea usable.
 */
body.modal-open .datepicker,
body.modal-open .datepicker.datepicker-dropdown {
    z-index: 10050 !important;
}

/*
 * Columna “+” (.col-0 / .col-sm-0) junto a un desplegable (Select2):
 * pegada al borde de la caja (sin hueco de gutter) y alineada en altura con la caja (~37px).
 * Etiqueta crispy típica ~1rem + margen inferior ~0.5rem → offset vertical compacto.
 */
.row > [class*="col-"]:has(.select2-container) {
    padding-right: 0 !important;
    overflow: visible !important;
}

.row > .col-sm-0:where(:has(a.mdi-plus), :has(i.mdi-plus), :has(.mdi-plus)),
.row > .col-0:where(:has(a.mdi-plus), :has(i.mdi-plus), :has(.mdi-plus)) {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
    margin-left: 0 !important;
    padding-left: 0.25rem !important;
    padding-top: calc(0.5rem + 1rem + 0.15rem) !important;
}

/* Justo después de Select2: pegado sin margen negativo (evita quedar detrás del control) */
.row > [class*="col-"]:has(.select2-container) + .col-sm-0:where(:has(a.mdi-plus), :has(i.mdi-plus), :has(.mdi-plus)),
.row > [class*="col-"]:has(.select2-container) + .col-0:where(:has(a.mdi-plus), :has(i.mdi-plus), :has(.mdi-plus)) {
    position: relative;
    z-index: 5;
    margin-left: 0 !important;
    padding-left: 2px !important;
    padding-top: calc(0.5rem + 1rem + 0.28rem) !important;
}

.row > .col-sm-0:where(:has(a.mdi-plus), :has(i.mdi-plus), :has(.mdi-plus)) > br,
.row > .col-0:where(:has(a.mdi-plus), :has(i.mdi-plus), :has(.mdi-plus)) > br {
    display: none !important;
}

.row > .col-sm-0:where(:has(a.mdi-plus), :has(i.mdi-plus), :has(.mdi-plus)) h1,
.row > .col-sm-0:where(:has(a.mdi-plus), :has(i.mdi-plus), :has(.mdi-plus)) h4,
.row > .col-0:where(:has(a.mdi-plus), :has(i.mdi-plus), :has(.mdi-plus)) h1,
.row > .col-0:where(:has(a.mdi-plus), :has(i.mdi-plus), :has(.mdi-plus)) h4 {
    margin: 0 !important;
    line-height: 1;
    font-size: 1.35rem;
    height: 37px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

/*
 * Menú horizontal (≤768px): no abrir submenú con :hover (se superpone al tacto).
 * Solo .show-submenu (toggle por clic en template.js) muestra el desplegable.
 */
@media (max-width: 767.98px) {
    .navbar.horizontal-layout .nav-bottom .page-navigation > .nav-item:hover .submenu {
        display: none !important;
    }
    .navbar.horizontal-layout .nav-bottom .page-navigation > .nav-item:hover > .nav-link {
        background: transparent !important;
    }
    .navbar.horizontal-layout .nav-bottom .page-navigation > .nav-item:hover > .nav-link .menu-arrow {
        transform: none !important;
    }
    .navbar.horizontal-layout .nav-bottom .page-navigation > .nav-item.show-submenu .submenu {
        display: block !important;
    }
    .navbar.horizontal-layout .nav-bottom .page-navigation > .nav-item.show-submenu > .nav-link {
        background: #f2f2f9 !important;
    }
    .navbar.horizontal-layout .nav-bottom .page-navigation > .nav-item.show-submenu > .nav-link .menu-arrow {
        transform: rotate(-180deg) !important;
    }
}

@media (max-width: 767.98px) {
    /* Tema oscuro: anular :hover del menú (app-color-scheme) en móvil */
    html[data-color-scheme="dark"] .navbar.horizontal-layout .nav-bottom .page-navigation > .nav-item:hover .submenu {
        display: none !important;
    }
    html[data-color-scheme="dark"] .navbar.horizontal-layout .nav-bottom .page-navigation > .nav-item:hover > .nav-link {
        background: transparent !important;
    }
    html[data-color-scheme="dark"] .navbar.horizontal-layout .nav-bottom .page-navigation > .nav-item.show-submenu .submenu {
        display: block !important;
    }
    html[data-color-scheme="dark"] .navbar.horizontal-layout .nav-bottom .page-navigation > .nav-item.show-submenu > .nav-link {
        background: #2a303c !important;
    }
    html[data-color-scheme="dark"] .navbar.horizontal-layout .nav-bottom .page-navigation > .nav-item.show-submenu .submenu {
        background: #252a35 !important;
    }
    html[data-color-scheme="dark"] .navbar.horizontal-layout .nav-bottom .page-navigation > .nav-item.show-submenu .submenu ul li a {
        color: #c8d0e0 !important;
    }
}

/*
 * Dropdowns anidados (markup legacy en report/*, task/*, etc.): li.dropdown-submenu + ul.dropdown-menu.
 * Bootstrap 5 no incluye submenús de ese estilo; el JS vive en template.js (.show en el ul hijo).
 * Posicionamiento alineado al patrón .dropend del bundle (style.css).
 */
.dropdown-menu > li.dropdown-submenu {
    position: relative;
}

.dropdown-menu > li.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -0.25rem;
    margin-left: 0.125rem;
}

/* ----- APP — calificaciones masivas (páginas formulario) (performance-califications-bulk.css) ----- */
/* Solo formulario masivo de notas: tabla sin margen ni padding */
.performance-califications-bulk .table-responsive {
    margin: 0 !important;
    padding: 0 !important;
}

.performance-califications-bulk table.table {
    margin: 0 !important;
    /* separate + border-spacing: margen vertical entre filas (equiv. ~utilidad BS “1” = 0.25rem) */
    border-collapse: separate !important;
    border-spacing: 0 0.25rem !important;
    table-layout: fixed;
    width: 100%;
}

/* Nota: ancho mínimo para ~2 dígitos + bordes; cabecera “Nota” */
.performance-califications-bulk table.table th.performance-califications-bulk-note,
.performance-califications-bulk table.table td.performance-califications-bulk-note {
    width: 3rem;
    min-width: 3rem;
    max-width: 3rem;
    box-sizing: border-box;
    vertical-align: middle;
}

.performance-califications-bulk table.table td.performance-califications-bulk-note input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* Borrar: solo icono; si quedara checkbox del formset por error, ocultarlo */
.performance-califications-bulk-del input[type="checkbox"][name$="-DELETE"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.performance-califications-bulk table.table th.performance-califications-bulk-del,
.performance-califications-bulk table.table td.performance-califications-bulk-del {
    width: 1.5rem;
    min-width: 1.5rem;
    max-width: 1.5rem;
    box-sizing: border-box;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

.performance-califications-bulk .performance-califications-bulk-del-btn {
    line-height: 1;
    min-width: 0;
}

.performance-califications-bulk .performance-califications-bulk-del-btn .mdi {
    font-size: 1.1rem;
}

.performance-califications-bulk tr.performance-califications-row-pending-delete td:not(.performance-califications-bulk-del) {
    text-decoration: line-through;
    opacity: 0.65;
}

.performance-califications-bulk tr.performance-califications-row-pending-delete input[name$="-calification"] {
    text-decoration: line-through;
}

.performance-califications-bulk table.table > :not(caption) > * > * {
    margin: 0 !important;
    padding: 0 !important;
}

.performance-califications-bulk table.table td .form-control,
.performance-califications-bulk table.table td input {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
}

.performance-califications-bulk table.table .text-danger {
    margin: 0 !important;
    padding: 0 !important;
}

/* ----- APP — read create form (read-create-form.css) ----- */
/* Crear lectura (normativa / documento): modales de lista distribución */
#distributionReadModal .modal-content {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}

#distributionReadModal .modal-body {
    background-color: var(--bs-body-bg);
}

#distributionReadModal .sim-distribution-read-select {
    max-height: 14rem;
}

/* ----- APP — task crea form (task-crea-form.css) ----- */
/* task/create (crea_form): lo mínimo — lógica de layout en la plantilla (Bootstrap + Crispy) */
body > .datepicker,
body > .datepicker.datepicker-dropdown {
    z-index: 9999 !important;
}

.weekDays-selector,
.container-repeat_month_option_day {
    display: none;
}

.weekDays-selector input {
    display: none !important;
}

.weekDays-selector input[type="checkbox"] + label {
    display: inline-flex;
    align-items: stretch;
    justify-content: center;
    margin-right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 10px;
    background-color: #f1f3f4;
    color: #80868b;
    cursor: pointer;
    line-height: 24px;
}

.weekDays-selector input[type="checkbox"]:checked + label {
    color: white;
    background-color: #4285f4;
}

.task-create-form .select2-container {
    width: 100% !important;
}

/* Modal repetir tarea */
#modalTaskSetting .modal-dialog {
    margin: 1rem auto;
    max-width: 26rem;
}

@media (max-width: 575.98px) {
    #modalTaskSetting .modal-dialog {
        margin-left: 0.75rem;
        margin-right: 0.75rem;
    }
}

#modalTaskSetting .modal-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}

#modalTaskSetting .modal-body {
    padding: 1rem 1.25rem;
}

#modalTaskSetting .modal-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--bs-border-color, #dee2e6);
    gap: 0.5rem;
}

#modalTaskSetting .form-label {
    font-weight: 500;
    margin-bottom: 0.35rem;
}

#modalTaskSetting .repeat-modal-recurrence {
    max-width: 100%;
}

#modalTaskSetting .repeat-modal-interval-num {
    width: 100%;
    min-width: 0;
}

#modalTaskSetting .repeat-modal-interval-unit {
    width: 100%;
    min-width: 0;
}

#modalTaskSetting .repeat-modal-select-day {
    min-width: 8rem;
    max-width: 100%;
}

#modalTaskSetting .repeat-modal-select-ordinal {
    min-width: 6.5rem;
}

#modalTaskSetting .repeat-modal-select-weekday {
    min-width: 9rem;
}

#modalTaskSetting .repeat-modal-date {
    max-width: 12rem;
}

#modalTaskSetting .repeat-modal-count {
    flex: 1 1 8rem;
    min-width: 5.5rem;
    max-width: 12rem;
    width: auto;
}

#modalTaskSetting .repeat-modal-divider {
    border-top: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.1));
    margin-top: 0.25rem;
    padding-top: 0.75rem;
}

#modalTaskSetting .repeat-modal-hasta {
    padding-top: 0.25rem;
}

#modalTaskSetting .repeat-datepicker-btn {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

#modalTaskSetting .weekDays-selector {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

/* Tablas / listados: fila clicable */
.clickable-row {
    cursor: pointer;
}

/*
 * Inline → utilidades (pasada conservadora en plantillas .html):
 * - `style="text-decoration:none"` en <a> eliminado (redundante con la regla `a { text-decoration: none }` arriba).
 * - `style="text-align: …"` sustituido por `text-center` / `text-end` / `text-start` cuando el atributo no contenía {{ o {%.
 * Quedan otros `style="..."` (display:none dinámico, anchos con {{ }}, etc.): migrar solo con revisión.
 */

/* =============================================================================
 * Estilos migrados desde <style> en plantillas Django (única fuente).
 * No volver a añadir <style> en HTML; usar este archivo.
 * ============================================================================= */

/* ----- Migrado desde plantilla: audit/templates/audit/plan/pdocuments.html ----- */

        #DataTables_Table_audit_doc th,
        #DataTables_Table_audit_doc td {
            padding: 1px !important;
        }
        .dataTables_wrapper .dataTables_filter,
        .dataTables_wrapper .dataTables_length {
            padding: 1px 0;
        }

/* ----- Migrado desde plantilla: checklist/templates/checklist/includes/frappe_gantt_theme.html ----- */

html[data-color-scheme="dark"] .sim-gantt-frappe .gantt .grid-header {
    fill: #252a35;
    stroke: #2f3542;
    stroke-width: 1.4;
}
html[data-color-scheme="dark"] .sim-gantt-frappe .gantt .grid-row {
    fill: #1e222b;
}
html[data-color-scheme="dark"] .sim-gantt-frappe .gantt .grid-row:nth-child(even) {
    fill: #252a35;
}
html[data-color-scheme="dark"] .sim-gantt-frappe .gantt .row-line {
    stroke: #2f3542;
}
html[data-color-scheme="dark"] .sim-gantt-frappe .gantt .tick {
    stroke: #2f3542;
}
html[data-color-scheme="dark"] .sim-gantt-frappe .gantt .tick.thick {
    stroke: #3d4452;
}
html[data-color-scheme="dark"] .sim-gantt-frappe .gantt .today-highlight {
    fill: #4a4428;
    opacity: 0.55;
}
html[data-color-scheme="dark"] .sim-gantt-frappe .gantt .upper-text {
    fill: #9aa5b8;
}
html[data-color-scheme="dark"] .sim-gantt-frappe .gantt .lower-text {
    fill: #e8eaef;
}
html[data-color-scheme="dark"] .sim-gantt-frappe .gantt .bar-label.big,
html[data-color-scheme="dark"] .sim-gantt-frappe .gantt .bar-invalid ~ .bar-label {
    fill: #e8eaef;
}
html[data-color-scheme="dark"] .sim-gantt-frappe .gantt .arrow {
    stroke: #9aa5b8;
}
html[data-color-scheme="dark"] .sim-gantt-frappe .gantt-container {
    color: #e8eaef;
}

/* ----- Migrado desde plantilla: complaint/templates/complaint/channel/detail.html ----- */

        /* Cabecera compacta (~1/4 altura anterior): logo, hero y tipografía reducidos */
        .complaint-channel-page .top-banner .navbar .row {
            min-height: auto;
        }
        .complaint-channel-page .complaint-head-logo {
            max-width: 110px;
        }
        .complaint-channel-page .complaint-channel-hero {
            padding-top: 0.35rem !important;
            padding-bottom: 0.5rem !important;
        }
        .complaint-channel-page .complaint-channel-hero .landing-hero-kicker {
            font-size: 0.62rem;
            margin-bottom: 0.2rem;
            letter-spacing: 0.12em;
        }
        .complaint-channel-hero .landing-hero-display {
            font-size: clamp(0.95rem, 2.2vw, 1.35rem);
            letter-spacing: 0.04em;
            margin-bottom: 0.15rem !important;
        }
        .complaint-channel-page .complaint-channel-hero .lead-compact {
            font-size: 0.78rem;
            line-height: 1.35;
            margin-bottom: 0 !important;
        }
        .complaint-channel-page .complaint-qr-wrap {
            padding: 0.35rem !important;
        }
        .complaint-channel-page .complaint-qr-wrap svg,
        .complaint-channel-page .complaint-qr-wrap img {
            max-height: 72px;
            width: auto !important;
        }
        .complaint-channel-card--form .form-control {
            border-radius: 0.5rem;
        }
        .complaint-channel-terms .table {
            font-size: 0.9rem;
        }

/* ----- Migrado desde plantilla: complaint/templates/complaint/create_form.html ----- */

        .complaint-create-page .complaint-head-logo {
            max-width: 110px;
        }
        .complaint-create-page .complaint-create-hero {
            padding-top: 0.35rem !important;
            padding-bottom: 0.5rem !important;
        }
        .complaint-create-hero .landing-hero-kicker {
            font-size: 0.62rem;
            margin-bottom: 0.2rem;
            letter-spacing: 0.1em;
        }
        .complaint-create-hero .landing-hero-display {
            font-size: clamp(0.95rem, 2.2vw, 1.35rem);
            letter-spacing: 0.04em;
            margin-bottom: 0.15rem !important;
        }
        .complaint-create-hero .lead-compact {
            font-size: 0.78rem;
            line-height: 1.35;
            margin-bottom: 0 !important;
        }
        .complaint-create-form .card {
            border-radius: 1rem;
        }
        .complaint-create-form h5.section-title {
            font-size: 1rem;
            font-weight: 700;
            color: #0f172a;
            border-bottom: 1px solid rgba(148, 163, 184, 0.35);
            padding-bottom: 0.5rem;
            margin-bottom: 1rem;
        }
        .complaint-create-terms .table {
            font-size: 0.9rem;
        }

/*
 * ----- Migrado desde plantilla: complaint/templates/complaint/detail_out.html -----
 * NUNCA usar aquí selectores sueltos body / h1 / h2: app-overrides.css carga en casi todo el sitio
 * y rompería listados, cuestionarios, etc. Todo va bajo .complaint-detail-out (ver esa plantilla).
 */
.complaint-detail-out {
    font-family: Arial, sans-serif;
    background-color: #c3c3c3;
    margin: 0;
    padding: 10px;
    box-sizing: border-box;
}

.complaint-detail-out h1 {
    text-align: center;
    color: hsl(0, 0%, 64%);
}

.complaint-detail-out h2 {
    color: #007bff;
    text-align: center;
}

.complaint-detail-out h2.accordion,
.complaint-detail-out h3.accordion {
    color: #007bff;
    background-color: transparent;
    cursor: pointer;
    padding: 10px;
    text-align: left;
    font-size: 12px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.complaint-detail-out h2.accordion:hover,
.complaint-detail-out h3.accordion:hover {
    background-color: rgba(0, 123, 255, 0.08);
}

.complaint-detail-out h2.accordion + .panel,
.complaint-detail-out h3.accordion + .panel {
    padding: 0 15px;
    display: none;
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 5px;
    margin-top: -10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
}

.complaint-detail-out h2.accordion + .panel h6,
.complaint-detail-out h3.accordion + .panel h6 {
    color: #333;
    text-align: justify;
}
/* ----- Migrado desde plantilla: custom_user/templates/custom_user/customuser_update_form.html ----- */

        span.select2 {
            width: 100% !important;
        }

/* ----- Migrado desde plantilla: custom_user/templates/custom_user/customuser_updatepassword_form.html ----- */

        .errorlist {
            color: red;
        }

/* ----- Migrado desde plantilla: document/templates/document/create_new_update_form.html ----- */

        /* Mismo criterio que task (upda_form): interruptor BS5 en lugar de bootstrap4-toggle */
        .task-bs5-switch.form-switch {
            --task-switch-accent: #464de4;
            min-height: 1.5rem;
        }

        .task-bs5-switch.form-switch .form-check-input {
            width: 2.75em;
            height: 1.375em;
            margin-top: 0.15em;
            margin-left: 0;
            margin-inline-start: 0;
            cursor: pointer;
            border-radius: 2rem;
            transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.15s ease;
        }

        .task-bs5-switch.form-switch .form-check-input:checked {
            background-color: var(--task-switch-accent);
            border-color: var(--task-switch-accent);
        }

        .task-bs5-switch.form-switch .form-check-input:focus {
            box-shadow: 0 0 0 0.2rem rgba(70, 77, 228, 0.25);
        }

        .task-bs5-switch .form-check-label {
            cursor: pointer;
            font-size: 0.875rem;
            line-height: 1.35;
            user-select: none;
        }

        .task-bs5-switch--wide .form-check-label {
            max-width: min(100%, 22rem);
        }

        @media (min-width: 992px) {
            .task-bs5-switch--wide .form-check-label {
                max-width: 26rem;
            }
        }

        .task-bs5-switch .form-check-input:checked + .form-check-label .task-bs5-switch-state-off {
            display: none !important;
        }

        .task-bs5-switch .form-check-input:not(:checked) + .form-check-label .task-bs5-switch-state-on {
            display: none !important;
        }

        .task-bs5-switch-col {
            min-width: 0;
        }

/* ----- Migrado desde plantilla: document/templates/document/edit_update_form.html ----- */

        /* Switch BS5: mismo criterio que document/create_new y task/upda_form */
        .task-bs5-switch.form-switch {
            --task-switch-accent: #464de4;
            min-height: 1.5rem;
        }

        .task-bs5-switch.form-switch .form-check-input {
            width: 2.75em;
            height: 1.375em;
            margin-top: 0.15em;
            margin-left: 0;
            margin-inline-start: 0;
            cursor: pointer;
            border-radius: 2rem;
            transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.15s ease;
        }

        .task-bs5-switch.form-switch .form-check-input:checked {
            background-color: var(--task-switch-accent);
            border-color: var(--task-switch-accent);
        }

        .task-bs5-switch.form-switch .form-check-input:focus {
            box-shadow: 0 0 0 0.2rem rgba(70, 77, 228, 0.25);
        }

        .task-bs5-switch .form-check-label {
            cursor: pointer;
            font-size: 0.875rem;
            line-height: 1.35;
            user-select: none;
        }

        .task-bs5-switch--wide .form-check-label {
            max-width: min(100%, 22rem);
        }

        @media (min-width: 992px) {
            .task-bs5-switch--wide .form-check-label {
                max-width: 26rem;
            }
        }

        .task-bs5-switch .form-check-input:checked + .form-check-label .task-bs5-switch-state-off {
            display: none !important;
        }

        .task-bs5-switch .form-check-input:not(:checked) + .form-check-label .task-bs5-switch-state-on {
            display: none !important;
        }

        .task-bs5-switch-col {
            min-width: 0;
        }

/* ----- Migrado desde plantilla: document/templates/document/print_all.html ----- */

        .page-break {
            page-break-after: always;
        }

/* ----- Migrado desde plantilla: document/templates/document/pub_update_form.html ----- */
        /* Switch BS5: mismo criterio que document/create_new y edit */
        .task-bs5-switch.form-switch {
            --task-switch-accent: #464de4;
            min-height: 1.5rem;
        }

        .task-bs5-switch.form-switch .form-check-input {
            width: 2.75em;
            height: 1.375em;
            margin-top: 0.15em;
            margin-left: 0;
            margin-inline-start: 0;
            cursor: pointer;
            border-radius: 2rem;
            transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.15s ease;
        }

        .task-bs5-switch.form-switch .form-check-input:checked {
            background-color: var(--task-switch-accent);
            border-color: var(--task-switch-accent);
        }

        .task-bs5-switch.form-switch .form-check-input:focus {
            box-shadow: 0 0 0 0.2rem rgba(70, 77, 228, 0.25);
        }

        .task-bs5-switch .form-check-label {
            cursor: pointer;
            font-size: 0.875rem;
            line-height: 1.35;
            user-select: none;
        }

        .task-bs5-switch--wide .form-check-label {
            max-width: min(100%, 22rem);
        }

        @media (min-width: 992px) {
            .task-bs5-switch--wide .form-check-label {
                max-width: 26rem;
            }
        }

        .task-bs5-switch .form-check-input:checked + .form-check-label .task-bs5-switch-state-off {
            display: none !important;
        }

        .task-bs5-switch .form-check-input:not(:checked) + .form-check-label .task-bs5-switch-state-on {
            display: none !important;
        }

        .task-bs5-switch-col {
            min-width: 0;
        }

/* ----- Migrado desde plantilla: document/templates/document/special_update_form.html ----- */

        /* Switch BS5 + criterio alineado con document/pub y edit */
        .task-bs5-switch.form-switch {
            --task-switch-accent: #464de4;
            min-height: 1.5rem;
        }

        .task-bs5-switch.form-switch .form-check-input {
            width: 2.75em;
            height: 1.375em;
            margin-top: 0.15em;
            margin-left: 0;
            margin-inline-start: 0;
            cursor: pointer;
            border-radius: 2rem;
            transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.15s ease;
        }

        .task-bs5-switch.form-switch .form-check-input:checked {
            background-color: var(--task-switch-accent);
            border-color: var(--task-switch-accent);
        }

        .task-bs5-switch.form-switch .form-check-input:focus {
            box-shadow: 0 0 0 0.2rem rgba(70, 77, 228, 0.25);
        }

        .task-bs5-switch .form-check-label {
            cursor: pointer;
            font-size: 0.875rem;
            line-height: 1.35;
            user-select: none;
        }

        .task-bs5-switch--wide .form-check-label {
            max-width: min(100%, 22rem);
        }

        @media (min-width: 992px) {
            .task-bs5-switch--wide .form-check-label {
                max-width: 26rem;
            }
        }

        .task-bs5-switch .form-check-input:checked + .form-check-label .task-bs5-switch-state-off {
            display: none !important;
        }

        .task-bs5-switch .form-check-input:not(:checked) + .form-check-label .task-bs5-switch-state-on {
            display: none !important;
        }

        .task-bs5-switch-col {
            min-width: 0;
        }

/* ----- Migrado desde plantilla: normative/templates/normative/assign_position.html ----- */

    .custom-select2 .select2-selection__rendered,
    .custom-select2 .select2-results__option,
    .custom-select2 .select2-selection__choice {
        font-size: 10px !important;
    }

/* ----- Migrado desde plantilla: normative/templates/normative/comply_detail.html ----- */
        .comply-readings-toolbar .comply-readings-progress {
            min-width: 140px;
            max-width: 360px;
        }

/* ----- Migrado desde plantilla: obra/templates/documentobra/create_form.html ----- */
        li[aria-disabled='true'] {
            display: none;
        }
        .custom-modal-lg {
            max-width: 65% !important;;
        }
        .select2.select2-container {
            width: 100% !important;
        }
        a#btn_obra_create,
        a#btn_areaobra_create,
        a#btn_system_create,
        a#btn_subsystem_create {
            display: none;
        }

/* ----- Migrado desde plantilla: task/templates/task/list.html (mismo bloque en otra plantilla con hash idéntico) ----- */
        li[aria-disabled='true'] {
            display: none;
        }
        .invalid-feedback {
            display: none !important;
        }
        .asteriskField {
            display: none !important;
        }

/* ----- Migrado desde plantilla: questionnaire/templates/questionnaire/detail_pending.html ----- */

        .questionnaire-pending-del-hover .js-del-hover {
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.12s ease-in;
        }
        /* Basurero al pasar el ratón o con foco en la fila (visibility:hidden no recibe clics). */
        .questionnaire-pending-del-hover:hover .js-del-hover,
        .questionnaire-pending-del-hover:focus-within .js-del-hover {
            opacity: 1;
            visibility: visible;
        }
        .questionnaire-pending-del-hover .js-del-hover .mdi-delete {
            font-size: 1.1rem;
            cursor: pointer;
        }

/* Aviso “mínimo preguntas/alternativas” (solo detail_pending): compacto, caja semitransparente, legible en dark. */
.questionnaire-pending-minimum-alert {
    padding: 0.45rem 0.65rem;
    font-size: 0.8125rem;
    line-height: 1.35;
    background-color: rgba(255, 193, 7, 0.14);
    border: 1px solid rgba(217, 162, 6, 0.42);
    color: var(--bs-body-color);
}

html[data-color-scheme="dark"] .questionnaire-pending-minimum-alert {
    background-color: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 214, 102, 0.38);
    color: var(--bs-body-color);
}

.questionnaire-pending-minimum-alert-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: inherit;
}

.questionnaire-pending-minimum-alert-note {
    font-size: 0.75rem;
    margin-bottom: 0;
    opacity: 0.92;
    color: inherit;
}

/* ----- Migrado desde plantilla: questionnaire/templates/questionnaire/responce/create_form.html ----- */
        textarea {
            width: 100%;
        }

/* ----- Migrado desde plantilla: report/templates/report/admin/position/document/email_escalada.html ----- */

    /* Smaller table */
    .td,
    .th {
    padding: 0.3rem;
    font-size: 0.875rem;
    }

    /* Bordered table */
    .table-bordered {
    border: 1px solid #dee2e6;
    }

    .table-bordered td,
    .table-bordered th {
    border: 1px solid #dee2e6;
    }

    /* Striped rows */
    .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05);
    }

    /* Hover effect on rows */
    .table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075);
    }

    /* Smaller text */
    .text-small {
    font-size: 0.875rem;
    }

/* ----- Migrado desde plantilla: risk/templates/risk/crime/risk/detail.html ----- */
        /* Tabla impacto: legible en claro/oscuro (evita bg-light/bg sueltos sin .table) */
        .risk-crime-impact-table {
            --bs-table-bg: var(--bs-body-bg);
            --bs-table-color: var(--bs-body-color);
            color: var(--bs-body-color);
        }
        .risk-crime-impact-table thead th {
            font-weight: 600;
        }
        html[data-color-scheme="dark"] .risk-crime-impact-table thead .risk-crime-impact-initial {
            --bs-table-bg: #2a303c;
            --bs-table-color: #e8eaef;
            color: #e8eaef;
        }
        html[data-color-scheme="dark"] .risk-crime-impact-table tbody .risk-crime-impact-residual-cell {
            --bs-table-bg: #323845;
            --bs-table-color: #e8eaef;
            color: #e8eaef;
        }

/* ----- Migrado desde plantilla: security/templates/dangerdetection/create_form.html ----- */
        li[aria-disabled='true'] {
            display: none;
        }
        .custom-modal-lg {
            max-width: 65% !important;;
        }
        .select2.select2-container {
            width: 100% !important;
        }
        .select2-container.custom-selected {
            border: 2px solid red !important;
        }

/* ----- Migrado desde plantilla: supplier/…/skillevaluationsupplier_create_form.html y supplierevaluation_create_form.html ----- */

        .icon_a {
            text-decoration: none
        }

        .glyphicon-floppy-disk:before {
            content: "\e172";
        }

        .glyphicon-plus:before {
            content: "\002b";
        }

        .select2-container .select2-results__option.optInvisible {
            display: none;
        }

/* ----- Migrado desde plantilla: templates/index.html ----- */
        /*
         * Vista previa del dashboard: cambia con html[data-color-scheme] (sin JS).
         * Archivos: static/images/fix.png (claro) y fix-dark.png (oscuro).
         * Tras reemplazar fix.png, regenerar fix-dark.png, p. ej.:
         *   python -c "from PIL import Image,ImageEnhance; im=Image.open('static/images/fix.png').convert('RGB'); w,h=im.size; bg=Image.new('RGB',(w,h),(18,20,26)); d=Image.blend(im,bg,0.42); d=ImageEnhance.Contrast(d).enhance(1.08); d=ImageEnhance.Brightness(d).enhance(0.92); d.save('static/images/fix-dark.png', optimize=True)"
         * Si cambia el tamaño de la imagen, ajusta aspect-ratio abajo.
         */
        :root {
            --home-dashboard-img-light: url("/static/images/fix.png");
            --home-dashboard-img-dark: url("/static/images/fix-dark.png");
        }
        .home-dashboard-preview {
            display: block;
            width: 100%;
            aspect-ratio: 1030 / 1232;
            max-width: 100%;
            background-repeat: no-repeat;
            background-position: center top;
            background-size: contain;
        }
        html[data-color-scheme="light"] .home-dashboard-preview {
            background-image: var(--home-dashboard-img-light);
        }
        html[data-color-scheme="dark"] .home-dashboard-preview {
            background-image: var(--home-dashboard-img-dark);
        }
        a.home-dashboard-preview:focus-visible {
            outline: 2px solid #5c6bc0;
            outline-offset: 4px;
        }

/* ----- audit/templates/audit/audit_detail.html — tabla plan (acordeón) ----- */
.audit-detail-plan-grid {
    table-layout: fixed;
    width: 100%;
}
.audit-detail-plan-moment-col {
    /* Solo lo necesario para "d/m/y H:i" en una línea; el % en la tabla reparte el resto */
    min-width: 8.25rem;
}

/* ----- asset/templates/asset/asset_list.html — tabla resumen (claro/oscuro) ----- */
.asset-list-summary-table tr.asset-list-summary-stripe > th,
.asset-list-summary-table tr.asset-list-summary-stripe > td {
    background-color: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
}

/*
 * asset/templates/asset/context/list.html — FODA 2×2: alto máximo del listado interno
 * (Bootstrap no trae utilidad equivalente a max-height + scroll vertical en este bloque).
 */
.context-foda-quadrant-scroll {
    max-height: 22rem;
    overflow-y: auto;
}

/* =============================================================================
 * SIM — tema oscuro (html[data-color-scheme="dark"]): utilidades Bootstrap
 * pensadas solo para modo claro (.bg-light, .text-dark, .bg-white) heredadas
 * de plantillas antiguas. Usa variables del tema ya cargadas en style.css.
 * ============================================================================= */
html[data-color-scheme="dark"] .bg-light {
    background-color: var(--bs-tertiary-bg) !important;
    color: var(--bs-body-color);
}

html[data-color-scheme="dark"] .text-dark {
    color: var(--bs-body-color) !important;
}

html[data-color-scheme="dark"] .dropdown-menu.bg-white {
    background-color: var(--bs-body-bg) !important;
    color: var(--bs-body-color);
    border-color: var(--bs-border-color);
}

html[data-color-scheme="dark"] .bg-white {
    background-color: var(--bs-secondary-bg) !important;
    color: var(--bs-body-color);
}

/* ----- SIM — tablas y paneles: scroll horizontal (Bootstrap) + flex que no bloquee el shrink ----- */
.main-panel,
.content-wrapper {
    min-width: 0;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

/*
 * .table-responsive alrededor de table.table lo añade static/js/data-table.js (envoltura automática).
 * Donde aún exista .tab-pane.table-responsive (legado), min-width:0 evita que flex coma el scroll.
 */
.tab-pane.table-responsive {
    min-width: 0;
    max-width: 100%;
}

/*
 * Listados en .table-responsive: sin max-content; table-layout:auto respeta width en th/td.
 */
.table-responsive table.text-nowrap,
.table-responsive table.order-listing,
.table-responsive .dataTables_wrapper table.dataTable.text-nowrap,
.table-responsive .dataTables_wrapper table.dataTable.order-listing {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: auto;
    box-sizing: border-box;
}

.table-responsive .dataTables_wrapper {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* ----- Informes: submenús Bootstrap 5 (dropend) ----- */
/* .table-responsive recorta el submenú; no forzar overflow en .card.shadow (rompe layout en p. ej. NC pendiente). */
.card-body.table-responsive:has(li.dropend),
.table-responsive:has(li.dropend) {
    overflow: visible !important;
}

/* ----- Informes / Chart.js: contenedor estándar para gráficos pie (3× el alto previo de 400px) ----- */
.sim-chart-pie-host {
    position: relative;
    width: 100%;
    height: 1200px;
    max-height: min(1200px, 92vh);
    overflow: hidden;
}

/* Chart.js barras con maintainAspectRatio: false — el padre debe tener alto fijo o el canvas fuerza crecimiento infinito */
.sim-chart-bar-host {
    position: relative;
    width: 100%;
    height: 400px;
    max-height: min(400px, 70vh);
    overflow: hidden;
}

/*
 * Enlace empresa (primer hijo de .page-navigation): ~30 caracteres visibles (+10 respecto al límite anterior).
 */
#simHorizontalMainNav > ul.page-navigation > a.sim-nav-company-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    max-width: 18rem;
    padding: 15px 10px;
    line-height: 1;
    text-decoration: none;
    color: inherit;
}

#simHorizontalMainNav > ul.page-navigation > a.sim-nav-company-link p {
    margin: 0;
    white-space: nowrap;
}

/*
 * Menú horizontal SIM (#simHorizontalMainNav): pestañas y desplegables a 135px (no aplicar al bloque usuario).
 */
#simHorizontalMainNav > ul.page-navigation > li.nav-item:not(.sim-nav-user-item) {
    width: auto;
    flex: 0 0 auto;
    max-width: 135px;
}

#simHorizontalMainNav > ul.page-navigation > li.nav-item:not(.sim-nav-user-item) > a.nav-link {
    width: 135px;
    box-sizing: border-box;
}

/* Solo submenús de módulos; excluir .sim-nav-user-item (logout/contraseña): 135px desalineaba el panel en prod. */
#simHorizontalMainNav > ul.page-navigation > li.nav-item:not(.sim-nav-user-item) .submenu ul {
    width: 135px !important;
    min-width: 135px;
    max-width: 135px;
    left: 0 !important;
    right: auto !important;
    box-sizing: border-box;
}

/* Usuario: mismo orden que el resto (nav-link + submenu bajo el encabezado). Icono tema superpuesto a la derecha, sin meterse entre link y submenu. */
.navbar.horizontal-layout .nav-bottom .page-navigation > .nav-item.sim-nav-user-item .sim-nav-user-theme-btn {
    position: absolute;
    top: 50%;
    right: 0.1rem;
    transform: translateY(-50%);
    z-index: 5;
    line-height: 1;
}

/* ----- Migrado desde plantilla: poll/templates/poll/poll_detail.html ----- */
.poll-detail-preview-q-ordered {
    list-style-type: decimal;
    padding-left: 1.35rem;
}

.poll-detail-preview-alt-ordered {
    list-style-type: lower-alpha;
    padding-left: 1.35rem;
}

.poll-detail-results-accordion-wrap .accordion-button {
    gap: 0.35rem;
}

.poll-detail-results-accordion-wrap .accordion-button::after {
    flex-shrink: 0;
}

.poll-detail-open-comment-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.poll-detail-open-comments-table td:first-child {
    max-width: 11rem;
    vertical-align: top;
}

.poll-detail-results-accordion-avg {
    min-width: 3.25rem;
}

.poll-detail-results-survey-note {
    background-color: var(--bs-secondary-bg);
}

html[data-color-scheme="dark"] .poll-detail-results-survey-note {
    background-color: #2a303c;
    border-color: #3d4554 !important;
    color: #e8eaef;
}

html[data-color-scheme="dark"] .poll-detail-results-survey-note .text-muted {
    color: #adb5bd !important;
}

.poll-detail-results-sub-cant {
    width: 5.5rem;
}

.poll-detail-results-sub-dist {
    min-width: 11rem;
}

.poll-sent-row--answered td {
    background-color: rgba(25, 135, 84, 0.07) !important;
}

.table-striped > tbody > tr.poll-sent-row--answered:nth-child(even) td {
    background-color: rgba(25, 135, 84, 0.11) !important;
}

html[data-color-scheme="dark"] .poll-sent-row--answered td {
    background-color: rgba(25, 135, 84, 0.16) !important;
}

html[data-color-scheme="dark"] .table-striped > tbody > tr.poll-sent-row--answered:nth-child(even) td {
    background-color: rgba(25, 135, 84, 0.22) !important;
}

.poll-results-closed-wrap {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
    overflow: hidden;
}

.poll-results-closed-wrap .table {
    margin-bottom: 0;
}

.poll-results-closed-wrap .progress-lg {
    min-width: 6rem;
}

.poll-detail-results-alt-rows {
    counter-reset: poll-detail-alt;
}

.poll-detail-results-alt-rows tr {
    counter-increment: poll-detail-alt;
}

.poll-detail-results-alt-rows td.poll-detail-results-alt-title::before {
    content: counter(poll-detail-alt, lower-alpha) ") ";
    font-weight: 600;
    color: var(--bs-secondary-color);
    margin-right: 0.2rem;
}

/* ----- Poll — envío, participante, edición masiva (sin <style> en plantillas) ----- */

.poll-sent-summary-alt-chosen {
    background-color: rgba(25, 135, 84, 0.12);
    border-radius: 0.35rem;
    border: 1px solid rgba(25, 135, 84, 0.35);
}

.poll-check-slot {
    width: 1.35rem;
    flex-shrink: 0;
}

.poll-numeric-input-note {
    max-width: 5.5rem;
}

#poll-send-wait-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(var(--bs-body-bg-rgb), 0.88);
}

#poll-send-wait-overlay.poll-send-wait-visible {
    display: flex;
}

.poll-send-wait-inner {
    max-width: 28rem;
}

html[data-color-scheme="dark"] #poll-send-wait-overlay {
    background: rgba(var(--bs-body-bg-rgb), 0.92);
}

.poll-pending-alt-rows {
    counter-reset: poll-pending-alt;
}

.poll-pending-alt-row > .poll-pending-alt-badge {
    flex-shrink: 0;
    min-width: 1.85rem;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--bs-secondary-color);
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}

.poll-pending-alt-row > .poll-pending-alt-badge::before {
    counter-increment: poll-pending-alt;
    content: counter(poll-pending-alt, lower-alpha) ".";
}

.poll-flex-min-w-0 {
    min-width: 0;
}

.poll-max-w-520 {
    max-width: 520px;
}



/* ============================================================
 * SECTION 2 — REPORT / DASHBOARD
 * Origen: static/css/report-dashboard.css
 * Scope: .report-dashboard, .report-informes-menu-card, .report-task-page
 * ============================================================ */
/**
 * Dashboard resumen informes (report/dashboard.html) + KPIs del home (index).
 * Tema: variables Bootstrap + acentos alineados con cards tipo report_task.
 */

/*
 * Menú informes: DEBAJO de la barra horizontal fija (.navbar.horizontal-layout .nav-bottom.fixed-top, z-index 999
 * en horizontal-layout/style.css). Un z-index mayor (p. ej. 1045) hacía que la franja de informes tapara el menú principal.
 * Los .dropdown-menu siguen ordenándose entre sí dentro del contexto de apilamiento de la card.
 */
.report-dashboard-menu-card,
.report-informes-menu-card {
  position: relative;
  z-index: 2;
}

.report-dashboard-menu-card .dropdown-menu,
.report-informes-menu-card .dropdown-menu {
  z-index: 1000;
}

.report-dashboard-menu-card .dropend .dropdown-menu,
.report-informes-menu-card .dropend .dropdown-menu {
  z-index: 1001;
}

/* Contenido del dashboard por debajo de la card del menú en el mismo bloque */
.report-dashboard .report-dashboard-body-below-menu {
  position: relative;
  z-index: 1;
}

/*
 * Página dashboard informes: menos aire breadcrumb → menú → KPI (solo .report-dashboard.report-task-page).
 */
.report-dashboard.report-task-page .report-dashboard-dash-nav {
  margin-bottom: 0.125rem;
}

.report-dashboard.report-task-page .report-dashboard-analytics--dash > .report-informes-menu-card {
  border-radius: 0.375rem;
}

.report-dashboard.report-task-page .report-dashboard-analytics-panel--dash-tight {
  border-top: 1px solid var(--bs-border-color);
}

html[data-color-scheme="dark"] .report-dashboard.report-task-page .report-dashboard-analytics-panel--dash-tight {
  border-top-color: rgba(255, 255, 255, 0.06);
}

.report-dashboard.report-task-page .report-dashboard-body-below-menu {
  margin-top: 0;
}

/*
 * Select2 (django-select2) en dashboards con .report-task-page:
 * - overflow-hidden en la sección analytics recortaba el dropdown.
 * - La lista de resultados por defecto es baja (~200px); subimos techo para ver más opciones.
 */
.report-dashboard.report-task-page section.report-dashboard-analytics.overflow-hidden {
  overflow: visible;
}

/* Evita recortar el panel donde van filtros + KPI (dropdown puede quedar dentro hasta re-parent a body). */
.report-dashboard.report-task-page .report-dashboard-analytics-panel--dash {
  overflow: visible;
}

.report-dashboard.report-task-page .select2-container--open {
  z-index: 2000;
}

/*
 * Select2 anexa el dropdown a body: fuera de <form> no aplica form .select2-dropdown (app-overrides).
 * Sin esto el panel queda por encima y el listado se ve tapado o "a medias".
 * Este CSS solo se carga en dashboards NC.
 */
.select2-dropdown.select2-container--default,
.select2-dropdown.select2-container--bootstrap {
  z-index: 12050 !important;
  min-width: min(28rem, 92vw) !important;
  max-width: min(40rem, 96vw);
}

.report-dashboard.report-task-page .report-dashboard-kpi-row--compact {
  --bs-gutter-x: 0.35rem;
  --bs-gutter-y: 0.35rem;
}

@media (min-width: 992px) {
  .report-dashboard.report-task-page .report-dashboard-kpi-row--compact {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
  }
}

.report-dashboard.report-task-page .report-dashboard-kpi-tile {
  border-radius: 0.75rem !important;
}

.report-dashboard.report-task-page .report-dashboard-kpi-tile::before {
  border-radius: 0.75rem 0 0 0.75rem;
}

.report-dashboard.report-task-page .report-dashboard-kpi-icon {
  width: 2.25rem !important;
  height: 2.25rem !important;
}

.report-dashboard.report-task-page .report-dashboard-kpi-icon .mdi.fs-3 {
  font-size: 1.2rem !important;
  line-height: 1;
}

.report-dashboard.report-task-page .report-dashboard-ring {
  width: 40px !important;
  height: 40px !important;
}

.report-dashboard.report-task-page .report-dashboard-ring::after {
  width: 27px !important;
  height: 27px !important;
}

.report-dashboard.report-task-page .report-dashboard-ring > span {
  font-size: 0.6rem !important;
}

.report-dashboard.report-task-page .report-dashboard-kpi-value {
  font-size: clamp(1.25rem, 2.8vw, 1.85rem) !important;
}

.report-dashboard.report-task-page .report-dashboard-kpi-value--md {
  font-size: clamp(1.05rem, 2.2vw, 1.45rem) !important;
}

.report-dashboard.report-task-page .report-dashboard-kpi-label {
  font-size: 0.62rem !important;
  margin-bottom: 0.2rem !important;
}

.report-dashboard.report-task-page .report-dashboard-progress {
  height: 0.4rem !important;
}

.report-dashboard.report-task-page .report-dashboard-kpi-tile:hover {
  transform: translateY(-2px);
}

/*
 * Dashboard informes — rediseño “analytics” (inspiración tipo SaaS / data-heavy UI).
 * Claro y oscuro: variables --bs-* + html[data-color-scheme="dark"]; sin data-bs-theme local.
 */
.report-dashboard .report-dashboard-analytics--dash {
  background-color: var(--bs-body-bg);
  box-shadow:
    0 0.5rem 2.5rem rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(var(--bs-primary-rgb), 0.06);
}

html[data-color-scheme="dark"] .report-dashboard .report-dashboard-analytics--dash {
  box-shadow:
    0 0.75rem 3rem rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.report-dashboard .report-dashboard-analytics-panel--dash {
  background: linear-gradient(180deg, var(--bs-body-bg) 0%, var(--bs-tertiary-bg) 100%);
}

html[data-color-scheme="dark"] .report-dashboard .report-dashboard-analytics-panel--dash {
  background: linear-gradient(180deg, var(--bs-body-bg) 0%, rgba(0, 0, 0, 0.2) 100%);
}

/* KPI tiles (bento / métricas grandes) */
.report-dashboard .report-dashboard-kpi-row {
  --report-dash-tile-rgb: var(--bs-primary-rgb);
  --report-dash-tile: var(--bs-primary);
}

.report-dashboard .report-dashboard-kpi-tile {
  position: relative;
  border-radius: 1rem !important;
  background: linear-gradient(
    155deg,
    rgba(var(--report-dash-tile-rgb), 0.14) 0%,
    var(--bs-body-bg) 48%,
    var(--bs-secondary-bg) 160%
  );
  border: 1px solid var(--bs-border-color) !important;
  box-shadow: 0 0.35rem 1.25rem rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.report-dashboard .report-dashboard-kpi-tile::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 1rem 0 0 1rem;
  background: linear-gradient(180deg, var(--report-dash-tile), rgba(var(--report-dash-tile-rgb), 0.35));
  pointer-events: none;
}

html[data-color-scheme="dark"] .report-dashboard .report-dashboard-kpi-tile {
  box-shadow: 0 0.5rem 1.75rem rgba(0, 0, 0, 0.35);
}

.report-dashboard .report-dashboard-kpi-tile[data-report-tile="primary"] {
  --report-dash-tile-rgb: var(--bs-primary-rgb);
  --report-dash-tile: var(--bs-primary);
}

.report-dashboard .report-dashboard-kpi-tile[data-report-tile="success"] {
  --report-dash-tile-rgb: var(--bs-success-rgb);
  --report-dash-tile: var(--bs-success);
}

.report-dashboard .report-dashboard-kpi-tile[data-report-tile="warning"] {
  --report-dash-tile-rgb: var(--bs-warning-rgb);
  --report-dash-tile: var(--bs-warning);
}

.report-dashboard .report-dashboard-kpi-tile[data-report-tile="info"] {
  --report-dash-tile-rgb: var(--bs-info-rgb);
  --report-dash-tile: var(--bs-info);
}

.report-dashboard .report-dashboard-kpi-tile[data-report-tile="danger"] {
  --report-dash-tile-rgb: var(--bs-danger-rgb);
  --report-dash-tile: var(--bs-danger);
}

.report-dashboard .report-dashboard-kpi-tile[data-report-tile="risk"] {
  --report-dash-tile-rgb: var(--bs-success-rgb);
  --report-dash-tile: var(--bs-success);
}

.report-dashboard .report-dashboard-kpi-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.1);
  border-color: rgba(var(--report-dash-tile-rgb), 0.45) !important;
}

html[data-color-scheme="dark"] .report-dashboard .report-dashboard-kpi-tile:hover {
  box-shadow: 0 0.85rem 2.5rem rgba(0, 0, 0, 0.5);
}

.report-dashboard .report-dashboard-kpi-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  background: rgba(var(--report-dash-tile-rgb), 0.12);
  border: 1px solid rgba(var(--report-dash-tile-rgb), 0.2);
}

.report-dashboard .report-dashboard-kpi-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.25;
}

.report-dashboard .report-dashboard-kpi-value {
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.report-dashboard .report-dashboard-kpi-value--md {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.report-dashboard .report-dashboard-kpi-foot {
  line-height: 1.35;
}

.report-dashboard .report-dashboard-progress {
  height: 0.55rem;
  border-radius: 50rem;
  background-color: var(--bs-secondary-bg);
}

.report-dashboard .report-dashboard-kpi-skeleton {
  border-radius: 1rem !important;
  background: var(--bs-secondary-bg);
  border: 1px dashed var(--bs-border-color) !important;
}

html[data-color-scheme="dark"] .report-dashboard .report-dashboard-kpi-skeleton {
  background: rgba(0, 0, 0, 0.2);
}

/* Barra composición */
.report-dashboard .report-dashboard-stack-card {
  border-radius: 1rem !important;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color) !important;
}

.report-dashboard .report-dashboard-stack-track {
  background: linear-gradient(180deg, var(--bs-secondary-bg), var(--bs-tertiary-bg));
  border: 1px solid var(--bs-border-color);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

html[data-color-scheme="dark"] .report-dashboard .report-dashboard-stack-track {
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}

.report-dashboard .report-dashboard-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Bento gestión / AC */
.report-dashboard .report-dashboard-bento-card {
  border-radius: 1rem !important;
  border: 1px solid var(--bs-border-color) !important;
  background: var(--bs-body-bg);
}

.report-dashboard .report-dashboard-bento-head {
  background: linear-gradient(90deg, rgba(var(--bs-primary-rgb), 0.08), transparent);
  border-bottom: 1px solid var(--bs-border-color) !important;
}

.report-dashboard .report-dashboard-bento-metric {
  border-radius: 0.75rem;
  border: 1px solid var(--bs-border-color);
  background: rgba(var(--bs-secondary-bg-rgb), 0.35);
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.report-dashboard .report-dashboard-bento-metric:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--bs-primary-rgb), 0.35);
  background: rgba(var(--bs-primary-rgb), 0.06);
}

.report-dashboard .report-dashboard-bento-value {
  font-size: 1.65rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

/* Tabla desglose */
.report-dashboard .report-dashboard-breakdown-card {
  border-radius: 1rem !important;
  border: 1px solid var(--bs-border-color) !important;
  background: var(--bs-body-bg);
}

.report-dashboard .report-dashboard-breakdown-head {
  background: linear-gradient(90deg, rgba(var(--bs-primary-rgb), 0.07), transparent);
  border-bottom: 1px solid var(--bs-border-color) !important;
}

.report-dashboard .report-dashboard-breakdown-table {
  font-size: 0.875rem;
}

.report-dashboard .report-dashboard-breakdown-table tbody tr {
  border-color: var(--bs-border-color);
}

.report-dashboard .report-dashboard-breakdown-table tbody tr:hover {
  background: rgba(var(--bs-primary-rgb), 0.05);
}

html[data-color-scheme="dark"] .report-dashboard .report-dashboard-breakdown-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* Anillo de % (conic); agujero con color de superficie del tema */
.report-dashboard .report-dashboard-ring {
  --p: 0;
  --c: var(--bs-primary);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--bs-secondary-bg) 0);
  display: grid;
  place-items: center;
  position: relative;
}

.report-dashboard .report-dashboard-ring::after {
  content: "";
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bs-body-bg);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

html[data-color-scheme="dark"] .report-dashboard .report-dashboard-ring::after {
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

.report-dashboard .report-dashboard-ring > span {
  position: relative;
  z-index: 1;
  font-size: 0.65rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.report-dashboard .report-dashboard-ring--success {
  --c: var(--bs-success);
}

.report-dashboard .report-dashboard-ring--warning {
  --c: var(--bs-warning);
}

.report-dashboard .report-dashboard-ring--danger {
  --c: var(--bs-danger);
}

.report-dashboard .report-dashboard-ring--primary {
  --c: var(--bs-primary);
}

/* Tarjeta KPI: ligera elevación al hover (misma línea que otras pantallas SIM) */
.report-dashboard .report-dashboard-kpi:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

html[data-color-scheme="dark"] .report-dashboard .report-dashboard-kpi:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.35);
}

/* ----- Home (index): franja KPI alineada con dashboard informes ----- */
.home-exec-kpi-card {
  border-radius: 0.5rem;
}

.home-exec-kpi-strip .home-exec-kpi-card--accent {
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.home-exec-kpi-strip .home-exec-kpi-card--accent:hover {
  box-shadow: 0 0.4rem 1.1rem rgba(0, 0, 0, 0.09) !important;
  transform: translateY(-2px);
}

html[data-color-scheme="dark"] .home-exec-kpi-strip .home-exec-kpi-card--accent:hover {
  box-shadow: 0 0.4rem 1.25rem rgba(0, 0, 0, 0.35) !important;
}

.home-exec-kpi-icon-wrap {
  line-height: 0;
}

.home-exec-dash-preview-wrap {
  min-height: 12rem;
  width: 100%;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.06), rgba(13, 202, 240, 0.06));
}

.home-exec-dash-preview-wrap .home-dashboard-preview {
  width: 100%;
  max-width: none;
}

html[data-color-scheme="dark"] .home-exec-dash-preview-wrap {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(13, 202, 240, 0.08));
}

/* ----- Pendientes empresa: lista + donut (report/graph_pending) ----- */
.graph-pending-page .gp-split-start {
  border-bottom: 1px solid var(--bs-border-color);
}

@media (min-width: 992px) {
  .graph-pending-page .gp-split-start {
    border-bottom: none;
    border-right: 1px solid var(--bs-border-color);
  }
}

.graph-pending-page .gp-table thead th {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.graph-pending-page .gp-label {
  max-width: 14rem;
}

.graph-pending-page .gp-pct-col {
  min-width: 7.5rem;
  width: 38%;
}

.graph-pending-page .gp-pct-bar {
  height: 6px;
  background-color: var(--bs-secondary-bg);
}

.graph-pending-page .gp-color-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background-color: var(--bs-secondary-bg);
  flex-shrink: 0;
}

.graph-pending-page .gp-count-badge {
  background-color: var(--bs-secondary-bg);
  min-width: 2.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.graph-pending-page .gp-chart-wrap {
  height: min(360px, 58vh);
  max-height: 400px;
  max-width: 420px;
}

/*
 * Filtros NC: una fila, etiqueta con ranura fija (texto al pie del bloque) + control debajo.
 * Evita align-items-end en la fila de controles (empujaba inputs “a medias” si las cajas no medían igual).
 */
.report-dashboard.report-task-page .report-dashboard-nc-filter-row {
  --report-nc-filter-control-h: 37px;
  --report-nc-filter-label-h: 2.625rem;
}

.report-dashboard.report-task-page .report-dashboard-nc-filter-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}

.report-dashboard.report-task-page .report-dashboard-nc-filter-label {
  display: flex;
  align-items: flex-end;
  min-height: var(--report-nc-filter-label-h, 2.625rem);
  margin-bottom: 0.25rem;
  line-height: 1.25;
}

.report-dashboard.report-task-page .report-dashboard-nc-filter-control {
  width: 100%;
  margin-top: 0;
}

.report-dashboard.report-task-page .report-dashboard-nc-filter-control .select2-container {
  margin-top: 0;
}

.report-dashboard.report-task-page .report-dashboard-nc-filter-control .btn.btn-sm {
  min-height: var(--report-nc-filter-control-h, 37px);
}

/* Select2 (django-select2) en filtros del dashboard NC / tareas-NC */
.report-dashboard.report-task-page .report-dashboard-select2-filter .select2-container {
  width: 100% !important;
  display: block;
}

.report-dashboard.report-task-page .report-dashboard-select2-filter .select2-container .select2-selection--multiple {
  min-height: var(--report-nc-filter-control-h, 37px);
  max-height: none !important;
  overflow: visible !important;
}

.report-dashboard.report-task-page .report-dashboard-select2-filter .select2-container--default .select2-selection--multiple .select2-selection__placeholder {
  margin-top: 0;
  line-height: 1.35;
}

.report-dashboard.report-task-page .report-dashboard-select2-filter .select2-container--default .select2-selection--multiple .select2-selection__choice {
  margin-top: 3px;
  margin-bottom: 3px;
}

.report-dashboard.report-task-page .report-dashboard-select2-filter .select2-container--default .select2-selection--multiple .select2-selection__clear {
  margin-top: 0;
}

.report-dashboard.report-task-page .report-dashboard-select2-filter .select2-container .select2-selection--multiple .select2-search--inline .select2-search__field {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1.35;
}

.report-dashboard.report-task-page .report-dashboard-select2-filter .select2-container--bootstrap .select2-selection--multiple {
  min-height: var(--report-nc-filter-control-h, 37px);
}

.report-dashboard.report-task-page .report-dashboard-select2-filter .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice {
  margin-top: 3px;
  margin-bottom: 3px;
}

.report-dashboard.report-task-page .report-dashboard-select2-filter .select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field {
  margin-top: 0;
  margin-bottom: 0;
}

.report-dashboard.report-task-page .report-dashboard-select2-filter .select2-container .select2-selection--multiple .select2-selection__rendered {
  display: block;
  float: none !important;
  overflow: visible;
  white-space: normal;
  max-height: none !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
}

.report-dashboard.report-task-page .report-dashboard-select2-filter .select2-container--bootstrap .select2-selection--multiple .select2-selection__rendered {
  display: block;
  float: none !important;
  overflow: visible;
  white-space: normal;
}

.report-dashboard.report-task-page .report-dashboard-select2-filter .select2-container .select2-selection--single {
  height: auto !important;
  min-height: var(--report-nc-filter-control-h, 37px);
  max-height: none !important;
  overflow: visible !important;
}

.report-dashboard.report-task-page .report-dashboard-select2-filter .select2-container--default .select2-selection--single .select2-selection__rendered {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.3;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  max-height: none !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
}

.report-dashboard.report-task-page .report-dashboard-select2-filter .select2-container--default .select2-selection--single .select2-selection__arrow {
  min-height: var(--report-nc-filter-control-h, 37px);
  height: auto;
}

.report-dashboard.report-task-page .report-dashboard-select2-filter .select2-container--bootstrap .select2-selection--single {
  height: auto !important;
  min-height: var(--report-nc-filter-control-h, 37px);
}

.report-dashboard.report-task-page .report-dashboard-select2-filter .select2-container--bootstrap .select2-selection--single .select2-selection__rendered {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.3;
  max-height: none !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
}

.report-dashboard.report-task-page .report-dashboard-select2-filter .select2-selection--multiple .select2-selection__choice {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.select2-dropdown.select2-container--default .select2-results > .select2-results__options,
.select2-dropdown.select2-container--bootstrap .select2-results > .select2-results__options {
  max-height: max(17.5rem, min(78vh, 44rem)) !important;
}

.select2-dropdown.select2-container--default .select2-results,
.select2-dropdown.select2-container--bootstrap .select2-results {
  max-height: none !important;
}

.select2-dropdown.select2-container--default .select2-results__option,
.select2-dropdown.select2-container--bootstrap .select2-results__option {
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  max-height: none !important;
}

.select2-dropdown.select2-container--default .select2-search--dropdown .select2-search__field,
.select2-dropdown.select2-container--bootstrap .select2-search--dropdown .select2-search__field {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
}

/* NC / tareas-NC dashboards: fechas compactas, misma altura de caja que Select2 (37px) */
.report-dashboard.report-task-page .sim-nc-dash-datepicker.input-group {
  align-items: stretch;
  min-height: var(--report-nc-filter-control-h, 37px);
}

.report-dashboard.report-task-page .sim-nc-dash-datepicker.input-group-sm > .form-control {
  padding: 0.15rem 0.3rem;
  font-size: 0.875rem;
  line-height: 1.25;
  min-width: 0;
  min-height: var(--report-nc-filter-control-h, 37px);
}

.report-dashboard.report-task-page .sim-nc-dash-datepicker.input-group-sm > .input-group-text {
  padding: 0.15rem 0.35rem;
  display: flex;
  align-items: center;
  min-height: var(--report-nc-filter-control-h, 37px);
}

.report-dashboard.report-task-page .sim-nc-dash-datepicker .mdi-calendar {
  font-size: 1.05rem;
  line-height: 1;
}

/* Popup datepicker montado dentro de .report-dashboard (sim-bootstrap-datepicker.js) */
.report-dashboard.report-task-page .datepicker {
  padding: 3px;
}
.report-dashboard.report-task-page .datepicker table tr td,
.report-dashboard.report-task-page .datepicker table tr th {
  padding: 2px 3px;
  font-size: 0.875rem;
}

.report-dashboard.report-task-page .sim-nc-dash-subnav .nav-link {
  font-size: 0.8125rem;
  border-radius: var(--bs-border-radius-pill, 50rem);
}

.report-dashboard.report-task-page .sim-nc-dash-subnav .nav-link:not(.active) {
  color: var(--bs-primary);
  background-color: transparent;
}

.report-dashboard.report-task-page .sim-nc-dash-subnav .nav-link.active {
  font-weight: 600;
}


/* ============================================================
 * SECTION 3 — AUTH / LANDING (público)
 * Origen: static/css/auth-landing.css
 * Scope: .landing-modern, .lm-*, .poll-email-* y wrappers de páginas públicas
 * ============================================================ */
/* SIMFOUR landing — complemento visual (software / compliance). Scope: .landing-modern */

.landing-modern {
  --lm-slate-950: #0b1220;
  --lm-slate-900: #111827;
  --lm-slate-800: #1e293b;
  --lm-slate-100: #f1f5f9;
  --lm-accent: #0ea5e9;
  --lm-accent-soft: rgba(14, 165, 233, 0.12);
  --lm-border: rgba(148, 163, 184, 0.2);
  --lm-glow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  background: linear-gradient(180deg, var(--lm-slate-100) 0%, #e2e8f0 48%, #f8fafc 100%);
  color: var(--lm-slate-900);
}

.landing-hero-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.65rem;
  font-weight: 600;
}

.landing-page .top-banner .landing-hero-copy {
  padding-top: 0.15rem;
}

.landing-page .top-banner .landing-hero-copy .landing-hero-kicker {
  margin-bottom: 0.35rem;
}

.landing-page .top-banner .landing-hero-copy .landing-hero-display {
  margin-top: 0;
  white-space: normal;
}

@media (min-width: 992px) {
  .landing-page .top-banner .landing-hero-copy .landing-hero-display {
    white-space: nowrap;
  }
}

@media (min-width: 768px) {
  .landing-page .top-banner .landing-hero-copy {
    padding-top: 0.35rem;
  }
}

@media (max-width: 575.98px) {
  .landing-page .top-banner .landing-hero-copy .landing-hero-display {
    white-space: normal;
    font-size: clamp(1.2rem, 5.5vw, 1.85rem);
    letter-spacing: 0.08em;
  }
}

/* Títulos hero sobre foto del banner (.top-banner) */
.landing-hero-display {
  font-weight: 800;
  letter-spacing: clamp(0.06em, 0.35vw, 0.18em);
  line-height: 1.08;
  font-size: clamp(1.35rem, 6.5vw, 3rem);
  color: #fff;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 8px 32px rgba(0, 0, 0, 0.45);
  overflow-wrap: anywhere;
}

/* MDI en landing: woff2 + swap (evita bloqueo y peticiones extra ttf/woff) */
@font-face {
  font-family: "Material Design Icons";
  font-display: swap;
  font-weight: normal;
  font-style: normal;
  src: url("../vendors/mdi/fonts/materialdesignicons-webfont.woff2?v=7.4.47") format("woff2");
}

/* Contención horizontal y medios fluidos (PageSpeed / móvil) */
.landing-page {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  --lm-slate-950: #0b1220;
  --lm-slate-900: #111827;
  --lm-slate-800: #1e293b;
  --lm-slate-100: #f1f5f9;
  --lm-accent: #0ea5e9;
  --lm-accent-soft: rgba(14, 165, 233, 0.12);
  --lm-border: rgba(148, 163, 184, 0.2);
  --lm-glow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  --lm-page-gutter-x: 1.25rem;
  --landing-nav-bar-h: 4.25rem;
  --landing-floating-bottom: 0.85rem;
  --landing-floating-stack-h: 6.35rem;
  --landing-chat-top: calc(env(safe-area-inset-top, 0px) + var(--landing-nav-bar-h));
  --landing-chat-bottom: calc(
    var(--landing-floating-bottom) + var(--landing-floating-stack-h) + 0.4rem
  );
  --landing-chat-width: 24rem;
}

.landing-page.container-scroller {
  overflow-x: clip;
  overflow-y: hidden;
  max-width: 100%;
}

.landing-page > .top-banner,
.landing-page > .container-fluid.top-banner {
  background-color: #0f172a;
  background-image: url("../images/samples/Banner_bg.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow-x: clip;
  overflow-y: visible;
  max-width: 100%;
  padding-right: 0 !important;
}

.landing-page .landing-modern {
  overflow-x: clip;
  max-width: 100%;
}

.landing-page .top-banner > .row {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  max-width: 100%;
}

.landing-page .lm-page-head {
  background: linear-gradient(165deg, #0b1220 0%, #111827 40%, #0f172a 100%);
  color: #e2e8f0;
}

@media (min-width: 768px) {
  .landing-page {
    --lm-page-gutter-x: 1.65rem;
    --landing-nav-bar-h: 4.5rem;
    --landing-chat-width: 26rem;
  }
}

.landing-page .container-fluid,
.landing-page .container {
  max-width: 100%;
  padding-left: var(--lm-page-gutter-x);
  padding-right: var(--lm-page-gutter-x);
}

.landing-page .row > [class*="col-"] {
  min-width: 0;
}

.landing-page img,
.landing-page video,
.landing-page iframe,
.landing-page svg {
  max-width: 100%;
}

.landing-nav-logo {
  width: min(220px, 58vw);
  height: auto;
}

/* Submenú Soluciones — fondo azul/morado (legible sobre cualquier sección) */
.landing-page .navbar .landing-nav-dropdown {
  --bs-dropdown-bg: #312e81;
  --bs-dropdown-link-color: #f1f5f9;
  --bs-dropdown-link-hover-color: #fff;
  --bs-dropdown-link-hover-bg: rgba(255, 255, 255, 0.14);
  --bs-dropdown-border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(145deg, #272752 0%, #312e81 52%, #4338ca 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.65rem;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.42);
  padding: 0.4rem 0;
  min-width: 17rem;
  z-index: 1050;
}

.landing-page .navbar .landing-nav-dropdown .dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  color: #f1f5f9;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.35;
  padding: 0.5rem 0.9rem;
  white-space: normal;
}

.landing-page .navbar .landing-nav-dropdown .dropdown-item .mdi {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: #93c5fd;
  font-size: 1.05rem;
}

.landing-page .navbar .landing-nav-dropdown .dropdown-item:hover,
.landing-page .navbar .landing-nav-dropdown .dropdown-item:focus,
.landing-page .navbar .landing-nav-dropdown .dropdown-item:active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.landing-page .navbar .landing-nav-dropdown .dropdown-item:active .mdi {
  color: #bfdbfe;
}

.landing-page .navbar .landing-nav-dropdown--solutions {
  width: max-content;
  min-width: 14.5rem;
}

.landing-page .navbar .landing-nav-dropdown--solutions .dropdown-item {
  white-space: nowrap;
  align-items: center;
  line-height: 1.2;
}

.landing-page .navbar .landing-nav-dropdown--solutions .dropdown-item .mdi {
  margin-top: 0;
}

.landing-page .navbar .landing-nav-dropdown--compact {
  padding: 0.25rem 0;
}

.landing-page .navbar .landing-nav-dropdown--compact .dropdown-item {
  padding: 0.3rem 0.75rem;
  font-size: 0.84rem;
  line-height: 1.25;
  gap: 0.35rem;
}

.landing-page .navbar .landing-nav-dropdown--compact .dropdown-item .mdi {
  font-size: 0.95rem;
}

.landing-page .navbar .landing-nav-dropdown--compact .dropdown-divider {
  margin: 0.15rem 0;
  opacity: 0.35;
}

.landing-page .navbar .landing-nav-dropdown .dropdown-header {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem 0.15rem;
  margin-bottom: 0;
}

.landing-page .navbar .landing-nav-dropdown--system,
.landing-page .navbar .landing-nav-dropdown--technology,
.landing-page .navbar .landing-nav-dropdown--services {
  min-width: 15.5rem;
  max-width: 19rem;
}

.landing-page .navbar .landing-nav-dropdown--system .dropdown-item,
.landing-page .navbar .landing-nav-dropdown--technology .dropdown-item,
.landing-page .navbar .landing-nav-dropdown--services .dropdown-item {
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  line-height: 1.28;
}

.landing-hero-phone {
  position: relative;
  overflow: visible;
}

.landing-hero-phone__stack {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  margin-left: auto;
  margin-right: 0;
  line-height: 0;
}

.landing-hero-phone__img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
  object-position: right bottom;
}

.landing-hero-phone__overlay {
  position: absolute;
  top: 40%;
  left: 0;
  right: 0;
  transform: translateY(-40%);
  z-index: 3;
  pointer-events: none;
  padding-left: clamp(0.45rem, calc(5.5% + 2px), calc(1.65rem + 2px));
  padding-right: clamp(0.5rem, 20%, 2.75rem);
}

@media (min-width: 576px) {
  .landing-page .top-banner > .row {
    position: relative;
    overflow: visible;
    align-items: flex-end;
    flex-wrap: nowrap;
  }

  .landing-page .top-banner > .row > .landing-hero-copy {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    max-width: none;
  }

  .landing-page .top-banner > .row > .landing-hero-phone {
    flex: 0 0 42%;
    width: 42%;
    max-width: min(42%, 32rem);
    flex-shrink: 0;
    margin-left: auto;
    margin-right: 0;
    padding: 0 !important;
    align-self: flex-end;
  }

  .landing-page .top-banner .landing-hero-phone__img {
    width: 100%;
    max-width: 100%;
    max-height: min(52vh, 22rem);
    object-position: right bottom;
  }
}

@media (min-width: 992px) {
  .landing-page .top-banner .landing-hero-phone__img {
    max-height: min(54vh, 24rem);
  }
}

.landing-hero-phone__overlay a {
  pointer-events: auto;
}

.landing-hero-phone__lines {
  width: 100%;
  margin: 0;
}

.landing-hero-phone__line + .landing-hero-phone__line {
  margin-top: 0.12rem;
}

.landing-hero-phone__line-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  line-height: 1.2;
  color: #0f172a;
}

.landing-hero-phone__line-icon {
  flex: 0 0 0.95rem;
  width: 0.95rem;
  line-height: 1;
}

.landing-hero-phone__line-icon .mdi {
  display: block;
  font-size: 0.95rem;
}

.landing-hero-phone__line-label {
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 12px;
  font-size: clamp(0.62rem, 1.6vw, 0.95rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.landing-hero-phone__mobile {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 0.5rem 0.25rem;
}

.landing-hero-phone__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  max-width: 100%;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #0f172a;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.landing-hero-phone__chip span {
  overflow-wrap: anywhere;
}

.landing-hero-phone__chip i {
  flex-shrink: 0;
  color: #0284c7;
}

.landing-hero-cta {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.375rem;
}

.landing-hero-cta__btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.65rem;
  font-size: 0.875rem;
  line-height: 1.2;
  white-space: nowrap;
}

.landing-hero-cta__btn--login {
  color: #fff !important;
  background: rgba(15, 23, 42, 0.88);
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.landing-hero-cta__btn--login:hover,
.landing-hero-cta__btn--login:focus {
  color: #fff !important;
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(255, 255, 255, 0.5);
}

.landing-hero-cta__btn--contact {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.14);
  border: 2px solid rgba(255, 255, 255, 0.72);
}

.landing-hero-cta__btn--contact:hover,
.landing-hero-cta__btn--contact:focus {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.24);
  border-color: #fff;
}

.landing-hero-cta__icon {
  flex-shrink: 0;
  font-size: 1.05em;
  line-height: 1;
}

.lm-btn-demo {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #1e293b !important;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.45);
}

.lm-btn-demo:hover,
.lm-btn-demo:focus {
  color: #0f172a !important;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.5);
}

.landing-hero-cta .btn-outline-light {
  border-width: 2px;
}

@media (max-width: 575.98px) {
  .landing-hero-kicker {
    letter-spacing: 0.12em;
    font-size: 0.7rem;
  }

  .landing-hero-cta {
    gap: 0.35rem;
    max-width: 100%;
  }

  .landing-hero-cta__btn {
    font-size: 0.8125rem;
    padding: 0.45rem 0.4rem;
    min-height: 2.375rem;
  }
}

@media (min-width: 992px) {
  .landing-hero-cta {
    max-width: min(100%, 32rem);
    gap: 0.5rem;
  }

  .landing-hero-cta__btn {
    font-size: 0.9375rem;
    padding: 0.55rem 0.75rem;
    min-height: 2.625rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .landing-hero-phone__line-label {
    font-size: clamp(0.58rem, 3cqw, 0.82rem);
  }
}

.landing-hero-cta .btn-dark {
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.landing-hero-cta .btn-light {
  backdrop-filter: blur(8px);
}

.lm-section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.lm-section--dark {
  background: linear-gradient(165deg, #0b1220 0%, #111827 40%, #0f172a 100%);
  color: #e2e8f0;
  position: relative;
  overflow: hidden;
}

.lm-section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, transparent 0%, black 18%, black 82%, transparent 100%);
  pointer-events: none;
}

.lm-section-title {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.lm-section-lead {
  max-width: 42rem;
  color: #64748b;
  font-size: 1.05rem;
  line-height: 1.55;
}

.lm-section--dark .lm-section-lead {
  color: #94a3b8;
}

.lm-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.lm-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(14, 165, 233, 0.15);
  color: #0369a1;
  border: 1px solid rgba(14, 165, 233, 0.35);
}

.lm-section--dark .lm-badge {
  background: rgba(14, 165, 233, 0.1);
  color: #7dd3fc;
  border-color: rgba(125, 211, 252, 0.25);
}

.lm-card-solution {
  display: block;
  height: 100%;
  padding: 1.5rem 1.35rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--lm-border);
  box-shadow: var(--lm-glow), 0 18px 50px -24px rgba(0, 0, 0, 0.5);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.lm-card-solution:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: var(--lm-glow), 0 24px 60px -20px rgba(14, 165, 233, 0.25);
  color: inherit;
}

.lm-card-solution__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: var(--lm-accent-soft);
  color: #38bdf8;
}

.lm-card-solution h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.lm-card-solution p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #94a3b8;
  margin: 0;
}

.lm-card-solution .lm-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #38bdf8;
}

.lm-video-shell {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--lm-border);
  background: var(--lm-slate-800);
  box-shadow: 0 24px 80px -32px rgba(0, 0, 0, 0.45);
}

.lm-video-chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lm-video-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.lm-video-dot--r { background: #f87171; }
.lm-video-dot--y { background: #fbbf24; }
.lm-video-dot--g { background: #4ade80; }

.lm-video-chrome span {
  flex: 1;
  text-align: center;
  font-size: 0.7rem;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  color: #94a3b8;
  letter-spacing: 0.04em;
}

.lm-video-shell iframe,
.lm-video-shell .lm-yt-facade {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto !important;
  min-height: 200px;
}

.lm-yt-facade {
  position: relative;
  margin: 0;
  padding: 0;
  background: #0f172a;
}

.lm-yt-facade__play {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 200px;
  padding: 0;
  border: 0;
  cursor: pointer;
  position: relative;
  background: transparent;
  color: #fff;
}

.lm-yt-facade__poster {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(37, 99, 235, 0.28), transparent 70%),
    linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
}

.lm-yt-facade__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.08) 0%,
    rgba(15, 23, 42, 0.35) 52%,
    rgba(15, 23, 42, 0.72) 100%
  );
  pointer-events: none;
}

.lm-yt-facade__poster-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.lm-yt-facade__icon {
  position: relative;
  z-index: 2;
  display: block;
  font-size: clamp(3rem, 8vw, 4.5rem);
  line-height: 1;
  margin: 0 auto;
  top: 50%;
  transform: translateY(-62%);
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.lm-yt-facade__label {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
  font-size: clamp(0.92rem, 2.4vw, 1.08rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0.42rem 1rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

.lm-yt-facade__play:hover .lm-yt-facade__icon,
.lm-yt-facade__play:focus-visible .lm-yt-facade__icon {
  color: #7dd3fc;
}

.lm-yt-facade__play:hover .lm-yt-facade__label,
.lm-yt-facade__play:focus-visible .lm-yt-facade__label {
  background: rgba(37, 99, 235, 0.88);
  border-color: rgba(191, 219, 254, 0.45);
}

.lm-yt-facade iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto !important;
  min-height: 200px;
  border: 0;
}

.lm-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 992px) {
  .lm-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

.lm-gallery__item {
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: #f8fafc;
  box-shadow: 0 10px 40px -20px rgba(15, 23, 42, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  aspect-ratio: 4 / 3;
}

.lm-gallery__item:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 50px -24px rgba(14, 165, 233, 0.35);
}

.lm-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  vertical-align: middle;
}

/* Capturas SIMFOUR (810×642): proporción real, sin recorte */
.lm-gallery--screens {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 992px) {
  .lm-gallery--screens.lm-gallery--wide {
    grid-template-columns: repeat(4, 1fr);
  }
}

.lm-gallery--screens .lm-gallery__item {
  aspect-ratio: auto;
  height: auto;
}

.lm-gallery--screens .lm-gallery__item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.lm-concept-showcase {
  margin-bottom: 0.35rem;
}

.lm-concept-caption {
  font-size: 0.85rem;
  line-height: 1.45;
  color: #64748b;
  margin-top: 0.75rem;
}

.lm-section--dark .lm-concept-caption {
  color: rgba(226, 232, 240, 0.75);
}

.lm-figure {
  margin: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: #f8fafc;
  box-shadow: 0 10px 40px -20px rgba(15, 23, 42, 0.35);
  line-height: 0;
}

.lm-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.lm-figure--phone {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.lm-section--dark .lm-figure {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.35);
}

.lm-concept-panel {
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: #f8fafc;
  box-shadow: 0 10px 40px -20px rgba(15, 23, 42, 0.35);
  line-height: 0;
}

.lm-concept-panel img {
  width: 100%;
  height: auto;
  display: block;
}

.lm-section--dark .lm-concept-panel {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.35);
}

/* Páginas Plataforma y App móvil: capturas compactas */
.lm-page-features .lm-figure,
.lm-page-mobile .lm-figure {
  max-width: min(100%, 400px);
  margin-left: auto;
  margin-right: auto;
}

.lm-page-features .lm-figure--hero,
.lm-page-mobile .lm-figure--hero {
  max-width: min(100%, 440px);
}

.lm-page-features .lm-figure--phone,
.lm-page-mobile .lm-figure--phone {
  max-width: min(100%, 260px);
}

.lm-page-features .lm-visual-center,
.lm-page-mobile .lm-visual-center {
  max-width: min(100%, 480px);
  margin-left: auto;
  margin-right: auto;
}

.lm-page-features .lm-gallery--screens,
.lm-page-mobile .lm-gallery--screens {
  max-width: min(100%, 520px);
  margin-left: auto;
  margin-right: auto;
  gap: 0.65rem;
}

.lm-page-features .lm-gallery--screens .lm-gallery__item,
.lm-page-mobile .lm-gallery--screens .lm-gallery__item {
  box-shadow: 0 6px 22px -14px rgba(15, 23, 42, 0.28);
}

.lm-page-features .lm-gallery--screens.lm-gallery--compact,
.lm-page-mobile .lm-gallery--screens.lm-gallery--compact {
  max-width: min(100%, 440px);
}

.lm-page-features .lm-concept-caption,
.lm-page-mobile .lm-concept-caption {
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* Página Plataforma (/features/): hero visual y capturas más amplias */
.lm-features-hero {
  padding-top: 2rem !important;
  padding-bottom: 2.25rem !important;
}

.landing-page--plataforma .lm-page-features > .lm-section:not(.lm-features-hero):not(.lm-comms-band):not(.lm-int-band) {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.landing-page--plataforma .lm-page-features .lm-features-hero {
  padding-top: 1.15rem !important;
  padding-bottom: 1.25rem !important;
}

.landing-page--plataforma .lm-page-features .lm-features-stats {
  padding: 0.55rem 0;
}

.landing-page--plataforma .lm-page-features .lm-tecnologia-stack {
  padding-top: 0.85rem !important;
  padding-bottom: 0.85rem !important;
}

.landing-page--plataforma .lm-page-features .lm-comms-band--page,
.landing-page--plataforma .lm-page-features .lm-int-band--page {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.landing-page--plataforma .lm-page-features .lm-section-lead {
  font-size: 0.95rem;
  line-height: 1.45;
  margin-bottom: 0.65rem;
}

.landing-page--plataforma .lm-page-features .lm-pillars {
  gap: 0.65rem;
}

.landing-page--plataforma .lm-page-features .lm-tecnologia-stack__shots .lm-shot-carousel,
.landing-page--plataforma .lm-page-features .lm-features-measure__shots .lm-shot-carousel {
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.landing-page--plataforma .lm-page-features .lm-tecnologia-stack__shots .lm-shot-carousel__viewport,
.landing-page--plataforma .lm-page-features .lm-features-measure__shots .lm-shot-carousel__viewport {
  aspect-ratio: 16 / 10;
}

.landing-page--plataforma .lm-page-features .lm-features-measure .lm-check-line {
  font-size: 0.88rem;
  padding: 0.12rem 0;
}

.landing-page--plataforma .lm-page-features > .lm-section.pt-0 {
  padding-top: 0.35rem !important;
}

.lm-features-showcase {
  position: relative;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.lm-features-showcase__mac {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 28px 64px -24px rgba(0, 0, 0, 0.55);
  line-height: 0;
  background: rgba(15, 23, 42, 0.35);
}

.lm-features-showcase__mac img {
  width: 100%;
  height: auto;
  display: block;
}

.lm-features-showcase__phone {
  position: absolute;
  right: -1%;
  bottom: 2%;
  width: min(28%, 168px);
  margin: 0;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.45));
  line-height: 0;
}

.lm-features-showcase__phone img {
  width: 100%;
  height: auto;
  display: block;
}

.lm-features-stats {
  padding: 1.15rem 0;
  background: #fff;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.lm-page-features > .lm-section:not(.lm-features-hero) {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.lm-page-features .lm-gallery--feat-strip {
  max-width: min(100%, 960px);
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

@media (max-width: 767px) {
  .lm-page-features .lm-gallery--feat-strip {
    grid-template-columns: 1fr;
    max-width: min(100%, 420px);
  }

  .lm-features-showcase__phone {
    width: min(32%, 140px);
    right: 0;
  }

  .lm-features-showcase__phone--mock {
    width: min(34%, 150px);
    filter: none;
  }

  .lm-features-showcase__phone--mock .lm-auditor-promo--solo {
    transform: scale(0.88);
    transform-origin: bottom center;
  }

  .lm-features-showcase__phone--mock .lm-auditor-device--b {
    transform: none;
  }

  .lm-features-showcase__phone--mock .lm-auditor-device__cap {
    display: none;
  }
}

.lm-page-features .lm-visual-center--wide {
  max-width: min(100%, 680px);
}

.lm-page-features .lm-section--dark .lm-figure {
  max-width: min(100%, 640px);
}

.lm-pillars {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .lm-pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .lm-pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

.lm-pillar {
  padding: 1.25rem 1.15rem;
  border-radius: 0.85rem;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 8px 30px -18px rgba(15, 23, 42, 0.2);
  height: 100%;
}

.lm-pillar__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.6rem;
  background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.lm-pillar__icon--microsoft {
  background: #0078d4;
  color: #fff;
}

.lm-pillar h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--lm-slate-900);
}

.lm-pillar p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #64748b;
  margin: 0;
}

.lm-law-list {
  list-style: none;
  padding: 0;
  margin: 0.45rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.2rem;
}

.lm-law-list li {
  font-size: 0.68rem;
  line-height: 1.2;
  padding: 0.18rem 0.4rem;
  border-radius: 0.35rem;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.12);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #cbd5e1;
  overflow-wrap: anywhere;
}

.lm-page-home .lm-card-solution {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
}

.lm-page-home .lm-card-solution__head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  margin-bottom: 0.35rem;
}

.lm-page-home .lm-card-solution__icon {
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0;
  border-radius: 0.45rem;
  font-size: 1.05rem;
}

.lm-page-home .lm-card-solution__head h3 {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.88rem;
  line-height: 1.2;
  margin: 0;
}

@media (min-width: 992px) {
  .lm-page-home .lm-card-solution__head {
    min-height: 3.15rem;
  }
}

.lm-page-home .lm-card-solution p {
  margin-bottom: 0;
  font-size: 0.78rem;
  line-height: 1.35;
}

.lm-page-home .lm-card-solution .lm-law-list {
  margin-top: 0.25rem;
}

.lm-page-home .lm-card-solution .lm-link-arrow {
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: 0.72rem;
}

.lm-products-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
}

.lm-section--dark .lm-products-intro .lm-section-lead {
  max-width: none;
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(0.78rem, 1.35vw, 1rem);
  line-height: 1.35;
  color: #94a3b8;
}

@media (min-width: 768px) {
  .lm-products-intro {
    flex-wrap: nowrap;
    gap: 0.75rem;
  }

  .lm-section--dark .lm-products-intro .lm-section-lead {
    white-space: nowrap;
  }
}

.lm-products-intro--benefit {
  justify-content: center;
}

.lm-products-intro--benefit .lm-section-title {
  margin-bottom: 0;
  font-size: clamp(1.05rem, 1.85vw, 1.35rem);
}

.lm-products-intro--benefit .lm-section-lead {
  max-width: none;
  font-size: clamp(0.82rem, 1.15vw, 0.98rem);
  line-height: 1.4;
}

@media (min-width: 768px) {
  .lm-products-intro--benefit .lm-section-lead {
    white-space: nowrap;
  }
}

.lm-products-intro--tour {
  justify-content: center;
}

.lm-products-intro--tour .lm-section-title {
  margin-bottom: 0;
  font-size: clamp(1.05rem, 1.85vw, 1.35rem);
}

.lm-products-intro--tour .lm-section-lead {
  max-width: none;
  font-size: clamp(0.78rem, 1.1vw, 0.94rem);
  line-height: 1.4;
}

@media (min-width: 768px) {
  .lm-products-intro--tour .lm-section-lead {
    white-space: nowrap;
  }
}

.lm-stat {
  text-align: center;
  padding: 1rem;
}

.lm-stat__num {
  font-size: 2.15rem;
  font-weight: 800;
  color: #0284c7;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
}

.lm-stat__num .mdi {
  vertical-align: middle;
}

.lm-stat__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #64748b;
  margin-top: 0.25rem;
}

.lm-section--dark .lm-stat__label {
  color: #94a3b8;
}

/* —— Subpáginas (menú landing) —— */

.lm-page-head {
  position: relative;
  overflow: hidden;
  padding-top: 2px;
  padding-bottom: 2px;
  background: linear-gradient(165deg, #0b1220 0%, #111827 40%, #0f172a 100%);
}

.lm-page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.lm-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.lm-page-head h1 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lm-icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 1rem;
}

@media (max-width: 575px) {
  .lm-icon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.lm-icon-cell {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 0.85rem;
  padding: 1rem 0.65rem;
  text-align: center;
  box-shadow: 0 8px 28px -18px rgba(15, 23, 42, 0.18);
}

.lm-icon-cell .mdi.lm-icon-xl {
  font-size: 2.1rem;
  line-height: 1;
  display: block;
  margin-bottom: 0.35rem;
}

.lm-icon-cell p {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--lm-slate-800);
}

.lm-icon-cell--amber .mdi {
  color: #d97706;
}

.lm-icon-cell--indigo .mdi {
  color: #4338ca;
}

.lm-icon-cell--sky .mdi {
  color: #0284c7;
}

.lm-icon-cell--slate .mdi {
  color: #475569;
}

.lm-triple-panel {
  border-radius: 1rem;
  padding: 1.2rem 1.1rem;
  height: 100%;
  font-size: 0.9rem;
  line-height: 1.5;
}

.lm-triple-panel h6 {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
  color: #991b1b;
}

.lm-triple-panel--soft h6 {
  color: #0f172a;
}

.lm-triple-panel--ok h6 {
  color: #166534;
}

.lm-triple-panel--soft {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.97), rgba(241, 245, 249, 0.93));
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--lm-slate-800);
}

.lm-triple-panel--risk {
  background: linear-gradient(160deg, rgba(254, 226, 226, 0.96), rgba(254, 202, 202, 0.9));
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #450a0a;
}

.lm-triple-panel--ok {
  background: linear-gradient(160deg, rgba(220, 252, 231, 0.96), rgba(187, 247, 208, 0.9));
  border: 1px solid rgba(74, 222, 128, 0.45);
  color: #14532d;
}

.lm-triple-panel--iso {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.14), rgba(127, 29, 29, 0.08));
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #1e293b;
}

.lm-triple-panel--iso::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--lm-iso-bg, none) right center / 42% no-repeat;
  opacity: 0.2;
  pointer-events: none;
}

.lm-check-line {
  display: block;
  padding: 0.15rem 0;
  padding-left: 1.35rem;
  position: relative;
  color: inherit;
}

.lm-check-line .mdi {
  position: absolute;
  left: 0;
  top: 0.2rem;
  font-size: 1rem;
  color: #0284c7;
}

.lm-triple-panel--risk .lm-check-line .mdi,
.lm-triple-panel--ok .lm-check-line .mdi {
  color: inherit;
  opacity: 0.85;
}

.lm-section-heading-center {
  text-align: center;
  margin-bottom: 1.5rem;
}

.lm-section-heading-center img {
  width: min(72px, 14vw);
  height: auto;
  margin-bottom: 0.35rem;
}

.lm-faq {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lm-faq__item {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.85rem;
  padding: 1.1rem 1.2rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 6px 22px -14px rgba(15, 23, 42, 0.14);
}

.lm-faq__item h5 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--lm-slate-900);
}

.lm-faq__item p {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
}

.lm-page-solution .lm-section--faq {
  padding-top: 1.15rem !important;
  padding-bottom: 1.35rem !important;
}

.lm-page-solution .lm-section--faq .lm-section-title {
  margin-bottom: 0.55rem;
}

.lm-page-solution .lm-faq {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
}

@media (min-width: 768px) {
  .lm-page-solution .lm-faq {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.6rem;
    row-gap: 0.35rem;
  }
}

.lm-page-solution .lm-faq__item {
  padding: 0.55rem 0.72rem;
  margin-bottom: 0;
  border-radius: 0.55rem;
  box-shadow: 0 3px 12px -10px rgba(15, 23, 42, 0.12);
}

.lm-page-solution .lm-faq__item h5 {
  font-size: 0.84rem;
  margin-bottom: 0.12rem;
  line-height: 1.3;
}

.lm-page-solution .lm-faq__item p {
  font-size: 0.78rem;
  line-height: 1.38;
}

.lm-module-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(14, 165, 233, 0.38);
  color: #0369a1;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  margin: 0 0.35rem 0.45rem 0;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

button.lm-module-link,
a.lm-module-link {
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: inherit;
}

.lm-module-link:hover {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.55);
  color: #0c4a6e;
}

.lm-module-link.is-active,
.lm-module-link.is-active:hover {
  background: rgba(14, 165, 233, 0.2);
  border-color: #0284c7;
  color: #0c4a6e;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.28);
}

.lm-feature-grid {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 768px) {
  .lm-feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.lm-feature-row {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.7rem;
  padding: 0.75rem 0.95rem;
}

.lm-section--dark .lm-feature-row {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(148, 163, 184, 0.28);
}

.lm-feature-row__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  color: #dc2626;
  flex-shrink: 0;
  min-width: 2.25rem;
  font-size: 0.8rem;
}

.lm-feature-row p {
  margin: 0;
  font-size: 0.86rem;
  color: #475569;
  line-height: 1.45;
}

.lm-feature-row strong {
  display: block;
  font-size: 0.88rem;
  color: var(--lm-slate-900);
  margin-bottom: 0.15rem;
}

.lm-integration-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
  color: #e2e8f0;
}

.lm-integration-table thead th {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(226, 232, 240, 0.85);
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.lm-integration-table tbody td {
  padding: 0.85rem;
  vertical-align: top;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.lm-integration-table tbody tr:last-child td {
  border-bottom: 0;
}

.lm-integration-table tbody td:first-child {
  width: 1%;
  min-width: 7.5rem;
  color: #fff;
}

.lm-integration-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.lm-integration-brand--erp {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.lm-integration-brand__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.lm-integration-brand__logo {
  display: block;
  height: 1.75rem;
  width: auto;
  max-width: 6.5rem;
  object-fit: contain;
}

.lm-integration-brand__logo--pill {
  background: #fff;
  border-radius: 0.35rem;
  padding: 0.15rem 0.4rem;
  height: 2rem;
  max-width: 7rem;
}

.lm-integration-brand__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.25;
}

.lm-integration-brand--text .lm-integration-brand__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 1.15rem;
}

.lm-integration-table tbody td:nth-child(2) {
  min-width: 10rem;
  color: #cbd5e1;
}

.lm-integration-table tbody td:last-child {
  color: rgba(226, 232, 240, 0.82);
}

@media (max-width: 767.98px) {
  .lm-integration-table thead {
    display: none;
  }

  .lm-integration-table tbody tr {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  }

  .lm-integration-table tbody tr:last-child {
    border-bottom: 0;
  }

  .lm-integration-table tbody td {
    display: block;
    width: 100%;
    padding: 0.2rem 0;
    border: 0;
  }

  .lm-integration-table tbody td:first-child {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }
}

.lm-contact-card {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1rem;
  padding: 1.35rem 1.25rem;
  height: 100%;
  box-shadow: 0 12px 40px -22px rgba(15, 23, 42, 0.2);
}

.lm-contact-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.lm-map-frame {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 16px 50px -28px rgba(15, 23, 42, 0.35);
  height: 100%;
  min-height: 280px;
}

.lm-map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  display: block;
}

.lm-contact-location .lm-map-frame,
.lm-contact-location .lm-contact-office,
.lm-contact-location .lm-map-facade,
.lm-contact-location .lm-map-facade--loaded iframe {
  min-height: 280px;
  max-height: 360px;
}

.lm-contact-office__img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 360px;
  object-fit: cover;
}

.lm-map-facade {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  height: 100%;
  background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
}

.lm-map-facade__load {
  border: 0;
  background: transparent;
  text-align: center;
  padding: 1.5rem;
  max-width: 20rem;
  cursor: pointer;
  color: #334155;
}

.lm-map-facade__load:hover .lm-map-facade__icon,
.lm-map-facade__load:focus-visible .lm-map-facade__icon {
  color: #0d6efd;
}

.lm-map-facade__icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
  color: #64748b;
}

.lm-map-facade--loaded,
.lm-map-facade--loaded iframe {
  width: 100%;
  min-height: 280px;
}

.lm-exp-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.lm-exp-item:last-child {
  border-bottom: none;
}

.lm-exp-item__num {
  font-family: ui-monospace, monospace;
  font-weight: 700;
  font-size: 0.75rem;
  color: #64748b;
  width: 2rem;
  flex-shrink: 0;
  padding-top: 0.2rem;
}

.lm-exp-item h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #0369a1;
}

.lm-exp-item p {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
}

/* —— Login / recuperar clave (base_auth) —— */

.auth-page-body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(165deg, #0b1220 0%, #111827 45%, #1e293b 100%);
  position: relative;
}

.auth-page-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.auth-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 3rem;
}

.auth-top-bar {
  width: 100%;
  max-width: 440px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.auth-top-bar a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.auth-top-bar a:hover {
  color: #7dd3fc;
}

.auth-lang-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.auth-lang-inline img {
  cursor: pointer;
  border-radius: 2px;
  vertical-align: middle;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 28px 80px -32px rgba(0, 0, 0, 0.55);
  padding: 2rem 1.75rem;
}

.auth-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Fondo detrás del logo — login / recuperar clave */
.auth-brand-banner {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #7c6ffa;
  padding: 1.75rem 1rem;
  margin-bottom: 0.75rem;
}

.auth-brand-banner__inner {
  position: relative;
}

.auth-brand img {
  max-width: 200px;
  height: auto;
}

.auth-brand__title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--lm-slate-900);
  margin: 0.5rem 0 0;
}

.auth-brand__sub {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0.25rem 0 0;
}

.auth-card .form-label,
.auth-card label.label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--lm-slate-800);
  margin-bottom: 0.35rem;
}

.auth-card .input-group-text {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

.auth-card .form-control {
  border-color: #cbd5e1;
}

.auth-card .form-control:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.2);
}

.auth-card .btn-primary {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border: none;
  font-weight: 600;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.auth-card .btn-primary:hover {
  background: linear-gradient(135deg, #0369a1, #075985);
}

.auth-card .btn-info {
  font-weight: 600;
}

.auth-footer-links {
  font-size: 0.88rem;
  margin-top: 1rem;
}

.auth-footer-links a {
  color: #0369a1;
  font-weight: 600;
  text-decoration: none;
}

.auth-footer-links a:hover {
  text-decoration: underline;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #94a3b8;
  font-size: 0.8rem;
  margin: 1.25rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

/* —— Pie público (landing + subpáginas) —— */
.landing-page .lm-footer {
  --lm-footer-fg: #cbd5e1;
  --lm-footer-fg-muted: #64748b;
  --lm-footer-link: #f1f5f9;
  --lm-footer-link-hover: #7dd3fc;
  --lm-footer-mark: rgba(56, 189, 248, 0.26);
  margin-top: 0;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #0f172a 0%, #0b1220 42%, #020617 100%);
  color: var(--lm-footer-fg);
  border-top: 1px solid rgba(14, 165, 233, 0.22);
  box-shadow: 0 -24px 48px -32px rgba(0, 0, 0, 0.45);
}

.landing-page .lm-footer__inner {
  padding-top: 1.25rem;
  padding-bottom: 0.85rem;
}

@media (min-width: 992px) {
  .landing-page .lm-footer__inner {
    padding-top: 1.35rem;
    padding-bottom: 1rem;
  }
}

.landing-page .lm-footer__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lm-footer-fg-muted);
  margin-bottom: 0.45rem;
}

.landing-page .lm-footer__columns {
  align-items: stretch;
}

.landing-page .lm-footer__col {
  min-width: 0;
}

.landing-page .lm-footer__sub-label--invisible {
  visibility: hidden;
  margin-bottom: 0.3rem;
  min-height: 0.64rem;
}

.landing-page .lm-footer__nav-list--gap {
  margin-top: 0.5rem;
}

.landing-page .lm-footer__nav-divider {
  margin: 0.5rem 0 0.4rem;
  border: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  opacity: 1;
}

.landing-page .lm-footer__group-title {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.2rem;
}

.landing-page .lm-footer__group-title.lm-footer__sub-label--gap {
  margin-top: 0.45rem !important;
}

@media (min-width: 992px) {
  .landing-page .lm-footer__col--contact {
    padding-left: 0.65rem;
    border-left: 1px solid rgba(148, 163, 184, 0.14);
  }

  .landing-page .lm-footer__col--mark {
    padding-left: 0.35rem;
    border-left: 1px solid rgba(148, 163, 184, 0.08);
  }
}

.landing-page .lm-footer__col--mark {
  position: relative;
  overflow: hidden;
  min-height: 5.5rem;
}

.landing-page .lm-footer__mark {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 100%;
  padding: 0;
  position: relative;
}

.landing-page .lm-footer__mark-svg {
  flex: 0 0 auto;
  width: min(72vw, 8.5rem);
  height: auto;
  max-height: none;
  color: var(--lm-footer-mark);
  transform: translateX(28%) translateY(22%);
  filter: drop-shadow(0 0 28px rgba(14, 165, 233, 0.12));
  pointer-events: none;
  user-select: none;
}

@media (min-width: 768px) {
  .landing-page .lm-footer__mark-svg {
    width: 9.5rem;
  }
}

@media (min-width: 992px) {
  .landing-page .lm-footer__col--mark {
    min-height: 6.5rem;
  }

  .landing-page .lm-footer__mark-svg {
    width: 11rem;
    transform: translateX(32%) translateY(26%);
    color: rgba(56, 189, 248, 0.3);
  }
}

.landing-page .lm-footer__list li + li {
  margin-top: 0.35rem;
}

.landing-page .lm-footer__link--address {
  display: flex;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
}

.landing-page .lm-footer__address-text {
  display: block;
  flex: 1;
  min-width: 0;
  line-height: 1.32;
  font-size: 0.78rem;
}

.landing-page .lm-footer__address-line {
  display: block;
  white-space: nowrap;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .landing-page .lm-footer__address-text {
    font-size: 0.72rem;
  }
}

.landing-page .lm-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0;
  margin-bottom: 0.55rem;
}

.landing-page .lm-footer__link {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.45rem;
  color: var(--lm-footer-link);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.landing-page .lm-footer__link:hover {
  color: var(--lm-footer-link-hover);
}

.landing-page .lm-footer__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  flex-shrink: 0;
  border-radius: 0.4rem;
  background: rgba(14, 165, 233, 0.12);
  color: #38bdf8;
  font-size: 0.95rem;
}

.landing-page .lm-footer__sub-label--gap {
  margin-top: 0.65rem !important;
}

.landing-page .lm-footer__address {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  color: var(--lm-footer-fg);
  text-decoration: none;
  font-size: 0.84rem;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.landing-page .lm-footer__address:hover {
  color: var(--lm-footer-link-hover);
}

.landing-page .lm-footer__address .lm-footer__icon {
  margin-top: 0.1rem;
}

.landing-page .lm-footer__sub-label {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.3rem;
}

.landing-page .lm-footer__nav-list > li + li {
  margin-top: 0.15rem;
}

.landing-page .lm-footer__nav-list--compact > li + li {
  margin-top: 0.05rem;
}

.landing-page .lm-footer__col--platform .lm-footer__sub-label {
  margin-bottom: 0.25rem;
}

.landing-page .lm-footer__col--platform .lm-footer__nav-link {
  font-size: 0.78rem;
  line-height: 1.2;
}

.landing-page .lm-footer__nav-link {
  display: inline-block;
  color: var(--lm-footer-link);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.25;
  transition: color 0.2s ease;
}

.landing-page .lm-footer__nav-link:hover {
  color: var(--lm-footer-link-hover);
}

.landing-page .lm-footer__social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.18);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.landing-page .lm-footer__social-btn:hover {
  background: rgba(14, 165, 233, 0.15);
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -10px rgba(14, 165, 233, 0.5);
}

.landing-page .lm-footer__social-btn i {
  font-size: 1.35rem;
  line-height: 1;
}

.landing-page .lm-footer__social-btn--wa i {
  color: #25d366;
}

.landing-page .lm-footer__social-btn--li i {
  color: #0a66c2;
}

.landing-page .lm-footer__social-btn--fb i {
  color: #1877f2;
}

.landing-page .lm-footer__social-btn--yt i {
  color: #ff0000;
}

.landing-page .lm-footer__social-btn--ig i {
  color: #e4405f;
}

.landing-page .lm-footer__denuncias {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--bs-btn-border-radius, 0.375rem);
  color: #0f172a;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border: 1px solid rgba(125, 211, 252, 0.5);
  box-shadow: 0 4px 14px -6px rgba(14, 165, 233, 0.45);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.landing-page .lm-footer__denuncias:hover {
  color: #0c4a6e;
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -8px rgba(14, 165, 233, 0.55);
}

.landing-page .lm-footer__bottom {
  margin-top: 1rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(51, 65, 85, 0.6);
}

.landing-page .lm-footer__legal {
  text-align: center;
  font-size: 0.78rem;
  color: var(--lm-footer-fg-muted);
  line-height: 1.35;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.65rem;
}

.landing-page .lm-footer__legal-line {
  display: inline;
}

.landing-page .lm-footer__legal-sep {
  color: #475569;
  user-select: none;
}

.landing-page .lm-footer__legal a {
  color: #94a3b8;
  font-weight: 600;
  text-decoration: none;
}

.landing-page .lm-footer__legal a:hover {
  color: var(--lm-footer-link-hover);
}

/* Public landing: ES/EN flag toggle */
.landing-lang-toggle .landing-lang-btn {
  opacity: 0.9;
  line-height: 1;
  padding: 0.15rem !important;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.landing-lang-toggle .landing-lang-btn:hover,
.landing-lang-toggle .landing-lang-btn:focus,
.landing-lang-toggle .landing-lang-btn:active {
  opacity: 1;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.landing-lang-flag {
  display: inline-block;
  width: 1.28rem;
  height: 0.8rem;
  border-radius: 2px;
  background-color: transparent;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  vertical-align: middle;
}
.landing-lang-flag--gb {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Cpath fill='%23012169' d='M0 0h60v30H0z'/%3E%3Cpath stroke='%23fff' stroke-width='6' d='M0 0l60 30M60 0L0 30'/%3E%3Cpath stroke='%23C8102E' stroke-width='4' d='M0 0l60 30M60 0L0 30'/%3E%3Cpath stroke='%23fff' stroke-width='10' d='M30 0v30M0 15h60'/%3E%3Cpath stroke='%23C8102E' stroke-width='6' d='M30 0v30M0 15h60'/%3E%3C/svg%3E");
}
.landing-lang-flag--es {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Cpath fill='%23AA151B' d='M0 0h3v2H0z'/%3E%3Cpath fill='%23F1BF00' d='M0 .5h3v1H0z'/%3E%3C/svg%3E");
}

/* Fixed corner actions — WhatsApp + language (public landing) */
.landing-floating-actions {
  position: fixed;
  right: 0.75rem;
  bottom: 0.85rem;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  pointer-events: none;
}

.landing-floating-actions > * {
  pointer-events: auto;
}

.landing-floating-actions .landing-lang-floating {
  position: static;
  right: auto;
  bottom: auto;
}

@media (max-width: 575.98px) {
  .landing-floating-actions {
    right: 0.5rem;
    bottom: 0.5rem;
    gap: 0.4rem;
  }
}

/* Always-visible flags (scroll) — public landing + lm-footer pages */
.landing-lang-floating {
  position: fixed;
  right: 0.75rem;
  bottom: 0.85rem;
  z-index: 1080;
  display: flex;
  align-items: center;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  pointer-events: auto;
}

.landing-lang-floating .landing-lang-toggle {
  margin: 0;
}

@media (max-width: 575.98px) {
  .landing-lang-floating {
    right: 0.5rem;
    bottom: 0.5rem;
    padding: 0.15rem 0.35rem;
  }
}

@keyframes landing-whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  70% {
    transform: scale(1.45);
    opacity: 0;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

/* Always-visible WhatsApp chat — public landing + lm-footer pages */
.landing-whatsapp-floating {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  max-width: min(18rem, calc(100vw - 1.5rem));
  padding: 0.55rem 1rem 0.55rem 0.7rem;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #25d366 0%, #1ebe57 100%);
  box-shadow:
    0 8px 28px rgba(37, 211, 102, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.landing-whatsapp-floating:hover {
  color: #fff;
  filter: brightness(1.04);
  transform: translateY(-2px);
  box-shadow:
    0 12px 34px rgba(37, 211, 102, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}

.landing-whatsapp-floating__pulse {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(37, 211, 102, 0.35);
  animation: landing-whatsapp-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

.landing-whatsapp-floating__logo {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  font-size: 1.65rem;
  line-height: 1;
  color: #fff;
}

.landing-whatsapp-floating__label {
  position: relative;
  z-index: 1;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1.2;
}

@media (max-width: 575.98px) {
  .landing-whatsapp-floating {
    padding: 0.5rem 0.85rem 0.5rem 0.6rem;
    gap: 0.55rem;
  }

  .landing-whatsapp-floating__logo {
    font-size: 1.5rem;
  }

  .landing-whatsapp-floating__label {
    font-size: 0.86rem;
  }
}

.landing-whatsapp-floating.is-open {
  box-shadow:
    0 10px 30px rgba(37, 211, 102, 0.42),
    0 0 0 2px rgba(255, 255, 255, 0.22) inset;
}

/* In-page chat panel — public landing */
.landing-chat-panel {
  position: fixed;
  top: var(--landing-chat-top);
  right: 0.75rem;
  bottom: var(--landing-chat-bottom);
  z-index: 1090;
  display: flex;
  flex-direction: column;
  width: min(var(--landing-chat-width), calc(100vw - 1.5rem));
  height: auto;
  max-height: none;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #f8fafc;
  color: #0f172a;
  box-shadow:
    0 14px 36px rgba(15, 23, 42, 0.24),
    0 0 0 1px rgba(148, 163, 184, 0.2);
}

.landing-chat-panel[hidden] {
  display: none !important;
}

.landing-chat-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.4rem 0.55rem;
  background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
  color: #fff;
}

.landing-chat-panel__brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.landing-chat-panel__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
}

.landing-chat-panel__avatar img {
  display: block;
  width: 15px;
  height: 15px;
}

.landing-chat-panel__title {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.1;
}

.landing-chat-panel__status {
  display: none;
}

.landing-chat-panel__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.landing-chat-panel__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.landing-chat-panel__messages {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  padding: 0.35rem 0.5rem 0.3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.22rem;
  background:
    linear-gradient(180deg, #e2e8f0 0%, #f1f5f9 14%, #f8fafc 100%);
}

.landing-chat-panel__bubble {
  max-width: 92%;
  padding: 0.32rem 0.52rem;
  border-radius: 0.55rem;
  font-size: 0.78rem;
  line-height: 1.32;
  word-break: break-word;
}

.landing-chat-panel__empty {
  margin: 0;
  padding: 0.15rem 0;
  text-align: center;
  font-size: 0.65rem;
  line-height: 1.2;
  color: #64748b;
}

.landing-chat-panel__empty[hidden] {
  display: none !important;
}

.landing-chat-panel__bubble--bot {
  align-self: flex-start;
  background: #fff;
  color: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-bottom-left-radius: 0.2rem;
  white-space: pre-line;
}

.landing-chat-panel__bubble--bot.landing-chat-panel__bubble--error {
  background: #fef2f2;
  color: #991b1b;
  border-color: rgba(220, 38, 38, 0.35);
}

.landing-chat-panel__bubble--user {
  align-self: flex-end;
  background: #dcf8c6;
  color: #0f172a;
  border-bottom-right-radius: 0.2rem;
}

.landing-chat-panel__foot {
  flex-shrink: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  background: #fff;
}

.landing-chat-panel__quick-replies {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem;
  padding: 0.28rem 0.45rem 0.3rem;
  background: #fff;
}

.landing-chat-panel__quick-replies[hidden] {
  display: none !important;
}

.landing-chat-panel__quick-reply {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 1.65rem;
  margin: 0;
  padding: 0.28rem 0.3rem;
  border: 1px solid rgba(18, 140, 126, 0.55);
  border-radius: 0.35rem;
  background: #fff;
  color: #128c7e;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.landing-chat-panel__quick-reply:hover {
  background: #ecfdf5;
  border-color: #0f766e;
  color: #0f766e;
}

.landing-chat-panel__quick-reply:focus-visible {
  outline: 2px solid #128c7e;
  outline-offset: 2px;
}

.landing-chat-panel__privacy {
  padding: 0.2rem 0.5rem 0.12rem;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  color: #334155;
  text-align: center;
}

.landing-chat-panel__privacy a {
  display: inline;
  margin: 0 0 0 0.2rem;
  font-size: inherit;
  font-weight: 700;
  color: #047857;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.landing-chat-panel__privacy a:hover {
  text-decoration: underline;
}

.landing-chat-panel__status-line {
  padding: 0.2rem 0.45rem 0;
  font-size: 0.65rem;
  line-height: 1.25;
  color: #15803d;
}

.landing-chat-panel__status-line.is-error {
  color: #b91c1c;
}

.landing-chat-panel__status-line[hidden] {
  display: none !important;
}

.landing-chat-panel__composer {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.55rem 0.5rem;
  background: #fff;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.landing-chat-panel__input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 2.5rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
  line-height: 1.35;
  background: #f8fafc;
}

.landing-chat-panel__input:focus {
  outline: none;
  border-color: #25d366;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.18);
}

.landing-chat-panel__send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  font-size: 1rem;
  border: 0;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.landing-chat-panel__send:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

@media (max-width: 575.98px) {
  .landing-page {
    --landing-nav-bar-h: 4.85rem;
    --landing-floating-bottom: 0.5rem;
    --landing-floating-stack-h: 5.85rem;
    --landing-chat-width: calc(100vw - 1rem);
  }

  .landing-chat-panel {
    right: 0.5rem;
  }

  .landing-chat-panel__quick-reply {
    font-size: 0.68rem;
    min-height: 1.6rem;
  }

  .landing-chat-panel__privacy {
    font-size: 0.74rem;
  }
}

/* App Auditor — banda estilo lanzamiento (p. ej. Módulos) */
.lm-app-launch {
  position: relative;
  padding: 2.5rem 0;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(118deg, #020617 0%, #0f172a 38%, #164e63 72%, #1e1b4b 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.45);
}

/* Decoración detrás del texto (evita que WebKit/iOS pinte ::after encima del contenido) */
.lm-app-launch::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -40%;
  right: -20%;
  left: -20%;
  height: 85%;
  background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(56, 189, 248, 0.22), transparent 55%);
  pointer-events: none;
}

.lm-app-launch::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 100%);
  pointer-events: none;
}

.lm-app-launch > .container {
  position: relative;
  z-index: 1;
}

.lm-app-launch__badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.75rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fef08a;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.2), rgba(234, 179, 8, 0.08));
  border: 1px solid rgba(253, 224, 71, 0.35);
  box-shadow: 0 0 24px rgba(250, 204, 21, 0.12);
}

.lm-app-launch__title {
  position: relative;
  z-index: 1;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f8fafc;
  margin-bottom: 0.5rem;
  line-height: 1.15;
}

.lm-app-launch__lead {
  position: relative;
  z-index: 1;
  font-size: 1.02rem;
  line-height: 1.55;
  color: #94a3b8;
  max-width: 28rem;
}

.lm-app-launch__highlights {
  position: relative;
  z-index: 1;
  max-width: 28rem;
}

.lm-app-launch__highlights .lm-check-line {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  line-height: 1.4;
}

.lm-app-launch__triad .lm-app-launch__lead {
  max-width: none;
}

.lm-app-launch__col--facts {
  border-left: 1px solid rgba(148, 163, 184, 0.14);
  border-right: 1px solid rgba(148, 163, 184, 0.14);
  padding-left: clamp(0.75rem, 2vw, 1.25rem);
  padding-right: clamp(0.75rem, 2vw, 1.25rem);
}

.lm-app-launch__facts-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.lm-app-launch__modules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 0.55rem;
}

.lm-app-launch__modules li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  color: #e2e8f0;
}

.lm-app-launch__modules li i {
  flex-shrink: 0;
  font-size: 0.95rem;
  color: #38bdf8;
}

.lm-app-launch__highlights--dense .lm-check-line {
  margin-bottom: 0.28rem;
  font-size: 0.78rem;
  line-height: 1.35;
}

.lm-app-launch__triad .lm-app-launch__badge {
  margin-bottom: 0.65rem;
}

.lm-app-launch__triad .lm-app-launch__title {
  margin-bottom: 0.4rem;
}

.lm-app-launch__triad .lm-app-launch__lead {
  font-size: 0.92rem;
  line-height: 1.45;
}

.lm-app-launch__triad .lm-app-launch__highlights .lm-check-line {
  margin-bottom: 0.28rem;
}

.lm-app-launch__triad .lm-app-launch__grid {
  gap: 0.55rem;
}

.lm-app-launch__triad .lm-app-card {
  padding: 0.7rem 0.75rem;
  gap: 0.55rem;
  border-radius: 0.75rem;
}

.lm-app-launch__triad .lm-app-card__icon {
  width: 2.15rem;
  height: 2.15rem;
  font-size: 1.25rem;
  border-radius: 0.65rem;
}

.lm-app-launch__triad .lm-app-card__hint {
  display: none;
}

.lm-app-launch__triad .lm-app-card__label {
  font-size: 0.78rem;
}

.lm-app-launch__triad .lm-app-card__cta {
  font-size: 0.72rem;
}

.lm-app-launch:not(.lm-app-launch--home-teaser) .lm-app-launch__facts-kicker {
  margin-bottom: 0.35rem;
}

.lm-app-launch:not(.lm-app-launch--home-teaser) .lm-app-launch__modules {
  gap: 0.32rem 0.45rem;
  margin-bottom: 0.45rem !important;
}

.lm-app-launch:not(.lm-app-launch--home-teaser) .lm-app-launch__modules li {
  font-size: 0.68rem;
}

.lm-app-launch__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
}

@media (min-width: 576px) {
  .lm-app-launch__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.lm-app-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 1.25rem 1.2rem;
  border-radius: 1rem;
  text-decoration: none;
  color: #f1f5f9;
  /* Fondo opaco base: Safari iOS a veces “pierde” texto con solo backdrop-filter */
  background: rgba(30, 41, 59, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 16px 40px -20px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* Móvil / tablet estrecha: sin backdrop-filter (WebKit a veces deja el bloque sin pintar bien) */
@media (max-width: 991.98px) {
  .lm-app-card {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(15, 23, 42, 0.96);
  }

  .lm-app-card:active {
    background: rgba(30, 41, 59, 0.98);
  }
}

.lm-app-card:hover {
  color: #fff;
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(51, 65, 85, 0.95);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.15) inset,
    0 22px 50px -18px rgba(14, 165, 233, 0.35);
}

.lm-app-card:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 3px;
}

.lm-app-card__icon {
  flex-shrink: 0;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
}

.lm-app-card--ios .lm-app-card__icon {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(148, 163, 184, 0.08));
  color: #f8fafc;
}

.lm-app-card--android .lm-app-card__icon {
  background: linear-gradient(145deg, rgba(74, 222, 128, 0.2), rgba(22, 163, 74, 0.12));
  color: #86efac;
}

.lm-app-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: 0;
}

.lm-app-card__label {
  display: block;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.lm-app-card__hint {
  display: block;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #94a3b8;
}

.lm-app-card:hover .lm-app-card__hint {
  color: #cbd5e1;
}

.lm-app-card__cta {
  display: inline-flex;
  align-items: center;
  margin-top: 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #38bdf8;
}

.lm-app-card:hover .lm-app-card__cta {
  color: #7dd3fc;
}

/* --- SIM Auditor: mockups promocionales (UI basada en app Flutter) --- */
.lm-auditor-promo {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 1rem 0.75rem;
  padding: 0.5rem 0 0;
}

.lm-auditor-promo--compact {
  gap: 0.5rem 0.35rem;
  transform: scale(0.92);
  transform-origin: center center;
}

.lm-auditor-promo--solo {
  display: block;
}

.lm-auditor-promo--solo .lm-auditor-device--b {
  transform: none;
  margin: 0 auto;
}

.lm-auditor-promo--compact .lm-auditor-device__cap {
  display: none;
}

.lm-auditor-device {
  flex: 0 1 auto;
  text-align: center;
}

.lm-auditor-device--b {
  transform: translateY(-12px) scale(1.04);
  z-index: 2;
}

.lm-auditor-device--a {
  transform: rotate(-7deg) translateY(8px);
}

.lm-auditor-device--c {
  transform: rotate(6deg) translateY(10px);
}

.lm-auditor-device--d {
  transform: rotate(-4deg) translateY(6px);
}

.lm-auditor-device--e {
  transform: rotate(5deg) translateY(4px);
}

.lm-auditor-promo--compact .lm-auditor-device--b {
  transform: translateY(-8px) scale(1.06);
}

/* Banner 3 columnas: 3 teléfonos en fila sin wrap ni agrandar la banda */
.lm-auditor-promo--compact.lm-auditor-promo--triad {
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.08rem 0.04rem;
  transform: none;
  padding: 0;
  max-width: 100%;
}

.lm-auditor-promo--triad .lm-auditor-device {
  flex: 0 0 auto;
}

.lm-auditor-promo--triad .lm-auditor-device__shell {
  width: 108px;
  padding: 5px 4px 6px;
  border-radius: 17px;
}

.lm-auditor-promo--triad .lm-auditor-device__screen {
  height: 192px;
  border-radius: 12px;
}

.lm-auditor-promo--triad .lm-auditor-device__notch {
  height: 3px;
  margin-bottom: 4px;
}

.lm-auditor-promo--triad .lm-auditor-ui__bar {
  padding: 5px 6px 6px;
  font-size: 0.5rem;
  min-height: 28px;
  gap: 4px;
}

.lm-auditor-promo--triad .lm-auditor-ui__bar-logo {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background-size: 10px;
}

.lm-auditor-promo--triad .lm-auditor-device--a {
  transform: rotate(-5deg) translateY(3px);
}

.lm-auditor-promo--triad .lm-auditor-device--c {
  transform: rotate(4deg) translateY(4px);
}

.lm-auditor-promo--triad .lm-auditor-device--b {
  transform: translateY(-4px) scale(1.03);
}

.lm-app-launch__triad .lm-auditor-promo-hero {
  padding: 0;
  overflow: hidden;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .lm-auditor-promo--triad .lm-auditor-device__shell {
    width: 96px;
  }

  .lm-auditor-promo--triad .lm-auditor-device__screen {
    height: 172px;
  }
}

.lm-auditor-device__shell {
  width: 168px;
  padding: 8px 7px 10px;
  border-radius: 28px;
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 55%, #020617 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 24px 48px -16px rgba(0, 0, 0, 0.65),
    0 0 40px -8px rgba(37, 99, 235, 0.25);
}

.lm-auditor-promo--full .lm-auditor-device__shell {
  width: 186px;
}

.lm-auditor-device__notch {
  width: 42%;
  height: 5px;
  margin: 0 auto 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.lm-auditor-device__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 300px;
  border-radius: 20px;
  overflow: hidden;
  background: #f1f5f9;
}

.lm-auditor-promo--full .lm-auditor-device__screen {
  height: 320px;
}

.lm-auditor-ui__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px 10px;
  background: linear-gradient(135deg, #272752 0%, #2563eb 48%, #1e1b4b 100%);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.2;
  min-height: 40px;
}

.lm-auditor-ui__bar-logo {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2L2 7v10l10 5 10-5V7L12 2zm0 2.2l7.5 3.75L12 11.7 4.5 7.95 12 4.2zM4 9.05l7 3.5v7.05l-7-3.5V9.05zm9 10.55v-7.05l7-3.5v7.05l-7 3.5z'/%3E%3C/svg%3E") center/14px no-repeat;
}

.lm-auditor-ui__bar-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lm-auditor-ui__body {
  flex: 1;
  padding: 8px;
  overflow: hidden;
}

.lm-auditor-ui__body--scroll {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lm-auditor-ui__welcome {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  font-size: 0.58rem;
  text-align: left;
}

.lm-auditor-ui__welcome strong {
  font-size: 0.65rem;
  color: #272752;
}

.lm-auditor-ui__welcome span {
  color: #64748b;
}

.lm-auditor-ui__kpi {
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  color: #fff;
  font-size: 0.52rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.lm-auditor-ui__kpi-head {
  padding: 5px 8px 4px;
  font-weight: 700;
  font-size: 0.55rem;
  opacity: 0.95;
}

.lm-auditor-ui__kpi-row {
  display: flex;
  gap: 8px;
  padding: 4px 8px 7px;
  background: rgba(255, 255, 255, 0.12);
}

.lm-auditor-ui__kpi-row > div {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.lm-auditor-ui__kpi-num {
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

.lm-auditor-ui__kpi--amber {
  background: linear-gradient(135deg, #b45309, #92400e);
}

.lm-auditor-ui__kpi--blue {
  background: linear-gradient(135deg, #2563eb, #272752);
}

.lm-auditor-ui__kpi--green {
  background: linear-gradient(135deg, #16a34a, #15803d);
}

.lm-auditor-ui__badge-warn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 14px;
  height: 14px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  font-size: 0.48rem;
  font-weight: 800;
}

.lm-auditor-ui__chip-row {
  display: flex;
  gap: 4px;
}

.lm-auditor-ui__chip {
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.5rem;
  font-weight: 700;
  background: #e2e8f0;
  color: #475569;
}

.lm-auditor-ui__chip.is-active {
  background: #272752;
  color: #fff;
}

.lm-auditor-ui__list-item {
  padding: 6px 8px;
  border-radius: 9px;
  background: #fff;
  text-align: left;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.07);
}

.lm-auditor-ui__list-item.is-muted {
  opacity: 0.72;
}

.lm-auditor-ui__list-id {
  display: block;
  font-size: 0.48rem;
  font-weight: 700;
  color: #2563eb;
  letter-spacing: 0.04em;
}

.lm-auditor-ui__list-item strong {
  display: block;
  font-size: 0.58rem;
  color: #0f172a;
  line-height: 1.25;
  margin: 2px 0;
}

.lm-auditor-ui__list-meta {
  font-size: 0.48rem;
  color: #64748b;
}

.lm-auditor-ui__fab {
  position: absolute;
  right: 10px;
  bottom: 38px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-size: 0.52rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.45);
}

.lm-auditor-ui__plan {
  padding: 7px 8px;
  border-radius: 9px;
  background: #fff;
  text-align: left;
  font-size: 0.5rem;
  color: #64748b;
  margin-bottom: 2px;
}

.lm-auditor-ui__plan strong {
  display: block;
  font-size: 0.58rem;
  color: #272752;
  margin-top: 2px;
}

.lm-auditor-ui__line {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  padding: 6px 7px;
  border-radius: 9px;
  background: #fff;
  text-align: left;
  font-size: 0.5rem;
}

.lm-auditor-ui__line.is-active {
  outline: 2px solid #2563eb;
  outline-offset: -1px;
}

.lm-auditor-ui__line.is-done .lm-auditor-ui__check {
  color: #16a34a;
}

.lm-auditor-ui__check {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1;
}

.lm-auditor-ui__line strong {
  display: block;
  font-size: 0.55rem;
  color: #0f172a;
}

.lm-auditor-ui__line span {
  color: #64748b;
}

.lm-auditor-ui__search {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border-radius: 9px;
  background: #fff;
  font-size: 0.52rem;
  color: #94a3b8;
  text-align: left;
}

.lm-auditor-ui__doc {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  padding: 6px 8px;
  border-radius: 9px;
  background: #fff;
  text-align: left;
}

.lm-auditor-ui__doc i {
  font-size: 1rem;
  color: #2563eb;
  line-height: 1;
}

.lm-auditor-ui__doc strong {
  display: block;
  font-size: 0.55rem;
  color: #272752;
}

.lm-auditor-ui__doc span {
  font-size: 0.48rem;
  color: #64748b;
}

.lm-auditor-ui__norm {
  padding: 8px;
  border-radius: 9px;
  background: #fff;
  text-align: left;
  font-size: 0.5rem;
  color: #64748b;
}

.lm-auditor-ui__norm strong {
  display: block;
  font-size: 0.58rem;
  color: #272752;
  margin-bottom: 5px;
}

.lm-auditor-ui__meter {
  height: 5px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin-bottom: 4px;
}

.lm-auditor-ui__meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #16a34a, #2563eb);
}

.lm-auditor-ui__req {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border-radius: 8px;
  background: #fff;
  font-size: 0.5rem;
  text-align: left;
  color: #475569;
}

.lm-auditor-ui__req i {
  font-size: 0.7rem;
  flex-shrink: 0;
}

.lm-auditor-ui__req.is-ok i { color: #16a34a; }
.lm-auditor-ui__req.is-warn i { color: #f59e0b; }

.lm-auditor-ui__nav {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  padding: 4px 2px 5px;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid #e2e8f0;
  font-size: 0.38rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.1;
}

.lm-auditor-ui__nav span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.lm-auditor-ui__nav i {
  font-size: 0.72rem;
  line-height: 1;
}

.lm-auditor-ui__nav .is-active {
  color: #2563eb;
}

.lm-auditor-device__cap {
  margin: 0.55rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  max-width: 168px;
  line-height: 1.3;
}

.lm-auditor-promo--full .lm-auditor-device__cap {
  max-width: 186px;
}

.lm-app-launch .lm-auditor-device__cap,
.lm-section--dark .lm-auditor-device__cap {
  color: #94a3b8;
}

.lm-auditor-promo-hero {
  position: relative;
  padding: 1rem 0 0.5rem;
}

.lm-auditor-promo-hero__glow {
  position: absolute;
  inset: 10% 5% auto;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.28), transparent 70%);
  pointer-events: none;
}

@media (min-width: 992px) {
  .lm-auditor-promo--full {
    gap: 1.25rem 1rem;
  }

  .lm-auditor-promo--full .lm-auditor-device--b {
    transform: translateY(-18px) scale(1.08);
  }
}

@media (max-width: 767px) {
  .lm-auditor-promo--full .lm-auditor-device--d,
  .lm-auditor-promo--full .lm-auditor-device--e {
    display: none;
  }

  .lm-auditor-device__shell {
    width: 148px;
  }

  .lm-auditor-device__screen {
    height: 268px;
  }

  .lm-auditor-promo--compact {
    transform: scale(0.82);
  }
}

@media (max-width: 575px) {
  .lm-auditor-promo--compact .lm-auditor-device--a,
  .lm-auditor-promo--compact .lm-auditor-device--c {
    display: none;
  }

  .lm-auditor-promo--compact .lm-auditor-device--b {
    transform: none;
  }
}

/* --- Comunicaciones: hub de canales + mockups --- */
.lm-comms-band {
  position: relative;
  padding: 1.35rem 0;
  overflow: hidden;
  background: linear-gradient(118deg, #0f172a 0%, #1e293b 42%, #312e81 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lm-comms-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 80% at 78% 50%, rgba(56, 189, 248, 0.14), transparent 60%),
    radial-gradient(ellipse 40% 60% at 12% 80%, rgba(37, 99, 235, 0.12), transparent 55%);
  pointer-events: none;
}

.lm-comms-band > .container {
  position: relative;
  z-index: 1;
}

.lm-comms-band__cta {
  white-space: normal;
}

@media (min-width: 992px) {
  .lm-comms-band__cta {
    white-space: nowrap;
  }
}

.lm-comms-visual__panel {
  display: grid;
  gap: 0.65rem;
  align-items: center;
}

.lm-comms-visual--band .lm-comms-visual__panel {
  grid-template-columns: minmax(140px, 38%) 1fr;
}

.lm-comms-visual--full .lm-comms-visual__panel {
  grid-template-columns: minmax(160px, 34%) 1fr;
  gap: 0.85rem;
}

.lm-comms-hub {
  position: relative;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1;
  margin: 0 auto;
}

.lm-comms-visual--full .lm-comms-hub {
  max-width: 240px;
}

.lm-comms-hub__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  pointer-events: none;
}

.lm-comms-hub__ring--outer {
  inset: 4%;
}

.lm-comms-hub__ring--inner {
  inset: 22%;
  border-style: solid;
  border-color: rgba(96, 165, 250, 0.18);
}

.lm-comms-hub__core {
  position: absolute;
  inset: 36%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #272752, #2563eb);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08), 0 12px 28px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.lm-comms-hub__brand {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
}

.lm-comms-hub__pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(56, 189, 248, 0.35);
  animation: lm-comms-pulse 2.4s ease-out infinite;
}

@keyframes lm-comms-pulse {
  0% { transform: scale(0.92); opacity: 0.9; }
  100% { transform: scale(1.18); opacity: 0; }
}

.lm-comms-hub__channels {
  position: absolute;
  inset: 0;
}

.lm-comms-hub__ch {
  --angle: calc(var(--lm-ch-i) * 60deg - 90deg);
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 52px;
  margin: -26px 0 0 -26px;
  transform: rotate(var(--angle)) translateY(-92px) rotate(calc(-1 * var(--angle)));
  font-size: 0.52rem;
  font-weight: 700;
  color: #cbd5e1;
  line-height: 1.1;
  text-align: center;
}

.lm-comms-hub__ch img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  background: #fff;
  padding: 2px;
}

.lm-comms-visual--full .lm-comms-hub__ch img {
  width: 40px;
  height: 40px;
}

.lm-comms-mocks {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.lm-comms-mock {
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(148, 163, 184, 0.2);
  text-align: left;
  color: #0f172a;
}

.lm-comms-mock--wa {
  background: linear-gradient(180deg, #e7fce8 0%, #f8fafc 100%);
  border-color: rgba(37, 211, 102, 0.25);
}

.lm-comms-mock--event {
  background: linear-gradient(180deg, #eff6ff 0%, #fff 100%);
  border-color: rgba(66, 133, 244, 0.25);
}

.lm-comms-mock__head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.lm-comms-mock__head img {
  flex-shrink: 0;
  border-radius: 6px;
}

.lm-comms-mock__head strong {
  display: block;
  font-size: 0.68rem;
  line-height: 1.2;
}

.lm-comms-mock__head span {
  font-size: 0.58rem;
  color: #64748b;
}

.lm-comms-mock__body {
  margin: 0 0 0.4rem;
  font-size: 0.62rem;
  line-height: 1.35;
  color: #334155;
}

.lm-comms-mock__body--tight {
  margin-bottom: 0;
}

.lm-comms-mock__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.lm-comms-mock__btn {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #272752;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
}

.lm-comms-mock__cal {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #f1f5f9;
  font-size: 0.52rem;
  font-weight: 600;
  color: #475569;
}

.lm-comms-mock__cal img {
  border-radius: 4px;
}

.lm-comms-mock__bubble {
  padding: 0.45rem 0.55rem;
  border-radius: 10px 10px 10px 4px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  max-width: 92%;
}

.lm-comms-mock__bubble strong {
  display: block;
  font-size: 0.62rem;
  margin-bottom: 0.15rem;
}

.lm-comms-mock__bubble p {
  margin: 0;
  font-size: 0.58rem;
  line-height: 1.35;
  color: #334155;
}

.lm-comms-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0.65rem;
  margin-top: 0.85rem;
}

.lm-comms-tags li {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 0.72rem;
  font-weight: 600;
}

.lm-comms-tags i {
  font-size: 0.95rem;
  color: #7dd3fc;
}

.lm-comms-section__lead {
  max-width: 36rem;
}

.lm-comms-section__bullets {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lm-comms-section__bullets li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #cbd5e1;
}

.lm-comms-section__bullets i {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: #38bdf8;
}

@media (max-width: 767px) {
  .lm-comms-visual--band .lm-comms-visual__panel,
  .lm-comms-visual--full .lm-comms-visual__panel {
    grid-template-columns: 1fr;
  }

  .lm-comms-hub {
    max-width: 200px;
  }

  .lm-comms-visual--band .lm-comms-mock--wa {
    display: none;
  }

  .lm-comms-band .row {
    row-gap: 0.75rem !important;
  }
}

@media (max-width: 575px) {
  .lm-comms-hub__ch span {
    display: none;
  }

  .lm-comms-hub__ch img {
    width: 32px;
    height: 32px;
  }
}

/* --- Integraciones: ecosistema SIM4 dentro del cliente (fondo claro) --- */
.lm-int-band {
  position: relative;
  padding: 1.35rem 0;
  overflow: hidden;
  isolation: isolate;
  color: #0f172a;
  background: linear-gradient(125deg, #f8fafc 0%, #f0fdf4 38%, #ecfeff 72%, #f8fafc 100%);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.lm-int-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 52% 78% at 14% 48%, rgba(45, 212, 191, 0.14), transparent 58%),
    radial-gradient(ellipse 42% 58% at 88% 36%, rgba(99, 102, 241, 0.08), transparent 52%);
  pointer-events: none;
}

.lm-int-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(circle at center, rgba(148, 163, 184, 0.22) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.45;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  pointer-events: none;
}

.lm-int-band > .container,
.lm-int-band--page > .container {
  position: relative;
  z-index: 1;
}

.lm-int-band--home {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.lm-int-band__title {
  color: #0f172a;
}

.lm-int-band__lead {
  color: #64748b;
}

.lm-int-band__cta {
  color: #0f766e;
  border: 1px solid #2dd4bf;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.08);
}

.lm-int-band__cta:hover,
.lm-int-band__cta:focus {
  color: #fff;
  background: #0d9488;
  border-color: #0d9488;
}

.lm-int-band--page {
  padding: 2rem 0 2.25rem;
}

.lm-int-eco {
  display: grid;
  align-items: center;
  gap: 0.5rem 0.65rem;
}

.lm-int-eco--band {
  grid-template-columns: 1fr minmax(120px, 34%) minmax(100px, 28%);
}

.lm-int-eco--full {
  grid-template-columns: minmax(140px, 22%) minmax(160px, 28%) minmax(120px, 22%) minmax(140px, 24%);
  gap: 0.65rem 0.75rem;
}

.lm-int-eco__zone-label {
  display: block;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.lm-int-band .lm-int-eco__zone-label,
.lm-int-band--page .lm-int-eco__zone-label {
  color: #0f766e;
}

.lm-int-eco__nodes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.lm-int-eco--full .lm-int-eco__nodes {
  flex-direction: column;
  gap: 0.3rem;
}

.lm-int-eco__node {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.35rem 0.45rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  min-width: 58px;
  font-size: 0.52rem;
  font-weight: 700;
  color: #475569;
  text-align: center;
  line-height: 1.1;
}

.lm-int-eco__node img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: brightness(1.05);
}

.lm-int-eco__node--icon i {
  font-size: 1.25rem;
  color: #0d9488;
}

.lm-int-eco__mini-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.lm-int-eco__bridges {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  position: relative;
}

.lm-int-eco__bridges::before,
.lm-int-eco__bridges::after {
  content: none !important;
  display: none !important;
}

.lm-int-eco__bridge {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0 0.35rem;
  align-items: center;
  padding: 0.35rem 0.5rem;
  border-radius: 9px;
  background: #fff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  font-size: 0.52rem;
  color: #64748b;
  line-height: 1.2;
  min-width: 0;
  overflow-wrap: anywhere;
}

.lm-int-eco__bridge i {
  grid-row: 1 / span 2;
  font-size: 1rem;
  margin-right: 0.15rem;
}

.lm-int-eco__bridge strong {
  font-size: 0.58rem;
  color: #0f172a;
}

.lm-int-eco__bridge--rest i { color: #818cf8; }
.lm-int-eco__bridge--conn i { color: #22d3ee; }
.lm-int-eco__bridge--hook i { color: #a78bfa; }
.lm-int-eco__bridge--mobile i { color: #34d399; }

.lm-int-eco__core {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}

.lm-int-eco__core-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.75rem 0.85rem;
  border-radius: 16px;
  background: linear-gradient(145deg, #272752 0%, #2563eb 55%, #1e1b4b 100%);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08), 0 16px 36px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.lm-int-eco--full .lm-int-eco__core-inner {
  padding: 1rem 1.1rem;
}

.lm-int-eco__core-brand {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fff;
}

.lm-int-eco__core-sub {
  font-size: 0.52rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.lm-int-eco__core-modules {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.25rem !important;
}

.lm-int-eco__core-modules i {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

.lm-int-eco__pulse {
  position: absolute;
  inset: 8%;
  border-radius: 20px;
  border: 2px solid rgba(99, 102, 241, 0.35);
  animation: lm-comms-pulse 2.8s ease-out infinite;
  z-index: 1;
}

.lm-int-eco__flows {
  padding-left: 0.25rem;
}

.lm-int-eco__flow-list li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0;
  font-size: 0.62rem;
  font-weight: 600;
  color: #475569;
  line-height: 1.25;
}

.lm-int-eco__flow-list i {
  flex-shrink: 0;
  font-size: 0.95rem;
  color: #0d9488;
}

.lm-int-section__lead {
  max-width: 38rem;
}

.lm-int-section__bullets {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lm-int-section__bullets li {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  font-size: 0.86rem;
  line-height: 1.38;
  color: #475569;
}

.lm-int-section__bullets i {
  flex-shrink: 0;
  margin-top: 0.08rem;
  color: #0d9488;
}

.lm-int-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
  margin-top: 1rem;
}

.lm-int-card {
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.lm-int-card__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  min-height: 32px;
}

.lm-int-card__head img {
  max-height: 26px;
  width: auto;
  object-fit: contain;
}

.lm-int-card__head .lm-integration-brand__logos {
  gap: 0.25rem;
}

.lm-int-card .lm-integration-brand__icon {
  background: #ecfdf5;
  color: #0d9488;
}

.lm-int-card__title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.2rem;
}

.lm-int-card__data {
  font-size: 0.68rem;
  font-weight: 600;
  color: #0369a1;
  margin: 0 0 0.25rem;
}

.lm-int-card__how {
  font-size: 0.62rem;
  line-height: 1.35;
  color: #64748b;
  margin: 0;
}

.lm-int-card--wide {
  grid-column: 1 / -1;
}

@media (max-width: 991px) {
  .lm-int-eco--full {
    grid-template-columns: 1fr 1fr;
  }

  .lm-int-eco--full .lm-int-eco__flows {
    grid-column: 1 / -1;
  }

  .lm-int-eco--band {
    grid-template-columns: 1fr;
  }

  .lm-int-eco__bridges::before,
  .lm-int-eco__bridges::after {
    display: none;
  }
}

@media (max-width: 575px) {
  .lm-int-cards {
    grid-template-columns: 1fr;
  }

  .lm-int-eco--full {
    grid-template-columns: 1fr;
  }
}

/* --- Beneficios / Experiencia (páginas públicas) --- */
.lm-section--soft {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.lm-benefit-stats,
.lm-exp-stats {
  padding: 1.15rem 0;
  background: #fff;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.lm-stat--exp .lm-stat__num {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0369a1;
}

.lm-benefit-grid {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .lm-benefit-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.lm-benefit-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.75rem;
  padding: 0.75rem 0.65rem 0.65rem;
  box-shadow: 0 6px 20px -14px rgba(15, 23, 42, 0.18);
  height: 100%;
}

.lm-benefit-card__num {
  position: absolute;
  top: 0.45rem;
  right: 0.5rem;
  font-family: ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 700;
  color: #94a3b8;
}

.lm-benefit-card__icon {
  display: block;
  font-size: 1.35rem;
  color: #0284c7;
  margin-bottom: 0.35rem;
}

.lm-benefit-card p {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  color: #334155;
  padding-right: 1.25rem;
}

.lm-cap-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 576px) {
  .lm-cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .lm-cap-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.lm-cap-card {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.85rem;
  padding: 1.1rem 1rem;
  height: 100%;
  box-shadow: 0 10px 28px -18px rgba(15, 23, 42, 0.15);
}

.lm-cap-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.55rem;
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
}

.lm-cap-card__icon--comms { background: #e0f2fe; color: #0284c7; }
.lm-cap-card__icon--int { background: #d1fae5; color: #0f766e; }
.lm-cap-card__icon--app { background: #ede9fe; color: #6d28d9; }
.lm-cap-card__icon--mpi { background: #fef3c7; color: #b45309; }
.lm-cap-card__icon--multi { background: #f1f5f9; color: #475569; }
.lm-cap-card__icon--ai { background: #fce7f3; color: #be185d; }

.lm-cap-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: #0f172a;
}

.lm-cap-card p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #64748b;
}

.lm-gallery--ben-strip {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 992px) {
  .lm-gallery--ben-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.lm-concept-grid {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 576px) {
  .lm-concept-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.lm-concept-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.75rem;
  padding: 0.85rem 0.85rem 0.75rem;
  box-shadow: 0 6px 20px -14px rgba(15, 23, 42, 0.12);
}

.lm-concept-card__num {
  position: absolute;
  top: 0.5rem;
  right: 0.55rem;
  font-family: ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 700;
  color: #94a3b8;
}

.lm-concept-card__icon {
  font-size: 1.25rem;
  color: #0ea5e9;
  margin-bottom: 0.35rem;
}

.lm-concept-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #0369a1;
}

.lm-concept-card p {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.45;
}

.lm-app-launch--compact {
  padding: 2rem 0;
}

.lm-auditor-promo-hero--benefit,
.lm-auditor-promo-hero--exp {
  position: relative;
}

.lm-auditor-promo-hero--exp {
  display: flex;
  justify-content: center;
}

.lm-video-shell--sticky .lm-yt-facade,
.col-sm-6.p-0 .lm-yt-facade {
  min-height: 280px;
}

.lm-video-shell--sticky {
  position: sticky;
  top: 1rem;
}

.lm-check-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lm-check-lines li {
  position: relative;
  padding: 0.28rem 0 0.28rem 1.35rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #475569;
}

.lm-check-lines li::before {
  content: "\F0134";
  font-family: "Material Design Icons";
  position: absolute;
  left: 0;
  top: 0.32rem;
  font-size: 0.95rem;
  color: #0284c7;
}

.lm-app-launch .lm-check-lines li {
  color: #94a3b8;
}

.lm-app-launch .lm-check-lines li::before {
  color: #38bdf8;
}

.lm-check-lines--light li {
  color: #475569;
}

.lm-check-lines--light li::before {
  color: #0d9488;
}

.lm-exp-timeline {
  border-left: 2px solid #e2e8f0;
  padding-left: 0.25rem;
}

.lm-exp-timeline__item {
  position: relative;
  padding: 0 0 1.15rem 1.35rem;
}

.lm-exp-timeline__item::before {
  content: "";
  position: absolute;
  left: -0.44rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0ea5e9;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(14, 165, 233, 0.35);
}

.lm-exp-timeline__item:last-child {
  padding-bottom: 0;
}

.lm-exp-timeline__year {
  display: inline-block;
  font-family: ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0284c7;
  background: #e0f2fe;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  margin-bottom: 0.35rem;
}

.lm-exp-timeline__item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0369a1;
  margin-bottom: 0.25rem;
}

.lm-exp-timeline__item p {
  margin: 0;
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.5;
}

.lm-page-experience .lm-exp-stats {
  padding: 0.35rem 0 0;
}

.lm-page-experience .lm-exp-stats .lm-stat {
  padding: 0.25rem 0.15rem;
}

.lm-page-experience .lm-exp-stats .lm-stat--exp .lm-stat__num {
  font-size: 1.05rem;
}

.lm-page-experience .lm-exp-stats .lm-stat__num .mdi {
  font-size: 1.05rem;
}

.lm-page-experience .lm-exp-stats .lm-stat__label {
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  margin-top: 0.12rem;
  line-height: 1.2;
}

.lm-page-experience .lm-section {
  padding-top: 1.15rem;
  padding-bottom: 1.15rem;
}

.lm-page-experience .lm-section--track-compact {
  padding-top: 0;
  padding-bottom: 1rem;
}

.lm-page-experience .lm-section--track-compact .lm-exp-track-row > [class*="col-"] {
  margin-top: 0;
}

.lm-page-experience .lm-section--track-compact .lm-exp-track-title {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  margin-bottom: 0.65rem;
  line-height: 1.2;
}

.lm-page-experience .lm-section--track-compact .lm-video-shell--sticky {
  margin-top: 0;
}

.lm-page-experience .lm-section--track-compact .lm-exp-timeline--compact {
  margin-top: 0;
}

.lm-page-experience .lm-section--track-compact .lm-section-lead {
  font-size: 0.82rem;
  line-height: 1.35;
}

.lm-exp-timeline--compact {
  margin-top: 0.65rem;
}

.lm-page-experience .lm-exp-timeline--compact {
  margin-top: 0.25rem;
}

.lm-exp-timeline--compact .lm-exp-timeline__item {
  padding: 0 0 0.45rem 1rem;
}

.lm-exp-timeline--compact .lm-exp-timeline__item:last-child {
  padding-bottom: 0;
}

.lm-exp-timeline--compact .lm-exp-timeline__year {
  font-size: 0.58rem;
  padding: 0.06rem 0.32rem;
  margin-bottom: 0.12rem;
}

.lm-exp-timeline--compact .lm-exp-timeline__item h3 {
  font-size: 0.8rem;
  margin-bottom: 0.08rem;
  line-height: 1.2;
}

.lm-exp-timeline--compact .lm-exp-timeline__item p {
  font-size: 0.7rem;
  line-height: 1.32;
}

@media (min-width: 768px) {
  .lm-exp-timeline--compact.lm-exp-timeline--live {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
    row-gap: 0.15rem;
    padding-left: 1rem;
    border-left-width: 2px;
  }

  .lm-exp-timeline--compact .lm-exp-timeline__item {
    padding: 0 0 0.35rem 0.85rem;
  }

  .lm-exp-timeline--compact .lm-exp-timeline__item::before {
    width: 8px;
    height: 8px;
    left: -0.38rem;
    top: 0.28rem;
  }
}

.lm-pillars--exp {
  grid-template-columns: 1fr;
}

@media (min-width: 576px) {
  .lm-pillars--exp {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .lm-pillars--exp {
    grid-template-columns: repeat(3, 1fr);
  }
}

.lm-milestones {
  display: grid;
  gap: 0.55rem;
}

.lm-milestone {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.lm-milestone__when {
  flex-shrink: 0;
  min-width: 2.75rem;
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  color: #7dd3fc;
  text-align: center;
}

.lm-milestone p {
  margin: 0;
  font-size: 0.84rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.lm-exp-showcase {
  position: relative;
  min-height: 280px;
}

.lm-exp-showcase__main {
  margin: 0;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.55);
}

.lm-exp-showcase__main img {
  width: 100%;
  height: auto;
  display: block;
}

.lm-exp-showcase__side {
  position: absolute;
  width: 38%;
  margin: 0;
  border-radius: 0.65rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.5);
}

.lm-exp-showcase__side img {
  width: 100%;
  height: auto;
  display: block;
}

.lm-exp-showcase__side:first-of-type {
  right: -2%;
  bottom: -4%;
}

.lm-exp-showcase__side--2 {
  right: 8%;
  top: -6%;
  width: 32%;
  opacity: 0.92;
}

@media (max-width: 991px) {
  .lm-exp-showcase__side {
    display: none;
  }

  .lm-video-shell--sticky {
    position: static;
  }
}

/* --- Identidad visual por página + motion --- */
@keyframes lm-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes lm-float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes lm-pulse-ring {
  0% { transform: scale(1); opacity: 0.45; }
  100% { transform: scale(1.12); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .lm-animate-rise,
  .lm-auditor-tour__step,
  .lm-mobile-head-preview .lm-auditor-device,
  .lm-comms-hub__pulse,
  .lm-int-eco__pulse {
    animation: none !important;
  }
}

.lm-page-head--mobile {
  background: linear-gradient(155deg, #0f172a 0%, #1e1b4b 45%, #4338ca 100%);
  padding-bottom: 0;
}

.landing-page--mobile .lm-page-head--mobile .lm-page-head__inner {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.landing-page--mobile .lm-page-head--mobile .lm-kicker {
  margin-bottom: 0.08rem;
  font-size: 0.66rem;
}

.landing-page--mobile .lm-page-head--mobile h1.text-white {
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  margin-bottom: 0.1rem;
}

.landing-page--mobile .lm-page-head--mobile .lm-page-head__lead {
  font-size: 0.76rem;
  line-height: 1.32;
  max-width: 28rem;
}

.landing-page--mobile .lm-page-head-cta--app-left {
  justify-content: flex-start;
  margin-top: 0.4rem;
}

.landing-page--mobile .lm-app-launch__grid--mobile-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  max-width: 22rem;
  width: 100%;
}

.landing-page--mobile .lm-page-head-cta--app-left .lm-app-card {
  padding: 0.7rem 0.85rem;
  gap: 0.6rem;
  border-radius: 0.65rem;
}

.landing-page--mobile .lm-page-head-cta--app-left .lm-app-card__icon {
  width: 2.85rem;
  height: 2.85rem;
  font-size: 1.75rem;
  border-radius: 0.65rem;
}

.landing-page--mobile .lm-page-head-cta--app-left .lm-app-card__label {
  font-size: 0.9rem;
  line-height: 1.2;
}

.landing-page--mobile .lm-page-head-cta--app-left .lm-app-card__cta {
  font-size: 0.72rem;
  margin-top: 0.3rem;
}

.lm-page-head--mobile::before {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15), transparent 45%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px;
}

.landing-page--benefit .lm-page-head { background: linear-gradient(155deg, #064e3b 0%, #0f172a 55%, #134e4a 100%); }
.landing-page--experience .lm-page-head { background: linear-gradient(155deg, #0c4a6e 0%, #0f172a 50%, #1e3a8a 100%); }

.lm-page-experience .lm-section--cta-compact {
  padding-top: 1rem;
  padding-bottom: 1.25rem;
}

.lm-section--alliance-compact {
  background: #f8fafc;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.lm-alliance-card {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.lm-alliance-logo-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.lm-page-experience .lm-section--alliance-compact .lm-alliance-layout {
  --bs-gutter-x: 0.85rem;
}

@media (min-width: 992px) {
  .lm-page-experience .lm-section--alliance-compact .lm-alliance-logo-col {
    display: flex;
    align-items: flex-start;
    align-self: stretch;
    padding-right: 0.35rem;
  }

  .lm-page-experience .lm-section--alliance-compact .lm-alliance-copy-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;
    min-height: 100%;
    padding-left: 0.35rem;
  }
}

.lm-page-experience .lm-section--alliance-compact .lm-alliance-logo-link {
  display: block;
  width: 10rem;
  max-width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.lm-page-experience .lm-section--alliance-compact .lm-alliance-logo-link img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  object-position: left top;
}

.lm-page-experience .lm-section--alliance-compact .lm-alliance-copy-col .lm-alliance-head,
.lm-page-experience .lm-section--alliance-compact .lm-alliance-copy-col .lm-alliance-lead,
.lm-page-experience .lm-section--alliance-compact .lm-alliance-copy-col .lm-alliance-points,
.lm-page-experience .lm-section--alliance-compact .lm-alliance-copy-col .lm-alliance-note {
  margin: 0;
}

.lm-page-experience .lm-section--alliance-compact .lm-alliance-copy-col .lm-alliance-lead,
.lm-page-experience .lm-section--alliance-compact .lm-alliance-copy-col .lm-alliance-points {
  flex: 0 0 auto;
}

.lm-page-experience .lm-section--alliance-compact .lm-alliance-copy-col .lm-alliance-points {
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
}

.lm-page-experience .lm-section--alliance-compact .lm-alliance-lead,
.lm-page-experience .lm-section--alliance-compact .lm-alliance-points,
.lm-page-experience .lm-section--alliance-compact .lm-alliance-note {
  font-size: 0.88rem;
  line-height: 1.45;
}

.lm-page-experience .lm-section--alliance-compact .lm-alliance-head {
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #0f172a;
}

.lm-page-experience .lm-section--alliance-compact .lm-alliance-lead,
.lm-page-experience .lm-section--alliance-compact .lm-alliance-note {
  color: #64748b;
}

.lm-page-experience .lm-section--alliance-compact .lm-alliance-points {
  gap: 0.25rem 1rem;
  color: #334155;
}

@media (max-width: 991.98px) {
  .lm-page-experience .lm-section--alliance-compact .lm-alliance-logo-link {
    display: block;
    min-height: 0;
  }

  .lm-page-experience .lm-section--alliance-compact .lm-alliance-logo-link img {
    height: auto;
    object-fit: initial;
  }
}

.lm-alliance-head {
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin-bottom: 0;
}

.lm-alliance-logo-link {
  display: block;
  width: 100%;
  max-width: 18rem;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  transition: opacity 0.2s ease;
}

.lm-alliance-logo-link:hover {
  opacity: 0.88;
}

.lm-alliance-logo-link img {
  display: block;
  width: 100%;
  max-width: 18rem;
  height: auto;
}

.lm-alliance-site {
  color: #64748b;
  text-decoration: none;
  font-size: 0.68rem;
  line-height: 1.2;
}

.lm-alliance-site:hover {
  color: #0369a1;
}

.lm-alliance-kicker {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.lm-alliance-title {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
}

.lm-alliance-lead {
  font-size: 0.76rem;
  line-height: 1.45;
  color: #64748b;
}

.lm-alliance-points {
  display: grid;
  gap: 0.2rem 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  font-size: 0.72rem;
  line-height: 1.35;
  color: #334155;
}

.lm-alliance-points li {
  position: relative;
  padding-left: 0.85rem;
}

.lm-alliance-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: #b91c1c;
}

.lm-alliance-note {
  font-size: 0.68rem;
  line-height: 1.4;
  color: #64748b;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

@media (max-width: 575.98px) {
  .lm-alliance-points {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 992px) {
  .landing-page--experience .lm-page-head__lead--single-line {
    white-space: nowrap;
  }
}
.landing-page--modules .lm-page-head { background: linear-gradient(155deg, #312e81 0%, #0f172a 55%, #4338ca 100%); }
.landing-page--contact .lm-page-head { background: linear-gradient(155deg, #1e293b 0%, #0f172a 50%, #334155 100%); }
.landing-page--sgi .lm-page-head { background: linear-gradient(155deg, #1e3a8a 0%, #0f172a 52%, #4338ca 100%); }
.landing-page--complaint .lm-page-head { background: linear-gradient(155deg, #0369a1 0%, #0f172a 52%, #0c4a6e 100%); }
.landing-page--compliance .lm-page-head { background: linear-gradient(155deg, #272752 0%, #0f172a 52%, #464de4 100%); }
.landing-page--mpi .lm-page-head { background: linear-gradient(155deg, #065f46 0%, #0f172a 52%, #047857 100%); }
.landing-page--mobile .lm-page-head { background: linear-gradient(155deg, #0f172a 0%, #1e1b4b 45%, #4338ca 100%); }

.lm-page-home .lm-stat { animation: lm-rise 0.55s ease both; }
.lm-page-home .lm-stat:nth-child(1) { animation-delay: 0.05s; }

/* Home: bloque plataforma + App Auditor más compactos */
.lm-page-home .lm-section--intro-platform {
  padding-top: 1.5rem;
  padding-bottom: 1.25rem;
}

.lm-page-home .lm-section--intro-platform .lm-section-title {
  font-size: clamp(1.05rem, 1.85vw, 1.4rem);
  margin-bottom: 0.25rem;
}

.lm-page-home .lm-section--intro-platform .lm-section-lead {
  font-size: 0.94rem;
  line-height: 1.45;
}

.lm-page-home .lm-section--intro-platform .lm-badge-row {
  margin-top: 0.6rem;
}

.lm-page-home .lm-app-launch--home-teaser {
  padding: 1.35rem 0;
}

.lm-page-home .lm-app-launch--home-teaser .lm-app-launch__badge {
  margin-bottom: 0.45rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.62rem;
}

.lm-page-home .lm-app-launch--home-teaser .lm-app-launch__title {
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  margin-bottom: 0.35rem;
}

.lm-page-home .lm-app-launch--home-teaser .lm-app-launch__lead {
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: 24rem;
}

.lm-page-home .lm-app-launch--home-teaser .lm-auditor-promo-hero {
  padding: 0;
}

.lm-page-home .lm-app-launch--home-teaser .lm-auditor-promo--compact:not(.lm-auditor-promo--triad) {
  transform: scale(0.76);
  transform-origin: center center;
}

.lm-page-home .lm-app-launch--home-teaser .lm-app-launch__triad .lm-app-launch__badge {
  margin-bottom: 0.45rem;
}

.lm-page-home .lm-app-launch--home-teaser .lm-app-launch__triad .lm-app-launch__title {
  margin-bottom: 0.35rem;
}

.lm-page-home .lm-app-launch--home-teaser .lm-app-launch__triad .lm-app-launch__lead {
  font-size: 0.9rem;
  max-width: none;
}

.lm-page-home .lm-app-launch--home-teaser .lm-app-launch__col--facts {
  padding-top: 0;
  padding-bottom: 0;
}

.lm-page-home .lm-app-launch--home-teaser .lm-app-launch__facts-kicker {
  margin-bottom: 0.35rem;
  font-size: 0.6rem;
}

.lm-page-home .lm-app-launch--home-teaser .lm-app-launch__modules {
  gap: 0.28rem 0.4rem;
  margin-bottom: 0 !important;
}

.lm-page-home .lm-app-launch--home-teaser .lm-app-launch__modules li {
  font-size: 0.66rem;
}

@media (max-width: 991.98px) {
  .lm-app-launch__col--facts {
    border-left: 0;
    border-right: 0;
    padding-left: 0;
    padding-right: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }

  .lm-page-home .lm-app-launch--home-teaser .lm-app-launch__col--facts {
    border-top: 0;
    border-bottom: 0;
    padding-top: 0;
    padding-bottom: 0.5rem;
  }
}

.lm-app-launch__grid--hero {
  max-width: 28rem;
}

.lm-app-launch__grid--hero .lm-app-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #f8fafc;
}

.lm-mobile-head-preview {
  display: flex;
  justify-content: center;
  animation: lm-float-soft 5s ease-in-out infinite;
}

.lm-mobile-head-preview .lm-auditor-promo--solo {
  transform: scale(1.05);
}

/* App móvil (/mobile/): mockups de teléfono más compactos */
.landing-page--mobile .lm-mobile-head-preview {
  justify-content: flex-end;
  align-items: center;
  animation: none;
  margin: 0;
  padding-right: 0.25rem;
}

.landing-page--mobile .lm-mobile-head-preview .lm-auditor-promo--solo {
  transform: scale(0.62) rotate(-14deg);
  transform-origin: 85% 55%;
}

.landing-page--mobile .lm-auditor-device--b,
.landing-page--mobile .lm-auditor-device--a,
.landing-page--mobile .lm-auditor-device--c,
.landing-page--mobile .lm-auditor-device--d,
.landing-page--mobile .lm-auditor-device--e,
.landing-page--mobile .lm-auditor-device--tour {
  transform: none;
}

.landing-page--mobile .lm-page-head--mobile .lm-auditor-device__shell {
  width: 108px;
  padding: 5px 4px 7px;
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 16px 32px -14px rgba(0, 0, 0, 0.55),
    0 0 28px -8px rgba(37, 99, 235, 0.2);
}

.landing-page--mobile .lm-page-head--mobile .lm-auditor-device__screen {
  height: 186px;
  border-radius: 14px;
}

.landing-page--mobile .lm-auditor-device--tour .lm-auditor-device__shell {
  width: 118px;
  padding: 5px 4px 7px;
  border-radius: 18px;
}

.landing-page--mobile .lm-auditor-device--tour .lm-auditor-device__screen {
  min-height: 198px;
  height: 198px;
  border-radius: 13px;
}

.landing-page--mobile .lm-auditor-device__cap {
  font-size: 0.64rem;
  margin-top: 0.3rem;
}

.lm-mobile-tour-section {
  padding: 1.15rem 0 1.35rem;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 40%, #f1f5f9 100%);
}

.landing-page--mobile .lm-mobile-tour-section {
  padding-top: 1rem;
  padding-bottom: 1.15rem;
}

.landing-page--mobile .lm-auditor-tour {
  gap: 0.85rem;
  max-width: 820px;
}

.landing-page--mobile .lm-auditor-tour__step {
  gap: 0.55rem 1.15rem;
}

.landing-page--mobile .lm-auditor-tour__visual {
  min-height: 150px;
}

.landing-page--mobile .lm-auditor-tour__visual .lm-auditor-device--tour {
  transform: scale(0.88) rotate(-11deg);
  transform-origin: center center;
}

.landing-page--mobile .lm-auditor-tour__step--reverse .lm-auditor-tour__visual .lm-auditor-device--tour {
  transform: scale(0.88) rotate(11deg);
}

.landing-page--mobile .lm-auditor-device--tour {
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.12));
}

.landing-page--mobile .lm-auditor-tour__arrow svg {
  width: 56px;
  height: 18px;
}

.landing-page--mobile .lm-auditor-tour__callout {
  padding: 0.7rem 0.8rem;
  border-radius: 0.65rem;
}

.landing-page--mobile .lm-auditor-tour__callout::before {
  height: 2px;
  border-radius: 0.65rem 0.65rem 0 0;
}

.landing-page--mobile .lm-auditor-tour__badge {
  min-width: 1.65rem;
  margin-bottom: 0.3rem;
  padding: 0.1rem 0.4rem;
  font-size: 0.6rem;
}

.landing-page--mobile .lm-auditor-tour__callout h3 {
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
  line-height: 1.25;
}

.landing-page--mobile .lm-auditor-tour__callout p {
  font-size: 0.78rem;
  line-height: 1.42;
}

.landing-page--mobile .lm-auditor-ui__bar {
  font-size: 0.5rem;
  min-height: 28px;
  padding: 5px 6px 6px;
}

.landing-page--mobile .lm-auditor-ui__bar-logo {
  width: 15px;
  height: 15px;
  background-size: 9px;
}

.lm-mobile-stats {
  padding: 1rem 0;
  background: #fff;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.lm-auditor-tour {
  display: grid;
  gap: 2.5rem;
  max-width: 920px;
  margin: 0 auto;
}

.lm-auditor-tour__step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 2rem;
  align-items: center;
  animation: lm-rise 0.65s ease both;
  animation-delay: calc(var(--tour-i, 0) * 0.1s);
}

.lm-auditor-tour__step--reverse .lm-auditor-tour__visual { order: 2; }
.lm-auditor-tour__step--reverse .lm-auditor-tour__callout { order: 1; text-align: right; }
.lm-auditor-tour__step--reverse .lm-auditor-tour__callout .lm-auditor-tour__badge { margin-left: auto; }

.lm-auditor-tour__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.lm-auditor-tour__step--reverse .lm-auditor-tour__visual { justify-content: flex-end; }
.lm-auditor-tour__step:not(.lm-auditor-tour__step--reverse) .lm-auditor-tour__visual { justify-content: flex-start; }

.lm-auditor-device--tour {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 24px 40px rgba(15, 23, 42, 0.18));
}

.lm-auditor-device--tour .lm-auditor-device__shell {
  width: 200px;
}

.lm-auditor-device--tour .lm-auditor-device__screen {
  min-height: 360px;
}

.lm-auditor-tour__arrow {
  position: absolute;
  z-index: 1;
  color: #6366f1;
  opacity: 0.75;
}

.lm-auditor-tour__arrow--to-right {
  right: -0.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lm-auditor-tour__arrow--to-left {
  left: -0.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lm-auditor-tour__step--reverse .lm-auditor-tour__arrow--to-right { right: auto; left: -0.5rem; transform: translateY(-50%) scaleX(-1); }
.lm-auditor-tour__step:not(.lm-auditor-tour__step--reverse) .lm-auditor-tour__arrow--to-left { left: auto; right: -0.5rem; transform: translateY(-50%) scaleX(-1); }

.lm-auditor-tour__callout {
  position: relative;
  padding: 1.15rem 1.25rem;
  border-radius: 0.85rem;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 16px 40px -20px rgba(15, 23, 42, 0.2);
}

.lm-auditor-tour__callout::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 0.85rem 0.85rem 0 0;
  background: linear-gradient(90deg, #6366f1, #0ea5e9);
}

.lm-auditor-tour__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.15rem 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: 999px;
  font-family: ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #4338ca;
  background: #eef2ff;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.lm-auditor-tour__callout h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.4rem;
}

.lm-auditor-tour__callout p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #64748b;
}

.lm-mobile-bento {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .lm-mobile-bento { grid-template-columns: repeat(3, 1fr); }
}

.lm-mobile-bento__cell {
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(148, 163, 184, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.lm-mobile-bento__cell:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.35);
}

.lm-mobile-bento__cell i {
  font-size: 1.35rem;
  color: #7dd3fc;
  margin-bottom: 0.35rem;
}

.lm-mobile-bento__cell h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.25rem;
}

.lm-mobile-bento__cell p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #94a3b8;
}

.lm-page-solution .lm-section:first-of-type {
  animation: lm-rise 0.5s ease both;
}

.lm-page-modules .lm-module-link {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lm-page-modules .lm-module-link:hover {
  transform: translateX(4px);
}

.landing-page--benefit .lm-benefit-card {
  animation: lm-rise 0.45s ease both;
  animation-delay: calc(var(--ben-i, 0) * 0.03s);
}

.lm-comms-hub__pulse {
  animation: lm-pulse-ring 2.4s ease-out infinite;
}

@media (max-width: 767px) {
  .lm-auditor-tour__step,
  .lm-auditor-tour__step--reverse {
    grid-template-columns: 1fr;
  }

  .lm-auditor-tour__step--reverse .lm-auditor-tour__visual,
  .lm-auditor-tour__step--reverse .lm-auditor-tour__callout {
    order: unset;
    text-align: left;
  }

  .lm-auditor-tour__step--reverse .lm-auditor-tour__callout .lm-auditor-tour__badge {
    margin-left: 0;
  }

  .lm-auditor-tour__arrow { display: none; }

  .lm-auditor-tour__visual {
    min-height: auto;
    justify-content: center !important;
  }

  .lm-auditor-device--tour .lm-auditor-device__shell {
    width: min(200px, 72vw);
  }

  .landing-page--mobile .lm-auditor-device--tour .lm-auditor-device__shell {
    width: min(112px, 52vw);
  }

  .landing-page--mobile .lm-auditor-device--tour .lm-auditor-device__screen {
    min-height: 188px;
    height: 188px;
  }

  .landing-page--mobile .lm-auditor-tour__visual {
    min-height: auto;
  }

  .landing-page--mobile .lm-auditor-tour__visual .lm-auditor-device--tour {
    transform: scale(0.82) rotate(-9deg);
  }

  .landing-page--mobile .lm-auditor-tour__step--reverse .lm-auditor-tour__visual .lm-auditor-device--tour {
    transform: scale(0.82) rotate(9deg);
  }
}

/* ===== Integraciones animadas + AWS trust + motion global ===== */
@keyframes lm-dash-flow {
  to { stroke-dashoffset: -24; }
}

@keyframes lm-lane-scroll {
  to { background-position: 24px 0; }
}

@keyframes lm-packet-run {
  0% { left: 0; opacity: 0; transform: scale(0.6); }
  8% { opacity: 1; transform: scale(1); }
  92% { opacity: 1; }
  100% { left: calc(100% - 10px); opacity: 0; transform: scale(0.6); }
}

@keyframes lm-packet-run-rev {
  0% { left: calc(100% - 10px); opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { left: 0; opacity: 0; }
}

@keyframes lm-arrow-breathe {
  0%, 100% { opacity: 0.35; transform: translateY(-50%) scale(0.92); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.08); }
}

@keyframes lm-node-glow {
  0%, 100% { box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05); }
  50% { box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.35), 0 8px 20px rgba(13, 148, 136, 0.15); }
}

@keyframes lm-core-glow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08), 0 16px 36px rgba(0, 0, 0, 0.4); }
  50% { box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.45), 0 0 32px rgba(99, 102, 241, 0.35), 0 16px 36px rgba(0, 0, 0, 0.4); }
}

@keyframes lm-flow-dot {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes lm-hub-spin {
  to { transform: rotate(360deg); }
}

@keyframes lm-ch-float {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, calc(-50% - 4px)) scale(1.04); }
}

@keyframes lm-trust-ring {
  0% { transform: scale(0.85); opacity: 0.55; }
  100% { transform: scale(1.15); opacity: 0; }
}

@keyframes lm-trust-beam {
  to { stroke-dashoffset: -40; }
}

@keyframes lm-trust-dot-travel {
  0% { offset-distance: 0%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

@keyframes lm-stat-glow {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25); }
}

.lm-int-eco-wrap {
  position: relative;
  min-height: 140px;
}

.lm-int-eco-wrap--live {
  overflow: visible;
}

.lm-int-eco-wrap--live .lm-int-eco {
  position: relative;
  z-index: 2;
}

.lm-int-eco__anim {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: visible;
}

.lm-int-lane {
  position: absolute;
  height: 4px;
  border-radius: 999px;
  overflow: visible;
  background: repeating-linear-gradient(90deg, #0d9488 0, #0d9488 10px, transparent 10px, transparent 20px);
  background-size: 20px 4px;
  animation: lm-lane-scroll 0.55s linear infinite;
  filter: drop-shadow(0 0 4px rgba(20, 184, 166, 0.45));
}

.lm-int-lane--in-a { top: 32%; left: 24%; width: 26%; }
.lm-int-lane--in-b { top: 58%; left: 24%; width: 26%; animation-delay: 0.2s; }
.lm-int-lane--out-a { top: 45%; right: 24%; width: 26%; animation-direction: reverse; background: repeating-linear-gradient(90deg, #f59e0b 0, #f59e0b 8px, transparent 8px, transparent 16px); background-size: 16px 3px; }
.lm-int-lane--out-b { top: 68%; right: 24%; width: 22%; animation-direction: reverse; animation-delay: 0.35s; }

.lm-int-packet {
  position: absolute;
  top: -5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: lm-packet-run 1.8s ease-in-out infinite;
}

.lm-int-packet--teal { background: #14b8a6; box-shadow: 0 0 10px rgba(20, 184, 166, 0.9); }
.lm-int-packet--indigo { background: #6366f1; box-shadow: 0 0 10px rgba(99, 102, 241, 0.9); }
.lm-int-packet--violet { background: #8b5cf6; box-shadow: 0 0 10px rgba(139, 92, 246, 0.85); }
.lm-int-packet--amber { background: #f59e0b; box-shadow: 0 0 10px rgba(245, 158, 11, 0.9); }
.lm-int-packet--delay { animation-delay: 0.9s; }
.lm-int-packet--reverse { animation-name: lm-packet-run-rev; }

.lm-int-arrow {
  position: absolute;
  top: 50%;
  font-size: 1.5rem;
  color: #6366f1;
  text-shadow: 0 0 8px rgba(99, 102, 241, 0.6);
  animation: lm-arrow-breathe 1.4s ease-in-out infinite;
}

.lm-int-arrow--in { left: 48%; }
.lm-int-arrow--out { right: 48%; color: #f59e0b; animation-delay: 0.6s; }

.lm-int-eco__node--live {
  animation: lm-node-glow 2.8s ease-in-out infinite;
  animation-delay: calc(var(--node-i, 0) * 0.15s);
}

.lm-int-eco__bridge--live {
  transition: transform 0.25s ease;
}

.lm-int-eco__bridge--live:hover {
  transform: translateX(2px);
}

.lm-int-eco__core-inner--live {
  animation: lm-core-glow 2.5s ease-in-out infinite;
}

.lm-int-eco__core-aws {
  display: inline-block;
  margin-top: 0.15rem;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #fef3c7;
  background: rgba(245, 158, 11, 0.35);
  border: 1px solid rgba(251, 191, 36, 0.45);
}

.lm-int-eco__pulse--live {
  animation: lm-comms-pulse 2.4s ease-out infinite;
}

.lm-int-eco__pulse--delay {
  animation-delay: 1.1s;
}

.lm-int-eco__bridges::before,
.lm-int-eco__bridges::after {
  content: none !important;
  display: none !important;
}

.lm-int-flow-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lm-int-flow-item__dot {
  width: 6px;
  height: 6px;
  margin-left: auto;
  border-radius: 50%;
  background: #6366f1;
  animation: lm-flow-dot 1.6s ease-in-out infinite;
}

.lm-int-flow-item:nth-child(2) .lm-int-flow-item__dot { animation-delay: 0.3s; background: #14b8a6; }
.lm-int-flow-item:nth-child(3) .lm-int-flow-item__dot { animation-delay: 0.6s; background: #f59e0b; }
.lm-int-flow-item:nth-child(4) .lm-int-flow-item__dot { animation-delay: 0.9s; background: #8b5cf6; }

.lm-comms-hub__ring--outer {
  animation: lm-hub-spin 36s linear infinite;
}

.lm-comms-hub__ch {
  animation: lm-ch-float 3.2s ease-in-out infinite;
  animation-delay: calc(var(--lm-ch-i, 0) * 0.4s);
}

@keyframes lm-comms-orbit {
  0% { transform: rotate(calc(var(--lm-sig-i, 0) * 120deg)) translateX(88px) rotate(calc(var(--lm-sig-i, 0) * -120deg)); opacity: 0.35; }
  50% { opacity: 1; }
  100% { transform: rotate(calc(360deg + var(--lm-sig-i, 0) * 120deg)) translateX(88px) rotate(calc(-360deg - var(--lm-sig-i, 0) * 120deg)); opacity: 0.35; }
}

.lm-comms-hub__signals {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lm-comms-signal {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.85);
  animation: lm-comms-orbit 4s linear infinite;
  animation-delay: calc(var(--lm-sig-i, 0) * -1.3s);
}

.lm-comms-signal:nth-child(2) { background: #a78bfa; box-shadow: 0 0 10px rgba(167, 139, 250, 0.85); }
.lm-comms-signal:nth-child(3) { background: #34d399; box-shadow: 0 0 10px rgba(52, 211, 153, 0.85); }

.lm-stat--pulse .lm-stat__num {
  animation: lm-stat-glow 2.5s ease-in-out infinite;
}

/* --- AWS Trust platform --- */
.lm-trust-section {
  padding: 2rem 0;
}

.lm-trust-section--home {
  background: linear-gradient(180deg, #fff 0%, #f0f9ff 50%, #f8fafc 100%);
  border-bottom: 1px solid #e2e8f0;
}

.lm-trust-section--features,
.lm-trust-section--experience {
  background: linear-gradient(165deg, #0f172a 0%, #1e293b 55%, #0c4a6e 100%);
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.lm-trust-section--features .lm-trust__title,
.lm-trust-section--experience .lm-trust__title {
  color: #f8fafc;
}

.lm-trust-section--features .lm-trust__lead,
.lm-trust-section--experience .lm-trust__lead,
.lm-trust-section--features .lm-trust__list li,
.lm-trust-section--experience .lm-trust__list li {
  color: #cbd5e1;
}

.lm-trust-section--benefit {
  background: linear-gradient(180deg, #f8fafc 0%, #f0f9ff 100%);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.lm-trust-strip {
  background: linear-gradient(90deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  padding: 0.55rem 0;
}

.lm-trust-strip__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.25rem;
}

.lm-trust-strip__list li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #e2e8f0;
  white-space: nowrap;
}

.lm-trust-strip__list i {
  font-size: 0.95rem;
  color: #38bdf8;
}

.lm-trust-section--mobile {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.lm-trust {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .lm-trust--home,
  .lm-trust--features,
  .lm-trust--band {
    grid-template-columns: 1fr 1fr;
  }

  .lm-trust--compact {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.lm-trust__title {
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.lm-trust__lead {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #64748b;
  margin-bottom: 0.85rem;
}

.lm-trust__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.lm-trust__list li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.84rem;
  line-height: 1.4;
  color: #475569;
}

.lm-trust__list i {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: #0284c7;
  font-size: 1.05rem;
}

.lm-trust-arch {
  position: relative;
  min-height: 220px;
  max-width: 360px;
  margin: 0 auto;
}

.lm-trust--compact .lm-trust-arch {
  min-height: 160px;
  max-width: 260px;
}

.lm-trust-arch__mesh {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at center, rgba(14, 165, 233, 0.12) 1px, transparent 1px);
  background-size: 18px 18px;
  animation: lm-lane-scroll 4s linear infinite;
  opacity: 0.6;
  border-radius: 1rem;
}

.lm-trust-arch__cloud {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 2px solid rgba(56, 189, 248, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.2);
}

.lm-trust-arch__ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px solid rgba(56, 189, 248, 0.35);
  animation: lm-trust-ring 2.8s ease-out infinite;
}

.lm-trust-arch__ring--b {
  animation-delay: 1.4s;
}

.lm-trust-arch__badge-aws {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #fbbf24;
}

.lm-trust-arch__badge-sim {
  font-size: 0.62rem;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.08em;
}

.lm-trust-arch__shield {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 1.1rem;
  color: #34d399;
}

.lm-trust-arch__node {
  position: absolute;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.35rem 0.45rem;
  border-radius: 0.5rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
  font-size: 0.58rem;
  font-weight: 700;
  color: #334155;
}

.lm-trust-arch__node i {
  font-size: 1rem;
  color: #0284c7;
}

.lm-trust-arch__node--rds { top: 8%; left: 8%; }
.lm-trust-arch__node--s3 { top: 8%; right: 8%; }
.lm-trust-arch__node--redis { bottom: 8%; left: 8%; }
.lm-trust-arch__node--celery { bottom: 8%; right: 8%; }

.lm-trust-arch__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 0.5rem;
  border: 1px solid rgba(14, 165, 233, 0.4);
  animation: lm-trust-ring 2s ease-out infinite;
}

.lm-trust-arch__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.lm-trust-beam {
  fill: none;
  stroke: rgba(56, 189, 248, 0.35);
  stroke-width: 1.5;
  stroke-dasharray: 6 6;
  animation: lm-trust-beam 1.2s linear infinite;
}

.lm-trust-beam--2 { animation-delay: 0.2s; stroke: rgba(99, 102, 241, 0.35); }
.lm-trust-beam--3 { animation-delay: 0.4s; stroke: rgba(52, 211, 153, 0.35); }
.lm-trust-beam--4 { animation-delay: 0.6s; }

.lm-trust-dot {
  fill: #38bdf8;
  animation: lm-flow-dot 1.8s ease-in-out infinite;
}

.lm-trust-dot--2 { animation-delay: 0.3s; fill: #818cf8; }
.lm-trust-dot--3 { animation-delay: 0.6s; fill: #34d399; }
.lm-trust-dot--4 { animation-delay: 0.9s; fill: #fbbf24; }

.lm-deep-link-card {
  height: 100%;
  padding: 1.15rem;
  border-radius: 0.85rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px -16px rgba(15, 23, 42, 0.15);
}

.lm-deep-link-card > i {
  font-size: 1.5rem;
  color: #0284c7;
  margin-bottom: 0.5rem;
}

.lm-deep-link-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.lm-deep-link-card p {
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.45;
}

.lm-exp-quote-card {
  padding: 1.5rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: #e2e8f0;
  height: 100%;
}

.lm-exp-quote-card > i {
  font-size: 2rem;
  opacity: 0.35;
  margin-bottom: 0.5rem;
}

.lm-exp-quote-card p {
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.lm-exp-quote-card__meta {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #93c5fd;
}

@media (prefers-reduced-motion: reduce) {
  .lm-int-lane,
  .lm-int-packet,
  .lm-int-arrow,
  .lm-int-eco__node--live,
  .lm-int-eco__core-inner--live,
  .lm-int-eco__bridges::before,
  .lm-int-eco__bridges::after,
  .lm-int-flow-item__dot,
  .lm-comms-hub__ring--outer,
  .lm-comms-hub__ch,
  .lm-comms-signal,
  .lm-trust-arch__ring,
  .lm-trust-beam,
  .lm-trust-dot,
  .lm-trust-arch__mesh,
  .lm-stat--pulse .lm-stat__num,
  .lm-flow-path,
  .lm-flow-arrow,
  .lm-flow-dot,
  .lm-auditor-tour__arrow,
  .lm-auditor-tour__arrow svg path,
  .lm-cap-card,
  .lm-pillar,
  .lm-benefit-card {
    animation: none !important;
  }
}

@media (max-width: 991px) {
  .lm-int-lane--in-a,
  .lm-int-lane--in-b,
  .lm-int-lane--out-a,
  .lm-int-lane--out-b {
    left: 15%;
    right: 15%;
    width: 70%;
  }

  .lm-int-arrow { display: none; }
}

/* ===== Sistema unificado de flujos SVG (landing motion) ===== */
@keyframes lm-flow-dash {
  to { stroke-dashoffset: -36; }
}

@keyframes lm-flow-arrow-pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes lm-card-glow {
  0%, 100% { box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05); }
  50% { box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.28), 0 8px 20px rgba(14, 165, 233, 0.12); }
}

.lm-flow-canvas {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: visible;
}

.lm-flow-canvas .lm-flow-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.lm-flow-path {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 8 10;
  animation: lm-flow-dash 0.85s linear infinite;
}

.lm-flow-path--teal { stroke: rgba(20, 184, 166, 0.8); }
.lm-flow-path--indigo { stroke: rgba(99, 102, 241, 0.8); animation-delay: 0.15s; }
.lm-flow-path--violet { stroke: rgba(139, 92, 246, 0.75); animation-delay: 0.3s; }
.lm-flow-path--cyan { stroke: rgba(34, 211, 238, 0.8); animation-delay: 0.2s; }
.lm-flow-path--amber { stroke: rgba(245, 158, 11, 0.85); animation-delay: 0.4s; }

.lm-flow-dot { filter: drop-shadow(0 0 5px currentColor); }
.lm-flow-dot--teal { fill: #14b8a6; color: #14b8a6; }
.lm-flow-dot--indigo { fill: #6366f1; color: #6366f1; }
.lm-flow-dot--violet { fill: #8b5cf6; color: #8b5cf6; }
.lm-flow-dot--cyan { fill: #22d3ee; color: #22d3ee; }
.lm-flow-dot--amber { fill: #f59e0b; color: #f59e0b; }

.lm-flow-arrow {
  animation: lm-flow-arrow-pulse 1.6s ease-in-out infinite;
}
.lm-flow-arrow--out { fill: rgba(245, 158, 11, 0.9); animation-delay: 0.5s; }

.lm-int-eco-wrap--live {
  position: relative;
  overflow: visible;
  min-height: 160px;
}

.lm-int-eco-wrap--live .lm-int-eco {
  position: relative;
  z-index: 2;
}

.lm-int-eco-wrap--live .lm-flow-canvas--int-band,
.lm-int-eco-wrap--live .lm-flow-canvas--int-full {
  z-index: 5;
}

.lm-comms-hub .lm-flow-canvas--comms {
  z-index: 1;
  inset: 0;
}

.lm-comms-hub__ring,
.lm-comms-hub__core,
.lm-comms-hub__channels,
.lm-comms-hub__signals {
  z-index: 2;
}

.lm-comms-hub__ch {
  z-index: 3;
}

.lm-cap-grid--live {
  position: relative;
  padding-top: 1.25rem;
}

.lm-cap-grid--live .lm-flow-canvas--cap-grid {
  height: 72px;
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
}

.lm-cap-grid--live .lm-cap-card {
  animation: lm-card-glow 3.2s ease-in-out infinite;
  animation-delay: calc(var(--motion-i, 0) * 0.18s);
}

.lm-deep-link-row--live {
  position: relative;
  padding-top: 0.75rem;
}

.lm-deep-link-row--live .lm-flow-canvas--deep-link {
  height: 48px;
  top: 0;
  bottom: auto;
}

.lm-deep-link-row--live .lm-deep-link-card {
  position: relative;
  z-index: 2;
}

.lm-exp-timeline--live {
  position: relative;
  padding-left: 1.75rem;
  border-left-color: transparent;
}

.lm-exp-timeline--live .lm-flow-canvas--timeline {
  width: 12px;
  left: 0;
  top: 0;
  bottom: 0;
  right: auto;
}

.lm-exp-timeline--live .lm-exp-timeline__item::before {
  animation: lm-flow-arrow-pulse 2.4s ease-in-out infinite;
  animation-delay: calc(var(--tour-i, 0) * 0.2s);
}

.lm-milestones--live {
  position: relative;
  padding-top: 1.5rem;
}

.lm-milestones--live .lm-flow-canvas--milestones {
  height: 40px;
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
}

.lm-products-flow--live {
  position: relative;
  padding-top: 0.85rem;
}

.lm-products-flow--live .lm-flow-canvas--product-hub {
  height: 56px;
  top: 0;
  bottom: auto;
}

.lm-products-flow--live .row {
  position: relative;
  z-index: 2;
}

.lm-pillars--live {
  position: relative;
  padding-top: 0.5rem;
}

.lm-pillars--live .lm-flow-canvas--pillar-mesh {
  height: 120px;
  top: 0;
  bottom: auto;
  opacity: 0.55;
}

.lm-pillars--live .lm-pillar {
  position: relative;
  z-index: 2;
  animation: lm-card-glow 3.5s ease-in-out infinite;
  animation-delay: calc(var(--motion-i, 0) * 0.12s);
}

.lm-sync-bridge-section {
  background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.lm-sync-bridge--live {
  position: relative;
  padding: 1.25rem 0;
}

.lm-sync-bridge--live .lm-flow-canvas--sync-mobile {
  height: 100%;
  inset: 0;
  opacity: 0.85;
}

.lm-sync-bridge--live .row {
  position: relative;
  z-index: 2;
}

.lm-sync-bridge__node {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
}

.lm-sync-bridge__node i {
  font-size: 1.75rem;
  color: #0284c7;
}

.lm-sync-bridge__node--cloud i {
  color: #0d9488;
}

.lm-sync-bridge__label {
  font-size: 0.92rem;
  font-weight: 600;
  color: #475569;
  text-align: center;
}

.lm-auditor-tour__arrow {
  animation: lm-flow-arrow-pulse 2s ease-in-out infinite;
  animation-delay: calc(var(--tour-i, 0) * 0.25s);
}

.lm-auditor-tour__arrow svg path {
  stroke: #2563eb;
  stroke-dasharray: 6 6;
  animation: lm-flow-dash 1.1s linear infinite;
}

.lm-benefit-card {
  animation: lm-card-glow 3.8s ease-in-out infinite;
  animation-delay: calc(var(--ben-i, var(--motion-i, 0)) * 0.05s);
}

@media (max-width: 767px) {
  .lm-flow-canvas--cap-grid,
  .lm-flow-canvas--deep-link,
  .lm-flow-canvas--product-hub,
  .lm-flow-canvas--pillar-mesh {
    opacity: 0.45;
  }

  .lm-sync-bridge__label {
    font-size: 0.82rem;
  }
}

.lm-page-head__inner {
  position: relative;
}

.lm-page-head__inner > .row,
.lm-page-head__inner > .lm-app-launch__grid,
.lm-features-hero .row {
  position: relative;
  z-index: 2;
}

.lm-page-head__inner .lm-flow-canvas--solution-hero,
.lm-features-hero .lm-flow-canvas--solution-hero {
  height: 44px;
  top: auto;
  bottom: 0;
  opacity: 0.5;
  z-index: 1;
}

.lm-features-hero {
  position: relative;
  overflow: hidden;
}

.lm-features-hero .lm-flow-canvas--solution-hero {
  left: 0;
  right: 0;
}

/* Asistente de ayuda — app logueada (Document, NC, Risk, etc.) */
.sim-support-floating-actions {
  position: fixed;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 1075;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  pointer-events: none;
}

.sim-support-floating-actions > * {
  pointer-events: auto;
}

.sim-support-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: #0d6efd;
  color: #fff;
  box-shadow: 0 8px 24px rgba(13, 110, 253, 0.35);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.sim-support-toggle .mdi {
  font-size: 1.25rem;
}

.sim-support-panel {
  width: min(28rem, calc(100vw - 1.5rem));
  height: calc(100vh - 5.5rem - 4rem);
  max-height: calc(100vh - 5.5rem - 4rem);
  display: flex;
  flex-direction: column;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #fff;
  color: #212529;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

@media (max-width: 767.98px) {
  .sim-support-panel {
    width: calc(100vw - 1rem);
    height: calc(100vh - 4.25rem - 3.75rem);
    max-height: calc(100vh - 4.25rem - 3.75rem);
  }
}

.sim-support-panel[hidden] {
  display: none !important;
}

.sim-support-panel__header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
  color: #fff;
}

.sim-support-panel__title {
  font-size: 0.92rem;
  font-weight: 700;
}

.sim-support-panel__subtitle {
  font-size: 0.72rem;
  opacity: 0.9;
}

.sim-support-panel__close {
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
}

.sim-support-panel__messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: #f8fafc;
}

.sim-support-panel__bubble {
  max-width: 92%;
  padding: 0.5rem 0.7rem;
  border-radius: 0.75rem;
  font-size: 0.86rem;
  line-height: 1.45;
  white-space: pre-line;
  word-break: break-word;
}

.sim-support-panel__bubble--bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.sim-support-panel__bubble--user {
  align-self: flex-end;
  background: #dbeafe;
}

.sim-support-panel__bubble--agent {
  align-self: flex-start;
  background: #ecfdf5;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.sim-support-panel__quick {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0 0.75rem 0.5rem;
  max-height: 11rem;
  overflow-y: auto;
  flex-shrink: 0;
}

.sim-support-quick-btn {
  border: 1px solid rgba(13, 110, 253, 0.35);
  background: #fff;
  color: #0d6efd;
  border-radius: 0.5rem;
  padding: 0.35rem 0.55rem;
  font-size: 0.78rem;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sim-support-quick-btn--escalate {
  border-color: rgba(25, 135, 84, 0.45);
  color: #198754;
  font-weight: 600;
}

.sim-support-panel__actions {
  padding: 0 0.75rem 0.45rem;
}

.sim-support-panel__status {
  padding: 0 0.75rem;
  font-size: 0.76rem;
  color: #15803d;
}

.sim-support-panel__composer {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  background: #fff;
  isolation: isolate;
}

.sim-support-panel__input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sim-support-panel__send {
  flex: 0 0 2.25rem;
  width: 2.25rem;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: #0d6efd;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M2.01 21 23 12 2.01 3 2 10l15 2-15 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1.05rem;
  color: transparent;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.sim-support-panel__send:hover:not(:disabled) {
  filter: brightness(1.05);
}

.sim-support-panel__send:disabled {
  opacity: 0.55;
  cursor: wait;
}

html[data-color-scheme="dark"] .sim-support-panel {
  background: #1e222d;
  color: #e8eaef;
  border-color: rgba(148, 163, 184, 0.2);
}

html[data-color-scheme="dark"] .sim-support-panel__composer {
  background: #1e222d;
}

html[data-color-scheme="dark"] .sim-support-panel__messages {
  background: #151820;
}

html[data-color-scheme="dark"] .sim-support-panel__bubble--bot {
  background: #22262f;
  border-color: rgba(148, 163, 184, 0.2);
}

html[data-color-scheme="dark"] .sim-support-panel__bubble--user {
  background: #1e3a5f;
}

html[data-color-scheme="dark"] .sim-support-panel__bubble--agent {
  background: #14352a;
  border-color: rgba(16, 185, 129, 0.25);
}

html[data-color-scheme="dark"] .sim-support-quick-btn {
  background: #22262f;
  color: #93c5fd;
}

/* --- Atención / soporte: banner marketing + mock chat --- */
.lm-support-band {
  padding: 1.35rem 0 1.5rem;
  background: linear-gradient(118deg, #f8fafc 0%, #eef2ff 48%, #ecfdf5 100%);
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.lm-support-band__kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6366f1;
  margin-bottom: 0.25rem;
}

.lm-support-band__title {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.45rem;
}

.lm-support-band__lead {
  font-size: 0.86rem;
  line-height: 1.45;
  color: #475569;
  margin-bottom: 0.65rem;
}

.lm-support-band__tags {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.lm-support-band__tags li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
}

.lm-support-band__tags .mdi {
  color: #4338ca;
  font-size: 1rem;
  margin-top: 0.05rem;
}

.lm-support-band__hours {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #0f766e;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(20, 184, 166, 0.28);
  border-radius: 999px;
}

.lm-support-band__visual {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: stretch;
}

.lm-support-band__photo {
  margin: 0;
  height: 100%;
  min-height: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 12px 32px -16px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.lm-support-band__photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.lm-support-chat-mock {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.lm-support-chat-mock__chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem;
  background: #1e293b;
  border-radius: 0.55rem 0.55rem 0 0;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-bottom: 0;
}

.lm-support-chat-mock__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
}

.lm-support-chat-mock__dot--r { background: #f87171; }
.lm-support-chat-mock__dot--y { background: #fbbf24; }
.lm-support-chat-mock__dot--g { background: #34d399; }

.lm-support-chat-mock__screen {
  margin-left: 0.35rem;
  font-size: 0.62rem;
  color: #94a3b8;
}

.lm-support-chat-mock__panel {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0 0 0.75rem 0.75rem;
  box-shadow: 0 18px 40px -22px rgba(15, 23, 42, 0.45);
  overflow: hidden;
}

.lm-support-chat-mock__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  background: linear-gradient(90deg, #272752, #4338ca);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.lm-support-chat-mock__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.lm-support-chat-mock__live {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.62rem;
  font-weight: 600;
  color: #bbf7d0;
}

.lm-support-chat-mock__live-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  animation: lm-support-live-pulse 1.8s ease-out infinite;
}

@keyframes lm-support-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.lm-support-chat-mock__body {
  padding: 0.55rem 0.65rem;
  background: #f8fafc;
  display: grid;
  gap: 0.4rem;
}

.lm-support-chat-mock__bubble {
  max-width: 92%;
  padding: 0.4rem 0.55rem;
  border-radius: 0.65rem;
  font-size: 0.64rem;
  line-height: 1.35;
}

.lm-support-chat-mock__bubble--bot {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #334155;
}

.lm-support-chat-mock__bubble--user {
  margin-left: auto;
  background: #dbeafe;
  color: #1e3a8a;
}

.lm-support-chat-mock__bubble--agent {
  background: #ecfdf5;
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #065f46;
}

.lm-support-chat-mock__bubble--agent small {
  display: block;
  font-weight: 700;
  font-size: 0.58rem;
  margin-bottom: 0.15rem;
  color: #047857;
}

.lm-support-chat-mock__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.lm-support-chat-mock__chips span {
  font-size: 0.58rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.lm-support-chat-mock__footer {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.65rem;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.lm-support-chat-mock__ticket {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.58rem;
  font-weight: 700;
  color: #6366f1;
  white-space: nowrap;
}

.lm-support-chat-mock__input {
  flex: 1;
  font-size: 0.62rem;
  color: #94a3b8;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

/* Evolución del producto — diagrama conceptual (Experiencia) */
.lm-exp-evolution-diagram {
  margin: 0;
}

.lm-exp-evolution-diagram__canvas {
  position: relative;
  padding: 0.5rem 0.5rem 0.5rem 0;
}

.lm-exp-evolution-diagram__spine {
  position: absolute;
  left: 1.35rem;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 2.5rem;
  height: calc(100% - 1.5rem);
  pointer-events: none;
}

.lm-exp-evolution-diagram__line {
  stroke-dasharray: 6 5;
  animation: lm-exp-spine-flow 12s linear infinite;
}

@keyframes lm-exp-spine-flow {
  to { stroke-dashoffset: -44; }
}

.lm-exp-evolution-diagram__pulse {
  animation: lm-exp-node-glow 2.4s ease-in-out infinite;
}

.lm-exp-evolution-diagram__pulse--2 { animation-delay: 0.4s; }
.lm-exp-evolution-diagram__pulse--3 { animation-delay: 0.8s; }
.lm-exp-evolution-diagram__pulse--4 { animation-delay: 1.2s; }
.lm-exp-evolution-diagram__pulse--5 { animation-delay: 1.6s; }

@keyframes lm-exp-node-glow {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

.lm-exp-evolution-diagram__steps {
  position: relative;
  display: grid;
  gap: 0.65rem;
  padding-left: 3.25rem;
}

.lm-exp-evolution-diagram__step {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.lm-exp-evolution-diagram__step--current {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.15);
}

.lm-exp-evolution-diagram__icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.6rem;
  font-size: 1.15rem;
  color: #fff;
}

.lm-exp-evolution-diagram__icon--consult { background: linear-gradient(145deg, #0ea5e9, #0284c7); }
.lm-exp-evolution-diagram__icon--web { background: linear-gradient(145deg, #6366f1, #4338ca); }
.lm-exp-evolution-diagram__icon--api { background: linear-gradient(145deg, #8b5cf6, #6d28d9); }
.lm-exp-evolution-diagram__icon--app { background: linear-gradient(145deg, #14b8a6, #0d9488); }
.lm-exp-evolution-diagram__icon--platform { background: linear-gradient(145deg, #22c55e, #16a34a); }

.lm-exp-evolution-diagram__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.lm-exp-evolution-diagram__text strong {
  font-size: 0.82rem;
  color: #f8fafc;
}

.lm-exp-evolution-diagram__text span {
  font-size: 0.72rem;
  line-height: 1.35;
  color: #cbd5e1;
}

.lm-exp-evolution-diagram__orbit {
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  opacity: 0.85;
}

.lm-exp-evolution-diagram__chip {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #7dd3fc;
  font-size: 1rem;
}

.lm-exp-evolution-diagram__caption {
  margin-top: 0.75rem;
  font-size: 0.72rem;
  text-align: center;
  color: #94a3b8;
}

@media (max-width: 991px) {
  .lm-support-band__visual {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lm-exp-evolution-diagram__orbit {
    display: none;
  }
}

@media (max-width: 575px) {
  .lm-support-band {
    padding: 1rem 0 1.15rem;
  }

  .lm-support-band__visual {
    grid-template-columns: 1fr;
  }

  .lm-support-band__photo {
    min-height: 12rem;
  }
}

/* Portal marketing — hub, legal, integraciones, servicio, personas */
.lm-portal-tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.25rem 1.35rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(145deg, #fff 0%, #f8fafc 100%);
  box-shadow: 0 0.35rem 1rem rgba(15, 23, 42, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lm-portal-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0.65rem 1.5rem rgba(37, 99, 235, 0.12);
  color: inherit;
}

.lm-portal-tile__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.lm-portal-tile h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.lm-portal-tile p {
  font-size: 0.88rem;
  color: #64748b;
  flex-grow: 1;
  margin-bottom: 0.75rem;
}

.lm-portal-trail {
  list-style: none;
  counter-reset: portal-step;
  padding: 0;
  max-width: 42rem;
}

.lm-portal-trail li {
  counter-increment: portal-step;
  position: relative;
  padding: 0.65rem 0 0.65rem 2.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.lm-portal-trail li::before {
  content: counter(portal-step);
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lm-portal-trail--light li {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.lm-portal-trail--light li::before {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.lm-portal-trail--flow-3col {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.lm-portal-trail--flow-3col li {
  margin-bottom: 0;
  padding: 0.5rem 0.55rem 0.5rem 2.35rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.55rem;
  background: #fff;
  box-shadow: 0 3px 12px -10px rgba(15, 23, 42, 0.12);
}

.lm-portal-trail--flow-3col li::before {
  top: 0.45rem;
  left: 0.55rem;
  width: 1.45rem;
  height: 1.45rem;
  font-size: 0.65rem;
}

@media (min-width: 768px) {
  .lm-portal-trail--flow-3col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }
}

.landing-page--personas .lm-page-head .lm-page-head__inner,
.landing-page--clientes .lm-page-head .lm-page-head__inner,
.landing-page--proveedores .lm-page-head .lm-page-head__inner {
  padding-top: 0.6rem !important;
  padding-bottom: 0.65rem !important;
}

.landing-page--personas .lm-page-head .lm-kicker,
.landing-page--clientes .lm-page-head .lm-kicker,
.landing-page--proveedores .lm-page-head .lm-kicker {
  margin-bottom: 0.1rem;
}

.landing-page--personas .lm-page-head h1.text-white,
.landing-page--clientes .lm-page-head h1.text-white,
.landing-page--proveedores .lm-page-head h1.text-white {
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  margin-bottom: 0.15rem;
}

.landing-page--personas .lm-page-head .lm-page-head__lead,
.landing-page--clientes .lm-page-head .lm-page-head__lead,
.landing-page--proveedores .lm-page-head .lm-page-head__lead {
  font-size: 0.78rem;
  line-height: 1.32;
  max-width: none;
}

.landing-page--clientes .lm-page-head--visual .lm-depth-visual--hero .lm-depth-visual__img,
.landing-page--proveedores .lm-page-head--visual .lm-depth-visual--hero .lm-depth-visual__img {
  max-height: 8.25rem;
  min-height: 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.55rem;
}

.landing-page--personas .lm-page-head .lm-page-head-cta,
.landing-page--clientes .lm-page-head--visual .lm-page-head-cta,
.landing-page--proveedores .lm-page-head--visual .lm-page-head-cta {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.28rem;
}

@media (max-width: 991.98px) {
  .landing-page--clientes .lm-page-head--visual .lm-depth-visual,
  .landing-page--proveedores .lm-page-head--visual .lm-depth-visual {
    max-width: 18rem;
    margin-top: 0.15rem;
  }
}

.landing-page--personas .lm-section--depth-first,
.landing-page--clientes .lm-section--depth-first,
.landing-page--proveedores .lm-section--depth-first {
  padding-top: 1.35rem;
  padding-bottom: 1.25rem;
}

.landing-page--personas .lm-page-personas .lm-section,
.landing-page--clientes .lm-depth-page .lm-section,
.landing-page--proveedores .lm-depth-page .lm-section {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.landing-page--personas .lm-page-personas .lm-section--soft,
.landing-page--clientes .lm-depth-page .lm-section--soft,
.landing-page--proveedores .lm-depth-page .lm-section--soft {
  padding-top: 1.65rem;
  padding-bottom: 1.65rem;
}

.landing-page--clientes .lm-section--commercial-flow,
.landing-page--proveedores .lm-section--commercial-flow {
  padding-top: 1.35rem;
  padding-bottom: 1.25rem;
}

.landing-page--clientes .lm-section--commercial-flow .lm-section-title,
.landing-page--proveedores .lm-section--commercial-flow .lm-section-title {
  margin-bottom: 0.55rem;
}

/* Ayuda (/ayuda/) — layout compacto */
.landing-page--ayuda .lm-page-head .lm-page-head__inner {
  padding-top: 0.6rem !important;
  padding-bottom: 0.65rem !important;
}

.landing-page--ayuda .lm-page-head h1.text-white {
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  margin-bottom: 0.15rem;
}

.landing-page--ayuda .lm-page-head .lm-page-head__lead {
  font-size: 0.8rem;
  line-height: 1.35;
}

.landing-page--ayuda .lm-depth-page .lm-section {
  padding-top: 1.35rem;
  padding-bottom: 1.25rem;
}

.landing-page--ayuda .lm-section--soft {
  padding-top: 1.15rem !important;
  padding-bottom: 1.15rem !important;
}

.landing-page--ayuda .lm-section-title {
  margin-bottom: 0.45rem;
}

.landing-page--ayuda .lm-portal-trail li {
  padding: 0.45rem 0 0.45rem 2.35rem;
}

.landing-page--ayuda .lm-portal-trail li::before {
  top: 0.38rem;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.68rem;
}

.landing-page--ayuda .lm-support-band__photo {
  max-height: 11.5rem;
}

.landing-page--ayuda .lm-support-band__photo img {
  min-height: 0;
  max-height: 11.5rem;
  object-fit: cover;
}

.landing-page--ayuda .lm-legal-callout {
  padding: 0.65rem 0.8rem;
  font-size: 0.82rem;
  gap: 0.55rem;
}

.landing-page--ayuda .lm-legal-callout .mdi {
  font-size: 1.1rem;
}

.landing-page--ayuda .lm-depth-feature {
  padding: 0.75rem 0.85rem;
}

.landing-page--ayuda .lm-depth-feature h3 {
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
}

.landing-page--ayuda .lm-depth-feature p {
  font-size: 0.8rem;
  line-height: 1.38;
  margin-bottom: 0;
}

.landing-page--ayuda .lm-depth-feature .mdi {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.landing-page--ayuda .lm-support-chat-mock__body {
  padding: 0.45rem 0.55rem;
  gap: 0.35rem;
}

.landing-page--ayuda .lm-support-chat-mock__bubble {
  padding: 0.4rem 0.55rem;
  font-size: 0.68rem;
}

.landing-page--ayuda .lm-support-chat-mock__chips span {
  padding: 0.2rem 0.45rem;
  font-size: 0.62rem;
}

.landing-page--ayuda .lm-support-chat-mock__footer {
  padding: 0.4rem 0.55rem;
}

.landing-page--ayuda .lm-support-chat-mock__panel {
  max-height: 15.5rem;
}

/* Capacitación (/capacitacion/) — layout compacto */
.landing-page--capacitacion .lm-page-head .lm-page-head__inner {
  padding-top: 0.6rem !important;
  padding-bottom: 0.65rem !important;
}

.landing-page--capacitacion .lm-page-head .lm-kicker {
  margin-bottom: 0.1rem;
}

.landing-page--capacitacion .lm-page-head h1.text-white {
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  margin-bottom: 0.15rem;
}

.landing-page--capacitacion .lm-page-head .lm-page-head__lead {
  font-size: 0.78rem;
  line-height: 1.32;
}

.landing-page--capacitacion .lm-page-head--visual .lm-depth-visual--hero .lm-depth-visual__img {
  max-height: 8.25rem;
  min-height: 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.55rem;
}

.landing-page--capacitacion .lm-depth-page .lm-section {
  padding-top: 1.35rem;
  padding-bottom: 1.25rem;
}

.landing-page--capacitacion .lm-section--soft {
  padding-top: 1.15rem !important;
  padding-bottom: 1.15rem !important;
}

.landing-page--capacitacion .lm-section-title {
  margin-bottom: 0.45rem;
}

.landing-page--capacitacion .lm-section-lead {
  font-size: 0.92rem;
  line-height: 1.42;
}

.landing-page--capacitacion .lm-depth-list li {
  font-size: 0.86rem;
  line-height: 1.38;
  padding: 0.2rem 0;
}

.landing-page--capacitacion .lm-depth-aside {
  padding: 0.75rem 0.85rem;
}

.landing-page--capacitacion .lm-depth-feature {
  padding: 0.75rem 0.85rem;
}

.landing-page--capacitacion .lm-depth-feature h3 {
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
}

.landing-page--capacitacion .lm-depth-feature p {
  font-size: 0.8rem;
  line-height: 1.38;
  margin-bottom: 0;
}

.landing-page--capacitacion .lm-depth-feature .mdi {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.landing-page--capacitacion .lm-section--commercial-flow {
  padding-top: 1.25rem;
  padding-bottom: 1.15rem;
}

.lm-portal-trail a {
  color: inherit;
  text-decoration: none;
}

.lm-portal-trail a:hover {
  text-decoration: underline;
}

.lm-cross-card {
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: #fff;
  box-shadow: 0 0.25rem 0.75rem rgba(15, 23, 42, 0.04);
}

.lm-cross-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 0.65rem;
}

.lm-cross-card__icon--indigo { background: rgba(99, 102, 241, 0.12); color: #4f46e5; }
.lm-cross-card__icon--amber { background: rgba(245, 158, 11, 0.15); color: #d97706; }
.lm-cross-card__icon--green { background: rgba(16, 185, 129, 0.12); color: #059669; }
.lm-cross-card__icon--cyan { background: rgba(6, 182, 212, 0.12); color: #0891b2; }

.lm-cross-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.lm-cross-card p {
  font-size: 0.86rem;
  color: #64748b;
  margin-bottom: 0.65rem;
}

.lm-cross-card__list {
  font-size: 0.8rem;
  color: #475569;
  padding-left: 1.1rem;
  margin-bottom: 0;
}

.lm-legal-callout {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border-radius: 0.65rem;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  font-size: 0.9rem;
}

.lm-legal-callout .mdi {
  font-size: 1.35rem;
  color: #2563eb;
  flex-shrink: 0;
}

.lm-legal-table-wrap {
  border-radius: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  overflow: hidden;
}

.lm-legal-table {
  margin-bottom: 0;
  font-size: 0.88rem;
}

.lm-legal-table thead {
  background: #f1f5f9;
}

.lm-legal-card {
  height: 100%;
  padding: 1.15rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: #fff;
}

.lm-legal-card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.lm-legal-card h3 .mdi {
  margin-right: 0.35rem;
  color: #2563eb;
}

.lm-api-tier {
  padding: 1.35rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #fff;
}

.lm-api-tier--featured {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0.5rem 1.25rem rgba(37, 99, 235, 0.1);
}

.lm-api-tier__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  margin-bottom: 0.65rem;
}

.lm-api-tier__list {
  font-size: 0.82rem;
  color: #64748b;
  padding-left: 0;
  list-style: none;
}

.lm-api-tier__list li {
  padding: 0.2rem 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.25);
}

.lm-saas-card {
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: #fff;
  box-shadow: 0 0.25rem 0.85rem rgba(15, 23, 42, 0.05);
}

.lm-saas-card__icon {
  font-size: 2rem;
  color: #2563eb;
  display: block;
  margin-bottom: 0.5rem;
}

.lm-saas-pricing-note {
  padding: 1.35rem 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.lm-persona-dim {
  height: 100%;
  padding: 1.15rem 1.15rem 1.15rem 3.25rem;
  position: relative;
  border-radius: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: #fff;
}

.lm-persona-dim__n {
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lm-persona-dim h3 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.lm-persona-dim p {
  font-size: 0.84rem;
  color: #64748b;
  margin-bottom: 0;
}

.landing-page--personas .lm-depth-visual--thumb .lm-depth-visual__img {
  aspect-ratio: 3 / 2;
  max-height: 11rem;
  object-fit: cover;
  object-position: top center;
  border-radius: 0.55rem;
}

.landing-page--personas .lm-depth-visual--thumb .lm-depth-visual__caption {
  font-size: 0.65rem;
}

.lm-page-head--portal {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #2563eb 100%);
}

.lm-content-intro {
  padding-top: 1.75rem;
  padding-bottom: 0.25rem;
}

.landing-modern > .lm-content-intro:first-child {
  padding-top: 2rem;
}

.lm-mobile-intro .lm-app-launch__grid--mobile-hero {
  max-width: 28rem;
}

/* Teasers → páginas de profundidad */
.lm-teaser-banner {
  padding: 1.25rem 0;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.08) 0%, rgba(99, 102, 241, 0.05) 100%);
  border-block: 1px solid rgba(148, 163, 184, 0.25);
}

.lm-teaser-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

.lm-teaser-banner__icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  font-size: 1.45rem;
}

.lm-teaser-banner__body {
  flex: 1 1 14rem;
  min-width: 0;
}

.lm-teaser-banner__title {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.lm-teaser-banner__lead {
  font-size: 0.88rem;
  color: #64748b;
}

.lm-teaser-banner__cta {
  flex-shrink: 0;
  margin-inline-start: auto;
}

/* Chips home / enlaces profundidad */
.lm-depth-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  height: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.lm-depth-chip:hover {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0.35rem 1rem rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
  color: inherit;
}

.lm-depth-chip .mdi {
  font-size: 1.35rem;
  color: #2563eb;
  margin-bottom: 0.15rem;
}

.lm-depth-chip span {
  font-size: 0.9rem;
  font-weight: 600;
}

.lm-depth-chip small {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.35;
}

.lm-depth-chip--card {
  padding: 1rem 1.1rem;
}

.lm-portal-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.85rem;
}

.lm-portal-tile--compact {
  padding: 1rem 1.1rem;
}

.lm-portal-tile--compact h3 {
  margin-bottom: 0.35rem;
}

.lm-portal-tile--compact .lm-link-arrow {
  margin-top: auto;
  font-size: 0.82rem;
}

/* Páginas de profundidad */
.lm-depth-page .lm-section-lead {
  max-width: 42rem;
}

.lm-depth-list {
  padding-left: 1.15rem;
  color: #475569;
  font-size: 0.92rem;
}

.lm-depth-list li {
  margin-bottom: 0.65rem;
}

.lm-depth-aside {
  padding: 1.15rem 1.25rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: #f8fafc;
}

.lm-depth-feature {
  height: 100%;
  padding: 1.15rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #fff;
}

.lm-depth-feature .mdi {
  font-size: 1.5rem;
  color: #2563eb;
  margin-bottom: 0.5rem;
}

.lm-depth-feature h3 {
  font-size: 0.98rem;
  margin-bottom: 0.4rem;
}

.lm-depth-feature p {
  font-size: 0.86rem;
  color: #64748b;
  margin-bottom: 0;
}

.lm-depth-block {
  padding: 1.25rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: #fff;
  height: 100%;
}

/* Ilustraciones conceptuales — páginas de profundidad */
.lm-page-head--visual {
  overflow: hidden;
}

.lm-depth-visual {
  position: relative;
  border-radius: 0.85rem;
  overflow: hidden;
}

.lm-depth-visual__frame {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(125, 211, 252, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 42px -24px rgba(14, 165, 233, 0.55);
  pointer-events: none;
  z-index: 2;
}

.lm-depth-visual--glow::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.35), transparent 55%);
  z-index: 0;
  pointer-events: none;
}

.lm-depth-visual__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transform: scale(1.01);
}

.lm-depth-visual--hero .lm-depth-visual__img {
  aspect-ratio: 16 / 11;
  min-height: 12rem;
}

.lm-depth-visual--wide .lm-depth-visual__img {
  aspect-ratio: 21 / 9;
  max-height: 18rem;
}

.lm-depth-visual--mosaic .lm-depth-visual__img {
  aspect-ratio: 4 / 3;
  min-height: 10rem;
}

.lm-depth-visual__caption {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 3;
  margin: 0;
  padding: 0.25rem 0.55rem;
  border-radius: 0.35rem;
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lm-depth-page .lm-depth-block .lm-depth-visual {
  margin-top: 0.35rem;
}

.lm-depth-mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 992px) {
  .lm-depth-mosaic {
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-rows: auto auto;
  }

  .lm-depth-mosaic__main {
    grid-row: span 2;
  }
}

.lm-gallery--depth-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 991.98px) {
  .lm-gallery--depth-strip {
    grid-template-columns: 1fr;
  }
}

.lm-depth-shots {
  padding-top: 0.5rem;
}

@media (max-width: 767.98px) {
  .lm-teaser-banner__cta {
    width: 100%;
    margin-inline-start: 0;
  }
}

/* Páginas de profundidad — layout compacto */
.lm-page-head .lm-page-head__inner {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.lm-page-head--visual .lm-page-head__inner {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.lm-page-head__row {
  --bs-gutter-y: 0.45rem;
}

.lm-page-head .lm-kicker {
  margin-bottom: 0.15rem;
}

.lm-page-head h1.text-white {
  margin-bottom: 0.2rem;
}

.lm-page-head__lead {
  font-size: 0.88rem;
  line-height: 1.4;
}

.lm-page-head-cta {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.lm-page-head-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0.38rem 0.7rem;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.15;
  border-radius: 0.45rem;
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.14);
}

.lm-page-head-btn .mdi {
  font-size: 0.95rem;
  line-height: 1;
}

.lm-page-head-btn.btn-dark {
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lm-page-head-btn.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.lm-page-head-cta--app {
  margin-top: 0.45rem;
}

.lm-page-head-cta--app .lm-app-launch__grid--head {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.35rem;
  max-width: none;
  width: 100%;
}

.lm-page-head-cta--app .lm-app-card {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.38rem 0.55rem;
  gap: 0.4rem;
  border-radius: 0.45rem;
}

.lm-page-head-cta--app .lm-app-card__icon {
  width: 1.65rem;
  height: 1.65rem;
  font-size: 1rem;
  border-radius: 0.4rem;
}

.lm-page-head-cta--app .lm-app-card__label {
  font-size: 0.68rem;
  line-height: 1.15;
}

.lm-page-head-cta--app .lm-app-card__cta {
  font-size: 0.66rem;
}

.lm-features-hero .lm-page-head-cta {
  justify-content: flex-start;
}

@media (max-width: 991.98px) {
  .lm-page-head-cta {
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 0.35rem;
  }
}

@media (max-width: 575.98px) {
  .lm-page-head-cta {
    gap: 0.3rem;
  }

  .lm-page-head-btn {
    padding: 0.35rem 0.55rem;
    font-size: 0.72rem;
  }
}

.lm-depth-page .lm-section {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.lm-depth-page .lm-section--depth-first {
  padding-top: 1.75rem;
}

.lm-depth-page .lm-section-lead {
  max-width: none;
}

.lm-depth-shot {
  margin: 0;
  border-radius: 0.65rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 10px 28px -18px rgba(15, 23, 42, 0.35);
}

.lm-depth-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.lm-support-band__visual--page {
  min-height: 100%;
}

@media (min-width: 992px) {
  .lm-support-band__visual--page {
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  }

  .lm-support-band__visual--no-photo {
    grid-template-columns: 1fr;
    max-width: 22rem;
    margin-inline-start: auto;
  }
}

/* Portal (/portal/) — layout compacto */
.landing-page--portal .lm-page-head .lm-page-head__inner {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.landing-page--portal .lm-section,
.landing-page--portal .lm-portal-hub {
  padding-top: 1.35rem;
  padding-bottom: 1.35rem;
}

.landing-page--portal .lm-section--portal-sgi {
  padding-top: 0.65rem !important;
  padding-bottom: 0.75rem !important;
}

/* /modules/ — ritmo vertical (ver --mod-section-y al final del bloque) */

.lm-page-modules .lm-modules-hero__block + .lm-modules-hero__block {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.lm-page-modules .lm-modules-hero__text {
  display: flex;
  flex-direction: column;
}

.lm-page-modules .lm-modules-hero__text .lm-section-lead {
  max-width: none;
  margin: 0;
}

.lm-page-modules .lm-modules-hero__split {
  align-items: stretch;
}

.lm-page-modules .lm-modules-hero__diagram {
  display: flex;
  align-items: flex-start;
  margin-top: 0;
  padding-top: 0;
}

.lm-page-modules .lm-modules-hero__diagram .lm-sol-flow {
  width: 100%;
}

@media (min-width: 992px) {
  .lm-page-modules .lm-modules-hero__diagram {
    padding-top: 0.85rem;
  }
}

@media (max-width: 991.98px) {
  .lm-page-modules .lm-modules-hero__diagram {
    margin-top: 0.65rem;
    padding-top: 0;
  }
}

.lm-page-modules .lm-modules-hero__checks {
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.15rem 0.65rem;
  grid-template-columns: 1fr;
}

@media (min-width: 576px) {
  .lm-page-modules .lm-modules-hero__checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.lm-page-modules .lm-modules-hero__checks li {
  padding: 0.08rem 0 0.08rem 1.15rem;
  color: #334155;
}

.lm-page-modules .lm-modules-hero .lm-sol-flow {
  margin: 0;
  padding: 0.5rem 0.45rem;
}

.lm-page-modules .lm-modules-hero .lm-sol-flow__core {
  margin-bottom: 0.35rem;
}

.lm-page-modules .lm-modules-hero .lm-sol-flow__core-sub {
  font-size: 0.62rem;
}

.lm-page-modules .lm-modules-hero .lm-sol-flow__step {
  min-width: 84px;
  max-width: 120px;
  padding: 0.45rem 0.35rem;
  font-size: 0.62rem;
}

.lm-page-modules .lm-modules-hero .lm-sol-flow__step strong {
  font-size: 0.68rem;
}

.lm-page-modules .lm-modules-hero .lm-sol-flow__step-icon {
  width: 30px;
  height: 30px;
  font-size: 1rem;
}

.lm-page-modules .lm-modules-hero .lm-sol-flow__conn {
  flex: 0 0 24px;
  min-width: 20px;
}

.lm-page-modules .lm-modules-hero .lm-sol-flow__caption {
  font-size: 0.68rem;
  margin-top: 0.3rem;
  line-height: 1.32;
}

.lm-page-modules .lm-module-families {
  padding-top: 0;
  padding-bottom: 0;
  border-top: none;
}

.lm-page-modules .lm-modules-band .lm-module-families__lead {
  margin-bottom: 0.35rem !important;
  max-width: none;
  font-size: 0.88rem !important;
  line-height: 1.42 !important;
}

.lm-page-modules .lm-modules-band .lm-section-title {
  font-size: 1.34rem !important;
}

.lm-page-modules .lm-modules-band__video > .lm-section-title {
  margin-bottom: 0.2rem !important;
}

.lm-page-modules .lm-module-families--rows .lm-module-families__rows {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.lm-page-modules .lm-module-families--rows .lm-module-families__group {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.22rem 0.35rem;
  margin-bottom: 0 !important;
  height: auto;
  padding: 0.48rem 0.58rem;
  border-radius: 0.62rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 2px 10px rgba(15, 23, 42, 0.07),
    0 1px 3px rgba(15, 23, 42, 0.05);
}

.lm-page-modules .lm-modules-band .lm-module-families--rows .lm-module-families__title {
  flex: 0 0 100%;
  width: 100%;
  max-width: none;
  margin-bottom: 0.05rem;
  white-space: normal;
  font-size: 0.82rem !important;
  line-height: 1.3 !important;
  letter-spacing: 0.05em;
}

.lm-page-modules .lm-module-families--rows .lm-module-families__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  gap: 0.22rem 0.28rem;
}

.lm-page-modules .lm-modules-band .lm-module-families--rows .lm-module-families__links .lm-module-link {
  margin: 0;
  flex-shrink: 0;
  gap: 0.24rem;
  padding: 0.28rem 0.62rem;
  font-size: 0.8rem !important;
  line-height: 1.28 !important;
  font-weight: 600;
}

.lm-page-modules .lm-modules-band .lm-module-families--rows .lm-module-families__links .lm-module-link .mdi {
  font-size: 1rem;
  line-height: 1;
}

.lm-page-modules .lm-module-families__group--admin .lm-module-families__links {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.lm-page-modules .lm-module-families__title {
  margin-bottom: 0;
}

.lm-page-modules .lm-modules-video {
  padding-top: 0.5rem !important;
  padding-bottom: 0.55rem !important;
}

.lm-page-modules .lm-modules-band__video .lm-section-lead {
  margin-bottom: 0;
}

.lm-page-modules .lm-modules-player__stage {
  background: #0f172a;
  min-height: 12rem;
}

.lm-page-modules .lm-modules-player__stage video {
  display: block;
  width: 100%;
  vertical-align: top;
}

.lm-page-modules .lm-modules-player__hint {
  color: rgba(248, 250, 252, 0.72);
  font-size: 0.9rem;
  line-height: 1.45;
  padding: 1.35rem 1.1rem;
  text-align: center;
}

.lm-page-modules .lm-modules-trail__lead {
  max-width: 32rem;
}

.lm-page-modules .lm-portal-trail li {
  padding: 0.32rem 0 0.32rem 2.1rem;
}

.lm-page-modules .lm-portal-trail li::before {
  top: 0.26rem;
  width: 1.4rem;
  height: 1.4rem;
  font-size: 0.65rem;
}

.lm-page-modules .lm-portal-trail--grid-4 {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(12, auto);
  grid-auto-flow: column;
  gap: 0 0.85rem;
}

.lm-page-modules .lm-portal-trail--grid-4 li {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

@media (min-width: 576px) {
  .lm-page-modules .lm-portal-trail--grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(6, auto);
  }
}

@media (min-width: 992px) {
  .lm-page-modules .lm-portal-trail--grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(3, auto);
    column-gap: 1rem;
  }
}

.landing-page--portal .lm-section--portal-sgi .lm-section-title {
  margin-bottom: 0.35rem;
}

.landing-page--portal .lm-section--portal-sgi .lm-section-lead {
  font-size: 0.92rem;
  margin-bottom: 0.45rem;
  line-height: 1.45;
}

.landing-page--portal .lm-section--portal-sgi .row {
  --bs-gutter-y: 0.65rem;
}

.landing-page--portal .lm-section--portal-trail {
  padding-top: 1.25rem;
  padding-bottom: 1.35rem;
}

.landing-page--portal .lm-portal-hub {
  padding-top: 0.85rem;
}

.landing-page--portal .lm-portal-section-label {
  margin-bottom: 0.45rem;
}

.landing-page--portal .lm-portal-section-label--first {
  margin-top: 0;
}

.landing-page--portal .lm-portal-tile {
  padding: 0.8rem 0.95rem;
}

.landing-page--portal .lm-portal-tile__icon {
  width: 2rem;
  height: 2rem;
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}

.landing-page--portal .lm-portal-tile h3 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.landing-page--portal .lm-portal-tile p {
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 0.4rem;
}

.landing-page--portal .lm-portal-tile--compact {
  padding: 0.7rem 0.85rem;
}

.landing-page--portal .lm-portal-trail li {
  padding: 0.4rem 0 0.4rem 2.35rem;
  font-size: 0.88rem;
}

.landing-page--portal .lm-portal-trail li::before {
  top: 0.38rem;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.68rem;
}

@media (min-width: 768px) {
  .landing-page--portal .lm-portal-trail:not(.lm-portal-trail--grid-4) {
    max-width: 52rem;
    columns: 2;
    column-gap: 1.25rem;
  }

  .landing-page--portal .lm-portal-trail:not(.lm-portal-trail--grid-4) li {
    break-inside: avoid;
  }
}

.landing-page--portal .lm-portal-trail--grid-4 {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(12, auto);
  grid-auto-flow: column;
  gap: 0 1rem;
}

.landing-page--portal .lm-portal-trail--grid-4 li {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

@media (min-width: 576px) {
  .landing-page--portal .lm-portal-trail--grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(6, auto);
  }
}

@media (min-width: 992px) {
  .landing-page--portal .lm-portal-trail--grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(3, auto);
    column-gap: 1.15rem;
  }
}

.landing-page--portal .lm-teaser-banner {
  padding: 0.75rem 0;
}

.landing-page--portal .lm-support-band {
  padding: 1rem 0 1.1rem;
}

.landing-page--portal .lm-sol-flow {
  padding: 0.85rem 0.75rem;
}

.landing-page--portal .lm-sol-flow__core {
  margin-bottom: 0.55rem;
}

.landing-page--portal .lm-sol-flow__caption {
  font-size: 0.72rem;
  margin-top: 0.45rem;
}

.landing-page--portal .lm-section-lead {
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
}

.landing-page--portal .lm-check-lines .lm-check-line {
  font-size: 0.86rem;
  margin-bottom: 0.2rem;
  padding: 0.08rem 0;
  padding-left: 1.3rem;
  color: #334155;
}

.landing-page--portal .lm-section--portal-sgi .lm-check-lines .lm-check-line {
  color: #1e293b;
}

.landing-page--portal .lm-section--portal-sgi .lm-check-lines .lm-check-line .mdi {
  color: #0284c7;
  top: 0.12rem;
}

/* Servicio SaaS (/servicio/) — layout compacto */
.landing-page--servicio .lm-page-head .lm-page-head__inner {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.landing-page--servicio .lm-section,
.landing-page--servicio .lm-support-band {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.landing-page--servicio .lm-section--soft {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.landing-page--servicio .lm-section--servicio-includes {
  padding-bottom: 1rem;
}

.landing-page--servicio .lm-section-title {
  margin-bottom: 0.25rem;
}

.landing-page--servicio .lm-section-lead {
  font-size: 0.94rem;
  line-height: 1.45;
  margin-bottom: 0.65rem;
}

.landing-page--servicio .lm-saas-card {
  padding: 0.8rem 0.95rem;
}

.landing-page--servicio .lm-saas-card__icon {
  font-size: 1.45rem;
  margin-bottom: 0.3rem;
}

.landing-page--servicio .lm-saas-card h3 {
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
}

.landing-page--servicio .lm-saas-card p {
  font-size: 0.8rem;
  line-height: 1.42;
  margin-bottom: 0;
  color: #64748b;
}

.landing-page--servicio .lm-check-lines li {
  padding-top: 0.18rem;
  padding-bottom: 0.18rem;
  font-size: 0.84rem;
}

.landing-page--servicio .lm-support-band__title {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  margin-bottom: 0.35rem;
}

.landing-page--servicio .lm-support-band__lead {
  font-size: 0.84rem;
  margin-bottom: 0.5rem;
}

.landing-page--servicio .lm-support-band__tags {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
}

.landing-page--servicio .lm-support-band__visual--no-photo {
  margin-inline-start: 0;
  max-width: none;
}

.landing-page--servicio .lm-support-chat-mock__body {
  max-height: 9.5rem;
  overflow: hidden;
}

.landing-page--servicio .lm-saas-pricing-note {
  padding: 0.9rem 1rem;
}

.landing-page--servicio .lm-legal-callout {
  padding: 0.85rem 1rem;
  font-size: 0.84rem;
}

@media (min-width: 992px) {
  .landing-page--servicio .lm-section--servicio-dual .col-lg-6 + .col-lg-6 {
    border-left: 1px solid rgba(148, 163, 184, 0.22);
    padding-left: 1.25rem;
  }
}

/* --- Marketing: tipografía y ritmo unificados (2025-06) --- */
.landing-modern .lm-section {
  padding-top: 2.75rem;
  padding-bottom: 2.75rem;
}

.lm-section--compact {
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}

.lm-section--tight {
  padding-top: 1.25rem !important;
  padding-bottom: 1.25rem !important;
}

.lm-promo-stats {
  padding-top: 0.45rem !important;
  padding-bottom: 0.45rem !important;
}

.lm-promo-stats__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 0.25rem 0.85rem;
  max-width: 44rem;
  margin-inline: auto;
}

.lm-promo-stats__item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  min-width: 4.25rem;
  max-width: 5.5rem;
  text-align: center;
}

.lm-promo-stats__item i {
  font-size: 1.25rem;
  color: #0284c7;
  line-height: 1;
}

.lm-promo-stats__item span {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  line-height: 1.2;
}

.lm-promo-stats__item.lm-stat--pulse i {
  animation: lm-stat-glow 2.5s ease-in-out infinite;
}

@media (min-width: 768px) {
  .lm-promo-stats__list {
    flex-wrap: nowrap;
    gap: 0 0.65rem;
    justify-content: space-between;
  }

  .lm-promo-stats__item {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
  }
}

.lm-band-title {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.lm-comms-band .lm-band-title,
.lm-int-band .lm-band-title {
  color: #fff;
}

.lm-int-band .lm-band-title {
  color: inherit;
}

.landing-page .lm-page-head h1.text-white,
.landing-page .lm-page-head .landing-hero-display--page {
  font-size: clamp(1.35rem, 3.2vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-shadow: none;
}

.landing-page .lm-page-head .lm-kicker,
.lm-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 0.45rem;
}

.lm-section-lead {
  font-size: 1rem;
  line-height: 1.5;
}

.lm-depth-page .lm-section-title,
.lm-depth-feature h3,
.lm-cap-card h3,
.lm-portal-tile h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.lm-depth-page h3.h6.text-uppercase.text-muted {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.lm-pillar h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.lm-pillar p {
  font-size: 0.92rem;
  line-height: 1.45;
}

.lm-depth-visual--hero .lm-depth-visual__img {
  max-height: 11rem;
  object-fit: cover;
  border-radius: 0.65rem;
}

.lm-home-depth .lm-section-title {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
}

.lm-support-band__title {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lm-trust-section--home {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.lm-page-home .lm-land-product-ui {
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
}

.lm-page-home .lm-land-product-ui__copy .lm-section-title {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
}

.lm-page-home .lm-land-product-ui__copy .lm-section-lead {
  font-size: 0.92rem;
  line-height: 1.45;
}

.lm-page-home .lm-land-product-ui__media .lm-land-product-ui__panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.lm-page-home .lm-land-product-ui__media .lm-video-shell {
  margin-top: 0;
}

.lm-page-home .lm-land-product-ui__media .lm-video-shell .lm-yt-facade {
  flex: 1 1 auto;
}

.lm-page-home .lm-land-product-ui__media .lm-ui-showcase {
  flex: 1 1 auto;
}

.lm-page-home .lm-land-product-ui__media .lm-ui-showcase__viewport {
  aspect-ratio: 16 / 9;
}

.lm-page-home .lm-land-product-ui__media .lm-ui-showcase__footer {
  margin-top: auto;
}

.lm-photo-thumb {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.1);
}

.lm-photo-thumb img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: cover;
}

.lm-depth-aside .lm-photo-thumb {
  margin-bottom: 0.75rem;
}

/* /modules/ — ritmo vertical y tipografía */
.lm-page-modules {
  --mod-section-y: 3rem;
  --mod-title: 1.28rem;
  --mod-body: 0.9rem;
  --mod-emphasis: 0.9rem;
}

.landing-modern.lm-page-modules > .lm-section {
  padding-top: var(--mod-section-y) !important;
  padding-bottom: var(--mod-section-y) !important;
}

.lm-page-modules h1,
.lm-page-modules h2.lm-section-title,
.lm-page-modules h2.lm-modules-hero__subtitle,
.lm-page-modules .lm-section-title {
  font-size: var(--mod-title) !important;
  line-height: 1.22 !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
}

.lm-page-modules p,
.lm-page-modules .lm-section-lead,
.lm-page-modules .lm-check-lines li,
.lm-page-modules .lm-modules-trail__lead,
.lm-page-modules .lm-portal-trail li,
.lm-page-modules .lm-portal-trail li a,
.lm-page-modules .lm-module-families__lead {
  font-size: var(--mod-body) !important;
  line-height: 1.45 !important;
  font-weight: 400 !important;
}

.lm-page-modules .lm-section-lead,
.lm-page-modules .lm-check-lines li,
.lm-page-modules .lm-module-families__lead {
  color: #475569;
}

.lm-page-modules .lm-modules-trail__lead,
.lm-page-modules .lm-modules-trail .lm-portal-trail li,
.lm-page-modules .lm-modules-trail .lm-portal-trail li a {
  color: rgba(255, 255, 255, 0.65);
}

.lm-page-modules .lm-kicker,
.lm-page-modules .lm-module-families__title {
  font-size: var(--mod-emphasis) !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
}

.lm-page-modules .lm-kicker {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.lm-page-modules .lm-modules-hero__subtitle {
  color: #0b1220;
}

.lm-page-modules .lm-module-families__title {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
