/* ==========================================================================
   1. FUENTES Y VARIABLES
   ========================================================================== */

@font-face {
    font-family: 'Yellix';
    src: url('/wp-content/themes/tivalsa/assets/fonts/Yellix/Yellix-Bold.woff2') format('woff2'),
         url('/wp-content/themes/tivalsa/assets/fonts/Yellix/Yellix-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Yellix';
    src: url('/wp-content/themes/tivalsa/assets/fonts/Yellix/Yellix-ExtraBold.woff2') format('woff2'),
         url('/wp-content/themes/tivalsa/assets/fonts/Yellix/Yellix-ExtraBold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-brand: 'Yellix', sans-serif;

    /* Home */
    --fs-hero-title: clamp(40px, 3.854vw, 74px);
    --fs-hero-eyebrow: clamp(20px, 1.5625vw, 30px);
    --fs-hero-cta: clamp(16px, 1.5625vw, 22px);
    --fs-section-title: clamp(40px, 3.49vw, 67px);

    /* Soluciones de inversión */
    --fs-sol-hero-title: clamp(52px, 5.104vw, 98px);
    --fs-sol-hero-text: clamp(20px, 1.51vw, 29px);
    --fs-feature-title: clamp(36px, 3.021vw, 58px);
    --fs-feature-li: clamp(18px, 1.354vw, 26px);
    --fs-feature-btn: clamp(24px, 1.927vw, 37px);
    --fs-card-title: clamp(26px, 1.771vw, 34px);
    --fs-card-li: clamp(16px, 1.042vw, 20px);
    --fs-card-btn: clamp(18px, 1.198vw, 23px);

    /* Contacto */
    --fs-page-title: clamp(64px, 6.458vw, 124px);
    --fs-page-desc: clamp(20px, 1.51vw, 29px);

    /* Navegación */
    --fs-nav: clamp(15px, 1.094vw, 21px);
    --fs-header-btn: clamp(14px, 1.074vw, 18px);
}

/* ==========================================================================
   2. CONTENEDORES Y UTILIDADES
   ========================================================================== */

.container-fluid {
    max-width: 1920px;
}

.investment-section {
    padding: 24px;
}

.radius-xl {
    border-radius: 40px;
}

.rounded-xl {
    border-radius: 3rem;
}

.horizontal-card {
    width: 100% !important;
}

.vertical-container {
    width: 100%;
    height: 610px;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    padding: 0;
    gap: 0;
    justify-content: space-between;
}

.white-card .__body .__description ul li,
.white-card .__body .__description {
    font-family: 'Yellix' !important;
}

h1#SR7_3_1-14-5,
p#SR7_3_1-14-7,
.font-brand {
    font-family: var(--font-brand) !important;
}

h1#SR7_3_1-14-5 {
    font-family: 'Yellix' !important;
}

/* Regla conservada del archivo original. */
element.style {
    translate: none;
    rotate: none;
    scale: none;
    opacity: 1;
    transform: translate(0px, 0px);
}

/* ==========================================================================
   3. NAVEGACIÓN
   ========================================================================== */

.navbar {
    padding: 36px 0 !important;
}

.navbar-light .navbar-nav .nav-item .nav-link {
    color: #fff;
}

.nav-link.active,
.navbar-light .navbar-nav .nav-item .nav-link .dropdown-item:hover,
.navbar-light .navbar-nav .nav-item .nav-link:hover {
    color: #fff;
}

.navbar-blue .navbar-nav .nav-item .nav-link {
    color: #0b1445;
}

.nav-link.active,
.navbar-blue .navbar-nav .nav-item .nav-link .dropdown-item:hover,
.navbar-blue .navbar-nav .nav-item .nav-link:hover {
    color: #1833E8;
}

.login-btn {
    background-color: transparent !important;
    border: 2px solid #0b1445;
    color: #0b1445 !important;
}

#navbarSupportedContent:not(.show) .form-inline.my-2.my-lg-0.text-center {
    display: flex;
    flex-wrap: nowrap;
}

#navbarSupportedContent.show .form-inline.my-2.my-lg-0.text-center {
    display: flex;
    flex-wrap: wrap;
}

#menu-principal.dropdown-active {
    background-color: transparent;
}

nav#menu-principal.fixed-top-scroll a {
    color: #0b1445 !important;
}

nav#menu-principal.fixed-top-scroll .create-btn.rounded-pill.create-btn-scroll-mobile {
    background-color: #0b1445 !important;
    color: #fff !important;
}

nav#menu-principal.fixed-top-scroll .login-btn.rounded-pill.btn-login-scroll-mobile {
    border: 2px solid #0b1445 !important;
}

/* ==========================================================================
   4. HERO Y ENCABEZADOS
   ========================================================================== */

.hero-card {
    background: #0b1445;
    height: 100vh;
    max-height: 750px;
    padding: 165px;
    display: flex;
    align-items: center;
}

.hero-title {
    color: #fff;
    font-size: 60px;
    font-weight: 600;
    line-height: 0.95;
    text-transform: uppercase;
    word-break: break-word;
}

.hero-text {
    color: #d6d0e7;
    font-size: 20px;
    line-height: 1;
    max-width: 600px;
}

.header-description {
    padding: 0 10% !important;
}

.image-content-dynamic-header {
    background-position: center;
}

.slidershow sr7-module {
    border-radius: 40px;
    overflow: hidden;
}

.sub-slider br,
.title-slider br {
    display: block !important;
}

.sol-h {
    letter-spacing: 0em;
}

/* ==========================================================================
   5. TARJETA DESTACADA
   ========================================================================== */

.feature-card {
    background: #e8e8e8;
    border-radius: 3rem;
    overflow: hidden;
    height: 100%;
}

.feature-content {
    padding: 45px;
}

.feature-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: #0B1445;
    word-break: break-word;
}

/* 10px era el valor global que prevalecía en el archivo original. */
.feature-list {
    padding-left: 10px;
    margin-bottom: 28px;
}

.feature-list li {
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.5;
    color: #32285c;
    font-family: 'Yellix';
}

.feature-image {
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    object-fit: cover;
}

#mutuo-de-valoresestructurado .no-gutters {
    display: flex;
    justify-content: space-between;
}

/* ==========================================================================
   6. TARJETAS PEQUEÑAS
   ========================================================================== */

.small-card {
    background: #e8e8e8;
    border-radius: 40px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.small-card > img {
    width: 100%;
    height: 321px;
    object-fit: cover;
    border-radius: 32px;
    object-position: bottom;
}

.small-card-body {
    color: #0B1445;
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.small-card-body br {
    display: none;
}

.small-card-title {
    font-size: 26px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 18px;
    color: #0B1445;
    word-break: break-word;
}

.small-card ul {
    padding-left: 14px;
}

.small-card li {
    font-size: 16px;
    line-height: 1;
    margin-bottom: 20px;
    font-family: 'Yellix';
}

.feature-card,
.small-card {
    scroll-margin-top: 120px;
}

.sol-card,
.small-card {
    overflow: hidden;
    border-radius: 32px;
}

/* ==========================================================================
   7. BOTONES Y COMPONENTES
   ========================================================================== */

.btn-invest {
    background: #090aff;
    color: white;
    border: none;
    border-radius: 999px;
    padding: 14px 24px;
    font-size: clamp(1rem, 1.5vw, 1.875rem);
    font-weight: 600;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-width: 210px;
    transition: 0.3s ease;
    margin-top: auto;
    gap: 10px;
}

.btn-invest-grid {
    font-size: clamp(1.25rem, .9vw, 1.875rem);
}

.btn-invest:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-arrow {
    font-size: 24px;
    margin-left: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.btn-arrow svg {
    width: 38px;
    height: 38px;
}

.product-invest-btn {
    border-radius: 50px !important;
}

.office-dropdown .dropdown-button,
.investment-button,
.btn-wsp-appointment {
    border-radius: 32px;
}

.sol-btn {
    display: inline-block;
    background: #0a0cef;
    color: #fff;
    font-size: 20px;
    border-radius: 50px;
    padding: 10px 24px;
    text-decoration: none;
    width: fit-content;
}

.sol-btn :hover {
    text-decoration: none;
}

.btn-custom-tab-aprender.active,
.btn-link-aprender-banner {
    background-color: #0a0cef;
    border-radius: 50px;
}

.btn-custom-tab-aprender {
    border-radius: 50px;
}

.valores-container {
    border-radius: 32px;
}

.contact-appointment-img {
    border-radius: 32px 0 0 32px;
}

#carouselExampleControls .carousel-inner > .carousel-control-prev .fas.fa-chevron-right.text-dark,
#carouselExampleControls .carousel-inner > .carousel-control-next .fas.fa-chevron-right.text-dark {
    font-size: 34px;
    color: #7e7e7e !important;
}

/* ==========================================================================
   8. TRANSICIONES Y ANIMACIONES
   ========================================================================== */

.page-transition-clone {
    position: fixed;
    z-index: 999999;
    pointer-events: none;
    overflow: hidden;
    border-radius: 32px;
    will-change: transform, width, height, top, left;
}

.page-transition-clone .sol-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.page-transition-overlay {
    position: fixed;
    inset: 0;
    background: #e8ebf4;
    opacity: 0;
    z-index: 999998;
    pointer-events: none;
    transition: opacity .45s ease;
}

.js-investment-page {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity .9s ease,
        transform .9s cubic-bezier(.19, 1, .22, 1);
}

.js-investment-page.page-loaded {
    opacity: 1;
    transform: translateY(0);
}

.focus-target {
    animation: focusPulse 2s ease;
}

@keyframes focusPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.015);
    }

    100% {
        transform: scale(1);
    }
}

html {
    view-transition-name: root;
}

::view-transition-old(root),
::view-transition-new(root),
::view-transition-group(*) {
    animation-duration: 700ms;
    animation-timing-function: cubic-bezier(.19, 1, .22, 1);
}

::view-transition-old(sol-featured),
::view-transition-new(sol-featured) {
    animation: none;
}

/* ==========================================================================
   9. DESKTOP: NAVEGACIÓN DESDE 1200px
   ========================================================================== */

@media (min-width: 1200px) {
    .navbar-nav .nav-link {
        font-family: var(--font-brand);
        font-size: var(--fs-nav);
        font-weight: 600;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .login-btn,
    .create-btn {
        font-family: var(--font-brand);
        font-size: var(--fs-header-btn);
        font-weight: 600;
        text-transform: uppercase;
        white-space: nowrap;
        width: auto;
        min-width: 0;
        padding-left: clamp(14px, 1.25vw, 24px);
        padding-right: clamp(14px, 1.25vw, 24px);
    }
}

/* ==========================================================================
   10. DESKTOP: CONTENIDO DESDE 992px
   ========================================================================== */

@media (min-width: 992px) {
    /* Se conserva el comportamiento desktop del archivo original. */
/*    #mutuo-de-valoresestructurado .no-gutters {
        flex-direction: column-reverse;
    }
*/
    .small-card-text {
        font-size: 16px;
    }

    /* Home: títulos */
    #SR7_1_1 .title-slider,
    #SR7_1_1-5-5 {
        font-family: var(--font-brand) !important;
        font-size: var(--fs-hero-title) !important;
        font-weight: 700 !important;
        line-height: 1.1 !important;
        text-transform: uppercase !important;
    }

    /* Home: subtítulos */
    #SR7_1_1-1-7,
    #SR7_1_1-5-7,
    #SR7_1_1-6-7,
    #SR7_1_1-7-7 {
        font-family: var(--font-brand) !important;
        font-size: var(--fs-hero-eyebrow) !important;
        font-weight: 600 !important;
        line-height: 1.15 !important;
        text-transform: uppercase !important;
    }

    /* Home: botones */
    #SR7_1_1-1-8,
    #SR7_1_1-5-8,
    #SR7_1_1-6-8,
    #SR7_1_1-7-8 {
        font-family: var(--font-brand) !important;
        font-size: var(--fs-hero-cta) !important;
        font-weight: 400 !important;
        line-height: 1.2 !important;
        text-transform: uppercase !important;
        padding: 10px 28px !important;
    }

    .sol-h {
        font-size: var(--fs-section-title);
        font-weight: 700;
        line-height: 1;
    }

    /* Soluciones: hero */
    #SR7_3_1-14-5 {
        font-family: var(--font-brand) !important;
        font-size: var(--fs-sol-hero-title) !important;
        font-weight: 700 !important;
        line-height: 1.06 !important;
        text-transform: uppercase !important;
    }

    #SR7_3_1-14-7 {
        font-family: var(--font-brand) !important;
        font-size: var(--fs-sol-hero-text) !important;
        font-weight: 400 !important;
        line-height: 1.17 !important;
    }

    /* Soluciones: tarjeta destacada */
    .feature-title {
        font-family: var(--font-brand);
        font-size: var(--fs-feature-title);
        font-weight: 700;
        line-height: 0.98;
    }

    .feature-list li {
        font-family: var(--font-brand);
        font-size: var(--fs-feature-li);
        font-weight: 500;
        line-height: 1;
    }

    .feature-content .btn-invest {
        font-family: var(--font-brand);
        font-size: var(--fs-feature-btn);
        font-weight: 600;
    }

    /* Soluciones: tarjetas pequeñas */
    .small-card-title {
        font-family: var(--font-brand);
        font-size: var(--fs-card-title);
        font-weight: 700;
        line-height: 1.08;
    }

    .small-card li,
    .small-card li span {
        font-family: var(--font-brand);
        font-size: var(--fs-card-li);
        font-weight: 500;
        line-height: 0.95;
    }

    .small-card li br {
        display: none;
    }

    .btn-invest.btn-invest-grid {
        font-family: var(--font-brand);
        font-size: var(--fs-card-btn);
        font-weight: 600;
    }

    /* Contacto */
    body:has(.page-template-conocenos) .header-title,
    body:has(.contact-appointment-text-main) .header-title {
        font-size: var(--fs-page-title);
        font-weight: 400;
        line-height: 1;
    }

    body:has(.contact-appointment-text-main) .header-description {
        font-family: var(--font-brand) !important;
        font-size: var(--fs-page-desc) !important;
        font-weight: 400;
        line-height: 1.09;
    }
}

/* ==========================================================================
   11. TABLET: HASTA 1200px
   ========================================================================== */

@media (max-width: 1200px) {
    .feature-image {
        top: auto;
        right: auto;
        height: auto;
    }

/*    .feature-card .row,
    #mutuo-de-valoresestructurado .no-gutters {
        flex-direction: column-reverse;
    }*/

    /* Este valor prevalecía sobre los demás breakpoints. */
    .rounded-xl {
        border-radius: 24px !important;
    }
}

/* ==========================================================================
   12. TABLET: HASTA 991px
   ========================================================================== */

@media (max-width: 991px) {
    .footer-section > div {
        text-align: center;
    }

    .footer-section {
        display: flex;
        align-items: center;
        flex-direction: column;
        flex-wrap: nowrap;
        align-content: center;
    }

    .investment-section {
        padding: 18px;
    }

    .hero-card {
        padding: 60px 40px;
        min-height: auto;
    }

    .hero-title {
        font-size: 42px;
        line-height: 1;
    }

    .hero-text {
        font-size: 18px;
    }

    .feature-content {
        padding: 50px 40px;
    }

    .feature-title {
        font-size: 38px;
    }

    .feature-list {
        font-size: 16px;
    }

    .feature-list li {
        font-size: 18px;
    }

    .small-card-title {
        font-size: 24px;
    }
}

/* ==========================================================================
   13. MOBILE: HASTA 768px
   ========================================================================== */

@media (max-width: 768px) {
    .hero-card {
        max-height: 480px;
    }
}

/* ==========================================================================
   14. MOBILE: HASTA 767px
   ========================================================================== */

@media (max-width: 767px) {
    .investment-section {
        padding: 12px;
    }

    .radius-xl,
    .feature-card,
    .slidershow sr7-module {
        border-radius: 3rem;
    }

    /* El radio global posterior de 32px prevalecía en el original. */
    .small-card {
        border-radius: 32px;
    }

    .hero-card {
        padding: 32px 22px;
        border-radius: 24px;
    }

    .hero-title {
        font-size: 30px;
        line-height: 1.05;
        margin-bottom: 16px;
    }

    .hero-text {
        font-size: 16px;
        line-height: 1.5;
    }

/*    .feature-card .row {
        flex-direction: column-reverse;
    }*/
/*
    #mutuo-de-valoresestructurado .no-gutters {
        display: flex !important;
        flex-direction: column-reverse !important;
    }
*/
    .feature-content {
        padding: 30px 22px;
    }

    .feature-title {
        font-size: 28px;
        margin-bottom: 18px;
    }

    .feature-list {
        font-size: 16px;
    }

    .feature-list li {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .feature-image {
        width: 100%;
        height: 260px;
        max-height: 260px;
        border-radius: 24px 24px 0 0;
    }

    .small-card img {
        height: 180px;
        border-radius: 24px;
    }

    .small-card-body {
        padding: 22px 18px;
    }

    .small-card-text {
        font-size: 16px;
    }

    .small-card-title {
        font-size: 22px;
        line-height: 1.1;
    }

    .small-card li {
        font-size: 15px;
        margin-bottom: 14px;
    }

    .btn-invest {
        width: 100%;
        min-width: 100%;
        padding: 14px 18px;
        font-size: 14px;
    }

    .btn-arrow {
        margin-left: 10px;
    }

    .btn-arrow svg {
        width: 30px;
        height: 30px;
    }

    .feature-list br {
        display: none !important;
    }
}

/* ==========================================================================
   15. MOBILE: HASTA 700px
   ========================================================================== */

@media (max-width: 700px) {
    .login-btn,
    .create-btn {
        width: 100%;
        margin: 0 0 10px;
    }

    .page-template-page-templatessoluciones-inversion-php .feature-image {
        width: 100%;
        height: 100%;
        position: relative;
        top: 0;
        right: 0;
        object-fit: cover;
    }

    .feature-list {
        padding-left: 7px;
        margin-bottom: 28px;
        font-size: 16px;
    }

    .feature-list li {
        font-size: 16px;
    }
    .feature-list br {
        display: none !important;
    }
}

/* ==========================================================================
   16. MOBILE PEQUEÑO: HASTA 480px
   ========================================================================== */

@media (max-width: 480px) {
    .hero-card {
        padding: 26px 18px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-text {
        font-size: 14px;
    }

    /* El bloque posterior de 767px prevalecía en el original. */
    .feature-content {
        padding: 30px 22px;
    }

    .feature-title {
        font-size: 24px;
    }

    .feature-list li {
        font-size: 16px;
    }

    .small-card-title {
        font-size: 20px;
    }

    .small-card li {
        font-size: 14px;
    }

    .small-card li br {
        display: none;
    }

    .feature-list br {
        display: none !important;
    }
}

/* ==========================================================================
   17. ESTADOS DEL MENÚ DESPLEGADO
   ========================================================================== */

#menu-principal.dropdown-active.navbar-light .navbar-nav .nav-link {
    color: #0b1445 !important;
}

#menu-principal.dropdown-active.navbar-light .navbar-nav .dropdown-item:focus,
#menu-principal.dropdown-active.navbar-light .navbar-nav .dropdown-item:hover {
    color: #16181b;
    text-decoration: none;
    background-color: #e9ecef;
}

#menu-principal.dropdown-active.navbar-light .form-inline .login-btn,
#menu-principal.dropdown-active.navbar-light .form-inline .create-btn {
    font-family: var(--font-brand);
    font-size: var(--fs-header-btn);
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    width: auto;
    min-width: 0;
    padding-left: clamp(14px, 1.25vw, 24px);
    padding-right: clamp(14px, 1.25vw, 24px);
}

#menu-principal.dropdown-active.navbar-light .form-inline .login-btn {
    border: 2px solid #0b1445;
    color: #0b1445 !important;
}

#menu-principal.dropdown-active.navbar-light .form-inline .create-btn {
    background-color: #0b1445;
    color: #ffffff !important;
}

/* ==========================================================================
   18. SALTOS DE LÍNEA EN FEATURE-LIST
   ========================================================================== */
