@font-face {
    font-family: 'Benton Sans';
    src: url('/wp-content/themes/portalBPO/fonts/benton-sans/BentonSansBBVA-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'BentonSansBBVA-Medium';
    src: url('/wp-content/themes/portalBPO/fonts/benton-sans/BentonSansBBVA-Medium.ttf') format('truetype');
    font-weight: normal; 
    font-style: normal;
}
@font-face {
    font-family: 'BentonSansBBVA-Book';
    src: url('/wp-content/themes/portalBPO/fonts/benton-sans/BentonSansBBVA-Book.ttf') format('truetype');
    font-weight: 350; 
    font-style: normal;
}
@font-face {
    font-family: 'Benton Sans';
    src: url('/wp-content/themes/portalBPO/fonts/benton-sans/BentonSansBBVA-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Tiempos Headline';
    src: url('/wp-content/themes/portalBPO/fonts/tiempos-headline/TiemposHeadline-Regular.woff2') format('woff2'),
         url('/wp-content/themes/portalBPO/fonts/tiempos-headline/TiemposHeadline-Regular.woff') format('woff'),
         url('/wp-content/themes/portalBPO/fonts/tiempos-headline/TiemposHeadline-Regular.ttf') format('truetype'),
         url('/wp-content/themes/portalBPO/fonts/tiempos-headline/TiemposHeadline-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Tiempos Headline';
    src: url('/wp-content/themes/portalBPO/fonts/tiempos-headline/TiemposHeadline-Bold.woff2') format('woff2'),
         url('/wp-content/themes/portalBPO/fonts/tiempos-headline/TiemposHeadline-Bold.woff') format('woff'),
         url('/wp-content/themes/portalBPO/fonts/tiempos-headline/TiemposHeadline-Bold.ttf') format('truetype'),
         url('/wp-content/themes/portalBPO/fonts/tiempos-headline/TiemposHeadline-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}


/* ===== MENU OVERLAY ===== */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #f7f7f7;
    z-index: 999;
    overflow-y: auto;
    display: none;
    padding-top: 100px;
}

.menu-overlay.active {
    display: block;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

.menu-container {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Hace que la fila crezca hasta abajo */
.menu-container > .row {
    flex-grow: 1;
    margin: 0;
    width: 100%;
}

.menu-container > .row > .col-lg-3 {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
}

/* ===== COLUMNA IZQUIERDA: TARJETAS ===== */
.main-title-cards {
    font-family: 'Tiempos Headline', serif;
    color: #070E46;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin-left: 14px;
}

.info-card {
    background: #ffffff;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 320px;
    max-width: 360px;
    width: 100%;
    box-sizing: border-box;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    cursor: default;
}

.info-card:hover .card-icon img {
    transform: translateY(-10px);
    cursor: pointer;
}

.btn.active {
    color: var(--bs-btn-active-color);
    background-color: #ffffff;
    border-color: #ffffff;
}

.card-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.card-icon img {
    transition: transform 0.3s ease-out;
    display: block;
    max-width: 100%;
    height: auto;
}

.info-card h3.card-title {
    color: #070E46;
    font-family: 'Tiempos Headline', serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
    white-space: normal;
}

.info-card p.card-text {
    font-family: 'BentonSansBBVA-Book', sans-serif;
    color: #070E46;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    max-width: 100%;
}

/* ===== SIDEBAR ===== */
.menu-sidebar-panel {
    background-color: #ffffff;
    padding: 24px 18px;
    flex-grow: 1;
    width: 100%;
    position: relative;
    overflow: visible;
}

.menu-sidebar-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 100%;
    width: 100vw;
    height: 100%;
    background-color: #ffffff;
    z-index: -1;
}

.menu-sidebar-title {
    font-family: 'BentonSansBBVA-Medium', sans-serif;
    color: #070E46;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 30px;
}

.info-links {
    gap: 10px;
}

.info-link {
    color: #001391;
    text-decoration: none;
    font-family: 'BentonSansBBVA-Medium', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: color 0.2s ease;
}

.info-link:hover {
    color: #070E46;
}
.info-link:hover .link-icon {
    filter: brightness(0) saturate(100%) invert(8%) sepia(98%) saturate(1414%) hue-rotate(239deg) brightness(97%) contrast(96%);
    color: #070E46 !important;
}

.link-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.link-icon:hover{
    color:#070E46 !important;
}

.menu-divider {
    border-top: 1px solid #cacaca;
    margin: 20px 0;
    opacity: 1;
}

/* ===== MEDIA QUERIES ===== */

/* Tablet / Desktop pequeño */
@media (min-width: 768px) {
    div.menu-container.p-md-5 {
        padding: 0 !important;
        max-width: 96.4%;
        min-height: calc(100vh - 100px);
    }

    .menu-container > .row {
        --bs-gutter-x: 0 !important;
        --bs-gutter-y: 0 !important;
        margin: 0 auto !important;
        width: 95%;
        flex-grow: 1;
    }

    .menu-container > .row > .col-lg-9 {
        padding: 3rem 5rem !important;
    }

    .menu-container > .row > .col-lg-3 {
        padding: 0 !important;
    }

    .menu-sidebar-panel {
        position: relative;
        width: 124%;
        height: 100%;
        border-radius: 0;
        box-shadow: -4px 0 10px rgba(198, 198, 199, 0.103);
        border-left: 1px solid #ffffff;
        border-right: 1px solid #f8f8f8;
    }
}
/* Desktop: alineación título y tarjetas con el margen del logo (992px–1599px) */
@media (min-width: 992px) and (max-width: 1600px) {
    .menu-container > .row {
        max-width: 1324px;
        margin: 0 auto !important;
        width: 100%;
    }

    .menu-container > .row > .col-lg-9 {
        padding-left: 14px !important;
        padding-right: 14px !important;
        padding-top: 48px !important;
    }

    .main-title-cards {
        margin-left: 4px;
    }

    .info-card {
        max-width: 300px;
    }

    .menu-container > .row > .col-lg-9 .row.g-4 {
        --bs-gutter-x: 1.25rem;
        --bs-gutter-y: 1.25rem;
    }
}

/* Laptops grandes (sobreescribe el anterior en el rango 1392px–1600px) */
@media (min-width: 1392px) and (max-width: 2000px) {
    .menu-sidebar-panel {
        position: relative;
        width: 100%;
        height: 100%;
        border-radius: 0;
        box-shadow: -4px 0 10px rgba(198, 198, 199, 0.103);
        border-left: 1px solid #ffffff;
        border-right: 1px solid #ffffff;
    }
    .main-title-cards {
        margin-left: 1px;
    }
    .menu-container > .row > .col-lg-9 {
        padding-left: 30px !important;
        padding-right: 30px !important;
        padding-top: 48px !important;
    }
}

/* Monitores Grandes */
@media screen and (min-width: 1600px) {
    .main-title-cards {
        font-size: 48px;
        line-height: 56px;
        margin-top: 48px;
        text-align: left;
        margin-left: 57px; 
    }
    .menu-container > .row > .col-lg-9 {
        padding: 1rem 5rem !important;
    }

    .menu-container > .row {
        max-width: 1370px;
        margin: 0 auto !important;
        width: 100%;
    }

    .menu-container > .row > .col-lg-3 {
        flex: 0 0 320px;
        max-width: 320px;
        padding: 0 !important;
    }
        .menu-sidebar-panel {
        position: relative;
        width: 100%;
        height: 100%;
        border-radius: 0;
        box-shadow: -4px 0 10px rgba(198, 198, 199, 0.103);
        border-left: 1px solid #ffffff;
        border-right: 1px solid #ffffff;
    }

    .menu-container > .row > .col-lg-9 {
        padding-left: 38px !important;
        padding-right: 52px !important;
    }
      .main-title-cards {
        margin-left: 15px;
    }

    .menu-container > .row > .col-lg-9 .row.g-4 {
        max-width: 1080px;
        margin: 0;
    }

    .info-card {
        margin-right: 24px;
    }

    .info-card:last-child {
        margin-right: 0;
    }
}

/* ===== AJUSTES MÓVILES ===== */
@media (max-width: 991px) {

    /* --- Header y Navegación --- */
    .menu-header-bar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px;
        padding: 0 20px;
        background: #f7f7f7;
        z-index: 1000;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .menu-close-btn {
        position: absolute;
        top: 18px;
        right: 20px;
        z-index: 1001;
    }

    .menu-overlay {
        width: 100vw;
        padding-top: 60px;
        padding-bottom: 20px;
        overflow-x: hidden;
        background-color: #f7f7f7;
    }

    .menu-top-links {
        display: flex;
        align-items: center;
        padding: 0 20px;
        margin-top: 0;
        margin-bottom: 20px;
        box-shadow: 0 1px 0 0 #ccc;
        border-bottom: 1px solid #fff;
        position: relative;
    }

    .top-menu-link {
        display: inline-block;
        font-family: 'BentonSansBBVA-Medium', sans-serif;
        font-size: 15.01px;
        font-weight: 500;
        color: #001391;
        text-decoration: none;
        padding: 38px 0 5px 0;
        margin-right: 30px;
        position: relative;
    }

    .top-menu-link.active {
        font-weight: 500;
        color: #070E46;
        font-family: 'BentonSansBBVA-Medium', sans-serif;
    }

   .top-menu-link.active::after{
        content: '';
        position: absolute;
        bottom: -3px;
        height: 2px;
        background-color: #070E46;
        width: 100%;
        left: 50%;
        transform: translateX(-50%);
        z-index: 2;
        border-radius: 12px;
    }

    /* --- Estructura y Ordenamiento --- */
    .menu-container {
        padding-left: 0;
        padding-right: 0;
        min-height: auto;
    }

    .menu-overlay .row {
        flex-direction: column;
        display: flex;
    }

    
    .menu-overlay .col-md-4 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* 1. Panel Superior: Cuentas e Inversiones */
    .menu-overlay .col-lg-3 {
        width: 100%;
        display: block !important;
        order: 1; 
        padding: 0 !important;
    }

    /* 2. Panel Central: Tarjetas */
    .menu-overlay .col-lg-9 {
        display: block !important; 
        order: 2; 
        padding: 0 20px !important;
        margin-top: 20px;
    }

    /* 3. Panel Inferior: Servicios Digitales */
    .menu-overlay .order-3 {
        order: 3; 
    }

    .menu-container > .row {
        --bs-gutter-y: 0 !important;
        --bs-gutter-x: 0 !important;
        margin-top: 0 !important;
    }

    /* --- Estilos del Panel Lateral (Sidebar) --- */
    .menu-sidebar-panel {
        background-color: transparent;
        box-shadow: none !important;
        border: none !important;
        padding: 0;
        width: 100% !important;
        height: auto !important;
    }

    .menu-sidebar-title {
        display: none; 
    }
    .main-title-cards {
        font-size: 32px;
        text-align: center;
        margin-left: 0;
        margin-bottom: 25px;
    }

    /* --- TARJETAS CENTRADAS  --- */
  .info-card {
        min-height: auto;
        align-items: center;
        text-align: center;
        margin-bottom: 15px;
        padding: 40px 20px;
        margin: 10px 0;
        width: calc(112% - 40px);
        max-width: none;
    }
    
    .info-card .card-icon {
        margin-bottom: 15px;
        justify-content: center; 
        width: auto;
        height: auto;
    }

    .info-card .card-icon img {
        width: 168px;
        height: 168px;
        margin-left: 0;
        margin-right: 111px;
    }

    .info-card h3.card-title {
        font-size: 32px;
        text-align: left;
        margin-right: 0; 
        width: 100%;
    }
    
    .info-card p.card-text {
        font-size: 14px;
        max-width: 100%;
        text-align: left;
    }

    /* --- Estilos de Botones / Enlaces --- */
    
    .info-link {
        display: block;
        background-color: #fff;
        border-radius: 16px;
        margin: 10px auto;
        width: 90%;
        font-size: 15.01px;
        font-weight: 500;
        padding: 20px;
        color: #001391;
        text-decoration: none;
        font-family: 'BentonSansBBVA-Medium', sans-serif;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.11);
    }

    .menu-divider {
        display: none;
    }

   .links-group-container .info-link.has-icon {
        display: block;
        background-color: transparent !important;
        box-shadow: none;
        margin: 0 !important;
        width: 100%;
        padding: 20px 25px;
        border-bottom: 1px solid #ffffff; 
        font-size: 15.01px;
        font-weight: 500;
        color: #001391;
        font-family: 'BentonSansBBVA-Medium', sans-serif;
        text-decoration: none;
    }

    .mobile-profile-icon {
        margin-left: 0;
        padding-left: 0;
    }

    .info-link.has-icon .link-icon {
        margin-right: 15px;
        width: 24px;
        height: 24px;
    }

   .links-group-container {
        background-color: #ffffff !important; 
        border-radius: 16px;       
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.11);
        margin: 10px auto;
        padding: 0;                
        width: 90%;
        overflow: hidden;
    }
    .links-group-container .info-link.has-icon:last-child {
        border-bottom: none;
}
}
@media (min-width: 992px) and (max-width: 1280px) {
    .menu-sidebar-panel {
        width: 99%;
    }
    .menu-container > .row > .col-lg-9 {
        padding-left: 0rem !important;
        padding-right: 1rem !important;
    }
    .info-card h3.card-title{
        font-size: 29px;
        margin-left: -8px;
    }
    .info-card p.card-text{
        max-width: 100%;
    }


}

/* Tablet: tarjetas centradas */
@media (min-width: 768px) and (max-width: 991px) {
    .info-card {
    margin-left: -80px;
    margin-right: 0;
    width: calc(114% + 78px);
    max-width: none;
    }
    .info-link {
        width: 100% !important;
        margin-left: 2px;
        max-width: 100% !important;
    } 
        .info-card h3.card-title {
        font-size: 32px;
        text-align: center;
        white-space: nowrap;
    }
        .info-card h3.card-title br {
        display: none;
    }
        .info-card .card-icon img {
        width: 120px;
        height: 120px !important;
        margin-left: 0;
        margin-right: 4px;
    }
        .links-group-container{
         width: 99%;
        margin: 0px auto;
        margin-left: 4px;
        }
        .menu-sidebar-panel::after {
        background-color: #f7f7f7;
        }
}
@media (min-width: 365px) and (max-width: 500px) {
    .info-card {
        width: calc(112% - 40px);
    }
}