/* =====================================================================
   SiceiWeb 2.0 - Hoja de estilos ÚNICA
   Reemplaza a: custom-style.css, login.css, acceso.css, gestion_usuarios.css.
   Orden de las secciones:
     1. Base de la aplicación (heredada de custom-style.css)
     2. Barra superior, menú lateral y pie
     3. Componentes generales (tarjetas, botones, tablas, modales)
     4. Pantalla de inicio
     5. Vistas de acceso (login, registro, olvido y restablecer clave)
     6. Gestión de usuarios de la agencia
   Se carga después de materialize.min.css y style.min.css.
   Las clases nuevas usan el prefijo .ui- para no chocar con .sw- (acceso).
   ===================================================================== */

:root {
    --ui-azul-900: #0B3A82;
    --ui-azul-700: #0D47A1;
    --ui-azul-600: #1565C0;
    --ui-azul-500: #1E88E5;
    --ui-azul-50: #EAF2FD;
    --ui-verde: #2E7D32;
    --ui-verde-50: #E8F5E9;
    --ui-ambar: #B26A00;
    --ui-ambar-50: #FFF4E0;
    --ui-rojo: #C62828;
    --ui-rojo-50: #FDECEA;
    --ui-teal: #00796B;
    --ui-teal-50: #E0F2F1;
    --ui-indigo: #3949AB;
    --ui-indigo-50: #E8EAF6;
    --ui-texto: #1D2B3A;
    --ui-gris: #5F6F82;
    --ui-gris-claro: #8896A8;
    --ui-linea: #E3E9F1;
    --ui-fondo: #F4F7FB;
    --ui-radio: 12px;
    --ui-sombra: 0 1px 2px rgba(16, 40, 80, .06), 0 4px 14px rgba(16, 40, 80, .06);
    --ui-barra: 60px;
}

/* ---------- 1. Base de la aplicación ---------- */
@media only screen and (max-width: 600px) {
    html,
    body {
        height: 100%;
        overflow-x: hidden;
    }
}

body:not(.sw-acceso) {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--ui-fondo);
    color: var(--ui-texto);
}

body:not(.sw-acceso) main {
    flex: 1 0 auto;
}

#right-menu > li { padding: 10px 15px; }
.pad-top-6 { padding-top: 0.6rem !important; }
.mar-top-0 { margin-top: 0 !important; }
.mar-bot-15 { margin-bottom: 15px !important; }
.det-row { height: 3em !important; line-height: 3em; padding-left: 5px; }
.menu-shadow { box-shadow: 1px 0 0 var(--ui-linea) !important; }
.beauty-scroll { position: relative; overflow-y: hidden; }
.data-user { padding: 15px 0 !important; line-height: 0 !important; height: auto !important; }
.detail-card { margin-top: 20px !important; min-height: 100px !important; }

#tabla-importacion > table > tbody > tr > td:nth-child(1),
#tabla-importacion > table > thead > tr > th:nth-child(1) { text-align: center; }

#table-title h6 {
    margin: 0 !important;
    padding-top: 20px;
    padding-left: 20px;
    font-size: 1.4em;
    font-weight: 500;
    color: #3f3f3f;
}

#form-title {
    margin-bottom: 9px;
    height: 90px;
    padding: 20px 20px 10px;
    box-sizing: border-box;
}
#form-title h6 { margin: 0; font-size: 1.4em; font-weight: 500; }
#form-title p { margin: 0; }
#controles { padding-top: 24px; }
.small-font { display: block; text-overflow: clip; overflow: hidden; width: 100%; }
.pagination { padding-top: 20px !important; }
.pagination > li:nth-child(1) { color: #757575; font-size: 1em; font-weight: 500; }
.in-card-title { margin-top: 20px !important; font-size: 1.2rem !important; font-weight: 500; color: #0d47a1 !important; }
.margin-top-30 { margin-top: 30px !important; }
label { cursor: pointer !important; }

/* ---------- 2. Barra superior ---------- */
#header .navbar-fixed,
#header nav.navbar-color,
#header .nav-wrapper { height: var(--ui-barra); line-height: var(--ui-barra); }

#header nav.navbar-color {
    background: linear-gradient(90deg, var(--ui-azul-900), var(--ui-azul-600));
    box-shadow: 0 2px 10px rgba(11, 58, 130, .28);
}

#header .brand-logo { margin: 0; padding: 0 20px !important; display: flex; align-items: center; height: var(--ui-barra); }
#header .brand-logo img { width: 150px; height: auto; }

#header .header-search-wrapper { height: 38px; margin-top: 11px; width: calc(100% - 520px); max-width: 560px; }
#header .header-search-wrapper i { top: 3px; left: 14px; font-size: 20px; color: rgba(255, 255, 255, .85); }
#header input.header-search-input {
    height: 38px;
    padding: 0 14px 0 44px;
    font-size: 14px;
    background: rgba(255, 255, 255, .14);
    border-radius: 10px;
    color: #fff;
}
#header input.header-search-input::placeholder { color: rgba(255, 255, 255, .75); font-size: 14px; }
#header input.header-search-input:hover { background: rgba(255, 255, 255, .22); }
#header input.header-search-input:focus { background: #fff; color: var(--ui-texto); }
#header input.header-search-input:focus::placeholder { color: var(--ui-gris-claro); font-size: 14px; }

#header ul.right { margin-right: 10px; }
#header ul.right li a {
    width: 42px; height: 42px; margin: 9px 2px; padding: 0;
    border-radius: 10px; line-height: 42px; text-align: center; color: #fff;
}
#header ul.right li a:hover { background: rgba(255, 255, 255, .14); }
#header ul.right li a i { font-size: 22px; line-height: 42px; }

/* ---------- 2. Menú lateral ---------- */
#left-sidebar-nav ul.side-nav.leftside-navigation {
    top: var(--ui-barra);
    width: 240px;
    background: #fff;
    overflow-y: auto;
    padding-bottom: 20px;
}

#left-sidebar-nav ul.side-nav li { line-height: 1.3; }
#left-sidebar-nav ul.side-nav.leftside-navigation li:hover,
#left-sidebar-nav ul.side-nav.leftside-navigation li.active { background: transparent; }

/* Datos del usuario */
#left-sidebar-nav li.user-details {
    background: linear-gradient(135deg, var(--ui-azul-700), var(--ui-azul-500)) !important;
    margin: 12px 12px 4px;
    border-radius: var(--ui-radio);
}
#left-sidebar-nav li.user-details:hover { background: linear-gradient(135deg, var(--ui-azul-700), var(--ui-azul-500)) !important; }
#left-sidebar-nav .user-details .row { display: flex; align-items: center; gap: 10px; padding: 12px; margin: 0; }
#left-sidebar-nav .user-details .row .col { float: none; width: auto !important; margin: 0 !important; padding: 0 !important; min-width: 0; }
#left-sidebar-nav .user-details .row .col:last-child { flex: 1; }
#left-sidebar-nav .user-details img.profile-image { width: 42px; height: 42px; background: rgba(255, 255, 255, .25); }
#left-sidebar-nav .user-details .profile-btn { height: auto; line-height: 1.2; text-shadow: none; text-transform: none; font-size: 14px; font-weight: 600; display: block; text-align: left; }
#left-sidebar-nav .user-details .profile-btn i { display: none; }
#left-sidebar-nav #user-email { display: block !important; font-size: 11.5px; line-height: 1.3; color: rgba(255, 255, 255, .85) !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Títulos de grupo: Sicei / Sistefac / Sisteban */
#left-sidebar-nav li.li-hover .more-text { padding: 0; margin: 14px 16px 4px !important; line-height: 1; }
#left-sidebar-nav li.li-hover .divider { display: none; }
.sw-grupo {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 10px !important; border-radius: 999px;
    font-size: 11px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.sw-grupo::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sw-grupo--sicei { color: var(--ui-azul-700); background: var(--ui-azul-50); }
.sw-grupo--sistefac { color: var(--ui-teal); background: var(--ui-teal-50); }
.sw-grupo--sisteban { color: var(--ui-indigo); background: var(--ui-indigo-50); }

/* Opciones */
#left-sidebar-nav ul.side-nav.leftside-navigation li.bold > a,
#left-sidebar-nav .collapsible-header {
    height: 42px; line-height: 42px; margin: 2px 10px; padding: 0 10px;
    border-radius: 10px; color: #33475B; font-size: 14px; font-weight: 500;
    transition: background-color .15s ease, color .15s ease;
}
#left-sidebar-nav ul.side-nav.leftside-navigation li.bold > a i,
#left-sidebar-nav .collapsible-header i { width: 24px; margin-right: 12px; font-size: 20px; line-height: 42px; color: #7A8CA3; }
#left-sidebar-nav ul.side-nav.leftside-navigation li.bold > a:hover,
#left-sidebar-nav .collapsible-header:hover { background: #F0F5FB; }
#left-sidebar-nav .collapsible-header.active,
#left-sidebar-nav ul.side-nav.leftside-navigation li.bold > a.sw-activo { background: var(--ui-azul-50); color: var(--ui-azul-700); font-weight: 600; }
#left-sidebar-nav .collapsible-header.active i,
#left-sidebar-nav ul.side-nav.leftside-navigation li.bold > a.sw-activo i { color: var(--ui-azul-600); }
#left-sidebar-nav .collapsible-header:after { font-size: 16px; color: #A7B3C2; line-height: 42px; }

#left-sidebar-nav .collapsible-body { background: #fff; border: 0; }
#left-sidebar-nav .collapsible-body ul { padding: 2px 0 6px; }
#left-sidebar-nav .collapsible-body li a {
    height: 36px; line-height: 36px; margin: 1px 10px 1px 44px; padding: 0 10px;
    border-radius: 8px; font-size: 13px; color: #55687D; display: block;
}
#left-sidebar-nav .collapsible-body li a:hover { background: #F0F5FB; color: var(--ui-azul-700); }
#left-sidebar-nav .collapsible-body li a.sw-activo { background: var(--ui-azul-50); color: var(--ui-azul-700); font-weight: 600; }

#left-sidebar-nav li.sw-cerrar a { margin: 6px 10px; }

/* Aviso de licencia (lo genera siceiweb.js) */
#system-expiration { border: 0 !important; margin: 8px 12px 0 !important; padding: 0 !important; }
.sw-licencia { border-radius: 10px; padding: 10px 12px; font-size: 12px; line-height: 1.35; text-align: left; }
.sw-licencia b { display: block; font-size: 13px; }
.sw-licencia--ok { background: var(--ui-verde-50); color: var(--ui-verde); border: 1px solid #CFE6D1; }
.sw-licencia--aviso { background: var(--ui-ambar-50); color: var(--ui-ambar); border: 1px solid #F3DDB2; }
.sw-licencia--alerta { background: var(--ui-rojo-50); color: var(--ui-rojo); border: 1px solid #F3C4C0; }

/* ---------- 2. Pie ---------- */
footer.page-footer { background: #fff; margin-top: 20px; padding-top: 0; border-top: 1px solid var(--ui-linea); }
footer.page-footer .footer-copyright { height: 46px; line-height: 46px; background: transparent; color: var(--ui-gris); font-size: 12px; font-weight: 400; }
footer.page-footer .footer-copyright a { color: var(--ui-azul-600) !important; }

/* ---------- 3. Componentes generales ---------- */
#main .card, #main .card-panel { border-radius: var(--ui-radio); box-shadow: var(--ui-sombra); }
.modal { border-radius: var(--ui-radio); }
.btn, .btn-large, .btn-flat { border-radius: 8px; }
.btn, .btn-large { box-shadow: 0 1px 3px rgba(16, 40, 80, .18); }
#main table.bordered > thead > tr, #main table.striped > thead > tr { border-bottom: 1px solid var(--ui-linea); }
#main table th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ui-gris-claro); font-weight: 600; }

/* Aviso de vencimiento de la licencia en el sistema (heredado) */
.system-expiration-section { text-align: center; }

/* ---------- 4. Pantalla de inicio ---------- */
.ui-inicio { padding: 24px 28px 8px; display: flex; flex-direction: column; gap: 20px; }
.ui-inicio h1 { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.2; }
.ui-saludo { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ui-saludo p { margin: 2px 0 0; color: var(--ui-gris); }
.ui-acciones { display: flex; gap: 10px; flex-wrap: wrap; }
.ui-boton {
    display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px;
    border-radius: 10px; font-weight: 600; font-size: 13px; text-transform: none;
    border: 1px solid var(--ui-linea); background: #fff; color: var(--ui-azul-700); cursor: pointer;
}
.ui-boton:hover { background: var(--ui-azul-50); }
.ui-boton--primario { background: var(--ui-azul-600); border-color: var(--ui-azul-600); color: #fff; }
.ui-boton--primario:hover { background: var(--ui-azul-700); }

.ui-aduanas { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ui-aduanas small { color: var(--ui-gris); margin-right: 4px; }
.ui-pill {
    padding: 5px 12px; border-radius: 999px; border: 1px solid var(--ui-linea); background: #fff;
    font-size: 12px; color: #33475B; cursor: pointer;
}
.ui-pill:hover { border-color: var(--ui-azul-600); }
.ui-pill.is-activa { background: var(--ui-azul-700); border-color: var(--ui-azul-700); color: #fff; }

.ui-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 16px; }
.ui-kpi { background: #fff; border-radius: var(--ui-radio); box-shadow: var(--ui-sombra); padding: 16px 18px; display: flex; gap: 14px; align-items: center; }
.ui-kpi__ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.ui-kpi__ic svg { width: 22px; height: 22px; }
.ui-kpi b { font-size: 26px; display: block; line-height: 1.1; }
.ui-kpi span { color: var(--ui-gris); font-size: 12px; }
.ui-c-azul { background: var(--ui-azul-50); color: var(--ui-azul-600); }
.ui-c-teal { background: var(--ui-teal-50); color: var(--ui-teal); }
.ui-c-verde { background: var(--ui-verde-50); color: var(--ui-verde); }
.ui-c-ambar { background: var(--ui-ambar-50); color: var(--ui-ambar); }

.ui-rejilla { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; }
.ui-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ui-tarjeta { background: #fff; border-radius: var(--ui-radio); box-shadow: var(--ui-sombra); padding: 18px 20px; }
.ui-tarjeta h2 { font-size: 15px; font-weight: 700; margin: 0 0 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ui-leyenda { display: flex; gap: 14px; font-size: 12px; color: var(--ui-gris); font-weight: 400; }
.ui-leyenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }
.ui-grafico { width: 100%; height: 170px; display: block; }
.ui-vacio { color: var(--ui-gris-claro); text-align: center; padding: 18px 0; margin: 0; }

.ui-tabla { width: 100%; border-collapse: collapse; }
.ui-tabla th { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--ui-linea); }
.ui-tabla td { padding: 11px 10px; border-bottom: 1px solid #EEF2F7; font-size: 13px; }
.ui-tabla tr:last-child td { border-bottom: 0; }
.ui-tabla td small { display: block; color: var(--ui-gris); font-size: 11px; }
.ui-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.ui-chip--proceso { background: var(--ui-ambar-50); color: var(--ui-ambar); }
.ui-chip--terminado { background: var(--ui-verde-50); color: var(--ui-verde); }
.ui-chip--por_facturar { background: var(--ui-azul-50); color: var(--ui-azul-700); }

.ui-aviso { display: flex; gap: 12px; padding: 12px; border-radius: 10px; margin-bottom: 10px; font-size: 13px; }
.ui-aviso:last-child { margin-bottom: 0; }
.ui-aviso svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.ui-aviso b { display: block; }
.ui-aviso small { color: var(--ui-gris); }
.ui-aviso--ok { background: var(--ui-verde-50); } .ui-aviso--ok svg { color: var(--ui-verde); }
.ui-aviso--aviso { background: var(--ui-ambar-50); } .ui-aviso--aviso svg { color: var(--ui-ambar); }
.ui-aviso--alerta { background: var(--ui-rojo-50); } .ui-aviso--alerta svg { color: var(--ui-rojo); }

.ui-rapidos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ui-rapido {
    border: 1px solid var(--ui-linea); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px;
    color: var(--ui-azul-700); font-weight: 600; font-size: 13px;
}
.ui-rapido:hover { border-color: var(--ui-azul-600); background: var(--ui-azul-50); }
.ui-rapido svg { width: 20px; height: 20px; }
.ui-inicio svg { stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Publicidad de CyberArancel */
.ui-promo {
    display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--ui-radio);
    background: linear-gradient(135deg, #0D3C78 0%, #1565C0 60%, #1E88E5 100%); color: #fff;
    box-shadow: var(--ui-sombra); position: relative; overflow: hidden;
}
.ui-promo::after {
    content: ""; position: absolute; right: -50px; top: -50px; width: 170px; height: 170px;
    border-radius: 50%; background: rgba(255, 255, 255, .08); pointer-events: none;
}
.ui-promo:hover { color: #fff; box-shadow: 0 6px 20px rgba(13, 60, 120, .35); }
.ui-promo__marca { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; opacity: .9; }
.ui-promo__marca svg { width: 20px; height: 20px; }
.ui-promo__titulo { font-size: 18px; line-height: 1.3; }
.ui-promo__lista { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.ui-promo__lista li { display: flex; gap: 8px; align-items: flex-start; list-style: none; }
.ui-promo__lista svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: #90CAF9; stroke-width: 2.4; }
.ui-promo__boton {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 4px;
    background: #fff; color: var(--ui-azul-700); font-weight: 700; font-size: 13px; padding: 9px 16px; border-radius: 10px;
}
.ui-promo__boton svg { width: 16px; height: 16px; }
.ui-promo:hover .ui-promo__boton { background: var(--ui-azul-50); }

@media (max-width: 1100px) {
    .ui-rejilla { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .ui-inicio { padding: 16px 12px; }
    .ui-tabla .ui-oculto-movil { display: none; }
}
.ui-inicio.is-cargando .ui-kpi b { opacity: .35; }

/* =====================================================================
   5. VISTAS DE ACCESO (antes css/custom/acceso.css y css/custom/login.css)
   ===================================================================== */
body.sw-acceso .invalid { border-bottom: 1px solid #F44336 !important; box-shadow: 0 1px 0 0 #F44336 !important; }


/* =====================================================================
   SiceiWeb 2.0 - Vistas de acceso (login y registro)
   Estilos propios con prefijo .sw- para no afectar el resto del sistema.
   Se cargan después de Materialize, por eso algunas reglas usan !important
   para anular los estilos globales de input/select/label.
   ===================================================================== */

:root {
    --sw-azul-900: #0D47A1;
    --sw-azul-700: #1565C0;
    --sw-azul-600: #1976D2;
    --sw-azul-100: #EAF2FF;
    --sw-verde: #2E7D32;
    --sw-verde-claro: #43A047;
    --sw-rojo: #D32F2F;
    --sw-texto: #172033;
    --sw-texto-2: #5A6B7E;
    --sw-texto-3: #8A99AA;
    --sw-fondo: #F4F7FB;
    --sw-borde: #D8E2EE;
    --sw-campo: #F8FAFD;
    --sw-sombra: 0 18px 50px rgba(18, 52, 90, .16);
    --sw-radio: 12px;
}

html, body.sw-acceso {
    height: auto;
    min-height: 100%;
}

body.sw-acceso {
    margin: 0;
    background: var(--sw-fondo);
    color: var(--sw-texto);
    font-family: "Roboto", "Segoe UI", Arial, sans-serif;
    overflow-x: hidden;
}

.sw-acceso *, .sw-acceso *::before, .sw-acceso *::after { box-sizing: border-box; }

/* ---------- Marca ---------- */
.sw-marca { display: flex; align-items: center; gap: 14px; }
.sw-marca__logo {
    width: 56px; height: 56px; flex: 0 0 56px;
    background: #fff; border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}
.sw-marca__logo img { width: 44px; height: 44px; display: block; }
.sw-marca__nombre { font-size: 22px; font-weight: 700; letter-spacing: 1px; line-height: 1.1; }
.sw-marca__lema { font-size: 12px; letter-spacing: .4px; text-transform: uppercase; line-height: 1.35; margin-top: 3px; }

/* ---------- Campos ---------- */
.sw-campo { margin-bottom: 18px; position: relative; }
.sw-campo > label {
    display: block !important;
    position: static !important;
    transform: none !important;
    font-size: 13px !important;
    font-weight: 700;
    color: #34465A !important;
    margin: 0 0 7px 0;
    cursor: default;
}
.sw-campo > label .sw-opcional { font-weight: 400; color: var(--sw-texto-3); }

.sw-control { position: relative; display: flex; align-items: center; }
.sw-control__icono {
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
    width: 20px; height: 20px; color: #7890AA; pointer-events: none;
}
.sw-control__icono svg { width: 20px; height: 20px; display: block; }

.sw-acceso .sw-control input[type=text],
.sw-acceso .sw-control input[type=password],
.sw-acceso .sw-control select {
    width: 100% !important;
    height: 52px !important;
    margin: 0 !important;
    padding: 0 14px 0 46px !important;
    background: var(--sw-campo) !important;
    border: 1.5px solid var(--sw-borde) !important;
    border-radius: var(--sw-radio) !important;
    box-shadow: none !important;
    color: var(--sw-texto) !important;
    font-size: 15px !important;
    font-family: inherit;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.sw-acceso .sw-control select {
    display: block !important;
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    padding-right: 40px !important;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237890AA' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
}
.sw-acceso .sw-control--sin-icono input[type=text],
.sw-acceso .sw-control--sin-icono input[type=password],
.sw-acceso .sw-control--sin-icono select { padding-left: 14px !important; }

.sw-acceso .sw-control input::placeholder { color: #9AA8B8; opacity: 1; }

.sw-acceso .sw-control input:focus,
.sw-acceso .sw-control select:focus {
    border-color: var(--sw-azul-600) !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 4px rgba(25, 118, 210, .12) !important;
}
.sw-acceso .sw-control input[readonly] {
    background-color: #EEF2F7 !important;
    color: #4A5B6E !important;
    cursor: not-allowed;
}
.sw-acceso .sw-campo.is-error .sw-control input,
.sw-acceso .sw-campo.is-error .sw-control select {
    border-color: #E53935 !important;
    box-shadow: 0 0 0 4px rgba(229, 57, 53, .10) !important;
}
.sw-campo__error {
    display: none; color: var(--sw-rojo); font-size: 12.5px; margin-top: 6px;
}
.sw-campo.is-error .sw-campo__error { display: block; }
.sw-campo__ayuda { display: block; color: var(--sw-texto-3); font-size: 12px; margin-top: 6px; }

.sw-ver-clave {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border: 0; border-radius: 10px;
    background: transparent; color: #7890AA; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.sw-ver-clave:hover, .sw-ver-clave:focus { background: var(--sw-azul-100); color: var(--sw-azul-700); outline: none; }
.sw-ver-clave svg { width: 20px; height: 20px; }
.sw-control--clave input { padding-right: 52px !important; }

/* ---------- Botones ---------- */
.sw-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 52px; padding: 0 24px; border-radius: 13px; border: 0;
    font-size: 15px; font-weight: 700; letter-spacing: .4px;
    text-decoration: none; cursor: pointer; user-select: none;
    transition: transform .15s, box-shadow .2s, background .2s, opacity .2s;
}
.sw-btn svg { width: 18px; height: 18px; }
.sw-btn--primario {
    color: #fff !important;
    background: linear-gradient(90deg, var(--sw-azul-900), var(--sw-azul-600));
    box-shadow: 0 10px 22px rgba(13, 71, 161, .25);
}
.sw-btn--primario:hover, .sw-btn--primario:focus { transform: translateY(-1px); box-shadow: 0 14px 26px rgba(13, 71, 161, .32); outline: none; }
.sw-btn--secundario {
    color: #4A5B6E !important; background: #fff; border: 1.5px solid #CBD7E5;
}
.sw-btn--secundario:hover, .sw-btn--secundario:focus { background: #F4F7FB; outline: none; }
.sw-btn--exito {
    color: #fff !important;
    background: linear-gradient(90deg, #1B5E20, var(--sw-verde-claro));
    box-shadow: 0 10px 22px rgba(46, 125, 50, .25);
}
.sw-btn--bloque { width: 100%; }
.sw-btn.is-loading { pointer-events: none; opacity: .85; }
.sw-btn.is-loading .sw-btn__texto,
.sw-btn.is-loading .sw-btn__icono { display: none; }
.sw-btn__spinner {
    display: none; width: 22px; height: 22px; border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .45); border-top-color: #fff;
    animation: sw-giro .8s linear infinite;
}
.sw-btn.is-loading .sw-btn__spinner { display: inline-block; }
@keyframes sw-giro { to { transform: rotate(360deg); } }

.sw-enlace { color: var(--sw-azul-700) !important; font-weight: 700; text-decoration: none; }
.sw-enlace:hover { text-decoration: underline; }

/* =====================================================================
   LOGIN
   ===================================================================== */
.sw-login { display: flex; min-height: 100vh; }

.sw-login__panel {
    position: relative; overflow: hidden;
    flex: 1 1 55%;
    color: #fff;
    background: linear-gradient(135deg, var(--sw-azul-900) 0%, var(--sw-azul-700) 100%);
    padding: 56px 72px 48px;
    display: flex; flex-direction: column;
}
.sw-login__panel::before {
    content: ""; position: absolute; right: -120px; top: -150px;
    width: 480px; height: 480px; border-radius: 50%; background: rgba(255, 255, 255, .05);
}
.sw-login__panel::after {
    content: ""; position: absolute; left: -230px; bottom: -260px;
    width: 600px; height: 600px; border-radius: 50%; background: rgba(66, 165, 245, .12);
}
.sw-login__panel > * { position: relative; z-index: 1; }
.sw-login__panel .sw-marca__lema { color: #B9D5FA; max-width: 360px; }

.sw-login__mensaje { margin-top: auto; padding-top: 48px; }
.sw-chip {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 8px 16px; border-radius: 20px;
    background: rgba(255, 255, 255, .13); color: #E9F3FF; font-size: 14px;
}
.sw-chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #66BB6A; }
.sw-login__titulo {
    font-size: 48px; line-height: 1.15; font-weight: 700; margin: 22px 0 16px; color: #fff;
}
.sw-login__texto { font-size: 18px; line-height: 1.6; color: #D6E7FC; max-width: 520px; margin: 0; }

/* Slider */
.sw-slider { margin-top: 44px; max-width: 590px; position: relative; padding: 0 22px 18px 0; margin-bottom: auto; }
.sw-slider::before {
    content: ""; position: absolute; left: 22px; top: 16px; right: 0; bottom: 0;
    border-radius: 22px; background: rgba(255, 255, 255, .20);
}
.sw-slider__tarjeta {
    position: relative; background: #fff; color: var(--sw-texto);
    border-radius: 22px; box-shadow: var(--sw-sombra);
    padding: 24px; overflow: hidden; outline: none;
}
.sw-slider__tarjeta:focus-visible { box-shadow: var(--sw-sombra), 0 0 0 4px rgba(255, 255, 255, .5); }
.sw-slider__pista { position: relative; min-height: 172px; }
.sw-slide {
    position: absolute; inset: 0;
    display: flex; gap: 26px; align-items: stretch;
    opacity: 0; visibility: hidden; transform: translateX(24px);
    transition: opacity .45s ease, transform .45s ease, visibility .45s;
}
.sw-slide.is-activo { opacity: 1; visibility: visible; transform: none; position: relative; }
.sw-slide__icono {
    flex: 0 0 150px; border-radius: 16px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
    background: var(--sw-slide-suave);
}
.sw-slide__circulo {
    width: 84px; height: 84px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--sw-slide-degradado); color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .12);
}
.sw-slide__circulo svg { width: 38px; height: 38px; }
.sw-slide__modulo { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--sw-slide-color); }
.sw-slide__cuerpo { flex: 1; padding: 8px 0; }
.sw-slide__etiqueta { font-size: 12px; letter-spacing: 1.5px; color: #60758E; text-transform: uppercase; }
.sw-slide__titulo { font-size: 27px; font-weight: 700; margin: 10px 0 12px; color: var(--sw-texto); line-height: 1.2; }
.sw-slide__texto { font-size: 15.5px; line-height: 1.55; color: var(--sw-texto-2); margin: 0; }

.sw-slide--verde   { --sw-slide-color: #2E7D32; --sw-slide-suave: #E8F5E9; --sw-slide-degradado: linear-gradient(135deg, #43A047, #66BB6A); }
.sw-slide--azul    { --sw-slide-color: #1565C0; --sw-slide-suave: #E3F2FD; --sw-slide-degradado: linear-gradient(135deg, #1565C0, #42A5F5); }
.sw-slide--naranja { --sw-slide-color: #E65100; --sw-slide-suave: #FFF3E0; --sw-slide-degradado: linear-gradient(135deg, #E65100, #FF9800); }
.sw-slide--morado  { --sw-slide-color: #6A1B9A; --sw-slide-suave: #F3E5F5; --sw-slide-degradado: linear-gradient(135deg, #6A1B9A, #AB47BC); }

.sw-slider__controles {
    display: flex; align-items: center; gap: 16px;
    margin-top: 18px; padding-left: 176px;
}
.sw-slider__puntos { display: flex; align-items: center; gap: 8px; }
.sw-slider__punto {
    width: 9px; height: 9px; padding: 0; border: 0; border-radius: 5px;
    background: #CFDBEA; cursor: pointer; transition: width .3s, background .3s;
}
.sw-slider__punto.is-activo { width: 30px; background: var(--sw-azul-700); }
.sw-slider__contador { font-size: 13px; font-weight: 700; color: var(--sw-azul-700); }
.sw-slider__contador span { color: #9AA8B8; }
.sw-slider__flechas { margin-left: auto; display: flex; gap: 10px; }
.sw-slider__flecha {
    width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid #D6E1EE; background: #fff; color: #60758E;
    transition: background .2s, color .2s;
}
.sw-slider__flecha svg { width: 16px; height: 16px; }
.sw-slider__flecha--sig { background: var(--sw-azul-700); border-color: var(--sw-azul-700); color: #fff; }
.sw-slider__flecha:hover, .sw-slider__flecha:focus { outline: none; box-shadow: 0 0 0 3px rgba(21, 101, 192, .18); }
.sw-slider__progreso { margin: 14px 0 0 176px; height: 4px; border-radius: 2px; background: #E6EDF5; overflow: hidden; }
.sw-slider__barra { height: 100%; width: 0; background: var(--sw-slide-color, #43A047); border-radius: 2px; }
.sw-slider__barra.is-corriendo { animation: sw-progreso linear forwards; }
.sw-slider.is-pausado .sw-slider__barra { animation-play-state: paused; }
@keyframes sw-progreso { from { width: 0; } to { width: 100%; } }

.sw-login__pie-panel { margin-top: 40px; font-size: 12.5px; color: #A9C7EE; }

/* Tarjeta de acceso */
.sw-login__acceso {
    flex: 0 0 45%; display: flex; align-items: center; justify-content: center;
    padding: 40px 32px;
}
.sw-tarjeta-acceso {
    width: 100%; max-width: 470px;
    background: #fff; border-radius: 28px; box-shadow: var(--sw-sombra);
    padding: 44px 48px 38px;
}
.sw-tarjeta-acceso__logo {
    width: 96px; height: 96px; border-radius: 50%; margin: 0 auto;
    background: var(--sw-azul-100);
    display: flex; align-items: center; justify-content: center;
}
.sw-tarjeta-acceso__logo img { width: 70px; height: 70px; display: block; }
.sw-tarjeta-acceso h1 {
    text-align: center; font-size: 30px; font-weight: 700; color: var(--sw-texto);
    margin: 22px 0 8px; line-height: 1.2;
}
.sw-tarjeta-acceso__sub { text-align: center; font-size: 15px; color: #6F7F92; margin: 0 0 32px; }
.sw-tarjeta-acceso__fila {
    display: flex; justify-content: flex-end; margin: -4px 0 24px; font-size: 13.5px;
}
.sw-separador {
    display: flex; align-items: center; gap: 14px;
    margin: 30px 0 14px; color: #94A3B5; font-size: 12px; letter-spacing: .5px;
}
.sw-separador::before, .sw-separador::after { content: ""; flex: 1; height: 1px; background: #E0E7F0; }
.sw-tarjeta-acceso__registro { text-align: center; font-size: 14.5px; margin: 0; }
.sw-login__copy { text-align: center; color: var(--sw-texto-3); font-size: 12px; margin-top: 26px; }

/* Responsivo login */
@media (max-width: 1200px) {
    .sw-login__panel { padding: 48px 44px; }
    .sw-login__titulo { font-size: 40px; }
    .sw-tarjeta-acceso { padding: 38px 34px 32px; }
}
@media (max-width: 992px) {
    .sw-login { flex-direction: column; }
    .sw-login__panel { flex: none; padding: 28px 24px 34px; }
    .sw-login__mensaje { padding-top: 26px; }
    .sw-login__titulo { font-size: 30px; margin: 16px 0 10px; }
    .sw-login__texto { font-size: 15.5px; }
    .sw-slider, .sw-login__pie-panel { display: none; }
    .sw-login__acceso { flex: none; padding: 0 16px 36px; margin-top: -18px; }
    .sw-tarjeta-acceso { position: relative; z-index: 2; }
}
@media (max-width: 480px) {
    .sw-tarjeta-acceso { padding: 30px 22px 26px; border-radius: 22px; }
    .sw-marca__lema { font-size: 10.5px; }
}

/* =====================================================================
   REGISTRO
   ===================================================================== */
.sw-barra {
    background: #fff; border-bottom: 1px solid #E3EAF2;
    padding: 12px 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.sw-barra .sw-marca__logo { background: var(--sw-azul-100); box-shadow: none; width: 50px; height: 50px; flex-basis: 50px; }
.sw-barra .sw-marca__logo img { width: 40px; height: 40px; }
.sw-barra .sw-marca__nombre { color: var(--sw-texto); font-size: 20px; }
.sw-barra .sw-marca__lema { color: #6F7F92; font-size: 11px; }
.sw-barra__accion { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #60758E; white-space: nowrap; }
.sw-barra__accion .sw-btn { height: 40px; padding: 0 18px; border-radius: 10px; font-size: 13px; background: var(--sw-azul-100); color: var(--sw-azul-900) !important; }

.sw-registro { max-width: 1260px; margin: 0 auto; padding: 36px 32px 48px; }
.sw-registro__titulo { font-size: 32px; font-weight: 700; margin: 0 0 8px; color: var(--sw-texto); line-height: 1.2; }
.sw-registro__sub { font-size: 16px; color: #6F7F92; margin: 0 0 30px; }

/* Indicador de pasos */
.sw-pasos {
    --pad: 40px; --avance: 0;
    list-style: none; display: flex; margin: 0 0 30px; padding: 0 var(--pad); position: relative;
}
/* La línea va del centro del primer círculo al centro del último. */
.sw-pasos::before {
    content: ""; position: absolute; top: 26px; height: 4px; background: #D8E4F1; border-radius: 2px;
    left: calc(var(--pad) + (100% - 2 * var(--pad)) / 6);
    right: calc(var(--pad) + (100% - 2 * var(--pad)) / 6);
}
.sw-pasos__linea {
    position: absolute; top: 26px; height: 4px; background: var(--sw-azul-600); border-radius: 2px;
    left: calc(var(--pad) + (100% - 2 * var(--pad)) / 6);
    width: calc((100% - 2 * var(--pad)) * 2 / 3 * var(--avance));
    transition: width .35s ease;
}
.sw-paso { flex: 1; text-align: center; position: relative; }
.sw-paso__circulo {
    width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #fff; border: 3px solid #CAD7E5; color: #91A0B1;
    font-size: 19px; font-weight: 700; position: relative; z-index: 1;
    transition: background .3s, border-color .3s, color .3s;
}
.sw-paso__circulo svg { width: 24px; height: 24px; display: none; }
.sw-paso__nombre { font-size: 14px; font-weight: 700; color: #60758E; }
.sw-paso__estado { font-size: 12px; color: #91A0B1; margin-top: 3px; }
.sw-paso.is-actual .sw-paso__circulo { background: var(--sw-azul-600); border-color: var(--sw-azul-600); color: #fff; box-shadow: 0 0 0 6px rgba(25, 118, 210, .15); }
.sw-paso.is-actual .sw-paso__nombre { color: var(--sw-azul-900); }
.sw-paso.is-actual .sw-paso__estado { color: var(--sw-azul-600); }
.sw-paso.is-hecho .sw-paso__circulo { background: var(--sw-azul-600); border-color: var(--sw-azul-600); color: #fff; }
.sw-paso.is-hecho .sw-paso__circulo span { display: none; }
.sw-paso.is-hecho .sw-paso__circulo svg { display: block; }
.sw-paso.is-hecho .sw-paso__nombre { color: var(--sw-azul-900); }

/* Tarjeta principal */
.sw-registro__tarjeta {
    display: flex; background: #fff; border-radius: 24px; box-shadow: var(--sw-sombra); overflow: hidden;
}
.sw-registro__lateral {
    flex: 0 0 330px; position: relative; overflow: hidden;
    color: #fff; padding: 44px 36px;
    background: linear-gradient(135deg, var(--sw-azul-900), var(--sw-azul-600));
}
.sw-registro__lateral::before {
    content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
    border-radius: 50%; background: rgba(255, 255, 255, .06);
}
.sw-registro__lateral::after {
    content: ""; position: absolute; left: -80px; bottom: -90px; width: 270px; height: 270px;
    border-radius: 50%; background: rgba(66, 165, 245, .14);
}
.sw-registro__lateral > * { position: relative; z-index: 1; }
.sw-lateral { display: none; }
.sw-lateral.is-activo { display: block; animation: sw-aparecer .35s ease; }
.sw-lateral__icono {
    width: 66px; height: 66px; border-radius: 50%; background: rgba(255, 255, 255, .16);
    display: flex; align-items: center; justify-content: center; margin-bottom: 26px;
}
.sw-lateral__icono svg { width: 30px; height: 30px; }
.sw-lateral h3 { font-size: 24px; font-weight: 700; line-height: 1.25; margin: 0 0 14px; color: #fff; }
.sw-lateral p { font-size: 15px; line-height: 1.6; color: #D5E7FC; margin: 0 0 30px; }
.sw-lista-check { list-style: none; margin: 0; padding: 0; }
.sw-lista-check li { display: flex; align-items: center; gap: 12px; font-size: 14px; margin-bottom: 16px; color: #fff; }
.sw-lista-check li::before {
    content: ""; flex: 0 0 26px; height: 26px; border-radius: 50%;
    background: #66BB6A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat;
}

.sw-registro__formulario { flex: 1; padding: 42px 52px 38px; min-width: 0; }
.sw-etapa { display: none; }
.sw-etapa.is-activa { display: block; animation: sw-aparecer .35s ease; }
@keyframes sw-aparecer { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sw-etapa__titulo { font-size: 23px; font-weight: 700; margin: 0 0 6px; color: var(--sw-texto); }
.sw-etapa__sub { font-size: 14.5px; color: #74869A; margin: 0 0 26px; }
.sw-subtitulo {
    font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    color: var(--sw-azul-700); margin: 6px 0 16px; display: flex; align-items: center; gap: 10px;
}
.sw-subtitulo::after { content: ""; flex: 1; height: 1px; background: #E3EAF2; }

.sw-rejilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.sw-rejilla--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sw-rejilla .sw-completo { grid-column: 1 / -1; }

.sw-aviso {
    display: flex; gap: 12px; align-items: flex-start;
    background: #EFF6FF; color: #416487; border-radius: 12px;
    padding: 13px 16px; font-size: 13.5px; line-height: 1.5; margin: 4px 0 22px;
}
.sw-aviso svg { flex: 0 0 20px; width: 20px; height: 20px; color: var(--sw-azul-600); margin-top: 1px; }

/* Fortaleza de la contraseña */
.sw-fuerza { margin-top: 10px; }
.sw-fuerza__barras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sw-fuerza__barras span { height: 5px; border-radius: 3px; background: #E3EAF2; transition: background .25s; }
.sw-fuerza__texto { font-size: 12px; color: var(--sw-texto-3); margin-top: 6px; }
.sw-fuerza[data-nivel="1"] .sw-fuerza__barras span:nth-child(-n+1) { background: #E53935; }
.sw-fuerza[data-nivel="2"] .sw-fuerza__barras span:nth-child(-n+2) { background: #FB8C00; }
.sw-fuerza[data-nivel="3"] .sw-fuerza__barras span:nth-child(-n+3) { background: #FDD835; }
.sw-fuerza[data-nivel="4"] .sw-fuerza__barras span:nth-child(-n+4) { background: #43A047; }

.sw-requisitos { list-style: none; padding: 0; margin: 4px 0 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
.sw-requisitos li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #74869A; }
.sw-requisitos li::before {
    content: ""; flex: 0 0 18px; height: 18px; border-radius: 50%; border: 2px solid #CAD7E5; background: #fff;
    transition: background .2s, border-color .2s;
}
.sw-requisitos li.is-ok { color: var(--sw-verde); }
.sw-requisitos li.is-ok::before {
    border-color: #43A047;
    background: #43A047 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Resumen */
.sw-resumen { background: #F7F9FC; border: 1px solid #E3EAF2; border-radius: 14px; padding: 18px 20px; margin-bottom: 24px; }
.sw-resumen__titulo { font-size: 13px; font-weight: 700; color: #34465A; margin: 0 0 12px; }
.sw-resumen dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; font-size: 13.5px; }
.sw-resumen dt { color: #74869A; }
.sw-resumen dd { margin: 0; color: var(--sw-texto); font-weight: 600; word-break: break-word; }

.sw-etapa__acciones { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 10px; padding-top: 22px; border-top: 1px solid #EEF2F7; }
.sw-etapa__acciones .sw-btn { min-width: 150px; }
.sw-etapa__acciones .sw-espacio { flex: 1; }

.sw-registro__pie { text-align: center; color: var(--sw-texto-3); font-size: 12px; margin-top: 26px; }

/* Responsivo registro */
@media (max-width: 1100px) {
    .sw-registro__lateral { flex-basis: 270px; padding: 36px 28px; }
    .sw-registro__formulario { padding: 36px 34px 32px; }
    .sw-rejilla--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .sw-registro__tarjeta { flex-direction: column; }
    .sw-registro__lateral { flex: none; padding: 26px 26px 6px; }
    .sw-lateral p { margin-bottom: 18px; }
    .sw-lista-check { display: none; }
    .sw-lateral__icono { width: 52px; height: 52px; margin-bottom: 16px; }
}
@media (max-width: 680px) {
    .sw-barra { padding: 10px 16px; }
    .sw-barra .sw-marca__lema, .sw-barra__accion > span { display: none; }
    .sw-registro { padding: 24px 14px 36px; }
    .sw-registro__titulo { font-size: 25px; }
    .sw-pasos { --pad: 0px; }
    .sw-paso__estado { display: none; }
    .sw-paso__nombre { font-size: 12px; }
    .sw-paso__circulo { width: 46px; height: 46px; font-size: 17px; }
    .sw-pasos::before, .sw-pasos__linea { top: 22px; }
    .sw-registro__formulario { padding: 26px 20px 24px; }
    .sw-rejilla, .sw-rejilla--3, .sw-requisitos { grid-template-columns: 1fr; }
    .sw-etapa__acciones .sw-btn { min-width: 0; flex: 1; padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .sw-acceso *, .sw-acceso *::before, .sw-acceso *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   OLVIDÉ MI CONTRASEÑA
   Reutiliza el diseño del login (.sw-login) y agrega la guía de pasos,
   los mensajes en línea y el estado de "correo enviado".
   ===================================================================== */
.sw-guia {
    margin-top: 40px; margin-bottom: auto; max-width: 560px;
    background: #fff; color: var(--sw-texto);
    border-radius: 22px; box-shadow: var(--sw-sombra);
    padding: 26px 28px;
}
.sw-guia__titulo { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #60758E; margin: 0 0 18px; }
.sw-guia ol { list-style: none; margin: 0; padding: 0; }
.sw-guia li { display: flex; gap: 16px; align-items: flex-start; padding: 12px 0; }
.sw-guia li + li { border-top: 1px solid #EEF2F7; }
.sw-guia__num {
    flex: 0 0 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--sw-azul-100); color: var(--sw-azul-700); font-weight: 700; font-size: 15px;
}
.sw-guia strong { display: block; font-size: 15.5px; color: var(--sw-texto); margin-bottom: 3px; }
.sw-guia span { font-size: 14px; color: var(--sw-texto-2); line-height: 1.5; }

.sw-alerta {
    display: none; gap: 10px; align-items: flex-start;
    border-radius: 12px; padding: 12px 14px; margin: 0 0 18px;
    font-size: 13.5px; line-height: 1.5;
}
.sw-alerta.is-visible { display: flex; }
.sw-alerta svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; }
.sw-alerta--error { background: #FDECEC; color: #B3261E; }
.sw-alerta--aviso { background: #FFF4E5; color: #8A4B00; }

.sw-exito { display: none; text-align: center; }
.sw-exito.is-visible { display: block; animation: sw-aparecer .35s ease; }
.sw-exito__icono {
    width: 84px; height: 84px; margin: 0 auto 6px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #E8F5E9; color: var(--sw-verde);
}
.sw-exito__icono svg { width: 40px; height: 40px; }
.sw-exito__correo { font-weight: 700; color: var(--sw-texto); word-break: break-all; }
.sw-exito__nota { font-size: 13px; color: var(--sw-texto-3); margin: 0 0 26px; }
.sw-btn-texto {
    background: none; border: 0; padding: 0; margin-top: 18px; cursor: pointer;
    font: inherit; font-size: 14px; font-weight: 700; color: var(--sw-azul-700);
}
.sw-btn-texto:hover, .sw-btn-texto:focus { text-decoration: underline; outline: none; }

@media (max-width: 992px) {
    .sw-guia { display: none; }
}

/* =====================================================================
   RESTABLECER CONTRASEÑA
   ===================================================================== */
.sw-exito__icono--error { background: #FDECEC; color: #C62828; }
.sw-tarjeta-acceso .sw-requisitos { grid-template-columns: 1fr; gap: 7px; margin: 0 0 22px; }
.sw-tarjeta-acceso .sw-fuerza { margin-top: 8px; }

/* =====================================================================
   6. GESTIÓN DE USUARIOS DE LA AGENCIA (antes css/custom/gestion_usuarios.css)
   ===================================================================== */
/* Gestión de usuarios de la agencia */
.gu { --gu-azul: #0D47A1; --gu-azul-2: #1565C0; --gu-azul-claro: #EAF2FF; --gu-borde: #E3EAF2; --gu-texto: #172033; --gu-gris: #6F7F92; }

.gu-cabecera {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 24px 28px; border-radius: 14px; flex-wrap: wrap;
}
.gu-cabecera h5 { margin: 0 0 6px; color: var(--gu-azul); font-weight: 600; }
.gu-cabecera p { margin: 0; color: var(--gu-gris); max-width: 640px; }

.gu-resumen { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 0 0 16px; }
.gu-dato {
    background: #fff; border-radius: 12px; padding: 16px 18px;
    box-shadow: 0 2px 6px rgba(18, 52, 90, .08); border-left: 4px solid var(--gu-azul-2);
}
.gu-dato span { display: block; font-size: 26px; font-weight: 700; color: var(--gu-texto); line-height: 1.1; }
.gu-dato small { color: var(--gu-gris); font-size: 13px; }

.gu-listado { border-radius: 14px; overflow: hidden; }
.gu-listado__barra {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 24px; border-bottom: 1px solid var(--gu-borde); flex-wrap: wrap;
}
.gu-listado__barra h6 { margin: 0; color: var(--gu-azul); font-weight: 600; }
input[type=text].gu-buscar {
    width: 320px; max-width: 100%; height: 40px; margin: 0; padding: 0 14px; box-sizing: border-box;
    border: 1px solid #CFDBEA; border-radius: 10px; background: #F8FAFD;
}
input[type=text].gu-buscar:focus { border-color: var(--gu-azul-2); box-shadow: 0 0 0 3px rgba(21, 101, 192, .12); }

.gu-tabla-cont { overflow-x: auto; }
.gu-tabla { width: 100%; border-collapse: collapse; }
.gu-tabla th {
    text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
    color: #60758E; background: #F7F9FC; padding: 12px 16px; border-bottom: 1px solid var(--gu-borde);
}
.gu-tabla td { padding: 14px 16px; border-bottom: 1px solid #EEF2F7; vertical-align: middle; color: var(--gu-texto); }
.gu-tabla tr:hover td { background: #FAFCFF; }
.gu-tabla tr.gu-inactivo td { color: #9AA8B8; }
.gu-der { text-align: right !important; white-space: nowrap; }
.gu-vacio { text-align: center; color: var(--gu-gris) !important; padding: 34px !important; }

.gu-usuario strong { display: block; font-weight: 600; }
.gu-usuario span { font-size: 13px; color: var(--gu-gris); word-break: break-all; }
.gu-yo { font-size: 11px; font-weight: 700; color: var(--gu-azul-2); background: var(--gu-azul-claro); border-radius: 10px; padding: 1px 8px; margin-left: 6px; }

.gu-etiqueta { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 12px; padding: 3px 10px; white-space: nowrap; }
.gu-etiqueta--admin { background: #E8EAF6; color: #283593; }
.gu-etiqueta--usuario { background: #ECEFF1; color: #455A64; }
.gu-etiqueta--si { background: #E8F5E9; color: #2E7D32; }
.gu-etiqueta--no { background: #F5F5F5; color: #8A99AA; }
.gu-etiqueta--activo { background: #E8F5E9; color: #2E7D32; }
.gu-etiqueta--inactivo { background: #FDECEC; color: #C62828; }
.gu-etiqueta--pendiente { background: #FFF4E5; color: #8A4B00; margin-top: 4px; }

.gu-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gu-chip { font-size: 12px; background: var(--gu-azul-claro); color: var(--gu-azul); border-radius: 8px; padding: 2px 8px; }
.gu-chip--todas { background: #E8EAF6; color: #283593; }
.gu-chip--sin { background: #FDECEC; color: #C62828; }

.gu-accion {
    background: none; border: 1px solid #CFDBEA; border-radius: 8px; padding: 5px 10px; margin-left: 6px;
    font-size: 13px; color: var(--gu-azul-2); cursor: pointer;
}
.gu-accion:hover, .gu-accion:focus { background: var(--gu-azul-claro); outline: none; }
.gu-accion[disabled] { opacity: .5; cursor: wait; }

/* Modal */
.gu-modal {
    position: fixed; inset: 0; z-index: 1100; display: none;
    background: rgba(13, 33, 55, .45); padding: 30px 16px; overflow-y: auto;
}
.gu-modal.is-abierto { display: block; }
.gu-modal__caja {
    background: #fff; border-radius: 16px; max-width: 760px; margin: 0 auto;
    box-shadow: 0 20px 60px rgba(13, 33, 55, .3);
}
.gu-modal__cabecera { display: flex; align-items: center; justify-content: space-between; padding: 20px 26px; border-bottom: 1px solid var(--gu-borde); }
.gu-modal__cabecera h5 { margin: 0; font-size: 20px; color: var(--gu-azul); font-weight: 600; }
.gu-cerrar { background: none; border: 0; font-size: 30px; line-height: 1; color: #8A99AA; cursor: pointer; }
#guForm { padding: 22px 26px 24px; }

.gu-rejilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 22px; }
.gu-completo { grid-column: 1 / -1; }
.gu-campo { margin-bottom: 14px; }
.gu-campo label { display: block; font-size: 13px; font-weight: 700; color: #34465A; margin-bottom: 6px; }
.gu-campo input[type=text], .gu-campo select {
    width: 100%; height: 44px; margin: 0; padding: 0 12px; box-sizing: border-box;
    border: 1px solid #CFDBEA; border-radius: 10px; background: #F8FAFD; font-size: 15px;
}
.gu-campo input[type=text]:focus, .gu-campo select:focus { border-color: var(--gu-azul-2); box-shadow: 0 0 0 3px rgba(21, 101, 192, .12); outline: none; }
.gu-campo input[disabled], .gu-campo select[disabled] { background: #EEF2F7; color: #6F7F92; }
.gu-campo small, .gu-aduanas small { display: block; font-size: 12px; color: #8A99AA; margin-top: 5px; }
.gu-mayus { text-transform: uppercase; }
.gu-interruptores { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.gu-interruptores .switch label { font-size: 14px; color: var(--gu-texto); }

.gu-aduanas { border: 1px solid var(--gu-borde); border-radius: 12px; padding: 14px 16px; margin: 6px 0 14px; }
.gu-aduanas__cabecera { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 700; color: #34465A; font-size: 14px; }
.gu-aduanas__cabecera a { font-size: 13px; font-weight: 600; }
.gu-aduanas__lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
.gu-aduanas__lista p { margin: 4px 0; }
.gu-aduanas__lista label { font-size: 14px; color: var(--gu-texto); }

.gu-nota { display: none; background: #EFF6FF; color: #416487; border-radius: 10px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 12px; }
.gu-nota.is-visible { display: block; }
.gu-error { display: none; background: #FDECEC; color: #B3261E; border-radius: 10px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 14px; }
.gu-error.is-visible { display: block; }

.gu-modal__acciones { display: flex; justify-content: flex-end; gap: 10px; padding-top: 16px; border-top: 1px solid #EEF2F7; }

@media (max-width: 900px) {
    .gu-resumen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .gu-rejilla, .gu-aduanas__lista { grid-template-columns: 1fr; }
    input[type=text].gu-buscar { width: 100%; }
}
