@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bs-body-font-family: 'Outfit', sans-serif;
    --bs-font-sans-serif: 'Outfit', sans-serif;
}

:root,
[data-bs-theme="dark"] {
    --bs-body-bg: #0b1326;
    --bs-body-color: #dae2fd;
    --anihta-neon: #60a5fa;
    --anihta-dark: #171f33;
    --anihta-surface: #222a3d;
    --anihta-borde: rgba(255, 255, 255, 0.06);
    --anihta-borde-fuerte: rgba(255, 255, 255, 0.12);
    --anihta-texto-muted: #94a3b8;
}

[data-bs-theme="light"] {
    --bs-body-bg: #f8fafc;
    --bs-body-color: #0f172a;
    --anihta-neon: #2563eb;
    --anihta-neon-rgb: 37, 99, 235;
    --anihta-dark: #ffffff;
    --anihta-surface: #f1f5f9;
    --anihta-borde: #e2e8f0;
    --anihta-borde-fuerte: #cbd5e1;
    --anihta-texto-muted: #64748b;
}

body {
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
.font-headline {
    font-family: 'Outfit', sans-serif;
}

/* Custom Colors & Utilities */
.text-neon {
    color: var(--anihta-neon) !important;
}

.bg-neon {
    background-color: var(--anihta-neon) !important;
}

.btn-neon {
    background-color: var(--anihta-neon);
    color: #ffffff;
    font-weight: 700;
    border: none;
    transition: all 0.3s ease;
}

.btn-neon:hover {
    background-color: #3b82f6;
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.4);
    color: #ffffff;
}

.btn-outline-neon {
    border: 1px solid var(--anihta-neon);
    color: var(--anihta-neon);
    font-weight: 600;
}

.btn-outline-neon:hover {
    background-color: var(--anihta-neon);
    color: #ffffff;
}

/* Background Grid Effect */
.tech-grid {
    background-image: linear-gradient(to right, rgba(96, 165, 250, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(96, 165, 250, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(34, 42, 61, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Navbar */
.navbar {
    background-color: rgba(11, 19, 38, 0.85) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-link {
    color: #94a3b8 !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--anihta-neon) !important;
}

/* Botón de alternar tema (Index & Navbar) */
.anihta-btn-tema {
    color: #94a3b8 !important;
    font-size: 1.15rem;
    line-height: 1;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    text-decoration: none !important;
    border: 1px solid transparent;
}

.anihta-btn-tema:hover {
    color: var(--anihta-neon) !important;
    background-color: rgba(96, 165, 250, 0.1);
    border-color: rgba(96, 165, 250, 0.2);
    transform: rotate(15deg);
}

/* Accordion Customization */
.accordion-item {
    background-color: var(--anihta-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1rem;
    border-radius: 1rem !important;
    overflow: hidden;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.accordion-button {
    background-color: var(--anihta-dark);
    color: white;
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background-color: var(--anihta-surface);
    color: var(--anihta-neon);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(96, 165, 250, 0.3);
}

.accordion-button::after {
    filter: invert(1);
}

/* Form Controls */
.form-control {
    background-color: var(--anihta-surface);
    border: 1px solid #334155;
    color: white;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.form-control:focus {
    background-color: var(--anihta-surface);
    border-color: var(--anihta-neon);
    color: white;
    box-shadow: 0 0 0 0.25rem rgba(96, 165, 250, 0.25);
}

.form-control::placeholder {
    color: #64748b;
}

.bg-body {
    --bs-bg-opacity: 1;
    background-color: transparent !important;
}

/* =====================================================================
 * MODO CLARO (data-bs-theme="light") - INDEX Y COMPONENTES
 * ===================================================================== */
[data-bs-theme="light"] h1.text-white,
[data-bs-theme="light"] h2.text-white,
[data-bs-theme="light"] h3.text-white,
[data-bs-theme="light"] h4.text-white,
[data-bs-theme="light"] h5.text-white,
[data-bs-theme="light"] h6.text-white,
[data-bs-theme="light"] .navbar-brand.text-white,
[data-bs-theme="light"] .navbar-toggler .material-symbols-outlined.text-white {
    color: #0f172a !important;
}

[data-bs-theme="light"] .text-secondary {
    color: #64748b !important;
}

[data-bs-theme="light"] .navbar {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
}

[data-bs-theme="light"] .nav-link {
    color: #475569 !important;
}

[data-bs-theme="light"] .nav-link:hover,
[data-bs-theme="light"] .nav-link.active {
    color: #1d4ed8 !important;
}

[data-bs-theme="light"] .anihta-btn-tema {
    color: #475569 !important;
}

[data-bs-theme="light"] .anihta-btn-tema:hover {
    color: #1d4ed8 !important;
    background-color: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}

[data-bs-theme="light"] .tech-grid {
    background-image: linear-gradient(to right, rgba(37, 99, 235, 0.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(37, 99, 235, 0.07) 1px, transparent 1px);
    background-size: 40px 40px;
}

[data-bs-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-bs-theme="light"] .glass-card .bg-dark {
    background-color: #e2e8f0 !important;
    color: #1e293b !important;
}

[data-bs-theme="light"] .glass-card .border-secondary {
    border-color: rgba(15, 23, 42, 0.08) !important;
}

[data-bs-theme="light"] .glass-card .text-white:not(.material-symbols-outlined) {
    color: #0f172a !important;
}

[data-bs-theme="light"] .btn-outline-light {
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
}

[data-bs-theme="light"] .btn-outline-light:hover {
    background-color: #0f172a !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
}

[data-bs-theme="light"] #api-developers {
    background-color: rgba(241, 245, 249, 0.7) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

[data-bs-theme="light"] #como-funciona .rounded-circle {
    background-color: #ffffff !important;
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.08) !important;
}

[data-bs-theme="light"] #como-funciona .border-secondary {
    border-color: rgba(15, 23, 42, 0.12) !important;
}

[data-bs-theme="light"] #casos {
    background-color: #f1f5f9 !important;
}

[data-bs-theme="light"] #casos .bg-body {
    background-color: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 6px 20px -4px rgba(0, 0, 0, 0.05);
}

[data-bs-theme="light"] .accordion-item {
    background-color: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

[data-bs-theme="light"] .accordion-button {
    background-color: #ffffff;
    color: #0f172a;
}

[data-bs-theme="light"] .accordion-button:not(.collapsed) {
    background-color: #f8fafc;
    color: #1d4ed8;
}

[data-bs-theme="light"] .accordion-button::after {
    filter: none;
}

[data-bs-theme="light"] .accordion-body {
    color: #475569 !important;
}

[data-bs-theme="light"] .form-control {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
}

[data-bs-theme="light"] .form-control:focus {
    background-color: #ffffff;
    border-color: var(--anihta-neon);
    color: #0f172a;
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.2);
}

[data-bs-theme="light"] .form-control::placeholder {
    color: #94a3b8;
}

[data-bs-theme="light"] .form-label {
    color: #475569 !important;
}

[data-bs-theme="light"] footer.bg-black {
    background-color: #f1f5f9 !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

[data-bs-theme="light"] footer h5.text-white {
    color: #0f172a !important;
}

[data-bs-theme="light"] footer .text-secondary {
    color: #64748b !important;
}

[data-bs-theme="light"] footer .border-secondary {
    border-color: rgba(15, 23, 42, 0.08) !important;
}

[data-bs-theme="light"] .hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .anihta-idiomas .dropdown-menu {
    background-color: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .anihta-idiomas .dropdown-item {
    color: #1e293b;
}

[data-bs-theme="light"] .anihta-idiomas .dropdown-item:hover,
[data-bs-theme="light"] .anihta-idiomas .dropdown-item:focus {
    background-color: #f1f5f9;
    color: #1d4ed8;
}

[data-bs-theme="light"] .anihta-idiomas .dropdown-item.active {
    background-color: rgba(96, 165, 250, 0.18);
    color: #1d4ed8;
    font-weight: 600;
}
/* =====================================================================
 * PLATAFORMA (Sesion, SesionEspacioTrabajo y SISTEMA) 20261016 ATC
 * Mismo diseño de Anihta (fondo #0b1326, neón #60a5fa, tarjetas de cristal, Plus Jakarta Sans / Inter)
 * con Bootstrap (CSS/Bootstrap.css). Todo va dentro de body.anihta-sistema para no tocar el index.
 * Las clases avtar, bg-light-*, btn-light-*, btn-link-* y table-card las generan los js de SISTEMA.
 * ===================================================================== */
body.anihta-sistema {
    --anihta-neon-rgb: 96, 165, 250;
    --anihta-texto: #dae2fd;
    --anihta-texto-muted: #94a3b8;
    --anihta-borde: rgba(255, 255, 255, 0.06);
    --bs-primary: #60a5fa;
    --bs-primary-rgb: 96, 165, 250;
    --bs-link-color: #60a5fa;
    --bs-link-hover-color: #3b82f6;
    --bs-border-color: #334155;
    --bs-secondary-color: #94a3b8;
    --bs-emphasis-color: #ffffff;
    background-color: var(--bs-body-bg);
    color: var(--anihta-texto);
    min-height: 100vh;
}

body.anihta-sistema h1, body.anihta-sistema h2, body.anihta-sistema h3,
body.anihta-sistema h4, body.anihta-sistema h5, body.anihta-sistema h6 {
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
}

body.anihta-sistema a { color: var(--anihta-neon); }
body.anihta-sistema a:hover { color: #3b82f6; }
body.anihta-sistema .text-muted, body.anihta-sistema .text-secondary { color: var(--anihta-texto-muted) !important; }
body.anihta-sistema .text-primary, body.anihta-sistema .link-primary { color: var(--anihta-neon) !important; }
body.anihta-sistema .text-body { color: var(--anihta-texto) !important; }
body.anihta-sistema .bg-white, body.anihta-sistema .bg-light { background-color: var(--anihta-surface) !important; }
body.anihta-sistema hr { border-color: var(--anihta-borde); opacity: 1; }
body.anihta-sistema .min-w-0 { min-width: 0; }
body.anihta-sistema .f-12 { font-size: 12px; }
body.anihta-sistema .hei-75 { height: 75px; }

/* Botones de Anihta */
.btn-anihta, body.anihta-sistema .btn-primary {
    background-color: var(--anihta-neon);
    border-color: var(--anihta-neon);
    color: #ffffff;
    font-weight: 700;
}
.btn-anihta:hover, body.anihta-sistema .btn-primary:hover,
body.anihta-sistema .btn-primary:focus, body.anihta-sistema .btn-primary:active {
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.4);
}
body.anihta-sistema .btn-primary:disabled { background-color: var(--anihta-neon); border-color: var(--anihta-neon); color: #ffffff; opacity: .6; }
.btn-outline-anihta, body.anihta-sistema .btn-outline-primary {
    border: 1px solid var(--anihta-neon);
    color: var(--anihta-neon);
    background: transparent;
    font-weight: 600;
}
.btn-outline-anihta:hover, body.anihta-sistema .btn-outline-primary:hover {
    background-color: var(--anihta-neon);
    color: #ffffff;
}
body.anihta-sistema .btn-light, body.anihta-sistema .btn-light-secondary, body.anihta-sistema .btn-secondary {
    background-color: var(--anihta-surface);
    border-color: #334155;
    color: var(--anihta-texto);
}
body.anihta-sistema .btn-light:hover, body.anihta-sistema .btn-light-secondary:hover, body.anihta-sistema .btn-secondary:hover {
    background-color: #2d3750;
    color: #ffffff;
}
body.anihta-sistema .btn-light-primary { background-color: rgba(96, 165, 250, 0.1); border-color: transparent; color: var(--anihta-neon); }
body.anihta-sistema .btn-light-primary:hover { background-color: var(--anihta-neon); color: #ffffff; }
body.anihta-sistema .btn-light-danger { background-color: rgba(239, 68, 68, 0.12); border-color: transparent; color: #f87171; }
body.anihta-sistema .btn-light-danger:hover { background-color: #ef4444; color: #ffffff; }
body.anihta-sistema .btn-light-success { background-color: rgba(34, 197, 94, 0.12); border-color: transparent; color: #4ade80; }
body.anihta-sistema .btn-light-success:hover { background-color: #22c55e; color: #ffffff; }
body.anihta-sistema .btn-link-primary, body.anihta-sistema .btn-link-secondary, body.anihta-sistema .btn-link-danger {
    background: transparent;
    border-color: transparent;
}
body.anihta-sistema .btn-link-primary { color: var(--anihta-neon); }
body.anihta-sistema .btn-link-secondary { color: var(--anihta-texto-muted); }
body.anihta-sistema .btn-link-danger { color: #f87171; }
body.anihta-sistema .btn-link-primary:hover { background-color: rgba(96, 165, 250, 0.1); color: var(--anihta-neon); }
body.anihta-sistema .btn-link-secondary:hover { background-color: rgba(255, 255, 255, 0.06); color: #ffffff; }
body.anihta-sistema .btn-link-danger:hover { background-color: rgba(239, 68, 68, 0.12); color: #f87171; }
body.anihta-sistema .btn-icon { display: inline-flex; align-items: center; justify-content: center; padding: 0; }

/* Tarjetas: cristal de Anihta */
.card-anihta, body.anihta-sistema .card {
    background: rgba(34, 42, 61, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--anihta-borde);
    border-radius: 1rem;
    color: var(--anihta-texto);
    margin-bottom: 1.5rem;
}
body.anihta-sistema .card-header, body.anihta-sistema .card-footer {
    background: transparent;
    border-color: var(--anihta-borde);
    padding: 1rem 1.25rem;
}
body.anihta-sistema .card-body { padding: 1.25rem; }
body.anihta-sistema .table-card .card-body { padding: 0; }
body.anihta-sistema .table-card .card-body .table > :not(caption) > * > * { padding: .85rem 1.25rem; }

/* Tablas */
body.anihta-sistema .table {
    --bs-table-bg: transparent;
    --bs-table-color: #b9cac2;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.03);
    --bs-table-hover-color: #ffffff;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
    --bs-table-striped-color: #b9cac2;
    color: #b9cac2;
    border-color: var(--anihta-borde);
}
body.anihta-sistema .table thead th {
    color: var(--anihta-texto-muted);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-weight: 700;
}

/* Formularios */
body.anihta-sistema .form-select, body.anihta-sistema .input-group-text {
    background-color: var(--anihta-surface);
    border: 1px solid #334155;
    color: #ffffff;
}
body.anihta-sistema .form-select:focus {
    border-color: var(--anihta-neon);
    box-shadow: 0 0 0 0.25rem rgba(96, 165, 250, 0.25);
}
body.anihta-sistema .form-label, body.anihta-sistema .form-check-label { color: var(--anihta-texto-muted); }
body.anihta-sistema .form-control:disabled, body.anihta-sistema .form-control[readonly] { background-color: var(--anihta-dark); color: var(--anihta-texto-muted); }
body.anihta-sistema .form-check-input:checked { background-color: var(--anihta-neon); border-color: var(--anihta-neon); }

/* Modales, menús desplegables, listas y alertas */
body.anihta-sistema .modal-content {
    background-color: var(--anihta-dark);
    border: 1px solid var(--anihta-borde);
    border-radius: 1rem;
    color: var(--anihta-texto);
}
body.anihta-sistema .modal-header, body.anihta-sistema .modal-footer { border-color: var(--anihta-borde); }
body.anihta-sistema .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }
body.anihta-sistema .dropdown-menu {
    background-color: var(--anihta-dark);
    border: 1px solid var(--anihta-borde);
    border-radius: .75rem;
    color: var(--anihta-texto);
}
body.anihta-sistema .dropdown-item { color: var(--anihta-texto); }
body.anihta-sistema .dropdown-item:hover, body.anihta-sistema .dropdown-item:focus { background-color: var(--anihta-surface); color: var(--anihta-neon); }
body.anihta-sistema .dropdown-item.active { background-color: rgba(96, 165, 250, 0.12); color: var(--anihta-neon); }
body.anihta-sistema .list-group-item {
    background-color: transparent;
    border-color: var(--anihta-borde);
    color: var(--anihta-texto);
}
body.anihta-sistema .alert {
    border-radius: .75rem;
    padding: .75rem 1rem;
    font-size: .875rem;
    line-height: 1.45;
    border: 1px solid transparent;
}
body.anihta-sistema .alert-primary { background-color: rgba(96, 165, 250, 0.12) !important; border-color: rgba(96, 165, 250, 0.3) !important; color: #93c5fd !important; }
body.anihta-sistema .alert-warning { background-color: rgba(250, 204, 21, 0.12) !important; border-color: rgba(250, 204, 21, 0.35) !important; color: #fde047 !important; }
body.anihta-sistema .alert-danger { background-color: rgba(248, 113, 113, 0.12) !important; border-color: rgba(248, 113, 113, 0.35) !important; color: #fca5a5 !important; }
body.anihta-sistema .alert-info { background-color: rgba(56, 189, 248, 0.12) !important; border-color: rgba(56, 189, 248, 0.35) !important; color: #7dd3fc !important; }
body.anihta-sistema .alert-success { background-color: rgba(74, 222, 128, 0.12) !important; border-color: rgba(74, 222, 128, 0.35) !important; color: #86efac !important; }

[data-bs-theme="light"] body.anihta-sistema .alert-primary { background-color: #eff6ff !important; border-color: #bfdbfe !important; color: #1d4ed8 !important; }
[data-bs-theme="light"] body.anihta-sistema .alert-warning { background-color: #fefce8 !important; border-color: #fef08a !important; color: #854d0e !important; }
[data-bs-theme="light"] body.anihta-sistema .alert-danger { background-color: #fef2f2 !important; border-color: #fecaca !important; color: #991b1b !important; }
[data-bs-theme="light"] body.anihta-sistema .alert-info { background-color: #f0f9ff !important; border-color: #bae6fd !important; color: #075985 !important; }
[data-bs-theme="light"] body.anihta-sistema .alert-success { background-color: #f0fdf4 !important; border-color: #bbf7d0 !important; color: #166534 !important; }
body.anihta-sistema .nav-tabs { border-color: var(--anihta-borde); }
body.anihta-sistema .nav-tabs .nav-link { color: var(--anihta-texto-muted) !important; border: 0; }
body.anihta-sistema .nav-tabs .nav-link.active { background: transparent; color: var(--anihta-neon) !important; border-bottom: 2px solid var(--anihta-neon); }
body.anihta-sistema .progress { background-color: #3a4a44; }
body.anihta-sistema .progress-bar { background-color: var(--anihta-neon); }
body.anihta-sistema .placeholder { background-color: #334155; }

/* Avatares e iconos (avtar) */
body.anihta-sistema .avtar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 18px;
    border-radius: 12px;
    flex-shrink: 0;
}
body.anihta-sistema .avtar-xs { width: 30px; height: 30px; font-size: 13px; }
body.anihta-sistema .avtar-s { width: 36px; height: 36px; font-size: 14px; }
body.anihta-sistema .avtar-l { width: 56px; height: 56px; font-size: 22px; }
body.anihta-sistema .avtar-xl { width: 72px; height: 72px; font-size: 28px; }
body.anihta-sistema .avtar.rounded-circle { border-radius: 50%; }
body.anihta-sistema img.user-avtar { width: 36px; height: 36px; object-fit: cover; }

/* Fondos suaves y etiquetas */
body.anihta-sistema .bg-light-primary { background-color: rgba(96, 165, 250, 0.1) !important; color: var(--anihta-neon) !important; }
body.anihta-sistema .bg-light-secondary { background-color: rgba(148, 163, 184, 0.12) !important; color: #cbd5e1 !important; }
body.anihta-sistema .bg-light-success { background-color: rgba(34, 197, 94, 0.12) !important; color: #4ade80 !important; }
body.anihta-sistema .bg-light-danger { background-color: rgba(239, 68, 68, 0.12) !important; color: #f87171 !important; }
body.anihta-sistema .bg-light-warning { background-color: rgba(234, 179, 8, 0.12) !important; color: #facc15 !important; }
body.anihta-sistema .bg-light-info { background-color: rgba(56, 189, 248, 0.12) !important; color: #38bdf8 !important; }
body.anihta-sistema .bg-primary { background-color: var(--anihta-neon) !important; color: #ffffff; }
body.anihta-sistema .badge.bg-primary { color: #ffffff; }

/* Layout: menú lateral y contenido (como SISTEMA de Anihta) */
body.anihta-sistema .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1030;
    display: flex;
    flex-direction: column;
    background-color: var(--anihta-dark);
    border-right: 1px solid var(--anihta-borde);
    overflow-y: auto;
}
body.anihta-sistema .sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem .85rem;
    margin-bottom: .25rem;
    border-radius: .75rem;
}
body.anihta-sistema .sidebar .nav-link i { width: 20px; text-align: center; }
body.anihta-sistema .sidebar .nav-link:hover { background-color: rgba(255, 255, 255, 0.03); }
body.anihta-sistema .sidebar .nav-link.active { background-color: rgba(96, 165, 250, 0.1); }
body.anihta-sistema .sidebar-usuario {
    background: rgba(34, 42, 61, 0.6);
    border: 1px solid var(--anihta-borde);
    border-radius: 1rem;
}
body.anihta-sistema .sidebar-usuario a { color: var(--anihta-texto-muted); text-decoration: none; display: flex; align-items: center; gap: .6rem; padding: .35rem 0; }
body.anihta-sistema .sidebar-usuario a:hover { color: var(--anihta-neon); }
body.anihta-sistema .anihta-logo { height: 35px; width: auto; object-fit: contain; transition: filter .25s ease; }
body.anihta-sistema .anihta-topbar {
    border-bottom: 1px solid var(--anihta-borde);
}
body.anihta-sistema .anihta-topbar .btn-topbar {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .75rem;
    color: var(--anihta-texto-muted);
    background: transparent;
    border: 1px solid var(--anihta-borde);
}
body.anihta-sistema .anihta-topbar .btn-topbar:hover { color: var(--anihta-neon); border-color: rgba(96, 165, 250, 0.3); }
body.anihta-sistema .dropdown-user-profile { min-width: 300px; }
body.anihta-sistema .breadcrumb { --bs-breadcrumb-divider-color: var(--anihta-texto-muted); }
body.anihta-sistema .breadcrumb-item, body.anihta-sistema .breadcrumb-item.active { color: var(--anihta-texto-muted); }
body.anihta-sistema .anihta-pie { border-top: 1px solid var(--anihta-borde); color: var(--anihta-texto-muted); }
body.anihta-sistema .anihta-pie a { color: var(--anihta-texto-muted); text-decoration: none; }
body.anihta-sistema .anihta-pie a:hover { color: var(--anihta-neon); }
body.anihta-sistema .welcome-banner {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.18), rgba(59, 130, 246, 0.12)) !important;
    border: 1px solid rgba(96, 165, 250, 0.2);
}
@media (max-width: 767.98px) {
    body.anihta-sistema .sidebar { width: 280px; }
    body.anihta-sistema .sidebar:not(.show) { display: none; }
}

/* Sesion y SesionEspacioTrabajo */
body.anihta-sistema.anihta-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(to right, rgba(96, 165, 250, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(96, 165, 250, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Selects con Choices.js (inicializarChoice de Plataforma.js) con el diseño de Anihta */
body.anihta-sistema .choices { position: relative; margin-bottom: 0; font-size: .95rem; }
body.anihta-sistema .choices__inner {
    display: block;
    width: 100%;
    min-height: 38px;
    padding: .375rem .75rem;
    background-color: var(--anihta-surface);
    border: 1px solid #334155;
    border-radius: .375rem;
    color: #ffffff;
}
body.anihta-sistema .choices.is-focused .choices__inner,
body.anihta-sistema .choices.is-open .choices__inner { border-color: var(--anihta-neon); }
body.anihta-sistema .choices__list { margin: 0; padding-left: 0; list-style: none; }
body.anihta-sistema .choices__list--single { display: inline-block; width: 100%; padding: 0 1.5rem 0 0; }
body.anihta-sistema .choices[data-type*=select-one] { cursor: pointer; }
body.anihta-sistema .choices[data-type*=select-one]::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    margin-top: -2px;
    border: 5px solid transparent;
    border-top-color: var(--anihta-texto-muted);
    pointer-events: none;
}
body.anihta-sistema .choices[data-type*=select-one].is-open::after { margin-top: -7px; border-top-color: transparent; border-bottom-color: var(--anihta-texto-muted); }
body.anihta-sistema .choices__list--dropdown, body.anihta-sistema .choices__list[aria-expanded] {
    display: none;
    position: absolute;
    z-index: 1060;
    width: 100%;
    margin-top: .25rem;
    background-color: var(--anihta-dark);
    border: 1px solid var(--anihta-borde);
    border-radius: .75rem;
    overflow: hidden;
    word-break: break-word;
}
body.anihta-sistema .choices__list--dropdown.is-active, body.anihta-sistema .choices__list[aria-expanded].is-active { display: block; }
body.anihta-sistema .choices__list--dropdown .choices__list { max-height: 300px; overflow: auto; }
body.anihta-sistema .choices__list--dropdown .choices__item { padding: .5rem .75rem; color: var(--anihta-texto); }
body.anihta-sistema .choices__list--dropdown .choices__item--selectable.is-highlighted { background-color: var(--anihta-surface); color: var(--anihta-neon); }
body.anihta-sistema .choices__input {
    width: 100%;
    padding: .5rem .75rem;
    background-color: var(--anihta-surface);
    border: 0;
    border-bottom: 1px solid var(--anihta-borde);
    color: #ffffff;
}
body.anihta-sistema .choices__input:focus { outline: none; }
body.anihta-sistema .choices__placeholder { opacity: .6; }
body.anihta-sistema .choices[data-type*=select-multiple] .choices__item {
    display: inline-block;
    margin: 0 .25rem .25rem 0;
    padding: .15rem .5rem;
    border-radius: 1rem;
    background-color: rgba(96, 165, 250, 0.12);
    color: var(--anihta-neon);
    font-size: .85rem;
}
body.anihta-sistema .is-hidden, body.anihta-sistema .choices__input.is-hidden { display: none; }

/* SesionEspacioTrabajo.php: variables de CSS/SesionEspacioTrabajo.css con los colores de Anihta */
body.anihta-sistema.esv-auth-page {
    --esv-primario-rgb: 96, 165, 250;
    --esv-superficie: rgba(34, 42, 61, 0.6);
    --esv-superficie-alt: #171f33;
    --esv-borde: rgba(255, 255, 255, 0.06);
    --esv-texto: #ffffff;
    --esv-texto-suave: #94a3b8;
    --esv-sombra: 0 18px 40px rgba(0, 0, 0, 0.4);
    --esv-sombra-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
    background: var(--bs-body-bg);
}

/* Aviso de privacidad y Términos y condiciones (body.anihta-legal) con el diseño de Anihta 20261016 ATC */
body.anihta-legal { background-color: var(--bs-body-bg); color: var(--bs-body-color); }
body.anihta-legal .anihta-legal-ancho { max-width: 860px; }
body.anihta-legal .anihta-legal-borde { border-color: rgba(255, 255, 255, 0.05) !important; }
body.anihta-legal .anihta-legal-muted { color: #b9cac2 !important; }
body.anihta-legal .anihta-legal-texto { color: #94a3b8; font-size: 1.1rem; line-height: 1.7; }
body.anihta-legal .section-indicator {
    display: inline-block;
    width: 0.5rem;
    height: 2rem;
    margin-right: 0.75rem;
    border-radius: 0.25rem;
    background-color: var(--anihta-neon);
    flex-shrink: 0;
}
body.anihta-legal a { color: var(--anihta-neon); text-decoration: none; }
body.anihta-legal a:hover { opacity: 0.85; text-decoration: underline; }
body.anihta-legal .navbar-brand, body.anihta-legal .btn { text-decoration: none !important; }
body.anihta-legal .dropdown-menu-dark { background-color: var(--anihta-dark); border: 1px solid rgba(255, 255, 255, 0.06); }
body.anihta-legal .dropdown-menu-dark .dropdown-item.active { background-color: rgba(96, 165, 250, 0.12); color: var(--anihta-neon); }

/* Sesion.php (body.anihta-sesion): mismo diseño del index 20261016 ATC */
body.anihta-sesion { background-color: var(--bs-body-bg); color: var(--bs-body-color); }
body.anihta-sesion .navbar { position: relative; z-index: 3; }
body.anihta-sesion main { z-index: 1; }
body.anihta-sesion .anihta-sesion-degradado {
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at 85% 40%, rgba(96, 165, 250, 0.10), transparent 60%),
        linear-gradient(180deg, transparent 0%, var(--bs-body-bg) 100%);
    pointer-events: none;
}
body.anihta-sesion .anihta-sesion-badge { background-color: rgba(96, 165, 250, 0.1); letter-spacing: .05em; }
body.anihta-sesion .border-neon { border-color: rgba(96, 165, 250, 0.4) !important; }
body.anihta-sesion .anihta-sesion-icono {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border-radius: 14px;
    color: var(--anihta-neon);
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.25);
}
body.anihta-sesion .anihta-sesion-tarjeta {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}
body.anihta-sesion .anihta-sesion-borde { border-color: rgba(255, 255, 255, 0.05) !important; }
body.anihta-sesion h1, body.anihta-sesion h2, body.anihta-sesion h3 { font-family: 'Outfit', sans-serif; }
body.anihta-sesion .text-secondary { color: #94a3b8 !important; }
body.anihta-sesion .form-label { color: #b9cac2; font-weight: 500; }
body.anihta-sesion .form-control { background-color: var(--anihta-surface); border: 1px solid #334155; color: #ffffff; }
body.anihta-sesion .form-control:focus {
    background-color: var(--anihta-surface);
    border-color: var(--anihta-neon);
    color: #ffffff;
    box-shadow: 0 0 0 0.25rem rgba(96, 165, 250, 0.25);
}
body.anihta-sesion .form-control::placeholder { color: #64748b; }
body.anihta-sesion .form-control:-webkit-autofill {
    -webkit-text-fill-color: #ffffff;
    -webkit-box-shadow: 0 0 0 1000px var(--anihta-surface) inset;
    caret-color: #ffffff;
}
/* Contraseña con el ojo pegado a la derecha (input-group de Bootstrap) */
body.anihta-sesion .esv-password .form-control { border-right: 0; }
body.anihta-sesion .esv-password .esv-ver-password {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.25rem;
    background-color: var(--anihta-surface);
    border: 1px solid #334155;
    border-left: 0;
    color: #94a3b8;
    box-shadow: none;
}
body.anihta-sesion .esv-password .esv-ver-password:hover { color: var(--anihta-neon); background-color: var(--anihta-surface); }
body.anihta-sesion .esv-password .esv-ver-password:focus-visible { outline: none; color: var(--anihta-neon); }
body.anihta-sesion .esv-password:focus-within .form-control,
body.anihta-sesion .esv-password:focus-within .esv-ver-password { border-color: var(--anihta-neon); }
body.anihta-sesion .esv-password:focus-within { border-radius: .5rem; box-shadow: 0 0 0 0.25rem rgba(96, 165, 250, 0.25); }
body.anihta-sesion .esv-password .form-control:focus { box-shadow: none; }
body.anihta-sesion .esv-codigo-input { letter-spacing: 0.5em; text-align: center; font-weight: 600; }
body.anihta-sesion a { color: var(--anihta-neon); text-decoration: none; }
body.anihta-sesion a:hover { opacity: 0.85; text-decoration: underline; }
body.anihta-sesion .navbar-brand, body.anihta-sesion .btn { text-decoration: none !important; }
body.anihta-sesion .btn-neon:disabled { background-color: var(--anihta-neon); color: #ffffff; opacity: .6; }
body.anihta-sesion .alert-warning { background-color: rgba(234, 179, 8, 0.1); border-color: rgba(234, 179, 8, 0.3); color: #fde68a; }
body.anihta-sesion .dropdown-menu-dark { background-color: var(--anihta-dark); border: 1px solid rgba(255, 255, 255, 0.06); }
body.anihta-sesion .dropdown-menu-dark .dropdown-item.active { background-color: rgba(96, 165, 250, 0.12); color: var(--anihta-neon); }

/* Selector de idioma (PARTES/Idiomas.php): mismo diseño en index, Sesion, SesionEspacioTrabajo, páginas legales y SISTEMA 20261016 ATC */
.anihta-idiomas .nav-link { color: #94a3b8 !important; font-weight: 500; cursor: pointer; text-decoration: none !important; }
.anihta-idiomas .nav-link:hover, .anihta-idiomas .nav-link.show { color: var(--anihta-neon) !important; }
.anihta-idiomas .dropdown-menu {
    background-color: var(--anihta-dark);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: .75rem;
    padding: .35rem;
}
.anihta-idiomas .dropdown-item { color: #dae2fd; border-radius: .5rem; text-decoration: none !important; }
.anihta-idiomas .dropdown-item:hover, .anihta-idiomas .dropdown-item:focus { background-color: var(--anihta-surface); color: var(--anihta-neon); }
.anihta-idiomas .dropdown-item.active { background-color: rgba(96, 165, 250, 0.12); color: var(--anihta-neon); }

/* =====================================================================
 * MODO CLARO (data-bs-theme="light") - PLATAFORMA, SESIÓN Y LEGAL
 * ===================================================================== */
[data-bs-theme="light"] body.anihta-sistema {
    --anihta-texto: #1e293b;
    --anihta-texto-muted: #64748b;
    --anihta-borde: rgba(15, 23, 42, 0.08);
    --bs-border-color: #e2e8f0;
    --bs-secondary-color: #64748b;
    --bs-emphasis-color: #0f172a;
    background-color: var(--bs-body-bg);
    color: var(--anihta-texto);
}
[data-bs-theme="light"] body.anihta-sistema h1,
[data-bs-theme="light"] body.anihta-sistema h2,
[data-bs-theme="light"] body.anihta-sistema h3,
[data-bs-theme="light"] body.anihta-sistema h4,
[data-bs-theme="light"] body.anihta-sistema h5,
[data-bs-theme="light"] body.anihta-sistema h6 {
    color: #0f172a;
}
[data-bs-theme="light"] body.anihta-sistema .card,
[data-bs-theme="light"] .card-anihta {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(15, 23, 42, 0.08);
    color: #1e293b;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}
[data-bs-theme="light"] body.anihta-sistema .sidebar {
    background-color: #ffffff;
    border-right-color: rgba(15, 23, 42, 0.08);
}
[data-bs-theme="light"] body.anihta-sistema .sidebar .nav-link {
    color: #475569;
}
[data-bs-theme="light"] body.anihta-sistema .sidebar .nav-link:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}
[data-bs-theme="light"] body.anihta-sistema .sidebar-usuario {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.08);
}
[data-bs-theme="light"] body.anihta-sistema .anihta-topbar {
    background-color: rgba(255, 255, 255, 0.9);
    border-bottom-color: rgba(15, 23, 42, 0.08);
}
[data-bs-theme="light"] body.anihta-sistema .dropdown-menu {
    background-color: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
    color: #1e293b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
[data-bs-theme="light"] body.anihta-sistema .dropdown-item {
    color: #1e293b;
}
[data-bs-theme="light"] body.anihta-sistema .modal-content {
    background-color: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
    color: #1e293b;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
[data-bs-theme="light"] body.anihta-sistema .table {
    --bs-table-color: #334155;
    --bs-table-hover-bg: rgba(0, 0, 0, 0.02);
    --bs-table-hover-color: #0f172a;
    color: #334155;
    border-color: rgba(15, 23, 42, 0.08);
}
[data-bs-theme="light"] body.anihta-sistema .btn-close {
    filter: none;
}
[data-bs-theme="light"] body.anihta-sistema .btn-light,
[data-bs-theme="light"] body.anihta-sistema .btn-secondary,
[data-bs-theme="light"] body.anihta-sistema .btn-light-secondary {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}
[data-bs-theme="light"] body.anihta-sistema .btn-light:hover,
[data-bs-theme="light"] body.anihta-sistema .btn-secondary:hover,
[data-bs-theme="light"] body.anihta-sistema .btn-light-secondary:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}
[data-bs-theme="light"] body.anihta-sistema .form-select,
[data-bs-theme="light"] body.anihta-sistema .input-group-text {
    background-color: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
}
[data-bs-theme="light"] body.anihta-sistema .choices__inner {
    background-color: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
}
[data-bs-theme="light"] body.anihta-sistema .choices__list--dropdown {
    background-color: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
[data-bs-theme="light"] body.anihta-sistema .choices__list--dropdown .choices__item {
    color: #1e293b;
}
[data-bs-theme="light"] body.anihta-sistema .choices__list--dropdown .choices__item--selectable.is-highlighted {
    background-color: #f1f5f9;
    color: #1d4ed8;
}
[data-bs-theme="light"] body.anihta-sistema .choices__input {
    background-color: #ffffff;
    border-bottom: 1px solid #cbd5e1;
    color: #0f172a;
}
[data-bs-theme="light"] body.anihta-sistema .choices[data-type*=select-multiple] .choices__item {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #1d4ed8;
}
[data-bs-theme="light"] body.anihta-sistema.esv-auth-page {
    --esv-primario-rgb: 37, 99, 235;
    --esv-superficie: #ffffff;
    --esv-superficie-alt: #f8fafc;
    --esv-borde: rgba(15, 23, 42, 0.08);
    --esv-texto: #0f172a;
    --esv-texto-suave: #475569;
    --esv-sombra: 0 18px 40px rgba(15, 23, 42, 0.06);
    --esv-sombra-sm: 0 4px 16px rgba(15, 23, 42, 0.04);
    background: var(--bs-body-bg);
}
[data-bs-theme="light"] .esv-btn-cristal {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
    color: #1e293b !important;
}
[data-bs-theme="light"] .esv-btn-cristal:hover {
    background: #f1f5f9 !important;
    color: var(--anihta-neon) !important;
}
[data-bs-theme="light"] body.anihta-sesion .text-secondary {
    color: #64748b !important;
}
[data-bs-theme="light"] body.anihta-sesion .anihta-sesion-tarjeta {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}
[data-bs-theme="light"] body.anihta-sesion .form-control {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
}
[data-bs-theme="light"] body.anihta-sesion .form-label {
    color: #475569;
}
[data-bs-theme="light"] body.anihta-sesion .esv-password .esv-ver-password {
    background-color: #ffffff;
    border-color: #cbd5e1;
    color: #64748b;
}
[data-bs-theme="light"] body.anihta-legal .anihta-legal-texto {
    color: #475569;
}
[data-bs-theme="light"] body.anihta-legal .anihta-legal-muted {
    color: #64748b !important;
}
[data-bs-theme="light"] body.anihta-legal .anihta-legal-borde {
    border-color: rgba(15, 23, 42, 0.08) !important;
}

/* =====================================================================
 * CALENDARIO Y RANGO DE FECHAS (FechasRango / DatePicker) - DARK Y LIGHT
 * ===================================================================== */

/* MODO OSCURO (Default Anihta) */
body.anihta-sistema .esv-btn-rango-fechas {
    background: #171f33 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}
body.anihta-sistema .esv-btn-rango-fechas:hover,
body.anihta-sistema .esv-btn-rango-fechas.activo {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: var(--anihta-neon) !important;
    color: var(--anihta-neon) !important;
}
body.anihta-sistema .esv-panel-fechas-rango {
    background: #171f33 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5) !important;
    color: #dae2fd !important;
}
body.anihta-sistema .esv-datepicker-box {
    background: #101828 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
body.anihta-sistema .esv-datepicker-box .text-muted {
    color: #94a3b8 !important;
}
body.anihta-sistema .system-datepicker .datepicker-panel > ul > li[data-view="month current"] {
    color: #ffffff !important;
    font-weight: 700 !important;
}
body.anihta-sistema .system-datepicker .datepicker-panel > ul > li[data-view="month prev"],
body.anihta-sistema .system-datepicker .datepicker-panel > ul > li[data-view="month next"] {
    color: #94a3b8 !important;
}
body.anihta-sistema .system-datepicker .datepicker-panel > ul > li[data-view="month prev"]:hover,
body.anihta-sistema .system-datepicker .datepicker-panel > ul > li[data-view="month next"]:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: var(--anihta-neon) !important;
}
body.anihta-sistema .system-datepicker .datepicker-panel > ul[data-view="week"] > li {
    color: #94a3b8 !important;
}
body.anihta-sistema .datepicker-panel > ul > li {
    color: #cbd5e1 !important;
    background-color: transparent !important;
}
body.anihta-sistema .datepicker-panel > ul > li:hover {
    background-color: rgba(96, 165, 250, 0.15) !important;
    color: var(--anihta-neon) !important;
}
body.anihta-sistema .datepicker-panel > ul > li.muted,
body.anihta-sistema .datepicker-panel > ul > li.muted:hover {
    color: rgba(255, 255, 255, 0.2) !important;
}
body.anihta-sistema .system-datepicker .datepicker-panel > ul > li.picked,
body.anihta-sistema .datepicker-panel > ul > li.picked {
    background-color: var(--anihta-neon) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 0 14px rgba(96, 165, 250, 0.4) !important;
}
body.anihta-sistema .system-datepicker .datepicker-panel > ul > li.highlighted,
body.anihta-sistema .datepicker-panel > ul > li.highlighted {
    border: 1px solid var(--anihta-neon) !important;
    color: var(--anihta-neon) !important;
}
body.anihta-sistema .system-datepicker .datepicker-panel > ul > li.picked.highlighted,
body.anihta-sistema .datepicker-panel > ul > li.picked.highlighted {
    background-color: var(--anihta-neon) !important;
    color: #ffffff !important;
}
body.anihta-sistema .system-datepicker .datepicker-panel > ul > li.esv-en-rango:not(.picked) {
    background-color: rgba(96, 165, 250, 0.16) !important;
    color: var(--anihta-neon) !important;
}
body.anihta-sistema .esv-btn-switch-fechas {
    background-color: #101828 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: var(--anihta-neon) !important;
}
body.anihta-sistema .esv-btn-switch-fechas:hover {
    background-color: var(--anihta-neon) !important;
    color: #ffffff !important;
}
body.anihta-sistema ._sys-phills .btn-preset-rango {
    color: #cbd5e1 !important;
}
body.anihta-sistema ._sys-phills .btn-preset-rango:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--anihta-neon) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}
body.anihta-sistema ._sys-phills .btn-preset-rango.active {
    background: rgba(96, 165, 250, 0.12) !important;
    color: var(--anihta-neon) !important;
    border-color: var(--anihta-neon) !important;
    font-weight: 600 !important;
}
body.anihta-sistema ._sys-phills .btn-preset-rango.active i {
    color: var(--anihta-neon) !important;
}

/* MODO CLARO (Light) */
[data-bs-theme="light"] body.anihta-sistema .esv-btn-rango-fechas {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}
[data-bs-theme="light"] body.anihta-sistema .esv-btn-rango-fechas:hover,
[data-bs-theme="light"] body.anihta-sistema .esv-btn-rango-fechas.activo {
    background: #f8fafc !important;
    border-color: var(--anihta-neon) !important;
    color: var(--anihta-neon) !important;
}
[data-bs-theme="light"] body.anihta-sistema .esv-panel-fechas-rango {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08) !important;
    color: #1e293b !important;
}
[data-bs-theme="light"] body.anihta-sistema .esv-datepicker-box {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}
[data-bs-theme="light"] body.anihta-sistema .esv-datepicker-box .text-muted {
    color: #64748b !important;
}
[data-bs-theme="light"] body.anihta-sistema .system-datepicker .datepicker-panel > ul > li[data-view="month current"] {
    color: #0f172a !important;
    font-weight: 700 !important;
}
[data-bs-theme="light"] body.anihta-sistema .system-datepicker .datepicker-panel > ul > li[data-view="month prev"],
[data-bs-theme="light"] body.anihta-sistema .system-datepicker .datepicker-panel > ul > li[data-view="month next"] {
    color: #64748b !important;
}
[data-bs-theme="light"] body.anihta-sistema .system-datepicker .datepicker-panel > ul > li[data-view="month prev"]:hover,
[data-bs-theme="light"] body.anihta-sistema .system-datepicker .datepicker-panel > ul > li[data-view="month next"]:hover {
    background-color: #f1f5f9 !important;
    color: var(--anihta-neon) !important;
}
[data-bs-theme="light"] body.anihta-sistema .system-datepicker .datepicker-panel > ul[data-view="week"] > li {
    color: #64748b !important;
}
[data-bs-theme="light"] body.anihta-sistema .datepicker-panel > ul > li {
    color: #334155 !important;
    background-color: transparent !important;
}
[data-bs-theme="light"] body.anihta-sistema .datepicker-panel > ul > li:hover {
    background-color: rgba(37, 99, 235, 0.12) !important;
    color: var(--anihta-neon) !important;
}
[data-bs-theme="light"] body.anihta-sistema .datepicker-panel > ul > li.muted,
[data-bs-theme="light"] body.anihta-sistema .datepicker-panel > ul > li.muted:hover {
    color: #cbd5e1 !important;
}
[data-bs-theme="light"] body.anihta-sistema .system-datepicker .datepicker-panel > ul > li.picked,
[data-bs-theme="light"] body.anihta-sistema .datepicker-panel > ul > li.picked {
    background-color: var(--anihta-neon) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35) !important;
}
[data-bs-theme="light"] body.anihta-sistema .system-datepicker .datepicker-panel > ul > li.highlighted,
[data-bs-theme="light"] body.anihta-sistema .datepicker-panel > ul > li.highlighted {
    border: 1px solid var(--anihta-neon) !important;
    color: var(--anihta-neon) !important;
}
[data-bs-theme="light"] body.anihta-sistema .system-datepicker .datepicker-panel > ul > li.picked.highlighted,
[data-bs-theme="light"] body.anihta-sistema .datepicker-panel > ul > li.picked.highlighted {
    background-color: var(--anihta-neon) !important;
    color: #ffffff !important;
}
[data-bs-theme="light"] body.anihta-sistema .system-datepicker .datepicker-panel > ul > li.esv-en-rango:not(.picked) {
    background-color: rgba(37, 99, 235, 0.12) !important;
    color: var(--anihta-neon) !important;
}
[data-bs-theme="light"] body.anihta-sistema .esv-btn-switch-fechas {
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: var(--anihta-neon) !important;
}
[data-bs-theme="light"] body.anihta-sistema .esv-btn-switch-fechas:hover {
    background-color: var(--anihta-neon) !important;
    color: #ffffff !important;
}
[data-bs-theme="light"] body.anihta-sistema ._sys-phills .btn-preset-rango {
    color: #334155 !important;
}
[data-bs-theme="light"] body.anihta-sistema ._sys-phills .btn-preset-rango:hover {
    background: #f8fafc !important;
    color: var(--anihta-neon) !important;
    border-color: #e2e8f0 !important;
}
[data-bs-theme="light"] body.anihta-sistema ._sys-phills .btn-preset-rango.active {
    background: #f0fdf4 !important;
    color: #1d4ed8 !important;
    border-color: #86efac !important;
    font-weight: 600 !important;
}
[data-bs-theme="light"] body.anihta-sistema ._sys-phills .btn-preset-rango.active i {
    color: #2563eb !important;
}

/* ==========================================================================
   ANIHTA LANDING PAGE - COMPONENTES VISUALES DE ALTO IMPACTO (Dark & Light)
   ========================================================================== */

/* Orbs y Luces de Fondo */
.anihta-glow-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.35;
}
.anihta-glow-orb-neon {
    background: radial-gradient(circle, rgba(96, 165, 250, 0.45) 0%, rgba(96, 165, 250, 0) 70%);
}
.anihta-glow-orb-cyan {
    background: radial-gradient(circle, rgba(56, 189, 248, 0.4) 0%, rgba(56, 189, 248, 0) 70%);
}
.anihta-glow-orb-purple {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.35) 0%, rgba(168, 85, 247, 0) 70%);
}

/* Punto Pulsante en Vivo */
.anihta-pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--anihta-neon);
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.7);
    animation: anihtaPulse 2s infinite;
}
@keyframes anihtaPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(96, 165, 250, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(96, 165, 250, 0); }
}

/* Hero Badge */
.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    padding: .5rem 1.15rem;
    border-radius: 9999px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(96, 165, 250, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.35);
    color: var(--anihta-neon);
    backdrop-filter: blur(8px);
}

/* Hero Headings */
.hero-titulo {
    font-size: clamp(2.25rem, 5vw, 3.85rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: #ffffff;
}
.hero-subtitulo {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: #94a3b8;
    max-width: 640px;
}

/* Métricas Hero Strip */
.hero-metrics-strip {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-stat-card {
    background: rgba(23, 31, 51, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(12px);
    transition: transform .25s ease, border-color .25s ease;
}
.hero-stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(96, 165, 250, 0.3);
}
.hero-stat-val {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    line-height: 1.2;
}
.hero-stat-lbl {
    font-size: .85rem;
    color: #94a3b8;
    margin-top: .2rem;
}

/* Mockup Ventana de Diseñador en Hero */
.mockup-designer-frame {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 40px rgba(96, 165, 250, 0.12);
    position: relative;
}
.mockup-header-bar {
    background: rgba(30, 41, 59, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: .75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mockup-dots {
    display: flex;
    gap: .4rem;
}
.mockup-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.mockup-dot.red { background-color: #ef4444; }
.mockup-dot.yellow { background-color: #f59e0b; }
.mockup-dot.green { background-color: #10b981; }

.mockup-title {
    font-size: .75rem;
    font-family: var(--bs-font-monospace, monospace);
    color: #94a3b8;
    letter-spacing: .05em;
}
.mockup-body {
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(11, 19, 38, 0.98) 100%);
}
.mockup-field-box {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: .75rem;
    padding: .85rem 1rem;
    margin-bottom: 1rem;
}
.mockup-field-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--anihta-neon);
    margin-bottom: .35rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.mockup-field-val {
    font-size: .88rem;
    color: #e2e8f0;
    line-height: 1.45;
}
.channel-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .25rem .7rem;
    border-radius: 9999px;
    font-size: .75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}
.channel-chip.active {
    background: rgba(96, 165, 250, 0.12);
    border-color: rgba(96, 165, 250, 0.35);
    color: var(--anihta-neon);
}
.channel-chip.whatsapp {
    background: rgba(37, 211, 102, 0.12);
    border-color: rgba(37, 211, 102, 0.35);
    color: #25d366;
}

/* Live Floating Cards */
.floating-live-pill {
    position: absolute;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(96, 165, 250, 0.4);
    border-radius: 9999px;
    padding: .5rem 1rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .8rem;
    font-weight: 600;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
}

/* Tarjetas de Capacidades (Pilares) */
.capability-card {
    background: rgba(23, 31, 51, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1.25rem;
    padding: 2rem 1.75rem;
    height: 100%;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}
.capability-card:hover {
    transform: translateY(-6px);
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 25px rgba(96, 165, 250, 0.15);
}
.capability-icon-wrap {
    width: 54px;
    height: 54px;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    margin-bottom: 1.35rem;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.15) 0%, rgba(56, 189, 248, 0.1) 100%);
    border: 1px solid rgba(96, 165, 250, 0.25);
    color: var(--anihta-neon);
}

/* Tabs Showcase Interactivo */
.anihta-tabs-nav {
    display: inline-flex;
    padding: .35rem;
    background: rgba(23, 31, 51, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    gap: .35rem;
    backdrop-filter: blur(12px);
}
.anihta-tab-btn {
    padding: .65rem 1.5rem;
    border-radius: 9999px;
    font-size: .9rem;
    font-weight: 600;
    border: none;
    background: transparent;
    color: #94a3b8;
    transition: all .25s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.anihta-tab-btn:hover {
    color: #ffffff;
}
.anihta-tab-btn.active {
    background: var(--anihta-neon);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.35);
}

/* Tabla de Bitácora Mock */
.bitacora-mock-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .85rem;
}
.bitacora-mock-table th {
    background: rgba(30, 41, 59, 0.75);
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    font-size: .7rem;
    letter-spacing: .06em;
    padding: .75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.bitacora-mock-table td {
    padding: .85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    vertical-align: middle;
}
.bitacora-mock-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}
.badge-status-ok {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .2rem .55rem;
    border-radius: .4rem;
    font-size: .72rem;
    font-weight: 700;
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.badge-latency {
    font-family: var(--bs-font-monospace, monospace);
    font-size: .78rem;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    padding: .2rem .45rem;
    border-radius: .35rem;
}

/* Sectores Grid */
.sector-card {
    background: rgba(23, 31, 51, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1.15rem;
    padding: 1.5rem;
    height: 100%;
    transition: transform .25s ease, border-color .25s ease;
    backdrop-filter: blur(10px);
}
.sector-card:hover {
    transform: translateY(-4px);
    border-color: rgba(96, 165, 250, 0.35);
}
.sector-icon {
    width: 44px;
    height: 44px;
    border-radius: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.2);
    color: var(--anihta-neon);
}

/* ==========================================================================
   ADAPTACIONES DE ALTO IMPACTO EN MODO CLARO [data-bs-theme="light"]
   ========================================================================== */

[data-bs-theme="light"] .hero-titulo {
    color: #0f172a;
}
[data-bs-theme="light"] .hero-subtitulo {
    color: #475569;
}
[data-bs-theme="light"] .hero-metrics-strip {
    border-top-color: rgba(15, 23, 42, 0.08);
}
[data-bs-theme="light"] .hero-stat-card {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
[data-bs-theme="light"] .hero-stat-card:hover {
    border-color: var(--anihta-neon);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.1);
}
[data-bs-theme="light"] .hero-stat-val {
    color: #0f172a;
}
[data-bs-theme="light"] .hero-stat-lbl {
    color: #64748b;
}

[data-bs-theme="light"] .mockup-designer-frame {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12), 0 0 30px rgba(37, 99, 235, 0.08);
}
[data-bs-theme="light"] .mockup-header-bar {
    background: #f1f5f9;
    border-bottom-color: #e2e8f0;
}
[data-bs-theme="light"] .mockup-title {
    color: #475569;
}
[data-bs-theme="light"] .mockup-body {
    background: #f8fafc;
}
[data-bs-theme="light"] .mockup-field-box {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
[data-bs-theme="light"] .mockup-field-val {
    color: #1e293b;
}
[data-bs-theme="light"] .channel-chip {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

[data-bs-theme="light"] .floating-live-pill {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--anihta-neon);
    color: #0f172a;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

[data-bs-theme="light"] .capability-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
[data-bs-theme="light"] .capability-card:hover {
    border-color: var(--anihta-neon);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08), 0 0 25px rgba(37, 99, 235, 0.12);
}
[data-bs-theme="light"] .capability-card h3 {
    color: #0f172a !important;
}

[data-bs-theme="light"] .anihta-tabs-nav {
    background: #e2e8f0;
    border-color: #cbd5e1;
}
[data-bs-theme="light"] .anihta-tab-btn {
    color: #475569;
}
[data-bs-theme="light"] .anihta-tab-btn:hover {
    color: #0f172a;
}
[data-bs-theme="light"] .anihta-tab-btn.active {
    background: var(--anihta-neon);
    color: #ffffff;
}

[data-bs-theme="light"] .bitacora-mock-table th {
    background: #f1f5f9;
    color: #475569;
    border-bottom-color: #e2e8f0;
}
[data-bs-theme="light"] .bitacora-mock-table td {
    border-bottom-color: #e2e8f0;
    color: #1e293b;
}
[data-bs-theme="light"] .bitacora-mock-table tr:hover td {
    background: #f8fafc;
}

[data-bs-theme="light"] .sector-card {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}
[data-bs-theme="light"] .sector-card:hover {
    border-color: var(--anihta-neon);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.1);
}
[data-bs-theme="light"] .sector-card h3 {
    color: #0f172a !important;
}



/* =====================================================================
 * PANEL DE AGENTES (Inicio, Agentes, Recibidos, Bitácora y Suscripciones) 20261017 ATC
 * Componentes anh-*: tarjetas de números, lista de peticiones con burbujas (lo que llegó / lo que regresó),
 * línea de tiempo de la bitácora, json, tarjetas de agentes y paquetes de créditos. Con su versión clara al final.
 * ===================================================================== */
body.anihta-sistema {
    --anh-entrada: rgba(56, 189, 248, 0.10);
    --anh-entrada-borde: rgba(56, 189, 248, 0.25);
    --anh-salida: rgba(96, 165, 250, 0.10);
    --anh-salida-borde: rgba(96, 165, 250, 0.28);
    --anh-codigo: #070d1c;
    --anh-hover: rgba(255, 255, 255, 0.025);
}

/* Menú lateral: indicador de la opción activa */
body.anihta-sistema .sidebar .nav-link { position: relative; color: var(--anihta-texto-muted); transition: background-color .2s ease, color .2s ease; }
body.anihta-sistema .sidebar .nav-link.active { color: var(--anihta-neon); font-weight: 600; }
body.anihta-sistema .sidebar .nav-link.active::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 20%;
    bottom: 20%;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--anihta-neon);
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.6);
}

/* Tarjetas: un poco más de vida al pasar el mouse */
body.anihta-sistema .card { transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
body.anihta-sistema .anh-agente:hover,
body.anihta-sistema .anh-paquete-credito:hover { border-color: rgba(96, 165, 250, 0.35); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); }

/* Pestañas */
body.anihta-sistema .anh-tabs { gap: .35rem; padding: .3rem; background: var(--anihta-dark); border: 1px solid var(--anihta-borde); border-radius: .9rem; display: inline-flex; flex-wrap: wrap; }
body.anihta-sistema .anh-tabs .nav-link { border-radius: .65rem; color: var(--anihta-texto-muted); padding: .45rem .95rem; font-weight: 500; border: 0; background: transparent; }
body.anihta-sistema .anh-tabs .nav-link:hover { color: var(--anihta-texto); }
body.anihta-sistema .anh-tabs .nav-link.active { background: var(--anihta-neon); color: #ffffff; }

/* Tarjetas de números */
body.anihta-sistema .anh-stat .card-body { padding: 1.1rem 1.25rem; }
body.anihta-sistema .anh-stat-titulo { font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; color: var(--anihta-texto-muted); font-weight: 700; }
body.anihta-sistema .anh-stat-icono { width: 36px; height: 36px; border-radius: .7rem; display: inline-flex; align-items: center; justify-content: center; }
body.anihta-sistema .anh-stat-icono-lg { width: 44px; height: 44px; border-radius: .85rem; font-size: 1.1rem; }
body.anihta-sistema .anh-stat-valor { font-size: 1.85rem; font-weight: 700; line-height: 1.1; color: #ffffff; font-family: 'Outfit', sans-serif; }
body.anihta-sistema .anh-stat-detalle { font-size: .78rem; color: var(--anihta-texto-muted); }
body.anihta-sistema .anh-stat-card { border-radius: 1rem; transition: transform .18s ease, box-shadow .18s ease; }
body.anihta-sistema .anh-stat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.18); }

/* Lista de métricas dentro de grupos */
body.anihta-sistema .anh-grupo-lista { display: flex; flex-direction: column; }
body.anihta-sistema .anh-grupo-item {
    display: grid;
    grid-template-columns: 30px 1fr auto;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1.25rem;
    border-bottom: 1px solid var(--anihta-borde);
    transition: background .15s ease;
}
body.anihta-sistema .anh-grupo-item:last-child { border-bottom: 0; }
body.anihta-sistema .anh-grupo-item:hover { background: rgba(255,255,255,.03); }
body.anihta-sistema .anh-grupo-item-icono { width: 28px; height: 28px; border-radius: .5rem; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; flex-shrink: 0; }
body.anihta-sistema .anh-grupo-item-titulo { font-size: .85rem; color: var(--anihta-texto-muted); }
body.anihta-sistema .anh-grupo-item-valor { font-size: 1rem; font-weight: 700; color: #ffffff; text-align: right; white-space: nowrap; }
body.anihta-sistema .anh-grupo-item-detalle { font-size: .72rem; font-weight: 400; color: var(--anihta-texto-muted); }

/* Banner de Inicio */
body.anihta-sistema .anh-banner { overflow: hidden; }
body.anihta-sistema .anh-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, rgba(96, 165, 250, 0.06) 1px, transparent 1px), linear-gradient(to bottom, rgba(96, 165, 250, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(to left, #000 0%, transparent 70%);
    pointer-events: none;
}
body.anihta-sistema .anh-banner .card-body { position: relative; z-index: 1; }
body.anihta-sistema .anh-banner-etiqueta { display: inline-flex; align-items: center; padding: .25rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: rgba(96, 165, 250, 0.15); color: var(--anihta-neon); border: 1px solid rgba(96, 165, 250, 0.3); }
body.anihta-sistema .anh-banner-codigo { background: var(--anh-codigo); color: #60a5fa; border: 1px solid rgba(96, 165, 250, 0.2); border-radius: .9rem; padding: 1rem 1.25rem; font-size: .8rem; box-shadow: 0 0 40px rgba(96, 165, 250, 0.08); }

/* Pasos (Agentes) y primeros pasos (Inicio) */
body.anihta-sistema .anh-pasos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; }
body.anihta-sistema .anh-paso { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem; border: 1px dashed var(--anihta-borde-fuerte, rgba(255, 255, 255, 0.12)); border-radius: 1rem; }
body.anihta-sistema .anh-paso-num { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; background: rgba(96, 165, 250, 0.15); color: var(--anihta-neon); }
body.anihta-sistema .anh-paso-check { display: flex; align-items: center; gap: .65rem; padding: .75rem 1rem; border-radius: .85rem; border: 1px solid var(--anihta-borde); color: var(--anihta-texto) !important; text-decoration: none; transition: border-color .2s ease; }
body.anihta-sistema .anh-paso-check:hover { border-color: rgba(96, 165, 250, 0.4); }
body.anihta-sistema .anh-paso-check i { color: var(--anihta-texto-muted); font-size: 1.1rem; }
body.anihta-sistema .anh-paso-check.hecho { opacity: .65; }
body.anihta-sistema .anh-paso-check.hecho i { color: #4ade80; }
body.anihta-sistema .anh-paso-check.hecho span { text-decoration: line-through; }
body.anihta-sistema .anh-paso-mini { display: inline-block; width: 14px; height: 5px; border-radius: 3px; opacity: .85; }

/* Tarjeta del agente */
body.anihta-sistema .anh-agente-avatar {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #60a5fa, #38bdf8);
    box-shadow: 0 6px 20px rgba(96, 165, 250, 0.25);
}
body.anihta-sistema .anh-id { border: 0; background: transparent; padding: 0; font-family: var(--bs-font-monospace); font-size: .75rem; color: var(--anihta-texto-muted); }
body.anihta-sistema .anh-id:hover { color: var(--anihta-neon); }

/* Etiquetas */
body.anihta-sistema .anh-badge-suave { background: rgba(148, 163, 184, 0.12); color: var(--anihta-texto-muted); font-weight: 500; }
body.anihta-sistema .anh-chip { display: inline-flex; align-items: center; padding: .15rem .55rem; border-radius: 999px; font-size: .72rem; background: rgba(148, 163, 184, 0.12); color: var(--anihta-texto-muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Lista de peticiones: meta | lo que llegó y lo que regresó | tokens */
body.anihta-sistema .anh-lista { display: flex; flex-direction: column; }
body.anihta-sistema .anh-item {
    display: grid;
    grid-template-columns: minmax(180px, 230px) minmax(0, 1fr) 110px;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--anihta-borde);
    cursor: pointer;
    transition: background-color .15s ease;
}
body.anihta-sistema .anh-item:last-child { border-bottom: 0; }
body.anihta-sistema .anh-item:hover { background: var(--anh-hover); }
body.anihta-sistema .anh-item-compacto { grid-template-columns: minmax(140px, 180px) minmax(0, 1fr) 80px; }
body.anihta-sistema .anh-item-meta { min-width: 0; }
body.anihta-sistema .anh-item-chat { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
body.anihta-sistema .anh-item-chat .anh-burbuja { max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
body.anihta-sistema .anh-item-fin { text-align: right; }
body.anihta-sistema .anh-tokens { font-weight: 700; font-size: 1.05rem; color: #facc15; white-space: nowrap; }
@media (max-width: 991.98px) {
    body.anihta-sistema .anh-item,
    body.anihta-sistema .anh-item-compacto { grid-template-columns: 1fr; gap: .6rem; }
    body.anihta-sistema .anh-item-fin { text-align: left; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
}

/* Burbujas de conversación */
body.anihta-sistema .anh-chat { display: flex; flex-direction: column; gap: .75rem; }
body.anihta-sistema .anh-burbuja { position: relative; padding: .55rem .85rem; border-radius: .9rem; font-size: .875rem; line-height: 1.45; word-break: break-word; }
body.anihta-sistema .anh-burbuja-entrada { background: var(--anh-entrada); border: 1px solid var(--anh-entrada-borde); border-top-left-radius: .25rem; align-self: flex-start; }
body.anihta-sistema .anh-burbuja-salida { background: var(--anh-salida); border: 1px solid var(--anh-salida-borde); border-top-right-radius: .25rem; align-self: flex-end; }
body.anihta-sistema .anh-chat .anh-burbuja { max-width: 85%; }
body.anihta-sistema .anh-burbuja-etiqueta { display: block; font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--anihta-texto-muted); margin-bottom: .15rem; }

/* Datos del detalle */
body.anihta-sistema .anh-dato { display: flex; flex-direction: column; gap: .15rem; padding: .6rem .8rem; border-radius: .75rem; background: rgba(148, 163, 184, 0.06); border: 1px solid var(--anihta-borde); height: 100%; }
body.anihta-sistema .anh-dato-titulo { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--anihta-texto-muted); }
body.anihta-sistema .anh-dato-valor { font-size: .875rem; min-width: 0; }

/* Json */
body.anihta-sistema .anh-json {
    background: var(--anh-codigo);
    color: #cbd5e1;
    border: 1px solid var(--anihta-borde);
    border-radius: .85rem;
    padding: 1rem;
    font-size: .78rem;
    max-height: 380px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Línea de tiempo de la bitácora */
body.anihta-sistema .anh-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
body.anihta-sistema .anh-timeline::before { content: ''; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px; background: var(--anihta-borde); }
body.anihta-sistema .anh-timeline-item { position: relative; display: flex; gap: .85rem; padding: .45rem 0; }
body.anihta-sistema .anh-timeline-punto { position: relative; z-index: 1; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; box-shadow: 0 0 0 4px var(--bs-body-bg); }

/* Plan y créditos */
body.anihta-sistema .anh-plan { background: linear-gradient(160deg, rgba(96, 165, 250, 0.12), rgba(34, 42, 61, 0.6) 55%); border-color: rgba(96, 165, 250, 0.18); }
body.anihta-sistema .anh-creditos { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1rem; border-radius: .85rem; background: rgba(234, 179, 8, 0.08); border: 1px solid rgba(234, 179, 8, 0.2); }
body.anihta-sistema .anh-paquete-credito.destacado { border-color: rgba(96, 165, 250, 0.45); box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.2), 0 10px 30px rgba(96, 165, 250, 0.08); }
body.anihta-sistema .progress { background-color: rgba(148, 163, 184, 0.15); border-radius: 999px; }
body.anihta-sistema .progress-bar { border-radius: 999px; }
body.anihta-sistema .btn-light-warning { background-color: rgba(234, 179, 8, 0.12); border-color: transparent; color: #facc15; }
body.anihta-sistema .btn-light-warning:hover { background-color: #eab308; color: #1f1600; }
body.anihta-sistema .bg-neon { color: #ffffff; }

/* Modo claro */
[data-bs-theme="light"] body.anihta-sistema {
    --anh-entrada: rgba(14, 165, 233, 0.08);
    --anh-entrada-borde: rgba(14, 165, 233, 0.25);
    --anh-salida: #f0fdf4;
    --anh-salida-borde: #bbf7d0;
    --anh-codigo: #0f172a;
    --anh-hover: rgba(15, 23, 42, 0.025);
}
[data-bs-theme="light"] body.anihta-sistema .anh-stat-valor { color: #0f172a; }
[data-bs-theme="light"] body.anihta-sistema .anh-grupo-item-valor { color: #0f172a; }
[data-bs-theme="light"] body.anihta-sistema .anh-grupo-item:hover { background: rgba(15,23,42,.03); }
[data-bs-theme="light"] body.anihta-sistema .anh-tabs { background: #ffffff; }
[data-bs-theme="light"] body.anihta-sistema .anh-plan { background: linear-gradient(160deg, rgba(37, 99, 235, 0.08), #ffffff 55%); }
[data-bs-theme="light"] body.anihta-sistema .anh-paso { border-color: #e2e8f0; }
[data-bs-theme="light"] body.anihta-sistema .anh-tokens { color: #b45309; }
[data-bs-theme="light"] body.anihta-sistema .btn-light-warning { color: #b45309; }
[data-bs-theme="light"] body.anihta-sistema .anh-agente:hover,
[data-bs-theme="light"] body.anihta-sistema .anh-paquete-credito:hover { box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08); }

/* Menú lateral: grupo con sus páginas (Facturación: Suscripciones y Créditos) 20261017 ATC */
body.anihta-sistema .sidebar .anh-grupo > .nav-link.abierto { color: var(--anihta-texto); }
body.anihta-sistema .sidebar .anh-grupo-flecha { width: auto !important; font-size: .7rem; transition: transform .2s ease; }
body.anihta-sistema .sidebar .anh-grupo > .nav-link.collapsed .anh-grupo-flecha { transform: rotate(-90deg); }
body.anihta-sistema .sidebar .anh-submenu { margin: .15rem 0 .35rem 1.35rem; padding-left: .65rem; border-left: 1px solid var(--anihta-borde); }
body.anihta-sistema .sidebar .anh-submenu .nav-link { padding: .5rem .75rem; font-size: .92rem; }
body.anihta-sistema .sidebar .anh-submenu .nav-link.active::before { left: -.75rem; }
body.anihta-sistema .anh-tabs a.nav-link { text-decoration: none; }

/* Botones de SISTEMA: en modo claro sólidos o verde suave según corresponda, en oscuro fondo suave 20261017 ATC */
body.anihta-sistema .btn-neon,
body.anihta-sistema .btn-primary,
body.anihta-sistema .btn-primary:disabled,
body.anihta-sistema .anh-tabs .nav-link.active {
    background-color: rgba(96, 165, 250, 0.1) !important;
    border: 1px solid rgba(96, 165, 250, 0.2) !important;
    color: var(--anihta-neon) !important;
    font-weight: 600;
    box-shadow: none;
}
body.anihta-sistema .btn-neon i,
body.anihta-sistema .btn-primary i,
body.anihta-sistema .anh-tabs .nav-link.active i { color: inherit !important; }
body.anihta-sistema .btn-neon:hover,
body.anihta-sistema .btn-neon:focus,
body.anihta-sistema .btn-primary:hover,
body.anihta-sistema .btn-primary:focus,
body.anihta-sistema .btn-primary:active {
    background-color: var(--anihta-neon) !important;
    border-color: var(--anihta-neon) !important;
    color: #ffffff !important;
    box-shadow: 0 0 16px rgba(96, 165, 250, 0.3);
}
body.anihta-sistema .btn-primary:disabled { opacity: .6; }
body.anihta-sistema .anh-tabs .nav-link { border: 1px solid transparent; }
[data-bs-theme="light"] body.anihta-sistema .btn-neon,
[data-bs-theme="light"] body.anihta-sistema .btn-primary {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}
[data-bs-theme="light"] body.anihta-sistema .btn-neon i,
[data-bs-theme="light"] body.anihta-sistema .btn-primary i {
    color: #ffffff !important;
}
[data-bs-theme="light"] body.anihta-sistema .btn-neon:hover,
[data-bs-theme="light"] body.anihta-sistema .btn-neon:focus,
[data-bs-theme="light"] body.anihta-sistema .btn-primary:hover,
[data-bs-theme="light"] body.anihta-sistema .btn-primary:focus,
[data-bs-theme="light"] body.anihta-sistema .btn-primary:active {
    background-color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}
[data-bs-theme="light"] body.anihta-sistema .anh-tabs .nav-link.active {
    background-color: #f0fdf4 !important;
    border: 1px solid #86efac !important;
    color: #1d4ed8 !important;
    font-weight: 600;
}
[data-bs-theme="light"] body.anihta-sistema .anh-tabs .nav-link.active i {
    color: #2563eb !important;
}

/* =====================================================================
 * INDEX Y SESION: plataforma de agentes de IA (body.idx-pagina y body.ses-pagina) 20261017 ATC
 * Componentes idx-* (index; algunos también en Sesion) y ses-* (Sesion). Botones con el mismo estilo de SISTEMA ("Actualizar").
 * ===================================================================== */
body.idx-pagina,
body.ses-pagina {
    --idx-fondo: #070d1c;
    --idx-tarjeta: rgba(17, 26, 46, 0.72);
    --idx-tarjeta-solida: #111a2e;
    --idx-borde: rgba(255, 255, 255, 0.07);
    --idx-borde-fuerte: rgba(255, 255, 255, 0.12);
    --idx-texto: #dae2fd;
    --idx-texto-suave: #94a3b8;
    --idx-neon: #60a5fa;
    --idx-neon-rgb: 96, 165, 250;
    --idx-cyan: #38bdf8;
    --idx-morado: #a78bfa;
    --idx-rosa: #f472b6;
    background-color: var(--idx-fondo);
    color: var(--idx-texto);
    font-family: 'Outfit', sans-serif;
}
[data-bs-theme="light"] body.idx-pagina,
[data-bs-theme="light"] body.ses-pagina {
    --idx-fondo: #f8fafc;
    --idx-tarjeta: rgba(255, 255, 255, 0.85);
    --idx-tarjeta-solida: #ffffff;
    --idx-borde: rgba(15, 23, 42, 0.08);
    --idx-borde-fuerte: rgba(15, 23, 42, 0.14);
    --idx-texto: #0f172a;
    --idx-texto-suave: #64748b;
    --idx-neon: #2563eb;
    --idx-neon-rgb: 37, 99, 235;
}

/* Botones: como en SISTEMA (fondo verde suave, texto verde; verde sólido al pasar el mouse) */
body.idx-pagina .btn-neon,
body.ses-pagina .btn-neon {
    background-color: rgba(var(--idx-neon-rgb), 0.12) !important;
    border: 1px solid rgba(var(--idx-neon-rgb), 0.35) !important;
    color: var(--idx-neon) !important;
    font-weight: 700;
    box-shadow: 0 0 0 0 rgba(var(--idx-neon-rgb), 0);
    transition: all .25s ease;
}
body.idx-pagina .btn-neon:hover,
body.idx-pagina .btn-neon:focus,
body.ses-pagina .btn-neon:hover,
body.ses-pagina .btn-neon:focus {
    background-color: var(--idx-neon) !important;
    border-color: var(--idx-neon) !important;
    color: #ffffff !important;
    box-shadow: 0 0 28px rgba(var(--idx-neon-rgb), 0.35);
    transform: translateY(-1px);
}
[data-bs-theme="light"] body.idx-pagina .btn-neon:hover,
[data-bs-theme="light"] body.ses-pagina .btn-neon:hover { color: #ffffff !important; }
body.idx-pagina .btn-neon:disabled,
body.ses-pagina .btn-neon:disabled { opacity: .6; transform: none; }
body.idx-pagina .idx-btn-secundario {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--idx-borde-fuerte);
    color: var(--idx-texto);
    font-weight: 600;
}
body.idx-pagina .idx-btn-secundario:hover { border-color: rgba(var(--idx-neon-rgb), 0.5); color: var(--idx-neon); }
body.idx-pagina .idx-btn-principal { padding-top: .8rem; padding-bottom: .8rem; }

/* Aparecer al hacer scroll (Index.js revelarIndex); sin JS se ve todo */
html.js body.idx-pagina .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--reveal-delay, 0s); }
html.js body.idx-pagina .reveal.visible { opacity: 1; transform: none; }
.tech-grid-mask { mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }

/* =====================================================================
 * BARRA DE NAVEGACIÓN (Index, Aviso de Privacidad y Términos y Condiciones)
 * ===================================================================== */

/* Logo de marca: en modo claro se invierte a negro para ser 100% visible */
.anihta-brand-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    transition: filter .25s ease, transform .2s ease;
}
.anihta-brand-logo:hover {
    transform: scale(1.05);
}
[data-bs-theme="light"] .anihta-brand-logo {
    filter: brightness(0);
}
.anihta-brand-texto {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--bs-body-color);
}

/* Barra de navegación con cristal esmerilado continuo */
.idx-navbar {
    background-color: rgba(7, 13, 28, 0.75) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease, padding .3s ease;
    z-index: 1030;
}
.idx-navbar.idx-navbar-solida {
    background-color: rgba(7, 13, 28, 0.94) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
[data-bs-theme="light"] .idx-navbar {
    background-color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
[data-bs-theme="light"] .idx-navbar.idx-navbar-solida {
    background-color: rgba(255, 255, 255, 0.97) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

/* Enlaces de navegación */
.idx-navbar .nav-link {
    white-space: nowrap !important;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--idx-texto-suave, #94a3b8) !important;
    padding: 0.45rem 0.85rem !important;
    border-radius: 999px;
    transition: all .2s ease;
}
.idx-navbar .nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.08);
}
[data-bs-theme="light"] .idx-navbar .nav-link {
    color: #475569 !important;
}
[data-bs-theme="light"] .idx-navbar .nav-link:hover {
    color: #0f172a !important;
    background-color: rgba(15, 23, 42, 0.05);
}

/* Botón de alternar tema */
.anihta-btn-tema {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background-color: rgba(255, 255, 255, 0.05);
    color: #94a3b8 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    text-decoration: none !important;
}
.anihta-btn-tema:hover {
    color: var(--anihta-neon) !important;
    border-color: var(--anihta-neon);
    background-color: rgba(96, 165, 250, 0.12);
    transform: rotate(15deg);
}
[data-bs-theme="light"] .anihta-btn-tema {
    color: #475569 !important;
    border-color: #cbd5e1;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
[data-bs-theme="light"] .anihta-btn-tema:hover {
    color: #1d4ed8 !important;
    border-color: #2563eb;
    background-color: #f0fdf4;
}

/* Selector de Idioma: botón estilo pastilla */
.anihta-idiomas .anihta-btn-idioma {
    white-space: nowrap !important;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.4rem 0.85rem !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background-color: rgba(255, 255, 255, 0.05);
    color: #94a3b8 !important;
    transition: all 0.2s ease;
}
.anihta-idiomas .anihta-btn-idioma:hover,
.anihta-idiomas .anihta-btn-idioma[aria-expanded="true"] {
    color: var(--anihta-neon) !important;
    border-color: var(--anihta-neon);
    background-color: rgba(96, 165, 250, 0.12);
}
.anihta-idiomas .anihta-btn-idioma .anihta-idioma-flecha {
    font-size: 0.65rem;
    transition: transform .2s ease;
}
.anihta-idiomas .anihta-btn-idioma[aria-expanded="true"] .anihta-idioma-flecha {
    transform: rotate(180deg);
}
[data-bs-theme="light"] .anihta-idiomas .anihta-btn-idioma {
    border-color: #cbd5e1;
    background-color: #ffffff;
    color: #475569 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
[data-bs-theme="light"] .anihta-idiomas .anihta-btn-idioma:hover,
[data-bs-theme="light"] .anihta-idiomas .anihta-btn-idioma[aria-expanded="true"] {
    color: #1d4ed8 !important;
    border-color: #2563eb;
    background-color: #f0fdf4;
}

/* Iniciar Sesión */
.idx-btn-login {
    font-weight: 600 !important;
    white-space: nowrap !important;
}
[data-bs-theme="light"] .idx-btn-login {
    color: #1e293b !important;
}
[data-bs-theme="light"] .idx-btn-login:hover {
    color: #1d4ed8 !important;
}

/* Botón CTA Crear Agente en el navbar */
.idx-nav-cta {
    white-space: nowrap !important;
    font-weight: 700;
    font-size: 0.92rem;
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.35);
    transition: all .25s ease;
}
.idx-nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 28px rgba(96, 165, 250, 0.5);
}
[data-bs-theme="light"] .idx-nav-cta {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}
[data-bs-theme="light"] .idx-nav-cta:hover {
    background-color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

/* Menú móvil desplegable (navbar-expand-xxl: abajo de 1400px no caben todos los enlaces) 20261018 ATC */
@media (max-width: 1399.98px) {
    .idx-navbar .navbar-collapse {
        margin-top: 1rem;
        padding: 1.25rem;
        border-radius: 1rem;
        background-color: rgba(7, 13, 28, 0.96) !important;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    }
    [data-bs-theme="light"] .idx-navbar .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98) !important;
        border-color: #e2e8f0;
        box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
    }
    .idx-navbar .navbar-nav {
        align-items: flex-start !important;
        width: 100%;
    }
    .idx-navbar .nav-link {
        width: 100%;
        padding: 0.6rem 1rem !important;
    }
}

/* Auroras de fondo */
.idx-aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.idx-aurora span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: idx-flotar 18s ease-in-out infinite; }
.idx-aurora-1 { width: 520px; height: 520px; background: rgba(96, 165, 250, 0.35); top: -160px; right: -120px; }
.idx-aurora-2 { width: 460px; height: 460px; background: rgba(56, 189, 248, 0.28); bottom: -140px; left: -140px; animation-delay: -6s !important; }
.idx-aurora-3 { width: 380px; height: 380px; background: rgba(167, 139, 250, 0.25); top: 35%; left: 40%; animation-delay: -12s !important; }
[data-bs-theme="light"] .idx-aurora span { opacity: .3; }
@keyframes idx-flotar {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.08); }
    66% { transform: translate(-30px, 25px) scale(.95); }
}

/* Hero */
.idx-hero { padding: 9rem 0 3rem; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.idx-hero-grid { position: absolute; inset: 0; opacity: .7; }
.idx-pill { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .95rem; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--idx-neon); background: rgba(var(--idx-neon-rgb), 0.1); border: 1px solid rgba(var(--idx-neon-rgb), 0.3); }
.idx-hero-titulo { font-size: clamp(2.4rem, 5.2vw, 4.3rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; color: var(--idx-texto); }
.idx-hero-subtitulo { font-size: 1.2rem; color: var(--idx-texto-suave); max-width: 560px; line-height: 1.6; }
.idx-degradado { background: linear-gradient(90deg, var(--idx-neon), var(--idx-cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.idx-rotador { position: relative; display: inline-grid; vertical-align: bottom; }
.idx-rotador-palabra {
    grid-area: 1 / 1;
    background: linear-gradient(90deg, var(--idx-neon), var(--idx-cyan));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    opacity: 0; transform: translateY(40%); transition: opacity .45s ease, transform .45s ease;
}
.idx-rotador-palabra.activa { opacity: 1; transform: none; }
.idx-rotador-palabra.saliendo { opacity: 0; transform: translateY(-40%); }
.idx-confianza li { display: inline-flex; align-items: center; gap: .45rem; color: var(--idx-texto-suave); font-size: .92rem; }
.idx-confianza i { color: var(--idx-neon); }

/* Escena del agente en vivo */
.idx-escena { position: relative; max-width: 440px; margin: 0 auto; padding: 2.5rem 1rem; }
.idx-telefono {
    position: relative; z-index: 2;
    background: var(--idx-tarjeta-solida);
    border: 1px solid var(--idx-borde-fuerte);
    border-radius: 2rem;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45), 0 0 0 8px rgba(255, 255, 255, 0.03), 0 0 80px rgba(var(--idx-neon-rgb), 0.12);
    overflow: hidden;
}
[data-bs-theme="light"] .idx-telefono { box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12), 0 0 0 8px rgba(15, 23, 42, 0.03); }
.idx-telefono-cabeza { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--idx-borde); background: rgba(var(--idx-neon-rgb), 0.05); }
.idx-agente-avatar { position: relative; flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #ffffff; background: linear-gradient(135deg, #60a5fa, #38bdf8); }
.idx-agente-linea { position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; background: #22c55e; border: 2px solid var(--idx-tarjeta-solida); }
.idx-en-linea { color: #22c55e; font-weight: 600; }
.idx-telefono-chat { display: flex; flex-direction: column; gap: .6rem; padding: 1.25rem; min-height: 340px; justify-content: flex-end; background-image: radial-gradient(rgba(var(--idx-neon-rgb), 0.05) 1px, transparent 1px); background-size: 18px 18px; }
.idx-msg { display: none; max-width: 82%; padding: .65rem .9rem; border-radius: 1.1rem; font-size: .92rem; line-height: 1.45; animation: idx-entrar .35s ease; }
.idx-msg.visible { display: block; }
.idx-msg-user { align-self: flex-end; background: rgba(56, 189, 248, 0.14); border: 1px solid rgba(56, 189, 248, 0.25); border-bottom-right-radius: .3rem; }
.idx-msg-agente { align-self: flex-start; background: rgba(var(--idx-neon-rgb), 0.1); border: 1px solid rgba(var(--idx-neon-rgb), 0.25); border-bottom-left-radius: .3rem; }
.idx-escribiendo { display: none; gap: 4px; padding: .8rem 1rem; }
.idx-escribiendo.visible { display: inline-flex; }
.idx-escribiendo span { width: 7px; height: 7px; border-radius: 50%; background: var(--idx-neon); animation: idx-punto 1s infinite ease-in-out; }
.idx-escribiendo span:nth-child(2) { animation-delay: .15s; }
.idx-escribiendo span:nth-child(3) { animation-delay: .3s; }
@keyframes idx-punto { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
@keyframes idx-entrar { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.idx-telefono-pie { display: flex; align-items: center; justify-content: space-between; margin: 0 1rem 1rem; padding: .7rem 1rem; border-radius: 999px; border: 1px solid var(--idx-borde); color: var(--idx-texto-suave); font-size: .9rem; }
.idx-telefono-pie i { color: var(--idx-neon); }
.idx-flotante {
    position: absolute; z-index: 3; display: flex; align-items: center; gap: .65rem;
    padding: .65rem .9rem; border-radius: 1rem; font-size: .85rem; line-height: 1.2;
    background: var(--idx-tarjeta); backdrop-filter: blur(14px); border: 1px solid var(--idx-borde-fuerte);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3); animation: idx-boya 6s ease-in-out infinite;
}
.idx-flotante small { display: block; color: var(--idx-texto-suave); font-size: .72rem; }
.idx-flotante strong { color: var(--idx-texto); }
.idx-flotante-icono { width: 34px; height: 34px; flex-shrink: 0; border-radius: .7rem; display: inline-flex; align-items: center; justify-content: center; color: #ffffff; }
.idx-icono-cyan { background: var(--idx-cyan); }
.idx-icono-rosa { background: var(--idx-rosa); }
.idx-flotante-1 { top: 0; right: -30px; }
.idx-flotante-2 { top: 42%; left: -60px; animation-delay: -2s; }
.idx-flotante-3 { bottom: 0; right: -10px; animation-delay: -4s; }
.idx-flotante.pulso { box-shadow: 0 0 0 4px rgba(var(--idx-neon-rgb), 0.25), 0 12px 30px rgba(0, 0, 0, 0.3); }
@keyframes idx-boya { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 575.98px) {
    .idx-flotante-1 { right: 0; }
    .idx-flotante-2 { left: 0; }
    .idx-flotante-3 { right: 0; }
}

/* Marquesina de sectores */
.idx-marquesina { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.idx-marquesina-pista { display: flex; gap: .85rem; width: max-content; animation: idx-desplazar 38s linear infinite; }
.idx-marquesina-chip { display: inline-flex; align-items: center; gap: .55rem; padding: .6rem 1.1rem; border-radius: 999px; white-space: nowrap; font-weight: 600; font-size: .92rem; background: var(--idx-tarjeta); border: 1px solid var(--idx-borde); color: var(--idx-texto); }
@keyframes idx-desplazar { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Secciones */
.idx-seccion { position: relative; padding: 6rem 0; }
.idx-etiqueta { display: inline-block; padding: .3rem .85rem; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--idx-neon); background: rgba(var(--idx-neon-rgb), 0.1); border: 1px solid rgba(var(--idx-neon-rgb), 0.25); }
.idx-seccion-titulo { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: var(--idx-texto); text-align: center; }
.idx-texto { color: var(--idx-texto-suave); font-size: 1.08rem; line-height: 1.65; }
.idx-lista-iconos li { display: flex; align-items: center; gap: .85rem; margin-bottom: .9rem; color: var(--idx-texto); font-weight: 500; }
.idx-lista-iconos li span { width: 38px; height: 38px; flex-shrink: 0; border-radius: .75rem; display: inline-flex; align-items: center; justify-content: center; color: var(--idx-neon); background: rgba(var(--idx-neon-rgb), 0.1); border: 1px solid rgba(var(--idx-neon-rgb), 0.2); }

/* Cómo funciona */
.idx-pasos { counter-reset: paso; }
.idx-paso { position: relative; height: 100%; padding: 2rem; border-radius: 1.5rem; background: var(--idx-tarjeta); border: 1px solid var(--idx-borde); overflow: hidden; transition: transform .3s ease, border-color .3s ease; }
.idx-paso:hover { transform: translateY(-6px); border-color: rgba(var(--idx-neon-rgb), 0.35); }
.idx-paso p { color: var(--idx-texto-suave); }
.idx-paso h3 { color: var(--idx-texto); }
.idx-paso-numero { position: absolute; top: 1rem; right: 1.25rem; font-size: 4.5rem; font-weight: 800; line-height: 1; color: rgba(var(--idx-neon-rgb), 0.08); }
.idx-paso-icono { width: 56px; height: 56px; border-radius: 1rem; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1.25rem; color: #ffffff; background: linear-gradient(135deg, #60a5fa, #38bdf8); box-shadow: 0 10px 30px rgba(96, 165, 250, 0.25); }

/* Ventana del diseñador */
.idx-ventana { border-radius: 1.4rem; background: var(--idx-tarjeta-solida); border: 1px solid var(--idx-borde-fuerte); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.4); overflow: hidden; }
[data-bs-theme="light"] .idx-ventana { box-shadow: 0 30px 60px rgba(15, 23, 42, 0.1); }
.idx-ventana-barra { display: flex; align-items: center; gap: .45rem; padding: .8rem 1.1rem; border-bottom: 1px solid var(--idx-borde); background: rgba(255, 255, 255, 0.02); }
.idx-punto { width: 11px; height: 11px; border-radius: 50%; }
.idx-punto.rojo { background: #f87171; } .idx-punto.amarillo { background: #facc15; } .idx-punto.verde { background: #4ade80; }
.idx-ventana-titulo { margin-left: .6rem; font-size: .85rem; color: var(--idx-texto-suave); font-weight: 600; }
.idx-ventana-boton { margin-left: auto; font-size: .78rem; font-weight: 700; padding: .3rem .8rem; border-radius: 999px; color: var(--idx-neon); background: rgba(var(--idx-neon-rgb), 0.12); border: 1px solid rgba(var(--idx-neon-rgb), 0.3); }
.idx-ventana-cuerpo { padding: 1.4rem; }
.idx-tabs-mock { display: flex; gap: .35rem; padding: .3rem; margin-bottom: 1.2rem; border-radius: .9rem; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--idx-borde); overflow-x: auto; }
.idx-tabs-mock span { padding: .4rem .9rem; border-radius: .65rem; font-size: .85rem; font-weight: 600; color: var(--idx-texto-suave); white-space: nowrap; }
.idx-tabs-mock span.activa { color: var(--idx-neon); background: rgba(var(--idx-neon-rgb), 0.12); }
.idx-campo { padding: .75rem .9rem; border-radius: .85rem; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--idx-borde); }
.idx-campo label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--idx-texto-suave); margin-bottom: .3rem; }
.idx-campo div { color: var(--idx-texto); font-weight: 500; }
.idx-chip { padding: .3rem .8rem; border-radius: 999px; font-size: .82rem; font-weight: 600; border: 1px solid var(--idx-borde-fuerte); color: var(--idx-texto-suave); }
.idx-chip.activo { color: var(--idx-neon); border-color: rgba(var(--idx-neon-rgb), 0.4); background: rgba(var(--idx-neon-rgb), 0.1); }
.idx-prompt { padding: 1rem 1.1rem; border-radius: .9rem; background: linear-gradient(135deg, rgba(var(--idx-neon-rgb), 0.08), rgba(56, 189, 248, 0.06)); border: 1px dashed rgba(var(--idx-neon-rgb), 0.35); }
.idx-prompt-titulo { font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--idx-neon); margin-bottom: .4rem; }
.idx-prompt p { color: var(--idx-texto); font-size: .92rem; line-height: 1.55; }

/* Código de la API */
.idx-codigo { border-radius: 1.4rem; background: #050a16; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45), 0 0 60px rgba(56, 189, 248, 0.08); overflow: hidden; }
.idx-codigo-barra { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .7rem .9rem; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.idx-codigo-tabs { display: flex; gap: .35rem; }
.idx-codigo-tabs button, .idx-copiar { border: 1px solid transparent; background: transparent; color: #94a3b8; font-size: .85rem; font-weight: 600; padding: .35rem .8rem; border-radius: .6rem; display: inline-flex; align-items: center; gap: .45rem; }
.idx-codigo-tabs button.activa { color: #e2e8f0; background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.08); }
.idx-copiar:hover { color: #60a5fa; }
.idx-metodo { font-size: .68rem; font-weight: 800; padding: .1rem .4rem; border-radius: .35rem; color: #38bdf8; background: rgba(56, 189, 248, 0.12); }
.idx-metodo.ok { color: #4ade80; background: rgba(74, 222, 128, 0.12); }
.idx-codigo-url { padding: .6rem 1.1rem; font-family: var(--bs-font-monospace); font-size: .8rem; color: #94a3b8; border-bottom: 1px solid rgba(255, 255, 255, 0.05); word-break: break-all; }
.idx-codigo-url span { color: #38bdf8; font-weight: 700; }
.idx-codigo-pre { margin: 0; padding: 1.2rem 1.25rem; max-height: 420px; overflow: auto; font-size: .8rem; line-height: 1.6; color: #a7f3d0; white-space: pre-wrap; word-break: break-word; }

/* Control total (bento) */
.idx-bento { height: 100%; padding: 1.75rem; border-radius: 1.5rem; background: var(--idx-tarjeta); border: 1px solid var(--idx-borde); display: flex; flex-direction: column; transition: border-color .3s ease, transform .3s ease; }
.idx-bento:hover { border-color: rgba(var(--idx-neon-rgb), 0.3); transform: translateY(-4px); }
.idx-bento h3 { color: var(--idx-texto); }
.idx-bento p { color: var(--idx-texto-suave); }
.idx-bento-icono { width: 46px; height: 46px; border-radius: .9rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: var(--idx-neon); background: rgba(var(--idx-neon-rgb), 0.1); border: 1px solid rgba(var(--idx-neon-rgb), 0.2); }
.idx-bento-visual { margin-top: auto; padding: 1rem; border-radius: 1rem; background: rgba(0, 0, 0, 0.18); border: 1px solid var(--idx-borde); min-height: 150px; }
[data-bs-theme="light"] .idx-bento-visual { background: rgba(15, 23, 42, 0.03); }
.idx-mini-burbuja { font-size: .8rem; padding: .5rem .7rem; border-radius: .8rem; margin-bottom: .5rem; max-width: 90%; }
.idx-mini-burbuja.entrada { background: rgba(56, 189, 248, 0.12); border: 1px solid rgba(56, 189, 248, 0.25); }
.idx-mini-burbuja.salida { margin-left: auto; background: rgba(var(--idx-neon-rgb), 0.1); border: 1px solid rgba(var(--idx-neon-rgb), 0.25); }
.idx-linea-tiempo div { display: flex; align-items: center; gap: .55rem; font-family: var(--bs-font-monospace); font-size: .75rem; padding: .25rem 0; color: var(--idx-texto); }
.idx-linea-tiempo small { margin-left: auto; color: var(--idx-texto-suave); }
.idx-ev { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.idx-ev.verde { background: #4ade80; } .idx-ev.azul { background: #38bdf8; } .idx-ev.amarillo { background: #facc15; }
.idx-barras { display: flex; align-items: flex-end; gap: .5rem; height: 150px; }
.idx-barras span { flex: 1; height: var(--alto); border-radius: .5rem .5rem .2rem .2rem; background: linear-gradient(180deg, #60a5fa, rgba(56, 189, 248, 0.6)); transform-origin: bottom; animation: idx-crecer 1.2s ease both; }
.idx-barras span:nth-child(odd) { animation-delay: .1s; }
@keyframes idx-crecer { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Automatización (index #automatizacion): flecha entre los pasos del flujo y tipos de webhook 20261018 ATC */
.idx-flujo-flecha { display: flex; justify-content: center; padding: .35rem 0; color: var(--idx-neon); opacity: .7; font-size: .85rem; }
.idx-webhook-fila { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; padding: .55rem 0; border-bottom: 1px dashed var(--idx-borde); }
.idx-webhook-fila:last-child { border-bottom: 0; }
.idx-webhook-fila code { font-size: .75rem; color: var(--idx-texto-suave); word-break: break-all; }
.idx-webhook-tipo { display: inline-flex; align-items: center; min-width: 96px; padding: .2rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 700; color: var(--color-webhook); background: color-mix(in srgb, var(--color-webhook) 12%, transparent); border: 1px solid color-mix(in srgb, var(--color-webhook) 35%, transparent); }
[data-bs-theme="light"] .idx-webhook-tipo { color: #0f172a; }

/* Sectores */
.idx-sector { height: 100%; padding: 1.4rem; border-radius: 1.25rem; background: var(--idx-tarjeta); border: 1px solid var(--idx-borde); transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.idx-sector:hover { transform: translateY(-5px); border-color: var(--color-sector); box-shadow: 0 16px 40px -12px var(--color-sector); }
.idx-sector h3 { color: var(--idx-texto); }
.idx-sector p { color: var(--idx-texto-suave); }
.idx-sector-icono { width: 46px; height: 46px; border-radius: .9rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; font-size: 1.15rem; color: var(--color-sector); background: color-mix(in srgb, var(--color-sector) 14%, transparent); }

/* Precios */
.idx-precio { position: relative; height: 100%; padding: 1.75rem 1.5rem; border-radius: 1.5rem; background: var(--idx-tarjeta); border: 1px solid var(--idx-borde); display: flex; flex-direction: column; transition: transform .3s ease; }
.idx-precio:hover { transform: translateY(-5px); }
.idx-precio.destacado { border-color: rgba(var(--idx-neon-rgb), 0.55); background: linear-gradient(180deg, rgba(var(--idx-neon-rgb), 0.1), var(--idx-tarjeta) 45%); box-shadow: 0 0 0 1px rgba(var(--idx-neon-rgb), 0.25), 0 25px 60px -20px rgba(var(--idx-neon-rgb), 0.45); }
.idx-precio-cinta { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: .25rem .8rem; border-radius: 999px; font-size: .72rem; font-weight: 800; white-space: nowrap; color: #ffffff; background: var(--idx-neon); }
.idx-precio-nombre { color: var(--idx-texto-suave); letter-spacing: .08em; font-weight: 700; }
.idx-precio-monto { font-size: 2.3rem; font-weight: 800; color: var(--idx-texto); margin: .4rem 0 .6rem; }
.idx-precio-monto small { font-size: .95rem; font-weight: 500; color: var(--idx-texto-suave); }
.idx-precio-tokens { padding: .6rem .8rem; border-radius: .8rem; margin-bottom: 1.1rem; font-size: .88rem; color: var(--idx-texto-suave); background: rgba(250, 204, 21, 0.08); border: 1px solid rgba(250, 204, 21, 0.2); }
.idx-precio-tokens i { color: #facc15; margin-right: .3rem; }
.idx-precio-tokens strong { color: var(--idx-texto); }
.idx-precio-lista { flex-grow: 1; margin-bottom: 1.25rem; }
.idx-precio-lista li { display: flex; gap: .5rem; align-items: baseline; font-size: .9rem; padding: .25rem 0; color: var(--idx-texto); }
.idx-precio-lista i { color: var(--idx-neon); }

/* Preguntas */
.idx-acordeon .accordion-item { margin-bottom: .8rem; border-radius: 1rem !important; overflow: hidden; background: var(--idx-tarjeta); border: 1px solid var(--idx-borde); }
.idx-acordeon .accordion-button { background: transparent; color: var(--idx-texto); font-weight: 600; padding: 1.15rem 1.35rem; box-shadow: none; }
.idx-acordeon .accordion-button:not(.collapsed) { color: var(--idx-neon); }
.idx-acordeon .accordion-body { color: var(--idx-texto-suave); padding: 0 1.35rem 1.25rem; }

/* CTA */
.idx-cta { position: relative; overflow: hidden; text-align: center; padding: 4.5rem 2rem; border-radius: 2rem; background: linear-gradient(135deg, rgba(var(--idx-neon-rgb), 0.16), rgba(56, 189, 248, 0.12) 50%, rgba(167, 139, 250, 0.14)); border: 1px solid rgba(var(--idx-neon-rgb), 0.25); }
.idx-cta-brillo { position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent, rgba(var(--idx-neon-rgb), 0.18), transparent 30%); animation: idx-girar 12s linear infinite; }
@keyframes idx-girar { to { transform: rotate(360deg); } }
.idx-cta-titulo { font-size: clamp(1.8rem, 3.6vw, 2.9rem); font-weight: 800; letter-spacing: -0.02em; color: var(--idx-texto); margin-bottom: 1rem; }

/* Contacto */
.idx-formulario { padding: 2.25rem; border-radius: 1.5rem; background: var(--idx-tarjeta); border: 1px solid var(--idx-borde-fuerte); backdrop-filter: blur(12px); }
.idx-formulario h3 { color: var(--idx-texto); }
.idx-formulario .form-label { color: var(--idx-texto-suave); }
body.idx-pagina .form-control { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--idx-borde-fuerte); color: var(--idx-texto); border-radius: .8rem; padding: .75rem 1rem; }
body.idx-pagina .form-control:focus { border-color: rgba(var(--idx-neon-rgb), 0.6); box-shadow: 0 0 0 .25rem rgba(var(--idx-neon-rgb), 0.15); }

/* ---------- SESION REDISEÑADA: layout centrado con slider de IA (estilo Biki) 20261017 ATC ---------- */
body.ses-pagina {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Barra superior */
.ses-navbar {
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    position: relative;
}

.ses-logo {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--idx-texto) !important;
    text-decoration: none !important;
}

.ses-logo img,
.anihta-brand-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    transition: filter 0.2s ease;
}

[data-bs-theme="light"] .ses-logo img,
[data-bs-theme="light"] .anihta-brand-logo {
    filter: brightness(0);
}

/* Contenedor central */
.ses-principal {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.75rem 1.25rem 2.5rem;
    position: relative;
    z-index: 2;
}

.ses-envoltorio {
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
}

.ses-card-centro {
    background: var(--idx-tarjeta-solida);
    border: 1px solid var(--idx-borde-fuerte);
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.45);
    display: grid;
    grid-template-columns: 1fr;
    transition: all .3s ease;
}

[data-bs-theme="light"] .ses-card-centro {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
}

@media (min-width: 992px) {
    .ses-card-centro {
        grid-template-columns: 1.08fr 1fr;
    }
}

/* Sesion.php solo con el formulario (sin panel izquierdo): una columna angosta 20261018 ATC */
.ses-card-centro.ses-card-solo {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
}

/* Panel Izquierdo: Slider de IA estilo Biki */
.ses-slider-col {
    position: relative;
    padding: 2.75rem 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-bottom: 1px solid var(--idx-borde);
    background: radial-gradient(circle at 10% 20%, rgba(var(--idx-neon-rgb), 0.12), transparent 45%),
                radial-gradient(circle at 90% 80%, rgba(56, 189, 248, 0.1), transparent 45%),
                rgba(17, 26, 46, 0.65);
    overflow: hidden;
}

[data-bs-theme="light"] .ses-slider-col {
    background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.08), transparent 50%),
                radial-gradient(circle at 90% 80%, rgba(56, 189, 248, 0.08), transparent 50%),
                linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%);
    border-bottom-color: #e2e8f0;
}

@media (min-width: 992px) {
    .ses-slider-col {
        border-bottom: 0;
        border-right: 1px solid var(--idx-borde);
    }
    [data-bs-theme="light"] .ses-slider-col {
        border-right-color: #e2e8f0;
    }
}

.ses-slider-col .carousel,
.ses-slider-col .carousel-inner,
.ses-slider-col .carousel-item {
    height: 100%;
}

.ses-slide-contenido {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 440px;
    padding: 0.5rem 0 2rem;
}

/* Avatar Chica Biki */
.ses-chica-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    max-width: 400px;
    margin: 0 auto;
}

.ses-chica-marco {
    position: relative;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, var(--idx-neon), var(--idx-cyan));
    box-shadow: 0 14px 35px rgba(var(--idx-neon-rgb), 0.35);
    transition: transform 0.3s ease;
}

.ses-chica-marco:hover {
    transform: scale(1.03);
}

.ses-chica-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: 78% 18%;
    background: #ffffff;
    display: block;
}

.ses-chica-online {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #22c55e;
    border: 3px solid var(--idx-tarjeta-solida);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px #22c55e;
}

[data-bs-theme="light"] .ses-chica-online {
    border-color: #ffffff;
}

.ses-chica-globo {
    background: var(--idx-tarjeta);
    border: 1px solid var(--idx-borde-fuerte);
    border-radius: 1.35rem;
    padding: 1.15rem 1.35rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    text-align: left;
    position: relative;
}

[data-bs-theme="light"] .ses-chica-globo {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.ses-chica-globo::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 16px;
    height: 16px;
    background: inherit;
    border-top: 1px solid inherit;
    border-left: 1px solid inherit;
    border-color: inherit;
}

/* Indicadores del carousel */
.ses-carousel-indicadores {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
    margin-bottom: 0;
    position: static;
}

.ses-carousel-indicadores button {
    width: 26px;
    height: 6px;
    border-radius: 999px;
    border: 0;
    background: rgba(148, 163, 184, 0.35);
    transition: all 0.3s ease;
    padding: 0;
    opacity: 1;
}

.ses-carousel-indicadores button.active {
    width: 48px;
    background: var(--idx-neon);
}

/* Panel Derecho: Formulario centrado */
.ses-form-col {
    padding: 2.75rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--idx-tarjeta-solida);
}

[data-bs-theme="light"] .ses-form-col {
    background: #ffffff;
}

.ses-form-caja {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.ses-titulo {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--idx-texto);
    margin-bottom: 0.35rem;
}

.ses-subtitulo {
    color: var(--idx-texto-suave);
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
}

/* Botón principal en Sesion: siempre de alto contraste */
body.ses-pagina .btn-neon,
body.ses-pagina #BtnIniciarSesion,
body.ses-pagina #BtnRegistrarse,
body.ses-pagina #BtnRecuperar,
body.ses-pagina #BtnCambiarPassword {
    background-color: var(--idx-neon) !important;
    border: 1px solid var(--idx-neon) !important;
    color: #ffffff !important;
    font-weight: 700;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    box-shadow: 0 4px 18px rgba(var(--idx-neon-rgb), 0.35);
    transition: all .25s ease;
}

[data-bs-theme="light"] body.ses-pagina .btn-neon,
[data-bs-theme="light"] body.ses-pagina #BtnIniciarSesion,
[data-bs-theme="light"] body.ses-pagina #BtnRegistrarse,
[data-bs-theme="light"] body.ses-pagina #BtnRecuperar,
[data-bs-theme="light"] body.ses-pagina #BtnCambiarPassword {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.32);
}

body.ses-pagina .btn-neon:hover,
body.ses-pagina .btn-neon:focus,
body.ses-pagina #BtnIniciarSesion:hover,
body.ses-pagina #BtnRegistrarse:hover,
body.ses-pagina #BtnRecuperar:hover,
body.ses-pagina #BtnCambiarPassword:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(var(--idx-neon-rgb), 0.45);
}

[data-bs-theme="light"] body.ses-pagina .btn-neon:hover,
[data-bs-theme="light"] body.ses-pagina .btn-neon:focus,
[data-bs-theme="light"] body.ses-pagina #BtnIniciarSesion:hover,
[data-bs-theme="light"] body.ses-pagina #BtnRegistrarse:hover,
[data-bs-theme="light"] body.ses-pagina #BtnRecuperar:hover,
[data-bs-theme="light"] body.ses-pagina #BtnCambiarPassword:hover {
    background-color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Campos de formulario */
body.ses-pagina .form-label {
    color: var(--idx-texto-suave);
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 0.4rem;
}

body.ses-pagina .form-control {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--idx-borde-fuerte);
    color: var(--idx-texto);
    border-radius: .85rem;
    padding: .75rem 1rem;
    font-size: .95rem;
}

[data-bs-theme="light"] body.ses-pagina .form-control {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
}

body.ses-pagina .form-control:focus {
    border-color: rgba(var(--idx-neon-rgb), 0.6);
    box-shadow: 0 0 0 .25rem rgba(var(--idx-neon-rgb), 0.15);
    background: rgba(255, 255, 255, 0.06);
}

[data-bs-theme="light"] body.ses-pagina .form-control:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 .25rem rgba(37, 99, 235, 0.15);
}

body.ses-pagina .esv-password .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

body.ses-pagina .esv-password .esv-ver-password {
    border: 1px solid var(--idx-borde-fuerte);
    border-left: 0;
    border-radius: 0 .85rem .85rem 0;
    background: rgba(255, 255, 255, 0.04);
    color: var(--idx-texto-suave);
    padding: 0 1rem;
}

[data-bs-theme="light"] body.ses-pagina .esv-password .esv-ver-password {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #64748b;
}

/* Enlaces y vistas */
body.ses-pagina .text-secondary {
    color: var(--idx-texto-suave) !important;
}

body.ses-pagina a {
    color: var(--idx-neon);
}

[data-bs-theme="light"] body.ses-pagina a {
    color: #2563eb;
}

body.ses-pagina .esv-vista {
    animation: idx-entrar .35s ease;
}

/* Pie de página */
.ses-footer {
    padding: 1.5rem 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--idx-texto-suave);
    border-top: 1px solid var(--idx-borde);
    z-index: 10;
    position: relative;
}

.ses-footer a {
    color: var(--idx-texto-suave) !important;
    text-decoration: none;
    transition: color .2s ease;
}

.ses-footer a:hover {
    color: var(--idx-neon) !important;
}

.ses-seguro {
    margin: 1.75rem 0 0;
    text-align: center;
    font-size: 0.82rem;
    color: var(--idx-texto-suave);
}

@media (max-width: 991.98px) {
    .ses-navbar { padding: 1rem 1.25rem; }
    .ses-slider-col { padding: 2rem 1.5rem; }
    .ses-form-col { padding: 2rem 1.5rem; }
    .ses-footer { padding: 1.25rem; }
}

/* =====================================================================
 * SISTEMA: encabezado, menú lateral compacto y modo claro 20261017 ATC
 * ===================================================================== */

/* Título de la página y marca del menú (antes text-white: en modo claro no se veían) */
body.anihta-sistema .anh-titulo-pagina { color: #ffffff; }
body.anihta-sistema .anh-marca-texto { color: #ffffff; }

/* Encabezado: barra flotante y fija */
body.anihta-sistema .anihta-topbar {
    position: sticky;
    top: .75rem;
    z-index: 1020;
    padding: .55rem .75rem !important;
    margin-bottom: 1.5rem !important;
    border: 1px solid var(--anihta-borde) !important;
    border-radius: 1rem;
    background: rgba(17, 26, 46, 0.78);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
body.anihta-sistema .anh-chip-espacio {
    align-items: center;
    gap: .5rem;
    max-width: 260px;
    padding: .4rem .85rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--anihta-texto) !important;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid var(--anihta-borde);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
}
body.anihta-sistema .anh-chip-espacio i { color: var(--anihta-neon); }
body.anihta-sistema .anh-chip-espacio span { overflow: hidden; text-overflow: ellipsis; }
body.anihta-sistema .anh-chip-espacio:hover { border-color: rgba(96, 165, 250, 0.35); }

/* Menú lateral más ancho: ancho fijo en lugar de col-md-3 / col-lg-2 (en lg quedaba de ~180px); el compacto (anh-sidebar-mini) lo sigue cambiando 20261018 ATC */
@media (min-width: 768px) {
    body.anihta-sistema .sidebar { width: 260px; max-width: 260px; flex: 0 0 260px; }
    body.anihta-sistema .sidebar ~ main { width: calc(100% - 260px); max-width: calc(100% - 260px); flex: 0 0 calc(100% - 260px); }
}
@media (min-width: 1200px) {
    body.anihta-sistema .sidebar { width: 290px; max-width: 290px; flex: 0 0 290px; }
    body.anihta-sistema .sidebar ~ main { width: calc(100% - 290px); max-width: calc(100% - 290px); flex: 0 0 calc(100% - 290px); }
}

/* Avatar del encabezado centrado como los demás botones (40px); el <a> inline-flex dentro de un div de bloque dejaba espacio abajo 20261018 ATC */
body.anihta-sistema .anihta-topbar .dropdown { display: flex; align-items: center; }
body.anihta-sistema #InnerHTMLAvatarNavbar { align-items: center; line-height: 0; }
body.anihta-sistema #InnerHTMLAvatarNavbar img.user-avtar { display: block; width: 40px; height: 40px; font-size: 15px; }
/* Avatar con la inicial (sin foto): la letra queda centrada en el círculo (display:block y line-height:0 la subían) 20261019 */
body.anihta-sistema #InnerHTMLAvatarNavbar .avtar { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; font-size: 15px; line-height: 1; }

/* Menú lateral: transición al compactar */
@media (min-width: 768px) {
    body.anihta-sistema .sidebar { transition: width .25s ease, max-width .25s ease, flex-basis .25s ease; }
    body.anihta-sistema main { transition: width .25s ease, max-width .25s ease, flex-basis .25s ease; }

    /* Compacto: solo iconos */
    body.anihta-sistema.anh-sidebar-mini .sidebar {
        width: 84px !important;
        max-width: 84px !important;
        flex: 0 0 84px !important;
        padding-left: .7rem !important;
        padding-right: .7rem !important;
        overflow-x: hidden;
    }
    body.anihta-sistema.anh-sidebar-mini main {
        width: calc(100% - 84px) !important;
        max-width: calc(100% - 84px) !important;
        flex: 0 0 calc(100% - 84px) !important;
    }
    body.anihta-sistema.anh-sidebar-mini .sidebar .nav-link { justify-content: center; padding: .7rem 0; }
    body.anihta-sistema.anh-sidebar-mini .sidebar .nav-link span,
    body.anihta-sistema.anh-sidebar-mini .sidebar .anh-grupo-flecha,
    body.anihta-sistema.anh-sidebar-mini .anh-marca-texto,
    body.anihta-sistema.anh-sidebar-mini .anh-marca-ambiente,
    body.anihta-sistema.anh-sidebar-mini .sidebar-usuario .flex-grow-1,
    body.anihta-sistema.anh-sidebar-mini .sidebar-usuario > .d-flex > a,
    body.anihta-sistema.anh-sidebar-mini #CollapseUsuarioSidebar { display: none !important; }
    body.anihta-sistema.anh-sidebar-mini .sidebar .nav-link i { width: auto; font-size: 1.1rem; }
    body.anihta-sistema.anh-sidebar-mini .sidebar .nav-link.active::before { left: -.7rem; }
    body.anihta-sistema.anh-sidebar-mini .sidebar > .d-flex:first-child { justify-content: center; padding: 0 !important; }
    body.anihta-sistema.anh-sidebar-mini .sidebar-usuario { padding: .5rem !important; display: flex; justify-content: center; }
    /* Grupos: en compacto se ven sus páginas como iconos (sin el título del grupo) */
    body.anihta-sistema.anh-sidebar-mini .sidebar .anh-grupo > .nav-link { display: none; }
    body.anihta-sistema.anh-sidebar-mini .sidebar .anh-grupo > .collapse { display: block !important; height: auto !important; }
    body.anihta-sistema.anh-sidebar-mini .sidebar .anh-submenu { margin: 0; padding: 0; border-left: 0; }
    body.anihta-sistema.anh-sidebar-mini .sidebar .anh-submenu .nav-link { padding: .7rem 0; }
}

/* Banner de Inicio: siempre oscuro (su texto es blanco en los dos temas) */
body.anihta-sistema .welcome-banner { background: linear-gradient(135deg, #0f1b33 0%, #13284a 55%, #1d3b2a 100%) !important; }

/* ---------- MODO CLARO: fondo slate limpio, tarjetas blancas y verde esmeralda de alto contraste ---------- */
[data-bs-theme="light"] body.anihta-sistema {
    --bs-body-bg: #f8fafc;
    --anihta-texto: #1e293b;
    --anihta-texto-muted: #64748b;
    --anihta-borde: #e2e8f0;
    --anihta-borde-fuerte: #cbd5e1;
    --anihta-dark: #ffffff;
    --anihta-surface: #f1f5f9;
    --anihta-neon: #2563eb;
    --anihta-neon-rgb: 37, 99, 235;
    background-color: #f8fafc;
    color: #1e293b;
}
[data-bs-theme="light"] body.anihta-sistema h1,
[data-bs-theme="light"] body.anihta-sistema h2,
[data-bs-theme="light"] body.anihta-sistema h3,
[data-bs-theme="light"] body.anihta-sistema h4,
[data-bs-theme="light"] body.anihta-sistema h5,
[data-bs-theme="light"] body.anihta-sistema h6,
[data-bs-theme="light"] body.anihta-sistema .anh-titulo-pagina,
[data-bs-theme="light"] body.anihta-sistema .anh-marca-texto,
[data-bs-theme="light"] body.anihta-sistema .anh-stat-valor { color: #0f172a; }
[data-bs-theme="light"] body.anihta-sistema .anh-grupo-item-valor { color: #0f172a; }
[data-bs-theme="light"] body.anihta-sistema .anh-grupo-item:hover { background: rgba(15,23,42,.03); }
[data-bs-theme="light"] body.anihta-sistema .text-white { color: #0f172a !important; }
[data-bs-theme="light"] body.anihta-sistema .welcome-banner .text-white,
[data-bs-theme="light"] body.anihta-sistema .welcome-banner h2 { color: #ffffff !important; }
[data-bs-theme="light"] body.anihta-sistema .welcome-banner .btn-outline-light { color: #ffffff !important; border-color: rgba(255, 255, 255, 0.5); }
[data-bs-theme="light"] body.anihta-sistema .border-secondary { border-color: #e2e8f0 !important; }
[data-bs-theme="light"] body.anihta-sistema .card,
[data-bs-theme="light"] body.anihta-sistema .anh-stat {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 6px 18px rgba(15, 23, 42, 0.03);
}
[data-bs-theme="light"] body.anihta-sistema .sidebar {
    background-color: #ffffff;
    border-right: 1px solid #e2e8f0;
    box-shadow: 2px 0 18px rgba(15, 23, 42, 0.03);
}
[data-bs-theme="light"] body.anihta-sistema .sidebar .nav-link { color: #475569 !important; }
[data-bs-theme="light"] body.anihta-sistema .sidebar .nav-link:hover { background-color: #f1f5f9; color: #0f172a !important; }
[data-bs-theme="light"] body.anihta-sistema .sidebar .nav-link.active { background-color: #f0fdf4 !important; color: #1d4ed8 !important; font-weight: 600; }
[data-bs-theme="light"] body.anihta-sistema .sidebar .nav-link.active::before { background: #2563eb; box-shadow: 0 0 8px rgba(37, 99, 235, 0.4); }
[data-bs-theme="light"] body.anihta-sistema .sidebar .nav-link.active i { color: #2563eb !important; }
[data-bs-theme="light"] body.anihta-sistema .sidebar-usuario { background: #f8fafc; border-color: #e2e8f0; }
[data-bs-theme="light"] body.anihta-sistema .anihta-logo { filter: brightness(0); background: transparent; padding: 0; }
[data-bs-theme="light"] body.anihta-sistema .anihta-topbar { background: rgba(255, 255, 255, 0.95); border-bottom: 1px solid #e2e8f0; box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04); }
[data-bs-theme="light"] body.anihta-sistema .anh-chip-espacio { background: #f1f5f9; border: 1px solid #e2e8f0; color: #334155 !important; }
[data-bs-theme="light"] body.anihta-sistema .anh-chip-espacio i { color: #2563eb; }
[data-bs-theme="light"] body.anihta-sistema .btn-topbar { color: #64748b; border-color: #cbd5e1; background: #ffffff; }
[data-bs-theme="light"] body.anihta-sistema .btn-topbar:hover { color: #0f172a; background: #f1f5f9; }
[data-bs-theme="light"] body.anihta-sistema .table { --bs-table-bg: transparent; color: #1e293b; }
[data-bs-theme="light"] body.anihta-sistema .table thead th { color: #475569; background: #f8fafc; border-bottom: 1px solid #e2e8f0; font-weight: 600; }
[data-bs-theme="light"] body.anihta-sistema .table > :not(caption) > * > * { border-color: #f1f5f9; }
[data-bs-theme="light"] body.anihta-sistema .anh-item:hover { background: #f8fafc; }
[data-bs-theme="light"] body.anihta-sistema .anh-item { border-bottom-color: #f1f5f9; }
[data-bs-theme="light"] body.anihta-sistema .form-control,
[data-bs-theme="light"] body.anihta-sistema .form-select { background-color: #ffffff; border-color: #cbd5e1; color: #0f172a; }
[data-bs-theme="light"] body.anihta-sistema .form-control:focus,
[data-bs-theme="light"] body.anihta-sistema .form-select:focus { border-color: #2563eb; box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.2); }
[data-bs-theme="light"] body.anihta-sistema .anh-tabs { background: #ffffff; border-color: #e2e8f0; }
[data-bs-theme="light"] body.anihta-sistema .anh-dato { background: #f8fafc; border-color: #e2e8f0; }
[data-bs-theme="light"] body.anihta-sistema .anh-badge-suave,
[data-bs-theme="light"] body.anihta-sistema .anh-chip { background: #f1f5f9; color: #475569; }
[data-bs-theme="light"] body.anihta-sistema .anh-paso-num { background: #dcfce7; color: #1d4ed8; }

/* Badges con alto contraste y frescura */
[data-bs-theme="light"] body.anihta-sistema .bg-light-primary { background-color: #f0fdf4 !important; border: 1px solid #bbf7d0; color: #1d4ed8 !important; }
[data-bs-theme="light"] body.anihta-sistema .bg-light-primary.hei-75 { background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%) !important; border: none; }
[data-bs-theme="light"] body.anihta-sistema .bg-light-success { background-color: #f0fdf4 !important; border: 1px solid #bbf7d0; color: #1d4ed8 !important; }
[data-bs-theme="light"] body.anihta-sistema .bg-light-warning { background-color: #fffbeb !important; border: 1px solid #fde68a; color: #b45309 !important; }
[data-bs-theme="light"] body.anihta-sistema .bg-light-danger { background-color: #fef2f2 !important; border: 1px solid #fecaca; color: #b91c1c !important; }
[data-bs-theme="light"] body.anihta-sistema .bg-light-info { background-color: #f0f9ff !important; border: 1px solid #bae6fd; color: #0369a1 !important; }
[data-bs-theme="light"] body.anihta-sistema .bg-light-secondary { background-color: #f1f5f9 !important; border: 1px solid #e2e8f0; color: #475569 !important; }

/* Botones secundarios con tinte verde suave */
[data-bs-theme="light"] body.anihta-sistema .btn-light-primary { background-color: #f0fdf4 !important; border: 1px solid #bbf7d0 !important; color: #1d4ed8 !important; font-weight: 600; }
[data-bs-theme="light"] body.anihta-sistema .btn-light-primary:hover { background-color: #2563eb !important; border-color: #2563eb !important; color: #ffffff !important; }

/* Enlaces y modales */
[data-bs-theme="light"] body.anihta-sistema .modal-content { background: #ffffff; color: #1e293b; border-color: #e2e8f0; }
[data-bs-theme="light"] body.anihta-sistema .dropdown-menu { background: #ffffff; border-color: #e2e8f0; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08); }
[data-bs-theme="light"] body.anihta-sistema .dropdown-item { color: #334155; }
[data-bs-theme="light"] body.anihta-sistema .dropdown-item:hover { background-color: #f1f5f9; color: #0f172a; }
[data-bs-theme="light"] body.anihta-sistema .breadcrumb-item a { color: #1d4ed8; }
[data-bs-theme="light"] body.anihta-sistema .breadcrumb-item a:hover { color: #2563eb; }
[data-bs-theme="light"] body.anihta-sistema .anh-plan { background: linear-gradient(160deg, rgba(37, 99, 235, 0.08), #ffffff 55%); border-color: #e2e8f0; }

/* Llave de API que se usó en una petición (Recibidos, Bitácora, Inicio) 20261017 ATC */
body.anihta-sistema .anh-chip-llave { display: inline-flex; align-items: center; max-width: 100%; padding: .12rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 600; color: #38bdf8; background: rgba(56, 189, 248, 0.1); border: 1px solid rgba(56, 189, 248, 0.25); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-bs-theme="light"] body.anihta-sistema .anh-chip-llave { color: #0369a1; background: #e0f2fe; border-color: #bae6fd; }
