	:root {
            --ib-azul: #003087;
            --ib-verde: #61bb46;
            --ib-verde-oscuro: #008738;
        }

        body {
            margin: 0;
            font-family: 'Segoe UI', Tahoma, sans-serif;
            background-color: var(--ib-azul);
            color: white;
            display: flex;
            justify-content: flex-end;
            align-items: center;
            padding-right: 80px;
            height: 100vh;
            overflow: hidden;
            user-select: none;
            position: relative;
        }

        .bg-pattern {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255, 255, 255, 0.02) 20px, rgba(255, 255, 255, 0.02) 40px);
            z-index: -2;
            pointer-events: none;
        }

        .watermark-container {
            position: fixed;
            top: -50%;
            left: -50%;

            width: 200vw;
            height: 200vh;

            z-index: -1;
            pointer-events: none;
            overflow: hidden;

            display: flex;
            align-items: center;
            justify-content: center;
            transform: rotate(0deg);
            opacity: 0.04;
        }

        .watermark {
            font-size: 1rem;
            font-weight: 900;
            letter-spacing: 1px;
            line-height: 1.5;
            color: #ffffff;
            white-space: pre-wrap;
            text-align: center;
            flex-shrink: 0;
            animation:
                scrollBg 100s linear infinite;
        }

        @keyframes scrollBg {
            from {
                transform: translate(-5%, 0%);
            }

            to {
                transform: translate(5%, -50%);
            }
        }

        .fade-in {
            animation: smoothFadeIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
        }

        @keyframes smoothFadeIn {
            from {
                opacity: 0;
                transform: translateY(15px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .login-card {
            background: rgba(255, 255, 255, 0.90);
            padding: 30px;
            border-radius: 24px;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
            width: 360px;
            height: 440px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            box-sizing: border-box;
            text-align: center;
            color: #333;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            z-index: 10;
            transition: width 0.4s cubic-bezier(0.85, 0, 0.15, 1), height 0.4s cubic-bezier(0.85, 0, 0.15, 1), border-radius 0.4s ease;
            overflow: hidden;
            position: relative;
        }

        .login-card.compact {
            width: 360px !important;
            height: 440px !important;
        }

        .card-view {
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
        }

        .card-view.active {
            display: flex;
            animation: smoothFadeIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
        }

        .brand-container {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
            gap: 15px;
            margin-bottom: 25px;
            flex-direction: column;
        }

        .login-card.compact .brand-container {
            flex-direction: row;
            flex-wrap: nowrap;
        }

        .logo {
            width: 120px;
            margin-bottom: 5px;
            filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
            transition: all 0.4s ease;
        }

        .login-card.compact .logo {
            width: 45px;
            margin-bottom: 0;
            flex-shrink: 0;
        }

        .subtitle {
            font-size: 0.75rem;
            letter-spacing: 3px;
            margin-bottom: 30px;
            color: #475569;
            font-weight: 700;
            text-transform: uppercase;
            transition: all 0.4s ease;
        }

        .login-card.compact .subtitle {
            margin-bottom: 0;
            text-align: left;
            font-size: 0.65rem;
            letter-spacing: 2px;
            height: 55px;

            align-items: center;
        }

        @keyframes borderWorm {
            0% {
                border-color: var(--ib-verde);
                box-shadow: 0 0 4px rgba(97, 187, 70, 0.5);
            }

            50% {
                border-color: #003087;
                box-shadow: 0 0 8px rgba(0, 48, 135, 0.6);
            }

            100% {
                border-color: var(--ib-verde);
                box-shadow: 0 0 4px rgba(97, 187, 70, 0.5);
            }
        }

        .pin-digit.filled {
            animation: borderWorm 1.2s ease forwards;
            background: #fff;
        }

        .pin-container {
            display: flex;
            justify-content: space-between;
            gap: 10px;
            margin-top: 30px;
            margin-bottom: 15px;
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            transform: translateY(-15px);
            transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
        }

        .pin-container.show {
            max-height: 140px;
            overflow: visible;
            opacity: 1;
            transform: translateY(0);
        }

        .pin-digit {
            width: 55px;
            height: 55px;
            padding: 0;
            font-size: 1.5rem;
            text-align: center;
            border: 2px solid transparent;
            border-radius: 12px;
            background: rgba(0, 48, 135, 0.04);
            color: #1e293b;
            font-weight: 600;
            outline: none;
            transition: all 0.3s ease;
            -webkit-text-security: disc;
        }

        .pin-digit:focus {
            border-color: var(--ib-verde);
            box-shadow: 0 0 0 4px rgba(97, 187, 70, 0.15);
            background: #fff;
        }

        .btn-auth-container {
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            transform: translateY(-15px);
            transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
            margin-top: 0;
        }

        .btn-auth-container.show {
            max-height: 80px;
            opacity: 1;
            transform: translateY(0);
            overflow: visible;
            margin-top: 15px;
        }

        .login-card.step-fixed {
            position: fixed !important;
            top: 50% !important;
            left: 50% !important;
            transform: translate(-50%, -50%) !important;
            margin: 0 !important;
        }

        .login-card.expand-width {
            width: 100vw !important;
            border-radius: 0 !important;
        }

        .login-card.expand-height {
            height: 100vh !important;
        }

        input {
            width: 100%;
            padding: 15px;
            border: 2px solid transparent;
            border-radius: 12px;
            box-sizing: border-box;
            font-size: 1.2rem;
            text-align: center;
            margin-bottom: 15px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            background: rgba(0, 48, 135, 0.04);
            letter-spacing: 2px;
            outline: none;
            color: #1e293b;
            font-weight: 600;
        }

        input::placeholder {
            color: #94a3b8;
            font-weight: 400;
        }

        input:focus {
            border-color: var(--ib-verde);
            box-shadow: 0 0 0 4px rgba(97, 187, 70, 0.15);
            background: #fff;
            transform: translateY(-2px);
        }

        .btn-auth {
            position: relative;
            background: linear-gradient(135deg, var(--ib-verde) 0%, #007a33 100%);
            width: 60px;
            height: 60px;
            margin: 0 auto;
            border-radius: 50%;
            border: none;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
            box-shadow: 0 8px 20px rgba(0, 169, 79, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
            overflow: hidden;
        }

        .btn-auth svg {
            width: 28px;
            height: 28px;
            fill: #ffffff;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
            transition: transform 0.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, 0.4), transparent);
            transform: skewX(-20deg);
            transition: all 0.6s ease;
        }

        .btn-auth:hover {
            transform: none !important;
            background: linear-gradient(135deg, var(--ib-azul) 0%, #001f5c 100%) !important;
            box-shadow: 0 10px 22px rgba(0, 48, 135, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
        }

        .btn-auth:hover svg {
            transform: scale(1.1);
        }

        .btn-auth:hover::before {
            left: 150%;
        }

        @keyframes pulseValidate {
            0% {
                transform: scale(1);
                box-shadow: 0 8px 20px rgba(0, 169, 79, 0.3);
            }

            50% {
                transform: scale(0.85);
                box-shadow: 0 2px 10px rgba(0, 169, 79, 0.2);
            }

            100% {
                transform: scale(1);
                box-shadow: 0 8px 20px rgba(0, 169, 79, 0.3);
            }
        }

        .btn-auth.validating {
            animation: pulseValidate 0.8s infinite !important;
            pointer-events: none;
            background: #008738;
        }

        .emoji-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            margin-top: 15px;
            width: 100%;
        }

        .emoji-btn {
            background: #f8f9fa;
            border: 2px solid #ddd;
            font-size: 2.2rem;
            padding: 12px 0;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.25s ease;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        }

        .emoji-btn:hover {
            background: #fff;
            border-color: var(--ib-verde);
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 6px 12px rgba(97, 187, 70, 0.15);
        }

        .inline-loader {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 30px 0;
        }

        .a-loader__spinner {
            height: 80px;
            width: 80px;
            position: relative;
            margin-bottom: 20px;
        }

        .a-loader__spinner:before,
        .a-loader__spinner:after {
            background: #00bb31;
            border-radius: 6px;
            content: "";
            display: block;
            height: 40px;
            opacity: .7;
            position: absolute;
            width: 40px;
            will-change: transform, top, left, right, bottom;
            z-index: 1;
        }

        .a-loader__spinner:before {
            animation: box1 1.8s linear infinite;
            right: 10px;
            top: 10px;
        }

        .a-loader__spinner:after {
            animation: box2 1.8s linear infinite;
            bottom: 10px;
            left: 10px;
        }

        .a-loader__logo {
            animation: logo 1.8s infinite;
            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>');
            background-repeat: no-repeat;
            background-size: cover;
            height: 64px;
            left: 50%;
            position: absolute;
            top: 50%;
            transform: translate(-50%, -50%) scale(0);
            width: 64px;
            z-index: 2;
        }

        .login-card.expand-full {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            width: 100vw !important;
            height: 100vh !important;
            border-radius: 0 !important;
            background: #ffffff !important;
            padding: 0 !important;
            margin: 0 !important;
            box-shadow: none !important;
            z-index: 900;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        @keyframes box1 {
            0% {
                transform: scale(0);
                opacity: 0.7;
            }

            15% {
                top: 10px;
                transform: scale(1);
                opacity: 0.7;
            }

            25% {
                right: 10px;
                top: 30px;
                transform: rotate(0);
                opacity: 0.7;
            }

            30% {
                right: 16.666px;
                top: 30px;
                transform: rotate(-90deg);
                opacity: 0.7;
            }

            30.01% {
                right: 16.666px;
                top: 30px;
                transform: rotate(0);
                opacity: 0.7;
            }

            35% {
                right: 23.333px;
                top: 30px;
                transform: rotate(-90deg);
                opacity: 0.7;
            }

            35.01% {
                right: 23.333px;
                top: 30px;
                transform: rotate(0);
                opacity: 0.7;
            }

            40% {
                right: 30px;
                top: 30px;
                transform: rotate(-90deg);
                opacity: 0.7;
            }

            48% {
                opacity: 0.7;
            }

            50%,
            100% {
                right: 20px;
                top: 20px;
                transform: rotate(-90deg);
                opacity: 0;
            }

        }

        @keyframes box2 {
            0% {
                transform: scale(0);
                opacity: 0.7;
            }

            15% {
                bottom: 10px;
                transform: scale(1);
                opacity: 0.7;
            }

            25% {
                bottom: 30px;
                left: 10px;
                transform: rotate(0);
                opacity: 0.7;
            }

            30% {
                bottom: 30px;
                left: 16.666px;
                transform: rotate(-90deg);
                opacity: 0.7;
            }

            30.01% {
                bottom: 30px;
                left: 16.666px;
                transform: rotate(0);
                opacity: 0.7;
            }

            35% {
                bottom: 30px;
                left: 23.333px;
                transform: rotate(-90deg);
                opacity: 0.7;
            }

            35.01% {
                bottom: 30px;
                left: 23.333px;
                transform: rotate(0);
                opacity: 0.7;
            }

            40% {
                bottom: 30px;
                left: 30px;
                transform: rotate(-90deg);
                opacity: 0.7;
            }

            48% {
                opacity: 0.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);
            }
        }

        #notification-screen,
        #timeout-screen {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 228, 135, 0.95);
            z-index: 8500;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 20px;
            backdrop-filter: blur(8px);
        }

        .noti-card,
        .timeout-card {
            background: white;
            color: #333;
            padding: 30px;
            border-radius: 20px;
            text-align: center;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
        }

        .noti-card {
            width: 90%;
            max-width: 750px;
            border-top: 6px solid #eab308;
            display: flex;
            flex-direction: column;
            max-height: 90vh;
        }

        .timeout-card {
            max-width: 350px;
            padding: 40px 30px;
        }

        .noti-card h2,
        .timeout-card h2 {
            color: var(--ib-azul);
            margin-top: 0;
            font-size: 1.5rem;
            font-weight: 900;
            margin-bottom: 20px;
            flex-shrink: 0;
        }

        .timeout-card h2 {
            color: #ef4444;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
        }

        .noti-body {
            display: flex;
            gap: 25px;
            text-align: left;
            margin-bottom: 25px;
            align-items: flex-start;
            overflow-y: auto;
            padding-right: 10px;
            flex-grow: 1;
        }

        .noti-body::-webkit-scrollbar {
            width: 6px;
        }

        .noti-body::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }

        .noti-body::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 10px;
        }

        .noti-card img {
            width: 220px;
            flex-shrink: 0;
            object-fit: contain;
            border-radius: 12px;
            display: none;
            border: 1px solid #e2e8f0;
        }

        .noti-text-container {
            flex-grow: 1;
            color: #475569;
            font-size: 0.95rem;
            line-height: 1.6;
        }

        #btn-noti-enterado {
            flex-shrink: 0;
            margin-top: auto;
        }

        .timeout-card p {
            color: #64748b;
            font-size: 1rem;
            line-height: 1.5;
            margin-bottom: 25px;
        }

        @media (max-width: 650px) {
            .noti-body {
                flex-direction: column;
                align-items: center;
            }

            .noti-card img {
                width: 100%;
                max-width: 300px;
            }
        }

        #greeting-screen {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 500;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            background: rgba(0, 48, 135, 0.85);
            backdrop-filter: blur(25px);
            opacity: 0;
            transition: opacity 0.5s ease;
        }

        .greeting-content {
            transform: translateY(30px) scale(0.95);
            opacity: 0;
            transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .greeting-content.show {
            transform: translateY(0) scale(1);
            opacity: 1;
        }

        #greet-time {
            font-weight: 300;
            font-size: 1.4rem;
            color: #94a3b8;
            letter-spacing: 4px;
            text-transform: uppercase;
            margin: 0;
        }

        #greet-name {
            color: #ffffff;
            font-size: 5rem;
            font-weight: 900;
            letter-spacing: -2px;
            margin: 5px 0;
            text-shadow: 0 10px 30px rgba(97, 187, 70, 0.3);
        }

        .greet-subtitle {
            font-weight: 600;
            font-size: 1.2rem;
            color: var(--ib-verde);
            margin: 0;
            letter-spacing: 2px;
            text-transform: uppercase;
        }

        .premium-loader-container {
            margin-top: 40px;
            width: 250px;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .premium-loader-text {
            font-size: 0.85rem;
            color: #cbd5e1;
            letter-spacing: 2px;
            margin-bottom: 10px;
            font-weight: 400;
            text-transform: uppercase;
            animation: pulseText 2s infinite;
        }

        .premium-loader-track {
            width: 100%;
            height: 4px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 4px;
            overflow: hidden;
            position: relative;
        }

        .premium-loader-bar {
            width: 0%;
            height: 100%;
            background: var(--ib-verde);
            box-shadow: 0 0 15px var(--ib-verde);
            transition: width 2.5s cubic-bezier(0.2, 0.8, 0.2, 1);
        }

        @keyframes pulseText {

            0%,
            100% {
                opacity: 0.6;
            }

            50% {
                opacity: 1;
            }
        }

        #stripes-container {
            position: fixed;
            inset: 0;
            pointer-events: none;
            z-index: 2000;
            display: flex;
            flex-direction: column;
        }

        .stripe {
            flex: 1;
            background: var(--ib-verde);
            transform: scaleY(0);
            transition: transform 0.7s cubic-bezier(0.85, 0, 0.15, 1);
        }

        .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: 0.1s;
        }

        .stripe.active {
            transform: scaleY(1);
        }

        #app-content {
            display: none;
            background: #fff;
            color: #333;
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            width: 100vw !important;
            height: 100vh !important;
            overflow: auto;
            padding: 0 !important;
            margin: 0 !important;
            box-sizing: border-box;
            z-index: 9500;
            animation: smoothFadeIn 0.8s ease forwards;
        }

        .pin-digit::-ms-reveal,
        .pin-digit::-ms-clear {
            display: none !important;
        }

        .left-sidebar {
            position: fixed;
            left: 40px;
            top: 20px;
            bottom: 20px;
            width: 380px;
            display: flex;
            flex-direction: column;
            gap: 15px;
            z-index: 5;
            transition: opacity 0.5s ease;
        }

        .glass-widget {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            border-radius: 20px;
            padding: 20px;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
        }

        .widget-header {
            font-size: 0.72rem;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: var(--ib-verde);
            margin-bottom: 12px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
        }

        .widget-header::before {
            content: '';
            display: inline-block;
            width: 7px;
            height: 7px;
            background: var(--ib-verde);
            border-radius: 50%;
            box-shadow: 0 0 8px var(--ib-verde);
        }

        .weather-date-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: white;
        }

        .wd-left {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .wd-time {
    display: flex;
    align-items: baseline;
    gap: 3px;

    color: #fff;

    /* NO TOCAR EL TAMAÑO ORIGINAL */
    font-size: 1.6rem;
    font-weight: 800;
}

.wd-ampm {
    font-size: 0.65em;
    font-weight: 700;
    opacity: .75;
    letter-spacing: .5px;
    text-transform: lowercase;
}

        .wd-date {
            font-size: 0.75rem;
            font-weight: 500;
            text-transform: capitalize;
            color: #cbd5e1;
        }

        .wd-weather {
            min-width: 145px;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            justify-content: center;
            color: #ffffff;
        }

        .wd-weather-main {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 8px;
            width: 100%;
        }

        .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, 0.25));
        }

        .wd-weather-icon svg {
            display: block;
            width: 100%;
            height: 100%;
            overflow: visible;
        }

        .wd-temp {
            font-size: 1.7rem;
            line-height: 1;
            font-weight: 900;
            color: #ffffff;
            letter-spacing: -0.5px;
            white-space: nowrap;
        }

        .wd-weather-status {
            width: 100%;
            min-height: 12px;
            margin-top: 3px;
            overflow: hidden;
            color: #cbd5e1;
            font-size: 0.58rem;
            font-weight: 600;
            line-height: 1.15;
            letter-spacing: 0.5px;
            text-align: right;
            text-overflow: ellipsis;
            text-transform: uppercase;
            white-space: nowrap;
        }

        .wd-weather.is-refreshing {
            opacity: 0.92;
        }

        .wd-weather.is-refreshing .wd-weather-icon {
            filter: drop-shadow(0 0 10px rgba(97, 187, 70, 0.38));
        }

        .wd-weather.weather-updated .wd-weather-main,
        .wd-weather.weather-updated .wd-weather-status {
            animation: climaActualizadoCH 0.35s ease;
        }

        @keyframes climaActualizadoCH {
            from {
                opacity: 0.55;
            }

            to {
                opacity: 1;
            }
        }

        @media (max-width: 500px) {
            .wd-weather {
                min-width: 130px;
            }

            .wd-weather-icon {
                width: 34px;
                height: 34px;
                flex-basis: 34px;
            }

            .wd-temp {
                font-size: 1.55rem;
            }
        }

        .exchange-widget {
            min-height: 128px;
            justify-content: center;
        }

        .exchange-widget-header {
            justify-content: space-between;
            gap: 12px;
        }

        .exchange-widget-header::before {
            flex: 0 0 7px;
        }

        .exchange-widget-header>span:first-of-type {
            flex: 1;
        }

        .exchange-date {
            color: #94a3b8;
            font-size: 0.58rem;
            font-weight: 600;
            letter-spacing: 0.3px;
            text-transform: none;
            white-space: nowrap;
        }

        .exchange-grid {
            display: grid;
            grid-template-columns:
                minmax(94px, 1.15fr) minmax(78px, 1fr) minmax(78px, 1fr);
            align-items: stretch;
            gap: 8px;
            width: 100%;
            color: #ffffff;
            text-align: center;
        }

        .ex-header {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 23px;
            color: #94a3b8;
            font-size: 0.67rem;
            font-weight: 700;
            letter-spacing: 0.7px;
            text-transform: uppercase;
        }


        .ex-currency {
            display: flex;
            align-items: center;
            justify-content: space-around;
            gap: 9px;
            min-width: 0;
            min-height: 38px;
            padding: 5px 4px;
            color: #ffffff;
            flex-direction: row-reverse;
        }

        .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, 0.42);
            border-radius: 50%;

            background:
                linear-gradient(145deg,
                    rgba(97, 187, 70, 0.24),
                    rgba(0, 135, 56, 0.08));

            color: var(--ib-verde);
            font-size: 0.95rem;
            font-weight: 900;
            line-height: 1;

            box-shadow:
                0 0 10px rgba(97, 187, 70, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
        }

        .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: #ffffff;
            font-size: 0.81rem;
            font-weight: 750;
            letter-spacing: 0.1px;
            white-space: nowrap;
        }

        .exchange-currency-code {
            color: #94a3b8;
            font-size: 0.54rem;
            font-weight: 700;
            letter-spacing: 1px;
            text-transform: uppercase;
            white-space: nowrap;
        }

        .ex-value {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 38px;
            border: 1px solid rgba(255, 255, 255, 0.07);
            border-radius: 9px;
            background: rgba(0, 0, 0, 0.2);
            color: var(--ib-verde);
            font-size: 0.93rem;
            font-weight: 800;
            font-variant-numeric: tabular-nums;
            white-space: nowrap;
            transition:
                color 0.25s ease,
                border-color 0.25s ease,
                background-color 0.25s ease,
                opacity 0.25s ease;
        }

        .ex-value.exchange-updated {
            animation: exchangeUpdatedCH 0.38s ease;
        }

        @keyframes exchangeUpdatedCH {
            from {
                opacity: 0.45;
                border-color: rgba(97, 187, 70, 0.5);
                background: rgba(97, 187, 70, 0.14);
            }

            to {
                opacity: 1;
                border-color: rgba(255, 255, 255, 0.07);
                background: rgba(0, 0, 0, 0.2);
            }
        }

        .news-wrapper {
            flex-grow: 1;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .news-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
            overflow-y: auto;
            flex-grow: 1;
            padding-right: 4px;
        }

        .news-list::-webkit-scrollbar {
            width: 4px;
        }

        .news-list::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.03);
            border-radius: 10px;
        }

        .news-list::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 10px;
        }

        .news-item {
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.08);
            padding: 12px 15px;
            border-radius: 12px;
            transition: all 0.3s ease;
            text-decoration: none;
            color: white;
            display: flex;
            flex-direction: column;
            gap: 6px;
            flex-shrink: 0;
        }

        .news-item:hover {
            background: rgba(255, 255, 255, 0.12);
            border-color: var(--ib-verde);
            transform: translateX(4px);
        }

        .news-item-content {
            display: flex;
            flex-direction: column;
            gap: 4px;
            flex-grow: 1;
            overflow: hidden;
        }

        .news-item-title {
            font-size: 0.82rem;
            font-weight: 600;
            line-height: 1.35;
            color: #ffffff;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .news-item-meta {
            font-size: 0.68rem;
            color: #cbd5e1;
            display: flex;
            justify-content: space-between;
            font-weight: 500;
        }

        #timeout-screen {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 12000;
            align-items: center;
            justify-content: center;
            padding: 20px;
            box-sizing: border-box;
            background:
                radial-gradient(circle at 50% 42%,
                    rgba(97, 187, 70, 0.18) 0%,
                    rgba(0, 48, 135, 0.82) 38%,
                    rgba(0, 31, 92, 0.98) 100%);

            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
        }

        #timeout-screen.timeout-visible {
            display: flex;
            animation: timeoutScreenEnter 0.45s ease forwards;
        }

        @keyframes timeoutScreenEnter {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        .timeout-card-premium {
            position: relative;
            width: min(390px, calc(100vw - 34px));
            min-height: 480px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 32px 30px 28px;
            box-sizing: border-box;
            overflow: hidden;
            border:
                1px solid rgba(255, 255, 255, 0.74);
            border-radius: 28px;
            background:
                linear-gradient(160deg,
                    rgba(255, 255, 255, 0.98),
                    rgba(244, 248, 252, 0.94));
            box-shadow:
                0 30px 80px rgba(0, 20, 60, 0.46),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
            color: #1e293b;
            text-align: center;
            animation:
                timeoutCardEnter 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
        }

        @keyframes timeoutCardEnter {
            from {
                opacity: 0;
                transform: translateY(24px) scale(0.94);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .timeout-glow {
            position: absolute;
            top: -110px;
            left: 50%;
            width: 230px;
            height: 230px;
            border-radius: 50%;
            background:
                radial-gradient(circle,
                    rgba(97, 187, 70, 0.22),
                    rgba(97, 187, 70, 0) 70%);
            transform: translateX(-50%);
            pointer-events: none;
        }

        .timeout-icon-container {
            position: relative;
            width: 140px;
            height: 140px;
            display: none;
            align-items: center;
            justify-content: center;
            margin-bottom: 8px;
        }

        .timeout-icon-container.active {
            display: flex;
        }

        .timeout-icon-container svg {
            display: block;
            width: 100%;
            height: 100%;
            overflow: visible;
        }

        .safe-svg {
            animation:
                safeEnter 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
        }

        .safe-handle {
            transform-box: fill-box;
            transform-origin: center;
            animation:
                safeHandleTurn 2.7s cubic-bezier(0.5, 0, 0.2, 1) forwards;
        }

        .safe-door {
            transform-box: fill-box;
            transform-origin: left center;
            animation:
                safeDoorClose 1.25s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
        }

        .safe-lock-indicator {
            opacity: 0;
            transform-box: fill-box;
            transform-origin: center;
            animation:
                safeLocked 0.42s ease 2.3s forwards;
        }

        @keyframes safeEnter {
            from {
                opacity: 0;
                transform: translateY(10px) scale(0.85);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        @keyframes safeDoorClose {
            0% {
                transform: perspective(300px) rotateY(-34deg);
                opacity: 0.72;
            }

            75% {
                transform: perspective(300px) rotateY(2deg);
                opacity: 1;
            }

            100% {
                transform: perspective(300px) rotateY(0deg);
                opacity: 1;
            }
        }

        @keyframes safeHandleTurn {
            0% {
                transform: rotate(0deg);
            }

            32% {
                transform: rotate(145deg);
            }

            58% {
                transform: rotate(285deg);
            }

            82% {
                transform: rotate(390deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        @keyframes safeLocked {
            from {
                opacity: 0;
                transform: scale(0.4);
            }

            70% {
                opacity: 1;
                transform: scale(1.18);
            }

            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .clock-svg {
            animation:
                clockEnter 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
        }

        .clock-minute-hand,
        .clock-hour-hand {
            transform-box: view-box;
            transform-origin: 80px 80px;
        }

        .clock-minute-hand {
            animation:
                clockMinuteSpin 2.8s cubic-bezier(0.36, 0, 0.2, 1) forwards;
        }

        .clock-hour-hand {
            animation:
                clockHourSpin 2.8s cubic-bezier(0.36, 0, 0.2, 1) forwards;
        }

        .clock-pulse {
            opacity: 0;
            animation:
                clockPulse 1.4s ease 2.45s forwards;
        }

        .clock-final-dot {
            opacity: 0;
            stroke-dasharray: 10 8;
            animation:
                clockFinalRing 0.8s ease 2.35s forwards;
        }

        @keyframes clockEnter {
            from {
                opacity: 0;
                transform: translateY(10px) scale(0.86);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        @keyframes clockMinuteSpin {
            from {
                transform: rotate(0deg);
            }

            to {
                transform: rotate(1080deg);
            }
        }

        @keyframes clockHourSpin {
            from {
                transform: rotate(-120deg);
            }

            to {
                transform: rotate(360deg);
            }
        }

        @keyframes clockPulse {
            0% {
                opacity: 0;
                transform: scale(0.82);
            }

            45% {
                opacity: 0.65;
            }

            100% {
                opacity: 0;
                transform: scale(1.22);
            }
        }

        @keyframes clockFinalRing {
            from {
                opacity: 0;
                transform: rotate(0deg);
            }

            to {
                opacity: 0.6;
                transform: rotate(90deg);
            }
        }

        .timeout-status {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            margin: 2px 0 12px;
            padding: 6px 11px;
            border:
                1px solid rgba(0, 135, 56, 0.14);
            border-radius: 999px;
            background:
                rgba(97, 187, 70, 0.09);
            color: #008738;
            font-size: 0.66rem;
            font-weight: 800;
            letter-spacing: 1px;
            text-transform: uppercase;
        }

        .timeout-status-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--ib-verde);
            box-shadow:
                0 0 8px rgba(97, 187, 70, 0.7);
            animation:
                timeoutStatusPulse 1.8s ease-in-out infinite;
        }

        @keyframes timeoutStatusPulse {

            0%,
            100% {
                opacity: 0.55;
                transform: scale(0.88);
            }

            50% {
                opacity: 1;
                transform: scale(1.15);
            }
        }

        .timeout-card-premium #timeout-title {
            margin: 0 0 10px;
            color: var(--ib-azul);
            font-size: 1.55rem;
            font-weight: 900;
            letter-spacing: -0.4px;
        }

        .timeout-card-premium #timeout-message {
            max-width: 315px;
            margin: 0;
            color: #64748b;
            font-size: 0.91rem;
            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: 23px 0 18px;
            background:
                linear-gradient(90deg,
                    transparent,
                    #dbe4ee,
                    transparent);
        }

        .timeout-reload-button {
            position: relative;
            min-width: 220px;
            min-height: 49px;
            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),
                    #001f5c);
            color: #ffffff;
            font-family: inherit;
            font-size: 0.77rem;
            font-weight: 850;
            letter-spacing: 0.8px;
            cursor: pointer;
            box-shadow:
                0 10px 22px rgba(0, 48, 135, 0.25);
            transition:
                transform 0.2s ease,
                box-shadow 0.2s ease,
                background 0.2s ease;
        }

        .timeout-reload-button::before {
            content: "";
            position: absolute;
            top: 0;
            left: -70%;
            width: 45%;
            height: 100%;
            background:
                linear-gradient(90deg,
                    transparent,
                    rgba(255, 255, 255, 0.3),
                    transparent);
            transform: skewX(-20deg);
            transition: left 0.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, 0.28);
        }

        .timeout-reload-button:hover::before {
            left: 130%;
        }

        .timeout-reload-button:active {
            transform: translateY(0);
        }

        .timeout-reload-button svg {
            width: 18px;
            height: 18px;
            flex: 0 0 18px;
        }

        .timeout-reload-button:hover svg {
            animation:
                reloadIconTurn 0.65s ease;
        }

        @keyframes reloadIconTurn {
            from {
                transform: rotate(0deg);
            }

            to {
                transform: rotate(360deg);
            }
        }

        .timeout-security-note {
            margin-top: 13px;
            color: #94a3b8;
            font-size: 0.62rem;
            font-weight: 600;
            letter-spacing: 0.2px;
        }

        @media (max-width: 500px) {
            .timeout-card-premium {
                min-height: 455px;
                padding: 26px 20px 24px;
                border-radius: 24px;
            }

            .timeout-icon-container {
                width: 125px;
                height: 125px;
            }

            .timeout-card-premium #timeout-title {
                font-size: 1.38rem;
            }

            .timeout-card-premium #timeout-message {
                font-size: 0.86rem;
            }

            .timeout-reload-button {
                width: 100%;
                min-width: 0;
            }
        }

        @media (prefers-reduced-motion: reduce) {

            .timeout-card-premium,
            .safe-svg,
            .safe-door,
            .safe-handle,
            .safe-lock-indicator,
            .clock-svg,
            .clock-minute-hand,
            .clock-hour-hand,
            .clock-pulse,
            .clock-final-dot,
            .timeout-status-dot {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
            }
        }

        #timeout-screen {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 12000;
            align-items: center;
            justify-content: center;
            padding: 100px 20px 30px;
            box-sizing: border-box;
            background:
                radial-gradient(circle at 50% 38%,
                    rgba(97, 187, 70, 0.17) 0%,
                    rgba(0, 48, 135, 0.88) 42%,
                    rgba(0, 24, 72, 0.99) 100%);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
        }

        #timeout-screen.timeout-visible {
            display: flex;
            animation: timeoutScreenAppear 0.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 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
        }

        @keyframes timeoutModalAppear {
            from {
                opacity: 0;
                transform: translateY(28px) scale(0.94);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .timeout-visual {
            position: absolute;
            top: -78px;
            left: 50%;
            width: 156px;
            height: 156px;
            display: flex;
            align-items: center;
            justify-content: center;
            transform: translateX(-50%);
            z-index: 5;
            pointer-events: none;
        }

        .timeout-visual::before {
            content: "";
            position: absolute;
            inset: 13px;
            border-radius: 50%;
            background:
                radial-gradient(circle,
                    rgba(97, 187, 70, 0.24),
                    rgba(97, 187, 70, 0) 70%);
            filter: blur(4px);
            transform: scale(1.18);
            z-index: -1;
        }

        .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;

            width: 100%;
            min-height: 410px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            padding: 0 30px 28px;
            box-sizing: border-box;
            overflow: visible;
            border: 1px solid rgba(255, 255, 255, 0.85);
            border-radius: 28px;
            background:
                linear-gradient(160deg,
                    rgba(255, 255, 255, 0.99),
                    rgba(242, 247, 252, 0.96));
            color: #1e293b;
            text-align: center;
            box-shadow:
                0 32px 85px rgba(0, 18, 60, 0.48),
                inset 0 1px 0 rgba(255, 255, 255, 1);
            z-index: 1;
        }

        .timeout-card-shine {
            position: absolute;
            inset: 0;

            overflow: hidden;
            border-radius: inherit;

            pointer-events: none;
            z-index: -1;
        }

        .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, 0.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, 0.16);
            border-radius: 999px;
            background: rgba(97, 187, 70, 0.09);
            color: var(--ib-verde-oscuro);
            font-size: 0.64rem;
            font-weight: 800;
            letter-spacing: 0.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, 0.78);
            animation:
                timeoutDotPulse 1.7s ease-in-out infinite;
        }

        @keyframes timeoutDotPulse {

            0%,
            100% {
                opacity: 0.55;
                transform: scale(0.85);
            }

            50% {
                opacity: 1;
                transform: scale(1.2);
            }
        }

        .timeout-card-premium #timeout-title {
            margin: 0 0 10px !important;
            color: var(--ib-azul) !important;
            font-family:
                "Segoe UI",
                Tahoma,
                sans-serif;
            font-size: 1.55rem !important;
            font-weight: 900 !important;
            line-height: 1.18;
            letter-spacing: -0.4px;
        }

        .timeout-card-premium #timeout-message {
            width: 100%;
            max-width: 315px;
            margin: 0 !important;
            color: #64748b !important;
            font-size: 0.89rem !important;
            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),
                    #001f5c);
            color: #ffffff;
            font-family: inherit;
            font-size: 0.76rem;
            font-weight: 850;
            letter-spacing: 0.8px;
            cursor: pointer;
            box-shadow:
                0 11px 24px rgba(0, 48, 135, 0.26);
            transition:
                transform 0.22s ease,
                box-shadow 0.22s ease,
                background 0.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, 0.34),
                    transparent);
            transform: skewX(-20deg);
            transition: left 0.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, 0.3);
        }

        .timeout-reload-button:hover::before {
            left: 135%;
        }

        .timeout-reload-button:active {
            transform: translateY(0);
        }

        .timeout-reload-button:disabled {
            opacity: 0.68;
            cursor: wait;
            transform: none;
        }

        .timeout-reload-button svg {
            width: 18px;
            height: 18px;
            flex: 0 0 18px;
        }

        .timeout-reload-button:hover svg {
            animation: timeoutReloadTurn 0.65s ease;
        }

        @keyframes timeoutReloadTurn {
            from {
                transform: rotate(0deg);
            }

            to {
                transform: rotate(360deg);
            }
        }

        .timeout-security-note {
            margin-top: 13px;
            color: #94a3b8;
            font-size: 0.62rem;
            font-weight: 600;
        }

        .timeout-icon-max.active {
            animation:
                safeIconAppear 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
        }

        .safe-door {
            transform-box: fill-box;
            transform-origin: left center;
            animation:
                safeDoorClose 1.15s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
        }

        .safe-handle {
            transform-box: view-box;
            transform-origin: 87px 81px;
            animation:
                safeHandleRotate 2.6s cubic-bezier(0.45, 0, 0.2, 1) forwards;
        }

        .safe-lock-indicator {
            opacity: 0;
            transform-box: fill-box;
            transform-origin: center;
            animation:
                safeLockConfirm 0.45s ease 2.18s forwards;
        }

        @keyframes safeIconAppear {
            from {
                opacity: 0;
                transform: translateY(15px) scale(0.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(0.35);
            }

            70% {
                opacity: 1;
                transform: scale(1.22);
            }

            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .timeout-icon-idle.active {
            animation:
                clockIconAppear 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
        }

        .clock-minute-hand,
        .clock-hour-hand {
            transform-box: view-box;
            transform-origin: 90px 82px;
        }

        .clock-minute-hand {
            animation:
                clockMinuteFinish 2.6s cubic-bezier(0.38, 0, 0.2, 1) forwards;
        }

        .clock-hour-hand {
            animation:
                clockHourFinish 2.6s cubic-bezier(0.38, 0, 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(0.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(0.82);
            }

            45% {
                opacity: 0.72;
            }

            100% {
                opacity: 0;
                transform: scale(1.22);
            }
        }

        @media (max-width: 500px) {
            #timeout-screen {
                padding-top: 90px;
            }

            .timeout-modal-wrapper {
                width: min(360px, calc(100vw - 28px));
            }

            .timeout-visual {
                top: -68px;
                width: 140px;
                height: 140px;
            }

            .timeout-icon-space {
                height: 82px;
                flex-basis: 82px;
            }

            .timeout-card-premium {
                min-height: 390px;
                padding-right: 20px;
                padding-left: 20px;
                border-radius: 24px;
            }

            .timeout-card-premium #timeout-title {
                font-size: 1.36rem !important;
            }

            .timeout-card-premium #timeout-message {
                font-size: 0.84rem !important;
            }

            .timeout-reload-button {
                width: 100%;
                min-width: 0;
            }
        }

        @media (prefers-reduced-motion: reduce) {

            #timeout-screen,
            .timeout-modal-wrapper,
            .timeout-icon-max,
            .timeout-icon-idle,
            .safe-door,
            .safe-handle,
            .safe-lock-indicator,
            .clock-minute-hand,
            .clock-hour-hand,
            .clock-pulse,
            .timeout-status-dot {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
            }
        }
        
        /* =========================================================
   DÍAS ESPECIALES COMPACTO CON COMPUERTA INTERNA
   ========================================================= */

.special-days-widget {
    position: relative;

    flex: 0 0 auto;

    min-height: 0;
    padding: 14px 16px 15px;

    overflow: visible;
}


/* Título general */

.special-days-header {
    margin-bottom: 8px;
}


/* =========================================================
   DOS COLUMNAS
   ========================================================= */

.special-days-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 9px;

    width: 100%;
}
        
        /* =========================================================
   TARJETA COMPACTA DE DÍAS ESPECIALES
   ========================================================= */

.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, 0.88);

    --special-event-glow:
        rgba(255, 255, 255, 0.30);

    position: relative;
    min-width: 0;
    height: 76px;
    overflow: hidden;
    isolation: isolate;

    border:
        1px solid
        rgba(255, 255, 255, 0.10);

    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.075),
            rgba(255, 255, 255, 0.025)
        );

    color: #ffffff;
    cursor: default;
    outline: none;

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.04);

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease,
        background 0.3s ease;
}

.special-day-card:hover,
.special-day-card:focus-visible {
    transform: translateY(-1px);

    border-color:
        rgba(97, 187, 70, 0.42);

    box-shadow:
        0 8px 20px
        rgba(0, 20, 60, 0.20),
        inset 0 1px 0
        rgba(255, 255, 255, 0.06);
}


/* =========================================================
   DISTRIBUCIÓN INTERIOR
   ========================================================= */

.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;
    box-sizing: border-box;

    transition:
        opacity 0.24s ease,
        transform 0.34s
        cubic-bezier(0.2, 0.8, 0.2, 1);
}


/* =========================================================
   COLUMNA IZQUIERDA
   ========================================================= */

.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: #94a3b8;

    font-size: 0.50rem;
    font-weight: 800;
    letter-spacing: 0.55px;
    line-height: 1.1;

    text-align: left;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}


/* Número de días restantes */

.special-day-remaining {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;

    line-height: 1;
}

.special-day-remaining-number {
    color: #ffffff;
    padding-bottom: 0.4em;
    padding-top: 0.4em;
    font-size: 1.12rem;
    font-weight: 900;
    letter-spacing: -0.7px;
    line-height: 0.95;

    font-variant-numeric: tabular-nums;
}

.special-day-remaining-label {
    margin-top: 3px;

    color: var(--ib-verde);

    font-size: 0.49rem;
    font-weight: 800;
    letter-spacing: 0.7px;
    line-height: 1;

    text-transform: uppercase;
}


/* =========================================================
   COLUMNA DERECHA: HOJA DE CALENDARIO
   ========================================================= */

.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, 0.13);

    border-radius: 9px;

    background:
        rgba(0, 0, 0, 0.17);

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.04);
}


/* Parte superior con el día */

.special-day-calendar-number {
    display: flex;
    align-items: center;
    justify-content: center;

    padding-top: 1px;

    color: #ffffff;

    font-size: 1.58rem;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1;

    font-variant-numeric: tabular-nums;
}


/* Franja inferior con el mes */

.special-day-calendar-month {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 3px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.10);

    background:
        rgba(255, 255, 255, 0.07);

    color: #cbd5e1;

    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    line-height: 1;

    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: capitalize;
    white-space: nowrap;
}


/* =========================================================
   COMPUERTA
   ========================================================= */

.special-day-card .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;
    box-sizing: border-box;

    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, 0.08),
        0 5px 14px
        rgba(0, 0, 0, 0.16);

    opacity: 0;

    transform:
        translateY(-102%);

    transition:
        transform 0.38s
        cubic-bezier(0.2, 0.8, 0.2, 1),
        opacity 0.18s ease;

    pointer-events: none;
}

.special-day-card:hover
.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-visible
.special-day-content {
    opacity: 0.12;
    transform: translateY(8px);
}

.special-day-card .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, 0.92),
            transparent
        ) !important;

    box-shadow:
        0 0 7px
        rgba(255, 255, 255, 0.30)
        !important;

    opacity: 0.72;
}

.special-day-card
.special-day-gate-label {
    color:
        var(--special-event-gate-muted-text)
        !important;

    opacity: 1;
}

.special-day-card
.special-day-gate-name {
    color:
        var(--special-event-gate-text)
        !important;
}

.special-day-gate-label {
    margin-bottom: 5px;

    color:
        var(--special-event-gate-muted-text)
        !important;

    font-size: 0.48rem;
    font-weight: 850;
    letter-spacing: 0.9px;
    line-height: 1;

    text-transform: uppercase;
}

.special-day-gate-name {
    display: -webkit-box;

    width: 100%;
    max-height: 34px;

    overflow: hidden;

    color:
        var(--special-event-gate-text)
        !important;

    font-size: 0.70rem;
    font-weight: 800;
    line-height: 1.25;

    text-align: center;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}


/* =========================================================
   CUANDO ES EL DÍA DEL EVENTO
   ========================================================= */

.special-day-card.is-today {
    background:
        var(--special-event-background)
        !important;

    color:
        var(--special-event-text)
        !important;

    border-color:
        rgba(255, 255, 255, 0.52);

    box-shadow:
        0 9px 23px
        rgba(0, 20, 60, 0.18),
        inset 0 1px 0
        rgba(255, 255, 255, 0.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 {
    display: flex;

    position: absolute;
    inset: 0;
    z-index: 2;

    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, 0.18)
        );

    animation:
        specialTodayEmoji
        2.2s ease-in-out infinite;
}

.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);
    }
}

/* =========================================================
   CONTRASTE AUTOMÁTICO DEL EVENTO ACTUAL
   ========================================================= */

.special-day-card.is-today {
    background:
        var(--special-event-background)
        !important;

    color:
        var(--special-event-text)
        !important;
}

.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-label {
    color:
        var(--special-event-gate-muted-text)
        !important;
}

.special-day-card.is-today
.special-day-gate-name {
    color:
        var(--special-event-gate-text)
        !important;
}

/* =========================================================
   RESPONSIVE GENERAL DEFINITIVO
   DESKTOP: barra lateral izquierda
   TABLET/CELULAR: barra superior horizontal
   ========================================================= */


/* =========================================================
   NORMALIZACIÓN GENERAL
   ========================================================= */

html {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body {
    width: 100%;
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}


/* =========================================================
   ESCRITORIO
   Mantiene tu diseño actual
   ========================================================= */

@media screen and (min-width: 1051px) {

    body {
        display: flex;
        justify-content: flex-end;
        align-items: center;

        padding-top: 0;
        padding-right: clamp(40px, 6vw, 90px);
        padding-bottom: 0;
        padding-left: 0;

        overflow: hidden;
    }

    body > #left-sidebar {
        position: fixed;

        top: 20px;
        right: auto;
        bottom: 20px;
        left: clamp(20px, 3vw, 40px);

        display: flex;
        flex-direction: column;

        width: clamp(340px, 28vw, 380px);
        height: auto;

        gap: 15px;
        padding: 0;

        overflow: visible;

        opacity: 1;
        visibility: visible;

        z-index: 5;

        background: transparent;
        border: 0;
        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;

        top: auto;
        right: auto;
        bottom: auto;
        left: auto;

        width: 360px;
        height: 440px;

        margin: 0;

        flex: 0 0 auto;
    }
}


/* =========================================================
   TABLET Y CELULAR
   Barra superior horizontal desplazable
   ========================================================= */

@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;

        background-color: var(--ib-azul);

        overflow-x: hidden !important;
        overflow-y: auto !important;
    }


    /* =====================================================
       BARRA SUPERIOR
       ===================================================== */

    body > #left-sidebar.left-sidebar {
        position: fixed !important;

        top: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        left: 0 !important;

        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        justify-content: flex-start !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;

        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;

        z-index: 11000 !important;

        background:
            linear-gradient(
                180deg,
                rgba(0, 35, 104, 0.99),
                rgba(0, 48, 135, 0.97)
            ) !important;

        border-bottom:
            1px solid
            rgba(255, 255, 255, 0.16);

        box-shadow:
            0 10px 30px
            rgba(0, 20, 60, 0.38);

        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);

        scroll-snap-type: x proximity;
        scroll-behavior: smooth;
        scrollbar-width: thin;

        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;

        transform: none !important;
        animation: none !important;
    }


    /* Barra de desplazamiento */

    body > #left-sidebar::-webkit-scrollbar {
        height: 4px;
    }

    body > #left-sidebar::-webkit-scrollbar-track {
        background: transparent;
    }

    body > #left-sidebar::-webkit-scrollbar-thumb {
        background:
            rgba(255, 255, 255, 0.28);

        border-radius: 999px;
    }


    /* =====================================================
       WIDGETS DENTRO DE LA BARRA
       ===================================================== */

    body > #left-sidebar > .glass-widget {
        position: relative !important;

        display: flex !important;

        width: auto;
        height: 110px !important;
        min-height: 110px !important;
        max-height: 110px !important;

        flex: 0 0 auto !important;

        padding: 11px 13px !important;
        margin: 0 !important;

        overflow: hidden;

        border:
            1px solid
            rgba(255, 255, 255, 0.15);

        border-radius: 15px;

        background:
            linear-gradient(
                145deg,
                rgba(255, 255, 255, 0.10),
                rgba(255, 255, 255, 0.035)
            );

        box-shadow:
            inset 0 1px 0
            rgba(255, 255, 255, 0.06);

        scroll-snap-align: start;
    }


    /* =====================================================
       1. FECHA, HORA Y CLIMA
       ===================================================== */

    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-date {
        max-width: 105px;

        margin-top: 5px;

        font-size: 0.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: 0.45rem;
    }


    /* =====================================================
       2. TIPO DE CAMBIO
       ===================================================== */

    body > #left-sidebar > #tipo-cambio-widget {
        width: 285px !important;
        min-width: 285px !important;

        justify-content: center;
    }

    .exchange-widget-header {
        min-height: 17px;
        margin-bottom: 5px;

        gap: 5px;
    }

    .exchange-widget-header > span:first-of-type {
        min-width: 0;
    }

    .exchange-date {
        font-size: 0.47rem;
    }

    .exchange-grid {
        grid-template-columns:
            82px
            1fr
            1fr;

        gap: 5px;
    }

    .ex-header {
        min-height: 17px;

        font-size: 0.52rem;
    }

    .ex-currency {
        min-height: 33px;

        gap: 5px;
        padding: 2px;
    }

    .exchange-currency-badge {
        width: 25px;
        height: 25px;
        flex: 0 0 25px;

        font-size: 0.75rem;
    }

    .exchange-currency-name {
        font-size: 0.67rem;
    }

    .exchange-currency-code {
        font-size: 0.41rem;
    }

    .ex-value {
        min-height: 33px;

        padding: 4px 5px;

        font-size: 0.72rem;
    }


    /* =====================================================
       3. DÍAS ESPECIALES
       ===================================================== */

    body > #left-sidebar > #special-days-widget {
        display: flex !important;

        width: 320px !important;
        min-width: 320px !important;

        height: 110px !important;
        min-height: 110px !important;
        max-height: 110px !important;

        padding: 9px 11px !important;
    }

    .special-days-header {
        min-height: 16px;

        margin-bottom: 5px !important;
    }

    .special-days-grid {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr) !important;

        gap: 6px !important;

        width: 100%;
    }

    .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: 0.42rem;
        letter-spacing: 0.35px;
        line-height: 1.05;

        white-space: normal;
    }

    .special-day-remaining-number {
        padding: 0 0 2px;

        font-size: 0.93rem;
    }

    .special-day-remaining-label {
        margin-top: 0;

        font-size: 0.37rem;
        letter-spacing: 0.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: 0.36rem;
        letter-spacing: 0.15px;
    }

    .special-day-gate {
        padding: 6px 7px !important;
    }

    .special-day-gate-label {
        margin-bottom: 3px;

        font-size: 0.38rem;
    }

    .special-day-gate-name {
        font-size: 0.57rem;
    }


    /* =====================================================
       OCULTAR NOTICIAS
       ===================================================== */

    body > #left-sidebar > .news-wrapper {
        display: none !important;
    }


    /* =====================================================
       LOGIN DEBAJO DE LA BARRA
       ===================================================== */

    body > #login-container.login-card {
        position: relative !important;

        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        width: min(360px, calc(100vw - 24px)) !important;
        height: min(440px, calc(100dvh - 160px)) !important;

        min-width: 0 !important;
        min-height: 360px;

        margin: auto 0 !important;
        padding: 26px;

        flex: 0 0 auto;

        align-self: center;

        border-radius: 22px;

        transform: none !important;

        opacity: 1;
        visibility: visible;

        z-index: 10 !important;
    }

    body > #login-container.login-card.compact {
        width: min(360px, calc(100vw - 24px)) !important;
        height: min(440px, calc(100dvh - 160px)) !important;
    }


    /*
     * Las siguientes clases pertenecen a la transición
     * después del login. Deben conservar su funcionamiento.
     */

    body > #login-container.login-card.step-fixed {
        position: fixed !important;

        top: 50% !important;
        left: 50% !important;

        width: min(360px, calc(100vw - 24px)) !important;
        height: min(440px, calc(100dvh - 24px)) !important;

        margin: 0 !important;

        transform:
            translate(-50%, -50%)
            !important;

        z-index: 900 !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;
    }
}


/* =========================================================
   CELULAR
   Barra más compacta, pero sigue siendo desplazable
   ========================================================= */

@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;
    }


    /* Fecha y clima */

    body > #left-sidebar > .glass-widget:first-child {
        width: 210px !important;
        min-width: 210px !important;
    }

    .wd-time {
        font-size: 1.12rem;
    }

    .wd-date {
        max-width: 85px;

        font-size: 0.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: 0.4rem;
    }


    /* Tipo de cambio */

    body > #left-sidebar > #tipo-cambio-widget {
        width: 255px !important;
        min-width: 255px !important;
    }

    .widget-header {
        margin-bottom: 5px;

        font-size: 0.54rem;
        letter-spacing: 0.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: 0.46rem;
    }

    .ex-currency {
        min-height: 28px;
    }

    .exchange-currency-badge {
        width: 22px;
        height: 22px;
        flex-basis: 22px;

        font-size: 0.68rem;
    }

    .exchange-currency-name {
        font-size: 0.6rem;
    }

    .exchange-currency-code {
        font-size: 0.37rem;
    }

    .ex-value {
        min-height: 28px;

        padding: 3px;

        font-size: 0.64rem;
    }


    /* Días especiales */

    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: 0.36rem;
    }

    .special-day-remaining-number {
        font-size: 0.8rem;
    }

    .special-day-remaining-label {
        font-size: 0.31rem;
    }

    .special-day-calendar {
        grid-template-rows:
            minmax(0, 1fr)
            15px;
    }

    .special-day-calendar-number {
        font-size: 1rem;
    }

    .special-day-calendar-month {
        font-size: 0.31rem;
    }


    /* Login */

    body > #login-container.login-card {
        width: min(340px, calc(100vw - 20px)) !important;
        height: min(410px, 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(410px, calc(100dvh - 142px)) !important;
    }

    .brand-container {
        gap: 10px;
        margin-bottom: 18px;
    }

    .logo {
        width: 90px;
    }

    .subtitle {
        margin-bottom: 20px;

        font-size: 0.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;
    }
}


/* =========================================================
   CELULAR PEQUEÑO
   ========================================================= */

@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: 0.48rem;
    }

    .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: 0.32rem;
    }

    .special-day-remaining-number {
        font-size: 0.72rem;
    }

    .special-day-remaining-label {
        font-size: 0.28rem;
    }

    .special-day-calendar {
        grid-template-rows:
            minmax(0, 1fr)
            13px;
    }

    .special-day-calendar-number {
        font-size: 0.88rem;
    }

    .special-day-calendar-month {
        font-size: 0.27rem;
    }

    body > #login-container.login-card {
        width: calc(100vw - 16px) !important;
        height: min(395px, 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(395px, calc(100dvh - 130px)) !important;
    }

    .logo {
        width: 76px;
    }

    .subtitle {
        font-size: 0.55rem;
        letter-spacing: 1.4px;
    }

    .pin-digit {
        width: clamp(41px, 14vw, 47px);
        height: clamp(41px, 14vw, 47px);
    }
}


/* =========================================================
   PANTALLAS CON POCA ALTURA
   Ejemplo: celular horizontal
   ========================================================= */

@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 {
        margin: 0;

        font-size: 0.49rem;
        text-align: left;
    }

    input {
        padding: 9px;
        margin-bottom: 7px;

        font-size: 0.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;
    }
}


/* =========================================================
   CELULAR TÁCTIL
   Permite mostrar la compuerta tocando la tarjeta
   ========================================================= */

@media (hover: none) and (pointer: coarse) {

    .special-day-card:hover {
        transform: none;
    }

    .special-day-card:focus .special-day-gate,
    .special-day-card:focus-visible .special-day-gate {
        opacity: 1;
        transform: translateY(0);
    }

    .special-day-card:focus .special-day-content,
    .special-day-card:focus-visible .special-day-content {
        opacity: 0.12;
        transform: translateY(8px);
    }
}

@media (max-width: 1050px) {

    .wd-time {
        font-size: 1.3rem;
    }

    .wd-ampm {
        font-size: 0.28em;
    }
}
@media (max-width: 600px) {

    .wd-time {
        font-size: 1.1rem;
    }

    .wd-ampm {
        font-size: 0.25em;
    }
}

@media (max-width: 380px) {

    .wd-time {
        font-size: 1rem;
    }

    .wd-ampm {
        font-size: 0.22em;
    }
}