/* Estilos personalizados para el tema Revista CCL v2 */

.header-main-content {
    width: 100%;
    text-align: center;
}

/* Declaraciones de Fuentes */
@font-face {
    font-family: 'NotoSerif-Bold';
    src: url('../fonts/NotoSerif-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Barlow-Regular';
    src: url('../fonts/Barlow-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'NotoSerif-Regular';
    src: url('../fonts/NotoSerif-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Barlow-Bold';
    src: url('../fonts/Barlow-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Fraunces-Bold';
    src: url('../fonts/Fraunces_72pt-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Barlow-Light';
    src: url('../fonts/Barlow-Light.ttf') format('truetype');
}


/* Estilos Globales */
body {
    margin: 0;
    font-family: 'Barlow-Regular', sans-serif;
    background: #ffffff;
    color: #111;
    line-height: 1.5;
}

.site-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    padding: 0 24px;
}

a {
    color: #000;
    text-decoration: none;
}

a:hover,
a:focus,
a:active {
    text-decoration: underline;
}

/* Robust link styling for articles (para que todos los enlaces de artículos sean negros por defecto) */
article a {
    color: #111;
    text-decoration: none;
}

article a:visited {
    color: #111;
    text-decoration: none;
}

article a:hover {
    color: #111;
    text-decoration: none;
}

article a:active {
    color: #111;
    text-decoration: underline;
}

/* Estilos del Ticker de Indicadores */
.indicators-section-wrapper {
    border-bottom: 0.0625rem solid #ddd;
    margin-bottom: 0;
    overflow: hidden;
    padding: 20px 0;
    /* padding-top: 20px, padding-bottom: 20px */
    width: 100%;
    border-top: 1px solid #ddd;
    /* Segundo borde sutil */
}

.indicators-section {
    display: flex;
    justify-content: space-around;
    flex-wrap: nowrap;
    /* Evita que los elementos se envuelvan */
    white-space: nowrap;
    /* Mantiene todo en una línea */
    width: max-content;
    /* Se ajusta al contenido */
}

.indicators-section p {
    margin: 0;
    text-align: center;
    font-size: 14px;
    line-height: 1.2;
    padding: 0 20px;
    /* Espaciado entre indicadores */
}

.indicator-label {
    font-weight: 600;
    color: #000;
}

.indicator-value {
    font-weight: 600;
    margin-left: 5px;
}

.positive {
    color: green;
}

.negative {
    color: red;
}

.positive::before {
    content: '▲ ';
}

.negative::before {
    content: '▼ ';
}


/* Estilos del Pie de Página */
.site-footer {
    border-top: 0.0625rem solid #000;
    padding: 40px 0;
    display: block;
    position: relative;
    margin-top: 20px;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    width: 100%;
    height: 0.0625rem;
    background-color: #000;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 15px;
}

.footer-logo img {
    height: 80px;
    width: auto;
    margin-bottom: 10px;
}

.social-icons-container {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.social-icon-square {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background-color: #000;
    color: #fff;
    font-size: 18px;
    text-decoration: none !important;
    /* Added to prevent underline */
    border-radius: 5px;
}

.social-icon-square:hover {
    background-color: #333;
    color: #fff;
    text-decoration: none !important;
    /* Added to prevent underline */
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-ad-text p {
    margin: 0;
    font-size: 14px;
    color: #666;
    text-align: left;
}

.site-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
    text-align: right;
}

.site-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
    text-align: right;
}


/* Estilos de Sección de Noticias (Bloque) */
.news-section {
    padding-top: 30px;
    border-top: 0.1875rem solid #000;
    padding-bottom: 20px;
}

.news-section h2 {
    font-family: 'Fraunces-Bold', serif;
    font-size: 1.625rem;
    margin-bottom: 20px;
    border-bottom: 0.0625rem solid #000;
}

.news-section h2:after {
    content: "";
    width: 90%;
    max-width: 13.125rem;
    height: .1875rem;
    background: #000;
    display: block;
    position: relative;
    bottom: 0;
    left: 0;
}

/* Robust link styling for articles */
article a {
    color: #111;
    text-decoration: none !important;
}

article a:visited {
    color: #111;
    text-decoration: none !important;
}

article a:hover {
    color: #111;
    text-decoration: none !important;
}

article a:active {
    color: #111;
    text-decoration: none !important;
}

.news-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(var(--columns), 1fr);
}

.news-grid article {
    border-right: 0.0625rem solid #ddd;
    padding-right: 20px;
    height: 100%; /* Ensure article fills the grid cell height */
    display: flex; /* Make article a flex container */
    flex-direction: column; /* Stack its children vertically */
}

/* New rule to make the anchor tag fill the available space */
.news-grid article a {
    flex-grow: 1; /* Make the anchor tag take up all available space */
    display: flex; /* Make the anchor tag a flex container */
    flex-direction: column; /* Stack its children vertically */
    /* Remove justify-content: space-between here to avoid pushing things to extremes */
    text-decoration: none !important; /* Ensure no underline */
    color: #111; /* Ensure text color is consistent */
}


.news-grid article:last-child {
    border-right: none;
}


.news-section.has-ad .news-section-content-wrapper {


    display: flex;


    gap: 20px;


    align-items: stretch;


}





.news-section.has-ad .news-column {


    flex: 0 0 60%;
    /* News takes 60% */


}





.news-section-ad-container {


    flex: 0 0 40%;
    /* Ad takes 40% */


    width: auto;
    /* Allow flex to control width */


    height: auto;
    /* Remove fixed height if any */


    max-height: none;
    /* Remove max-height constraint */


    padding-left: 20px;


    text-align: right;


}

.news-section-ad-container img {
    width: 100%;
    height: auto;
    /* Ensure image scales proportionally */
    max-height: 600px;
    /* Changed from 700px to 600px */
    object-fit: contain;
}

.news-grid.layout-6-items article {
    border-right: none;
    padding-right: 0;
}

@media (min-width: 768px) {
    .news-grid.layout-6-items {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        /* 4 columns for larger screens */
    }

    .news-grid.layout-6-items article:nth-child(1),
    .news-grid.layout-6-items article:nth-child(2) {
        grid-column: span 2;
        /* first two articles span 2 columns each */
    }

    .news-grid.layout-6-items article:nth-child(1),
    .news-grid.layout-6-items article:nth-child(3),
    .news-grid.layout-6-items article:nth-child(4),
    .news-grid.layout-6-items article:nth-child(5) {
        border-right: 0.0625rem solid #ddd;
        padding-right: 20px;
    }
}







/* Estilos de la Sección Hero */
.hero {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    /* Eliminamos el gap aquí para controlarlo con padding y bordes */
    margin: 20px 0;
    border-bottom: 0.1875rem solid #000;
    padding-bottom: 20px;
}

.hero-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hero-col article {
    border-bottom: 0.0625rem solid #ddd;
    /* Borde inferior general para los artículos */
    padding-bottom: 1.25rem;
    /* Espacio entre el contenido y el borde */
    margin-bottom: 0;
    /* Elimina márgenes para que el gap del padre controle el espaciado */
    height: 100%;
}

.hero-col h4 {
    font-family: 'NotoSerif-Bold', serif;
    font-size: 16px;
    margin: 0;
}

.hero-col p {
    font-size: 13px;
    color: #6f6f6e;
    margin: 4px 0;
    font-family: 'NotoSerif-Regular', serif;
}

.hero .principal img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 8px;
}

.hero .principal h3 {
    font-family: 'NotoSerif-Bold', serif;
    font-size: 1.5rem;
    margin: 0 0 6px;
    line-height: 26.5px;
}

.hero .principal p {
    font-size: 14px;
    color: #6f6f6e;
    margin: 0;
    font-family: 'NotoSerif-Regular', serif;
}

/* Make single post thumbnail responsive */
.post-thumbnail img {
    max-width: 100%;
    height: auto;
    display: block;
    /* Remove extra space below image */
    margin-bottom: 20px;
    /* Add some space below the image */
}

/* Advertisement Section Styling (magazine-ad-container) */
.magazine-ad-container {
    border-top: 0.5rem solid #000;
    padding-top: 20px;
    margin-top: 50px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding-bottom: 20px;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.magazine-col-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
}

.magazine-col-right {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.magazine-cover {
    max-width: 150px;
    height: auto;
    display: block;
}

.magazine-button {
    background-color: red;
    color: white;
    padding: 10px 15px;
    border-radius: 0;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.magazine-arrow-pointer {
    position: absolute;
    bottom: -10px;
    left: 0px;
    color: black;
    font-size: 24px;
    z-index: 1;
}

.magazine-text {
    font-family: 'Barlow-Bold', sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: #000;
    line-height: 1.3;
    margin: 0;
    text-align: center;
}

.download-pdf-link {
    font-family: 'NotoSerif-Regular', serif;
    color: #6f6f6e;
    text-decoration: underline;
    font-size: 14px;
    margin-top: 10px;
    display: block;
}

.download-pdf-link:hover {
    color: #495057;
}

.past-editions-link {
    font-family: 'NotoSerif-Regular', serif;
    color: #6f6f6e;
    text-decoration: underline;
    font-size: 14px;
    margin-top: 5px; /* Slightly less margin to bring it closer to the PDF link */
    display: block;
}

.past-editions-link:hover {
    color: #495057;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: transparent;
    margin: auto;
    padding: 20px;
    border: none;
    width: 95%;
    /* Hacerlo 95% del ancho de la ventana */
    max-width: 1200px;
    /* Aumentar el ancho máximo */
    position: relative;
    display: flex;
    flex-direction: column;
}

.pdf-content #pdf-viewer-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.pdf-page-spread {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    max-height: 100%;
    gap: 5px;
}

.pdf-page-spread canvas {
    max-width: 50%;
    max-height: 100%;
    border: 0.0625rem solid #ccc;
    box-sizing: border-box;
}

.pdf-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
}

#prev-page {
    left: -50px;
}

#next-page {
    right: -50px;
}

.pdf-nav-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.pdf-navigation-info {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    font-weight: bold;
    background-color: white;
    gap: 10px;
    margin: 10px auto;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.pdf-control-button {
    background-color: transparent;
    color: #6c757d;
    border: 0.0625rem solid #6c757d;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.pdf-control-button:hover {
    background-color: #e2e6ea;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background-color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

body.modal-open {
    overflow: hidden;
}




.news-grid article img {
    width: 100%;
    max-height: 140px;
    object-fit: cover;
    margin-bottom: 8px;
}

.news-grid article h3 {
    font-family: 'NotoSerif-Bold', serif;
    font-size: 16px;
    margin: 0 0 6px;
}

.news-grid article .excerpt p {
    font-size: 13px;
    color: #6f6f6e;
    margin: 0;
    font-family: 'NotoSerif-Regular', serif;
}

/* --- Estilos para Header y Logo (Centrado) --- */

.site-header {
    display: flex;
    flex-direction: column;
    /* Apilar elementos verticalmente */
    align-items: center;
    /* Centrar elementos horizontalmente */
    padding: 20px 0 0 0;
    /* padding-top: 20px, padding-bottom: 0 */
    gap: 0;
    border-bottom: none;
}

.logo-container {
    padding-bottom: 20px;
}

.logo-container img {
    height: 100px;
    /* Altura apropiada */
    width: auto;
}

/* Ajustes para los otros elementos del header */
.main-navigation {
    width: 100%;
    /* Ocupar todo el ancho para centrar el texto del menú */
    border-top: 1px solid #ddd;
    border-bottom: 0.1875rem solid #000;
    padding: 10px 0;
    margin-bottom: 1.25rem;
}

.main-navigation ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}



.indicators-section-wrapper {
    /* Reseteamos estilos que no aplican en el nuevo layout */
    margin-bottom: 0;
    width: 100%;
    /* Mantener el ancho para el ticker */
}

/* Estilo para que el texto del menú sea en mayúsculas */
.main-navigation ul li a {
    text-transform: uppercase;
    font-size: 14px;
    border-bottom: none;
}

/* Eliminar borde inferior del último artículo en las columnas del Hero */
.hero-col article:last-child {
    border-bottom: none;
}

/* Cambiar el color del título (h3, h4) al pasar el ratón sobre el artículo */
.hero article a:hover h3,
.hero article a:hover h4,
.news-grid article a:hover h3 {
    color: #6f6f6e;
    /* Un color más suave */
}

/* Tamaño de fuente para todos los títulos y textos de artículos de noticias */
.news-grid article h3,
.hero-col h4 {
    font-size: 1.25rem;
    line-height: 22px;
}

/* Estilo para la fecha de publicación */
.post-date {
    font-size: 0.8rem;
    /* Tamaño más pequeño para la fecha */
    color: #6f6f6e;
    /* Color gris suave */
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    font-family: 'Barlow-Regular', sans-serif;
    display: block;
    /* Asegura que ocupe su propia línea */
}

/* Espacio después del subtítulo/extracto */
.news-grid article .excerpt p,
.hero-col p,
.hero .principal p {
    margin-bottom: 0;
    line-height: 18px;
}

/* Espacio debajo del borde del artículo en hero-col */
.hero-col article {
    margin-bottom: 1.25rem;
}

/* Estilos para bordes y espaciado entre columnas del Hero */

#hero-der {

    border-left: 0.0625rem solid #ddd;

    padding-left: 1.25rem;

}



#hero-izq {

    border-right: 0.0625rem solid #ddd;

    padding-right: 1.25rem;

}



#hero-centro {

    padding: 0 1.25rem;

}

/* Layout for single post */
.single-post-layout {
    display: flex;
    gap: 20px;
    /* Adjust as needed */
}

.single-post-main-content {
    flex: 4;
    /* Takes 80% of available space */
}

.single-post-sidebar {
    flex: 1;
    /* Takes 20% of available space */
    padding-left: 20px;
    border-left: 1px solid #ddd;
    /* Optional: Separator line */
}

.single-post-sidebar h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #333;
    font-family: 'NotoSerif-Bold', serif;
    border-bottom: 0.0625rem solid #000;
    /* Thin line */
    position: relative;
    padding-bottom: 5px;
    /* Space between text and thin line */
    display: inline-block;
    /* To make width apply correctly */
    text-transform: uppercase;
}

.single-post-sidebar h3::after {
    content: "";
    width: 50%;
    /* Reduced width */
    max-width: 8rem;
    /* Reduced max-width */
    height: .1875rem;
    /* Thick line */
    background: #000;
    display: block;
    position: absolute;
    /* Position relative to parent h3 */
    bottom: -0.24rem;
    /* Adjusted to place it below the thin border */
    left: 0;
}

.single-post-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}



.single-post-sidebar ol {
    font-weight: bold;
    padding-left: 20px;
}

.single-post-sidebar ul li,
.single-post-sidebar ol li{
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 10px;
}

.single-post-sidebar ul li:after{
    margin-left: 20px;
}

.single-post-sidebar ol li:after,
.single-post-sidebar ul li:after{
    content: "";
    position: absolute;
    bottom: 0;
    left: -.9375rem;
    right: 0;
    border-bottom: .0625rem dotted #111111;
}


.single-post-sidebar ul li a, .single-post-sidebar ol li a {
    text-decoration: none;
    color: #000;
    /* Black color */
    font-family: 'NotoSerif-Regular', serif;
    font-weight: normal;
    /* Override previous bold */
}

.single-post-sidebar ul li a:hover, .single-post-sidebar ol li a:hover {
    text-decoration: none;
    color: #6f6f6e;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .single-post-layout {
        flex-direction: column;
    }

    .single-post-main-content,
    .single-post-sidebar {
        flex: none;
        /* Remove flex sizing */
        width: 100%;
        /* Full width */
        padding-left: 0;
        border-left: none;
    }

    .single-post-sidebar {
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid #ddd;
    }
}



/* Estilos para el ttulo de la pgina interior */
.entry-title {
    font-family: 'NotoSerif-Bold', serif;
    font-size: 1.8rem;
}

.entry-header-category {
    font-family: 'Fraunces-Bold', serif;
    font-size: 2rem;
    margin-bottom: 40px;
    border-bottom: 0.0625rem solid #000;
    position: relative;
    display: block;
    width: 100%;
}

.entry-header-category a {
    text-decoration: none;
}

.entry-header-category:after {
    content: "";
    width: 90%;
    max-width: 13.125rem;
    height: .1875rem;
    background: #000;
    display: block;
    position: absolute;
    bottom: -1px;
    left: 0;
}




/* Estilos para el cuerpo de la pgina interior */
.entry-content p {
    font-family: 'NotoSerif-Regular', serif;
}

.entry-subtitle {
    font-size: 1.2rem;
    color: #6f6f6e;
    margin-bottom: 20px;
    font-family: 'NotoSerif-Bold', serif;
    font-weight: bold;
}

.post-main-subtitle {
    font-family: 'NotoSerif-Regular', serif;
    font-size: 1rem;
    color: #111;
    margin-top: 20px;
    margin-bottom: 20px;
    line-height: 1.5;
    font-weight: normal;
}



/* Styles for the ResponsiveVoice button */
.responsivevoice-button {
    background-color: #e4181d;
    /* Red color as requested */
    color: #ffffff;
    padding: 12px 20px;
    /* Increased top/bottom padding */
    margin-top: 20px;
    /* Added margin-top */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-bottom: 20px;
    /* Add some space below the button */
    display: inline-block;
    /* To allow margin-bottom to work correctly */
}

.responsivevoice-button:hover {
    background-color: #c0141a;
    /* A slightly darker red for hover effect */
}

.responsivevoice-button .fas.fa-play {
    margin-right: 8px;
    /* Space between icon and text */
}

/* Responsive adjustments for advertisements */
@media (max-width: 991px) {

    /* Hide lateral advertisements */
    .news-section-ad-container {
        display: none;
    }

    .news-section.has-ad .news-section-content-wrapper{
        display: block;
    }

    /* Adjust horizontal advertisements for mobile */
    .magazine-ad-container {
        flex-direction: column;
        /* Stack items vertically on small screens */
        gap: 20px;
        /* Adjust gap for stacked items */
    }

    .magazine-ad-container .magazine-cover {
        max-width: 200px;
        /* Ensure images don't overflow */
        height: auto;
    }

    .magazine-ad-container .magazine-text {
        font-size: 20px;
        /* Adjust font size for mobile */
    }
}

/* Responsive adjustments for the Hero section */
@media (max-width: 768px) {

    /* Adjustments for the Hero section on mobile */
    .hero {
        grid-template-columns: 1fr;
        /* Single column layout */
        margin: 10px 0;
        /* Adjust margin */
        padding-bottom: 20px;
        /* Adjust padding */
    }

    /* Order for mobile layout */
    .hero .principal {
        order: -1;
        /* Move main news to the top */
    }

    .hero-col {
        order: 0;
        /* Ensure other columns follow after principal */
        border-right: none !important;
        /* Remove borders */
        border-left: none !important;
        padding-right: 0 !important;
        /* Remove padding */
        padding-left: 0 !important;
        gap: 10px;
        /* Adjust gap */
    }

    /* Remove specific column borders/padding that might apply */
    #hero-der,
    #hero-izq,
    #hero-centro {
        border-left: none;
        border-right: none;
        padding-left: 0;
        padding-right: 0;
    }

    /* Ensure articles within hero-col take full width and have appropriate spacing */
    .hero-col article {
        border-bottom: 0.0625rem solid #ddd;
        /* Light border between articles */
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .hero-col article:last-child {
        border-bottom: none;
        /* No border for the last article */
        padding-bottom: 0;
        margin-bottom: 0;
    }

    /* Ensure the principal section (center) also behaves as a single article */
    .hero .principal {
        margin-bottom: 10px;
        border-bottom: 0.0625rem solid #ddd;
        /* Light border below principal article */
        padding-bottom: 10px;
    }
}

/* Responsive adjustments for the News Section */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr !important;
        /* Force single column on mobile */
        gap: 15px;
        /* Adjust gap for stacked items */
    }

    .news-grid article {
        border-right: none !important;
        /* Remove borders */
        padding-right: 0 !important;
        /* Remove padding */
        border-bottom: 0.0625rem solid #ddd;
        /* Add light separator between articles */
        padding-bottom: 15px;
        margin-bottom: 15px;
    }

    .news-grid article:last-child {
        border-bottom: none !important;
        /* No border for the last article */
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
}

/* Responsive adjustments for the Footer */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .footer-left,
    .footer-right {
        align-items: center;
        text-align: center;
        margin-top: 0;
    }

    .footer-logo img {
        height: 60px;
        /* Reduce logo size */
    }

    .social-icons-container {
        justify-content: center;
        /* Center icons */
        gap: 5px;
    }

    .social-icon-square {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .footer-bottom-row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 20px;
    }

    .footer-ad-text p,
    .site-info p {
        text-align: center;
    }
}

/* Responsive Navigation Styles */
.menu-toggle {
    display: none;
    /* Hidden by default */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.hamburger-icon {
    display: block;
    position: relative;
    width: 20px;
    height: 2px;
    background: #000;
    transition: background 0.3s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #000;
    transition: transform 0.3s ease;
}

.hamburger-icon::before {
    top: -6px;
}

.hamburger-icon::after {
    bottom: -6px;
}

.close-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #000;
    font-size: 30px;
    line-height: 1;
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
}

body.mobile-menu-is-open {
    overflow: hidden;
}

body.mobile-menu-is-open .menu-toggle {
    display: none;
}

@media (max-width: 991px) {
    .menu-toggle {
        display: block;
        left: -5px;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        left: 0;
        width: 300px;
        height: 100%;
        background: #fff;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        padding: 60px 20px 20px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .main-navigation.open {
        transform: translateX(0);
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        margin-left: 10px;
        text-align: left;
    }

    .main-navigation ul li {
        width: 100%;
        margin-bottom: 10px;
    }

    .main-navigation ul li a {
        padding: 15px 0;
        width: 100%;
        border-bottom: none;
    }

    #header-main-content-responsive {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        /* Center the logo */
    }

    .logo-container img {
        height: 60px;
        width: auto;
    }

    .site-header {
        padding-top: 35px;
    }

    .magazine-arrow-pointer {
        margin-left: 20px;
    }

    .close-menu-toggle {
        display: block;
    }
}

.advertisement-slider {
    position: relative;
    width: 100%;
    height: 315px;
    /* Adjust as needed */
    overflow: hidden;
    margin-bottom: 30px;
}

.advertisement-slide {
    padding-top: 30px;
    border-top: 0.5rem solid #000;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-color: #ffffff;
}

.advertisement-slide.active {
    opacity: 1;
    z-index: 1;
}

.ad-layout-image-text {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
}

.ad-layout-image-text .ad-image,
.ad-layout-video-text .ad-video {
    flex: 0 0 60%;
    height: 100%;
}

.ad-layout-image-text .ad-text,
.ad-layout-video-text .ad-text {
    flex: 0 0 40%;
    padding: 20px;
    box-sizing: border-box;
    background-color: #ffffff;
    text-align: center;
    margin-top: -35px;
}

.ad-layout-video-text {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
}

.advertisement-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.advertisement-slide iframe {
    width: 100%;
    height: 260px;
    /* Specific height for iframe */
    object-fit: cover;
}

@media (max-width: 768px) {
    .advertisement-slider {
        padding-top: 15px;
        margin-bottom: 15px;
        align-items: center;
        display: flex;
        flex-direction: column;
        min-height: 450px;
    }

    .advertisement-slide img,
    .advertisement-slide iframe {
        height: min-content;
    }

    .advertisement-slide {
        align-items: center;
        justify-content: center;
        display: flex;
        padding-top: 15px;
        margin-top: 15px;
    }

    .ad-layout-video-text,
    .ad-layout-image-text {
        flex-direction: column;
        align-items: center;
        height: max-content;
        /* Set height to max-content */
    }

    .ad-layout-video-text .ad-video,
    .ad-layout-image-text .ad-image {
        flex: 0 0 100%;
        height: auto;
    }

    .ad-layout-video-text .ad-text,
    .ad-layout-image-text .ad-text {
        flex: 0 0 100%;
        height: max-content;
        margin-top: 0;
        padding: 10px;
        position: relative;
        z-index: 1;
        background-color: #ffffff;
    }
}

.ad-layout-video {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.ad-layout-video iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-responsive-video {
    width: 100% !important;
    /* Override inline styles from shortcode */
    max-height: 260px;
    height: auto !important;
    /* Maintain aspect ratio */
}

.news-section-view-all {
    text-align: right;
    padding: 0 20px 20px 0;
}

.news-section-view-all a.button {
    font-family: 'NotoSerif-Bold', serif;
    font-size: 15px;
    font-weight: bold;
    text-decoration: underline!important;
}


.three-item-image {
    max-width: 300px;
}


@media (max-width: 768px) {

    .three-item-image {
        max-width: none;
    }

}

/* Specific styles for news-section on category page */
.news-section.category-news-section {
    padding-top: 0;
    border-top: none;
}

.news-section.category-news-section .news-section-view-all {
    display: none;
}

/* Hide ResponsiveVoice button on category pages */
body.category .responsivevoice-button {
    display: none;
}

/* Add margin-bottom to the main category news grid */
.main-category-news-grid {
    margin-bottom: 20px;
}

/* Styles for the vertical news list on category pages */
.vertical-news-list {
    margin-bottom: 20px; /* Add margin-bottom to the list container */
    margin-top: 20px;
    /* Add any general list styling here if needed */
}

.vertical-news-list article {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
}

.vertical-news-list article:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.vertical-news-list article a { /* For the image wrapper link */
    flex-shrink: 0; /* Prevent image from shrinking */
}

.vertical-news-list article img {
    width: 150px;
    height: 100px;
    object-fit: cover;
}

.vertical-news-list article h3 {
    font-family: 'NotoSerif-Bold', serif; /* Consistent with news-section */
    font-size: 1.25rem; /* Consistent with news-grid articles */
    margin: 0 0 6px;
    line-height: 22px;
}

.vertical-news-list article .post-date {
    font-size: 0.8rem;
    color: #6f6f6e;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    font-family: 'Barlow-Regular', sans-serif;
    display: block;
}

.vertical-news-list article .excerpt p {
    font-size: 13px;
    color: #6f6f6e;
    margin: 0;
    font-family: 'NotoSerif-Regular', serif;
}

.medidadevideo {
    width: 100% !important;
    height: 450px !important;
}

/* Estilos para la página 404 */
.error-404 {
    text-align: center;
    padding: 80px 20px;
}

.error-404 .page-title {
    font-family: 'NotoSerif-Bold', serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    line-height: 1.8rem;
}

.error-404 .page-content p {
    font-size: 1rem;
    color: #6f6f6e;
    margin-bottom: 30px;
    line-height: 1.5rem;
}

.page-title {
    font-family: 'Fraunces-Bold', serif;
}

.error-404 .searchform {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.error-404 .searchform div {
    display: flex;
    /* align-items: stretch; */
    /* justify-content: space-around; */
    width: 100%;
}

.error-404 .searchform #s {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px 0 0 5px;
}

.error-404 .searchform #searchsubmit {
    background-color: #e4181d;
    color: #ffffff;
    border: none;
    padding: 11px 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-weight: bold;
}

.error-404 .searchform #searchsubmit:hover {
    background-color: #c0141a;
}

.back-to-top {

    position: fixed;

    bottom: 20px;

    right: 20px;

    background-color: #000; /* Black background */

    color: white;

    width: 50px;

    height: 50px;

    border-radius: 50%;

    text-align: center;

    line-height: 50px;

    font-size: 24px;

    z-index: 1000;

    display: none; /* Initially hidden */

    transition: opacity 0.3s, visibility 0.3s;

}



.back-to-top:hover {

    background-color: #333; /* Darker grey on hover */

}


#infinite-scroll-container article {
    margin-top: 40px; /* Space between articles */
    padding-top: 40px; /* Space for the border and content */
    border-top: 1px solid #ddd; /* Light grey border at the top */
}

/* Remove top border from the first article in the container */
#infinite-scroll-container article:first-child {
    margin-top: 0;
    padding-top: 0;
}

.entry-content {
    padding-bottom: 20px;
}

.post-sharing-icons-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between icons and text */
    margin-top: 20px; /* Space from the content above */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.post-sharing-icons-container .share-text {
    font-family: 'Barlow-Bold', sans-serif;
    font-size: 1rem;
    color: #111;
}

.post-actions-top {
    display: flex;
    align-items: center; /* Vertically center items */
    justify-content: space-between; /* Push items to opposite ends */
    margin-bottom: 20px; /* Space below this section */
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
    gap: 10px; /* Space between items if they wrap */
}

.post-actions-top .post-sharing-icons-container {
    margin-top: 0; /* Override any previous margin-top */
    display: flex; /* Ensure it's a flex container for its own icons */
    gap: 10px; /* Space between social icons */
    align-items: center;
}

.social-icon-square i {
    color: #fff; /* Explicitly ensure icons are white */
}


.ccl-conectados-section {

    .news-grid { 
        align-items: stretch; 
        
        article {
            margin-bottom: 20px;
            padding-bottom: 5px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            grid-column: span 1;
            height: 100%;

            a:hover h4{
                color: #6f6f6e;
            }

            img{
                max-height: none;
            }

            h3 {
                padding-bottom: 5px;
                border-bottom: 0.0625rem solid #000;
                position: relative;
                width: 100%;
                margin-bottom: 20px;
            }

            h3::after {
                content: "";
                width: 90%;
                max-width: 4.375rem;
                height: .25rem;
                background: #000;
                display: block;
                position: absolute;
                bottom: -1px;
                left: 0;
            }


            h4 {
                font-family: 'NotoSerif-Bold', serif;
            }

            .article-content-wrapper {
                flex-grow: 1;

                .post-thumbnail img {
                    width: 100%;
                    height: 140px;
                    object-fit: cover;
                    margin-bottom: 8px;
                }
            }
        }
    }

    .news-section-view-all {
        padding-top: 10px;
    }
}

/* Custom styles for page.php entry-title */
body.page .entry-title {
    font-family: 'NotoSerif-Bold', serif; /* Keep existing font-family */
    font-size: 1.8rem; /* Keep existing font-size */
    margin-bottom: 40px;
    border-bottom: 0.0625rem solid #000;
    position: relative;
    display: block;
    width: 100%;
}

body.page .entry-title:after {
    content: "";
    width: 90%;
    max-width: 13.125rem;
    height: .1875rem;
    background: #000;
    display: block;
    position: absolute;
    bottom: -1px;
    left: 0;
}
/* Estilos para la pgina de Revista La Cmara */
.revista-section {
    margin-bottom: 40px;
}

.revista-section .section-title {
    font-family: 'Fraunces-Bold', serif;
    font-size: 1.625rem;
    margin-bottom: 20px;
    border-bottom: 0.0625rem solid #000;
}

.revista-section .section-title:after {
    content: "";
    width: 90%;
    max-width: 13.125rem;
    height: .1875rem;
    background: #000;
    display: block;
    position: relative;
    bottom: -2px;
    left: 0;
}

.revista-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.revista-item {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra los elementos horizontalmente */
}

.revista-item a {
    text-decoration: none;
    color: #111;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center horizontally */
    text-align: center;  /* Center text within the item */
}

.revista-item .revista-cover {
    margin-bottom: 10px;
}

.revista-item .revista-cover img {
    width: auto;
    height: 150px;
    object-fit: contain;
    border: 1px solid #ddd;
}

.revista-item .revista-title {
    font-family: 'NotoSerif-Bold', serif;
    font-size: 1rem;
    margin: 0;
    line-height: 1.3;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 10px; /* Espacio entre el título y el botón */

}

.revista-item a:hover .revista-title {
    color: #6f6f6e;
}

.download-pdf-button {
    display: inline-block;
    background-color: #ff0000; /* Rojo */
    color: #ffffff!important;
    padding: 8px 15px; /* Botón ligeramente más pequeño */
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    font-size: 14px; /* Tamaño de fuente del botón */
}
.download-pdf-button:hover {
    background-color: #8b0000; /* Rojo más oscuro al pasar el ratón */
    color: #ffffff;
}

/* Responsive adjustments for Revista Grid */
@media (max-width: 992px) {
    .revista-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .revista-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .revista-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Featured Video Styles --- */
/* Default responsive 16:9 wrapper */
.featured-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin-bottom: 8px;
}

.featured-video-wrapper video { /* Add video to the selector */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}



.post-thumbnail  .featured-video-wrapper{
    margin-bottom: 20px;
}


.single-post-layout #ccl-conectados h3{
    font-size: 1.1rem;
}


.ssplayer_content{
    background:red;
}

.ssplayer_button {
    
    width: 225px!important;
    height: 40px!important;
}
