/* EDITOR DE DOCUMENTOS — boton especial (Item 27) */
.btn-editor-doc {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.75rem;
    color: var(--celeste-metrica);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-editor-doc:hover {
    background: rgba(59, 130, 246, 0.22);
    border-color: rgba(59, 130, 246, 0.5);
    color: var(--celeste-metrica);
    transform: translateY(-1px);
}

/* EDITOR DOCUMENTO — layout del editor de instancias */
.doc-editor-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .doc-editor-layout {
        grid-template-columns: 1fr;
    }
}

.doc-editor-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1.25rem;
    padding: 1.5rem;
}

.doc-editor-panel-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}

.doc-preview-frame {
    width: 100%;
    min-height: 400px;
    background: #fff;
    border-radius: 0.75rem;
    border: none;
    padding: 1.5rem;
    color: #111;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-y: auto;
}

.doc-instancia-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
    gap: 0.75rem;
}

.doc-instancia-card:hover {
    background: rgba(255, 255, 255, 0.07);
}

.doc-instancia-info {
    flex: 1;
    min-width: 0;
}

.doc-instancia-nombre {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-instancia-meta {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.15rem;
}

.doc-instancia-actions {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}

.btn-doc-edit {
    padding: 0.3rem 0.7rem;
    background: rgba(224, 199, 7, 0.12);
    border: 1px solid rgba(224, 199, 7, 0.25);
    border-radius: 0.5rem;
    color: var(--limonit-yellow);
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-doc-edit:hover {
    background: rgba(224, 199, 7, 0.22);
}

.btn-doc-delete {
    padding: 0.3rem 0.7rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 0.5rem;
    color: #ef4444;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-doc-delete:hover {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(224, 199, 7, 0.15);
    border-top: 3px solid var(--limonit-yellow);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--limonit-yellow);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.btn-limonit {
    background: var(--gradient);
    color: #000;
    padding: 0.75rem 1.75rem;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-limonit:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(224, 199, 7, 0.3);
    color: #000 !important;
    /* Garantiza que el texto sea negro sobre fondo amarillo */
}

/* GLOBAL LAYOUT */
.layout-body {
    background-color: #000000;
    color: #ffffff;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: var(--font-main);
}

.layout-wrapper {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.layout-main {
    flex: 1;
    min-width: 0;          /* Prevents flex child from overflowing when sidebar expands */
    overflow-y: auto;
    overflow-x: auto;      /* Allows horizontal scroll if content is too wide */
    padding: 1.5rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* BREADCRUMBS */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 2rem;
}

.breadcrumb-link {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: #eab308;
}

.breadcrumb-current {
    color: rgba(255, 255, 255, 0.75);
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.3);
}

.breadcrumb-tenant-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.6rem;
    background: rgba(224, 199, 7, 0.12);
    border: 1px solid rgba(224, 199, 7, 0.3);
    border-radius: 9999px;
    color: var(--limonit-yellow);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* BACK TO TOP BUTTON */
.back-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 20rem;
    /* a la izquierda del sidebar derecho (18rem + margen) */
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--limonit-yellow);
    color: #000;
    border: none;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(224, 199, 7, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 190;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(224, 199, 7, 0.6);
}

/* MESSAGE SYSTEM */
.message-container {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message-box {
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInDown 0.5s ease-out;
}

.message-success {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.message-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.message-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.message-text {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* LOCK SCREEN */
.lock-screen {
    position: fixed;
    inset: 0;
    z-index: 100;
    background-color: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
}

.lock-container {
    max-width: 35rem;
    /* Aumentado para ergonomía */
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.lock-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2.5rem;
    border-radius: 3rem;
    border: 1px solid rgba(234, 179, 8, 0.15);
    box-shadow: 0 25px 50px -12px rgba(234, 179, 8, 0.05);
}

.lock-title {
    font-family: var(--font-accent);
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.lock-subtitle {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #eab308;
    margin-bottom: 1rem;
}

.lock-input-group {
    position: relative;
}

.lock-input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.1rem;
    z-index: 1;
    pointer-events: none;
}

/* Selects y Badges Custom */
.select-dashboard {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border-radius: 0.5rem;
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
    outline: none;
    transition: all 0.2s;
}

.select-dashboard:focus {
    border-color: var(--limonit-yellow);
}

.btn-status-green {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: none;
}

.btn-status-red {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: none;
}

.btn-status-yellow {
    background: rgba(224, 199, 7, 0.15);
    color: #e0c707;
    border: 1px solid rgba(224, 199, 7, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: none;
}

.lock-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.25rem 3rem 1.25rem 3.5rem !important;
    font-size: 1.125rem;
    color: #ffffff;
    outline: none;
    transition: all 0.3s ease;
    text-align: left;
}

.lock-input:focus {
    border-color: rgba(234, 179, 8, 0.5);
}

.lock-eye-toggle {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0;
    z-index: 2;
    transition: all 0.2s ease;
}

.lock-eye-toggle:hover {
    color: var(--limonit-yellow, #eab308);
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.accent-yellow {
    color: var(--limonit-yellow);
}

.text-accent-yellow {
    color: #eab308;
}

.text-error-alert {
    color: #ef4444;
}

/* GLASSMORPHISM & BLUR EFFECTS */
.glass-top {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
}

.glass-side {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.login-card-glass {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ATOMIC TYPOGRAPHY & MINI COMPONENTS */
.text-micro-caps {
    font-size: calc(8px * var(--font-scale)) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2em !important;
}

.text-mini-caps {
    font-size: calc(10px * var(--font-scale)) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2em !important;
}

/* .sidebar-section-title — movido a sidebar.css */

.table-header-cell {
    padding: 1.25rem 2rem;
    font-size: calc(10px * var(--font-scale));
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.badge-status {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: calc(10px * var(--font-scale));
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-width: 1px;
}

.form-help-text {
    font-size: 0.85rem;
    color: #ffffff;
    margin-top: 0.25rem;
    margin-left: 0.25rem;
    font-style: italic;
    line-height: 1.4;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--limonit-yellow);
}

/* PREMIUM FORM INPUTS (Global) — excluye file inputs y checkboxes */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
select,
textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-main);
    font-size: var(--fs-base);
    font-family: var(--font-main);
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
    border-color: var(--limonit-yellow);
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 0 3px rgba(224, 199, 7, 0.12);
}

input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--limonit-yellow);
    cursor: pointer;
}

/* File inputs — estilo propio, sin sobreescribir */
input[type="file"] {
    width: 100%;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0.5rem 0;
}

input[type="file"]::file-selector-button {
    margin-right: 0.75rem;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(234, 179, 8, 0.3);
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="file"]::file-selector-button:hover {
    background: rgba(234, 179, 8, 0.2);
}

/* CUSTOM SCROLLBAR UTILITY */
.custom-scroll::-webkit-scrollbar {
    width: 4px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: rgba(234, 179, 8, 0.2);
    border-radius: 10px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(234, 179, 8, 0.4);
}




/* =============================================================================
   FLOTANTE DE ACCESIBILIDAD (A11Y FAB) — centro del margen, a la izquierda del sidebar derecho
   ============================================================================= */
.a11y-fab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.a11y-fab-trigger {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--limonit-yellow);
    color: #000;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(224, 199, 7, 0.4);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.a11y-fab-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(224, 199, 7, 0.6);
}

.a11y-fab-panel {
    background: rgba(0, 0, 23, 0.97);
    border: 1px solid rgba(224, 199, 7, 0.2);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 11rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
}

.a11y-fab-panel.a11y-open {
    display: flex;
}


.a11y-font-row {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.a11y-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
}

.a11y-theme-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    padding: 0.4rem 0.75rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.a11y-theme-btn:hover {
    background: rgba(224, 199, 7, 0.1);
    color: var(--limonit-yellow);
    border-color: rgba(224, 199, 7, 0.2);
}

/* Tema claro — ajustes del flotante */
html.theme-light .a11y-fab-panel {
    background: rgba(255, 255, 255, 0.97);
    border-color: rgba(0, 0, 0, 0.1);
}

html.theme-light .a11y-theme-btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
    color: #111827;
}

html.theme-light .a11y-fab-label {
    color: #6b7280;
}



/* CONFIGURATION SYSTEM */
.config-container {
    width: 100%;
    padding-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.config-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.config-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.config-title {
    font-family: var(--font-accent);
    font-size: 1.875rem;
    font-weight: 700;
    color: #eab308;
    filter: drop-shadow(0 0 20px rgba(234, 179, 8, 0.8));
    /* Glow ultra intenso */
}

.config-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.config-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.config-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
}

.config-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .config-grid {
        grid-template-columns: 1fr;
    }

    .config-main-col {
        grid-column: span 1;
    }
}

.config-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 2rem;
    backdrop-filter: blur(20px);
}

.config-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.config-card-icon {
    padding: 0.75rem;
    background: rgba(234, 179, 8, 0.15);
    border-radius: 1rem;
    font-size: 1.5rem;
}

.config-card-icon.icon-blue {
    background: rgba(59, 130, 246, 0.15);
}

.config-card-icon.icon-green {
    background: rgba(34, 197, 94, 0.15);
}

.config-card-icon.icon-yellow {
    background: rgba(234, 179, 8, 0.15);
}

.config-label-muted {
    color: rgba(255, 255, 255, 0.75);
}

.config-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.config-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

    .config-form-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .config-form-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.config-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.config-logo-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 12rem;
    overflow: hidden;
}

.config-logo-preview {
    height: 4rem;
    width: auto;
    object-fit: contain;
}

.config-file-input {
    width: 100%;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.75);
}

.config-file-input::file-selector-button {
    margin-right: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    border: none;
    font-size: 10px;
    font-weight: 600;
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
    cursor: pointer;
    transition: all 0.2s ease;
}

.config-file-input:hover::file-selector-button {
    background: rgba(234, 179, 8, 0.2);
}

.config-section-divider {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* QUICK ACCESS CARDS */
.config-quick-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

.config-quick-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.config-quick-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.config-quick-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.config-quick-arrow {
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.config-quick-card:hover .config-quick-arrow {
    opacity: 100;
    transform: translateX(5px);
}

.config-quick-title {
    font-weight: 700;
    font-size: 1.125rem;
    color: #ffffff;
}

.config-quick-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 0.25rem;
}

/* METRICS & STATUS */
.config-metrics-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.config-metrics-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.config-metric-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
}

.config-version-badge {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.05), transparent);
    border: 1px solid rgba(234, 179, 8, 0.1);
    border-radius: 1.5rem;
}

.config-version-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #eab308;
    margin-bottom: 0.5rem;
}

.config-logs-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.config-logs-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* FORM SYSTEM */
.form-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-title {
    font-family: var(--font-accent);
    font-size: 1.875rem;
    font-weight: 700;
    color: #eab308;
}

.form-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
}

.form-cancel-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.form-cancel-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.form-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2.5rem;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

    .form-col-span-2 {
        grid-column: span 2;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.75);
    margin-left: 0.25rem;
}

.form-error-text {
    color: #ef4444;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.form-help-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
    margin-left: 0.25rem;
    font-style: normal;
    line-height: 1.4;
}



.form-submit-btn {
    flex: 1;
    padding: 1rem;
    background: #eab308;
    color: #000000;
    border: none;
    border-radius: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(234, 179, 8, 0.2);
    transition: all 0.3s ease;
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(234, 179, 8, 0.3);
}

.form-discard-btn {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.form-discard-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* TABLE & LIST SYSTEM */
.list-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.list-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.list-title {
    font-family: var(--font-accent);
    font-size: 1.875rem;
    font-weight: 700;
    color: #eab308;
}

.list-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
}

.list-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2rem;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.data-table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
}

.table-header {
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table-header-cell {
    padding: 1.25rem 2rem;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
}

.table-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

.table-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.table-cell {
    padding: 1.5rem 2rem;
}

.table-cell-name {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #eab308;
    font-weight: 700;
}

.table-cell-title {
    font-weight: 700;
    color: #ffffff;
    transition: color 0.3s ease;
}

.table-row:hover .table-cell-title {
    color: #eab308;
}

.table-cell-id {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}


/* BADGE VARIANTS */
.badge-blue {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.badge-green {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.badge-red {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.badge-ghost {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.75);
}

/* TABLE REFINEMENTS */
.table-mono-text {
    color: rgba(255, 255, 255, 0.75);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.875rem;
}

.table-workflow-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
}

.table-workflow-step {
    font-size: 9px;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    color: rgba(255, 255, 255, 0.75);
}

.table-workflow-arrow {
    color: #ffffff;
    font-size: 10px;
}

.table-empty-state {
    padding: 5rem;
    text-align: center;
}

.table-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.2;
}

/* LOCK SCREEN REFINEMENTS */
.lock-logo-img {
    height: 6rem;
    width: auto;
    margin-bottom: 1.5rem;
    filter: none !important;
    /* Sin sombreado en el logo */
    box-shadow: none !important;
}

.lock-title {
    font-family: var(--font-accent);
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 20px rgba(234, 179, 8, 0.9));
    /* Glow intenso en el Lock Screen */
}

.lock-logo-placeholder {
    width: 5rem;
    height: 5rem;
    border-radius: 1.5rem;
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 1.5rem;
}

.lock-user-card {
    width: 100%;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.lock-logout-btn {
    border: none;
    background: none;
    margin: 0 auto;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.lock-logout-btn:hover {
    color: #ef4444;
}


/* DASHBOARD HOME COMPONENTS (Enterprise Governance) */
.dashboard-home-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dashboard-welcome-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 2.5rem;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .dashboard-welcome-card {
        flex-direction: row;
    }
}

.dashboard-welcome-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 10;
}

.dashboard-logo-large {
    height: 6rem;
    width: auto;
    object-fit: contain;
    filter: none !important;
    box-shadow: none !important;
}

.dashboard-welcome-text-group {
    display: flex;
    flex-direction: column;
}

.dashboard-welcome-title {
    font-size: 1.875rem;
    font-weight: 700;
    font-family: 'Michroma', sans-serif;
    color: var(--limonit-yellow);
}

.dashboard-welcome-subtitle {
    color: rgba(255, 255, 255, 0.75);
    margin-top: 0.5rem;
}

.dashboard-welcome-tenant {
    color: #ca8a04;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.dashboard-status-panel {
    display: none;
    z-index: 10;
    text-align: right;
}

@media (min-width: 1024px) {
    .dashboard-status-panel {
        display: block;
    }
}

.dashboard-status-label {
    font-size: calc(10px * var(--font-scale));
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.dashboard-status-indicator {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.dashboard-status-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: #22c55e;
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.dashboard-status-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: #22c55e;
    text-transform: uppercase;
}

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .dashboard-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.dashboard-stat-card {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    transition: all 0.3s ease;
}

.dashboard-stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.dashboard-stat-label {
    font-size: calc(10px * var(--font-scale));
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.dashboard-stat-value {
    font-size: 2.25rem;
    font-family: 'Michroma', sans-serif;
    color: #ffffff;
}

.dashboard-stat-value-warning {
    color: #ca8a04;
}

.dashboard-stat-value-error {
    color: #ef4444;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

/* FORM UTILITIES (Enterprise Governance) */
.form-grid-full {
    grid-column: 1 / -1;
}

.form-flex-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.config-logos-row {
    margin-top: 1.5rem;
}

.config-mfa-row {
    margin-top: 1rem;
}

.text-main {
    color: var(--text-main) !important;
}


/* =============================================================================
   LOCK SCREEN — estado oculto por clase (sin inline style)
   ============================================================================= */
.lock-screen--hidden {
    display: none;
}

.lock-error--hidden {
    display: none;
    margin-top: 1rem;
}

/* =============================================================================
   LIST / TABLE — clases que reemplazan inline styles
   ============================================================================= */

/* Botón crear en header de lista */
.btn-list-create {
    padding: 0.75rem 1.5rem;
    font-size: 0.75rem;
    background: #eab308;
    color: #000;
    border: none;
    border-radius: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.btn-list-create:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(234, 179, 8, 0.25);
}

/* Botón extra en tabla (ej: Configurar Ruta) */
.btn-table-extra {
    padding: 0.5rem 1rem;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.2);
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-table-extra:hover {
    background: rgba(234, 179, 8, 0.2);
}

/* Botón editar en tabla */
.btn-table-edit {
    padding: 0.5rem 1rem;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-table-edit:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Alineación derecha en tabla */
.table-header-cell--right {
    text-align: right;
}

.table-cell--right {
    text-align: right;
}

/* País en tabla */
.table-country {
    font-size: 0.875rem;
}

/* Workflow step vacío */
.table-workflow-step--empty {
    font-style: italic;
    color: rgba(239, 68, 68, 0.6);
    background: none;
}

/* Empty state grande */
.table-empty-state--large {
    padding: 5rem 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2rem;
}

.table-empty-title {
    font-family: 'Michroma', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.table-empty-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
}

/* Badge con pulso */
.badge-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* =============================================================================
   RESET REQUESTS — solicitudes de reseteo de contraseña
   ============================================================================= */
.reset-requests-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reset-request-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: background 0.3s ease;
}

.reset-request-card:hover {
    background: rgba(255, 255, 255, 0.06);
}

@media (min-width: 768px) {
    .reset-request-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.reset-request-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.reset-request-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.reset-request-username {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.reset-request-role {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #eab308;
    margin-bottom: 0.5rem;
}

.reset-request-motivo {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    font-style: italic;
    margin-bottom: 0.75rem;
}

.reset-request-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.reset-request-meta-item {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
}

.reset-request-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-reject {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: transparent;
    color: #ef4444;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reject:hover {
    background: rgba(239, 68, 68, 0.1);
}

.btn-approve {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* =============================================================================
   CONFIGURACION — clases que reemplazan inline styles
   ============================================================================= */
.config-logos-row {
    margin-top: 1.5rem;
}

.config-mfa-row {
    margin-top: 1rem;
}

.config-form-grid-1 {
    grid-template-columns: 1fr;
}

/* text-main utility */
.text-main {
    color: var(--text-main);
}

/* =============================================================================
   SELECTOR DE PERFIL / DASHBOARD (SuperAdmin LimonIt)
   ============================================================================= */

/* SELECTOR DE PERFIL (SIMULADOR) */
.profile-switcher-bar {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(224, 199, 7, 0.15);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.profile-switcher-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    justify-content: flex-end;
}

.profile-select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(224, 199, 7, 0.3);
    border-radius: 0.6rem;
    color: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
    min-width: 220px;
}

.profile-select:focus {
    border-color: var(--limonit-yellow);
    box-shadow: 0 0 10px rgba(224, 199, 7, 0.2);
}

.profile-select option {
    background: #000000;
    color: #fff;
}

.profile-switcher-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.profile-switcher-icon {
    font-size: 1.25rem;
    opacity: 0.7;
}

.profile-switcher-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--limonit-yellow);
    margin: 0;
}

.profile-switcher-subtitle {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.profile-switcher-controls {
    flex: 1;
    min-width: 0;
}

.profile-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profile-btn {
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.5);
    font-size: calc(10px * var(--font-scale));
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.profile-btn:hover {
    background: rgba(224, 199, 7, 0.1);
    border-color: rgba(224, 199, 7, 0.3);
    color: var(--limonit-yellow);
}

.profile-btn--active {
    background: var(--gradient);
    border-color: transparent;
    color: #000 !important;
    box-shadow: 0 2px 12px rgba(224, 199, 7, 0.3);
}

/* Tema claro */
html.theme-light .profile-switcher-bar {
    background: rgba(224, 199, 7, 0.06);
    border-color: rgba(224, 199, 7, 0.2);
}

html.theme-light .profile-btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

html.theme-light .profile-btn:hover {
    background: rgba(224, 199, 7, 0.1);
    color: #92400e;
}

/* Rol en bienvenida */
.dashboard-welcome-role {
    font-size: calc(10px * var(--font-scale));
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #ffffff;
    margin-top: 0.5rem;
}

/* =============================================================================
   LOGO UPLOAD BOX — reemplaza el widget roto de Django
   ============================================================================= */
.logo-upload-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px dashed rgba(224, 199, 7, 0.25);
    border-radius: 1rem;
    padding: 1.25rem;
}

.logo-preview-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.logo-preview-img {
    max-height: 6rem;
    max-width: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    padding: 0.5rem;
}

.logo-preview-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #ffffff;
    margin: 0;
}

.logo-upload-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.logo-upload-hint {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff;
    margin: 0;
}

/* Tema claro */
html.theme-light .logo-upload-box {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.12);
}

html.theme-light .logo-preview-img {
    border-color: rgba(0, 0, 0, 0.08);
    background: #fff;
}

/* =============================================================================
   FORM CHECKBOX — sin superposición de burbujas
   ============================================================================= */
.form-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 0;
}

.form-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.form-checkbox-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Asegurar que el checkbox no herede el padding gigante del input global */
.form-checkbox-group input[type="checkbox"] {
    width: 1.2rem !important;
    height: 1.2rem !important;
    padding: 0 !important;
    border-radius: 0.25rem !important;
    flex-shrink: 0;
}


/* =============================================================================
   DASHBOARD HOME — accesos rápidos por perfil
   ============================================================================= */
.dashboard-section-title {
    font-family: 'Michroma', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.dashboard-accesos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.dashboard-acceso-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.dashboard-acceso-card:hover {
    background: rgba(224, 199, 7, 0.07);
    border-color: rgba(224, 199, 7, 0.2);
    transform: translateY(-2px);
}

.dashboard-acceso-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.dashboard-acceso-info {
    flex: 1;
    min-width: 0;
}

.dashboard-acceso-titulo {
    font-weight: 700;
    font-size: 0.875rem;
    color: #ffffff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-acceso-desc {
    font-size: 10px;
    color: #ffffff;
    margin: 0.2rem 0 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dashboard-acceso-arrow {
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.dashboard-acceso-card:hover .dashboard-acceso-arrow {
    color: var(--limonit-yellow);
    transform: translateX(4px);
}

.dashboard-perfil-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 0.25rem;
    font-style: italic;
}

/* Tema claro */
html.theme-light .dashboard-acceso-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

html.theme-light .dashboard-acceso-card:hover {
    background: rgba(224, 199, 7, 0.06);
    border-color: rgba(224, 199, 7, 0.25);
}

html.theme-light .dashboard-acceso-titulo {
    color: #111827;
}

html.theme-light .dashboard-acceso-desc {
    color: #ffffff;
}

/* =============================================================================
   TOUR DEL DASHBOARD — posicionado arriba, tamaño grande y legible
   ============================================================================= */
.tour-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    /* Oscurecemos un poco más el fondo */
    z-index: 10000;
    backdrop-filter: blur(5px);
    pointer-events: none;
    /* FIX Issue 5: no bloquea clicks cuando está inactivo */
}

.tour-overlay.tour-active {
    display: block;
    pointer-events: auto;
    /* Solo bloquea clicks cuando el tour está activo */
}

.tour-box {
    display: none;
    position: fixed;
    z-index: 999999;
    width: 340px;
    max-width: calc(100vw - 2rem);
    min-height: 0;
    background: rgba(0, 0, 0, 0.98);
    border: 2px solid rgba(224, 199, 7, 0.5);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(224, 199, 7, 0.15);
    backdrop-filter: blur(40px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.tour-box.tour-active {
    display: block !important;
    pointer-events: auto;
}

/* Handle de arrastre — barra superior de la caja del tour */
.tour-drag-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -1.25rem -1.5rem 0.75rem;
    padding: 0.35rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1rem 1rem 0 0;
    cursor: grab;
    user-select: none;
    transition: background 0.15s;
}

.tour-drag-handle:hover {
    background: rgba(224, 199, 7, 0.08);
}

.tour-drag-handle:active {
    cursor: grabbing;
    background: rgba(224, 199, 7, 0.12);
}

/* Cuando se está arrastrando la caja */
.tour-box.tour-dragging {
    opacity: 0.92;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 40px rgba(224, 199, 7, 0.25);
    transition: none !important;
}

/* Elevación de padres para evitar que el z-index oculte el highlight */
.tour-parent-active {
    z-index: 10001 !important;
    overflow: visible !important;
}

/* Tour styles para sidebar movidos a sidebar.css */

/* RESALTADO DEL TOUR: El "foco" de atención */
.tour-highlight {
    position: relative !important;
    z-index: 10002 !important;
    pointer-events: none !important;
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 0 0 10px rgba(224, 199, 7, 0.15),
        0 0 0 2px var(--limonit-yellow),
        0 0 40px var(--limonit-yellow) !important;
    border-radius: 0.6rem !important;
    transition: all 0.3s ease;
}



/* Monitoreo de Instituciones SaaS en Pantalla de Bloqueo */
.lock-tenants-list-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
    text-align: left;
}

.lock-tenants-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--limonit-yellow);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lock-tenants-scroll {
    max-height: 150px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Scrollbar premium */
.lock-tenants-scroll::-webkit-scrollbar {
    width: 5px;
}

.lock-tenants-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 9999px;
}

.lock-tenants-scroll::-webkit-scrollbar-thumb {
    background: rgba(224, 199, 7, 0.25);
    border-radius: 9999px;
}

.lock-tenants-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    text-align: left;
}

.lock-tenants-table th {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lock-tenants-table td {
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.lock-tenants-table tr:last-child td {
    border-bottom: none;
}

.tenant-plan-badge {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    display: inline-block;
}

.tenant-plan-badge.plan-basic {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.tenant-plan-badge.plan-pro {
    color: #eab308;
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.2);
}

.tenant-plan-badge.plan-ent {
    color: #a855f7;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.status-indicator-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.status-indicator-dot.dot-active {
    background-color: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: status-pulse 2s infinite ease-in-out;
}

@keyframes status-pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

.tour-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.tour-step-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--limonit-yellow);
    background: rgba(224, 199, 7, 0.12);
    padding: 0.3rem 0.8rem;
    border-radius: 9999px;
    border: 1px solid rgba(224, 199, 7, 0.3);
}

.tour-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.3rem 0.6rem;
    transition: all 0.2s;
    line-height: 1;
}

.tour-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.tour-title {
    font-family: 'Michroma', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    margin: 0 0 0.4rem;
    line-height: 1.3;
}

.tour-text {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.55;
    margin: 0 0 0.85rem;
}

/* Tour footer — dos filas: fila 1 = acciones secundarias, fila 2 = navegacion */
.tour-footer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Form footer — estilos para footer de formularios */
.form-footer {
    padding: 0;
    background: transparent;
    border: none;
}

/* Fila superior: "No mostrar más" + "Saltar" */
.tour-footer-secondary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Fila inferior: "Anterior" + "Siguiente" */
.tour-footer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 0.5rem;
    gap: 0.75rem;
}

.tour-btn {
    padding: 0.45rem 1rem;
    border-radius: 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
}

.tour-btn-skip {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.tour-btn-skip:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.tour-btn-never {
    background: transparent;
    color: rgba(255, 255, 255, 0.25);
    border: none;
    font-size: 0.68rem;
    padding: 0.3rem 0.5rem;
    flex-shrink: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tour-btn-never:hover {
    color: rgba(255, 255, 255, 0.6);
}

.tour-btn-prev {
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.tour-btn-prev:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.tour-btn-next {
    background: var(--gradient);
    color: #000;
    flex: 1;
    font-size: 0.78rem;
    padding: 0.6rem 1.25rem;
    box-shadow: 0 4px 20px rgba(224, 199, 7, 0.3);
}

.tour-btn-next:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(224, 199, 7, 0.4);
}



/* =============================================================================
   LOGO UPLOAD WIDGET — reemplaza el ClearableFileInput de Django
   ============================================================================= */
.logo-upload-box {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px dashed rgba(224, 199, 7, 0.2);
    border-radius: 0.75rem;
    padding: 1rem;
    min-height: 10rem;
    align-items: center;
    justify-content: center;
}

.logo-current-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.logo-current-preview--empty {
    opacity: 0.4;
}

.logo-empty-icon {
    font-size: 2rem;
}

.logo-preview-img {
    max-height: 5rem;
    max-width: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    padding: 0.4rem;
}

.logo-preview-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
}

.logo-upload-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

/* Botón de subir — label que activa el input oculto */
.logo-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    background: rgba(224, 199, 7, 0.12);
    border: 1px solid rgba(224, 199, 7, 0.3);
    border-radius: 9999px;
    color: var(--limonit-yellow);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logo-upload-btn:hover {
    background: rgba(224, 199, 7, 0.22);
    border-color: rgba(224, 199, 7, 0.5);
}

/* Input file real — oculto, activado por el label */
.logo-file-input-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    padding: 0 !important;
}

/* Checkbox de borrar */
.logo-clear-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: color 0.2s;
}

.logo-clear-label:hover {
    color: #ef4444;
}

.logo-clear-checkbox {
    width: 0.9rem !important;
    height: 0.9rem !important;
    accent-color: #ef4444;
    padding: 0 !important;
    border-radius: 0.2rem !important;
}

/* Tema claro */
html.theme-light .logo-upload-box {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.12);
}

html.theme-light .logo-preview-img {
    border-color: rgba(0, 0, 0, 0.08);
    background: #fff;
}

html.theme-light .logo-preview-label {
    color: #ffffff;
}

html.theme-light .logo-clear-label {
    color: #ffffff;
}



/* Tema claro — Estilos de sidebar movidos a light-mode.css */

/* =============================================================================
   LOGO CARD â€” widget de carga de imagen limpio (reemplaza ClearableFileInput)
   ============================================================================= */
/* =============================================================================
   ACCESIBILIDAD GLOBAL (FAB)
   ============================================================================= */
.a11y-fab-global {
    position: fixed;
    top: 65%;
    right: 0.5rem;
    /* Default: pegado a la derecha */
    transform: translateY(-50%);
    z-index: 9999;
    pointer-events: none;
    transition: right 0.3s ease, opacity 0.3s ease;
}

/* Si el sidebar derecho está presente y colapsado, mover el FAB a su izquierda */
/* Movido a sidebar.css */

/* Ocultar en el lock screen */
.lock-screen:not(.lock-screen--hidden)~.a11y-fab-global,
body:has(.lock-screen:not(.lock-screen--hidden)) .a11y-fab-global {
    display: none !important;
}

/* Ocultar botones interactivos del navbar cuando el sistema está bloqueado */
body:has(.lock-screen:not(.lock-screen--hidden)) .navbar-actions,
body:has(.lock-screen:not(.lock-screen--hidden)) .navbar-search-group,
body:has(.lock-screen:not(.lock-screen--hidden)) .navbar-hamburger,
body:has(.lock-screen:not(.lock-screen--hidden)) .back-to-top-btn {
    display: none !important;
}

.a11y-fab-global * {
    pointer-events: auto;
    /* Reactivar clicks para los hijos */
}

.a11y-fab-trigger {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--gradient);
    border: none;
    color: #000;
    box-shadow: 0 4px 20px rgba(224, 199, 7, 0.4);
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.a11y-fab-trigger:hover {
    transform: scale(1.1) rotate(15deg);
}

.a11y-fab-panel {
    position: absolute;
    top: 50%;
    right: 4.5rem;
    /* A la izquierda del gatillo */
    transform: translateY(-50%);
    width: 280px;
    background: rgba(12, 17, 23, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    animation: fadeIn 0.3s ease;
}

.a11y-fab-panel.a11y-open {
    display: flex;
}

.a11y-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.a11y-panel-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--limonit-yellow);
}

.a11y-fab-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
    text-transform: uppercase;
}

.a11y-font-row {
    display: flex;
    gap: 0.5rem;
}

.font-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s;
}

.font-btn:hover {
    background: rgba(224, 199, 7, 0.2);
    border-color: var(--limonit-yellow);
}

.a11y-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 0.25rem 0;
}

.a11y-theme-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.a11y-theme-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* =============================================================================
   LOGO CARD â€” widget de carga de imagen limpio
   ============================================================================= */
.logo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.3) !important;
    border: 2px dashed rgba(255, 255, 255, 0.1) !important;
    border-radius: 1.25rem;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 180px;
    justify-content: center;
}

.logo-card:hover {
    border-color: rgba(224, 199, 7, 0.4) !important;
    background: rgba(224, 199, 7, 0.02) !important;
}

.logo-card-preview {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 6rem;
}

.logo-card-img {
    max-height: 6rem;
    max-width: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
}

.logo-card-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.3;
}

.logo-card-empty span {
    font-size: 2.5rem;
}

.logo-card-empty p {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin: 0;
}

.logo-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    background: var(--gradient) !important;
    border-radius: 9999px;
    color: #000 !important;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.logo-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 199, 7, 0.4);
}

.logo-card-delete {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 11px;
    color: #ffffff;
    cursor: pointer;
    margin-top: 0.5rem;
}

.logo-card-delete input {
    accent-color: #ef4444;
}

.logo-card-input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Checkbox eliminar */
.logo-card-delete {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 10px;
    color: #ffffff;
    cursor: pointer;
    transition: color 0.2s;
    user-select: none;
}

.logo-card-delete:hover {
    color: #ef4444;
}

.logo-card-delete input[type="checkbox"] {
    width: 0.85rem !important;
    height: 0.85rem !important;
    accent-color: #ef4444;
    padding: 0 !important;
    border-radius: 0.2rem !important;
    flex-shrink: 0;
}

/* Tema claro */
html.theme-light .logo-card {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

html.theme-light .logo-card-delete {
    color: #ffffff;
}

html.theme-light .logo-card-delete:hover {
    color: #ef4444;
}

/* =============================================================================
   CONFIGURACIÃ“N â€” botones guardar
   ============================================================================= */
.config-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.config-save-header-btn {
    white-space: nowrap;
}

.config-save-section {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
}

.config-save-final-btn {
    width: 100%;
}


/* =============================================================================
   CONFIGURADOR DE RUTAS (WORKFLOW) - DRAG & DROP
   ============================================================================= */
.route-config-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 2rem;
}

@media (min-width: 1024px) {
    .route-config-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.route-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.route-box,
.route-target-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 1.5rem;
    height: 500px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.route-target-box {
    background: rgba(224, 199, 7, 0.05);
    border: 2px dashed rgba(224, 199, 7, 0.2);
}

.route-source-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.route-source-item:hover {
    border-color: rgba(224, 199, 7, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.route-source-item.dragging {
    opacity: 0.4;
}

.route-source-name {
    font-size: 0.875rem;
    font-weight: 600;
}

.route-source-action {
    font-size: 0.75rem;
    color: #ffffff;
    transition: color 0.2s;
    white-space: nowrap;
    margin-left: 1rem;
}

.route-source-item:hover .route-source-action {
    color: var(--limonit-yellow);
}

.route-step {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(224, 199, 7, 0.3);
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.route-step.dragging {
    opacity: 0.4;
}

.route-step-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.drag-handle {
    color: #ffffff;
    cursor: grab;
    user-select: none;
    font-size: 1.25rem;
    line-height: 1;
}

.step-number {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: var(--limonit-yellow);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
}

.route-step-remove {
    background: none;
    border: none;
    color: rgba(239, 68, 68, 0.5);
    font-size: 1.125rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    padding: 0.25rem;
}

.route-step-remove:hover {
    color: rgb(239, 68, 68);
}

.route-empty-msg {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0.3;
}

.route-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.route-empty-msg p {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* =============================================================================
   TABLAS â€” WORKFLOW STEPS
   ============================================================================= */
.table-workflow-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.table-workflow-step {
    font-size: 10px;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table-workflow-arrow {
    color: var(--limonit-yellow);
    font-size: 0.8rem;
    font-weight: bold;
    opacity: 0.5;
}

.table-workflow-step--empty {
    border-style: dashed;
    color: rgba(255, 255, 255, 0.7);
}

/* Fix para palabras "pegadas" en listados generales */
.table-cell-title {
    margin: 0;
}

.table-cell-id {
    margin: 0;
    margin-top: 0.25rem;
}

.badge-status {
    margin-right: 0.5rem;
}

.table-actions {
    gap: 0.75rem !important;
}

/* Tema claro workflow table */
html.theme-light .table-workflow-step {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: #111827;
}

html.theme-light .route-box {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

html.theme-light .route-source-item {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    color: #000;
}

html.theme-light .route-step {
    background: #fff;
    color: #000;
}

html.theme-light .step-name {
    color: #000;
}

/* =============================================================================
   BRAND PROTECTION: ZERO GLOW POLICY (NUCLEAR VERSION)
   Forzamos que todos los logos institucionales sean planos y limpios.
   ============================================================================= */
body img[class*="logo"],
body .navbar-logo-img,
body .lock-logo-img,
body .dashboard-logo-large {
    filter: none !important;
    -webkit-filter: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    text-shadow: none !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
}

/* El glow queda EXCLUSIVAMENTE para los tÃ­tulos de texto Michroma */
.navbar-title,
.auth-title,
.lock-title,
.config-title {
    filter: drop-shadow(0 0 12px rgba(224, 199, 7, 0.6)) !important;
    -webkit-filter: drop-shadow(0 0 12px rgba(224, 199, 7, 0.6)) !important;
}

/* =============================================================================
   RESPONSIVE â€” Mobile First
   Breakpoints: < 768px = mobile, 768-1024px = tablet, > 1024px = desktop
   ============================================================================= */

/* â”€â”€ MOBILE (< 768px) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 767px) {

    /* Layout: stack vertical, sin overflow horizontal */
    .layout-body {
        height: auto;
        overflow: auto;
    }

    .layout-wrapper {
        flex-direction: column;
        overflow: visible;
    }

    .layout-main {
        padding: 1rem;
        overflow-y: visible;
    }


    /* BotÃ³n hamburguesa â€” aparece solo en mobile */
    .navbar-hamburger {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 2.25rem;
        height: 2.25rem;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0.5rem;
        color: rgba(255, 255, 255, 0.7);
        font-size: 1.1rem;
        cursor: pointer;
        flex-shrink: 0;
    }

    /* Contenido principal: ancho completo */
    .config-grid,
    .config-form-grid,
    .config-form-grid-2,
    .config-form-grid-3,
    .config-form-grid-4,
    .form-grid,
    .dashboard-stats-grid,
    .dashboard-accesos-grid {
        grid-template-columns: 1fr !important;
    }

    /* Tablas: scroll horizontal */
    .list-card {
        overflow-x: auto;
    }

    .data-table {
        min-width: 600px;
    }

    /* Tour box: ancho completo en mobile */
    .tour-box {
        width: calc(100vw - 2rem);
        left: 1rem;
        transform: none;
        top: 5rem;
    }

    /* Dashboard welcome card */
    .dashboard-welcome-card {
        flex-direction: column;
        gap: 1rem;
    }

    /* Profile switcher: scroll horizontal */
    .profile-btn-group {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.25rem;
    }

    /* Accesibilidad FAB: mover a la izquierda en mobile para no tapar contenido */
    .a11y-fab-global {
        right: 0.25rem;
        top: auto;
        bottom: 1.5rem;
        transform: none;
    }

    .a11y-fab-panel {
        right: 4rem;
        top: auto;
        bottom: 0;
        transform: none;
    }

    /* Fonts: mÃ­nimo legible en mobile */
    body {
        font-size: calc(0.9rem * var(--font-scale));
    }

    .table-header-cell,
    .form-label,
    .sidebar-right-section-label,
    .text-micro-caps {
        font-size: calc(9px * var(--font-scale)) !important;
    }

    /* Back to top: reposicionar */
    .back-to-top-btn {
        right: 1rem;
        bottom: 1rem;
    }
}

/*  TABLET (768px â€“ 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {

    /* Sidebar derecho: colapsar automÃ¡ticamente */
    .sidebar-right {
        width: 2.75rem !important;
    }

    .sidebar-right .sidebar-right-content {
        display: none;
    }

    .sidebar-right .sidebar-right-title {
        display: none;
    }

    .sidebar-right .sidebar-right-toggle {
        transform: rotate(180deg);
    }

    /* Navbar: ocultar buscador */
    .navbar-search-group {
        display: none !important;
    }

    /* Layout main: padding reducido */
    .layout-main {
        padding: 1.25rem 1.5rem;
    }

    /* Grids: 2 columnas en tablet */
    .config-form-grid-3,
    .config-form-grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .dashboard-accesos-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* â”€â”€ DESKTOP GRANDE (> 1440px) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (min-width: 1440px) {
    .layout-main {
        padding: 2rem 3rem;
    }

    .dashboard-stats-grid {
        gap: 2rem;
    }
}

/* Optimización para monitores de 17" y 19" (1280px - 1440px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    .layout-main {
        padding: 1.5rem;
    }

    .dashboard-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .dashboard-stats-grid> :last-child {
        grid-column: 1 / -1;
    }

    .dashboard-welcome-card {
        padding: 1.5rem;
    }

    .dashboard-logo-large {
        height: 4rem !important;
    }
}


/* El botÃ³n hamburguesa estÃ¡ oculto por defecto en desktop */
.navbar-hamburger {
    display: none;
}






/* =============================================================================
   LOGOS — neutralizar filtros globales que causan glow/bloom en logos PNG
   Aplica a cualquier imagen dentro de contenedores de logo
   ============================================================================= */
/* Estilos de sidebar-logo-img movidos a sidebar.css */
.navbar-logo-img,
.lock-logo-img,
.dashboard-logo-large,
.logo-card-img,
.portal-nav-logo,
.portal-topbar-logo {
    filter: none !important;
    -webkit-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    mix-blend-mode: normal !important;
    image-rendering: auto;
}



/* Modo claro — mismo fix */
/* Estilos de sidebar-logo-img en modo claro movidos a light-mode.css */
html.theme-light .navbar-logo-img {
    filter: none !important;
    mix-blend-mode: normal !important;
}

/* Item 774: Ajuste de anchos para inputs numéricos/ID */
input[name*="dni"],
input[name*="cuil"],
input[name*="cuit"],
input[name*="tramite"],
input[name*="telefono"],
input[name*="celular"],
input[name*="zip"],
input[name*="postal"] {
    max-width: 320px !important;
}

/* Item 776: Omnisearch Results Dropdown */
.omnisearch-results-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    width: 100%;
    min-width: 320px;
    background: rgba(12, 17, 23, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

.omnisearch-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.omnisearch-item:hover,
.omnisearch-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transform: translateX(5px);
}

.omnisearch-item-icon {
    font-size: 1.1rem;
    width: 1.5rem;
    text-align: center;
}

.omnisearch-item-info {
    flex: 1;
}

.omnisearch-item-title {
    font-weight: 600;
    display: block;
}

.omnisearch-item-category {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--limonit-yellow);
    opacity: 0.7;
}

.omnisearch-header {
    padding: 0.5rem 1rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.3);
}




/* [x-cloak] support */
[x-cloak] {
    display: none !important;
}


.navbar-search-group {
    position: relative;
    display: none;
}

@media (min-width: 1280px) {
    .navbar-search-group {
        display: block;
    }
}

.navbar-search-input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.75rem 2.5rem;
    font-size: 0.875rem;
    width: 24rem;
    outline: none;
    transition: all 0.3s ease;
    color: #ffffff;
}

.navbar-search-input:focus {
    border-color: rgba(234, 179, 8, 0.3);
    box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.3);
}

.navbar-search-icon {
    position: absolute;
    left: 0.875rem;
    top: 0.875rem;
    font-size: 0.75rem;
    color: #ffffff;
    transition: color 0.3s ease;
}

.navbar-search-group:focus-within .navbar-search-icon {
    color: #eab308;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.navbar-btn {
    padding: 0.5rem;
    color: #ffffff;
    transition: color 0.3s ease;
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
}

.navbar-btn:hover {
    color: #eab308;
}

.navbar-btn-dot {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 0.5rem;
    height: 0.5rem;
    background: #eab308;
    border-radius: 50%;
}

.navbar-btn-autopilot {
    background: linear-gradient(135deg, rgba(224, 199, 7, 0.1) 0%, rgba(224, 199, 7, 0.25) 100%) !important;
    border: 1px solid var(--limonit-yellow) !important;
    color: var(--limonit-yellow) !important;
    font-weight: 700 !important;
    margin-right: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem !important;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.navbar-btn-autopilot:hover {
    background: linear-gradient(135deg, rgba(224, 199, 7, 0.2) 0%, rgba(224, 199, 7, 0.4) 100%) !important;
    box-shadow: 0 0 10px rgba(224, 199, 7, 0.25);
    color: #ffffff !important;
}

.navbar-divider-v {
    height: 2.5rem;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.navbar-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 2px solid rgba(224, 199, 7, 0.2);
    padding: 0.125rem;
    overflow: hidden;
    background: linear-gradient(to bottom right, var(--limonit-yellow), #20743c);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(224, 199, 7, 0.2);
}

.navbar-avatar-text {
    color: #000000;
    font-weight: 700;
    font-size: 1rem;
}

/* Forzar visibilidad del hamburger en el tour si se explica */
.navbar-hamburger.tour-highlight {
    display: block !important;
}

/* --- Responsive: Navbar en mobile (< 768px) --- */
/* Estilos movidos a responsive.css */



/* ---------REVISAR SI ESTO SE QUEDA O CONTRADICE ------------*/
/* 1. Navegación Enterprise */
.nav-enterprise {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #000000;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 4rem;
    height: 8rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-limonit-logo {
    height: 3.5rem;
}

.nav-limonit-fallback {
    font-size: 2.5rem;
}

.nav-center {
    display: flex;
    justify-content: center;
    text-align: center;
}

.nav-brand-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
}

.nav-brand-main {
    font-family: var(--font-accent);
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    line-height: 1;
}

.nav-brand-slogan {
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text2);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    opacity: 0.9;
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s;
    font-family: var(--font-main);
}

.nav-links a:hover {
    color: var(--accent);
}

.btn-nav {
    background: var(--gradient);
    color: #000 !important;
    padding: 0.6rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 800;
    font-size: 0.85rem;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.2);
}

.btn-nav:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

@media (max-width: 1024px) {
    .nav-enterprise {
        padding: 0 1rem;
    }
    .nav-brand-slogan {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-enterprise {
        height: auto;
        padding: 1rem;
        grid-template-columns: 1fr;
        gap: 1rem;
        justify-items: center;
        text-align: center;
    }
    
    .nav-left, .nav-center, .nav-right {
        justify-content: center;
    }
    
    .nav-limonit-logo {
        height: 2.5rem; /* Asegurar que no sea diminuto pero tampoco enorme */
    }
    
    .nav-brand-main {
        font-size: 1.5rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 1.1rem; /* Hacer la fuente mas grande en mobile */
    }
    
    .btn-nav {
        font-size: 1.1rem;
        padding: 0.8rem 2rem;
    }
}

/* CONFIGURACION INSTITUCION CUSTOM STYLES */
.config-separation-notice {
    background: rgba(38, 75, 93, 0.1);
    border-left: 4px solid #3b82f6;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #e2e8f0;
    line-height: 1.6;
}
.config-separation-title {
    color: #3b82f6;
    font-weight: 700;
    font-size: 1rem;
}
.config-separation-link {
    color: #eab308;
    text-decoration: underline;
    font-weight: bold;
}
.config-slug-meta {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    background: rgba(0,0,0,0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}
.config-slug-code {
    color: #eab308;
    font-family: monospace;
}
.config-header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.config-section-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 1.5rem;
}
.config-form-grid {
    display: grid;
    gap: 1.5rem;
}
.config-form-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}
.config-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.config-label-hint {
    color: rgba(255,255,255,0.4);
    font-size: 0.7rem;
    text-transform: none;
    letter-spacing: 0;
}
.config-hint-text {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    font-style: italic;
}
.config-color-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}
.config-color-swatch {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.15);
    cursor: pointer;
    transition: transform 0.15s;
}
.config-color-swatch--hover {
    transform: scale(1.2);
}
.config-color-picker-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.config-color-picker-wrap {
    position: relative;
    width: 4rem;
    height: 4rem;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}
.config-native-color-input {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 6rem;
    height: 6rem;
    border: none;
    cursor: pointer;
    padding: 0;
}
.config-color-text-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.config-color-preview-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    font-family: monospace;
    font-weight: bold;
}
.config-checkbox-row {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.config-form-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
}
.logo-card-preview {
    background: rgba(0,0,0,0.2);
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 8rem;
    border: 1px dashed rgba(255,255,255,0.2);
    margin-bottom: 1rem;
}
.logo-card-img {
    max-height: 6rem;
    max-width: 100%;
    object-fit: contain;
}
.logo-card-empty {
    text-align: center;
    color: rgba(255,255,255,0.3);
}
.logo-card-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 0.5rem;
    color: white;
    font-size: 0.8rem;
    cursor: pointer;
    text-align: center;
    width: 100%;
}
.logo-card-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* ── WIZARD FORM FOOTER ────────────────────────────────────── */
.form-footer--wizard {
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    background: rgba(224, 199, 7, 0.05);
    border: 1px solid rgba(224, 199, 7, 0.2);
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.form-footer-hint {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    font-style: italic;
}
.form-footer-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}
.form-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.25rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: #e2e8f0;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.form-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
}
.form-discard-link {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: underline;
    cursor: pointer;
    align-self: flex-start;
}
.form-discard-link:hover {
    color: rgba(255, 255, 255, 0.6);
}

/* ── WIZARD CONTEXT BANNER (aparece en formularios lanzados desde el wizard) ── */
.wizard-context-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    background: linear-gradient(135deg, rgba(224,199,7,0.08) 0%, rgba(32,116,60,0.08) 100%);
    border: 1px solid rgba(224, 199, 7, 0.25);
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.wizard-context-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}
.wizard-context-body {
    flex: 1;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}
.wizard-context-body strong {
    color: #e0c707;
    display: block;
    margin-bottom: 0.15rem;
}
.wizard-context-back {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: #e0c707;
    text-decoration: none;
    padding: 0.4rem 0.85rem;
    border: 1px solid rgba(224, 199, 7, 0.35);
    border-radius: 0.4rem;
    transition: background 0.15s;
}
.wizard-context-back:hover {
    background: rgba(224, 199, 7, 0.12);
}

/* ── INSTRUCCIONES EXPLÍCITAS (config-alert reemplaza el inline style) ── */
.config-guide-box {
    background: rgba(38, 75, 93, 0.1);
    border-left: 4px solid #3b82f6;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}
.config-guide-title {
    color: #3b82f6;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}
.config-guide-body {
    font-size: 0.85rem;
    color: #e2e8f0;
    line-height: 1.6;
}
.config-guide-body p {
    margin-bottom: 0.5rem;
}
.config-guide-body p:last-child {
    margin-bottom: 0;
}
.config-guide-perm {
    color: #fbbf24;
}

/* ── FIRMA DEL OPERADOR (form-operator-badge) ── */
.form-operator-badge {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: rgba(224, 199, 7, 0.06);
    border: 1px solid rgba(224, 199, 7, 0.18);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.form-operator-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}
.form-operator-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.15rem;
}
.form-operator-name {
    font-weight: 700;
    color: #e0c707;
    font-size: 0.9rem;
    margin: 0;
}
.form-operator-role {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}