/* APP DE CLIENTES AQUITOY -> ESTILOS. SIN fuentes externas [CSP] Y SIN estilos en linea [style-src 'self'].
   DISENO: MISMO LOOK DEL PORTAL DE EMPLEADOS [plantilla Poppins, morado #6418c3, barra lateral blanca, encabezado blanco con titulo,
   franja de migas gris, tarjetas blancas cuadradas con sombra suave, botones y campos cuadrados]. La fuente Poppins se aloja en /fonts [licencia OFL].
   Tokens en :root [claro]; el modo oscuro es OPCIONAL [solo si el cliente lo elige en Seguridad]: redefine SOLO los tokens. Ya no sigue al telefono: el portal de empleados es claro. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }

:root {
    --fondo: #fbfbfb;
    --superficie: #ffffff;
    --superficie-2: #f4f5f9;
    --borde: #f0f1f5;
    --borde-fuerte: #e4e5ee;
    --texto: #3d4465;
    --texto-2: #7e7e7e;
    --titulo: #000000;
    --franja: #f1f1f1;
    --marca: #6418c3;
    --marca-fuerte: #4d0f9e;
    --marca-suave: #efe7fa;
    --sobre-marca: #ffffff;
    --positivo: #1b8f3e;
    --positivo-suave: #e7faec;
    --negativo: #d92020;
    --negativo-suave: #fff0f0;
    --aviso: #a86400;
    --aviso-suave: #fff9ef;
    --info: #1f7fb8;
    --info-suave: #f4fafd;
    --sombra: 0 12px 23px rgba(220, 60, 204, .04);
    --sombra-lateral: 18px 0 35px rgba(0, 0, 0, .02);
    --radio: 0;
    --radio-s: 0;
    --fuente: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --nav-alto: 64px;
    --lateral-ancho: 272px;
    --cabecera-alto: 80px;
}
:root[data-tema="oscuro"] {
    --fondo: #120f1f;
    --superficie: #1c1830;
    --superficie-2: #272142;
    --borde: #352e57;
    --borde-fuerte: #4a4170;
    --texto: #f1eefb;
    --texto-2: #a9a3c4;
    --titulo: #ffffff;
    --franja: #1a1630;
    --marca: #a678f0;
    --marca-fuerte: #c3a0f7;
    --marca-suave: #2e2250;
    --sobre-marca: #14092b;
    --positivo: #4ad39d;
    --positivo-suave: #123a2d;
    --negativo: #ff8f86;
    --negativo-suave: #43191a;
    --aviso: #f2c36b;
    --aviso-suave: #3d2c0c;
    --info: #7cc4ee;
    --info-suave: #14283a;
    --sombra: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    --sombra-lateral: 18px 0 35px rgba(0, 0, 0, .25);
}
@media (min-width: 1400px) {
    :root { --lateral-ancho: 345px; --cabecera-alto: 120px; }
}
@media (min-width: 900px) {
    :root[data-menu="plegado"] { --lateral-ancho: 90px; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--fondo);
    color: var(--texto-2);
    font-family: var(--fuente);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.25; text-wrap: balance; font-weight: 600; color: var(--titulo); }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; color: var(--texto); }
p { margin: 0; }
strong { color: var(--texto); font-weight: 600; }
a { color: var(--marca); }
button, input, select, textarea { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--texto-2); }
.oculto { display: none !important; }
.solo-lectores { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--marca); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- ESTRUCTURA [barra lateral + encabezado + migas + contenido, como el portal de empleados] ---------- */
#app-cargando { min-height: 100vh; display: grid; place-items: center; color: var(--texto-2); }
.marco { min-height: 100vh; display: flex; flex-direction: column; }
.lateral { display: none; }
.marca-nombre { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .02em; text-decoration: none; color: var(--titulo); }
.marca-logo { height: 34px; width: auto; max-width: 190px; object-fit: contain; display: block; }
.marca-texto { height: 16px; width: auto; display: block; }
.cabecera {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 0 16px; height: 60px; background: var(--superficie); border-bottom: 1px solid var(--borde);
}
.cabecera-izq { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cabecera-titulo { font-size: 1.1rem; font-weight: 600; color: var(--titulo); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cabecera-marca-movil { display: block; }
.cabecera-der { display: flex; align-items: center; gap: 12px; }
.saludo { display: none; font-size: .95rem; color: #464a53; }
.saludo b { font-weight: 600; color: var(--titulo); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--marca); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: .9rem; flex: none; text-decoration: none; }
.migas { display: none; }
.contenido { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 18px 16px 32px; display: flex; flex-direction: column; gap: 16px; }
.hamburguesa { flex: none; width: 40px; height: 40px; display: grid; place-content: center; gap: 5px; padding: 0; border: 0; background: transparent; cursor: pointer; color: var(--marca); }
.hamburguesa span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s, width .2s; }
.hamburguesa span:nth-child(2) { width: 16px; }
.hamburguesa:hover span:nth-child(2) { width: 22px; }
.velo { position: fixed; inset: 0; z-index: 35; background: rgba(15, 10, 30, .45); opacity: 0; pointer-events: none; transition: opacity .2s; }
.nav {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 40; width: min(300px, 86vw);
    display: flex; flex-direction: column; background: var(--superficie); padding: 84px 14px 24px; overflow-y: auto;
    transform: translateX(-102%); transition: transform .22s ease; box-shadow: none; visibility: hidden;
}
:root[data-menu-abierto] .nav { transform: none; box-shadow: 18px 0 35px rgba(0, 0, 0, .12); visibility: visible; }
:root[data-menu-abierto] .velo { opacity: 1; pointer-events: auto; }
.nav a {
    display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; padding: 12px 14px; margin-bottom: 4px; border-radius: 12px;
    color: var(--texto-2); text-decoration: none; font-size: .95rem; font-weight: 500; position: relative; min-width: 0;
}
.nav a svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav a:hover { color: var(--marca); }
.nav a[aria-current="page"] { background: var(--marca); color: #fff; }
.insignia { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--negativo); color: #fff; font-size: .7rem; display: grid; place-items: center; }
@media (min-width: 900px) {
    .marco { display: block; }
    .lateral {
        display: flex; flex-direction: column; position: fixed; z-index: 30; left: 0; top: 0; bottom: 0; width: var(--lateral-ancho);
        background: var(--superficie); box-shadow: var(--sombra-lateral); overflow: hidden;
    }
    .lateral .marca-nombre { height: var(--cabecera-alto); padding: 0 24px; flex: none; gap: 12px; min-width: 0; overflow: hidden; }
    .lateral .marca-logo { height: 46px; }
    .lateral .marca-texto { height: 18px; max-width: 130px; object-fit: contain; }
    .cabecera-marca-movil { display: none; }
    .cabecera { position: fixed; left: var(--lateral-ancho); right: 0; top: 0; height: var(--cabecera-alto); padding: 0 30px; border-bottom: 0; z-index: 25; }
    .cabecera-titulo { font-size: 1.5rem; }
    .saludo { display: block; }
    .avatar { width: 44px; height: 44px; }
    .hamburguesa { width: 44px; height: 44px; }
    .velo { display: none; }
    .nav { top: var(--cabecera-alto); bottom: 0; width: var(--lateral-ancho); z-index: 31; padding: 14px 18px 24px; transform: none; visibility: visible; transition: width .2s ease; box-shadow: none; background: transparent; }
    :root[data-menu-abierto] .nav { box-shadow: none; }
    .lateral, .cabecera, .migas, .contenido { transition: left .2s ease, width .2s ease, margin-left .2s ease; }
    .migas { display: flex; align-items: center; gap: 8px; margin: calc(var(--cabecera-alto)) 0 0 var(--lateral-ancho); padding: 15px 30px; background: var(--franja); font-size: .95rem; color: var(--texto-2); }
    .migas a { color: var(--texto-2); text-decoration: none; }
    .migas a:hover { color: var(--marca); }
    .migas .sep { opacity: .6; }
    .migas .actual { color: var(--texto); font-weight: 500; }
    .contenido { margin-left: var(--lateral-ancho); max-width: none; width: calc(100% - var(--lateral-ancho)); padding: 30px 30px 40px; }
    .contenido > * { width: 100%; max-width: 1100px; margin-left: 0; margin-right: auto; }
}

/* ---------- MENU PLEGADO [escritorio]: solo iconos ---------- */
@media (min-width: 900px) {
    :root[data-menu="plegado"] .lateral .marca-texto { display: none; }
    :root[data-menu="plegado"] .lateral .marca-nombre { justify-content: center; padding: 0 8px; }
    :root[data-menu="plegado"] .lateral .marca-logo { height: 34px; max-width: 70px; }
    :root[data-menu="plegado"] .nav { padding: 14px 12px 24px; }
    :root[data-menu="plegado"] .nav a { justify-content: center; padding: 12px 0; }
    :root[data-menu="plegado"] .nav a span:not(.insignia) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    :root[data-menu="plegado"] .nav a .insignia { position: absolute; top: 4px; right: 8px; min-width: 16px; height: 16px; font-size: .62rem; padding: 0 4px; }
}

/* ---------- COMPONENTES ---------- */
.tarjeta { background: var(--superficie); border: 0; border-radius: var(--radio); padding: 24px; box-shadow: var(--sombra); display: flex; flex-direction: column; gap: 14px; }
.tarjeta-titulo { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tarjeta-titulo h2, .tarjeta > h2 { font-size: 1.25rem; }
.cuenta-saldo { font-size: 2.1rem; font-weight: 600; letter-spacing: -.01em; color: var(--titulo); }
.cuenta-saldo small { font-size: 1rem; font-weight: 500; color: var(--texto-2); }
.cuenta-numero { font-size: .95rem; color: var(--texto-2); letter-spacing: .06em; }
.cuenta-acciones { display: flex; flex-wrap: wrap; gap: 8px; }
.cuenta-principal { background: linear-gradient(160deg, var(--marca) 0%, var(--marca-fuerte) 130%); color: #fff; border-color: transparent; }
.cuenta-principal h2, .cuenta-principal h3, .cuenta-principal .cuenta-saldo, .cuenta-principal strong { color: #fff; }
.cuenta-principal .cuenta-saldo small, .cuenta-principal .cuenta-numero { color: inherit; opacity: .85; }
.cuenta-principal .boton-sec { background: rgba(255, 255, 255, .16); color: inherit; border-color: transparent; }
.cuenta-principal .etiqueta { background: rgba(255, 255, 255, .2); color: inherit; }
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: var(--radio-s); border: 1px solid var(--marca); background: var(--marca); color: var(--sobre-marca); font-weight: 500; font-size: .95rem; cursor: pointer; text-decoration: none; transition: background-color .15s, border-color .15s, color .15s; }
.boton:hover { background: var(--marca-fuerte); border-color: var(--marca-fuerte); }
.boton[disabled] { opacity: .55; cursor: not-allowed; }
.boton-sec { background: var(--superficie-2); color: var(--texto); border-color: var(--superficie-2); }
.boton-sec:hover { background: var(--marca-suave); border-color: var(--marca-suave); color: var(--marca); }
.boton-peligro { background: var(--negativo-suave); color: var(--negativo); border-color: var(--negativo-suave); }
.boton-peligro:hover { background: var(--negativo); border-color: var(--negativo); color: #fff; }
.boton-chico { min-height: 36px; padding: 0 16px; font-size: .85rem; }
.boton-bloque { width: 100%; }
.etiqueta { display: inline-block; padding: 3px 10px; border-radius: 0; font-size: .75rem; font-weight: 500; line-height: 1.5; background: var(--superficie-2); color: var(--texto-2); }
.etiqueta-ok { background: var(--positivo-suave); color: var(--positivo); }
.etiqueta-mal { background: var(--negativo-suave); color: var(--negativo); }
.etiqueta-aviso { background: var(--aviso-suave); color: var(--aviso); }

.campo { display: flex; flex-direction: column; gap: 6px; }
.campo label { font-size: .88rem; font-weight: 500; color: var(--titulo); }
.campo input, .campo select { min-height: 52px; padding: 0 14px; border-radius: var(--radio-s); border: 1px solid var(--borde-fuerte); background: var(--superficie); color: var(--texto); }
.campo input:focus, .campo select:focus { border-color: var(--marca); outline: none; box-shadow: 0 0 0 3px var(--marca-suave); }
.campo .ayuda { font-size: .82rem; color: var(--texto-2); }
.campo-codigo input { width: 100%; min-width: 0; box-sizing: border-box; text-align: center; font-size: 1.6rem; letter-spacing: .5em; font-variant-numeric: tabular-nums; padding-left: .5em; }
.campo-monto { position: relative; }
.campo-monto input { font-size: 1.6rem; font-weight: 700; padding-left: 34px; font-variant-numeric: tabular-nums; }
.campo-monto .signo { position: absolute; left: 14px; bottom: 12px; font-size: 1.6rem; font-weight: 700; color: var(--texto-2); line-height: 1.2; }
.casilla { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; }
.casilla input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--marca); }
.lista-simple { padding-left: 1.2rem; margin: .5rem 0; }
.lista-simple li { margin: .4rem 0; }
.centrado { text-align: center; }
.caja-contrato { max-height: 320px; overflow-y: auto; border: 1px solid var(--borde); border-radius: 10px; padding: 14px; background: var(--superficie-2); font-size: .92rem; line-height: 1.5; }
.caja-contrato p { margin: 0 0 10px; }
.formulario { display: flex; flex-direction: column; gap: 16px; }

.aviso { padding: 14px 18px; border-radius: var(--radio-s); font-size: .9rem; display: flex; gap: 10px; align-items: flex-start; border: 1px solid transparent; }
.aviso-info { background: var(--info-suave); color: var(--info); border-color: var(--info-suave); }
.aviso-ok { background: var(--positivo-suave); color: var(--positivo); border-color: var(--positivo-suave); }
.aviso-mal { background: var(--negativo-suave); color: var(--negativo); border-color: var(--negativo-suave); }
.aviso-aviso { background: var(--aviso-suave); color: var(--aviso); border-color: var(--aviso-suave); }

.lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.lista > li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--borde); }
.lista > li:last-child { border-bottom: 0; }
.lista .grande { flex: 1; min-width: 0; }
.lista .titulo { font-weight: 600; overflow-wrap: anywhere; }
.lista .sub { font-size: .85rem; color: var(--texto-2); }
.mov-icono { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--superficie-2); }
.mov-icono svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mov-entra .mov-icono { background: var(--positivo-suave); color: var(--positivo); }
.mov-sale .mov-icono { background: var(--negativo-suave); color: var(--negativo); }
.mov-monto { font-weight: 700; white-space: nowrap; }
.mov-entra .mov-monto { color: var(--positivo); }
.mov-nada { opacity: .6; }
.mov-nada .mov-monto { text-decoration: line-through; }
.vacio { text-align: center; padding: 28px 12px; color: var(--texto-2); }

/* ---------- ACCESO [login] ---------- */
.acceso { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; background: #f4f4f7; }
.acceso-caja { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 22px; }
.acceso-marca { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.acceso-marca img { width: 260px; max-width: 80%; height: auto; }
.acceso-marca h1 { font-size: 1.9rem; font-weight: 700; color: #1c1030; letter-spacing: .01em; }
.acceso-marca h1 span { color: var(--marca); }
.acceso .tarjeta { border-radius: 20px; padding: 30px 28px; box-shadow: 0 20px 45px -15px rgba(60, 20, 120, .18); gap: 16px; }
.acceso .tarjeta > h2 { text-align: center; font-size: 1.1rem; font-weight: 600; color: #1c1030; }
.acceso .campo input { background: #fafafa; border: 1px solid #e4e3ea; border-radius: 12px; min-height: 52px; }
.acceso .campo input:focus { background: #fff; }
.acceso .boton { border-radius: 12px; border: 0; background: linear-gradient(180deg, #6418c3 0%, #3d0e79 100%); box-shadow: 0 10px 20px -8px rgba(100, 24, 195, .55); min-height: 52px; font-weight: 600; }
.acceso .boton:hover { filter: brightness(1.08); }
.acceso .boton-sec { background: var(--marca-suave); color: var(--marca); box-shadow: none; }
.acceso .aviso { border-radius: 12px; }
:root[data-tema="oscuro"] .acceso { background: var(--fondo); }
:root[data-tema="oscuro"] .acceso-marca h1, :root[data-tema="oscuro"] .acceso .tarjeta > h2 { color: var(--titulo); }
:root[data-tema="oscuro"] .acceso .campo input { background: var(--superficie-2); border-color: var(--borde); }
:root[data-tema="oscuro"] .marca-logo, :root[data-tema="oscuro"] .marca-texto { filter: brightness(0) invert(1); }

/* ---------- PASOS DE TRANSFERENCIA ---------- */
.pasos { display: flex; gap: 6px; }
.paso { flex: 1; height: 5px; border-radius: 3px; background: var(--borde); }
.paso-hecho { background: var(--marca); }
.resumen { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.resumen dt { color: var(--texto-2); font-size: .9rem; }
.resumen dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.exito { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12px 0; }
.exito-icono { width: 68px; height: 68px; border-radius: 50%; background: var(--positivo-suave); color: var(--positivo); display: grid; place-items: center; }
.exito-icono svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- TOASTS Y MODALES ---------- */
#avisos { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; max-width: 440px; width: 100%; padding: 12px 16px; border-radius: var(--radio-s); background: var(--texto); color: var(--fondo); font-size: .93rem; box-shadow: var(--sombra); }
.toast-mal { background: var(--negativo); color: #fff; }
.toast-ok { background: var(--positivo); color: #fff; }
@media (min-width: 900px) { #avisos { bottom: 20px; left: 270px; } }
.fondo-modal { position: fixed; inset: 0; z-index: 50; background: rgba(15, 10, 30, .55); display: grid; place-items: center; padding: 16px; }
.modal { width: 100%; max-width: 440px; background: var(--superficie); border-radius: var(--radio); padding: 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--sombra); max-height: 90vh; overflow: auto; }
.modal-acciones { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.cargando-fila { height: 14px; border-radius: 7px; background: var(--superficie-2); }
.esqueleto { display: flex; flex-direction: column; gap: 10px; }
.selector-mes { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.selector-mes input { min-height: 40px; padding: 0 10px; border-radius: var(--radio-s); border: 1.5px solid var(--borde); background: var(--superficie); }
.aviso-texto { white-space: pre-wrap; max-height: 50vh; overflow: auto; padding: 12px; background: var(--superficie-2); border-radius: var(--radio-s); font-size: .9rem; }

/* ---------- TARJETAS DE CREDITO ---------- */
.pila { display: flex; flex-direction: column; gap: 16px; }
.grande-num { font-size: 1.15rem; font-weight: 700; }
.tj-visual { border-radius: var(--radio); padding: 18px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; color: var(--sobre-marca); background: linear-gradient(135deg, var(--marca) 0%, var(--marca-fuerte) 120%); }
.tj-inactiva { background: var(--superficie-2); color: var(--texto-2); }
.tj-fila { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tj-producto { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; }
.tj-numero { font-size: 1.25rem; letter-spacing: .12em; font-weight: 600; overflow-wrap: anywhere; }
.tj-pie { font-size: .9rem; opacity: .9; }
.tj-visual .etiqueta { background: rgba(255, 255, 255, .22); color: inherit; }
.tj-inactiva .etiqueta-aviso { background: var(--aviso-suave); color: var(--aviso); }
.tj-inactiva .etiqueta-mal { background: var(--negativo-suave); color: var(--negativo); }
.tj-resumen { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.tarjeta-destacada { border-color: var(--marca); background: var(--marca-suave); }
.tj-datos { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--radio-s); background: var(--superficie-2); }
.tj-datos-num { font-size: 1.35rem; font-weight: 700; letter-spacing: .08em; overflow-wrap: anywhere; user-select: all; }
.tj-datos-fila { display: flex; gap: 32px; }
.pestanas { display: flex; gap: 4px; padding: 4px; border-radius: var(--radio-s); background: var(--superficie-2); overflow-x: auto; }
.pestana { flex: 1; min-height: 40px; padding: 0 12px; border: 0; border-radius: 0; background: transparent; color: var(--texto-2); font-weight: 600; cursor: pointer; white-space: nowrap; }
.pestana-activa { background: var(--superficie); color: var(--texto); box-shadow: var(--sombra); }
.mov-lado { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

/* ---------- FIRMA DIBUJADA Y SOLICITUD DE TARJETA ---------- */
.firma-lienzo { width: 100%; aspect-ratio: 3 / 1; border: 1.5px dashed var(--borde); border-radius: var(--radio-s); background: #ffffff; touch-action: none; cursor: crosshair; display: block; }
.campo textarea { padding: 12px 14px; border-radius: var(--radio-s); border: 1.5px solid var(--borde); background: var(--superficie); resize: vertical; min-height: 84px; }
.campo textarea:focus { border-color: var(--marca); outline: none; box-shadow: 0 0 0 3px var(--marca-suave); }
.tipos { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tipos legend { font-size: .88rem; font-weight: 600; padding: 0; margin-bottom: 8px; }
.opcion-tipo { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--borde); border-radius: var(--radio-s); background: var(--superficie); cursor: pointer; }
.opcion-tipo:has(input:checked) { border-color: var(--marca); background: var(--marca-suave); }
.opcion-tipo input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--marca); flex: none; }
.opcion-tipo-texto { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; font-size: .92rem; }

/* ---------- CREDITOS ---------- */
.avance { display: flex; flex-direction: column; gap: 6px; }
.avance progress { width: 100%; height: 10px; border-radius: 5px; overflow: hidden; border: 0; background: var(--superficie-2); accent-color: var(--marca); }
.avance progress::-webkit-progress-bar { background: var(--superficie-2); }
.avance progress::-webkit-progress-value { background: var(--marca); }
.avance progress::-moz-progress-bar { background: var(--marca); }
.tarjeta-alerta { border-color: var(--negativo); background: var(--negativo-suave); }
.opcion-deposito { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1.5px solid var(--borde); border-radius: var(--radio-s); background: var(--superficie-2); }

/* ---------- AYUDA, ACLARACIONES, QUEJAS, ARCO Y MENSAJES ---------- */
.enlace-fila { display: block; color: inherit; text-decoration: none; }
.enlace-fila:hover .titulo, .enlace-fila:focus-visible .titulo { color: var(--marca); }
.fila-titulo { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.texto-mensaje { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }

/* ---------- PERSONAL QUE ENTRA COMO CLIENTE ---------- */
.es-personal .boton-nip { display: none; }

/* PAGINA A LA QUE CONEKTA REGRESA AL CLIENTE [pago-resultado.html]: SIN ESTILOS EN LINEA [CSP] */
.pagina-resultado { max-width: 520px; width: 100%; margin: 0 auto; padding: 24px 16px; }

/* ---------- CREDITO DE ARTICULOS [copiado de la tienda: mismas clases] ---------- */
.t-ruta { font-size: .86rem; color: var(--texto-2); margin-bottom: 12px; }
.t-ruta a { color: var(--texto-2); }
.t-vacio { text-align: center; padding: 48px 16px; color: var(--texto-2); }
.t-vacio h2 { color: var(--texto); }
.t-fila-pedido { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: inherit; text-decoration: none; width: 100%; }
.t-fila-pedido-der { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.t-titulo { margin: 0 0 14px; }
.t-specs { width: 100%; border-collapse: collapse; background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); overflow: hidden; }
.t-specs th, .t-specs td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--borde); vertical-align: top; }
.t-specs tr:last-child td { border-bottom: 0; }
.t-specs th { color: var(--texto-2); font-weight: 600; background: var(--superficie-2); }
.t-positivo { color: var(--positivo); }
.t-datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 14px; }
.t-dato { display: flex; flex-direction: column; gap: 2px; }
.t-dato strong { font-size: 1.45rem; }
.t-positivo { color: var(--positivo); }
.t-barra { height: 10px; border-radius: 999px; background: var(--superficie-2); overflow: hidden; margin: 6px 0 14px; }
.t-barra-relleno { height: 100%; background: var(--marca); border-radius: 999px; }
.t-credito-acciones { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.t-contrato { max-height: 260px; overflow-y: auto; padding: 12px 14px; border: 1px solid var(--borde); border-radius: var(--radio-s); background: var(--superficie-2); font-size: .92rem; line-height: 1.5; margin-bottom: 12px; }
.t-contrato p { margin: 0 0 10px; }
.t-bloque-credito { margin: 4px 0 12px; }
.t-banner-credito { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--marca-suave); border: 1px solid var(--borde); border-radius: var(--radio); padding: 16px 20px; margin: 18px 0; }
.t-banner-credito strong { display: block; font-size: 1.05rem; }
.t-banner-credito span { color: var(--texto-2); }
.t-pagar-metodos { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.t-pago-cuota { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 420px; }
.t-tabla-caja { overflow-x: auto; }
.t-cuotas td, .t-cuotas th { white-space: nowrap; }
.t-grupo-plazos { margin: 10px 0 4px; font-size: .95rem; color: var(--texto-2); }
.t-negativo { color: var(--negativo); }
.pequeno { font-size: .88rem; }
