/* ==========================================================================
   INTERBANK · CAJA DE HERRAMIENTAS · styles.css
   Rediseño profesional / juvenil · Paleta Interbank · v2.0
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
    /* Marca */
    --ib-azul: #003087;
    --ib-azul-900: #001f5c;
    --ib-azul-950: #001640;
    --ib-azul-600: #0646a5;
    --ib-azul-400: #3d74d1;
    --ib-verde: #61bb46;
    --ib-verde-oscuro: #008738;
    --ib-verde-claro: #8fd97a;

    /* Neutros */
    --ink: #0f172a;
    --ink-2: #1e293b;
    --muted: #64748b;
    --muted-2: #94a3b8;
    --line: #e2e8f0;
    --white: #ffffff;

    /* Superficies glass */
    --glass-bg: rgba(255, 255, 255, .07);
    --glass-bg-2: rgba(255, 255, 255, .028);
    --glass-border: rgba(255, 255, 255, .14);
    --glass-hi: rgba(255, 255, 255, .06);

    /* Radios */
    --r-xs: 8px;
    --r-sm: 12px;
    --r-md: 16px;
    --r-lg: 20px;
    --r-xl: 26px;
    --r-pill: 999px;

    /* Sombras */
    --sh-sm: 0 4px 12px rgba(0, 20, 60, .16);
    --sh-md: 0 12px 30px rgba(0, 20, 60, .24);
    --sh-lg: 0 26px 60px rgba(0, 16, 48, .38);
    --sh-xl: 0 34px 90px rgba(0, 14, 44, .48);

    /* Movimiento */
    --ease: cubic-bezier(.2, .8, .2, 1);
    --ease-io: cubic-bezier(.85, 0, .15, 1);
    --t-fast: .2s;
    --t-mid: .35s;
    --t-slow: .55s;

    /* Tipografía */
    --font: "Plus Jakarta Sans", "Segoe UI", Tahoma, system-ui, -apple-system, sans-serif;

    /* Layout */
    --sidebar-w: clamp(340px, 28vw, 382px);
    --card-w: 366px;
    --card-h: 448px;
}

/* --------------------------------------------------------------------------
   2. RESET / BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding-right: 80px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    color: var(--white);
    font-family: var(--font);
    font-weight: 500;
    background-color: var(--ib-azul);
    background-image:
        radial-gradient(120% 90% at 88% 12%, rgba(97, 187, 70, .16) 0%, rgba(97, 187, 70, 0) 55%),
        radial-gradient(110% 95% at 8% 92%, rgba(6, 70, 165, .40) 0%, rgba(6, 70, 165, 0) 58%),
        linear-gradient(160deg, #00296f 0%, var(--ib-azul) 42%, var(--ib-azul-950) 100%);
    background-attachment: fixed;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Scroll sin barra visible (mantiene el scroll funcional) */
body,
#app-content,
.news-list,
.noti-body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar,
#app-content::-webkit-scrollbar,
.news-list::-webkit-scrollbar,
.noti-body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

img,
svg {
    max-width: 100%;
}

button {
    font-family: inherit;
}

:focus-visible {
    outline: 2px solid var(--ib-verde);
    outline-offset: 2px;
}

.hidden-field {
    display: none !important;
}

.noscript-bar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 99999;
    padding: 14px;
    background: #b91c1c;
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    text-align: center;
}

/* --------------------------------------------------------------------------
   3. FONDO DECORATIVO
   -------------------------------------------------------------------------- */
.bg-pattern {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background:
        repeating-linear-gradient(45deg,
            transparent 0 22px,
            rgba(255, 255, 255, .022) 22px 44px);
}

.watermark-container {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200vw;
    height: 200vh;
    z-index: -2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: .04;
    pointer-events: none;
}

.watermark {
    flex-shrink: 0;
    color: var(--white);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.5;
    text-align: center;
    white-space: pre-wrap;
    animation: scrollBg 100s linear infinite;
}

@keyframes scrollBg {
    from {
        transform: translate(-5%, 0%);
    }

    to {
        transform: translate(5%, -50%);
    }
}

/* --------------------------------------------------------------------------
   4. ANIMACIÓN BASE
   -------------------------------------------------------------------------- */
.fade-in {
    animation: smoothFadeIn .6s var(--ease) forwards;
}

@keyframes smoothFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------------------------------------
   5. SIDEBAR IZQUIERDO
   -------------------------------------------------------------------------- */
.left-sidebar {
    position: fixed;
    top: 20px;
    bottom: 20px;
    left: 40px;
    z-index: 5;
    width: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: opacity var(--t-slow) ease;
}

.glass-widget {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 18px 20px;
    border: 1px solid var(--glass-border);
    border-radius: var(--r-lg);
    background:
        linear-gradient(150deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .028));
    box-shadow:
        inset 0 1px 0 var(--glass-hi),
        0 10px 26px rgba(0, 16, 48, .18);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    transition: border-color var(--t-mid) ease, box-shadow var(--t-mid) ease;
}

.glass-widget:hover {
    border-color: rgba(97, 187, 70, .30);
    box-shadow:
        inset 0 1px 0 var(--glass-hi),
        0 14px 34px rgba(0, 16, 48, .24);
}

.widget-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--ib-verde);
    font-size: .70rem;
    font-weight: 800;
    letter-spacing: 1.9px;
    text-transform: uppercase;
}

.widget-header::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--ib-verde);
    box-shadow: 0 0 10px var(--ib-verde);
    animation: dotBeat 2.4s ease-in-out infinite;
}

@keyframes dotBeat {

    0%,
    100% {
        opacity: .6;
        transform: scale(.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

/* ---- Reloj / clima ---- */
.widget-clock {
    padding: 15px 20px;
}

.weather-date-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--white);
}

.wd-left {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wd-time {
    display: flex;
    align-items: baseline;
    gap: 3px;
    color: var(--white);
    font-size: 1.6rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.5px;
}

.wd-ampm {
    font-size: .65em;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: lowercase;
    opacity: .75;
}

.wd-date {
    color: #cbd5e1;
    font-size: .75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.wd-weather {
    min-width: 145px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    color: var(--white);
}

.wd-weather-main {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.wd-weather-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 8px rgba(97, 187, 70, .25));
}

.wd-weather-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.wd-temp {
    color: var(--white);
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.5px;
    white-space: nowrap;
}

.wd-weather-status {
    width: 100%;
    min-height: 12px;
    margin-top: 3px;
    overflow: hidden;
    color: #cbd5e1;
    font-size: .58rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: .5px;
    text-align: right;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.wd-weather.is-refreshing {
    opacity: .92;
}

.wd-weather.is-refreshing .wd-weather-icon {
    filter: drop-shadow(0 0 10px rgba(97, 187, 70, .38));
}

.wd-weather.weather-updated .wd-weather-main,
.wd-weather.weather-updated .wd-weather-status {
    animation: climaActualizadoCH .35s ease;
}

@keyframes climaActualizadoCH {
    from {
        opacity: .55;
    }

    to {
        opacity: 1;
    }
}

/* ---- Tipo de cambio ---- */
.exchange-widget {
    min-height: 128px;
    justify-content: center;
}

.exchange-widget-header {
    gap: 12px;
    justify-content: space-between;
}

.exchange-widget-header::before {
    flex: 0 0 7px;
}

.exchange-widget-header>span:first-of-type {
    flex: 1;
}

.exchange-date {
    color: var(--muted-2);
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: none;
    white-space: nowrap;
}

.exchange-grid {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(94px, 1.15fr) minmax(78px, 1fr) minmax(78px, 1fr);
    align-items: stretch;
    gap: 8px;
    color: var(--white);
    text-align: center;
}

.ex-header {
    min-height: 23px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-2);
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.ex-currency {
    min-width: 0;
    min-height: 38px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-around;
    gap: 9px;
    padding: 5px 4px;
    color: var(--white);
}

.exchange-currency-badge {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(97, 187, 70, .42);
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(97, 187, 70, .26), rgba(0, 135, 56, .08));
    color: var(--ib-verde);
    font-size: .95rem;
    font-weight: 800;
    line-height: 1;
    box-shadow:
        0 0 10px rgba(97, 187, 70, .14),
        inset 0 1px 0 rgba(255, 255, 255, .10);
}

.exchange-currency-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1px;
    line-height: 1;
}

.exchange-currency-name {
    color: var(--white);
    font-size: .81rem;
    font-weight: 700;
    letter-spacing: .1px;
    white-space: nowrap;
}

.exchange-currency-code {
    color: var(--muted-2);
    font-size: .54rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

.ex-value {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    background: rgba(0, 0, 0, .20);
    color: var(--ib-verde-claro);
    font-size: .93rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    transition:
        color var(--t-fast) ease,
        border-color var(--t-fast) ease,
        background-color var(--t-fast) ease,
        opacity var(--t-fast) ease;
}

.ex-value.exchange-updated {
    animation: exchangeUpdatedCH .38s ease;
}

@keyframes exchangeUpdatedCH {
    from {
        opacity: .45;
        border-color: rgba(97, 187, 70, .5);
        background: rgba(97, 187, 70, .14);
    }

    to {
        opacity: 1;
        border-color: rgba(255, 255, 255, .08);
        background: rgba(0, 0, 0, .20);
    }
}

/* --------------------------------------------------------------------------
   6. DÍAS ESPECIALES
   -------------------------------------------------------------------------- */
.special-days-widget {
    position: relative;
    flex: 0 0 auto;
    min-height: 0;
    padding: 14px 16px 15px;
    overflow: visible;
}

.special-days-header {
    margin-bottom: 8px;
}

.special-days-grid {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 9px;
}

.special-day-card {
    --special-event-background: linear-gradient(145deg, #e2e8f0, #cbd5e1);
    --special-event-gate: linear-gradient(155deg, #cbd5e1, #94a3b8);
    --special-event-text: #1e293b;
    --special-event-muted-text: #475569;
    --special-event-gate-text: #1e293b;
    --special-event-gate-muted-text: #475569;
    --special-event-line: rgba(255, 255, 255, .88);
    --special-event-glow: rgba(255, 255, 255, .30);

    position: relative;
    min-width: 0;
    height: 76px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: var(--r-sm);
    background: linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025));
    color: var(--white);
    cursor: default;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
    transition:
        border-color var(--t-fast) ease,
        box-shadow var(--t-fast) ease,
        transform var(--t-fast) ease,
        background var(--t-mid) ease;
}

.special-day-card:hover,
.special-day-card:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(97, 187, 70, .42);
    box-shadow:
        0 8px 20px rgba(0, 20, 60, .20),
        inset 0 1px 0 rgba(255, 255, 255, .06);
}

.special-day-content {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 58px;
    align-items: stretch;
    gap: 8px;
    padding: 8px 9px;
    transition:
        opacity .24s ease,
        transform .34s var(--ease);
}

.special-day-summary {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 2px 0;
}

.special-day-category {
    width: 100%;
    overflow: hidden;
    color: var(--muted-2);
    font-size: .50rem;
    font-weight: 800;
    letter-spacing: .55px;
    line-height: 1.1;
    text-align: left;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.special-day-remaining {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    line-height: 1;
}

.special-day-remaining-number {
    padding: .4em 0;
    color: var(--white);
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -.7px;
    line-height: .95;
    font-variant-numeric: tabular-nums;
}

.special-day-remaining-label {
    margin-top: 3px;
    color: var(--ib-verde);
    font-size: .49rem;
    font-weight: 800;
    letter-spacing: .7px;
    line-height: 1;
    text-transform: uppercase;
}

.special-day-calendar {
    position: relative;
    min-width: 0;
    height: 100%;
    display: grid;
    grid-template-rows: minmax(0, 1fr) 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 9px;
    background: rgba(0, 0, 0, .17);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.special-day-calendar-number {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 1px;
    color: var(--white);
    font-size: 1.58rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.special-day-calendar-month {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .07);
    color: #cbd5e1;
    font-size: .5rem;
    font-weight: 800;
    letter-spacing: .4px;
    line-height: 1;
    text-overflow: ellipsis;
    text-transform: capitalize;
    white-space: nowrap;
}

.special-day-today-visual {
    display: none;
}

.special-day-gate {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 9px 11px;
    border-radius: inherit;
    background: var(--special-event-gate) !important;
    color: var(--special-event-gate-text) !important;
    box-shadow:
        inset 0 1px 0 var(--special-event-glow),
        inset 0 -1px 0 rgba(0, 0, 0, .08),
        0 5px 14px rgba(0, 0, 0, .16);
    opacity: 0;
    transform: translateY(-102%);
    pointer-events: none;
    transition:
        transform .38s var(--ease),
        opacity .18s ease;
}

.special-day-gate::before {
    content: "";
    position: absolute;
    top: 0;
    left: 18%;
    width: 64%;
    height: 2px;
    border-radius: 0 0 5px 5px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .92), transparent) !important;
    box-shadow: 0 0 7px rgba(255, 255, 255, .30) !important;
    opacity: .72;
}

.special-day-card:hover .special-day-gate,
.special-day-card:focus .special-day-gate,
.special-day-card:focus-visible .special-day-gate {
    opacity: 1;
    transform: translateY(0);
}

.special-day-card:hover .special-day-content,
.special-day-card:focus .special-day-content,
.special-day-card:focus-visible .special-day-content {
    opacity: .12;
    transform: translateY(8px);
}

.special-day-gate-label {
    margin-bottom: 5px;
    color: var(--special-event-gate-muted-text) !important;
    font-size: .48rem;
    font-weight: 800;
    letter-spacing: .9px;
    line-height: 1;
    text-transform: uppercase;
    opacity: 1;
}

.special-day-gate-name {
    display: -webkit-box;
    width: 100%;
    max-height: 34px;
    overflow: hidden;
    color: var(--special-event-gate-text) !important;
    font-size: .70rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

/* ---- Estado "hoy" ---- */
.special-day-card.is-today {
    border-color: rgba(255, 255, 255, .52);
    background: var(--special-event-background) !important;
    color: var(--special-event-text) !important;
    box-shadow:
        0 9px 23px rgba(0, 20, 60, .18),
        inset 0 1px 0 rgba(255, 255, 255, .48);
}

.special-day-card.is-today .special-day-summary,
.special-day-card.is-today .special-day-calendar {
    opacity: 0;
    visibility: hidden;
}

.special-day-card.is-today .special-day-today-visual {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    pointer-events: none;
}

.special-day-card.is-today .special-day-today-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
    font-size: 2.25rem;
    line-height: 1;
    filter: drop-shadow(0 5px 7px rgba(0, 0, 0, .18));
    animation: specialTodayEmoji 2.2s ease-in-out infinite;
}

.special-day-card.is-today .special-day-category,
.special-day-card.is-today .special-day-remaining-number,
.special-day-card.is-today .special-day-calendar-number {
    color: var(--special-event-text) !important;
}

.special-day-card.is-today .special-day-remaining-label,
.special-day-card.is-today .special-day-calendar-month {
    color: var(--special-event-muted-text) !important;
}

.special-day-card.is-today .special-day-gate {
    background: var(--special-event-gate) !important;
    color: var(--special-event-gate-text) !important;
}

@keyframes specialTodayEmoji {

    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    50% {
        transform: translateY(-3px) rotate(-3deg) scale(1.08);
    }
}

/* --------------------------------------------------------------------------
   7. NOTICIAS
   -------------------------------------------------------------------------- */
.news-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.news-list {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 2px;
    overflow-y: auto;
}

.news-placeholder {
    color: var(--muted-2);
    font-size: .82rem;
    font-weight: 600;
}

.news-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-left: 3px solid transparent;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, .06);
    color: var(--white);
    text-decoration: none;
    transition:
        background var(--t-fast) ease,
        border-color var(--t-fast) ease,
        transform var(--t-fast) ease;
}

.news-item:hover,
.news-item:focus-visible {
    transform: translateX(4px);
    border-color: rgba(97, 187, 70, .45);
    border-left-color: var(--ib-verde);
    background: rgba(255, 255, 255, .12);
}

.news-item-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

.news-item-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--white);
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.news-item-meta {
    display: flex;
    justify-content: space-between;
    color: #cbd5e1;
    font-size: .68rem;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   8. TARJETA DE LOGIN
   -------------------------------------------------------------------------- */
.login-card {
    position: relative;
    z-index: 10;
    width: var(--card-w);
    height: var(--card-h);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: var(--r-xl);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, .96), rgba(240, 246, 253, .92));
    color: var(--ink-2);
    text-align: center;
    box-shadow:
        var(--sh-lg),
        inset 0 1px 0 rgba(255, 255, 255, .9);
    backdrop-filter: blur(22px) saturate(130%);
    -webkit-backdrop-filter: blur(22px) saturate(130%);
    transition:
        width .4s var(--ease-io),
        height .4s var(--ease-io),
        border-radius .4s ease;
}

.login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1em;
    background: linear-gradient(104deg, var(--ib-azul), var(--ib-verde));
    pointer-events: none;
}

.login-card.compact {
    width: var(--card-w) !important;
    height: var(--card-h) !important;
}

.card-view {
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-view.active {
    display: flex;
    animation: smoothFadeIn .5s var(--ease) forwards;
}

.brand-container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 24px;
}

.login-card.compact .brand-container {
    flex-direction: row;
    flex-wrap: nowrap;
}

.logo {
    width: 116px;
    margin-bottom: 4px;
    filter: drop-shadow(0 6px 10px rgba(0, 48, 135, .18));
    transition: width .4s ease, margin .4s ease;
}

.login-card.compact .logo {
    width: 45px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.subtitle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 26px;
    transition: all .4s ease;
}

.subtitle-main {
    color: #334155;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.subtitle-tag {
    padding: 3px 10px;
    border: 1px solid rgba(97, 187, 70, .35);
    border-radius: var(--r-pill);
    background: rgba(97, 187, 70, .10);
    color: var(--ib-verde-oscuro);
    font-size: .55rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.login-card.compact .subtitle {
    align-items: flex-start;
    margin-bottom: 0;
    text-align: left;
}

.login-card.compact .subtitle-main {
    font-size: .64rem;
    letter-spacing: 2px;
}

/* ---- Inputs ---- */
input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid transparent;
    border-radius: var(--r-sm);
    background: rgba(0, 48, 135, .05);
    color: var(--ink-2);
    font-family: inherit;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    outline: none;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

input::placeholder {
    color: var(--muted-2);
    font-weight: 500;
    letter-spacing: 1.5px;
}

input:focus {
    transform: translateY(-2px);
    border-color: var(--ib-verde);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(97, 187, 70, .16);
}

/* ---- Usuario confirmado ---- */
.user-display-wrapper {
    width: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 5px;
}

.user-display-wrapper.show {
    display: flex;
}

.edit-user-btn {
    flex-shrink: 0;
    color: var(--ib-azul);
    cursor: pointer;
    transition: transform var(--t-fast) ease, color var(--t-fast) ease;
}

.edit-user-btn:hover {
    transform: rotate(-8deg) scale(1.12);
    color: var(--ib-verde-oscuro);
}

.user-display-container {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border: 2px solid var(--ib-verde);
    border-radius: var(--r-sm);
    background: rgba(97, 187, 70, .08);
}

.user-display-text {
    color: var(--ink-2);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 1px;
}

/* ---- PIN ---- */
.pin-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
    margin-bottom: 15px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-15px);
    transition: all .4s var(--ease);
}

.pin-container.show {
    max-height: 140px;
    overflow: visible;
    opacity: 1;
    transform: translateY(0);
}

.pin-digit {
    width: 55px;
    height: 55px;
    padding: 0;
    margin: 0;
    border: 2px solid transparent;
    border-radius: var(--r-sm);
    background: rgba(0, 48, 135, .05);
    color: var(--ink-2);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0;
    text-align: center;
    outline: none;
    -webkit-text-security: disc;
    transition: all .3s ease;
}

.pin-digit:focus {
    transform: translateY(-2px);
    border-color: var(--ib-verde);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(97, 187, 70, .16);
}

.pin-digit.filled {
    background: var(--white);
    animation: borderWorm 1.2s ease forwards;
}

.pin-digit::-ms-reveal,
.pin-digit::-ms-clear {
    display: none !important;
}

@keyframes borderWorm {
    0% {
        border-color: var(--ib-verde);
        box-shadow: 0 0 4px rgba(97, 187, 70, .5);
    }

    50% {
        border-color: var(--ib-azul);
        box-shadow: 0 0 8px rgba(0, 48, 135, .6);
    }

    100% {
        border-color: var(--ib-verde);
        box-shadow: 0 0 4px rgba(97, 187, 70, .5);
    }
}

/* ---- Botón de autenticación ---- */
.btn-auth-container {
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-15px);
    transition: all .4s var(--ease);
}

.btn-auth-container.show {
    margin-top: 15px;
    max-height: 80px;
    overflow: visible;
    opacity: 1;
    transform: translateY(0);
}

.btn-auth {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ib-verde) 0%, var(--ib-verde-oscuro) 100%);
    color: var(--white);
    cursor: pointer;
    box-shadow:
        0 10px 22px rgba(0, 135, 56, .32),
        inset 0 1px 0 rgba(255, 255, 255, .22);
    transition: all .4s cubic-bezier(.25, .8, .25, 1);
}

.btn-auth svg {
    width: 28px;
    height: 28px;
    fill: var(--white);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .15));
    transition: transform .3s ease;
}

.btn-auth::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .4), transparent);
    transform: skewX(-20deg);
    transition: left .6s ease;
}

.btn-auth:hover {
    background: linear-gradient(135deg, var(--ib-azul) 0%, var(--ib-azul-900) 100%);
    box-shadow:
        0 12px 26px rgba(0, 48, 135, .38),
        inset 0 1px 0 rgba(255, 255, 255, .3);
}

.btn-auth:hover svg {
    transform: scale(1.1);
}

.btn-auth:hover::before {
    left: 150%;
}

.btn-auth:active {
    transform: scale(.96);
}

.btn-auth.validating {
    background: var(--ib-verde-oscuro);
    pointer-events: none;
    animation: pulseValidate .8s infinite !important;
}

@keyframes pulseValidate {
    0% {
        transform: scale(1);
        box-shadow: 0 8px 20px rgba(0, 169, 79, .3);
    }

    50% {
        transform: scale(.85);
        box-shadow: 0 2px 10px rgba(0, 169, 79, .2);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 8px 20px rgba(0, 169, 79, .3);
    }
}

/* ---- Vista emojis ---- */
.view-title {
    margin: 0 0 4px;
    color: var(--ib-azul);
    font-size: 1.3rem;
    font-weight: 800;
}

.view-subtitle {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: .92rem;
    font-weight: 600;
}

.emoji-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 15px;
}

.emoji-btn {
    padding: 12px 0;
    border: 2px solid var(--line);
    border-radius: var(--r-sm);
    background: #f8fafc;
    font-size: 2.1rem;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 20, 60, .05);
    transition: all .25s ease;
}

.emoji-btn:hover,
.emoji-btn:focus-visible {
    transform: translateY(-3px) scale(1.05);
    border-color: var(--ib-verde);
    background: var(--white);
    box-shadow: 0 8px 16px rgba(97, 187, 70, .18);
}

/* ---- Loader interno ---- */
.inline-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
}

.inline-loader-text {
    margin-top: 20px;
    color: var(--ib-azul);
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.a-loader__spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.a-loader__spinner::before,
.a-loader__spinner::after {
    content: "";
    position: absolute;
    z-index: 1;
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #00bb31;
    opacity: .7;
    will-change: transform, top, left, right, bottom;
}

.a-loader__spinner::before {
    top: 10px;
    right: 10px;
    animation: box1 1.8s linear infinite;
}

.a-loader__spinner::after {
    bottom: 10px;
    left: 10px;
    animation: box2 1.8s linear infinite;
}

.a-loader__logo {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 64px;
    height: 64px;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 320"><mask id="recorte-negativo"><path d="M50.4 10.91c-21.99 0-39.78 17.91-39.78 40.01V309h258.31c22 0 39.83-17.91 39.83-40l.04-258.1H50.4z" fill="%23ffffff"/><path d="M239.13 226.06L80.22 254.78V94.4l158.91-28.71z" fill="%23000000"/></mask><path d="M50.4 10.91c-21.99 0-39.78 17.91-39.78 40.01V309h258.31c22 0 39.83-17.91 39.83-40l.04-258.1H50.4z" fill="%2300a94f" mask="url(%23recorte-negativo)"/></svg>');
    transform: translate(-50%, -50%) scale(0);
    animation: logo 1.8s infinite;
}

@keyframes box1 {
    0% {
        transform: scale(0);
        opacity: .7;
    }

    15% {
        top: 10px;
        transform: scale(1);
        opacity: .7;
    }

    25% {
        top: 30px;
        right: 10px;
        transform: rotate(0);
        opacity: .7;
    }

    30% {
        top: 30px;
        right: 16.666px;
        transform: rotate(-90deg);
        opacity: .7;
    }

    30.01% {
        top: 30px;
        right: 16.666px;
        transform: rotate(0);
        opacity: .7;
    }

    35% {
        top: 30px;
        right: 23.333px;
        transform: rotate(-90deg);
        opacity: .7;
    }

    35.01% {
        top: 30px;
        right: 23.333px;
        transform: rotate(0);
        opacity: .7;
    }

    40% {
        top: 30px;
        right: 30px;
        transform: rotate(-90deg);
        opacity: .7;
    }

    48% {
        opacity: .7;
    }

    50%,
    100% {
        top: 20px;
        right: 20px;
        transform: rotate(-90deg);
        opacity: 0;
    }
}

@keyframes box2 {
    0% {
        transform: scale(0);
        opacity: .7;
    }

    15% {
        bottom: 10px;
        transform: scale(1);
        opacity: .7;
    }

    25% {
        bottom: 30px;
        left: 10px;
        transform: rotate(0);
        opacity: .7;
    }

    30% {
        bottom: 30px;
        left: 16.666px;
        transform: rotate(-90deg);
        opacity: .7;
    }

    30.01% {
        bottom: 30px;
        left: 16.666px;
        transform: rotate(0);
        opacity: .7;
    }

    35% {
        bottom: 30px;
        left: 23.333px;
        transform: rotate(-90deg);
        opacity: .7;
    }

    35.01% {
        bottom: 30px;
        left: 23.333px;
        transform: rotate(0);
        opacity: .7;
    }

    40% {
        bottom: 30px;
        left: 30px;
        transform: rotate(-90deg);
        opacity: .7;
    }

    48% {
        opacity: .7;
    }

    50%,
    100% {
        bottom: 20px;
        left: 20px;
        transform: rotate(-90deg);
        opacity: 0;
    }
}

@keyframes logo {

    0%,
    50% {
        transform: translate(-50%, -50%) scale(0);
    }

    65% {
        transform: translate(-50%, -50%) scale(1);
    }

    75%,
    100% {
        transform: translate(-50%, -50%) scale(.9);
    }
}

/* ---- Vista bienvenida (dentro de card) ---- */
.card-greet-time {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.card-greet-name {
    margin: 6px 0;
    color: var(--ib-azul);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.card-greet-sub {
    margin: 0;
    color: var(--ib-verde-oscuro);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ---- Estados expandidos (controlados por JS) ---- */
.login-card.step-fixed {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) !important;
}

.login-card.expand-width {
    width: 100vw !important;
    border-radius: 0 !important;
}

.login-card.expand-height {
    height: 100vh !important;
    height: 100dvh !important;
}

.login-card.expand-full {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 900;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: var(--white) !important;
    box-shadow: none !important;
}

.login-card.expand-full::before {
    display: none;
}

/* --------------------------------------------------------------------------
   9. PANTALLA DE SALUDO
   -------------------------------------------------------------------------- */
#greeting-screen {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    text-align: center;
    background:
        radial-gradient(circle at 50% 40%, rgba(97, 187, 70, .16), rgba(0, 48, 135, .90) 55%, rgba(0, 22, 64, .97) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    transition: opacity .5s ease;
}

.greeting-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px) scale(.95);
    transition: all .8s var(--ease);
}

.greeting-content.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#greet-time {
    margin: 0;
    color: #a9bbd6;
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
}

#greet-name {
    margin: 6px 0;
    color: var(--white);
    font-size: clamp(2.6rem, 8vw, 5rem);
    font-weight: 800;
    letter-spacing: -2px;
    text-shadow: 0 12px 34px rgba(97, 187, 70, .28);
}

.greet-subtitle {
    margin: 0;
    color: var(--ib-verde);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.premium-loader-container {
    width: 250px;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.premium-loader-text {
    margin-bottom: 10px;
    color: #cbd5e1;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: pulseText 2s infinite;
}

.premium-loader-track {
    position: relative;
    width: 100%;
    height: 5px;
    overflow: hidden;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .12);
}

.premium-loader-bar {
    width: 0%;
    height: 100%;
    border-radius: var(--r-pill);
    background: linear-gradient(90deg, var(--ib-verde-oscuro), var(--ib-verde));
    box-shadow: 0 0 15px var(--ib-verde);
    transition: width 2.5s var(--ease);
}

@keyframes pulseText {

    0%,
    100% {
        opacity: .6;
    }

    50% {
        opacity: 1;
    }
}

/* --------------------------------------------------------------------------
   10. TRANSICIÓN DE FRANJAS
   -------------------------------------------------------------------------- */
#stripes-container {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.stripe {
    flex: 1;
    background: var(--ib-verde);
    transform: scaleY(0);
    transition: transform .7s var(--ease-io);
}

.stripe.top {
    transform-origin: top;
    background: linear-gradient(180deg, var(--ib-verde), var(--ib-verde-oscuro));
}

.stripe.bottom {
    transform-origin: bottom;
    background: linear-gradient(0deg, var(--ib-verde), var(--ib-verde-oscuro));
    transition-delay: .1s;
}

.stripe.active {
    transform: scaleY(1);
}

/* --------------------------------------------------------------------------
   11. APP CONTENT
   -------------------------------------------------------------------------- */
#app-content {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 9500;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    display: none;
    padding: 0 !important;
    margin: 0 !important;
    overflow: auto;
    background: #fff;
    color: #333;
    animation: smoothFadeIn .8s ease forwards;
}

/* --------------------------------------------------------------------------
   12. NOTIFICACIÓN
   -------------------------------------------------------------------------- */
#notification-screen {
    position: fixed;
    inset: 0;
    z-index: 8500;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background:
        radial-gradient(circle at 50% 30%, rgba(97, 187, 70, .22), rgba(0, 48, 135, .92) 58%, rgba(0, 22, 64, .97) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.noti-card {
    width: 90%;
    max-width: 750px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 30px;
    border-top: 5px solid var(--ib-verde);
    border-radius: var(--r-xl);
    background: var(--white);
    color: #333;
    text-align: center;
    box-shadow: var(--sh-xl);
    animation: smoothFadeIn .45s var(--ease) forwards;
}

.noti-card h2 {
    flex-shrink: 0;
    margin: 0 0 20px;
    color: var(--ib-azul);
    font-size: 1.5rem;
    font-weight: 800;
}

.noti-body {
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 25px;
    padding-right: 6px;
    overflow-y: auto;
    text-align: left;
}

.noti-card img {
    width: 220px;
    flex-shrink: 0;
    display: none;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    object-fit: contain;
}

.noti-text-container {
    flex-grow: 1;
    color: #475569;
    font-size: .95rem;
    font-weight: 500;
    line-height: 1.65;
}

.btn-primary-wide {
    flex-shrink: 0;
    width: auto;
    margin-top: auto;
    padding: 15px 32px;
    border: 0;
    border-radius: var(--r-sm);
    background: linear-gradient(135deg, var(--ib-azul), var(--ib-azul-900));
    color: var(--white);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(0, 48, 135, .26);
    transition: transform var(--t-fast) ease, background var(--t-fast) ease, box-shadow var(--t-fast) ease;
}

.btn-primary-wide:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--ib-verde-oscuro), var(--ib-verde));
    box-shadow: 0 14px 30px rgba(0, 135, 56, .3);
}

.btn-primary-wide:active {
    transform: translateY(0);
}

@media (max-width: 650px) {
    .noti-body {
        flex-direction: column;
        align-items: center;
    }

    .noti-card img {
        width: 100%;
        max-width: 300px;
    }
}

/* --------------------------------------------------------------------------
   13. PANTALLA DE TIMEOUT
   -------------------------------------------------------------------------- */
#timeout-screen {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 30px;
    background:
        radial-gradient(circle at 50% 38%,
            rgba(97, 187, 70, .17) 0%,
            rgba(0, 48, 135, .88) 42%,
            rgba(0, 24, 72, .99) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

#timeout-screen.timeout-visible {
    display: flex;
    animation: timeoutScreenAppear .4s ease forwards;
}

@keyframes timeoutScreenAppear {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.timeout-modal-wrapper {
    position: relative;
    width: min(390px, calc(100vw - 34px));
    max-width: 390px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    isolation: isolate;
    animation: timeoutModalAppear .65s var(--ease) forwards;
}

@keyframes timeoutModalAppear {
    from {
        opacity: 0;
        transform: translateY(28px) scale(.94);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.timeout-visual {
    position: absolute;
    top: -78px;
    left: 50%;
    z-index: 5;
    width: 156px;
    height: 156px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    pointer-events: none;
}

.timeout-visual::before {
    content: "";
    position: absolute;
    inset: 13px;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(97, 187, 70, .24), rgba(97, 187, 70, 0) 70%);
    filter: blur(4px);
    transform: scale(1.18);
}

.timeout-icon {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
}

.timeout-icon.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.timeout-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.timeout-card-premium {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 410px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 30px 28px;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 28px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .99), rgba(242, 247, 252, .96));
    color: var(--ink-2);
    text-align: center;
    box-shadow:
        0 32px 85px rgba(0, 18, 60, .48),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.timeout-card-shine {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
}

.timeout-card-shine::before {
    content: "";
    position: absolute;
    top: -130px;
    left: 50%;
    width: 270px;
    height: 270px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(97, 187, 70, .15), rgba(97, 187, 70, 0) 72%);
    transform: translateX(-50%);
}

.timeout-icon-space {
    width: 100%;
    height: 90px;
    flex: 0 0 90px;
}

.timeout-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0 0 12px;
    padding: 6px 12px;
    border: 1px solid rgba(0, 135, 56, .16);
    border-radius: var(--r-pill);
    background: rgba(97, 187, 70, .09);
    color: var(--ib-verde-oscuro);
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .8px;
    line-height: 1;
    text-transform: uppercase;
}

.timeout-status-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: var(--ib-verde);
    box-shadow: 0 0 9px rgba(97, 187, 70, .78);
    animation: timeoutDotPulse 1.7s ease-in-out infinite;
}

@keyframes timeoutDotPulse {

    0%,
    100% {
        opacity: .55;
        transform: scale(.85);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.timeout-card-premium #timeout-title {
    margin: 0 0 10px;
    color: var(--ib-azul);
    font-family: inherit;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.4px;
}

.timeout-card-premium #timeout-message {
    width: 100%;
    max-width: 315px;
    margin: 0;
    color: var(--muted);
    font-size: .89rem;
    font-weight: 500;
    line-height: 1.55;
}

.timeout-card-premium #timeout-message strong {
    color: #334155;
    font-weight: 800;
}

.timeout-divider {
    width: 100%;
    height: 1px;
    margin: 22px 0 18px;
    background: linear-gradient(90deg, transparent, #dbe4ee, transparent);
}

.timeout-reload-button {
    position: relative;
    min-width: 225px;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 22px;
    overflow: hidden;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--ib-azul), var(--ib-azul-900));
    color: var(--white);
    font-family: inherit;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .8px;
    cursor: pointer;
    box-shadow: 0 11px 24px rgba(0, 48, 135, .26);
    transition:
        transform .22s ease,
        box-shadow .22s ease,
        background .22s ease;
}

.timeout-reload-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 45%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .34), transparent);
    transform: skewX(-20deg);
    transition: left .55s ease;
}

.timeout-reload-button:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--ib-verde-oscuro), var(--ib-verde));
    box-shadow: 0 14px 28px rgba(0, 135, 56, .3);
}

.timeout-reload-button:hover::before {
    left: 135%;
}

.timeout-reload-button:active {
    transform: translateY(0);
}

.timeout-reload-button:disabled {
    opacity: .68;
    cursor: wait;
    transform: none;
}

.timeout-reload-button svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.timeout-reload-button:hover svg {
    animation: timeoutReloadTurn .65s ease;
}

@keyframes timeoutReloadTurn {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.timeout-security-note {
    margin-top: 13px;
    color: var(--muted-2);
    font-size: .62rem;
    font-weight: 600;
}

/* ---- Animaciones SVG timeout ---- */
.timeout-icon-max.active {
    animation: safeIconAppear .45s var(--ease) forwards;
}

.timeout-icon-idle.active {
    animation: clockIconAppear .45s var(--ease) forwards;
}

.safe-door {
    transform-box: fill-box;
    transform-origin: left center;
    animation: safeDoorClose 1.15s var(--ease) forwards;
}

.safe-handle {
    transform-box: view-box;
    transform-origin: 87px 81px;
    animation: safeHandleRotate 2.6s cubic-bezier(.45, 0, .2, 1) forwards;
}

.safe-lock-indicator {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    animation: safeLockConfirm .45s ease 2.18s forwards;
}

@keyframes safeIconAppear {
    from {
        opacity: 0;
        transform: translateY(15px) scale(.76);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes safeDoorClose {
    0% {
        transform: perspective(320px) rotateY(-28deg);
    }

    72% {
        transform: perspective(320px) rotateY(3deg);
    }

    100% {
        transform: perspective(320px) rotateY(0deg);
    }
}

@keyframes safeHandleRotate {
    0% {
        transform: rotate(0deg);
    }

    28% {
        transform: rotate(135deg);
    }

    55% {
        transform: rotate(280deg);
    }

    82% {
        transform: rotate(410deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes safeLockConfirm {
    from {
        opacity: 0;
        transform: scale(.35);
    }

    70% {
        opacity: 1;
        transform: scale(1.22);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.clock-minute-hand,
.clock-hour-hand {
    transform-box: view-box;
    transform-origin: 90px 82px;
}

.clock-minute-hand {
    animation: clockMinuteFinish 2.6s cubic-bezier(.38, 0, .2, 1) forwards;
}

.clock-hour-hand {
    animation: clockHourFinish 2.6s cubic-bezier(.38, 0, .2, 1) forwards;
}

.clock-pulse {
    opacity: 0;
    transform-box: view-box;
    transform-origin: 90px 82px;
    animation: clockFinishedPulse 1.1s ease 2.35s forwards;
}

@keyframes clockIconAppear {
    from {
        opacity: 0;
        transform: translateY(15px) scale(.76);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes clockMinuteFinish {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(1080deg);
    }
}

@keyframes clockHourFinish {
    from {
        transform: rotate(-120deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes clockFinishedPulse {
    0% {
        opacity: 0;
        transform: scale(.82);
    }

    45% {
        opacity: .72;
    }

    100% {
        opacity: 0;
        transform: scale(1.22);
    }
}

/* --------------------------------------------------------------------------
   14. SESIÓN ACTIVA
   -------------------------------------------------------------------------- */
body.session-active #left-sidebar,
body.session-active .watermark-container,
body.session-active .bg-glow {
    display: none !important;
}

/* --------------------------------------------------------------------------
   15. RESPONSIVE · ESCRITORIO
   -------------------------------------------------------------------------- */
@media screen and (min-width: 1051px) {
    body {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 0 clamp(40px, 6vw, 90px) 0 0;
        overflow: hidden;
    }

    body>#left-sidebar {
        position: fixed;
        top: 20px;
        right: auto;
        bottom: 20px;
        left: clamp(20px, 3vw, 40px);
        z-index: 5;
        width: var(--sidebar-w);
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 14px;
        padding: 0;
        overflow: visible;
        opacity: 1;
        visibility: visible;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    body>#left-sidebar>.glass-widget {
        width: 100%;
        flex-shrink: 0;
    }

    body>#left-sidebar>.news-wrapper {
        display: flex;
        flex: 1 1 auto;
        min-height: 0;
    }

    body>#login-container {
        position: relative;
        inset: auto;
        width: var(--card-w);
        height: var(--card-h);
        margin: 0;
        flex: 0 0 auto;
    }
}

/* --------------------------------------------------------------------------
   16. RESPONSIVE · TABLET / MÓVIL
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1050px) {

    html,
    body {
        width: 100%;
        height: 100%;
        min-height: 100dvh;
        overflow: hidden;
    }

    body {
        position: relative;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: calc(142px + env(safe-area-inset-top)) 12px 12px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    body>#left-sidebar.left-sidebar {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        left: 0 !important;
        z-index: 11000 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: calc(130px + env(safe-area-inset-top)) !important;
        min-height: calc(130px + env(safe-area-inset-top)) !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        padding: calc(8px + env(safe-area-inset-top)) 10px 8px !important;
        margin: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        opacity: 1 !important;
        visibility: visible !important;
        border-bottom: 1px solid rgba(255, 255, 255, .16);
        background: linear-gradient(180deg, rgba(0, 35, 104, .99), rgba(0, 48, 135, .97)) !important;
        box-shadow: 0 10px 30px rgba(0, 20, 60, .38);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        scroll-snap-type: x proximity;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        transform: none !important;
        animation: none !important;
    }

    body>#left-sidebar::-webkit-scrollbar {
        height: 0;
        display: none;
    }

    body>#left-sidebar>.glass-widget {
        position: relative !important;
        width: auto;
        height: 110px !important;
        min-height: 110px !important;
        max-height: 110px !important;
        flex: 0 0 auto !important;
        display: flex !important;
        padding: 11px 13px !important;
        margin: 0 !important;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, .15);
        border-radius: 15px;
        background: linear-gradient(145deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .035));
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
        scroll-snap-align: start;
    }

    body>#left-sidebar>.glass-widget:first-child {
        width: 240px !important;
        min-width: 240px !important;
        justify-content: center !important;
    }

    .weather-date-container {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .wd-left {
        min-width: 0;
        flex: 1 1 auto;
    }

    .wd-time {
        font-size: 1.3rem;
        line-height: 1;
    }

    .wd-ampm {
        font-size: .28em;
    }

    .wd-date {
        max-width: 105px;
        margin-top: 5px;
        font-size: .62rem;
        line-height: 1.25;
        white-space: normal;
    }

    .wd-weather {
        min-width: 103px;
        flex: 0 0 103px;
    }

    .wd-weather-main {
        gap: 6px;
    }

    .wd-weather-icon {
        width: 32px;
        height: 32px;
        flex: 0 0 32px;
    }

    .wd-temp {
        font-size: 1.35rem;
    }

    .wd-weather-status {
        margin-top: 5px;
        font-size: .45rem;
    }

    body>#left-sidebar>#tipo-cambio-widget {
        width: 285px !important;
        min-width: 285px !important;
        justify-content: center;
    }

    .exchange-widget-header {
        min-height: 17px;
        gap: 5px;
        margin-bottom: 5px;
    }

    .exchange-widget-header>span:first-of-type {
        min-width: 0;
    }

    .exchange-date {
        font-size: .47rem;
    }

    .exchange-grid {
        grid-template-columns: 82px 1fr 1fr;
        gap: 5px;
    }

    .ex-header {
        min-height: 17px;
        font-size: .52rem;
    }

    .ex-currency {
        min-height: 33px;
        gap: 5px;
        padding: 2px;
    }

    .exchange-currency-badge {
        width: 25px;
        height: 25px;
        flex: 0 0 25px;
        font-size: .75rem;
    }

    .exchange-currency-name {
        font-size: .67rem;
    }

    .exchange-currency-code {
        font-size: .41rem;
    }

    .ex-value {
        min-height: 33px;
        padding: 4px 5px;
        font-size: .72rem;
    }

    body>#left-sidebar>#special-days-widget {
        width: 320px !important;
        min-width: 320px !important;
        height: 110px !important;
        min-height: 110px !important;
        max-height: 110px !important;
        display: flex !important;
        padding: 9px 11px !important;
    }

    .special-days-header {
        min-height: 16px;
        margin-bottom: 5px !important;
    }

    .special-days-grid {
        width: 100%;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 6px !important;
    }

    .special-day-card {
        height: 70px !important;
        min-height: 70px !important;
        border-radius: 10px;
    }

    .special-day-content {
        grid-template-columns: minmax(0, 1fr) 48px !important;
        gap: 5px !important;
        padding: 6px !important;
    }

    .special-day-summary {
        padding: 1px 0;
    }

    .special-day-category {
        font-size: .42rem;
        letter-spacing: .35px;
        line-height: 1.05;
        white-space: normal;
    }

    .special-day-remaining-number {
        padding: 0 0 2px;
        font-size: .93rem;
    }

    .special-day-remaining-label {
        margin-top: 0;
        font-size: .37rem;
        letter-spacing: .35px;
        line-height: 1.05;
        white-space: normal;
    }

    .special-day-calendar {
        grid-template-rows: minmax(0, 1fr) 17px;
        border-radius: 7px;
    }

    .special-day-calendar-number {
        font-size: 1.15rem;
    }

    .special-day-calendar-month {
        padding: 0 2px;
        font-size: .36rem;
        letter-spacing: .15px;
    }

    .special-day-gate {
        padding: 6px 7px !important;
    }

    .special-day-gate-label {
        margin-bottom: 3px;
        font-size: .38rem;
    }

    .special-day-gate-name {
        font-size: .57rem;
    }

    body>#left-sidebar>.news-wrapper {
        display: none !important;
    }

    body>#login-container.login-card {
        position: relative !important;
        inset: auto !important;
        z-index: 10 !important;
        width: min(360px, calc(100vw - 24px)) !important;
        height: min(448px, calc(100dvh - 160px)) !important;
        min-width: 0 !important;
        min-height: 360px;
        flex: 0 0 auto;
        align-self: center;
        padding: 26px;
        margin: auto 0 !important;
        border-radius: 22px;
        opacity: 1;
        visibility: visible;
        transform: none !important;
    }

    body>#login-container.login-card.compact {
        width: min(360px, calc(100vw - 24px)) !important;
        height: min(448px, calc(100dvh - 160px)) !important;
    }

    body>#login-container.login-card.step-fixed {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        z-index: 900 !important;
        width: min(360px, calc(100vw - 24px)) !important;
        height: min(448px, calc(100dvh - 24px)) !important;
        margin: 0 !important;
        transform: translate(-50%, -50%) !important;
    }

    body>#login-container.login-card.step-fixed.expand-width {
        width: 100vw !important;
        max-width: 100vw !important;
        border-radius: 0 !important;
    }

    body>#login-container.login-card.step-fixed.expand-height {
        width: 100vw !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
    }
}

/* --------------------------------------------------------------------------
   17. RESPONSIVE · MÓVIL ≤600px
   -------------------------------------------------------------------------- */
@media screen and (max-width: 600px) {
    body {
        padding: calc(126px + env(safe-area-inset-top)) 10px 10px !important;
    }

    body>#left-sidebar.left-sidebar {
        height: calc(116px + env(safe-area-inset-top)) !important;
        min-height: calc(116px + env(safe-area-inset-top)) !important;
        gap: 7px !important;
        padding: calc(7px + env(safe-area-inset-top)) 8px 7px !important;
    }

    body>#left-sidebar>.glass-widget {
        height: 96px !important;
        min-height: 96px !important;
        max-height: 96px !important;
        padding: 9px 10px !important;
        border-radius: 13px;
    }

    body>#left-sidebar>.glass-widget:first-child {
        width: 210px !important;
        min-width: 210px !important;
    }

    .wd-time {
        font-size: 1.1rem;
    }

    .wd-ampm {
        font-size: .25em;
    }

    .wd-date {
        max-width: 85px;
        font-size: .52rem;
    }

    .wd-weather {
        min-width: 91px;
        flex-basis: 91px;
    }

    .wd-weather-icon {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }

    .wd-temp {
        font-size: 1.13rem;
    }

    .wd-weather-status {
        font-size: .4rem;
    }

    body>#left-sidebar>#tipo-cambio-widget {
        width: 255px !important;
        min-width: 255px !important;
    }

    .widget-header {
        margin-bottom: 5px;
        font-size: .54rem;
        letter-spacing: .9px;
    }

    .widget-header::before {
        width: 5px;
        height: 5px;
        flex: 0 0 5px;
    }

    .exchange-grid {
        grid-template-columns: 72px 1fr 1fr;
    }

    .ex-header {
        min-height: 14px;
        font-size: .46rem;
    }

    .ex-currency {
        min-height: 28px;
    }

    .exchange-currency-badge {
        width: 22px;
        height: 22px;
        flex-basis: 22px;
        font-size: .68rem;
    }

    .exchange-currency-name {
        font-size: .6rem;
    }

    .exchange-currency-code {
        font-size: .37rem;
    }

    .ex-value {
        min-height: 28px;
        padding: 3px;
        font-size: .64rem;
    }

    body>#left-sidebar>#special-days-widget {
        width: 290px !important;
        min-width: 290px !important;
        height: 96px !important;
        min-height: 96px !important;
        max-height: 96px !important;
        padding: 7px 9px !important;
    }

    .special-day-card {
        height: 62px !important;
        min-height: 62px !important;
    }

    .special-day-content {
        grid-template-columns: minmax(0, 1fr) 42px !important;
        gap: 4px !important;
        padding: 5px !important;
    }

    .special-day-category {
        font-size: .36rem;
    }

    .special-day-remaining-number {
        font-size: .8rem;
    }

    .special-day-remaining-label {
        font-size: .31rem;
    }

    .special-day-calendar {
        grid-template-rows: minmax(0, 1fr) 15px;
    }

    .special-day-calendar-number {
        font-size: 1rem;
    }

    .special-day-calendar-month {
        font-size: .31rem;
    }

    body>#login-container.login-card {
        width: min(340px, calc(100vw - 20px)) !important;
        height: min(415px, calc(100dvh - 142px)) !important;
        min-height: 340px;
        padding: 21px;
        border-radius: 20px;
    }

    body>#login-container.login-card.compact {
        width: min(340px, calc(100vw - 20px)) !important;
        height: min(415px, calc(100dvh - 142px)) !important;
    }

    .brand-container {
        gap: 10px;
        margin-bottom: 18px;
    }

    .logo {
        width: 90px;
    }

    .subtitle {
        margin-bottom: 20px;
    }

    .subtitle-main {
        font-size: .62rem;
        letter-spacing: 1.8px;
    }

    input {
        padding: 12px;
        font-size: 1rem;
    }

    .pin-container {
        width: 100%;
        justify-content: center;
        gap: clamp(6px, 2.3vw, 10px);
        margin-top: 20px;
    }

    .pin-digit {
        width: clamp(45px, 13vw, 53px);
        height: clamp(45px, 13vw, 53px);
        font-size: 1.25rem;
    }

    .btn-auth {
        width: 54px;
        height: 54px;
    }

    .emoji-btn {
        font-size: 1.85rem;
    }
}

/* --------------------------------------------------------------------------
   18. RESPONSIVE · MÓVIL ≤380px
   -------------------------------------------------------------------------- */
@media screen and (max-width: 380px) {
    body {
        padding: calc(117px + env(safe-area-inset-top)) 8px 8px !important;
    }

    body>#left-sidebar.left-sidebar {
        height: calc(107px + env(safe-area-inset-top)) !important;
        min-height: calc(107px + env(safe-area-inset-top)) !important;
        gap: 6px !important;
    }

    body>#left-sidebar>.glass-widget {
        height: 87px !important;
        min-height: 87px !important;
        max-height: 87px !important;
        padding: 7px 8px !important;
    }

    body>#left-sidebar>.glass-widget:first-child {
        width: 195px !important;
        min-width: 195px !important;
    }

    body>#left-sidebar>#tipo-cambio-widget {
        width: 235px !important;
        min-width: 235px !important;
    }

    body>#left-sidebar>#special-days-widget {
        width: 270px !important;
        min-width: 270px !important;
        height: 87px !important;
        min-height: 87px !important;
        max-height: 87px !important;
    }

    .widget-header {
        font-size: .48rem;
    }

    .wd-time {
        font-size: 1rem;
    }

    .wd-ampm {
        font-size: .22em;
    }

    .special-day-card {
        height: 55px !important;
        min-height: 55px !important;
    }

    .special-day-content {
        grid-template-columns: minmax(0, 1fr) 38px !important;
        padding: 4px !important;
    }

    .special-day-category {
        font-size: .32rem;
    }

    .special-day-remaining-number {
        font-size: .72rem;
    }

    .special-day-remaining-label {
        font-size: .28rem;
    }

    .special-day-calendar {
        grid-template-rows: minmax(0, 1fr) 13px;
    }

    .special-day-calendar-number {
        font-size: .88rem;
    }

    .special-day-calendar-month {
        font-size: .27rem;
    }

    body>#login-container.login-card {
        width: calc(100vw - 16px) !important;
        height: min(398px, calc(100dvh - 130px)) !important;
        min-height: 325px;
        padding: 17px;
        border-radius: 18px;
    }

    body>#login-container.login-card.compact {
        width: calc(100vw - 16px) !important;
        height: min(398px, calc(100dvh - 130px)) !important;
    }

    .logo {
        width: 76px;
    }

    .subtitle-main {
        font-size: .55rem;
        letter-spacing: 1.4px;
    }

    .pin-digit {
        width: clamp(41px, 14vw, 47px);
        height: clamp(41px, 14vw, 47px);
    }
}

/* --------------------------------------------------------------------------
   19. RESPONSIVE · PANTALLA BAJA (landscape móvil)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1050px) and (max-height: 650px) {
    body {
        padding-top: calc(92px + env(safe-area-inset-top)) !important;
    }

    body>#left-sidebar.left-sidebar {
        height: calc(82px + env(safe-area-inset-top)) !important;
        min-height: calc(82px + env(safe-area-inset-top)) !important;
    }

    body>#left-sidebar>.glass-widget {
        height: 65px !important;
        min-height: 65px !important;
        max-height: 65px !important;
        padding: 5px 8px !important;
    }

    body>#left-sidebar>.glass-widget:first-child {
        width: 205px !important;
        min-width: 205px !important;
    }

    body>#left-sidebar>#tipo-cambio-widget {
        width: 245px !important;
        min-width: 245px !important;
    }

    body>#left-sidebar>#special-days-widget {
        width: 275px !important;
        min-width: 275px !important;
        height: 65px !important;
        min-height: 65px !important;
        max-height: 65px !important;
    }

    .widget-header {
        display: none !important;
    }

    .wd-weather-status {
        display: none;
    }

    .special-day-card {
        height: 53px !important;
        min-height: 53px !important;
    }

    .special-day-content {
        grid-template-columns: minmax(0, 1fr) 38px !important;
        padding: 4px !important;
    }

    body>#login-container.login-card {
        width: min(330px, calc(100vw - 20px)) !important;
        height: calc(100dvh - 102px) !important;
        min-height: 270px;
        max-height: 360px;
        padding: 15px 20px;
        overflow-y: auto;
    }

    body>#login-container.login-card.compact {
        width: min(330px, calc(100vw - 20px)) !important;
        height: calc(100dvh - 102px) !important;
        min-height: 270px !important;
        max-height: 360px !important;
    }

    .brand-container {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 10px;
        margin-bottom: 8px;
    }

    .logo {
        width: 50px;
        margin: 0;
    }

    .subtitle {
        align-items: flex-start;
        margin: 0;
        text-align: left;
    }

    .subtitle-main {
        font-size: .49rem;
    }

    .subtitle-tag {
        padding: 2px 8px;
        font-size: .48rem;
    }

    input {
        padding: 9px;
        margin-bottom: 7px;
        font-size: .9rem;
    }

    .pin-container {
        margin-top: 8px;
        margin-bottom: 5px;
    }

    .pin-digit {
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
    }

    .btn-auth-container.show {
        margin-top: 5px;
    }

    .btn-auth {
        width: 43px;
        height: 43px;
    }
}

/* --------------------------------------------------------------------------
   20. TOUCH / ACCESIBILIDAD
   -------------------------------------------------------------------------- */
@media (hover: none) and (pointer: coarse) {

    .special-day-card:hover {
        transform: none;
    }

    .glass-widget:hover {
        border-color: var(--glass-border);
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

@media print {

    .left-sidebar,
    #stripes-container,
    #greeting-screen,
    #timeout-screen,
    .bg-pattern,
    .bg-glow,
    .watermark-container {
        display: none !important;
    }
}
