
        /* =========================================================
           VARIABLES
        ========================================================= */

        :root {
            --primary: #0b1f3a;
            --primary-2: #123d70;
            --accent: #1769aa;

            --bg: #f4f7fb;
            --card: #ffffff;

            --text: #172033;
            --muted: #64748b;

            --border: #e5eaf1;

            --success: #16845b;
            --danger: #c0392b;

            --shadow-sm: 0 4px 15px rgba(15, 23, 42, .06);
            --shadow: 0 10px 30px rgba(15, 23, 42, .08);

            --radius: 18px;
        }

        * {
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            margin: 0;
            background: var(--bg);
            color: var(--text);
            font-family:
                Inter,
                system-ui,
                -apple-system,
                BlinkMacSystemFont,
                "Segoe UI",
                sans-serif;
        }

        a {
            text-decoration: none;
        }

        /* =========================================================
           NAVBAR
        ========================================================= */

        .main-navbar {
            position: sticky;
            top: 0;
            z-index: 1000;

            background: rgba(11, 31, 58, .96);
            backdrop-filter: blur(12px);

            box-shadow: 0 4px 20px rgba(0,0,0,.12);
        }

        .navbar-brand {
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 700;
            letter-spacing: .2px;
        }

        .navbar-brand img {
            width: 42px;
            height: 42px;
            object-fit: contain;
            border-radius: 10px;
            background: white;
            padding: 3px;
        }

        .nav-link {
            color: rgba(255,255,255,.82) !important;
            font-weight: 500;
            padding: 9px 13px !important;
            border-radius: 10px;
            transition: .25s ease;
        }

        .nav-link:hover {
            color: white !important;
            background: rgba(255,255,255,.10);
        }

        .nav-link i {
            margin-right: 5px;
        }

        .navbar-toggler {
            border: 1px solid rgba(255,255,255,.25);
        }

        /* =========================================================
           HERO
        ========================================================= */

        .hero {
            position: relative;
            overflow: hidden;
            background: #07182d;
        }

        .hero .carousel-item {
            height: 570px;
        }

        .hero img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .hero .carousel-item::after {
            content: "";
            position: absolute;
            inset: 0;

            background:
                linear-gradient(
                    90deg,
                    rgba(5,18,35,.90) 0%,
                    rgba(5,18,35,.68) 45%,
                    rgba(5,18,35,.15) 100%
                );
        }

        .hero-content {
            position: absolute;
            z-index: 3;

            top: 50%;
            left: 0;

            transform: translateY(-50%);

            width: 100%;
        }

        .hero-content-inner {
            max-width: 760px;
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 7px;

            padding: 8px 14px;
            border-radius: 50px;

            background: rgba(255,255,255,.12);
            border: 1px solid rgba(255,255,255,.22);

            color: white;
            font-size: .85rem;
            font-weight: 600;

            backdrop-filter: blur(8px);
        }

        .hero h1 {
            margin-top: 18px;
            margin-bottom: 18px;

            color: white;
            font-size: clamp(2.2rem, 5vw, 4.4rem);
            line-height: 1.05;
            font-weight: 800;
        }

        .hero p {
            max-width: 680px;

            color: rgba(255,255,255,.85);

            font-size: 1.15rem;
            line-height: 1.7;
        }

        .hero-buttons {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;

            margin-top: 28px;
        }

        .btn-hero-primary {
            background: white;
            color: var(--primary);

            border: none;

            padding: 12px 22px;
            border-radius: 12px;

            font-weight: 700;

            transition: .25s ease;
        }

        .btn-hero-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0,0,0,.2);
        }

        .btn-hero-secondary {
            background: rgba(255,255,255,.08);
            color: white;

            border: 1px solid rgba(255,255,255,.35);

            padding: 12px 22px;
            border-radius: 12px;

            font-weight: 600;

            backdrop-filter: blur(8px);
        }

        .btn-hero-secondary:hover {
            background: rgba(255,255,255,.16);
            color: white;
        }

        .carousel-indicators [data-bs-target] {
            width: 9px;
            height: 9px;
            border-radius: 50%;
            border: 0;
        }

        /* =========================================================
           SECCIONES
        ========================================================= */

        .section {
            padding: 70px 0;
        }

        .section-header {
            margin-bottom: 35px;
        }

        .section-label {
            color: var(--accent);
            font-size: .78rem;
            font-weight: 800;
            letter-spacing: .14em;
            text-transform: uppercase;
        }

        .section-title {
            margin: 7px 0 8px;

            font-size: clamp(1.8rem, 3vw, 2.5rem);
            font-weight: 800;

            color: var(--primary);
        }

        .section-description {
            color: var(--muted);
            max-width: 720px;
        }

        /* =========================================================
           ACCESOS
        ========================================================= */

        .resource-card {
            height: 100%;

            display: flex;
            flex-direction: column;

            padding: 25px;

            background: var(--card);
            border: 1px solid var(--border);
            border-radius: var(--radius);

            box-shadow: var(--shadow-sm);

            transition:
                transform .25s ease,
                box-shadow .25s ease,
                border-color .25s ease;
        }

        .resource-card:hover {
            transform: translateY(-6px);
            box-shadow: var(--shadow);
            border-color: rgba(23,105,170,.25);
        }

        .resource-icon {
            width: 58px;
            height: 58px;

            display: flex;
            align-items: center;
            justify-content: center;

            margin-bottom: 18px;

            background: #edf5fc;
            border-radius: 15px;
        }

        .resource-icon img {
            max-width: 36px;
            max-height: 36px;
            object-fit: contain;
        }

        .resource-card h5 {
            margin-bottom: 7px;

            color: var(--primary);
            font-weight: 750;
        }

        .resource-card p {
            color: var(--muted);
            font-size: .9rem;
            margin-bottom: 18px;
        }

        .resource-link {
            margin-top: auto;

            color: var(--accent);
            font-size: .9rem;
            font-weight: 700;
        }

        .resource-link i {
            transition: transform .2s ease;
        }

        .resource-card:hover .resource-link i {
            transform: translateX(4px);
        }

        /* =========================================================
           CARDS GENERALES
        ========================================================= */

        .modern-card {
            height: 100%;

            background: var(--card);
            border: 1px solid var(--border);
            border-radius: var(--radius);

            box-shadow: var(--shadow-sm);

            overflow: hidden;
        }

        .card-header-modern {
            display: flex;
            align-items: center;
            justify-content: space-between;

            padding: 20px 22px;

            border-bottom: 1px solid var(--border);

            background: white;
        }

        .card-header-modern h4,
        .card-header-modern h5 {
            margin: 0;

            color: var(--primary);
            font-weight: 750;
        }

        .card-body-modern {
            padding: 22px;
        }

        /* =========================================================
           NOTICIAS
        ========================================================= */

        .news-box {
            min-height: 320px;
        }

        .news-label {
            display: inline-flex;

            padding: 5px 10px;

            border-radius: 50px;

            background: #edf5fc;
            color: var(--accent);

            font-size: .72rem;
            font-weight: 800;
            text-transform: uppercase;
        }

        /* =========================================================
           INDICADORES
        ========================================================= */

        .indicator-card {
            position: relative;

            height: 100%;

            padding: 20px;

            border-radius: 16px;

            background: #fff;

            border: 1px solid var(--border);

            transition: .25s ease;
        }

        .indicator-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-sm);
        }

        .indicator-top {
            display: flex;
            align-items: center;
            justify-content: space-between;

            margin-bottom: 13px;
        }

        .indicator-name {
            color: var(--muted);
            font-size: .84rem;
            font-weight: 700;
        }

        .indicator-icon {
            width: 34px;
            height: 34px;

            display: flex;
            align-items: center;
            justify-content: center;

            border-radius: 10px;

            background: #edf5fc;
            color: var(--accent);
        }

        .indicator-value {
            color: var(--primary);

            font-size: 1.65rem;
            font-weight: 800;

            line-height: 1.1;
        }

        .indicator-date {
            margin-top: 8px;

            color: var(--muted);
            font-size: .75rem;
        }

        .indicator-source {
            display: inline-block;

            margin-top: 14px;

            color: var(--accent);
            font-size: .76rem;
            font-weight: 700;
        }

        /* =========================================================
           GRÁFICAS
        ========================================================= */

        .chart-wrapper {
            position: relative;
            width: 100%;
            min-height: 330px;
        }

        /* =========================================================
           CONVERSOR   
        ========================================================= */

        .converter-card {
            padding: 30px;

            background:
                linear-gradient(
                    135deg,
                    #0b1f3a 0%,
                    #123d70 100%
                );

            border-radius: var(--radius);

            color: white;

            box-shadow: var(--shadow);
        }

        .converter-card h3 {
            font-weight: 800;
        }

        .converter-card p {
            color: rgba(255,255,255,.75);
        }

        .converter-label {
            color: rgba(255,255,255,.75);
            font-size: .82rem;
            font-weight: 700;
            margin-bottom: 7px;
        }

        .converter-card .form-control,
        .converter-card .form-select {
            min-height: 50px;

            border: none;
            border-radius: 12px;

            box-shadow: none;
        }

        .swap-button {
            width: 44px;
            height: 44px;

            border: 1px solid rgba(255,255,255,.25);
            border-radius: 50%;

            background: rgba(255,255,255,.10);
            color: white;

            transition: .25s ease;
        }

        .swap-button:hover {
            background: rgba(255,255,255,.2);
            transform: rotate(180deg);
        }

        .convert-button {
            min-height: 50px;

            border: none;
            border-radius: 12px;

            background: white;
            color: var(--primary);

            font-weight: 800;
        }

        .convert-button:hover {
            background: #edf3fa;
            color: var(--primary);
        }

        .conversion-result {
            margin-top: 25px;
            padding: 20px;

            background: rgba(255,255,255,.08);
            border: 1px solid rgba(255,255,255,.15);
            border-radius: 14px;

            text-align: center;
        }

        .conversion-result .amount {
            font-size: 1.8rem;
            font-weight: 800;
        }

        .conversion-result .rate {
            margin-top: 7px;

            color: rgba(255,255,255,.68);
            font-size: .82rem;
        }

        /* =========================================================
           MERCADOS
        ========================================================= */

        .market-ticker {
            overflow: hidden;

            border-radius: 14px;

            box-shadow: var(--shadow-sm);
        }

        /* =========================================================
           UMA
        ========================================================= */

        .uma-image {
            width: 80%;
            max-height: 400px;

            object-fit: contain;

            border-radius: 12px;
        }

        /* =========================================================
           CLIMA
        ========================================================= */

        .weather-container {
            min-height: 180px;
        }

        /* =========================================================
           FOOTER
        ========================================================= */

        .footer-wrapper {
            margin-top: 30px;
        }

        /* =========================================================
           BOTÓN ARRIBA
        ========================================================= */

        #btnSubir {
            position: fixed;

            right: 25px;
            bottom: 25px;

            width: 48px;
            height: 48px;

            display: none;
            align-items: center;
            justify-content: center;

            z-index: 9999;

            border: none;
            border-radius: 50%;

            background: var(--primary);
            color: white;

            box-shadow: 0 8px 25px rgba(0,0,0,.2);

            transition: .25s ease;
        }

        #btnSubir:hover {
            background: var(--accent);
            transform: translateY(-3px);
        }

        /* =========================================================
           RESPONSIVE
        ========================================================= */

        @media (max-width: 991px) {

            .hero .carousel-item {
                height: 500px;
            }

            .hero-content {
                padding: 0 25px;
            }

            .navbar-nav {
                padding-top: 12px;
                padding-bottom: 10px;
            }
        }

        @media (max-width: 767px) {

            .section {
                padding: 50px 0;
            }

            .hero .carousel-item {
                height: 560px;
            }

            .hero h1 {
                font-size: 2.35rem;
            }

            .hero p {
                font-size: 1rem;
            }

            .hero-buttons {
                flex-direction: column;
                align-items: stretch;
            }

            .btn-hero-primary,
            .btn-hero-secondary {
                text-align: center;
            }

            .converter-card {
                padding: 22px;
            }
        }

        /* =========================================================
           DARK MODE
        ========================================================= */

        body.dark-mode {
            --bg: #0b1220;
            --card: #111a2b;
            --text: #e8eef8;
            --muted: #94a3b8;
            --border: #223047;

            background: var(--bg);
            color: var(--text);
        }

        body.dark-mode .modern-card,
        body.dark-mode .resource-card,
        body.dark-mode .indicator-card,
        body.dark-mode .card-header-modern {
            background: var(--card);
            border-color: var(--border);
        }

        body.dark-mode .section-title,
        body.dark-mode .resource-card h5,
        body.dark-mode .indicator-value,
        body.dark-mode .card-header-modern h4,
        body.dark-mode .card-header-modern h5 {
            color: #f1f5f9;
        }

        body.dark-mode .resource-icon,
        body.dark-mode .indicator-icon {
            background: #17253b;
        }

        body.dark-mode .form-control,
        body.dark-mode .form-select {
            background: #17253b;
            color: white;
            border-color: #2a3b56;
        }

        body.dark-mode .form-select option {
            background: #17253b;
            color: white;
        }

        /* =========================================================
           ANIMACIÓN
        ========================================================= */

        .fade-up {
            animation: fadeUp .7s ease both;
        }

        @keyframes fadeUp {
            from {
                opacity: 0;
                transform: translateY(18px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }


/* =========================================================
   MÓDULOS COMPACTOS
========================================================= */

.compact-card {
    border-radius: 16px;
}

.compact-header {
    padding: 15px 20px;
}

.compact-body {
    padding: 16px 20px;
}


/* =========================================================
   TIPOS DE CAMBIO
========================================================= */

.market-ticker {
    min-height: 55px;
    max-height: 65px;

    overflow: hidden;

    border-radius: 10px;
}


/* =========================================================
   CLIMA
========================================================= */

.weather-card-body {
    min-height: 150px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.weather-container {
    width: 100%;
    min-height: 120px;

    display: flex;
    justify-content: center;
    align-items: center;
}


/* =========================================================
   CETES
========================================================= */

.cetes-body {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 155px;

    overflow: hidden;
}

.cetes-image-link {
    display: block;

    width: 100%;
    max-width: 650px;

    text-align: center;
}

.cetes-image {
    display: block;

    width: 100%;
    max-height: 170px;

    object-fit: contain;

    border-radius: 10px;

    transition: transform .25s ease;
}

.cetes-image-link:hover .cetes-image {
    transform: scale(1.015);
}


/* =========================================================
   UMA
========================================================= */

.uma-body {
    display: flex;

    justify-content: center;
    align-items: center;

    overflow: hidden;
}

.uma-container {
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;
}

.uma-image {
    display: block;

    width: auto;
    max-width: 100%;
    height: auto;

    max-height: 320px;

    object-fit: contain;

    border-radius: 10px;

    box-shadow: 0 4px 15px rgba(15, 23, 42, .06);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {

    .compact-header {
        padding: 14px 16px;
    }

    .compact-body {
        padding: 14px 16px;
    }

    .uma-image {
        max-height: 450px;
    }

}


@media (max-width: 767px) {

    .compact-header {
        padding: 13px 15px;
    }

    .compact-header h5 {
        font-size: 1rem;
    }

    .compact-body {
        padding: 12px 15px;
    }

    .market-ticker {
        min-height: 50px;
        max-height: 60px;
    }

    .weather-card-body {
        min-height: 130px;
    }

    .cetes-body {
        min-height: 130px;
    }

    .cetes-image {
        max-height: 130px;
    }

    .uma-image {
        max-height: 380px;
    }

}


/* =========================================================
   CETES DIRECTO
========================================================= */

.cetes-card {

    border: 1px solid #dfe6ee !important;

    border-radius: 16px !important;

    overflow: hidden;

    background: #ffffff;

    box-shadow:
        0 5px 20px rgba(15, 23, 42, 0.05);

}


/* =========================================================
   HEADER
========================================================= */

.cetes-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 20px 22px;

    border-bottom: 1px solid #e6ebf1;

}


.cetes-kicker {

    display: block;

    margin-bottom: 5px;

    color: #1769aa;

    font-size: .70rem;

    font-weight: 800;

    letter-spacing: .14em;

}


.cetes-title {

    margin: 0;

    color: #10233f;

    font-size: 1.35rem;

    font-weight: 800;

}


.cetes-external {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    color: #1769aa;

    font-size: .75rem;

    font-weight: 750;

    text-decoration: none;

    transition: .2s ease;

}


.cetes-external:hover {

    color: #0d4f83;

    text-decoration: none;

}


.cetes-external i {

    font-size: .8rem;

}


/* =========================================================
   BODY
========================================================= */

.cetes-body {

    padding: 20px 22px 22px;

}


/* =========================================================
   INTRO
========================================================= */

.cetes-intro {

    display: flex;

    align-items: center;

    gap: 13px;

    margin-bottom: 17px;

}


.cetes-icon {

    width: 43px;

    height: 43px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    border-radius: 10px;

    background: #eaf3fa;

    color: #1769aa;

    font-size: 1rem;

}


.cetes-intro h3 {

    margin: 0 0 3px;

    color: #26364d;

    font-size: .86rem;

    font-weight: 800;

}


.cetes-intro p {

    margin: 0;

    color: #7b8797;

    font-size: .72rem;

    line-height: 1.45;

}


/* =========================================================
   PRODUCTOS
========================================================= */

.cetes-products {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 9px;

}


.cetes-product {

    position: relative;

    display: flex;

    align-items: center;

    gap: 9px;

    min-width: 0;

    padding: 11px 27px 11px 10px;

    border: 1px solid #e1e7ee;

    border-radius: 9px;

    background: #fafcfd;

    color: inherit;

    text-decoration: none;

    transition: .2s ease;

}


.cetes-product:hover {

    border-color: #b8d1e4;

    background: #f4f9fc;

    transform: translateY(-2px);

    text-decoration: none;

}


.cetes-product-icon {

    width: 30px;

    height: 30px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    border-radius: 7px;

    background: #e9f2f8;

    color: #1769aa;

    font-size: .75rem;

}


.cetes-product strong {

    display: block;

    color: #26364d;

    font-size: .71rem;

    font-weight: 800;

}


.cetes-product span {

    display: block;

    margin-top: 2px;

    color: #8b97a6;

    font-size: .59rem;

    line-height: 1.25;

}


.cetes-arrow {

    position: absolute;

    right: 9px;

    color: #b2bdc9;

    font-size: .65rem;

    transition: .2s ease;

}


.cetes-product:hover .cetes-arrow {

    color: #1769aa;

    right: 7px;

}


/* =========================================================
   INFORMACIÓN
========================================================= */

.cetes-info {

    display: flex;

    flex-wrap: wrap;

    gap: 12px 22px;

    margin-top: 17px;

    padding-top: 14px;

    border-top: 1px solid #edf0f4;

}


.cetes-info div {

    display: flex;

    align-items: center;

    gap: 6px;

    color: #687688;

    font-size: .64rem;

}


.cetes-info i {

    color: #2d8a68;

    font-size: .68rem;

}


/* =========================================================
   BOTÓN
========================================================= */

.cetes-action {

    display: flex;

    justify-content: flex-end;

    margin-top: 17px;

}


.btn-cetes {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 8px 14px;

    border-radius: 8px;

    background: #1769aa;

    color: #ffffff;

    font-size: .68rem;

    font-weight: 750;

    text-decoration: none;

    transition: .2s ease;

}


.btn-cetes:hover {

    background: #125786;

    color: #ffffff;

    transform: translateY(-1px);

    text-decoration: none;

}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 800px) {

    .cetes-products {

        grid-template-columns: 1fr;

    }

}


@media (max-width: 500px) {

    .cetes-header {

        padding: 17px;

    }

    .cetes-body {

        padding: 17px;

    }

    .cetes-title {

        font-size: 1.2rem;

    }

    .cetes-info {

        flex-direction: column;

        gap: 7px;

    }

}

/* =========================================================
   CONOCE HPM
========================================================= */

.hpm-info-card {
    overflow: hidden;
}

.hpm-content {
    min-height: 150px;
}

.hpm-image-wrapper {
    width: 125px;
    height: 125px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f8f9fa;

    border-radius: 18px;

    border: 1px solid #e9ecef;

    padding: 18px;
}

.hpm-logo {
    max-width: 100%;
    max-height: 100%;

    object-fit: contain;
}

.hpm-title {
    font-size: 1.25rem;
    font-weight: 600;

    margin-bottom: 8px;
}

.hpm-description {
    color: #6c757d;

    font-size: 0.92rem;

    line-height: 1.5;

    margin-bottom: 12px;

    max-width: 620px;
}

.hpm-details {
    display: flex;

    flex-wrap: wrap;

    gap: 12px 20px;

    margin-bottom: 15px;
}

.hpm-detail {
    display: flex;

    align-items: center;

    gap: 7px;

    font-size: 0.82rem;

    color: #495057;
}

.hpm-detail i {
    color: #0d6efd;

    font-size: 0.95rem;
}

.hpm-button {
    border-radius: 8px;

    font-size: 0.85rem;

    padding: 8px 14px;

    transition: all 0.2s ease;
}

.hpm-button:hover {
    transform: translateY(-1px);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {

    .hpm-info-card {
        margin-top: 20px;
    }

}

@media (max-width: 767px) {

    .hpm-content {
        text-align: center;
    }

    .hpm-details {
        justify-content: center;
    }

    .hpm-description {
        margin-left: auto;
        margin-right: auto;
    }

}


/* =========================================================
   CORRECCIÓN FLECHAS DEL CARRUSEL
========================================================= */

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    z-index: 20;

    width: 8%;

    opacity: 1;

    pointer-events: auto;

    cursor: pointer;
}

#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon {
    width: 38px;
    height: 38px;

    background-size: 100% 100%;
}