/* --- 1. AJUSTES BASE PARA BOOTSTRAP 3 --- */

body {

    padding-top: 152px;
    width: 100%;
    overflow-x: hidden;
    position: relative;
    /* Espacio para ambas navbars (80px gob + 72px nafin) */
}
.row,
.card-service,
.nav-card,
.card-investment-general {
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fad {
    position: relative;
    font-family: "Font Awesome 5 Duotone";
    font-weight: 900;
    margin-top: 11px;
    margin-left: 43px;
}

.row {
    padding: 0;
}

/* --- 2. BARRA SUPERIOR AZUL (NAFIN) --- */
.top-bar {
    background-color: #04667C;
    height: 72px;
    min-height: 72px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    z-index: 1030;

}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-nav ul {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    width: 100%;
}

.list-inline {
    width: 100%;
}

.top-nav a {
    color: white;
    font-size: 1.3rem;
    font-weight: 300;
    text-align: center;
    display: block;
    padding: 10px 12px;
    font-family: 'Noto Sans', sans-serif;
    text-decoration: none;
    position: relative;
    line-height: 1.2;
}

/* AnimaciÃ³n de lÃ­nea en hover[cite: 3] */
.top-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
    transform: translateX(-50%);
}

#nav-list {
    width: 100%
}

.top-nav a:hover::after {
    width: 70%;
}

/* --- Clase para el estado mÃ³vil abierto (Inyectada por JS) --- */
/* NOTA: Sin espacio entre .top-nav y .mobile-open */
.top-nav.mobile-open {
    display: block !important;
    position: absolute !important;
    top: 100% !important;
    /* Se coloca justo debajo de la barra azul[cite: 9] */
    left: 0 !important;
    width: 100% !important;
    /* Ocupa todo el ancho de la pantalla[cite: 9] */
    background-color: #04667C !important;
    /* Color sÃ³lido para que no sea transparente[cite: 9] */
    padding: 20px 0 !important;
    z-index: 9999 !important;
    /* Por encima de carrusel y cards[cite: 9] */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* Ajuste para la lista interna cuando el menÃº estÃ¡ abierto */
.top-nav.mobile-open #nav-list {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px !important;
    padding: 0 !important;
    background-color: #04667C;
    /* ELIMINA margin-left: 30% y margin: 0 -57px */
    margin: 0 auto !important;
    width: 100% !important;
    /* Cambia 249px por 100% */
}

.top-nav.mobile-open li {
    width: 100%;
    text-align: center;
}

.top-nav.mobile-open ul {
    flex-direction: column;
    gap: 20px !important;
    align-items: center;
    display: flex;
}

.top-nav.mobile-open a {
    color: white !important;
    font-size: 1.6rem !important;
    display: block;
    width: 100%;
}

/* Estilo para que el botÃ³n sea visible */
.menu-toggle {
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.menu-toggle i {
    margin: 0 !important;
    /* Limpiamos mÃ¡rgenes internos */
    padding: 4px;
}

/* En mÃ³vil, queremos que los iconos (hamburguesa y bÃºsqueda) 
   estÃ©n en los extremos */
.top-bar-content {
    display: inline !important;
    justify-content: space-between !important;
    align-items: center;
    width: 100%;
    padding: 0 20px;
    margin-top: 2%;
}

/* --- 3. BUSCADOR Y ACCIONES --- */
.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    color: white;
    flex-shrink: 0;
    padding-right: 0;
    margin-left: -3%;
}

.search-icon,
.menu-toggle {
    cursor: pointer;
    font-size: 2.2rem;
    transition: transform 0.2s;
}

.search-icon i {
    padding: 5px 6px;
}

/* Fuerza al contenedor a ocupar espacio fÃ­sico real */
/* Asegura que el colapso sea un bloque sÃ³lido que ocupe espacio */
#bs-example-navbar-collapse-1 {
    position: relative !important;
    z-index: 999;
    overflow: hidden;
}

.search-push-container {
    margin-left: 50%;
}

/* Estilos de la barra de bÃºsqueda */
.search-bar-container {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#search-input {
    border: none;
    outline: none;
    width: 539px;
    padding: 5px 7px;
    font-size: 14px;
}

/* ELIMINA ESTO DE TU CSS VIEJO SI EXISTE: */
/* .search-overlay { position: absolute; top: 100%; } <--- ESTO ES LO QUE CAUSA EL ERROR DEL VIDEO */
#close-search {
    background-color: white;
    border: none;
}

.close-search {
    margin-left: 1%;
}

/* Prueba overlay externo */
/* Estilos para el Buscador Flotante Integrado */
.search-overlay-fixed {
    position: fixed;
    top: 100px;
    /* Un poco mÃ¡s arriba para que la animaciÃ³n se vea que sale de atrÃ¡s */
    left: 0;
    width: 100%;
    height: 70px;
    /* Un poco mÃ¡s delgado para que sea elegante */
    background-color: #04667C;
    /* Mismo azul que tu header */
    z-index: 1020;
    /* Justo debajo de la barra azul (1030) */
    display: flex;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.1);
}

.search-overlay-fixed.active {
    visibility: visible;
    opacity: 1;
    top: 152px;
    /* 80px (barra gob) + 72px (barra azul) */
}

/* Contenedor interno para que el input no sea gigante */
.search-bar-fixed-content {
    display: flex;
    align-items: center;
    background: white;
    padding: 5px 20px;
    border-radius: 25px;
    max-width: 523px;
    /* margin-left: 33%; */
}

.search-bar-fixed-content input {
    border: none;
    outline: none;
    width: 100%;
    padding: 8px;
    font-size: 14px;
}

.search-bar-fixed-content button#close-overlay-fixed {
    border: none;
    background: none;
    cursor: pointer;
    color: #04667C;
    font-size: 18px;
}

#close-overlay-fixed i {
    color: #555555;
    /* AquÃ­ el color que gustes */
}

/* --- 4. LOGO Y SECCIÃ“N PRINCIPAL --- */
.logo-row {
    margin-top: 5%;
    margin-bottom: 36px;
    display: flex;
    align-items: center;
}

.tagline {
    font-size: 2.2rem;
    color: #04667C;
    font-weight: 500;
    font-style: normal;
}

.card-service {
    background: white;
    border-radius: 19px;
    margin-bottom: 30px;
    box-shadow: 0px 0px 8px 1px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    height: 100%;
    min-height: 460px;
    display: flex;
    flex-direction: column;
}

.card-service-financiamiento {
    background: white;
    border-radius: 19px;
    margin-bottom: 30px;
    box-shadow: 0px 0px 8px 1px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    height: 100%;
    min-height: 460px;
    display: flex;
    flex-direction: column;
}

.card-image {
    display: flex;
    overflow: hidden;
    flex-direction: column;
    width: 100%;
    height: 103%;
}

.card-content {
    padding: 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-content-financiamiento {
    padding: 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.btn-primary-financiamiento {
    background-color: #04667C !important;
    border-radius: 10px;
    padding: 10px 25px;
    color: white;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    margin-top: auto;
    box-sizing: border-box;
}

.btn-primary-cursos {
    background-color: #04667C !important;
    border-radius: 10px;
    padding: 10px 25px;
    color: white;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    margin-top: auto;
    box-sizing: border-box;
}

/* Efecto para el botÃ³n de financiamiento */
.btn-primary-financiamiento:hover {
    background-color: #007393 !important;
    /* Un azul mÃ¡s oscuro o el color que prefieras */
    transform: translateY(-2px);
    /* PequeÃ±a elevaciÃ³n */
    transition: all 0.3s ease;
    color: white;
    font-weight: bold;
}

/* Efecto para el botÃ³n de cursos */
.btn-primary-cursos:hover {
    background-color: #007393 !important;
    /* Por ejemplo, el naranja institucional */
    color: white !important;
    transition: all 0.3s ease;
    transform: translateY(-2px);
    /* PequeÃ±a elevaciÃ³n */
    font-weight: bold;
}

.card-content h3 {
    min-height: 80px;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto sans', sans-serif;
    font-size: 2.6rem;
    line-height: 1.2;
}

.card-content-financiamiento h3 {
    min-height: 80px;
    margin-top: -1px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto sans', sans-serif;
}

/* --- FIX: Igualar altura de cards en sección services --- */
.services .row {
    display: flex;
    align-items: stretch;
}

.services .col-xs-6 {
    display: flex;
    flex-direction: column;
}

/* --- 6. SIMULADOR Y CARRUSEL --- */
.simulador-banner-2 {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.simulador-col {
    position: absolute;
    top: 75%;
    left: 38%;
    transform: translateY(-50%);
    width: 14%;
    z-index: 10;
}

.simulador-col img {
    width: 16%;
    height: 16%;
    margin-left: 10%;
}

.btn-responsivo {
    display: inline-flex;
    background-color: white;
    color: #04667C;
    padding: 0.5vw 1.5vw;
    border-radius: 29px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid white;
    font-style: italic;
    align-items: center;
    height: 20%;
    width: 78%;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    white-space: nowrap;
    gap: 0.5vw;
}

/* --- 7. CARDS GRISES (NAVEGACIÃ“N) --- */
/* --- 7. CARDS GRISES (CONTENEDOR) --- */
.cards-container {
    background-color: white;
    padding: 24px 20px;
    border-radius: 15px;
    /* Solo redondeamos las esquinas superiores y derecha */
    border-bottom-left-radius: 0;
    /* La esquina inferior izquierda debe ser recta para la pestaÃ±a */
    margin-bottom: -16px;
    position: relative;
    width: 100%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 5;
}
/* --- ESTILO DE LAS CARDS INDIVIDUALES --- */
.nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #D9D9D9;
    border-radius: 15px;
    padding: 20px 10px;
    margin: 10px 0;
    color: #333;
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 180px;
    /* Altura uniforme para todas las cards[cite: 10] */
}

.nav-card p {
    font-size: 1.8rem;
}

.nav-card img {
    margin-bottom: 15px;
    width: 60px;
    /* TamaÃ±o estandar para los iconos blancos[cite: 10] */
}

.nav-card:hover {
    background-color: #c9c9c9;
    color: #04667C;
    transform: translateY(-5px);
    /* Efecto de elevaciÃ³n al pasar el mouse[cite: 10] */
}


/* --- Estilos de Carrusel Integrados --- */
.carrusel-frame {
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 0;
    margin-top: 7%;
}

.carrusel-slides {
    display: flex;
    width: 600% !important;
    /* Ajustado para 5 slides (4 + 1 clon)[cite: 6, 8] */
    transition: transform 4.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    width: 16.6667% !important;
    /* width:14.2857% !important; */
    /* 100% dividido entre 5 slides[cite: 6, 8] */
    flex-shrink: 0;
    position: relative;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Fuerza a que el contenedor picture no colapse */
.picture-fix {
    display: block;
    width: 100%;
}

.picture-fix img {
    width: 100% !important;
    /* Asegura que se estire al contenedor en escritorio */
    height: auto;
}

/* --- Botones Internos de los Slides --- */
.carrusel-col-eco {
    position: absolute;
    bottom: 15%;
    /* Distancia desde la base del slide[cite: 6] */
    left: 70%;
    /* Lo centramos horizontalmente */
    transform: translateX(-50%);
    /* Ajuste para centrado perfecto */
    z-index: 20;
    width: auto;
}

.boton-carrusel-eco {
    background-color: white;
    color: #04667C;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    text-transform: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
    /* Evita que el texto se parta en dos lÃ­neas[cite: 6] */
    font-size: 1.6rem;
}

.carrusel-col-inter {
    position: absolute;
    bottom: 15%;
    /* Distancia desde la base del slide[cite: 6] */
    left: 70%;
    /* Lo centramos horizontalmente */
    transform: translateX(-50%);
    /* Ajuste para centrado perfecto */
    z-index: 20;
    width: auto;
}

.boton-carrusel-inter {
    background-color: white;
    color: #04667C;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    text-transform: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
    /* Evita que el texto se parta en dos lÃ­neas[cite: 6] */
    font-size: 1.6rem;
}

.carrusel-col-cap {
    position: absolute;
    bottom: 6%;
    left: 70%;
    transform: translateX(-50%);
    z-index: 20;
    width: auto;
}

.boton-carrusel-cap {
    background-color: white;
    color: #04667C;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    text-transform: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
    /* Evita que el texto se parta en dos lÃ­neas[cite: 6] */
    font-size: 1.6rem;
}

.carrusel-col-ciu {
    position: absolute;
    bottom: 15%;
    /* Distancia desde la base del slide[cite: 6] */
    left: 70%;
    /* Lo centramos horizontalmente */
    transform: translateX(-50%);
    /* Ajuste para centrado perfecto */
    z-index: 20;
    width: auto;
}

.boton-carrusel-ciu {
    background-color: #f8991d;
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    text-transform: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
    /* Evita que el texto se parta en dos lÃ­neas[cite: 6] */
    font-size: 1.6rem;
}

/* .carrusel-col-new {
    position: absolute;
    bottom: 15%;
    /* Distancia desde la base del slide[cite: 6] 
    left: 50%;
    /* Lo centramos horizontalmente 
    transform: translateX(-50%);
    /* Ajuste para centrado perfecto 
    z-index: 20;
    width: auto;

} */
/* .boton-carrusel-new{

} */

.boton-carrusel-cap:hover,
.boton-carrusel-eco:hover,
.boton-carrusel-inter:hover {
    background-color: #007393 !important;
    /* Un azul mÃ¡s oscuro o el color que prefieras */
    transform: translateY(-2px);
    /* PequeÃ±a elevaciÃ³n */
    transition: all 0.3s ease;
    color: white;
    font-weight: bold;
}

/* .boton.carrusel-new:hover{

} */

.boton-carrusel-ciu:hover {
    background-color: #fbb252 !important;
    /* Un azul mÃ¡s oscuro o el color que prefieras */
    transform: translateY(-2px);
    /* PequeÃ±a elevaciÃ³n */
    transition: all 0.3s ease;
    color: white;
    font-weight: bold;
}

.carrusel-col-emi {
    position: absolute;
    bottom: 9%;
    /* left:50%; */
    /* bottom: 6%;*/
    left: 70%;
    transform: translateX(-50%);
    z-index: 20;
    width: auto;
}

/* .boton-carrusel-emi {
    background-color: white;
    color: #04667C;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    text-transform: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 1.6rem;
} */

/* --- Flechas de NavegaciÃ³n --- */
.prev,
.next {
    position: absolute;
    top: 90%;
    width: 32px;
    height: 32px;
    background-repeat: no-repeat;
    background-size: cover;
    cursor: pointer;
    z-index: 10;
    transform: translateY(-50%);
    background-color: rgba(4, 102, 124, 0.3);
    border-radius: 20px;
    border: none;
}

.prev {
    background-image: url(assets/arrow_left.svg);
    left: 48%;
}

.next {
    background-image: url(assets/arrow_right.svg);
    right: 48%;
    top: 90%;
}

/* Puntos indicadores */
.indicador {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    margin: 0 5px;
    cursor: pointer;
}

.indicador.active {
    background-color: white;
}

/*CETES Y FONDO*/
/* --- SECCIÃ“N DE INVERSIÃ“N --- */
.investment-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

/*CARD FONDO*/
.card-investment-general {
    position: relative;
    height: 250px;
    min-height: 200px;
    border-radius: 17px;
    overflow: hidden;
    clip-path: inset(0 round 17px);
    -webkit-clip-path: inset(0 round 17px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    left: -8%;
}

.card-investment-general::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradiente radial: centro azul sutil que se desvanece a transparente */
    background: radial-gradient(circle at center,
            rgba(0, 212, 255, 0.5) 0%,
            /* Azul cian brillante al centro */
            rgba(0, 75, 97, 0.8) 40%,
            /* Azul Nafin semi-transparente */
            rgba(0, 75, 97, 0) 10%
            /* Desvanecimiento total */
        );
    opacity: 0;
    /* Invisible por defecto */
    transition: opacity 0.4s ease;
    z-index: 1;
    filter: blur(8px);
}

/* Efecto de elevaciÃ³n al pasar el mouse */
.card-investment-general:hover {
    transform: translateY(-8px) scale(1.05);
    z-index: 10;
}

.card-investment-general:hover::before {
    opacity: 1;
    /* El resplandor radial aparece suavemente */
}

.card-background-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    /* Siempre pegado a la derecha, sin importar el ancho */
    width: 100%;
    /* Ocupa la mitad de la tarjeta */
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0.8);
    transition: transform 0.5s ease;
    /* Aplicamos la mÃ¡scara */
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    /* 1. Forza al navegador a usar aceleraciÃ³n de hardware para el recorte */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* MÃ¡scaras de diseÃ±o */
.fondo-mask {
    background-image: url('assets/fondo_ok_1.png');
    /* Tu imagen real */
    -webkit-mask-image: url('assets/fondo_ok_1.png');
    mask-image: url('assets/fondo_ok_1.png');
}

/* El efecto radial solo para la mÃ¡scara */
.card-background-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, #007392 0%, rgba(0, 150, 130, 0) 70%);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.4s ease;
}

/* Al hacer hover en la tarjeta, activamos el radial de la mÃ¡scara */
.card-investment-general:hover .card-background-wrapper::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.card-content-fondo {

    position: relative;
    z-index: 2;
    padding: 30px;
    width: 350px;
    margin-left: 6%;
}

/* Ajuste de logos */
.card-investment-general img {
    max-height: 80px;
}

.card-investment-general:hover .fondo-mask {
    filter: brightness(0.9) contrast(1.1);
}

/*CARD-CETES*/
/* Ajuste de logos */
.card-investment-general-cetes img {
    max-height: 80px;
}

.card-content-cetes {
    position: relative;
    z-index: 2;
    padding: 30px;
    width: 104%;
    margin-left: -7%;
}

.cetes-mask {
    background-image: url('assets/cetes_ok5.png');
    /* Tu imagen real */
    -webkit-mask-image: url('assets/cetes_ok5.png');
    mask-image: url('assets/cetes_ok5.png');
}

.card-investment-general-cetes {
    position: relative;
    height: 250px;
    min-height: 200px;
    border-radius: 17px;
    overflow: hidden;
    clip-path: inset(0 round 17px);
    -webkit-clip-path: inset(0 round 17px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -55px;
    left: 4%;
}

.card-investment-general-cetes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradiente radial: centro azul sutil que se desvanece a transparente */
    background: radial-gradient(circle at center,
            rgba(0, 212, 255, 0.5) 0%,
            /* Azul cian brillante al centro */
            rgba(0, 75, 97, 0.8) 40%,
            /* Azul Nafin semi-transparente */
            rgba(0, 75, 97, 0) 10%
            /* Desvanecimiento total */
        );
    opacity: 0;
    /* Invisible por defecto */
    transition: opacity 0.4s ease;
    z-index: 1;
    filter: blur(8px);
}

/* Efecto de elevaciÃ³n al pasar el mouse */
.card-investment-general-cetes:hover {
    transform: translateY(-8px) scale(1.05);
    z-index: 10;
}

.card-investment-general-cetes:hover::before {
    opacity: 1;
    /* El resplandor radial aparece suavemente */
}

.card-background-wrapper-cetes {
    position: absolute;
    top: 0;
    left: 0;
    /* Siempre pegado a la derecha, sin importar el ancho */
    width: 100%;
    /* Ocupa la mitad de la tarjeta */
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0.8);
    transition: transform 0.5s ease;
    /* Aplicamos la mÃ¡scara */
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

/* MÃ¡scaras de diseÃ±o */
.fondo-mask {
    background-image: url('assets/fondo_ok_1.png');
    /* Tu imagen real */
    -webkit-mask-image: url('assets/fondo_ok_1.png');
    mask-image: url('assets/fondo_ok_1.png');
}

/* El efecto radial solo para la mÃ¡scara */
.card-background-wrapper-cetes::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, #007392 0%, rgba(0, 150, 130, 0) 100%);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.4s ease;
}

/* Al hacer hover en la tarjeta, activamos el radial de la mÃ¡scara */
.card-investment-general-cetes:hover .card-background-wrapper-cetes::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/*BOTON AYUDA*/
.fab-container {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    display: flex;
    flex-direction: column-reverse;
    /* Alinea de abajo hacia arriba */
    align-items: center;
    gap: 15px;
    z-index: 9999 !important;
}

/* Estilo de los bullets negros */
.fab-options {
    position: absolute;
    bottom: 0;
    /* Empieza desde el fondo del contenedor azul */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column-reverse;
    gap: 15px;

    /* Estado Oculto */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.fab-item {
    width: 45px;
    height: 45px;
    background-color: #333;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.fab-item:hover {
    transform: scale(1.1);
    background-color: #444;
}

/* El primer icono sale rÃ¡pido, los siguientes con delay */
.fab-item:nth-child(1) {
    transition-delay: 0.05s;
}

.fab-item:nth-child(2) {
    transition-delay: 0.1s;
}

.fab-item:nth-child(3) {
    transition-delay: 0.15s;
}

.fab-item:nth-child(4) {
    transition-delay: 0.2s;
}

/* BotÃ³n azul principal */
.help-button {
    width: 60px;
    height: 60px;
    background-color: #04667C;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
    /* Asegura que estÃ© por encima de la sombra de los otros */
}

/* CUANDO ESTÃ ACTIVO (Esta es la parte que el JS dispara) */
.fab-container.active .fab-options {
    opacity: 1 !important;
    visibility: visible !important;
    bottom: 75px !important;
    /* <--- Esto es lo que los hace SUBIR */
    pointer-events: auto;
}

.fab-container.active .help-button {
    transform: rotate(45deg);
    /* Opcional: el icono azul gira un poco */
}

/* --- 8. PIE DE PÃGINA (FOOTER) --- */
.footer-nafin {
    background-color: #7a7a7a;
    color: #fff;
    padding: 40px 0;
}

/* Forzar que todos los tÃ­tulos tengan el mismo estilo */
.footer-nafin h4 {
    font-size: 16px;
    display: inline-block;
    margin-bottom: 8px;
    padding-bottom: 2px;
    width: auto;
    line-height: 1.1;
    margin-top: 20%;
}

/* Quitar puntos de las listas y alinear a la izquierda */
.footer-nafin ul {
    padding-left: 0;
    list-style: none;
    padding-bottom: 10%;
}

.footer-nafin ul li {
    margin-bottom: 8px;
    font-size: 13px;
}

.footer-nafin a {
    color: white;
    text-decoration: none;
}

.text-social-links {
    width: 100%;
}

.text-social-links h4 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: -2px;
    margin-top: 7%;
}

.social-links-nafin {
    /* Activamos Flexbox para alinear hijos horizontalmente */
    display: flex !important;
    /* Forzamos que la direcciÃ³n sea siempre fila (horizontal) */
    flex-direction: row !important;
    /* Evitamos que se bajen a la siguiente lÃ­nea si el espacio es poco */
    flex-wrap: nowrap !important;
    /* AlineaciÃ³n al inicio (izquierda) */
    justify-content: flex-start !important;
    /* Espacio entre los cÃ­rculos de los iconos */
    gap: 12px;
    margin-top: 20px;
}

.social-links-nafin a {
    /* Esto centra el icono de la red social dentro de su cÃ­rculo blanco */
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: #ffffff;
    border-radius: 50%;
    color: #04667C;
    /* Color azul NAFIN para el icono */
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-links-nafin a:hover {
    transform: scale(1.1);
}

.logos-transparencia {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    justify-content: left;
    max-width: 400px;
}

.logos-transparencia img {
    height: 35px;
    filter: brightness(1);
    /* Hacer logos blancos/grises */
    object-fit: contain;
}

.copyright {
    margin-top: 3%;
    border-top: 1px solid #7a7a7a;
    padding-top: 20px;
    text-align: center;
    color: #fff;
    font-size: 1rem;
    margin-bottom: -3%;
    margin-left: 3%;
}

/* --- LIMPIEZA FOOTER GOBIERNO (Guinda) --- */
.footer-gobierno {
    background-color: #611232 !important;
    /* Color oficial */
    color: #fff !important;
    /* padding: 40px 0; */
    overflow: hidden;
    /* Evita que elementos se salgan */
}

/* Corregir el cuadro negro y textos encimados de tu captura */
.footer-gobierno .container {
    display: block !important;
}

.footer-gobierno .row {
    margin-right: -15px;
    margin-left: -15px;
}

.footer-gobierno h2,
.footer-gobierno h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Arreglar la secciÃ³n de redes sociales negra que sale a la derecha */
.footer-gobierno .footer-social-icons,
.footer-gobierno .social-networks {
    background: transparent !important;
    position: relative !important;
    display: inline-block;
    width: auto;
}

.footer-gobierno a {
    color: #fff !important;
    text-decoration: none;
}

/*BOTON ACCESIBILIDAD*/
.nafin-accessibility {
    position: fixed;
    top: 50%;
    /* Centrado verticalmente */
    right: 0;
    transform: translateY(-50%);
    background-color: #611232;
    /* El guinda institucional de Nafin */
    padding: 10px;
    border-radius: 8px 0 0 8px;
    /* Redondeado solo del lado izquierdo */
    cursor: pointer;
    z-index: 9999;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* EL CÃRCULO BLANCO */
.nafin-accessibility .icon-circle {
    width: 40px;
    height: 40px;
    background-color: #f1ecef;
    /* Blanco hueso/grisÃ¡ceo como la captura */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* EL ICONO DENTRO DEL CÃRCULO */
.nafin-accessibility i {
    color: #611232;
    /* El icono toma el color guinda del fondo */
    font-size: 24px;
}

/* EFECTO AL PASAR EL MOUSE */
.nafin-accessibility:hover {
    padding-right: 20px;
    /* Se desplaza un poco al tocarlo */
    background-color: #611232;
}

/* --- NUEVO DISEÃ‘O DE PANEL DE ACCESIBILIDAD DETALLADO --- */
.accesibilidad-panel {
    position: fixed;
    top: 0;
    right: -320px;
    /* Ancho ajustado */
    height: 100vh;
    /* Alto total de la pantalla */
    width: 300px;
    background-color: #e6e6e6;
    /* Fondo gris claro de tu captura */
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transition: right 0.4s ease-out;
    font-family: 'Open Sans', 'Noto Sans', sans-serif;
    /* TipografÃ­as del framework */
    display: flex;
    flex-direction: column;
}

.accesibilidad-panel.active {
    right: 0;
    /* Deslizar hacia adentro */
}

/* Encabezado del Panel */
.panel-header-nafin {
    background-color: #611232;
    /* Guinda mÃ¡s claro de la captura */
    padding: 10px;
    position: relative;
    border-radius: 8px 0 0 0;
}

.back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tooltip-text {
    position: absolute;
    top: 100%;
    left: 10px;
    background: white;
    color: #333;
    padding: 2px 8px;
    font-size: 0.8rem;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin-top: 5px;
}

/* Cuerpo del Panel - Lista de Ã­tems */
.panel-body-nafin {
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Espaciado vertical entre Ã­tems */
    overflow-y: auto;
    /* Permite scroll si la pantalla es pequeÃ±a */
    flex-grow: 1;
}

/* Item individual */
.access-item {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    text-align: left;
    width: 100%;
    padding: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.access-item:hover {
    background-color: #f0f0f0;
}

/* El cuadrado de color del icono */
.icon-square {
    width: 45px;
    height: 45px;
    background-color: transparent;
    /* Color rosa deslavado de la captura */
    color: #333;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-right: 15px;
    flex-shrink: 0;
}

/* Texto descriptivo deslavado */
.access-item .text {
    color: #a0848a;
    /* Color de texto deslavado */
    font-size: 0.95rem;
    line-height: 1.2;
    font-weight: 500;
}

/* Estilos especÃ­ficos para los botones de tamaÃ±o de fuente */
.fontsize-item {
    cursor: default;
}

.btn-font {
    margin-right: 5px;
    font-weight: bold;
    cursor: pointer;
    border: none;
}

.btn-font:hover {
    background-color: #cf95a6;
}

/* --- ---------------10. RESPONSIVE --- */
@media (max-width: 991px) {
    body {
        padding-top: 140px;
    }
    .top-nav {
        display: none;
    }

    /* Se activa vÃ­a JS con .mobile-open[cite: 2] */

    .top-nav.mobile-open {
        display: block !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #04667C;
        padding: 20px;
    }

    .tagline {
        display: none;
    }

    .btn-primary-financiamiento:hover {
        background-color: #007393 !important;
        /* Un azul mÃ¡s oscuro o el color que prefieras */
        transform: translateY(-2px);
        /* PequeÃ±a elevaciÃ³n */
        transition: all 0.3s ease;
        color: white;
        font-weight: bolda;
    }

    /* Efecto para el botÃ³n de cursos */
    .btn-primary-cursos:hover {
        background-color: #007393 !important;
        /* Por ejemplo, el naranja institucional */
        color: white !important;
        transition: all 0.3s ease;
        transform: translateY(-2px);
        /* PequeÃ±a elevaciÃ³n */
        font-weight: bold;
    }

    .carrusel-slides {
        display: flex;
        width: 600% !important;
        /* Ajustado para 5 slides (4 + 1 clon)[cite: 6, 8] */
        transition: transform 4.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .search-push-container {
        display: flex !important;
        justify-content: flex-end !important;
        /* Mueve la barra a la derecha */
        padding: 15px 0;
    }

    .search-bar-container {
        width: 400px !important;
        /* Ancho fijo o ajustable para escritorio */
        margin: 0 !important;
        /* Quitamos el margin auto que lo centra */
    }
}


/* 3. Tablets / Pantallas medianas (max 1024px) */
@media (min-width: 1024px) and (max-width:1400px) {
    .top-bar {
        height: auto;
        display: flex;
        align-items: center;
        min-height: 72px;
        padding: 5px 0;
    }

    .top-nav {
        display: block !important;
    }

    .top-nav ul {
        display: flex !important;
        flex-direction: row !important;
        /* flex-wrap: wrap !important; */
        justify-content: center !important;
        gap: 5px 25px;
        width: 100% !important;
        margin-left: 67px !important;
        font-size: 2.4rem;
    }

    .top-nav li {
        flex: 0 1 auto;
        text-align: center;
        max-width: 170px;
    }

    .search-bar-container {
        background-color: white;
        display: flex;
        align-items: center;
        padding: -5px 15px;
        border-radius: 15px;
        width: 100%;
        max-width: 600px;
        margin-left: 0%;
    }

    /* Asegura que el colapso sea un bloque sÃ³lido que ocupe espacio */
    #bs-example-navbar-collapse-1 {
        position: relative !important;
        z-index: 999;
        overflow: hidden;
    }

    .search-push-container {
        margin-left: -22%;
        width: 62%;
    }

    /* Prueba overlay externo */
    /* Estilos para el Buscador Flotante Integrado */
    .search-overlay-fixed {
        position: fixed;
        top: 100px;
        /* Un poco mÃ¡s arriba para que la animaciÃ³n se vea que sale de atrÃ¡s */
        left: 0;
        width: 100%;
        height: 70px;
        /* Un poco mÃ¡s delgado para que sea elegante */
        background-color: #04667C;
        /* Mismo azul que tu header */
        z-index: 1020;
        /* Justo debajo de la barra azul (1030) */
        display: flex;
        align-items: center;
        visibility: hidden;
        opacity: 0;
        transition: all 0.3s ease-in-out;
        box-shadow: 0 8px 10px rgba(0, 0, 0, 0.1);
    }

    .search-overlay-fixed.active {
        visibility: visible;
        opacity: 1;
        top: 150px;
        /* 80px (barra gob) + 72px (barra azul) */
    }

    /* Contenedor interno para que el input no sea gigante */
    .search-bar-fixed-content {
        display: flex;
        align-items: center;
        background: white;
        padding: 5px 20px;
        border-radius: 25px;
        max-width: 523px;
        margin-left: 45%;
    }

    .search-bar-fixed-content input {
        border: none;
        outline: none;
        width: 100%;
        padding: 8px;
        font-size: 14px;
    }

    .search-bar-fixed-content button#close-overlay-fixed {
        border: none;
        background: none;
        cursor: pointer;
        color: #04667C;
        font-size: 18px;
    }

    .header-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 20px;
        color: white;
    }

    .card-content-financiamiento p {
        margin-top: 2%;
    }

    .btn-primary-financiamiento {
        margin-top: 6%;
    }

    .btn-primary-financiamiento:hover {
        background-color: #007393 !important;
        /* Un azul mÃ¡s oscuro o el color que prefieras */
        transform: translateY(-2px);
        /* PequeÃ±a elevaciÃ³n */
        transition: all 0.3s ease;
        color: white;
        font-weight: bold;
    }

    /* Efecto para el botÃ³n de cursos */
    .btn-primary-cursos:hover {
        background-color: #007393 !important;
        /* Por ejemplo, el naranja institucional */
        color: white !important;
        transition: all 0.3s ease;
        transform: translateY(-2px);
        /* PequeÃ±a elevaciÃ³n */
        font-weight: bold;
    }

    .card-service {
        background: white;
        border-radius: 16px;
        margin-bottom: 30px;
        box-shadow: 0px 0px 2px 2px rgba(0, 0, 0, 0.2);
        transition: 0.3s;
        height: 100%;
        min-height: 433px;
        display: flex;
        flex-direction: column;
    }

    .card-service-financiamiento {
        background: white;
        border-radius: 16px;
        margin-bottom: 30px;
        box-shadow: 0px 0px 2px 2px rgba(0, 0, 0, 0.2);
        transition: 0.3s;
        height: 100%;
        min-height: 433px;
        display: flex;
        flex-direction: column;
    }

    /* 1. Estilo base (Escritorio - mayor a 1440px) */
    .simulador-col {
        position: absolute;
        left: 45%;
        top: 66%;
        transform: translate(-50%, -50%);
        width: 40%;
    }

    .simulador-col img {
        margin-left: 4%;
    }

    .btn-responsivo {
        padding: 0px 25px;
        font-size: 1.8rem;
        display: inline-flex;
        align-items: center;
        width: 48%;
        margin-top: 15%;
        margin-left: 26%;
    }

    .nav-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: #D9D9D9;
        border-radius: 15px;
        padding: 20px 10px;
        margin: 10px 0;
        color: #333;
        font-size: 1.2rem;
        font-weight: bold;
        text-decoration: none;
        transition: all 0.3s ease;
        min-height: 180px;
    }

    .card-investment-general-cetes img {
        margin-top: -2%;
        width: 76%;
    }

    .card-investment-general img {
        margin-top: -2%;
    }

    .cetes-mask {
        width: 100%;
        height: 92%;
    }

    .fondo-mask {
        width: 100%;
        height: 90%;
    }

    .card-investment-general::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* Gradiente radial: centro azul sutil que se desvanece a transparente */
        background: radial-gradient(circle at center,
                rgba(0, 212, 255, 0.5) 0%,
                /* Azul cian brillante al centro */
                rgba(0, 75, 97, 0.8) 20%,
                /* Azul Nafin semi-transparente */
                rgba(0, 75, 97, 0) 40%
                /* Desvanecimiento total */
            );
        opacity: 0;
        /* Invisible por defecto */
        transition: opacity 0.4s ease;
        z-index: 1;
        filter: blur(15px);
    }

    .card-investment-general-cetes::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;

        opacity: 0;
        /* Invisible por defecto */
        transition: opacity 0.4s ease;
        z-index: 1;
        filter: blur(20px);
    }

    .nav-card p {
        font-size: 1.6rem;
    }

    .carrusel-slides {
        display: flex;
        width: 600% !important;
        /* Ajustado para 5 slides (4 + 1 clon)[cite: 6, 8] */
        transition: transform 4.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .prev {
        width: 31px;
        height: 31px;
        margin-top: 1%;
        margin-left: 0%;
        background-color: rgba(4, 102, 124, 0.3);
    }

    .boton-carrusel-ciu,
    .boton-carrusel-eco,
    .boton-carrusel-inter{
        margin-left: 36%;
        margin-bottom: -16%;
    }

    /* .boton-carrusel-new {
        margin-left: 98%;
        margin-bottom: -16%;
    } */

    .next {
        width: 31px;
        height: 31px;
        margin-top: 1%;
        margin-right: -25px;
        background-color: rgba(4, 102, 124, 0.3);
    }

    .copyright {
        font-size: 1.2rem;
    }

    /* .boton-carrsuel-emi{
    margin-left: 98%;
    margin-bottom: -16%;
} */
}

/* 2. Laptops / Pantallas grandes (max 1440px) */
@media (min-width:1901px) and (max-width: 2900px) {
    .fad {
        position: relative;
        font-family: "Font Awesome 5 Duotone";
        font-weight: 900;
        margin-top: 11px;
        margin-left: 43px;
    }

    .nav-card p {
        font-size: 1.9rem;
        font-weight: 500;
    }

    .main-content {
        margin-top: -2%;
    }

    .search-push-container {
        /* margin-left:-190%; */
        margin-left: -88%;
    }

    /* Prueba overlay externo */
    /* Estilos para el Buscador Flotante Integrado */
    .search-overlay-fixed {
        position: fixed;
        top: 100px;
        /* Un poco mÃ¡s arriba para que la animaciÃ³n se vea que sale de atrÃ¡s */
        left: 0;
        width: 100%;
        height: 70px;
        /* Un poco mÃ¡s delgado para que sea elegante */
        background-color: #04667C;
        /* Mismo azul que tu header */
        z-index: 1020;
        /* Justo debajo de la barra azul (1030) */
        display: flex;
        align-items: center;
        visibility: hidden;
        opacity: 0;
        transition: all 0.3s ease-in-out;
        box-shadow: 0 8px 10px rgba(0, 0, 0, 0.1);
    }

    .search-overlay-fixed.active {
        visibility: visible;
        opacity: 1;
        top: 146px;
    }

    #bs-example-navbar-collapse-1 {
        position: relative !important;
        z-index: 999;
        overflow: hidden;
        margin-top: -0.5%;
    }

    /* Contenedor interno para que el input no sea gigante */
    .search-bar-fixed-content {
        display: flex;
        align-items: center;
        background: white;
        padding: 5px 14px;
        border-radius: 25px;
        max-width: 523px;
        margin-left: 54%;
    }

    .search-bar-fixed-content input {
        border: none;
        outline: none;
        width: 100%;
        padding: 8px;
        font-size: 14px;
    }

    .search-bar-fixed-content button#close-overlay-fixed {
        border: none;
        background: none;
        cursor: pointer;
        color: #04667C;
        font-size: 18px;
    }

    .btn-primary-financiamiento:hover {
        background-color: #007393 !important;
        /* Un azul mÃ¡s oscuro o el color que prefieras */
        transform: translateY(-2px);
        /* PequeÃ±a elevaciÃ³n */
        transition: all 0.3s ease;
        color: white;
        font-weight: bold;
    }

    .btn-primary-cursos {
        margin-top: 7%;
    }

    /* Efecto para el botÃ³n de cursos */
    .btn-primary-cursos:hover {
        background-color: #007393 !important;
        /* Por ejemplo, el naranja institucional */
        color: white !important;
        transition: all 0.3s ease;
        transform: translateY(-2px);
        /* PequeÃ±a elevaciÃ³n */
        font-weight: bold;
    }

    .simulador-col {
        width: 43%;
    }

    .btn-responsivo {

        padding: 0px 32px;
        font-size: 1.8rem;
        display: inline-flex;
        align-items: center;
        width: 25%;
        margin-top: 15%;
        margin-left: 26%;
    }

    .btn-responsivo img {
        width: 1.2vw;
        height: auto;
        flex-shrink: 0;
        margin-left: 3%;
    }

    .search-bar-container {
        background-color: white;
        display: flex;
        align-items: center;
        padding: -5px 15px;
        border-radius: 15px;
        width: 100%;
        max-width: 600px;
        margin-left: 58%;
    }

    .close-search i {
        margin-left: -28%;
    }

    .prev {
        width: 31px;
        height: 31px;
        margin-top: 1%;
        margin-left: 0%;
        background-color: rgba(4, 102, 124, 0.3);
    }



    .next {
        width: 31px;
        height: 31px;
        margin-top: 1%;
        margin-right: -11px;
        background-color: rgba(4, 102, 124, 0.3);
    }

    .carrusel-slides {
        display: flex;
        width: 600% !important;
        /* Ajustado para 5 slides (4 + 1 clon)[cite: 6, 8] */
        transition: transform 4.5s cubic-bezier(0.4, 0, 0.2, 1);
    }


    .card-investment-general::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* Gradiente radial: centro azul sutil que se desvanece a transparente */
        background: radial-gradient(circle at center,
                rgba(0, 212, 255, 0.5) 0%,
                /* Azul cian brillante al centro */
                rgba(0, 75, 97, 0.8) 40%,
                /* Azul Nafin semi-transparente */
                rgba(0, 75, 97, 0) 70%
                /* Desvanecimiento total */
            );
        opacity: 0;
        /* Invisible por defecto */
        transition: opacity 0.4s ease;
        z-index: 1;
        filter: blur(15px);
    }

    .card-investment-general-cetes::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* Gradiente radial: centro azul sutil que se desvanece a transparente */
        background: radial-gradient(circle at center,
                rgba(0, 212, 255, 0.5) 0%,
                /* Azul cian brillante al centro */
                rgba(0, 75, 97, 0.8) 40%,
                /* Azul Nafin semi-transparente */
                rgba(0, 75, 97, 0) 70%
                /* Desvanecimiento total */
            );
        opacity: 0;
        /* Invisible por defecto */
        transition: opacity 0.4s ease;
        z-index: 1;
        filter: blur(20px);
    }

    .card-investment-general img {
        margin-top: -2%;
    }

    .card-investment-general-cetes img {
        margin-top: -2%;
    }

    .cetes-mask {
        width: 100%;
        height: 100%;
    }

    .fondo-mask {
        width: 100%;
        height: 100%;
    }

    .btn-primary-financiamiento {
        margin-top: 8%;
    }
}

/* 2. Laptops / Pantallas grandes (max 1440px) */
@media (min-width:1440px) and (max-width: 1900px) {
    .fad {
        position: relative;
        font-family: "Font Awesome 5 Duotone";
        font-weight: 900;
        margin-top: 11px;
        margin-left: 43px;
    }

    .nav-card p {
        font-size: 1.9rem;
        font-weight: 500;
    }

    .main-content {
        margin-top: -2%;
    }

    .search-push-container {
        margin-left: -2%;
    }

    /* Prueba overlay externo */
    /* Estilos para el Buscador Flotante Integrado */
    .search-overlay-fixed {
        position: fixed;
        top: 100px;
        /* Un poco mÃ¡s arriba para que la animaciÃ³n se vea que sale de atrÃ¡s */
        left: 0;
        width: 100%;
        height: 70px;
        /* Un poco mÃ¡s delgado para que sea elegante */
        background-color: #04667C;
        /* Mismo azul que tu header */
        z-index: 1020;
        /* Justo debajo de la barra azul (1030) */
        display: flex;
        align-items: center;
        visibility: hidden;
        opacity: 0;
        transition: all 0.3s ease-in-out;
        box-shadow: 0 8px 10px rgba(0, 0, 0, 0.1);
    }

    .search-overlay-fixed.active {
        visibility: visible;
        opacity: 1;
        top: 147px;
        /* 80px (barra gob) + 72px (barra azul) */
    }

    /* Contenedor interno para que el input no sea gigante */
    .search-bar-fixed-content {
        display: flex;
        align-items: center;
        background: white;
        padding: 5px 14px;
        border-radius: 25px;
        max-width: 523px;
        margin-left: 54%;
    }

    .search-bar-fixed-content input {
        border: none;
        outline: none;
        width: 100%;
        padding: 8px;
        font-size: 14px;
    }

    .search-bar-fixed-content button#close-overlay-fixed {
        border: none;
        background: none;
        cursor: pointer;
        color: #04667C;
        font-size: 18px;
    }

    #bs-example-navbar-collapse-1 {
        position: relative !important;
        z-index: 999;
        overflow: hidden;
        margin-top: -0.5%;
    }

    .btn-primary-financiamiento:hover {
        background-color: #007393 !important;
        /* Un azul mÃ¡s oscuro o el color que prefieras */
        transform: translateY(-2px);
        /* PequeÃ±a elevaciÃ³n */
        transition: all 0.3s ease;
        color: white;
        font-weight: bold;
    }

    .btn-primary-cursos {
        margin-top: 3%;
    }

    .btn-primary-financiamiento {
        margin-top: 4%;
    }

    /* Efecto para el botÃ³n de cursos */
    .btn-primary-cursos:hover {
        background-color: #007393 !important;
        /* Por ejemplo, el naranja institucional */
        color: white !important;
        transition: all 0.3s ease;
        transform: translateY(-2px);
        /* PequeÃ±a elevaciÃ³n */
        font-weight: bold;
    }

    .simulador-col {
        width: 43%;
    }

    .btn-responsivo {
        padding: 0px 25px;
        font-size: 1.8rem;
        display: inline-flex;
        align-items: center;
        width: 32%;
        margin-top: 15%;
        margin-left: 26%;
    }

    .btn-responsivo img {
        width: 16%;
        height: 16%;
        margin-left: 4%;
    }

    .search-bar-container {
        background-color: white;
        display: flex;
        align-items: center;
        padding: -5px 15px;
        border-radius: 15px;
        width: 100%;
        max-width: 600px;
        margin-left: 58%;
    }

    .close-search i {
        margin-left: -28%;
    }

    .prev {
        width: 31px;
        height: 31px;
        margin-top: 1%;
        margin-left: 0%;
        background-color: rgba(4, 102, 124, 0.3);
    }

    .next {
        width: 31px;
        height: 31px;
        margin-top: 1%;
        margin-right: -11px;
        background-color: rgba(4, 102, 124, 0.3);
    }

    .carrusel-slides {
        display: flex;
        width: 600% !important;
        /* Ajustado para 5 slides (4 + 1 clon)[cite: 6, 8] */
        transition: transform 4.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .boton-carrusel-ciu,
    .boton-carrusel-eco,
    .boton-carrusel-inter {
        margin-bottom: -5%;
    }

    /* .boton-carrusel-emi {
        margin-bottom: 1%;
    } */

    /* .boton-carrusel-new{
        margin-left: 600px;
        /* margin-left: 600px; 
        margin-bottom: 1%;
    } */

    .card-investment-general::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* Gradiente radial: centro azul sutil que se desvanece a transparente */
        background: radial-gradient(circle at center,
                rgba(0, 212, 255, 0.5) 0%,
                /* Azul cian brillante al centro */
                rgba(0, 75, 97, 0.8) 40%,
                /* Azul Nafin semi-transparente */
                rgba(0, 75, 97, 0)21%
                /* Desvanecimiento total */
            );
        opacity: 0;
        /* Invisible por defecto */
        transition: opacity 0.4s ease;
        z-index: 1;
        filter: blur(15px);
    }

    .card-investment-general-cetes::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* Gradiente radial: centro azul sutil que se desvanece a transparente */
        background: radial-gradient(circle at center,
                rgba(0, 212, 255, 0.5) 0%,
                /* Azul cian brillante al centro */
                rgba(0, 75, 97, 0.8) 40%,
                /* Azul Nafin semi-transparente */
                rgba(0, 75, 97, 0) 21%
                /* Desvanecimiento total */
            );
        opacity: 0;
        /* Invisible por defecto */
        transition: opacity 0.4s ease;
        z-index: 1;
        filter: blur(20px);
    }

    .card-investment-general img {
        margin-top: -2%;
    }

    .card-investment-general-cetes img {
        margin-top: -2%;
    }

    .cetes-mask {
        width: 100%;
        height: 100%;
    }

    .fondo-mask {
        width: 100%;
        height: 100%;
    }
}

/* 2. Laptops / Pantallas grandes (max 1440px) */
@media (min-width:768px) and (max-width: 1439px) {
    .fad {
        position: relative;
        font-family: "Font Awesome 5 Duotone";
        font-weight: 900;
        margin-top: 11px;
        margin-left: 338px;
    }

    .nav-card p {
        font-size: 1.9rem;
        font-weight: 500;
    }

    .main-content {
        margin-top: -2%;
    }

    .search-push-container {
        margin-left: -2%;
    }

    /* Prueba overlay externo */
    /* Estilos para el Buscador Flotante Integrado */
    .search-overlay-fixed {
        position: fixed;
        top: 100px;
        /* Un poco mÃ¡s arriba para que la animaciÃ³n se vea que sale de atrÃ¡s */
        left: 0;
        width: 100%;
        height: 70px;
        /* Un poco mÃ¡s delgado para que sea elegante */
        background-color: #04667C;
        /* Mismo azul que tu header */
        z-index: 1020;
        /* Justo debajo de la barra azul (1030) */
        display: flex;
        align-items: center;
        visibility: hidden;
        opacity: 0;
        transition: all 0.3s ease-in-out;
        box-shadow: 0 8px 10px rgba(0, 0, 0, 0.1);
    }

    .search-overlay-fixed.active {
        visibility: visible;
        opacity: 1;
        top: 150px;
    }

    /* Contenedor interno para que el input no sea gigante */
    .search-bar-fixed-content {
        display: flex;
        align-items: center;
        background: white;
        padding: 5px 14px;
        border-radius: 25px;
        max-width: 523px;
        margin-left: 54%;
    }

    .search-bar-fixed-content input {
        border: none;
        outline: none;
        width: 100%;
        padding: 8px;
        font-size: 14px;
    }

    .search-bar-fixed-content button#close-overlay-fixed {
        border: none;
        background: none;
        cursor: pointer;
        color: #04667C;
        font-size: 18px;
    }

    #bs-example-navbar-collapse-1 {
        position: relative !important;
        z-index: 999;
        overflow: hidden;
        margin-top: -0.5%;
    }

    .btn-primary-financiamiento:hover {
        background-color: #007393 !important;
        /* Un azul mÃ¡s oscuro o el color que prefieras */
        transform: translateY(-2px);
        /* PequeÃ±a elevaciÃ³n */
        transition: all 0.3s ease;
        color: white;
        font-weight: bold;
    }

    .btn-primary-cursos {
        margin-top: 4%
    }

    /* Efecto para el botÃ³n de cursos */
    .btn-primary-cursos:hover {
        background-color: #007393 !important;
        /* Por ejemplo, el naranja institucional */
        color: white !important;
        transition: all 0.3s ease;
        transform: translateY(-2px);
        /* PequeÃ±a elevaciÃ³n */
        font-weight: bold;
    }

    .simulador-col {
        width: 43%;
    }

    .btn-responsivo {
        padding: 0px 18px;
        font-size: 1.6rem;
        display: inline-flex;
        align-items: center;
        width: 41%;
        margin-top: 15%;
        margin-left: 26%;
    }

    .btn-responsivo img {
        width: 16%;
        height: 16%;
        margin-left: 7%;
    }

    .search-bar-container {
        background-color: white;
        display: flex;
        align-items: center;
        padding: -5px 15px;
        border-radius: 15px;
        width: 100%;
        max-width: 600px;
        margin-left: 58%;
    }

    .close-search i {
        margin-left: -28%;
    }

    .prev {
        width: 31px;
        height: 31px;
        margin-top: 1%;
        margin-left: 0%;
        background-color: rgba(4, 102, 124, 0.3);
    }

    .next {
        width: 31px;
        height: 31px;
        margin-top: 1%;
        margin-right: -22px;
        background-color: rgba(4, 102, 124, 0.3);
    }

    .carrusel-slides {
        display: flex;
        width: 600% !important;
        /* Ajustado para 5 slides (4 + 1 clon)[cite: 6, 8] */
        transition: transform 4.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* .boton-carrusel-emi {
        margin-bottom: 5px;
        width: auto;
        font-size: 1.6rem;
        height: 11%;
        padding: 10px 25px;
        justify-content: center;
        text-align: center;
        align-items: center;
    
    } */

    /* .boton-carrusel-new{
                /* margin-bottom: -23px; 
                margin-bottom: 5px;
                width: 154px;
                font-size: 1.3rem;
                height: 11%;
                padding: 8px 25px;
                margin-left: 358px;
                justify-content: center;
                text-align: center;
                align-items: center;
                /* margin-bottom: 155px;
    } */

    .card-investment-general::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* Gradiente radial: centro azul sutil que se desvanece a transparente */
        background: radial-gradient(circle at center,
                rgba(0, 212, 255, 0.5) 0%,
                /* Azul cian brillante al centro */
                rgba(0, 75, 97, 0.8) 20%,
                /* Azul Nafin semi-transparente */
                rgba(0, 75, 97, 0) 20%
                /* Desvanecimiento total */
            );
        opacity: 0;
        /* Invisible por defecto */
        transition: opacity 0.4s ease;
        z-index: 1;
        filter: blur(15px);
    }

    .card-investment-general-cetes::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* Gradiente radial: centro azul sutil que se desvanece a transparente */
        background: radial-gradient(circle at center,
                rgba(0, 212, 255, 0.5) 0%,
                /* Azul cian brillante al centro */
                rgba(0, 75, 97, 0.8) 20%,
                /* Azul Nafin semi-transparente */
                rgba(0, 75, 97, 0) 40%
                /* Desvanecimiento total */
            );
        opacity: 0;
        /* Invisible por defecto */
        transition: opacity 0.4s ease;
        z-index: 1;
        filter: blur(20px);
    }

    .card-investment-general img {
        margin-top: -2%;
    }

    .card-investment-general-cetes img {
        margin-top: -2%;
    }

    .cetes-mask {
        width: 100%;
        height: 100%;
    }

    .fondo-mask {
        width: 100%;
        height: 100%;
    }
}


@media (max-width: 767px) {
    .header-actions {
        justify-content: flex-end !important;
    }

    .logo-row {
        display: flex;
        flex-direction: column;
        text-align: center !important;
        margin-top: 6%;
        width: 92%;
        margin-left: 3%;
    }
    .logo-row .col-sm-6 {
        width: 100%;
        text-align: center !important;
    }

    .tagline {
        display: block;
        font-size: 1.8rem;
        /* TamaÃ±o mÃ¡s pequeÃ±o para que quepa en 320px */
        margin-top: 10px;
    }

    /* 1. Ocultamos las imÃ¡genes de las tarjetas */
    .services .card-image {
        display: none !important;
    }

    .btn-primary-financiamiento:hover {
        background-color: #007393 !important;
        /* Un azul mÃ¡s oscuro o el color que prefieras */
        transform: translateY(-2px);
        /* PequeÃ±a elevaciÃ³n */
        transition: all 0.3s ease;
        color: white;
        font-weight: bold;
    }

    /* Efecto para el botÃ³n de cursos */
    .btn-primary-cursos:hover {
        background-color: #007393 !important;
        /* Por ejemplo, el naranja institucional */
        color: white !important;
        transition: all 0.3s ease;
        transform: translateY(-2px);
        /* PequeÃ±a elevaciÃ³n */
        font-weight: bold;
    }

    /* 2. Ajustamos la altura de las tarjetas ya que no tienen foto */
    .card-service,
    .card-service-financiamiento {
        min-height: 250px !important;
        /* Altura mÃ¡s pequeÃ±a para mÃ³vil */
        height: auto !important;
        margin-bottom: 15px;
        box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.4);
    }

    /* 3. Ajustamos el contenido de texto para que quepa bien */
    .card-content,
    .card-content-financiamiento {
        padding: 10px !important;
    }

    .card-content h3,
    .card-content-financiamiento h3 {
        font-size: 1.6rem;
        min-height: 50px !important;
    }

    /* 4. Ajustamos los botones para que no se desborden */
    .btn-primary-financiamiento,
    .btn-primary-cursos {
        width: 90% !important;
        font-size: 1.2rem;
        padding: 8px 5px !important;
    }
}

@media (min-width:768px) and (max-width: 1023px) {

    .logo-row {
        display: flex;
        flex-direction: column;
        /* Apila el logo y el texto verticalmente */
        text-align: center !important;
        align-items: center;
        margin-top: 15%;
    }

    .main-content {
        margin-top: -15%;
    }

    .logo-row .col-sm-4,
    .logo-row .col-sm-8 {
        width: 100%;
        text-align: center !important;
        float: none;
        margin-bottom: 10px;
    }

    /* Prueba overlay externo */
    /* Estilos para el Buscador Flotante Integrado */
    .search-overlay-fixed {
        position: fixed;
        top: 100px;
        /* Un poco mÃ¡s arriba para que la animaciÃ³n se vea que sale de atrÃ¡s */
        left: 0;
        width: 100%;
        height: 70px;
        /* Un poco mÃ¡s delgado para que sea elegante */
        background-color: #04667C;
        /* Mismo azul que tu header */
        z-index: 1020;
        /* Justo debajo de la barra azul (1030) */
        display: flex;
        align-items: center;
        visibility: hidden;
        opacity: 0;
        transition: all 0.3s ease-in-out;
        box-shadow: 0 8px 10px rgba(0, 0, 0, 0.1);
    }

    .search-overlay-fixed.active {
        visibility: visible;
        opacity: 1;
        top: 145px;
    }

    /* Contenedor interno para que el input no sea gigante */
    .search-bar-fixed-content {
        display: flex;
        align-items: center;
        background: white;
        padding: 5px 20px;
        border-radius: 25px;
        max-width: 523px;
        margin-left: 5%;
    }

    .search-bar-fixed-content input {
        border: none;
        outline: none;
        width: 100%;
        padding: 8px;
        font-size: 14px;
    }

    .search-bar-fixed-content button#close-overlay-fixed {
        border: none;
        background: none;
        cursor: pointer;
        color: #04667C;
        font-size: 18px;
    }

    .logo-main {
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 87%;
        /* Ajuste para que no se vea gigante al apilarse en 768px */
        margin-top: 9%;
    }

    .tagline {
        display: block;
        font-size: 2.7rem;
        margin-top: 10px;
        margin-left: 7%;
    }

    .search-bar-container {
        background-color: white;
        display: flex;
        align-items: center;
        padding: -5px 15px;
        border-radius: 15px;
        width: 100%;
        max-width: 600px;
        margin-left: 0%;
    }

    /* Asegura que el colapso sea un bloque sÃ³lido que ocupe espacio */
    #bs-example-navbar-collapse-1 {
        position: relative !important;
        z-index: 999;
        overflow: hidden;
        margin-top: 0%;
        /* La animaciÃ³n de altura de Bootstrap harÃ¡ el resto */
    }

    .search-push-container {
        margin-left: 2%;
    }

    .card-service-financiamiento {
        min-height: 100px;
    }

    .card-service {
        min-height: 100px;
    }

    .card-content-financiamiento h3 {
        min-height: 80px;
        margin-top: -15px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: 'Noto sans', sans-serif;
        font-size: 2.2rem;
    }

    .card-content h3 {
        min-height: 84px;
        margin-top: -15px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: 'Noto sans', sans-serif;
        font-size: 2rem;
    }

    .card-content-financiamiento p {
        margin-top: -8px;
        font-family: 'Noto sans', sans-serif;
        font-size: 1.7rem;
    }

    .card-content p {
        margin-top: -9px;
        font-family: 'Noto sans', sans-serif;
        font-size: 1.7rem;
    }

    .btn-primary-financiamiento:hover {
        background-color: #007393 !important;
        /* Un azul mÃ¡s oscuro o el color que prefieras */
        transform: translateY(-2px);
        /* PequeÃ±a elevaciÃ³n */
        transition: all 0.3s ease;
        color: white;
        font-weight: bold;
    }

    /* Efecto para el botÃ³n de cursos */
    .btn-primary-cursos:hover {
        background-color: #007393 !important;
        /* Por ejemplo, el naranja institucional */
        color: white !important;
        transition: all 0.3s ease;
        transform: translateY(-2px);
        /* PequeÃ±a elevaciÃ³n */
        font-weight: bold;
    }

    .btn-primary-financiamiento {
        margin-top: 5%;
    }

    .simulador-col {
        width: 60%;
        /* Ajustado para que el botÃ³n tenga espacio */
    }

    .btn-responsivo {
        padding: 0px 18px;
        font-size: 1.3rem;
        width: 33%;
        margin-left: -13%;
        margin-top: 3%;
    }

    .btn-responsivo img {
        width: 17%;
        height: 17%;
    }

    .search-bar-container {
        background-color: white;
        display: flex;
        align-items: center;
        padding: -5px 15px;
        border-radius: 15px;
        width: 100%;
        max-width: 600px;
        margin-left: 10%;
    }

    .boton-carrusel-ciu,
    .boton-carrusel-eco,
    .boton-carrusel-inter {
        margin-bottom: -23px;
        width: 154px;
        font-size: 1.3rem;
        height: 11%;
        padding: 7px 26px;
        margin-left: 28%;
        justify-content: center;
        text-align: center;
        align-items: center;
    }

    .boton-carrusel-cap {
        width: 154px;
        font-size: 1.3rem;
        height: 11%;
        padding: 7px 26px;
        margin-left: 28%;
        justify-content: center;
        text-align: center;
        align-items: center;
    }
/* 
    .boton-carrusel-emi {
        width: 154px;
        font-size: 1.3rem;
        height: 11%;
        padding: 7px 26px;
        margin-left: 28%;
        justify-content: center;
        text-align: center;
        align-items: center;
    } */

    .top-nav.mobile-open {
        display: block !important;
        position: absolute !important;
        top: 24px !important;
        left: -25px !important;
        width: 768px !important;
        background-color: #04667C !important;
        padding: 20px 0 !important;
        z-index: 9999 !important;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
        margin-top: 0 !important;
        margin-left: 0 !important;
    }

    .top-nav.mobile-open #nav-list {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    .top-nav.mobile-open li {
        width: 100%;
        text-align: center;
    }

    .top-nav.mobile-open a {
        font-size: 1.6rem !important;
        padding: 15px 0;
        display: block;
    }

    .fad {
        position: relative;
        font-family: "Font Awesome 5 Duotone";
        font-weight: 900;
        margin-top: 21px;
        left: -50px;
    }

    .investment-section {
        margin-left: 0;
        margin-top: 20px;
        transform: none;
        width: 100%;
        min-height: unset;
    }

    .card-investment-general {
        position: relative;
        height: 331px;
        border-radius: 17px;
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        left: 0;
        width: 90%;
        margin-top: 0;
        margin-left: -5%;
        margin-bottom: -55px;
        transform: none;
    }

    .card-investment-general-cetes {
        position: relative;
        height: 306px;
        border-radius: 17px;
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        left: 0;
        width: 90%;
        margin-top: 0;
        margin-left: 5%;
        margin-bottom: 15px;
        transform: none;
    }

    .card-investment-general::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at center, rgba(0, 212, 255, 0.5) 0%,
                /* Azul cian brillante al centro */
                rgba(0, 75, 97, 0.8) 25%,
                /* Azul Nafin semi-transparente */
                rgba(0, 75, 97, 0) 0%
                /* Desvanecimiento total */
            );
        opacity: 0;
        transition: opacity 0.4s ease;
        z-index: 1;
        filter: blur(15px);
    }

    .card-investment-general-cetes::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at center, rgba(0, 212, 255, 0.5) 0%,
                /* Azul cian brillante al centro */
                rgba(0, 75, 97, 0.8) 25%,
                /* Azul Nafin semi-transparente */
                rgba(0, 75, 97, 0) 0%
                /* Desvanecimiento total */
            );
        opacity: 0;
        transition: opacity 0.4s ease;
        z-index: 1;
        filter: blur(15px);
    }

    .card-content-fondo {
        margin-left: 7%;
    }

    .card-background-wrapper {
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 86%;
        background-size: cover;
        background-position: center;
        filter: brightness(0.8);
        transition: transform 0.5s ease;
        -webkit-mask-size: contain;
        mask-size: contain;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-position: center;
        mask-position: center;
        border-radius: 17px;
        overflow: hidden;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        clip-path: inset(0 round 17px);
        -webkit-clip-path: inset(0 round 17px);
    }

    .card-background-wrapper-cetes {
        position: absolute;
        top: 0;
        right: 0;
        width: 99%;
        height: 95%;
        background-size: cover;
        background-position: center;
        filter: brightness(0.8);
        transition: transform 0.5s ease;
        -webkit-mask-size: contain;
        mask-size: contain;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-position: center;
        mask-position: center;
        border-radius: 17px;
    }

    .card-investment-general img {
        max-height: 67px;
        margin-top: -16%;
    }

    .card-investment-general-cetes img {
        max-height: 75px;
        margin-top: -3%;
        margin-left: 1%;
    }

    .prev {
        width: 28px;
        height: 28px;
        margin-top: 0%;
        margin-left: -3%;
        background-color: rgba(4, 102, 124, 0.3);
    }



    .next {
        width: 28px;
        height: 28px;
        margin-top: 0%;
        margin-right: -17px;
        background-color: rgba(4, 102, 124, 0.3);
    }

    .carrusel-slides {
        display: flex;
        width: 600% !important;
        /* Ajustado para 5 slides (4 + 1 clon)[cite: 6, 8] */
        transition: transform 4.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .search-overlay.active {
        display: flex !important;
        top: 58px !important;
    }

    .copyright {
        font-size: 1.2rem;
        margin-left: 2%;
    }
}


@media (min-width:424px) {
    .card-content-fondo img {
        margin-left: 12%;
        /* margin-top: 2%; */
        width: 80%;
    }

    .card-content-cetes img {
        margin-left: 9%;
        margin-top: 3%;
        width: 80%;
    }
}

@media (min-width:500px) and (max-width:687px) {
    .header-actions {
        display: flex !important;
        justify-content: flex-end !important;
        padding-right: 15px !important;
        margin-right: -337px !important;
        gap: 20px !important;

    }

    /* Prueba overlay externo */
    /* Estilos para el Buscador Flotante Integrado */
    .search-overlay-fixed {
        position: fixed;
        top: 100px;
        /* Un poco mÃ¡s arriba para que la animaciÃ³n se vea que sale de atrÃ¡s */
        left: 0;
        width: 100%;
        height: 70px;
        /* Un poco mÃ¡s delgado para que sea elegante */
        background-color: #04667C;
        /* Mismo azul que tu header */
        z-index: 1020;
        /* Justo debajo de la barra azul (1030) */
        display: flex;
        align-items: center;
        visibility: hidden;
        opacity: 0;
        transition: all 0.3s ease-in-out;
        box-shadow: 0 8px 10px rgba(0, 0, 0, 0.1);
    }

    .search-overlay-fixed.active {
        visibility: visible;
        opacity: 1;
        top: 147px;
    }

    /* Contenedor interno para que el input no sea gigante */
    .search-bar-fixed-content {
        display: flex;
        align-items: center;
        background: white;
        padding: 5px 31px;
        border-radius: 25px;
        max-width: 532px;
        margin-left: 0%;
    }

    .search-bar-fixed-content input {
        border: none;
        outline: none;
        width: 231px;
        padding: 8px;
        font-size: 14px;
    }

    .search-bar-fixed-content button#close-overlay-fixed {
        border: none;
        background: none;
        cursor: pointer;
        color: #04667C;
        font-size: 18px;
    }

    .card-content h3 {
        min-height: 80px;
        margin-top: -5px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: 'Noto sans', sans-serif;
        font-size: 2.3rem;
    }
    .tagline {
        display: block;
        font-size: 1.7rem;
        margin-top: 4px;
        margin-bottom: -4%;
    }

    .card-content p {
        font-size: 1.5rem;
    }

    .close-search {
        margin-left: 1%;
    }

    .simulador-col {
        width: 80%;
    }

    .btn-responsivo img {
        width: 19%;
        height: 19%;
        margin-left: 5%;
        margin-top: -2%;
    }

    #search-input {
        border: none;
        outline: none;
        width: 100%;
        padding: 5px 7px;
        font-size: 16px;
    }

    .btn-primary-financiamiento:hover {
        background-color: #007393 !important;
        /* Un azul mÃ¡s oscuro o el color que prefieras */
        transform: translateY(-2px);
        /* PequeÃ±a elevaciÃ³n */
        transition: all 0.3s ease;
        color: white;
        font-weight: bold;
    }

    /* Efecto para el botÃ³n de cursos */
    .btn-primary-cursos:hover {
        background-color: #007393 !important;
        /* Por ejemplo, el naranja institucional */
        color: white !important;
        transition: all 0.3s ease;
        transform: translateY(-2px);
        /* PequeÃ±a elevaciÃ³n */
        font-weight: bold;
    }

    .btn-responsivo {
        padding: 0px 6px;
        font-size: .9rem;
        width: 25%;
        margin-left: 29%;
        margin-top: 2%;
    }

    .prev {
        width: 23px;
        height: 23px;
        margin-top: -1%;
        margin-left: -5%;
        background-color: rgba(4, 102, 124, 0.3);
    }

    .next {
        width: 23px;
        height: 23px;
        margin-top: -1%;
        margin-right: -22px;
        background-color: rgba(4, 102, 124, 0.3);
    }

    .carrusel-slides {
        display: flex;
        width: 600% !important;
        /* Ajustado para 5 slides (4 + 1 clon)[cite: 6, 8] */
        transition: transform 4.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .boton-carrusel-eco {
        width: 93%;
        font-size: 1.2rem;
        height: 27%;
        /* padding: 13px 51px; */
        margin-left: 7px;
        justify-content: center;
        text-align: center;
        align-items: center;
        margin-top: 62px;
        margin-bottom: 35px;
    }

    .boton-carrusel-inter {
        width: 93%;
        font-size: 1.2rem;
        height: 27%;
        /* padding: 13px 51px; */
        margin-left: 7px;
        justify-content: center;
        text-align: center;
        align-items: center;
        margin-top: 62px;
        margin-bottom: 1px;
    }

    .boton-carrusel-ciu {
        width: 93%;
        font-size: 1.2rem;
        height: 27%;
        /* padding: 13px 51px; */
        margin-left: 7px;
        justify-content: center;
        text-align: center;
        align-items: center;
        margin-top: 62px;
        margin-bottom: 66px;
    }

    .boton-carrusel-cap {
        width: 156px;
        font-size: 1.2rem;
        height: 27%;
        padding: 10px 30px;
        margin-left: -185px;
        justify-content: center;
        text-align: center;
        align-items: center;
        margin-top: 58px;
        margin-bottom: 85px;
    }

    /* .boton-carrusel-emi {
        width: 93%;
        font-size: 1.2rem;
        height: 27%;
        /* padding: 13px 51px; 
        margin-left: 7px;
        justify-content: center;
        text-align: center;
        align-items: center;
        margin-top: 62px;
        margin-bottom: 59px;
    } */

    /* .boton-carrusel-new{
                width: 93%;
                font-size: 1.2rem;
                height: 27%;
                /* padding: 13px 51px; 
                margin-left: 7px;
                justify-content: center;
                text-align: center;
                align-items: center;
                margin-top: 62px;
                margin-bottom: 59px;
            }  */
    .fad {
        position: relative;
        font-family: "Font Awesome 5 Duotone";
        font-weight: 900;
        margin-top: 20px;
        margin-left: 250px;
        /* margin-right: 11%; */
        left: -182px;
    }

    .search-overlay.active {
        display: flex !important;
        top: 58px !important;
    }

    .header-actions {
        justify-content: flex-end !important;
    }

    .top-bar {
        position: fixed !important;
        top: 80px !important;
        left: 0;
        width: 100%;
        z-index: 10020 !important;
    }

    /* Asegura que el colapso sea un bloque sÃ³lido que ocupe espacio */
    #bs-example-navbar-collapse-1 {
        position: relative !important;
        z-index: 999;
        overflow: hidden;
        margin-top: 0%;
        /* La animaciÃ³n de altura de Bootstrap harÃ¡ el resto */
    }

    .search-push-container {
        margin-right: 8%;
        margin-left: 14%;
    }

    /* Estilos de la barra de bÃºsqueda */
    .search-bar-container {
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .top-nav.mobile-open {
        display: block !important;
        position: fixed !important;
        top: 130px !important;
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        max-height: calc(100vh - 152px);
        background-color: #04667C !important;
        padding: 10px 0 !important;
        z-index: 10010 !important;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
        margin: 0 !important;
        overflow-y: auto;
    }

    .top-nav.mobile-open #nav-list {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 auto !important;
        /* Centra la lista[cite: 4] */
    }

    .top-nav.mobile-open li {
        width: 100%;
        text-align: center;
    }

    .top-nav.mobile-open a {
        font-size: 1.6rem !important;
        padding: 15px 0;
        display: block;
    }

    /* 1. Ocultamos las imÃ¡genes de las tarjetas */
    .services .card-image {
        display: none !important;
    }

    /* 2. Ajustamos la altura de las tarjetas ya que no tienen foto */
    .card-service {
        min-height: 133px !important;
        height: auto !important;
        margin-bottom: 15px;
        border-radius: 5px;
    }

    .card-service-financiamiento {
        min-height: 133px !important;
        height: auto !important;
        margin-bottom: 15px;
        border-radius: 5px;
    }

    /* 3. Ajustamos el contenido de texto para que quepa bien */
    .card-content,
    .card-content-financiamiento {
        padding: 10px !important;
    }

    .card-content-financiamiento h3 {
        font-size: 1.6rem;
        min-height: 50px !important;
        margin-top: 2%;
    }

    .card-content h3 {
        font-size: 1.5rem;
        min-height: 50px !important;
        margin-top: 3%;
    }

    .card-content p {
        font-size: 1.6rem;
        min-height: 50px !important;
        margin-top: 8%;
    }

    .card-content-financiamiento p {
        font-size: 1.6rem;
        min-height: 50px !important;
        margin-top: 3%;
    }

    /* 4. Ajustamos los botones para que no se desborden */
    .btn-primary-financiamiento {
        width: 90% !important;
        font-size: 1.2rem !important;
        padding: 8px 5px !important;
        margin-left: 5%;
        margin-top: 5%;
    }

    .btn-primary-cursos {
        width: 90% !important;
        font-size: 1.2rem !important;
        padding: 8px 5px !important;
        margin-top: 4%;
        margin-left: 5%;
    }

    .btn-primary-financiamiento:hover {
        background-color: #007393 !important;
        /* Un azul mÃ¡s oscuro o el color que prefieras */
        transform: translateY(-2px);
        /* PequeÃ±a elevaciÃ³n */
        transition: all 0.3s ease;
        color: white;
        font-weight: bold;
    }

    /* Efecto para el botÃ³n de cursos */
    .btn-primary-cursos:hover {
        background-color: #007393 !important;
        /* Por ejemplo, el naranja institucional */
        color: white !important;
        transition: all 0.3s ease;
        transform: translateY(-2px);
        /* PequeÃ±a elevaciÃ³n */
        font-weight: bold;
    }

    .nav-card p {
        font-size: 1.8rem;
    }

    .investment-section {
        margin-left: 0%;
        margin-top: -77px;
        transform: rotate(90deg);
        padding: 0 0 0 0px;
        width: 90%;
        height: 100%;
        /* min-width: 307px; */
        min-height: 417px;
    }

    .card-investment-general {
        position: relative;
        height: 189px;
        border-radius: 17px;
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: -16px;
        /* left: 74%; */
        width: 97%;
        margin-top: -150px;
        margin-left: 376px;
    }

    .card-investment-general-cetes {
        position: relative;
        height: 189px;
        border-radius: 17px;
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: -51px;
        left: 0%;
        margin-left: 20%;
        width: 97%;
    }

    .card-investment-general::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* Gradiente radial: centro azul sutil que se desvanece a transparente */
        background: radial-gradient(circle at center,
                rgba(0, 212, 255, 0.5) 0%,
                /* Azul cian brillante al centro */
                rgba(0, 75, 97, 0.8) 10%,
                /* Azul Nafin semi-transparente */
                rgba(0, 75, 97, 0) 0%
                /* Desvanecimiento total */
            );
        opacity: 0;
        /* Invisible por defecto */
        transition: opacity 0.4s ease;
        z-index: 1;
        filter: blur(15px);
    }

    .card-investment-general-cetes::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* Gradiente radial: centro azul sutil que se desvanece a transparente */
        background: radial-gradient(circle at center,
                rgba(0, 212, 255, 0.5) 0%,
                /* Azul cian brillante al centro */
                rgba(0, 75, 97, 0.8) 10%,
                /* Azul Nafin semi-transparente */
                rgba(0, 75, 97, 0) 0%
                /* Desvanecimiento total */
            );
        opacity: 0;
        /* Invisible por defecto */
        transition: opacity 0.4s ease;
        z-index: 1;
        filter: blur(15px);
    }

    .card-content-fondo {
        margin-left: 9%;
        transform: rotate(-90deg);
        width: 62%;
        margin-top: -6%;
    }

    .card-content-cetes {
        margin-left: -45%;
        margin-top: -13%;
        transform: rotate(-90deg);
        width: 68%;
    }

    .card-content-fondo img {
        /* margin-left: 13%;
        margin-top: 25%;
        width: 70%; */
        margin-left: 9%;
        margin-top: 88px;
        width: 144px;
    }

    .card-content-cetes img {
        /* margin-left: 10%;
        margin-top: 19%;
        width: 78%; */
        margin-left: 5%;
        margin-top: 67px;
        width: 160px;
    }

    .card-background-wrapper {
        position: absolute;
        top: 0;
        right: 0;
        width: 388px;
        height: 199px;
        background-size: cover;
        background-position: center;
        filter: brightness(0.8);
        transition: transform 0.5s ease;
        -webkit-mask-size: contain;
        /* mask-size: contain; */
        -webkit-mask-size: 70% 88%;
        -webkit-mask-repeat: no-repeat;
        /* mask-repeat: no-repeat; */
        -webkit-mask-position: center;
        mask-position: center;
        border-radius: 17px;
    }

    .card-background-wrapper-cetes {
        position: absolute;
        top: 0;
        right: 0;
        width: 388px;
        height: 199px;
        background-size: cover;
        background-position: center;
        filter: brightness(0.8);
        transition: transform 0.5s ease;
        -webkit-mask-size: contain;
        /* mask-size: contain; */
        -webkit-mask-size: 70% 88%;
        -webkit-mask-repeat: no-repeat;
        /* mask-repeat: no-repeat; */
        -webkit-mask-position: center;
        mask-position: center;
        border-radius: 17px;
    }

    .cetes-mask {
        background-image: url('assets/cetes_movil_5.png');
        /* Tu imagen real */
    }

    .fondo-mask {
        background-image: url('assets/fondo_movil_6.png');
        /* Tu imagen real */
    }

    .footer-nafin {
        margin-top: 62%;
        background-color: #7a7a7a;
        color: #fff;
        padding: 22px 0;
    }

    .fab-container {
        margin-top: 5%;
    }

    .copyright {
        font-size: 1rem;
        margin-left: 2%;
        text-align: left;
    }
}

@media (min-width:688px) and (max-width:767px) {
    .header-actions {
        display: flex !important;
        justify-content: flex-end !important;
        padding-right: 15px !important;
        margin-right: -337px !important;
        gap: 20px !important;
    }

    /* Prueba overlay externo */
    .search-overlay-fixed {
        position: fixed;
        top: 100px;
        /* Un poco mÃ¡s arriba para que la animaciÃ³n se vea que sale de atrÃ¡s */
        left: 0;
        width: 100%;
        height: 70px;
        /* Un poco mÃ¡s delgado para que sea elegante */
        background-color: #04667C;
        /* Mismo azul que tu header */
        z-index: 1020;
        /* Justo debajo de la barra azul (1030) */
        display: flex;
        align-items: center;
        visibility: hidden;
        opacity: 0;
        transition: all 0.3s ease-in-out;
        box-shadow: 0 8px 10px rgba(0, 0, 0, 0.1);
    }

    .search-overlay-fixed.active {
        visibility: visible;
        opacity: 1;
        top: 147px;
    }

    /* Contenedor interno para que el input no sea gigante */
    .search-bar-fixed-content {
        display: flex;
        align-items: center;
        background: white;
        padding: 5px 31px;
        border-radius: 25px;
        max-width: 532px;
        margin-left: 0%;
    }

    .search-bar-fixed-content input {
        border: none;
        outline: none;
        width: 231px;
        padding: 8px;
        font-size: 14px;
    }

    .search-bar-fixed-content button#close-overlay-fixed {
        border: none;
        background: none;
        cursor: pointer;
        color: #04667C;
        font-size: 18px;
    }

    .card-content h3 {
        min-height: 80px;
        margin-top: -5px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: 'Noto sans', sans-serif;
        font-size: 2.3rem;
    }
    .tagline {
        display: block;
        font-size: 1.7rem;
        margin-top: 4px;
        margin-bottom: -4%;
    }

    .card-content p {
        font-size: 1.5rem;
    }

    .close-search {
        margin-left: 1%;
    }

    .simulador-col {
        width: 80%;
    }

    .btn-responsivo img {
        width: 19%;
        height: 19%;
        margin-left: 7%;
        margin-top: -2%;
    }

    #search-input {
        border: none;
        outline: none;
        width: 100%;
        padding: 5px 7px;
        font-size: 16px;
    }

    .btn-primary-financiamiento:hover {
        background-color: #007393 !important;
        /* Un azul mÃ¡s oscuro o el color que prefieras */
        transform: translateY(-2px);
        /* PequeÃ±a elevaciÃ³n */
        transition: all 0.3s ease;
        color: white;
        font-weight: bold;
    }

    /* Efecto para el botÃ³n de cursos */
    .btn-primary-cursos:hover {
        background-color: #007393 !important;
        /* Por ejemplo, el naranja institucional */
        color: white !important;
        transition: all 0.3s ease;
        transform: translateY(-2px);
        /* PequeÃ±a elevaciÃ³n */
        font-weight: bold;
    }

    .btn-responsivo {
        padding: 0px 6px;
        font-size: .9rem;
        width: 25%;
        margin-left: 29%;
        margin-top: 2%;
    }

    .prev {
        width: 23px;
        height: 23px;
        margin-top: -1%;
        margin-left: -5%;
        background-color: rgba(4, 102, 124, 0.3);
    }
    .next {
        width: 23px;
        height: 23px;
        margin-top: -1%;
        margin-right: -22px;
        background-color: rgba(4, 102, 124, 0.3);
    }

    .carrusel-slides {
        display: flex;
        width: 600% !important;
        /* Ajustado para 5 slides (4 + 1 clon)[cite: 6, 8] */
        transition: transform 4.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .boton-carrusel-eco {
        width: 93%;
        font-size: 1.2rem;
        height: 27%;
        /* padding: 13px 51px; */
        margin-left: 7px;
        justify-content: center;
        text-align: center;
        align-items: center;
        margin-top: 62px;
        margin-bottom: 35px;
    }

    .boton-carrusel-inter {
        width: 93%;
        font-size: 1.2rem;
        height: 27%;
        /* padding: 13px 51px; */
        margin-left: 7px;
        justify-content: center;
        text-align: center;
        align-items: center;
        margin-top: 62px;
        margin-bottom: 1px;
    }

    .boton-carrusel-ciu {
        width: 93%;
        font-size: 1.2rem;
        height: 27%;
        /* padding: 13px 51px; */
        margin-left: 7px;
        justify-content: center;
        text-align: center;
        align-items: center;
        margin-top: 62px;
        margin-bottom: 66px;
    }

    .boton-carrusel-cap {
        width: 156px;
        font-size: 1.2rem;
        height: 27%;
        padding: 6px 30px;
        margin-left: -164px;
        justify-content: center;
        text-align: center;
        align-items: center;
        margin-top: 58px;
        margin-bottom: 47px;
    }

    /* .boton-carrusel-emi {
        width: 93%;
        font-size: 1.2rem;
        height: 27%;
        margin-left: 7px;
        justify-content: center;
        text-align: center;
        align-items: center;
        margin-top: 62px;
        margin-bottom: 1px;
    } */

    /*.boton-carrusel-new{
                width: 93%;
                font-size: 1.2rem;
                height: 27%;
                 padding: 13px 51px; 
                margin-left: 7px;
                justify-content: center;
                text-align: center;
                align-items: center;
                margin-top: 62px;
                margin-bottom: 1px;
            } */

    .fad {
        position: relative;
        font-family: "Font Awesome 5 Duotone";
        font-weight: 900;
        margin-top: 20px;
        margin-left: 250px;
        /* margin-right: 11%; */
        left: -182px;
    }

    .search-overlay.active {
        display: flex !important;
        top: 58px !important;
    }

    .header-actions {
        justify-content: flex-end !important;
    }

    .top-bar {
        position: fixed !important;
        top: 80px !important;
        left: 0;
        width: 100%;
        z-index: 10020 !important;
    }

    /* Asegura que el colapso sea un bloque sÃ³lido que ocupe espacio */
    #bs-example-navbar-collapse-1 {
        position: relative !important;
        z-index: 999;
        overflow: hidden;
        margin-top: 0%;
    }

    .search-push-container {
        margin-right: 8%;
        margin-left: 14%;
    }

    /* Estilos de la barra de bÃºsqueda */
    .search-bar-container {
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }


    .top-nav.mobile-open {
        display: block !important;
        position: fixed !important;
        top: 130px !important;
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        max-height: calc(100vh - 152px);
        background-color: #04667C !important;
        padding: 10px 0 !important;
        z-index: 10010 !important;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
        margin: 0 !important;
        overflow-y: auto;
    }

    .top-nav.mobile-open #nav-list {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    .top-nav.mobile-open li {
        width: 100%;
        text-align: center;
    }

    .top-nav.mobile-open a {
        font-size: 1.6rem !important;
        padding: 15px 0;
        display: block;
    }

    /* 1. Ocultamos las imÃ¡genes de las tarjetas */
    .services .card-image {
        display: none !important;
    }

    /* 2. Ajustamos la altura de las tarjetas ya que no tienen foto */
    .card-service {
        min-height: 133px !important;
        height: auto !important;
        margin-bottom: 15px;
        border-radius: 5px;
    }

    .card-service-financiamiento {
        min-height: 133px !important;
        height: auto !important;
        margin-bottom: 15px;
        border-radius: 5px;
    }

    /* 3. Ajustamos el contenido de texto para que quepa bien */
    .card-content,
    .card-content-financiamiento {
        padding: 10px !important;
    }

    .card-content-financiamiento h3 {
        font-size: 1.6rem;
        min-height: 50px !important;
        margin-top: 2%;
    }

    .card-content h3 {
        font-size: 1.5rem;
        min-height: 50px !important;
        margin-top: 3%;
    }

    .card-content p {
        font-size: 1.6rem;
        min-height: 50px !important;
        margin-top: 8%;
    }

    .card-content-financiamiento p {
        font-size: 1.6rem;
        min-height: 50px !important;
        margin-top: 3%;
    }

    /* 4. Ajustamos los botones para que no se desborden */
    .btn-primary-financiamiento {
        width: 90% !important;
        font-size: 1.2rem !important;
        padding: 8px 5px !important;
        margin-left: 5%;
        margin-top: 5%;
    }

    .btn-primary-cursos {
        width: 90% !important;
        font-size: 1.2rem !important;
        padding: 8px 5px !important;
        margin-top: 4%;
        margin-left: 5%;
    }

    .btn-primary-financiamiento:hover {
        background-color: #007393 !important;
        /* Un azul mÃ¡s oscuro o el color que prefieras */
        transform: translateY(-2px);
        /* PequeÃ±a elevaciÃ³n */
        transition: all 0.3s ease;
        color: white;
        font-weight: bold;
    }

    /* Efecto para el botÃ³n de cursos */
    .btn-primary-cursos:hover {
        background-color: #007393 !important;
        /* Por ejemplo, el naranja institucional */
        color: white !important;
        transition: all 0.3s ease;
        transform: translateY(-2px);
        /* PequeÃ±a elevaciÃ³n */
        font-weight: bold;
    }

    .nav-card p {
        font-size: 1.8rem;
    }

    .investment-section {
        margin-left: 0%;
        margin-top: -77px;
        transform: rotate(90deg);
        padding: 0 0 0 0px;
        width: 90%;
        height: 100%;
        /* min-width: 307px; */
        min-height: 417px;
    }

    .card-investment-general {
        position: relative;
        height: 189px;
        border-radius: 17px;
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: -16px;
        /* left: 74%; */
        width: 97%;
        margin-top: -150px;
        margin-left: 293px;
    }

    .card-investment-general-cetes {
        position: relative;
        height: 189px;
        border-radius: 17px;
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: -51px;
        left: 0%;
        margin-left: 28%;
        width: 97%;
    }

    .card-investment-general::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* Gradiente radial: centro azul sutil que se desvanece a transparente */
        background: radial-gradient(circle at center,
                rgba(0, 212, 255, 0.5) 0%,
                /* Azul cian brillante al centro */
                rgba(0, 75, 97, 0.8) 20%,
                /* Azul Nafin semi-transparente */
                rgba(0, 75, 97, 0) 0%
                /* Desvanecimiento total */
            );
        opacity: 0;
        /* Invisible por defecto */
        transition: opacity 0.4s ease;
        z-index: 1;
        filter: blur(15px);
        margin-left: 20%;
    }

    .card-investment-general-cetes::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 80%;
        height: 100%;
        /* Gradiente radial: centro azul sutil que se desvanece a transparente */
        background: radial-gradient(circle at center,
                rgba(0, 212, 255, 0.5) 0%,
                /* Azul cian brillante al centro */
                rgba(0, 75, 97, 0.8) 20%,
                /* Azul Nafin semi-transparente */
                rgba(0, 75, 97, 0) 0%
                /* Desvanecimiento total */
            );
        opacity: 0;
        /* Invisible por defecto */
        transition: opacity 0.2s ease;
        z-index: 1;
        filter: blur(15px);
    }

    .card-content-fondo {
        margin-left: 26%;
        transform: rotate(-90deg);
        width: 62%;
        margin-top: -8%;
    }

    .card-content-cetes {
        margin-left: -56%;
        margin-top: -10%;
        transform: rotate(-90deg);
        width: 68%;
    }

    .card-content-fondo img {
        /* margin-left: 13%;
        margin-top: 25%;
        width: 70%; */
        margin-left: 20%;
        margin-top: 101px;
        width: 144px;
    }

    .card-content-cetes img {
        /* margin-left: 10%;
        margin-top: 19%;
        width: 78%; */
        margin-left: 20%;
        margin-top: 67px;
        width: 160px;
    }
    .card-background-wrapper {
        position: absolute;
        top: 0;
        right: 0;
        width: 388px;
        height: 199px;
        background-size: cover;
        background-position: center;
        filter: brightness(0.8);
        transition: transform 0.5s ease;
        -webkit-mask-size: contain;
        /* mask-size: contain; */
        -webkit-mask-size: 70% 88%;
        -webkit-mask-repeat: no-repeat;
        /* mask-repeat: no-repeat; */
        -webkit-mask-position: center;
        mask-position: center;
        border-radius: 17px;
    }

    .card-background-wrapper-cetes {
        position: absolute;
        top: 0;
        right: 0;
        width: 388px;
        height: 199px;
        background-size: cover;
        background-position: center;
        filter: brightness(0.8);
        transition: transform 0.5s ease;
        -webkit-mask-size: contain;
        /* mask-size: contain; */
        -webkit-mask-size: 70% 88%;
        -webkit-mask-repeat: no-repeat;
        /* mask-repeat: no-repeat; */
        -webkit-mask-position: center;
        mask-position: center;
        border-radius: 17px;
    }

    .cetes-mask {
        background-image: url('assets/cetes_movil_5.png');
        /* Tu imagen real */
    }

    .fondo-mask {
        background-image: url('assets/fondo_movil_6.png');
        /* Tu imagen real */
    }

    .footer-nafin {
        margin-top: 52%;
        background-color: #7a7a7a;
        color: #fff;
        padding: 22px 0;
    }

    .fab-container {
        margin-top: 5%;
    }

    .copyright {
        font-size: 1rem;
        margin-left: 2%;
        text-align: left;
    }
}

/* 5. Celulares estÃ¡ndar (max 425px) */
@media (min-width:425px) and (max-width: 499px) {
    .header-actions {
        display: flex !important;
        justify-content: flex-end !important;
        padding-right: 15px !important;
        margin-right: -271px !important;
        gap: 20px !important;

    }

    /* Prueba overlay externo */
    .search-overlay-fixed {
        position: fixed;
        top: 100px;
        /* Un poco mÃ¡s arriba para que la animaciÃ³n se vea que sale de atrÃ¡s */
        left: 0;
        width: 100%;
        height: 70px;
        /* Un poco mÃ¡s delgado para que sea elegante */
        background-color: #04667C;
        /* Mismo azul que tu header */
        z-index: 1020;
        /* Justo debajo de la barra azul (1030) */
        display: flex;
        align-items: center;
        visibility: hidden;
        opacity: 0;
        transition: all 0.3s ease-in-out;
        box-shadow: 0 8px 10px rgba(0, 0, 0, 0.1);
    }

    .search-overlay-fixed.active {
        visibility: visible;
        opacity: 1;
        top: 149px;
    }

    /* Contenedor interno para que el input no sea gigante */
    .search-bar-fixed-content {
        display: flex;
        align-items: center;
        background: white;
        padding: 5px 31px;
        border-radius: 25px;
        max-width: 532px;
        margin-left: 0%;
    }

    .search-bar-fixed-content input {
        border: none;
        outline: none;
        width: 231px;
        padding: 8px;
        font-size: 14px;
    }

    .search-bar-fixed-content button#close-overlay-fixed {
        border: none;
        background: none;
        cursor: pointer;
        color: #04667C;
        font-size: 18px;
    }

    .card-content h3 {
        min-height: 80px;
        margin-top: -5px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: 'Noto sans', sans-serif;
        font-size: 2.3rem;
    }
    .tagline {
        display: block;
        font-size: 1.7rem;
        margin-top: 4px;
        margin-bottom: -4%;
    }

    .card-content p {
        font-size: 1.5rem;
    }

    .close-search {
        margin-left: 1%;
    }

    .simulador-col {
        width: 80%;
    }

    .btn-responsivo img {
        width: 15%;
        height: 15%;
        margin-left: 7%;
        margin-top: -2%;
    }

    #search-input {
        border: none;
        outline: none;
        width: 100%;
        padding: 5px 7px;
        font-size: 16px;
    }

    .btn-primary-financiamiento:hover {
        background-color: #007393 !important;
        /* Un azul mÃ¡s oscuro o el color que prefieras */
        transform: translateY(-2px);
        /* PequeÃ±a elevaciÃ³n */
        transition: all 0.3s ease;
        color: white;
        font-weight: bold;
    }

    /* Efecto para el botÃ³n de cursos */
    .btn-primary-cursos:hover {
        background-color: #007393 !important;
        /* Por ejemplo, el naranja institucional */
        color: white !important;
        transition: all 0.3s ease;
        transform: translateY(-2px);
        /* PequeÃ±a elevaciÃ³n */
        font-weight: bold;
    }

    .btn-responsivo {
        padding: 0px 6px;
        font-size: .9rem;
        width: 29%;
        margin-left: 29%;
        margin-top: 2%;
    }

    .prev {
        width: 23px;
        height: 23px;
        margin-top: -1%;
        margin-left: -5%;
        background-color: rgba(4, 102, 124, 0.3);
    }



    .next {
        width: 23px;
        height: 23px;
        margin-top: -1%;
        margin-right: -22px;
        background-color: rgba(4, 102, 124, 0.3);
    }

    .carrusel-slides {
        display: flex;
        width: 600% !important;
        /* Ajustado para 5 slides (4 + 1 clon)[cite: 6, 8] */
        transition: transform 4.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .boton-carrusel-eco {
        width: 156px;
        font-size: 1.2rem;
        height: 27%;
        padding: 10px 30px;
        margin-left: -125px;
        justify-content: center;
        text-align: center;
        align-items: center;
        margin-top: 58px;
        margin-bottom: 43px;
    }

    .boton-carrusel-inter {
        width: 156px;
        font-size: 1.2rem;
        height: 27%;
        padding: 10px 30px;
        margin-left: -125px;
        justify-content: center;
        text-align: center;
        align-items: center;
        margin-top: 58px;
        margin-bottom: 48px;
    }

    .boton-carrusel-ciu {
        width: 156px;
        font-size: 1.2rem;
        height: 27%;
        padding: 10px 30px;
        margin-left: -144px;
        justify-content: center;
        text-align: center;
        align-items: center;
        margin-top: 58px;
        margin-bottom: 48px;
    }

    .boton-carrusel-cap {
        width: 156px;
        font-size: 1.2rem;
        height: 27%;
        padding: 10px 30px;
        margin-left: -156px;
        justify-content: center;
        text-align: center;
        align-items: center;
        margin-top: 58px;
        margin-bottom: 48px;
    }

    /* .boton-carrusel-emi {
        width: 156px;
        font-size: 1.2rem;
        height: 27%;
        padding: 10px 30px;
        margin-left: -125px;
        justify-content: center;
        text-align: center;
        align-items: center;
        margin-top: 58px;
        margin-bottom: 84px;
    } */

    /* .boton-carrusel-new{
                width: 93%;
                font-size: 1.2rem;
                height: 27%;
                 padding: 13px 51px; 
                margin-left: 7px;
                justify-content: center;
                text-align: center;
                align-items: center;
                margin-top: 62px;
                margin-bottom: 66px;
            }  */

    .fad {
        position: relative;
        font-family: "Font Awesome 5 Duotone";
        font-weight: 900;
        margin-top: 20px;
        left: 42px;
    }

    .search-overlay.active {
        display: flex !important;
        top: 58px !important;
    }

    .header-actions {
        justify-content: flex-end !important;
    }

    .top-bar {
        position: fixed !important;
        top: 80px !important;
        left: 0;
        width: 100%;
        z-index: 10020 !important;
    }

    /* Asegura que el colapso sea un bloque sÃ³lido que ocupe espacio */
    #bs-example-navbar-collapse-1 {
        position: relative !important;
        z-index: 999;
        overflow: hidden;
        margin-top: -3%;
        /* La animaciÃ³n de altura de Bootstrap harÃ¡ el resto */
    }

    .search-push-container {
        margin-right: 8%;
        margin-left: 14%;
        margin-top: 4%;
    }

    /* Estilos de la barra de bÃºsqueda */
    .search-bar-container {
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .top-nav.mobile-open {
        display: block !important;
        position: fixed !important;
        top: 130px !important;
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        max-height: calc(100vh - 152px);
        background-color: #04667C !important;
        padding: 10px 0 !important;
        z-index: 10010 !important;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
        margin: 0 !important;
        overflow-y: auto;
    }

    .top-nav.mobile-open #nav-list {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    .top-nav.mobile-open li {
        width: 100%;
        text-align: center;
    }

    .top-nav.mobile-open a {
        font-size: 1.6rem !important;
        padding: 15px 0;
        display: block;
    }

    /* 1. Ocultamos las imÃ¡genes de las tarjetas */
    .services .card-image {
        display: none !important;
    }

    /* 2. Ajustamos la altura de las tarjetas ya que no tienen foto */
    .card-service {
        min-height: 133px !important;
        height: auto !important;
        margin-bottom: 15px;
        border-radius: 5px;
    }

    .card-service-financiamiento {
        min-height: 133px !important;
        height: auto !important;
        margin-bottom: 15px;
        border-radius: 4px;
    }

    /* 3. Ajustamos el contenido de texto para que quepa bien */
    .card-content,
    .card-content-financiamiento {
        padding: 10px !important;
    }

    .card-content-financiamiento h3 {
        font-size: 1.4rem;
        min-height: 50px !important;
        margin-top: 9%;
    }

    .card-content h3 {
        font-size: 1.3rem;
        min-height: 50px !important;
        margin-top: 3%;
    }

    .card-content p {
        font-size: 1.6rem;
        min-height: 50px !important;
        margin-top: 8%;
    }

    .card-content-financiamiento p {
        font-size: 1.6rem;
        min-height: 50px !important;
        margin-top: 3%;
    }

    /* 4. Ajustamos los botones para que no se desborden */
    .btn-primary-financiamiento {
        width: 90% !important;
        font-size: 1.2rem !important;
        padding: 8px 5px !important;
        margin-left: 5%;
        margin-top: 5%;
    }

    .btn-primary-cursos {
        width: 90% !important;
        font-size: 1.2rem !important;
        padding: 8px 5px !important;
        margin-top: 4%;
        margin-left: 5%;
    }

    .btn-primary-financiamiento:hover {
        background-color: #007393 !important;
        /* Un azul mÃ¡s oscuro o el color que prefieras */
        transform: translateY(-2px);
        /* PequeÃ±a elevaciÃ³n */
        transition: all 0.3s ease;
        color: white;
        font-weight: bold;
    }

    /* Efecto para el botÃ³n de cursos */
    .btn-primary-cursos:hover {
        background-color: #007393 !important;
        /* Por ejemplo, el naranja institucional */
        color: white !important;
        transition: all 0.3s ease;
        transform: translateY(-2px);
        /* PequeÃ±a elevaciÃ³n */
        font-weight: bold;
    }

    .nav-card p {
        font-size: 1.8rem;
        font-weight: 400;
    }

    .investment-section {
        margin-left: 0%;
        margin-top: -77px;
        transform: rotate(90deg);
        padding: 0 0 0 0px;
        width: 90%;
        height: 100%;
        /* min-width: 307px; */
        min-height: 417px;
    }

    .card-investment-general {
        position: relative;
        height: 189px;
        border-radius: 17px;
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: -16px;
        left: 74%;
        width: 97%;
        margin-top: -38%;
        margin-left: 1%;
    }

    .card-investment-general-cetes {
        position: relative;
        height: 189px;
        border-radius: 17px;
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: -51px;
        left: 0%;
        margin-left: 8%;
        width: 97%;
    }

    .card-investment-general::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* Gradiente radial: centro azul sutil que se desvanece a transparente */
        background: radial-gradient(circle at center,
                rgba(0, 212, 255, 0.5) 0%,
                /* Azul cian brillante al centro */
                rgba(0, 75, 97, 0.8) 30%,
                /* Azul Nafin semi-transparente */
                rgba(0, 75, 97, 0) 0%
                /* Desvanecimiento total */
            );
        opacity: 0;
        /* Invisible por defecto */
        transition: opacity 0.4s ease;
        z-index: 1;
        filter: blur(15px);
    }

    .card-investment-general-cetes::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* Gradiente radial: centro azul sutil que se desvanece a transparente */
        background: radial-gradient(circle at center,
                rgba(0, 212, 255, 0.5) 0%,
                /* Azul cian brillante al centro */
                rgba(0, 75, 97, 0.8) 30%,
                /* Azul Nafin semi-transparente */
                rgba(0, 75, 97, 0) 0%
                /* Desvanecimiento total */
            );
        opacity: 0;
        /* Invisible por defecto */
        transition: opacity 0.4s ease;
        z-index: 1;
        filter: blur(15px);
    }

    .card-content-fondo {
        margin-left: 0%;
        transform: rotate(-90deg);
        width: 62%;
        margin-top: 4%;
    }

    .card-content-cetes {
        margin-left: -16%;
        margin-top: 2%;
        transform: rotate(-90deg);
        width: 68%;
    }

    .card-content-fondo img {
        margin-left: 17%;
        width: 72%;
        margin-top: 4%;
    }

    .card-content-cetes img {
        /* margin-left: 10%;
        margin-top: 19%;
        width: 78%; */
        margin-left: 12%;
        margin-top: 16%;
        width: 75%;
    }

    .card-background-wrapper {
        position: absolute;
        top: 0;
        right: 0;
        width: 388px;
        height: 199px;
        background-size: cover;
        background-position: center;
        filter: brightness(0.8);
        transition: transform 0.5s ease;
        -webkit-mask-size: contain;
        /* mask-size: contain; */
        -webkit-mask-size: 70% 88%;
        -webkit-mask-repeat: no-repeat;
        /* mask-repeat: no-repeat; */
        -webkit-mask-position: center;
        mask-position: center;
        border-radius: 17px;
    }

    .card-background-wrapper-cetes {
        position: absolute;
        top: 0;
        right: 0;
        width: 388px;
        height: 199px;
        background-size: cover;
        background-position: center;
        filter: brightness(0.8);
        transition: transform 0.5s ease;
        -webkit-mask-size: contain;
        /* mask-size: contain; */
        -webkit-mask-size: 70% 88%;
        -webkit-mask-repeat: no-repeat;
        /* mask-repeat: no-repeat; */
        -webkit-mask-position: center;
        mask-position: center;
        border-radius: 17px;
    }

    .cetes-mask {
        background-image: url('assets/cetes_movil_5.png');
        /* Tu imagen real */
    }

    .fondo-mask {
        background-image: url('assets/fondo_movil_6.png');
        /* Tu imagen real */
    }

    .footer-nafin {
        margin-top: 57%;
        background-color: #7a7a7a;
        color: #fff;
        padding: 22px 0;
    }

    .fab-container {
        margin-top: 5%;
    }

    .copyright {
        font-size: 1rem;
        margin-left: 2%;
        text-align: left;
    }
}

/* 6. Celulares pequeÃ±os (max 375px) */
@media (min-width:375px) and (max-width: 423px) {
    .header-actions {
        display: flex !important;
        justify-content: flex-end !important;
        padding-right: 15px !important;
        margin-right: -235px !important;
        gap: 20px !important;
    }

    .close-search {
        margin-left: 1%;
    }

    /* Prueba overlay externo */
    .search-overlay-fixed {
        position: fixed;
        top: 100px;
        left: 0;
        width: 100%;
        height: 70px;
        background-color: #04667C;
        z-index: 1020;
        display: flex;
        align-items: center;
        visibility: hidden;
        opacity: 0;
        transition: all 0.3s ease-in-out;
        box-shadow: 0 8px 10px rgba(0, 0, 0, 0.1);
    }

    .search-overlay-fixed.active {
        visibility: visible;
        opacity: 1;
        top: 146px;
    }

    /* Contenedor interno para que el input no sea gigante */
    .search-bar-fixed-content {
        display: flex;
        align-items: center;
        background: white;
        padding: 5px 20px;
        border-radius: 25px;
        max-width: 523px;
        margin-left: 0%;
    }

    .search-bar-fixed-content input {
        border: none;
        outline: none;
        width: 100%;
        padding: 8px;
        font-size: 14px;
    }

    .top-nav.mobile-open {
        display: block !important;
        position: fixed !important;
        top: 129px !important;
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        max-height: calc(100vh - 152px);
        background-color: #04667C !important;
        padding: 10px 0 !important;
        z-index: 10010 !important;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
        margin: 0 !important;
        overflow-y: auto;
    }

    .search-bar-fixed-content button#close-overlay-fixed {
        border: none;
        background: none;
        cursor: pointer;
        color: #04667C;
        font-size: 18px;
    }

    .simulador-col {
        width: 90%;
    }

    .btn-responsivo {
        font-size: .8rem;
        padding: 0px 15px;
        height: -2%;
        width: 34%;
        margin-left: 22%;
        margin-top: 2%;
    }

    .btn-responsivo img {
        width: 17%;
        height: 17%;
        margin-left: 9%;
        margin-top: -1%;
    }

    .search-bar-container {
        background-color: white;
        display: flex;
        align-items: center;
        padding: -5px 15px;
        border-radius: 15px;
        width: 100%;
        max-width: 600px;
        margin-left: 0%;
    }

    #search-input {
        border: none;
        outline: none;
        width: 100%;
        padding: 5px 7px;
        font-size: 16px;
    }

    .tagline {
        margin-bottom: 7px;
        font-size: 1.5rem;
    }

    #bs-example-navbar-collapse-1 {
        position: relative !important;
        z-index: 999;
        overflow: hidden;
        margin-top: -3%;
    }

    .search-push-container {
        margin-left: 11%;
        margin-top: 4%;
    }

    .services .card-image {
        display: none !important;
    }

    .card-service {
        min-height: 118px !important;
        height: auto !important;
        margin-bottom: 15px;
        margin-top: -20%;
        border-radius: 4px;
    }

    .card-service-financiamiento {
        min-height: 118px !important;
        height: auto !important;
        margin-bottom: 15px;
        margin-top: -20%;
        border-radius: 4px;
    }

    /* 3. Ajustamos el contenido de texto para que quepa bien */
    .card-content {
        padding: 6 10px !important;
    }

    .card-content p {
        font-size: 1.3rem;
        margin-top: -1%;
    }

    .card-content-financiamiento p {
        font-size: 1.33rem;
        margin-top: -2%;
    }


    .card-content-financiamiento {
        padding: 10px;
    }

    .card-content h3 {
        font-size: 1.4rem;
        min-height: 50px !important;
        margin-top: 6%;
    }

    .card-content-financiamiento h3 {
        font-size: 1.4rem;
        min-height: 50px !important;
        margin-top: 17%;
    }

    .nav-card p {
        font-size: 1.5rem;
        font-weight: 400;
    }

    /* 4. Ajustamos los botones para que no se desborden */
    .btn-primary-financiamiento {
        margin-top: 10%;
        width: 90% !important;
        font-size: 1.2rem !important;
        padding: 9px 1px !important;
        margin-left: 5%;
    }

    .btn-primary-cursos {
        width: 90% !important;
        font-size: 1.2rem !important;
        padding: 8px 5px !important;
        margin-left: 5%;
        margin-top: -2%;
    }

    .btn-primary-financiamiento:hover {
        background-color: #007393 !important;
        /* Un azul mÃ¡s oscuro o el color que prefieras */
        transform: translateY(-2px);
        /* PequeÃ±a elevaciÃ³n */
        transition: all 0.3s ease;
        color: white;
        font-weight: bold;
    }

    /* Efecto para el botÃ³n de cursos */
    .btn-primary-cursos:hover {
        background-color: #007393 !important;
        /* Por ejemplo, el naranja institucional */
        color: white !important;
        transition: all 0.3s ease;
        transform: translateY(-2px);
        /* PequeÃ±a elevaciÃ³n */
        font-weight: bold;
    }

    .prev {
        width: 23px;
        height: 23px;
        margin-top: 2%;
        margin-left: -7%;
        background-color: rgba(4, 102, 124, 0.3);
    }

    .next {
        width: 23px;
        height: 23px;
        margin-top: 2%;
        margin-right: -15px;
        background-color: rgba(4, 102, 124, 0.3);
    }

    .carrusel-slides {
        display: flex;
        width: 600% !important;
        /* Ajustado para 5 slides (4 + 1 clon)[cite: 6, 8] */
        transition: transform 4.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .carrusel-frame {
        margin-top: 30px;
    }

    .boton-carrusel-cap,
    .boton-carrusel-ciu,
    .boton-carrusel-inter,
    .boton-carrusel-eco {
        width: 156px;
        font-size: 1.2rem;
        height: 27%;
        padding: 10px 30px;
        margin-left: -125px;
        justify-content: center;
        text-align: center;
        align-items: center;
        margin-top: 58px;
        margin-bottom: 48px;
    }

    /* .boton-carrusel-emi {
        width: 156px;
        font-size: 1.2rem;
        height: 27%;
        padding: 10px 30px;
        margin-left: -125px;
        justify-content: center;
        text-align: center;
        align-items: center;
        margin-top: 58px;
        margin-bottom: 76px;
    } */

    /* .boton-carrusel-new{
                width: 156px;
                font-size: 1.2rem;
                height: 27%;
                padding: 10px 30px;
                margin-left: 7px;
                justify-content: center;
                text-align: center;
                align-items: center;
                margin-top: 58px;
                margin-bottom: 60px;
                    } */
    .top-nav.mobile-open #nav-list {
        width: 100% !important;
        /* Elimina el ancho de 249px */
        margin: 0 auto !important;
        /* Elimina el margin-left: 30% */
        padding: 10px 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .top-nav.mobile-open li {
        width: 100% !important;
        text-align: center !important;
    }

    .top-nav.mobile-open a {
        font-size: 1.4rem !important;
        /* Ajuste ligero de tamaÃ±o para 320px */
        padding: 12px 15px !important;
        white-space: normal !important;
        /* Permite que el texto largo salte de lÃ­nea[cite: 2] */
    }

    .fad {
        position: relative;
        font-family: "Font Awesome 5 Duotone";
        font-weight: 900;
        margin-top: 19px;
        /* margin-left: -14%; */
        /* margin-right: 11%; */
        left: 45px;
    }

    .investment-section {
        margin-left: -3%;
        margin-top: -57px;
        transform: rotate(90deg);
        padding: 0 0 0 0px;
        width: 90%;
        height: 100%;
        /* min-width: 307px; */
        min-height: 417px;
    }

    .card-investment-general {
        position: relative;
        height: 189px;
        border-radius: 17px;
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: -16px;
        left: 74%;
        width: 97%;
        margin-top: -33%;
        margin-left: -10%;
    }

    .card-investment-general-cetes {
        position: relative;
        height: 189px;
        border-radius: 17px;
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: -51px;
        left: 0%;
        margin-left: 3%;
        width: 97%;
    }

    .card-investment-general::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* Gradiente radial: centro azul sutil que se desvanece a transparente */
        background: radial-gradient(circle at center,
                rgba(0, 212, 255, 0.5) 0%,
                /* Azul cian brillante al centro */
                rgba(0, 75, 97, 0.8) 30%,
                /* Azul Nafin semi-transparente */
                rgba(0, 75, 97, 0) 0%
                /* Desvanecimiento total */
            );
        opacity: 0;
        /* Invisible por defecto */
        transition: opacity 0.4s ease;
        z-index: 1;
        filter: blur(15px);
    }

    .card-investment-general-cetes::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* Gradiente radial: centro azul sutil que se desvanece a transparente */
        background: radial-gradient(circle at center,
                rgba(0, 212, 255, 0.5) 0%,
                /* Azul cian brillante al centro */
                rgba(0, 75, 97, 0.8) 30%,
                /* Azul Nafin semi-transparente */
                rgba(0, 75, 97, 0) 0%
                /* Desvanecimiento total */
            );
        opacity: 0;
        /* Invisible por defecto */
        transition: opacity 0.4s ease;
        z-index: 1;
        filter: blur(15px);
    }

    .card-content-fondo {
        margin-left: 0%;
        transform: rotate(-90deg);
        width: 55%;
        margin-top: -9%;
    }

    .card-content-cetes {
        margin-left: -10%;
        margin-top: -10%;
        transform: rotate(-90deg);
        width: 59%;
    }

    .card-background-wrapper {
        position: absolute;
        top: 0;
        right: 0;
        width: 322px;
        height: 163px;
        background-size: cover;
        background-position: center;
        filter: brightness(0.8);
        transition: transform 0.5s ease;
        -webkit-mask-size: contain;
        /* mask-size: contain; */
        -webkit-mask-size: 70% 88%;
        -webkit-mask-repeat: no-repeat;
        /* mask-repeat: no-repeat; */
        -webkit-mask-position: center;
        mask-position: center;
        border-radius: 17px;
    }

    .card-background-wrapper-cetes {
        position: absolute;
        top: 0;
        right: 0;
        width: 322px;
        height: 163px;
        background-size: cover;
        background-position: center;
        filter: brightness(0.8);
        transition: transform 0.5s ease;
        -webkit-mask-size: contain;
        /* mask-size: contain; */
        -webkit-mask-size: 70% 88%;
        -webkit-mask-repeat: no-repeat;
        /* mask-repeat: no-repeat; */
        -webkit-mask-position: center;
        mask-position: center;
        border-radius: 17px;
    }

    .cetes-mask {
        background-image: url('assets/cetes_movil_5.png');
        /* Tu imagen real */
    }

    .fondo-mask {
        background-image: url('assets/fondo_movil_6.png');
        /* Tu imagen real */
    }

    .footer-nafin {
        margin-top: 37%;
        background-color: #7a7a7a;
        color: #fff;
        padding: 22px 0;
    }

    .social-links-nafin {
        gap: 8px;
        margin-top: 10px;
        margin-left: 20%;
    }

    .social-links-nafin a {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }

    .copyright {
        font-size: .8rem;
        text-align: left;
    }

}

/* 6. Celulares pequeÃ±os (max 320px) */
@media (max-width: 320px) {
    .header-actions {
        display: flex !important;
        justify-content: flex-end !important;
        padding-right: -23px !important;
        margin-right: -196px !important;
        gap: 20px !important;
    }

    .top-bar {
        position: fixed !important;
        top: 80px !important;
        left: 0;
        width: 100%;
        z-index: 10020 !important;
    }

    .top-nav.mobile-open {
        display: block !important;
        position: fixed !important;
        top: 129px !important;
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        max-height: calc(100vh - 152px);
        background-color: #04667C !important;
        padding: 10px 0 !important;
        z-index: 10010 !important;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
        margin: 0 !important;
        overflow-y: auto;
    }

    .top-nav.mobile-open #nav-list {
        width: 100% !important;
        /* Elimina el ancho de 249px */
        margin: 0 auto !important;
        /* Elimina el margin-left: 30% */
        padding: 10px 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .top-nav.mobile-open li {
        width: 100% !important;
        text-align: center !important;
    }

    .top-nav.mobile-open a {
        font-size: 1.4rem !important;
        /* Ajuste ligero de tamaÃ±o para 320px */
        padding: 12px 15px !important;
        white-space: normal !important;
        /* Permite que el texto largo salte de lÃ­nea[cite: 2] */
    }

    /* Prueba overlay externo */
    /* Estilos para el Buscador Flotante Integrado */
    .search-overlay-fixed {
        position: fixed;
        top: 100px;
        /* Un poco mÃ¡s arriba para que la animaciÃ³n se vea que sale de atrÃ¡s */
        left: 0;
        width: 100%;
        height: 70px;
        /* Un poco mÃ¡s delgado para que sea elegante */
        background-color: #04667C;
        /* Mismo azul que tu header */
        z-index: 1020;
        /* Justo debajo de la barra azul (1030) */
        display: flex;
        align-items: center;
        visibility: hidden;
        opacity: 0;
        transition: all 0.3s ease-in-out;
        box-shadow: 0 8px 10px rgba(0, 0, 0, 0.1);
    }

    .search-overlay-fixed.active {
        visibility: visible;
        opacity: 1;
        top: 143px;
        /* 80px (barra gob) + 72px (barra azul) */
    }

    /* Contenedor interno para que el input no sea gigante */
    .search-bar-fixed-content {
        display: flex;
        align-items: center;
        background: white;
        padding: 5px 20px;
        border-radius: 25px;
        max-width: 523px;
        margin-left: 0%;
    }

    .search-bar-fixed-content input {
        border: none;
        outline: none;
        width: 100%;
        padding: 8px;
        font-size: 14px;
    }

    .search-bar-fixed-content button#close-overlay-fixed {
        border: none;
        background: none;
        cursor: pointer;
        color: #04667C;
        font-size: 18px;
    }

    #search-input {
        border: none;
        outline: none;
        width: 200px;
        padding: 5px 7px;
        font-size: 14px;
    }

    .tagline {
        display: block;
        font-size: 1.4rem;
        margin-top: 10px;
        margin-bottom: 3%;
        margin-left: 1%;
        width: 100%;
    }

    .card-service {
        min-height: 138px !important;
        /* Altura mÃ¡s pequeÃ±a para mÃ³vil */
        height: auto !important;
        margin-bottom: 15px;
        margin-top: -20%;
        width: 144px;
        margin-left: -8%;
        border-radius: 4%;
    }

    .card-service-financiamiento {
        border-radius: 4px;
    }

    .btn-primary-financiamiento {
        margin-top: 19%;
        width: 90% !important;
        font-size: 1.2rem;
        padding: 9px 1px !important;
        margin-left: 5%;
    }

    .card-content p {
        font-size: 1.4rem;
        margin-top: -4%;
    }

    .card-content-financiamiento h3 {
        margin-top: 20%;
        font-size: 1.4rem;
    }

    .card-content h3 {
        margin-top: 5%;
        font-size: 1.4rem;
    }

    .card-content-financiamiento p {
        font-size: 1.4rem;
        margin-top: 0%;

    }

    .btn-primary-financiamiento:hover {
        background-color: #007393 !important;
        /* Un azul mÃ¡s oscuro o el color que prefieras */
        transform: translateY(-2px);
        /* PequeÃ±a elevaciÃ³n */
        transition: all 0.3s ease;
        color: white;
        font-weight: bold;
    }

    /* Efecto para el botÃ³n de cursos */
    .btn-primary-cursos:hover {
        background-color: #007393 !important;
        /* Por ejemplo, el naranja institucional */
        color: white !important;
        transition: all 0.3s ease;
        transform: translateY(-2px);
        /* PequeÃ±a elevaciÃ³n */
        font-weight: bold;
    }

    .btn-primary-cursos {
        margin-left: 7%;
        margin-top: 9%;
    }

    .card-service-financiamiento {
        min-height: 159px !important;
        /* Altura mÃ¡s pequeÃ±a para mÃ³vil */
        height: auto !important;
        margin-bottom: 15px;
        margin-top: -20%;
        margin-left: -4%;
        width: 144px;
    }

    .nav-card p {
        font-size: 1.4rem;
        font-weight: 400;
    }

    .carrusel-slides {
        display: flex;
        width: 600% !important;
        /* Ajustado para 5 slides (4 + 1 clon)[cite: 6, 8] */
        transition: transform 4.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .carrusel-frame {
        margin-top: 30px;
    }

    .prev {
        width: 20px;
        height: 20px;
        margin-top: 6%;
        margin-left: -19px;
        background-color: rgba(4, 102, 124, 0.3);
    }

    .next {
        width: 20px;
        height: 20px;
        margin-top: 6%;
        margin-right: -15px;
        background-color: rgba(4, 102, 124, 0.3);
    }


    .boton-carrusel-eco,
    .boton-carrusel-inter {
        width: 156px;
        font-size: 1.2rem;
        height: 27%;
        padding: 6px 30px;
        margin-left: -107px;
        justify-content: center;
        text-align: center;
        align-items: center;
        margin-top: 58px;
        margin-bottom: 7px;
    }

    .boton-carrusel-ciu {
        width: 156px;
        font-size: 1.2rem;
        height: 27%;
        padding: 6px 30px;
        margin-left: -107px;
        justify-content: center;
        text-align: center;
        align-items: center;
        margin-top: 58px;
        margin-bottom: 7px;
    }

    .boton-carrusel-cap {
        width: 156px;
        font-size: 1.2rem;
        height: 27%;
        padding: 6px 30px;
        margin-left: -107px;
        justify-content: center;
        text-align: center;
        align-items: center;
        margin-top: 58px;
        margin-bottom: 42px;
    }

    /* .boton-carrusel-emi {
        width: 156px;
        font-size: 1.2rem;
        height: 27%;
        padding: 6px 30px;
        margin-left: -107px;
        justify-content: center;
        text-align: center;
        align-items: center;
        margin-top: 58px;
        margin-bottom: 42px;
    } */

    /* .boton-carrusel-new{
    width: 156px;
    font-size: 1.2rem;
    height: 27%;
    padding: 10px 30px;
    margin-left: 2px;
    justify-content: center;
    text-align: center;
    align-items: center;
    margin-top: 58px;
    margin-bottom: 29px;
} */
    .btn-responsivo img {
        width: 16%;
        height: 16%;
        margin-left: 12%;
    }

    .btn-responsivo {
        font-size: .6rem;
        padding: 0px 7px;
        width: 70px;
        margin-left: 24%;
        margin-top: 2%;
    }

    .simulador-col {
        position: absolute;
        top: 75%;
        left: 56%;
        transform: translateY(-50%);
        width: 14%;
        z-index: 10;
    }

    .investment-section {
        margin-left: -11%;
        margin-top: -42px;
        transform: rotate(90deg);
        padding: 0 0 0 0px;
        width: 90%;
        height: 100%;
        min-height: 417px;
    }

    .card-investment-general {
        position: relative;
        height: 189px;
        border-radius: 17px;
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: -16px;
        left: 73%;
        width: 99%;
        margin-top: -36%;
        margin-left: 0%;

    }

    .card-investment-general-cetes {
        position: relative;
        height: 189px;
        border-radius: 17px;
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: -51px;
        left: 0%;
        margin-left: -7%;
        width: 108%;
    }

    .card-investment-general::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* Gradiente radial: centro azul sutil que se desvanece a transparente */
        background: radial-gradient(circle at center,
                rgba(0, 212, 255, 0.5) 0%,
                /* Azul cian brillante al centro */
                rgba(0, 75, 97, 0.8) 30%,
                /* Azul Nafin semi-transparente */
                rgba(0, 75, 97, 0) 0%
                /* Desvanecimiento total */
            );
        opacity: 0;
        /* Invisible por defecto */
        transition: opacity 0.4s ease;
        z-index: 1;
        filter: blur(15px);
    }

    .card-investment-general-cetes::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* Gradiente radial: centro azul sutil que se desvanece a transparente */
        background: radial-gradient(circle at center,
                rgba(0, 212, 255, 0.5) 0%,
                /* Azul cian brillante al centro */
                rgba(0, 75, 97, 0.8) 30%,
                /* Azul Nafin semi-transparente */
                rgba(0, 75, 97, 0) 0%
                /* Desvanecimiento total */
            );
        opacity: 0;
        /* Invisible por defecto */
        transition: opacity 0.4s ease;
        z-index: 1;
        filter: blur(15px);
    }

    .card-content-fondo {
        margin-left: -7%;
        transform: rotate(-90deg);
        width: 63%;
        margin-top: -12%;
    }

    .card-content-cetes {
        margin-left: -20%;
        margin-top: -12%;
        transform: rotate(-90deg);
        width: 65%;
    }

    .card-background-wrapper {
        position: absolute;
        top: 0;
        right: 0;
        width: 322px;
        height: 163px;
        background-size: cover;
        background-position: center;
        filter: brightness(0.8);
        transition: transform 0.5s ease;
        -webkit-mask-size: contain;
        /* mask-size: contain; */
        -webkit-mask-size: 70% 88%;
        -webkit-mask-repeat: no-repeat;
        /* mask-repeat: no-repeat; */
        -webkit-mask-position: center;
        mask-position: center;
        border-radius: 17px;
    }

    .card-background-wrapper-cetes {
        position: absolute;
        top: 0;
        right: 0;
        width: 322px;
        height: 163px;
        background-size: cover;
        background-position: center;
        filter: brightness(0.8);
        transition: transform 0.5s ease;
        -webkit-mask-size: contain;
        /* mask-size: contain; */
        -webkit-mask-size: 70% 88%;
        -webkit-mask-repeat: no-repeat;
        /* mask-repeat: no-repeat; */
        -webkit-mask-position: center;
        mask-position: center;
        border-radius: 17px;

    }

    .cetes-mask {
        background-image: url('assets/cetes_movil_5.png');
        /* Tu imagen real */
    }

    .fondo-mask {
        background-image: url('assets/fondo_movil_6.png');
        /* Tu imagen real */
    }

    .footer-nafin {
        margin-top: 32%;
        background-color: #7a7a7a;
        color: #fff;
        padding: 34px 0;
    }

    /* Reducimos el padding de las columnas de Bootstrap para ganar espacio */
    .footer-nafin h4 {
        font-size: 15px !important;
        /* Un poco mÃ¡s grande para legibilidad */
        display: block !important;
        /* Para que nada se le encime a los lados */
        width: 100% !important;
        line-height: 1.4 !important;
        /* Da espacio entre "PROTECCIÃ“N" y "DE DATOS" */
        margin-top: 50% !important;
        /* CAMBIA EL % POR PX (20px es seguro) */
        margin-bottom: 10px !important;
        text-align: left;
    }

    .footer-nafin .col-xs-6 {
        min-height: auto !important;
        /* Evita que la caja tenga una altura fija */
        margin-bottom: 30px !important;
        /* Separa las columnas verticalmente */
    }

    /* ReducciÃ³n de fuente de los enlaces para que no desborden */
    .footer-nafin ul li a {
        font-size: 10px;
        line-height: 1.2;
        display: block;
        word-wrap: break-word;
        /* Fuerza el salto de lÃ­nea si la palabra es muy larga */
    }

    /* Ajuste de logos de transparencia para que quepan en la columna */
    .logos-transparencia {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        justify-content: flex-start !important;
    }

    .logos-transparencia img {
        height: 18px !important;
        /* Logos mÃ¡s pequeÃ±os para evitar el desborde */
        max-width: 100%;
    }

    /* Redes sociales en una sola lÃ­nea pequeÃ±a */
    .social-links-nafin {
        gap: 8px;
        margin-top: 10px;
    }

    .social-links-nafin a {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }

    .copyright {
        font-size: .7rem;
        margin-left: 3%;
        text-align: left;

    }

    .text-social-links {
        margin-top: -13%;
    }

}

/* 6. Celulares pequeÃ±os (max 320px) */
@media (min-width: 320px) and(max-width: 374px) {
    .header-actions {
        display: flex !important;
        justify-content: flex-end !important;
        padding-right: -23px !important;
        margin-right: -196px !important;
        gap: 20px !important;
    }

    .top-bar {
        position: fixed !important;
        top: 80px !important;
        left: 0;
        width: 100%;
        z-index: 10020 !important;
    }

    .top-nav.mobile-open {
        display: block !important;
        position: fixed !important;
        top: 129px !important;
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        max-height: calc(100vh - 152px);
        background-color: #04667C !important;
        padding: 10px 0 !important;
        z-index: 10010 !important;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
        margin: 0 !important;
        overflow-y: auto;
    }

    .top-nav.mobile-open #nav-list {
        width: 100% !important;
        /* Elimina el ancho de 249px */
        margin: 0 auto !important;
        /* Elimina el margin-left: 30% */
        padding: 10px 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .top-nav.mobile-open li {
        width: 100% !important;
        text-align: center !important;
    }

    .top-nav.mobile-open a {
        font-size: 1.4rem !important;
        /* Ajuste ligero de tamaÃ±o para 320px */
        padding: 12px 15px !important;
        white-space: normal !important;
        /* Permite que el texto largo salte de lÃ­nea[cite: 2] */
    }

    /* Prueba overlay externo */
    .search-overlay-fixed {
        position: fixed;
        top: 100px;
        /* Un poco mÃ¡s arriba para que la animaciÃ³n se vea que sale de atrÃ¡s */
        left: 0;
        width: 100%;
        height: 70px;
        /* Un poco mÃ¡s delgado para que sea elegante */
        background-color: #04667C;
        /* Mismo azul que tu header */
        z-index: 1020;
        /* Justo debajo de la barra azul (1030) */
        display: flex;
        align-items: center;
        visibility: hidden;
        opacity: 0;
        transition: all 0.3s ease-in-out;
        box-shadow: 0 8px 10px rgba(0, 0, 0, 0.1);
    }

    .search-overlay-fixed.active {
        visibility: visible;
        opacity: 1;
        top: 128px;
    }

    /* Contenedor interno para que el input no sea gigante */
    .search-bar-fixed-content {
        display: flex;
        align-items: center;
        background: white;
        padding: 5px 20px;
        border-radius: 25px;
        max-width: 523px;
        margin-left: 0%;
    }

    .search-bar-fixed-content input {
        border: none;
        outline: none;
        width: 100%;
        padding: 8px;
        font-size: 14px;
    }

    .search-bar-fixed-content button#close-overlay-fixed {
        border: none;
        background: none;
        cursor: pointer;
        color: #04667C;
        font-size: 18px;
    }

    .tagline {
        display: block;
        font-size: 1.4rem;
        margin-top: 10px;
        margin-bottom: -1%;
        margin-left: 13%;

    }

    .card-service {
        min-height: 134px !important;
        height: auto !important;
        margin-bottom: 15px;
        margin-top: -20%;
        width: 144px;
        margin-left: -8%;
    }

    .btn-primary-cursos {
        margin-top: 9%;
    }

    .btn-primary-financiamiento {
        margin-top: 8%;
        width: 90% !important;
        font-size: 1.2rem;
        padding: 9px 1px !important;
        margin-left: 5%;
    }

    .card-content p {
        font-size: 1.4rem;
        margin-top: -4%;
    }

    .card-content-financiamiento h3 {
        margin-top: 2%;
    }

    .card-content h3 {
        margin-top: 10%;
    }

    .card-content-financiamiento p {
        font-size: 1.4rem;
        margin-top: 0%;
    }

    .btn-primary-financiamiento:hover {
        background-color: #007393 !important;
        /* Un azul mÃ¡s oscuro o el color que prefieras */
        transform: translateY(-2px);
        /* PequeÃ±a elevaciÃ³n */
        transition: all 0.3s ease;
        color: white;
        font-weight: bold;
    }

    /* Efecto para el botÃ³n de cursos */
    .btn-primary-cursos:hover {
        background-color: #007393 !important;
        /* Por ejemplo, el naranja institucional */
        color: white !important;
        transition: all 0.3s ease;
        transform: translateY(-2px);
        /* PequeÃ±a elevaciÃ³n */
        font-weight: bold;
    }

    .card-service-financiamiento {
        min-height: 134px !important;
        /* Altura mÃ¡s pequeÃ±a para mÃ³vil */
        height: auto !important;
        margin-bottom: 15px;
        margin-top: -20%;
        margin-left: -14%;
        width: 144px;
    }

    .nav-card p {
        font-size: 1.4rem;
    }

    .carrusel-slides {
        display: flex;
        width: 600% !important;
        /* Ajustado para 5 slides (4 + 1 clon)[cite: 6, 8] */
        transition: transform 4.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .carrusel-frame {
        margin-top: 30px;
    }

    .prev {
        width: 20px;
        height: 20px;
        margin-top: 6%;
        margin-right: -9px;
        background-color: rgba(4, 102, 124, 0.3);
    }

    .next {
        width: 20px;
        height: 20px;
        margin-top: 6%;
        margin-right: -15px;
        background-color: rgba(4, 102, 124, 0.3);
    }


    .boton-carrusel-eco,
    .boton-carrusel-inter {
        width: 93%;
        font-size: 1.2rem;
        height: 27%;
        /* padding: 13px 51px; */
        margin-left: 7px;
        justify-content: center;
        text-align: center;
        align-items: center;
        margin-top: 62px;
        margin-bottom: 1px;
    }

    .boton-carrusel-ciu {
        width: 93%;
        font-size: 1.2rem;
        height: 27%;
        /* padding: 13px 51px; */
        margin-left: 7px;
        justify-content: center;
        text-align: center;
        align-items: center;
        margin-top: 62px;
        margin-bottom: 38px;
    }

    .boton-carrusel-cap {
        width: 156px;
        font-size: 1.2rem;
        height: 27%;
        padding: 6px 30px;
        margin-left: -107px;
        justify-content: center;
        text-align: center;
        align-items: center;
        margin-top: 58px;
        margin-bottom: 42px;
    }
/* 
    .boton-carrusel-emi {
        width: auto;
        font-size: 1.2rem;
        height: 27%;
        padding: 6px 30px;
        margin-left: -107px;
        justify-content: center;
        text-align: center;
        align-items: center;
        margin-top: 58px;
        margin-bottom: 42px;
    } */

    /* .boton-carrusel-new{
    width: 156px;
    font-size: 1.2rem;
    height: 27%;
    padding: 6px 30px;
    margin-left: -107px;
    justify-content: center;
    text-align: center;
    align-items: center;
    margin-top: 58px;
    margin-bottom: 42px;
   } */
    .btn-responsivo img {
        width: 17%;
        height: 17%;
        margin-left: 12%;
    }

    .btn-responsivo {
        font-size: .6rem;
        padding: 0px 15px;
        width: 32%;
        margin-left: 24%;
        margin-top: 2%;
    }

    .investment-section {
        margin-left: -11%;
        margin-top: -42px;
        transform: rotate(90deg);
        padding: 0 0 0 0px;
        width: 90%;
        height: 100%;
        /* min-width: 307px; */
        min-height: 417px;
    }

    .card-investment-general {
        position: relative;
        height: 189px;
        border-radius: 17px;
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: -16px;
        left: 74%;
        width: 108%;
        margin-top: -42%;
        margin-left: 0%;
    }

    .card-investment-general-cetes {
        position: relative;
        height: 189px;
        border-radius: 17px;
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: -51px;
        left: 0%;
        margin-left: 1%;
        width: 108%;
    }



    .card-investment-general::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* Gradiente radial: centro azul sutil que se desvanece a transparente */
        background: radial-gradient(circle at center,
                rgba(0, 212, 255, 0.5) 0%,
                /* Azul cian brillante al centro */
                rgba(0, 75, 97, 0.8) 30%,
                /* Azul Nafin semi-transparente */
                rgba(0, 75, 97, 0) 0%
                /* Desvanecimiento total */
            );
        opacity: 0;
        /* Invisible por defecto */
        transition: opacity 0.4s ease;
        z-index: 1;
        filter: blur(15px);
    }

    .card-investment-general-cetes::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* Gradiente radial: centro azul sutil que se desvanece a transparente */
        background: radial-gradient(circle at center,
                rgba(0, 212, 255, 0.5) 0%,
                /* Azul cian brillante al centro */
                rgba(0, 75, 97, 0.8) 30%,
                /* Azul Nafin semi-transparente */
                rgba(0, 75, 97, 0) 0%
                /* Desvanecimiento total */
            );
        opacity: 0;
        /* Invisible por defecto */
        transition: opacity 0.4s ease;
        z-index: 1;
        filter: blur(15px);
    }

    .card-content-fondo {
        margin-left: -7%;
        transform: rotate(-90deg);
        width: 63%;
        margin-top: -6%;
    }

    .card-content-cetes {
        margin-left: -22%;
        margin-top: -9%;
        transform: rotate(-90deg);
        width: 69%;
    }

    .card-background-wrapper {
        position: absolute;
        top: 0;
        right: 0;
        width: 322px;
        height: 163px;
        background-size: cover;
        background-position: center;
        filter: brightness(0.8);
        transition: transform 0.5s ease;
        -webkit-mask-size: contain;
        /* mask-size: contain; */
        -webkit-mask-size: 70% 88%;
        -webkit-mask-repeat: no-repeat;
        /* mask-repeat: no-repeat; */
        -webkit-mask-position: center;
        mask-position: center;
        border-radius: 17px;
    }

    .card-background-wrapper-cetes {
        position: absolute;
        top: 0;
        right: 0;
        width: 322px;
        height: 163px;
        background-size: cover;
        background-position: center;
        filter: brightness(0.8);
        transition: transform 0.5s ease;
        -webkit-mask-size: contain;
        /* mask-size: contain; */
        -webkit-mask-size: 70% 88%;
        -webkit-mask-repeat: no-repeat;
        /* mask-repeat: no-repeat; */
        -webkit-mask-position: center;
        mask-position: center;
        border-radius: 17px;
    }

    .cetes-mask {
        background-image: url('assets/cetes_movil_5.png');
        /* Tu imagen real */
    }

    .fondo-mask {
        background-image: url('assets/fondo_movil_6.png');
        /* Tu imagen real */
    }

    .footer-nafin {
        margin-top: 32%;
        background-color: #7a7a7a;
        color: #fff;
        padding: 34px 0;
    }

    /* Reducimos el padding de las columnas de Bootstrap para ganar espacio */
    .footer-nafin .col-xs-6 {
        padding-left: 5px !important;
        padding-right: 5px !important;
        margin-bottom: 20px;
    }
    .footer-nafin h4 {
        font-size: 13px;
        display: inline-block;
        margin-bottom: 8px;
        padding-bottom: 2px;
        width: auto;
        line-height: 1.1;
        margin-top: 13%;
    }

    /* ReducciÃ³n de fuente de los enlaces para que no desborden */
    .footer-nafin ul li a {
        font-size: 10px;
        line-height: 1.2;
        display: block;
        word-wrap: break-word;
    }

    /* Ajuste de logos de transparencia para que quepan en la columna */
    .logos-transparencia {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        justify-content: flex-start !important;
    }

    .logos-transparencia img {
        height: 18px !important;
        /* Logos mÃ¡s pequeÃ±os para evitar el desborde */
        max-width: 100%;
    }

    /* Redes sociales en una sola lÃ­nea pequeÃ±a */
    .social-links-nafin {
        gap: 8px;
        margin-top: 10px;
    }

    .social-links-nafin a {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }

    .copyright {
        font-size: .7rem;
        margin-left: 3%;
        text-align: left;
    }

    .text-social-links {
        margin-top: -13%;
    }
}

@media (min-width: 688px) and (max-width: 767px) {
    .investment-cards {
        margin-top: 0;
        padding-top: 30px;
    }

    .investment-card {
        width: 45%;
    }
}

/* === FIX GLOBAL: Cards alineadas en todos los breakpoints de escritorio === */
/* Aplica desde 768px en adelante (tablets y escritorio) */
@media (min-width: 768px) {

    /* El row de las cards se comporta como flex para igualar alturas */
    .services .row {
        display: flex !important;
        align-items: stretch !important;
    }

    .services .col-xs-6 {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Ambas cards crecen hasta la misma altura */
    .card-service,
    .card-service-financiamiento {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        min-height: 0 !important;
    }

    /* El contenido ocupa todo el espacio disponible */
    .card-content,
    .card-content-financiamiento {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
        justify-content: flex-start !important;
    }

    /* Botones siempre al fondo, sin importar cuánto texto haya arriba */
    .btn-primary-financiamiento,
    .btn-primary-cursos {
        margin-top: auto !important;
        width: 100% !important;
        align-self: center !important;
        box-sizing: border-box !important;
    }
}