/*  SUB-FOOTER  */
.sub-footer-wrapper {
    padding: 0px 12px 40px 12px;
}

.sub-footer-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 40px calc(30px + var(--site-px));
    width: 100%;
}

.sub-footer-title {
    font-family: 'BentonSansBBVA-Medium', sans-serif;
    font-size: 20px;
    color: #070E46;
    margin-bottom: 25px;
    font-weight: 500;
}

.sub-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sub-footer-list li {
    margin-bottom: 18px;
}

.sub-footer-list a {
    font-family: 'BentonSansBBVA-Medium', sans-serif;
    font-size: 15.01px;
    color: #001391;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sub-footer-list a:hover {
    color: #070E46; 
}

.sub-footer-text {
    font-family: 'BentonSansBBVA-Book', sans-serif;
    font-size: 15.01px;
    color: #070E46;
    line-height: 1.6;
    margin: 0;
}

/*  Responsive (Móviles y Tablets) */
@media (max-width: 767px) {
    .sub-footer-wrapper {
        padding: 0px 12px;
        margin-bottom: 2rem;
    }
    
    .sub-footer-card {
        padding: 24px 24px !important; 
    }
    
    .sub-footer-title {
        margin-top: 25px;
        margin-bottom: 20px;
    }
    
    .col-lg-3:first-child .sub-footer-title {
        margin-top: 0;
    }

    /* 2 columnas en celular */
    .sub-footer-list {
        display: grid;
        grid-template-columns: 1fr 1fr; 
        row-gap: 18px;
        column-gap: 12px;
    }

    .sub-footer-list li {
        margin-bottom: 0;
        line-height: 1.3;
    }

    .sub-footer-list a {
        display: inline-block;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .sub-footer-wrapper {
        padding: 35px 12px;
    }

    .mob-tablet-footer-section .sub-footer-wrapper {
        padding: 35px 0;
    }

    .mob-tablet-footer-section .main-footer-wrapper {
        padding: 0 !important;
    }
    
    .sub-footer-card {
        padding: 24px 24px !important;
    }
    
    .sub-footer-card .col-md-6 {
        width: 100%;
        flex: 0 0 100%;
        margin-bottom: 40px !important; 
    }

    .sub-footer-card .col-md-6:last-child {
        margin-bottom: 0 !important;
    }

    .sub-footer-title {
        margin-top: 0;
        margin-bottom: 20px;
    }

    .sub-footer-list {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        row-gap: 16px;
        column-gap: 16px;
    }
    
    .sub-footer-list li {
        margin-bottom: 0;
        line-height: 1.3;
    }
    .sub-footer-list a {
        display: inline-block;
    }
}

/*  FOOTER PRINCIPAL */
.main-footer-wrapper {
    padding: 0 12px 12px 12px;
}


.main-footer-card {
    background-color: #001391; 
    border-radius: 16px;
    padding: 0 calc(30px + var(--site-px)) 40px;
    width: 100%;
    color: #ffffff;
}

.footer-logo-col {
    padding-top: 40px;
}

.footer-social-col {
    padding-top: 48px;
}

.footer-logo {
    display: inline-block;
    line-height: 0;
    margin-bottom: 40px;
}

.footer-logo-img {
    width: 180px;
    height: 46.19px;
}

.footer-copyright {
    font-family: 'BentonSansBBVA-Book', sans-serif;
    font-size: 15.01px;
    color: #ffffff;
    margin: 0;
}

/* Íconos de Redes Sociales */
.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    text-decoration: none;
}

.social-icon img,
.social-icon svg {
    transition: transform 0.3s ease;
    display: block;
}


/* ==========================================================================
   Responsive (Móviles y Tablets)
   ========================================================================== */
@media (max-width: 991px) {
    .main-footer-wrapper {
        padding: 0 12px 12px 12px;
    }
    
    .main-footer-card {
        padding: 24px 20px;
    }

    /* El padding-top propio de estas columnas se suma al del card,
       generando demasiado espacio vertical en móvil */
    .footer-logo-col {
        padding-top: 0;
    }

    .footer-social-col {
        padding-top: 16px;
    }

    /* Las columnas ya no aportan su propio margen: la distancia entre
       logo → redes → copyright la controlan .footer-logo y .social-links */
    .main-footer-wrapper .mb-4 {
        margin-bottom: 0 !important;
    }

    .social-links {
        margin-bottom: 96px; 
    }
    
    .footer-logo {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 36px;
        display: block;
    }

    .footer-logo-img {
        width: 205px;
        height: 47.4px;
    }
    
    .footer-copyright {
        font-size: 15.01px;
        margin-bottom: 0;
        position: relative;
        top: -48px;
    }

    .main-footer-wrapper .mt-2 {
        margin-top: 0 !important;
    }
}