/*  Banner Principal */
.hero-sala-de-prensa-section {
    padding: 40px 0 60px 0;
    background-color: var(--bg-light-gray);
}

.hero-sala-de-prensa-section .px-custom {
    padding-left: 12px;
    padding-right: 12px;
}

.hero-sala-de-prensa-card {
    position: relative;
    width: 100%;
    height: 500px; 
    border-radius: 16px;
    overflow: hidden; 
}

/* Imagen de fondo absoluta */
.hero-sala-de-prensa-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    z-index: 1;
}

/* Overlay para contraste */
.hero-sala-de-prensa-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25); /* 25% de oscuridad base */
    background-image: linear-gradient(to right, rgb(20 49 231 / 11%), rgb(146 157 255 / 12%), rgb(27 57 255 / 11%));
    z-index: 2;
}

/* Contenedor del texto */
.hero-sala-de-prensa-content {
    position: absolute; 
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 20px;
}

.hero-sala-de-prensa-title {
    font-family: 'TiemposHeadline', serif;
    font-weight: 700;
    font-size: 80px;
    color: #ffffff;
    line-height: 1.1;
    margin: 0;
    text-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3); /
}

/* Responsive (Móviles y Tablets) */
@media (max-width: 991px) {
    .hero-sala-de-prensa-section {
        padding: 0px 0 0px 0;
    }
    
    .hero-sala-de-prensa-section .px-custom {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .hero-sala-de-prensa-card {
        height: 350px; 
    }
    
    .hero-sala-de-prensa-title {
        font-size: 48px; 
    }
    .hero-sala-de-prensa-content{
        padding: 32px;
    }
}



/* CUADRÍCULA DE NOTICIAS (SALA DE PRENSA) */
.prensa-grid-section {
    padding: 0px 0 0px 0;
}

.prensa-grid-section .px-custom {
    padding-left: calc(12px + 30px + var(--site-px));
    padding-right: calc(12px + 30px + var(--site-px));
}

/* Diseño General de la Tarjeta */
.prensa-card {
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; 
     padding: 24px 24px;
}
/* Área de Imagen */
.prensa-img-wrapper {
    position: relative;
    overflow: hidden;
}

/* Tarjetas Verticales (Las Normales) */
.prensa-img-wrapper.normal-img {
    height: 220px;
    width: 100%;
}

/* Tarjetas Horizontales (Las Anchas, para escritorio) */
@media (min-width: 992px) {
    .prensa-img-wrapper.wide-img {
        width: 45%; 
        margin: 0px 0 0px 0px; 
        border-radius: 16px; 
        overflow: hidden; 
        height: auto;
        min-height: 280px;
        position: relative;
    }
    .prensa-card.flex-lg-row .prensa-info {
        width: 55%;
        justify-content: center; 
        padding: 0px 24px;
    }
}

/* En móviles, las anchas se vuelven verticales */
@media (max-width: 991px) {
    .prensa-img-wrapper.wide-img {
        height: 220px;
        width: 100%;
    }
    .prensa-card {
        box-shadow: 0 2px 12px rgb(42 42 42 / 31%) !important;
        padding: 18px !important;
    }
}

/* Tablets: imágenes más altas */
@media (min-width: 768px) and (max-width: 991px) {
    .prensa-img-wrapper.normal-img,
    .prensa-img-wrapper.wide-img {
        height: 580px;
    }
        .prensa-title {
        font-size: 32px;
    }
}

.prensa-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 80% center; 
    border-radius: 8px;
    display: block;
}
/* Píldora de Categoría FLOTANTE */
.prensa-category-pill {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: #001391;
    color: #ffffff;
    padding: 4px 14px;
    border-radius: 20px;
    font-family: 'BentonSansBBVA-BookItalic', sans-serif;
    font-size: 15.01px;
    z-index: 2;
    font-weight: 350;
}

/* Ícono de Comillas FLOTANTE */
.prensa-quote-icon {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background-color: #001391;
    width: 64px;
    height: 56px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Textos internos de la Tarjeta */
.prensa-info {
    padding: 1px;
}

.prensa-title {
    font-family: 'TiemposHeadline', serif;
    font-weight: 700;
    font-size: 32px;
    color: #070E46;
    margin-top: 15px;
}

.btn-bbva-prensa {
    font-family: 'BentonSansBBVA-Medium', sans-serif;
    font-size: 15.01px;
    color: #001391;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.btn-bbva-prensa:hover {
    color: #070E46;
}


/*   PAGINACIÓN A MEDIDA */
.prensa-custom-pagination {
    font-family: 'BentonSansBBVA-Medium', sans-serif;
    font-size: 15.01px;
}

.prensa-custom-pagination .page-nav {
    color: #001391;
    text-decoration: none;
    padding: 0 10px;
}
.prensa-custom-pagination .page-nav:hover {
    color: #070E46;
}

/* Botón Anterior Deshabilitado (Página 1) */
.prensa-custom-pagination .page-nav.disabled {
    color: #b8bfde; 
    cursor: default;
    pointer-events: none;
}

/* Separadores (|) */
.prensa-custom-pagination .page-separator {
    color: #DBE0EB;
    margin: 0 8px;
    font-weight: 300;
}

/* Números */
.prensa-custom-pagination .page-numbers-container {
    gap: 30px;
    margin: 0 8px;
}

.prensa-custom-pagination .page-num {
    color: #001391;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
    font-family: 'BentonSansBBVA-Medium', sans-serif;
    font-size: 15.01px;
}

.prensa-custom-pagination .page-num:hover {
    color: #070E46;
}

.prensa-custom-pagination .page-num.current {
    font-weight: 350; 
    font-family: 'BentonSansBBVA-Book', sans-serif;
    color: #070E46;
}

/*Responsive (Móviles) */
@media (max-width: 991px) {
    .prensa-grid-section {
        padding: 40px 0 0px 0;
    }
    .prensa-grid-section .px-custom {
        padding-left: 12px;
        padding-right: 12px;
    }
    .prensa-custom-pagination {
        flex-wrap: wrap;
        gap: 8px;
        row-gap: 12px;
    }
    .prensa-custom-pagination .page-numbers-container {
        gap: 16px;
    }
    .prensa-title {
        font-size: 32px;
    }
    .prensa-mobile-pagination {
    gap: 4.5rem;
}
}

@media (min-width: 768px) and (max-width: 991px) {
    .prensa-mobile-pagination {
        gap: 16.5rem;
    }
    .prensa-title {
        font-size: 32px;
    }
}

.prensa-mobile-counter {
    font-family: 'BentonSansBBVA-BookItalic', sans-serif;
    font-size: 15px;
    color: #070E46;
    background-color: #f8f8f8;
    padding: 3px 12px;
    border-radius: 16px;
}

.prensa-mobile-arrow {
    display: flex;
    align-items: center;
    padding: 4px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.prensa-mobile-arrow.disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* PÁGINA INDIVIDUAL DE NOTICIA (SINGLE PRENSA)  */

.single-prensa-main {
    padding-top: 40px;
}

@media (max-width: 991px) {
    .single-prensa-main .px-custom {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* Metadatos Superiores */
.single-prensa-meta {
    margin-bottom: 28px;
    font-family: 'BentonSansBBVA-BookItalic', sans-serif;
    font-size: 15.01px;
    color: #070E46;
    margin-top: 24px;
}

.single-prensa-meta .meta-category {
    padding-right: 20px;
    margin-right: 20px;
    position: relative;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 3px 5px;
}

.single-prensa-meta .meta-category::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
}

/* Imagen Hero */
.single-prensa-hero {
    margin-bottom: 50px;
}

.single-prensa-hero .hero-img {
    border-radius: 16px;
    max-height: 550px;
    object-fit: cover;
    object-position: center;
}

/* Contenedor del Texto Central */
.single-prensa-content-wrapper {
    max-width: 1124px; /* Limita el ancho del texto para mejor lectura */
    padding-bottom: 60px;
}

.single-prensa-title {
    font-family: 'TiemposHeadline', serif;
    font-weight: 700;
    font-size: 48px;
    color: #070E46;
    line-height: 1.15;
    margin-bottom: 30px;
}
.single-prensa-main{
    padding-top: 0px;
}

.single-prensa-lead {
    font-family: 'BentonSansBBVA-Medium', sans-serif;
    font-size: 24px;
    color: #070E46;
    line-height: 1.2;
    margin-bottom: 30px;
}

.single-prensa-body {
    font-family: 'BentonSansBBVA-Book', sans-serif;
    font-size: 15.01px;
    color: #070E46;
    line-height: 1.7;
}

.single-prensa-body h2,
.single-prensa-body h3 {
    font-family: 'BentonSansBBVA-Medium', sans-serif;
    font-size: 20px;
    color: #070E46;
    margin-top: 32px;
    margin-bottom: 16px;
}

.single-prensa-body p {
    margin-bottom: 20px;
}

.single-prensa-body a,
.single-prensa-body a:visited,
.single-prensa-body a:hover,
.single-prensa-body a:focus {
    color: #070E46;
    text-decoration: underline;
}

/* Botón Compartir */
.btn-share-blue {
    background-color: #001391;
    border: none;
    width: 54px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 2; /* Para que quede por encima de la animación */
}
.share-widget:not(.is-active) .btn-share-blue:hover {
    background-color: #070E46;
}

.btn-share-blue:hover {
    background-color: #070E46;
}
.share-widget {
    position: relative;
}
.social-networks-pill {
    background-color: #001391;
    border-radius: 16px; 
    height: 56px;
    /* overflow:hidden recorta el hover para que no se salga de los bordes redondeados */
    overflow: hidden; 
    opacity: 0;
    visibility: hidden;
    transform: translateX(-20px); /* Empieza un poco a la izquierda */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.share-widget.is-active .social-networks-pill {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 24px 16px; /* Espaciado entre iconos */
    transition: background-color 0.2s ease;
}

/* El Hover segmentado premium (Imagen 3) */
.social-link:hover {
    background-color: #070E46; 
}

.social-link img {
    width: 17.90px; 
    height: 17.90px;
    display: block;
}

/* Footer Sigue Leyendo */
.single-prensa-footer {
    background-color: #ffffff;
    padding: 40px 24px;
    margin-bottom: 36px;
}

.single-prensa-footer .footer-title {
    font-family: 'TiemposHeadline', serif;
    font-weight: 700;
    font-size: 32px;
    color: #070E46;
    margin-bottom: 30px;
}

.tag-pill {
    font-family: 'BentonSansBBVA-BookItalic', sans-serif;
    font-size: 15.01px;
    color: #070E46;
    background-color: #f8f8f8;
    border: 1px solid #f8f8f8;
    padding: 0px 10px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 24px;
}

.tag-pill:hover {
    background-color: #070E46;
    color: #ffffff;
}


/* Responsive */
@media (max-width: 991px) {
    .single-prensa-title { 
        font-size: 48px; 
        width: 90%;
    }
    .single-prensa-meta{
        margin-top: -14px;
    }
    .single-prensa-hero .hero-img { 
        max-height: 350px; 
        height: auto;
        overflow: hidden;
        display: flex;
        aspect-ratio: 6 / 5;
    }
    .single-prensa-meta .meta-category{
        padding: 3px 10px;
    }
    .single-prensa-lead { 
        font-size: 24px; 
        width: 90%;
    }
    .single-prensa-hero {
    margin-bottom: 32px;
}
.single-prensa-footer {
    padding: 24px 24px;
    margin-bottom: 32px;
}
.single-prensa-body {
    width: 95%;
}
.single-prensa-content-wrapper {
    padding-bottom: 32px;
}

@media (min-width: 768px) and (max-width: 991px) {
.single-prensa-hero .hero-img{
    width: 756px !important;
    height: 360px !important;
}
}
}
