:root {
            color-scheme: dark;
            --bg: #05090e;
            --card: #09131f;
            --edge: #233448;
            --text: #f5f8ff;
            --muted: #9ba9bb;
            --blue: #2778ff;
            --orange: #ff982a;
            --green: #35e6a0
        }

        * {
            box-sizing: border-box
        }

        body {
            margin: 0;
            background: #000;
            color: var(--text);
            font: 15px/1.5 system-ui, -apple-system, Segoe UI, Arial, sans-serif
        }

        .dashboard {
            max-width: 1240px;
            margin: 0 auto;
            padding: 28px 18px 44px;
            background: radial-gradient(ellipse at 80% 0%, #0b2234 0, transparent 42%)
        }

        .head {
            display: flex;
            align-items: end;
            justify-content: space-between;
            gap: 20px;
            flex-wrap: wrap;
            margin-bottom: 18px
        }

        .heading {
            border-left: 5px solid #ee3043;
            padding-left: 20px
        }

        .heading h1 {
            font-size: clamp(24px, 3vw, 36px);
            line-height: 1.1;
            margin: 0;
            font-weight: 800;
            letter-spacing: .02em
        }

        .heading p {
            font-size: clamp(16px, 2vw, 22px);
            color: #c7d3e3;
            margin: 3px 0 0
        }

        .controls {
            display: flex;
            gap: 12px;
            align-items: center;
            flex-wrap: wrap
        }

        .periods {
            display: flex;
            gap: 4px;
            border: 1px solid var(--edge);
            padding: 5px;
            border-radius: 10px;
            background: #0e1a2a
        }

        .period {
            border: 0;
            border-radius: 7px;
            background: transparent;
            color: #dce5f1;
            padding: 9px 16px;
            font-weight: 700;
            cursor: pointer
        }

        .period.active {
            background: #e82337;
            color: white;
            box-shadow: 0 0 16px #e8233744
        }

        .period:focus-visible {
            outline: 2px solid white;
            outline-offset: 2px
        }

        .range {
            border: 1px solid var(--edge);
            border-radius: 9px;
            padding: 11px 13px;
            background: #0d1723;
            color: #b8c7d9;
            font-size: 13px;
            white-space: nowrap
        }

        .panel {
            background: linear-gradient(130deg, #0a1725, #08121e 65%, #091521);
            border: 1px solid var(--edge);
            border-radius: 13px;
            box-shadow: 0 10px 25px #0004;
            overflow: hidden
        }

        .chart-panel {
            padding: 22px 22px 14px
        }

        .chart-wrap {
            position: relative;
            height: 430px
        }

        .panel+.panel {
            margin-top: 20px
        }

        .section-panel {
            margin-top: 20px;
            padding: 22px
        }

        /* Fondos decorativos de los encabezados */

        .section-title {
            position: relative;
            isolation: isolate;

            /* Alinear ícono y texto horizontalmente */
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: flex-start;
            gap: 20px;

            /* Dimensiones del encabezado */
            min-height: 110px;
            padding: 20px 24px;
            margin-bottom: 20px;

            /* Diseño */
            overflow: hidden;
            border-radius: 10px;
        }

        .section-icon {
            width: 56px;
            height: 56px;
            flex-shrink: 0;
            display: grid;
            place-items: center;
            border: 1px solid #9c3340;
            background: linear-gradient(140deg, #62232d, #261622);
            border-radius: 10px;
            color: #ff5267;
            font-size: 28px
        }

        .section-icon.gold {
            border-color: #9c7136;
            background: linear-gradient(140deg, #624422, #29201b);
            color: #ffae4b
        }

        .section-title h2 {
            font-size: clamp(18px, 2.2vw, 25px);
            margin: 0;
            line-height: 1.15;
            letter-spacing: .01em
        }

        .section-title p {
            margin: 4px 0 0;
            color: var(--muted);
            font-size: 14px
        }

        /* Fondo del toro */
        .fondo-toro {
            background-image:
                linear-gradient(
                    90deg,
                    #09131f 0%,
                    #09131f 40%,
                    rgba(9, 19, 31, 0.90) 65%,
                    rgba(9, 19, 31, 0.35) 100%
                ),
                url("../img/Toro.webp");

            background-repeat: no-repeat;
            background-position: center, right center;
            background-size: 100% 100%, auto 170%;
        }

        /* Fondo de las monedas */
        .fondo-moneda {
            background-image:
                linear-gradient(
                    90deg,
                    #09131f 0%,
                    #09131f 40%,
                    rgba(9, 19, 31, 0.90) 65%,
                    rgba(9, 19, 31, 0.35) 100%
                ),
                url("../img/Moneda.webp");

            background-repeat: no-repeat;
            background-position: center, right center;
            background-size: 100% 100%, auto 170%;
        }

        .table-scroll {
            overflow-x: auto;
            border: 1px solid var(--edge);
            border-radius: 9px
        }

        .financial {
            width: 100%;
            border-collapse: collapse;
            min-width: 620px;
            text-align: center;
            font-variant-numeric: tabular-nums
        }

        .financial th,
        .financial td {
            padding: 15px 16px;
            border-bottom: 1px solid #253444
        }

        .financial tbody tr:last-child>* {
            border-bottom: 0
        }

        .financial thead {
            background: #1b2b3c;
            color: #e7edf5;
            font-size: 13px;
            text-transform: uppercase
        }

        .financial tbody th {
            text-align: left;
            font-weight: 750
        }

        .financial tbody td {
            font-weight: 750;
            font-size: 17px
        }

        .financial tbody tr:hover {
            background: #ffffff06
        }

        .series {
            display: inline-flex;
            gap: 10px;
            align-items: center
        }

        .series:before {
            content: "";
            display: inline-block;
            width: 4px;
            height: 27px;
            border-radius: 3px;
            background: var(--orange)
        }

        .series.alpha:before {
            background: var(--blue)
        }

        .positive {
            color: var(--green)
        }

        .value {
            display: block;
            color: #f3f7ff;
            font-size: 17px;
            font-weight: 750
        }

        .subvalue {
            display: block;
            color: var(--green);
            font-size: 13px
        }

        .invest tbody th {
            text-align: left
        }

        .invest tbody td:last-child {
            background: #0b312b55
        }

        .spark {
            display: inline-block;
            vertical-align: middle;
            width: 65px;
            height: 24px;
            margin-left: 12px
        }

        .note {
            font-size: 12px;
            color: #91a0b2;
            margin: 16px 3px 0
        }

        @media(max-width:760px) {
            .dashboard {
                padding: 20px 10px
            }

            .head {
                align-items: stretch
            }

            .controls {
                width: 100%
            }

            .periods {
                flex: 1;
                justify-content: space-between
            }

            .period {
                flex: 1;
                padding: 9px 10px
            }

            .range {
                width: 100%;
                text-align: center
            }

            .chart-panel {
                padding: 12px 6px 10px
            }

            .chart-wrap {
                height: 340px
            }

            .section-panel {
                padding: 15px 10px
            }

            .section-title {
                gap: 10px
            }

            .section-icon {
                width: 43px;
                height: 43px;
                font-size: 22px
            }

            .financial th,
            .financial td {
                padding: 12px 10px
            }

            .financial tbody td {
                font-size: 15px
            }

            .heading {
                padding-left: 13px
            }
        }



        /* ACABADOS DEL DASHBOARD FINANCIERO */
        .dashboard {
            position: relative;
            isolation: isolate;
        }

        .dashboard::before {
            content: "";
            position: absolute;
            z-index: -1;
            top: 0;
            right: 0;
            width: 70%;
            height: 220px;
            opacity: .23;
            pointer-events: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 200'%3E%3Cg stroke='%2352738f' stroke-width='2' opacity='.55'%3E%3Cpath d='M40 30V130 M100 45V160 M160 10V110 M220 55V170 M280 20V125 M340 30V145 M400 10V100 M460 65V185 M520 20V135 M580 5V100 M640 35V155 M700 10V125 M760 45V165 M820 10V110'/%3E%3C/g%3E%3Cg fill='%232f4d67' opacity='.6'%3E%3Crect x='33' y='60' width='14' height='40' rx='2'/%3E%3Crect x='93' y='80' width='14' height='45' rx='2'/%3E%3Crect x='153' y='30' width='14' height='48' rx='2'/%3E%3Crect x='213' y='100' width='14' height='40' rx='2'/%3E%3Crect x='273' y='48' width='14' height='47' rx='2'/%3E%3Crect x='333' y='65' width='14' height='50' rx='2'/%3E%3Crect x='393' y='25' width='14' height='45' rx='2'/%3E%3Crect x='453' y='110' width='14' height='50' rx='2'/%3E%3Crect x='513' y='50' width='14' height='45' rx='2'/%3E%3Crect x='573' y='25' width='14' height='45' rx='2'/%3E%3Crect x='633' y='65' width='14' height='55' rx='2'/%3E%3Crect x='693' y='35' width='14' height='60' rx='2'/%3E%3Crect x='753' y='85' width='14' height='55' rx='2'/%3E%3Crect x='813' y='30' width='14' height='45' rx='2'/%3E%3C/g%3E%3C/svg%3E");
            background-position: right top;
            background-size: cover;
            mask-image: linear-gradient(to bottom, #000, transparent);
        }

        .panel {
            box-shadow: 0 14px 34px rgba(0, 0, 0, .33), inset 0 1px 0 rgba(255, 255, 255, .035);
        }

        .chart-panel {
            background: linear-gradient(155deg, #091624 0%, #090f17 68%, #0a1521 100%);
        }

        .section-panel {
            position: relative;
            background: radial-gradient(ellipse at 95% 0%, rgba(31, 61, 83, .2), transparent 50%), #0a111a;
        }

        .section-icon svg {
            width: 28px;
            height: 28px;
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .financial tbody td .metric {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 14px;
            white-space: nowrap;
        }

        .sparkline {
            display: block;
            width: 72px;
            height: 26px;
            flex-shrink: 0;
        }

        .financial tbody td .metric-value {
            font-weight: 750;
            font-variant-numeric: tabular-nums;
        }

        .invest tbody td:last-child {
            background: linear-gradient(90deg, rgba(21, 107, 82, .08), rgba(12, 92, 72, .22));
        }

        .invest tbody td:last-child .value {
            color: var(--green);
        }

        .invest tbody td {
            position: relative;
        }

        .trend-arrow {
            display: inline-block;
            margin-left: 8px;
            font-size: 19px;
            color: var(--green);
            vertical-align: middle;
        }

        .investment-value {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 25px;
        }

        .investment-value .trend-arrow {
            color: #35e6a0;
            font-size: 24px;
            font-weight: bold;
        }

        @media (max-width: 760px) {
            .dashboard::before {
                width: 100%;
                height: 165px;
            }

            .sparkline {
                width: 55px;
                height: 22px;
            }

            .financial tbody td .metric {
                gap: 7px;
            }
        }

        /* ==========================================
        RESPONSIVE - CELULARES
        ========================================== */

        @media (max-width: 600px) {

            /* Contenedor principal */
            .dashboard {
                padding: 15px 10px 30px;
            }

            /* Encabezados de las tablas */
            .section-title {
                display: flex;
                flex-direction: row;
                align-items: center;
                gap: 12px;

                min-height: 90px;
                padding: 14px 12px;
            }

            /* Íconos */
            .section-icon {
                width: 42px;
                height: 42px;
                font-size: 21px;
            }

            /* Títulos */
            .section-title h2 {
                font-size: 16px;
                line-height: 1.25;
            }

            /* Subtítulos */
            .section-title p {
                font-size: 11px;
                line-height: 1.4;
            }

            /* Imágenes decorativas */
            .fondo-toro,
            .fondo-moneda {
                background-size: 100% 100%, auto 110%;
            }

            /* Espacios de las tarjetas */
            .section-panel {
                padding: 12px 10px;
            }
        }

      .btn-inicio {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);

            display: inline-flex;
            align-items: center;
            gap: 10px;

            padding: 11px 28px;

            background: linear-gradient(135deg, #0ca678, #087f5b);
            color: #ffffff;

            border: 1px solid rgba(255,255,255,0.15);
            border-radius: 10px;

            font-size: 14px;
            font-weight: 600;
            text-decoration: none;

            box-shadow: 0 4px 15px rgba(12,166,120,0.20);

            transition: background 0.3s ease, box-shadow 0.3s ease;
        }

        .btn-inicio:hover {
            background: linear-gradient(135deg, #20c997, #0ca678);
            color: #ffffff;
            box-shadow: 0 6px 20px rgba(12,166,120,0.40);
        }
        .btn-inicio .bi {
            font-size: 18px;
            color: #ffffff;
            line-height: 1;
        }