/*
Theme Name: Newsup Child
Template: newsup-pro
*/

.revistas-archive {
    background: #fff !important;
    padding: 60px 0 80px;
}

.revistas-archive__inner {
    background: #fff !important;
}

/* Forzar fondo blanco en contenedores principales de revistas */
.revistas-archive,
.revista-container,
.revista-card,
.revista-item,
.revista-card--archivo {
    background: #fff !important;
}

/* Específico para páginas con revistas-archive */
.revistas-archive ~ *,
.revistas-archive + * {
    background: #fff !important;
}

.revistas-archive__inner {
    width: min(1200px, 90%);
    margin: 0 auto;
}

.revistas-archive__header {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.revistas-archive__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: #e30613;
    margin-bottom: 8px;
}

.revistas-archive__header h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin: 0;
}

.revistas-archive__description {
    max-width: 460px;
    color: #5c5f66;
    font-size: 1rem;
}

.revista-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 35px;
}

.revista-card {
    background: #fff !important;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(26, 33, 52, 0.14);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #eef0f5;
}

.revista-card__thumb img,
.revista-card__thumb--placeholder {
    width: 100%;
    display: block;
}

.revista-card__thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1.41421356237; /* Proporción A4 exacta */
    object-fit: contain;
    background: #fff !important;
}

.revista-card__thumb--placeholder {
    background: #fff !important;
    color: #5c5f66;
    text-align: center;
    padding: 80px 0;
    font-weight: 600;
}

.revista-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.revista-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.revista-card__tag {
    background: #e30613;
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.revista-card__title {
    margin: 0;
    font-size: 1.25rem;
}

.revista-card__title a {
    color: inherit;
    text-decoration: none;
}

.revista-card__title a:hover {
    color: #e30613;
}

.revista-card__meta {
    font-size: 0.9rem;
    color: #6f7480;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.revista-card__excerpt {
    color: #3d3f45;
    flex: 1;
}

.revista-card__button {
    align-self: flex-start;
    background: #e30613;
    color: #fff;
    padding: 10px 28px;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
}

.revista-card__button:hover {
    background: #b90510;
}

@media (min-width: 1024px) {
    .revista-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.revistas-archive__pagination {
    margin-top: 50px;
    text-align: center;
}

.revistas-archive__empty {
    text-align: center;
    color: #6f7480;
}

/* Estilos específicos para el archivo de revistas (solo imágenes) */
.revista-card--archivo {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
}

.revista-card__link {
    display: block;
    width: 100%;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.revista-card__link:hover {
    transform: translateY(-5px);
}

.revista-card__link:hover .revista-card__image {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.revista-card__image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1.41421356237; /* Proporción A4 exacta */
    object-fit: contain;
    background: #fff !important;
    display: block;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.revista-grid--archivo {
    gap: 30px;
}

@media (min-width: 1024px) {
    .revista-grid--archivo {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Estilos para la revista destacada (última entrada) */
.revista-featured {
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
}

.revista-card--featured {
    max-width: 400px;
    margin: 0 auto;
}

.revista-card__image--featured {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    aspect-ratio: 1 / 1.41421356237; /* Proporción A4 exacta */
    object-fit: contain;
    background: #fff !important;
    display: block;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.revista-card--featured .revista-card__link:hover .revista-card__image--featured {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    transform: translateY(-8px);
}

.revista-card__thumb--featured {
    max-width: 400px;
    margin: 0 auto;
    aspect-ratio: 1 / 1.41421356237; /* Proporción A4 exacta */
    min-height: 600px;
}

/* Estilos para página "Quienes somos" - Full width sin padding en todos los contenidos */
body.page-quienes-somos,
body.page-quienes-somos #wrapper,
body.page-quienes-somos #content,
body.page-quienes-somos .container-fluid,
body.page-quienes-somos .container,
body.page-quienes-somos .content-right,
body.page-quienes-somos .content-left,
body.page-quienes-somos .entry-content,
body.page-quienes-somos .post-content,
body.page-quienes-somos .page-content,
body.page-quienes-somos .wp-block-group,
body.page-quienes-somos .wp-block-group__inner-container,
body.page-quienes-somos article,
body.page-quienes-somos .mg-content-area,
body.page-quienes-somos .mg-content,
body.page-quienes-somos main,
body.page-quienes-somos .site-content {
    background-color: #ffffff !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
}

body.page-quienes-somos #content,
body.page-quienes-somos main {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Forzar fondo blanco en contenedores principales */
body.page-quienes-somos,
body.page-quienes-somos #wrapper,
body.page-quienes-somos #content,
body.page-quienes-somos .container-fluid,
body.page-quienes-somos .container,
body.page-quienes-somos .content-right,
body.page-quienes-somos .content-left,
body.page-quienes-somos .entry-content,
body.page-quienes-somos .post-content,
body.page-quienes-somos .page-content,
body.page-quienes-somos .mg-content-area,
body.page-quienes-somos .mg-content,
body.page-quienes-somos main,
body.page-quienes-somos .site-content,
body.page-quienes-somos .mg-page,
body.page-quienes-somos .page-wrapper {
    background-color: #ffffff !important;
}

/* Mantener el header intacto */
body.page-quienes-somos header,
body.page-quienes-somos .mg-head-detail,
body.page-quienes-somos .navbar-wp,
body.page-quienes-somos .mg-nav-widget-area,
body.page-quienes-somos .mg-header,
body.page-quienes-somos .site-header {
    padding-left: inherit !important;
    padding-right: inherit !important;
}

/* Si la página usa otro slug, agregar variantes */
body.page-quienesomos,
body.page-quienesomos #wrapper,
body.page-quienesomos #content,
body.page-quienesomos .container-fluid,
body.page-quienesomos .container,
body.page-quienesomos .content-right,
body.page-quienesomos .content-left,
body.page-quienesomos .entry-content,
body.page-quienesomos .post-content,
body.page-quienesomos .page-content,
body.page-quienesomos .wp-block-group,
body.page-quienesomos .wp-block-group__inner-container,
body.page-quienesomos article,
body.page-quienesomos .mg-content-area,
body.page-quienesomos .mg-content,
body.page-quienesomos main,
body.page-quienesomos .site-content {
    background-color: #ffffff !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
}

body.page-quienesomos #content,
body.page-quienesomos main {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Forzar fondo blanco en contenedores principales */
body.page-quienesomos,
body.page-quienesomos #wrapper,
body.page-quienesomos #content,
body.page-quienesomos .container-fluid,
body.page-quienesomos .container,
body.page-quienesomos .content-right,
body.page-quienesomos .content-left,
body.page-quienesomos .entry-content,
body.page-quienesomos .post-content,
body.page-quienesomos .page-content,
body.page-quienesomos .mg-content-area,
body.page-quienesomos .mg-content,
body.page-quienesomos main,
body.page-quienesomos .site-content,
body.page-quienesomos .mg-page,
body.page-quienesomos .page-wrapper {
    background-color: #ffffff !important;
}

/* Estilos para shortcode de tarjetas de noticias */
.noticias-cards-wrapper {
    margin: 40px 0;
}

.noticias-cards {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.noticias-cards--1cols {
    grid-template-columns: 1fr;
}

.noticias-cards--2cols {
    grid-template-columns: repeat(2, 1fr);
}

.noticias-cards--3cols {
    grid-template-columns: repeat(3, 1fr);
}

.noticias-cards--4cols {
    grid-template-columns: repeat(4, 1fr);
}

.noticia-card {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    aspect-ratio: 1 / 1.41421356237; /* Proporción A4 exacta */
}

.noticia-card__link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
}

.noticia-card__image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.noticia-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.noticia-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.85) 100%);
    z-index: 1;
}

.noticia-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 18px;
    z-index: 2;
    color: #ffffff;
}

.noticia-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.noticia-card__tag {
    background: #e30613;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 2px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    display: inline-block;
    line-height: 1.3;
}

.noticia-card__title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #ffffff;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.noticia-card__number {
    display: inline;
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.noticia-card__date {
    font-size: 0.75rem;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.noticia-card__link:hover .noticia-card__image {
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    .noticias-cards--4cols {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .noticias-cards--3cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .noticias-cards {
        grid-template-columns: 1fr;
    }
    
    .noticias-cards--4cols,
    .noticias-cards--3cols,
    .noticias-cards--2cols {
        grid-template-columns: 1fr;
    }
    
    /* Aspect ratio 4:5 para noticias de archivo en mobile */
    .noticia-card {
        aspect-ratio: 4 / 5 !important;
    }
}

/* Estilos para botón "Cargar más" */
.noticias-load-more-wrapper {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
}

.noticias-load-more-btn {
    background: #e30613;
    color: #ffffff;
    border: none;
    padding: 12px 40px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.noticias-load-more-btn:hover:not(:disabled) {
    background: #b90510;
    transform: translateY(-2px);
}

.noticias-load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Estilos para mensajes de error de noticias */
.noticias-error {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.noticias-error p {
    margin: 10px 0;
}

.noticias-error code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

/* Estilos para bloque de Historia */
.historia-banner-block {
    margin: 40px 0;
    width: 100%;
}

.historia-banner {
    width: 100%;
    padding: 100px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

.historia-banner__titulo {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
    position: relative;
    z-index: 2;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.historia-banner__contenido {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #1a1a1a;
}

.historia-banner__contenido p {
    margin-bottom: 1.2em;
}

.historia-banner__contenido strong {
    font-weight: 700;
}

/* Estilos para el editor de Gutenberg */
.historia-banner-editor {
    padding: 20px;
    border: 2px dashed #ccc;
    border-radius: 4px;
}

.historia-banner-preview {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.historia-banner-contenido-editor {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
    min-height: 100px;
}

/* Estilos para shortcode de videos de YouTube */
.youtube-videos-wrapper {
    margin: 40px 0;
    width: 100%;
}

.youtube-videos-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.youtube-main-player {
    width: 100%;
}

.youtube-player-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.youtube-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.youtube-related-videos {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 600px;
    overflow-y: auto;
}

.youtube-related-item {
    display: flex;
    gap: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    padding: 8px;
    border-radius: 4px;
}

.youtube-related-item:hover {
    background-color: #f5f5f5;
}

.youtube-related-thumb {
    position: relative;
    flex-shrink: 0;
    width: 168px;
    height: 94px;
    overflow: hidden;
    background: #000;
}

.youtube-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.youtube-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.youtube-related-item:hover .youtube-play-overlay {
    opacity: 1;
}

.youtube-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 500;
}

.youtube-related-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.youtube-related-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 0 4px 0;
    color: #030303;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.youtube-related-views {
    font-size: 0.8rem;
    color: #606060;
    margin: 0;
}

@media (max-width: 1024px) {
    .youtube-videos-container {
        grid-template-columns: 1fr;
    }
    
    .youtube-related-videos {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        max-height: none;
    }
    
    .youtube-related-item {
        flex-direction: column;
    }
    
    .youtube-related-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 768px) {
    .youtube-videos-container {
        grid-template-columns: 1fr;
    }
    
    .youtube-related-videos {
        display: none !important;
    }
    
    .youtube-main-player {
        width: 100%;
    }
    
    /* Mismo aspect ratio que las noticias de archivo (4:5) */
    .youtube-player-wrapper {
        padding-bottom: 125%; /* 5/4 = 1.25 = 125% para ratio 4:5 */
    }
}

/* Estilos para mensajes de error de YouTube */
.youtube-error {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
}

.youtube-error p {
    margin: 10px 0;
}

.youtube-error code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

/* Estilos para shortcode de botones de enlaces */
.enlaces-botones-wrapper {
    margin: 40px 0;
    width: 100%;
}

.enlaces-botones-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.enlace-boton {
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    height: 120px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.enlace-boton:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.enlace-boton__imagen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.enlace-boton__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.enlace-boton__fondo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.enlace-boton__contenido {
    position: relative;
    z-index: 2;
    padding: 15px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.enlace-boton__texto {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    width: 100%;
}

/* Estilos específicos para cada botón */
.enlace-boton--1 .enlace-boton__texto {
    color: #1a1a1a;
    text-shadow: none;
}

.enlace-boton--1 .enlace-boton__texto strong {
    color: #e30613;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 4px;
}

.enlace-boton--2 .enlace-boton__texto {
    font-size: 0.85rem;
    line-height: 1.4;
}

.enlace-boton--3 .enlace-boton__texto {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
}

.enlace-boton--4 .enlace-boton__texto {
    color: #1a1a1a;
    text-shadow: none;
    font-size: 1rem;
}

.enlace-boton--4 .enlace-boton__texto strong {
    color: #e30613;
}

.enlace-boton--4 .enlace-boton__texto .yellow {
    color: #ffc107;
}

.enlace-boton--5 .enlace-boton__texto {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #ffc107;
}

@media (max-width: 1024px) {
    .enlaces-botones-container {
        flex-wrap: wrap;
    }
    
    .enlace-boton {
        min-width: 150px;
        max-width: 200px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .enlaces-botones-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .enlace-boton {
        min-width: 100%;
        max-width: 100%;
        height: 100px;
    }
}

/* Estilos para modo oscuro/dark - solo para revistas */
.dark .revistas-archive {
    background: #222 !important;
    color: #fff;
}

.dark .revistas-archive__description {
    color: #fff;
}

.dark .revista-card {
    background: #222 !important;
    border-color: #333;
    color: #fff;
}

.dark .revista-card__title,
.dark .revista-card__title a {
    color: #fff;
}

.dark .revista-card__title a:hover {
    color: #e30613;
}

.dark .revista-card__meta {
    color: #ccc;
}

.dark .revista-card__excerpt {
    color: #ddd;
}

.dark .revista-card__thumb img,
.dark .revista-card__image {
    background: #222 !important;
}

.dark .revista-card__thumb--placeholder {
    background: #333 !important;
    color: #ccc;
}

/* Estilos para estructura de posts: Copete, Título, Bajada, Foto destacada */
.post-copete {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-bajada {
    font-size: 1.1em;
    color: #555;
    margin-top: 15px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.post-featured-image {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 30px;
}

.post-featured-image__img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 2;
    object-fit: cover;
}

.dark .revistas-archive__empty {
    color: #ccc;
}

.dark .revista-item {
    background: #222 !important;
    color: #fff;
}

.dark .revista-item h2 a {
    color: #fff;
}

.dark .revista-item h2 a:hover {
    color: #e30613;
}

.dark .revista-item p {
    color: #ccc;
}

.dark .youtube-related-item:hover {
    background-color: #333;
}

/* Estilos para imágenes del contenedor del "hoy" en single-revista.php */
.revista-container .revista-thumb {
    width: 100% !important;
    overflow: hidden !important;
    position: relative !important;
    display: block !important;
    aspect-ratio: 4 / 2 !important;
    background: #f0f0f0;
    height: auto !important;
    max-width: 100% !important;
}

.revista-container .revista-thumb a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
}

.revista-container .revista-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}

.revista-container .revista-item {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

/* Estilos para bloque de Galería de Imágenes */
.galeria-imagenes-wrapper {
    margin: 40px 0;
    width: 100%;
}

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

.galeria-imagen-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 16 / 9;
    cursor: pointer;
}

.galeria-imagen-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.galeria-imagen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.galeria-imagen-item:hover .galeria-imagen-img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.galeria-imagen-link:hover {
    text-decoration: none;
}

.galeria-imagen-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    padding: 15px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.galeria-imagen-item:hover .galeria-imagen-caption {
    opacity: 1;
}

@media (max-width: 1200px) {
    .galeria-imagenes-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 1024px) {
    .galeria-imagenes-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

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

@media (max-width: 480px) {
    .galeria-imagenes-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Estilos para modo oscuro */
.dark .galeria-imagen-item {
    border-color: #333;
}

/* Estilos para noticias relacionadas */
.related-posts-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e0e0e0;
}

.related-posts-section h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #333;
    font-weight: 700;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    align-items: stretch;
}

/* Asegurar que todas las tarjetas en el grid de "hoy" tengan la misma altura */
.related-posts-hoy .related-posts-grid {
    align-items: stretch;
    grid-template-columns: repeat(2, 1fr) !important;
}

.related-posts-hoy .related-posts-grid .related-post-item {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-posts-grid .related-post-item {
    min-height: auto;
}

.related-post-item {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

/* Asegurar que todas las tarjetas de "hoy" tengan la misma altura */
.related-posts-hoy .related-post-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.related-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.related-post-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    color: inherit;
    position: relative;
}

.related-post-thumb {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
    display: block;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
}

/* Aspect ratio 4:2 (2:1) para noticias relacionadas de la revista "hoy" */
.related-posts-hoy .related-post-thumb {
    aspect-ratio: 4 / 2;
    width: 100%;
    height: auto;
}

.related-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

/* Asegurar que todas las imágenes de "hoy" tengan el mismo tamaño */
.related-posts-hoy .related-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.related-post-item:hover .related-post-image {
    transform: scale(1.1);
}

.related-post-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    box-sizing: border-box;
    max-width: 100%;
}

.related-post-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

.related-post-category {
    display: none !important;
}

.related-post-title {
    font-size: 1.1rem;
    margin: 0 0 10px 0;
    color: #fff;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.9);
    flex: 1;
    pointer-events: none;
}

.related-post-date {
    color: #fff;
    font-size: 0.75rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.9);
    pointer-events: none;
}

/* Overlay oscuro sobre la imagen para mejor legibilidad del texto - SIEMPRE VISIBLE */
.related-post-thumb::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Botón cargar más */
.related-posts-load-more-wrapper {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
}

.related-posts-load-more-btn {
    background: #e30613;
    color: #ffffff;
    border: none;
    padding: 12px 40px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.related-posts-load-more-btn:hover:not(:disabled) {
    background: #b90510;
    transform: translateY(-2px);
}

.related-posts-load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@media (max-width: 1024px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .related-posts-hoy .related-posts-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .related-posts-grid .related-post-item {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .related-posts-grid {
        grid-template-columns: 1fr !important;
    }
    
    .related-posts-hoy .related-posts-grid {
        grid-template-columns: 1fr !important;
    }
    
    .related-posts-section h2 {
        font-size: 1.5rem;
    }
    
    .related-posts-grid .related-post-item {
        min-height: auto;
    }
    
    .related-post-thumb {
        min-height: auto;
    }
}

/* Estilos para modo oscuro - noticias relacionadas */
.dark .related-posts-section {
    border-top-color: #444;
}

.dark .related-posts-section h2 {
    color: #fff;
}

.dark .related-post-item {
    background: #222;
    border-color: #333;
}

.dark .related-post-thumb::after {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
}

/* CSS predefinido del usuario */
#custom-background-css {
    background-color: white;
}

a.ta_upscr.bounceInup.animated {
    display: none !important;
}

/* Blog acomodado */
@media screen and (min-width: 758px) {
    div.mg-blog-post-box.single {
        padding: 0px 15em;
    }
    
    div.mg-blog-post-box.single div.mg-header {
        padding: 0px 2em;
    }

    div.mg-blog-post-box.single p {
        font-size: 1.2em;
    }
}

@media screen and (max-width: 758px) {
    div.mg-blog-post-box.single {
        padding: 0px 0.1em;
    }
    
    div.mg-blog-post-box.single div.mg-header {
        padding: 0px 1em;
    }
    
    div.mg-blog-post-box.single article.small.single {
        padding: 1em 1em;
    }
}

/* Aqui abajo quita las etiquetas del sector principal */
.col-md-3 .bottom .mg-blog-category {
    display: none;
}

/* Ocultar etiquetas que contengan "destacada" - se oculta con JavaScript */
.noticia-card__tag--hidden,
.tag-hidden-destacada {
    display: none !important;
}

/* Ocultar .mg-blog-category a que contenga "destacada" */

/* ============================================
   ESTILOS PARA TEMPLATE HOME SECCIÓN PRINCIPAL
   ============================================ */

/* Asegurar que los contenedores padre no limiten el ancho */
body.page-template-template-home-seccion .home-seccion-principal,
body.page-template-template-home-seccion #content,
body.page-template-template-home-seccion main,
body.page-template-template-home-seccion .site-content,
body.page-template-template-home-seccion .mg-content-area {
    max-width: 100% !important;
    width: 100% !important;
}

.home-seccion-principal {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.home-seccion-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Desktop: igualar altura máxima de todas las columnas y alinear arriba y abajo */
@media (min-width: 1025px) {
    .home-seccion-grid {
        align-items: stretch;
    }
    
    .home-seccion-columna {
        display: flex;
        flex-direction: column;
    }
    
    .home-seccion-izquierda {
        height: 100%;
    }
    
    .home-seccion-centro {
        height: 100%;
    }
    
    .home-seccion-derecha {
        height: 100%;
    }
    
    .home-noticia-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
        color:#ffffff !important;
    }
    
    .home-noticia-link {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
        color:#ffffff !important;
    }
    
    .home-noticia-thumb {
        flex: 1;
        min-height: 0;
        aspect-ratio: unset;
    }
    
    .home-noticia-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
    }
    
    .home-noticia-title {
        z-index: 10 !important;
        pointer-events: auto !important;
        font-size: 1.3rem;
    }
    
    .home-carrusel-wrapper {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .home-carrusel-container {
        flex: 1;
        min-height: 0;
        aspect-ratio: unset;
        max-height: 600px;
    }
    
    .home-hoy-item {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .home-hoy-link {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }
    
    .home-hoy-thumb {
        flex: 1;
        min-height: 0;
        aspect-ratio: unset;
        height: 100%;
    }
    
    .home-hoy-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
    }
    
    .home-hoy-archivo {
        flex-shrink: 0;
    }
}

/* Columna Izquierda - 2 Noticias */
.home-seccion-izquierda {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.home-noticia-item {
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.home-noticia-item:hover {
    transform: translateY(-3px);
}

.home-noticia-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

.home-noticia-thumb {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

.home-noticia-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Overlay oscuro sobre la imagen para mejor legibilidad del texto */
.home-noticia-thumb::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

.home-noticia-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    color: #ffffff !important;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    z-index: 10 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.9);
    transition: color 0.3s ease;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Ocultar cualquier contenido fuera del thumb */
.home-noticia-content {
    display: none !important;
}

/* Ocultar cualquier tag */
.home-noticia-tag {
    display: none !important;
}

/* Asegurar que el título dentro del thumb esté en blanco y visible */
.home-noticia-thumb .home-noticia-title,
.home-noticia-thumb h3.home-noticia-title {
    color: #ffffff !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10 !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    pointer-events: auto !important;
    font-size: 1.3rem;
}

.home-noticia-item:hover .home-noticia-title {
    color: #e30613;
}

/* Columna Centro - Carrusel */
.home-seccion-centro {
    position: relative;
}

.home-carrusel-wrapper {
    position: relative;
    width: 100%;
}

.home-carrusel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
}

.home-carrusel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

.home-carrusel-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.home-carrusel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.home-carrusel-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    z-index: 2;
}

/* Flechas del carrusel - Solo visibles en hover */
.home-carrusel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #333;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease;
    padding: 0;
}

.home-carrusel-wrapper:hover .home-carrusel-arrow {
    opacity: 1;
}

.home-carrusel-arrow:hover {
    background: rgba(255, 255, 255, 1);
}

.home-carrusel-arrow.prev {
    left: 20px;
}

.home-carrusel-arrow.next {
    right: 20px;
}

/* Columna Derecha - Portada Hoy */
.home-seccion-derecha {
    display: flex;
    flex-direction: column;
}

.home-hoy-item {
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.home-hoy-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

.home-hoy-thumb {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

.home-hoy-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.home-hoy-archivo {
    padding: 12px 15px;
    text-align: center;
}

.home-hoy-archivo-link {
    display: inline-block;
    background: #e30613;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
    transition: background 0.3s ease;
    white-space: nowrap;
    line-height: 1.2;
}

.home-hoy-archivo-link:hover {
    background: #b90510;
}

/* Responsive */
@media (max-width: 1024px) {
    .home-seccion-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .home-seccion-centro {
        order: 1;
    }

    .home-seccion-derecha {
        order: 2;
    }

    .home-seccion-izquierda {
        order: 3;
    }
}

@media (max-width: 768px) {
    .home-seccion-principal {
        padding: 0 15px;
    }

    /* Aspect ratio 4:5 para carrusel en mobile */
    .home-carrusel-container {
        aspect-ratio: 4 / 5 !important;
    }

    /* Aspect ratio 4:5 para noticias de la izquierda en mobile */
    .home-noticia-thumb {
        aspect-ratio: 4 / 5 !important;
    }

    .home-carrusel-title {
        font-size: 1.5rem;
        padding: 15px;
    }

    .home-carrusel-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .home-carrusel-arrow.prev {
        left: 10px;
    }

    .home-carrusel-arrow.next {
        right: 10px;
    }
}

/* Ocultar .mg-blog-category a que contenga "destacada" */
.mg-blog-category a.tag-hidden-destacada {
    display: none !important;
}

/* ===== REDES SOCIALES EN BARRA DE NAVEGACIÓN ===== */

/* Ocultar la barra de redes sociales creada por el script (si existe) */
.social-networks-bar {
    display: none !important;
}

/* Estilos para redes sociales en la barra de navegación */
.navbar-social-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
    margin-right: auto;
    padding: 0;
    flex-shrink: 0;
}

.navbar-social-label {
    display: none !important;
}

.navbar-social-icons-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.navbar-social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #ffffff;
    background: transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    border-radius: 2px;
    padding: 0;
    line-height: 1;
}

.navbar-social-icon-link svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
    transition: transform 0.3s ease;
}

.navbar-social-icon-link:hover {
    transform: scale(1.15);
    opacity: 0.9;
}

.navbar-social-icon-link:hover svg {
    fill: #ffffff;
    filter: brightness(1.2);
}

/* Asegurar que la barra de navegación tenga el fondo correcto */
.navbar-wp,
.mg-menu-full,
.mg-menu-full .navbar-wp {
    background-color: #343a40 !important;
    background: #343a40 !important;
}

/* Asegurar que los elementos de la barra de navegación sean visibles */
.navbar-wp .navbar-nav > li > a {
    color: #ffffff !important;
    font-size: 0.7em !important;
    padding: 15px 10px !important;
}

.navbar-wp .desk-header {
    display: flex !important;
    align-items: center !important;
    margin-left: auto;
}

/* Asegurar que el contenedor de la barra use flexbox */
.navbar-wp .container-fluid {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap;
}

/* Ocultar lupa duplicada en mobile */
.m-header .mg-search-box {
    display: none !important;
}

/* Responsive: Mobile */
@media (max-width: 991px) {
    .navbar-social-icons {
        margin-left: 15px;
        margin-right: auto;
        gap: 6px;
        padding: 0;
    }
    
    .navbar-social-label {
        display: none !important;
    }
    
    .navbar-social-icon-link {
        width: 26px;
        height: 26px;
    }
    
    .navbar-social-icon-link svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 768px) {
    .navbar-social-icons {
        margin-left: 10px;
        gap: 5px;
        padding: 0;
    }
    
    .navbar-social-label {
        display: none !important;
    }
    
    .navbar-social-icon-link {
        width: 22px;
        height: 22px;
    }
    
    .navbar-social-icon-link svg {
        width: 14px;
        height: 14px;
    }
    
    /* Ocultar lupa duplicada en mobile */
    .m-header .mg-search-box {
        display: none !important;
    }
}

/* Eliminar padding del header */
.mg-nav-widget-area-back .inner {
    padding: 0 !important;
}

/* ===== MODIFICACIONES DEL HEADER ===== */

/* Header rojo - Revertir a fondo rojo original */
header.mg-headwidget .mg-nav-widget-area-back,
.mg-headwidget .mg-nav-widget-area-back,
.mg-nav-widget-area-back {
    background-color: #ec1c24 !important;
}

/* Overlay del header rojo */
header.mg-headwidget .mg-nav-widget-area-back .inner,
.mg-headwidget .mg-nav-widget-area-back .inner,
.mg-nav-widget-area-back .inner,
.mg-nav-widget-area-back .overlay .inner {
    background-color: #ec1c24 !important;
    background: #ec1c24 !important;
    padding: 20px 0 !important;
}

/* Logo amarillo - Quitar filtro rojo */
.mg-nav-widget-area .navbar-header .custom-logo,
.mg-nav-widget-area .navbar-header img.custom-logo,
.mg-nav-widget-area .navbar-brand img,
.mg-nav-widget-area .custom-logo,
.mg-headwidget .navbar-brand img,
.mg-headwidget .navbar-header img,
.mg-standhead .navbar-brand img,
.mg-standhead .navbar-header img,
.navbar-header .custom-logo,
.navbar-header img.custom-logo,
.navbar-brand img.custom-logo {
    filter: none !important;
    -webkit-filter: none !important;
}

/* Header superior rojo */
header.mg-headwidget .mg-head-detail,
.mg-headwidget .mg-head-detail,
.mg-standhead .mg-head-detail,
.mg-head-detail {
    background-color: #ec1c24 !important;
    padding: 8px 0 !important;
}

.mg-head-detail .info-left li,
.mg-head-detail .info-left li a,
.mg-head-detail .info-right li a {
    color: #ffffff !important;
}

.mg-head-detail .mg-social li span.icon-soci {
    background-color: transparent !important;
    color: #ffffff !important;
}

.mg-head-detail .mg-social li span.icon-soci i,
.mg-head-detail .mg-social li span.icon-soci a i {
    color: #ffffff !important;
}

.mg-head-detail .mg-social li span.icon-soci:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.mg-head-detail .mg-social li span.icon-soci:hover i {
    color: #ffffff !important;
}

/* Asegurar visibilidad del texto del header */
.mg-head-detail .info-left li span.time {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
}

/* Layout Two - Header estándar también con fondo gris */
.mg-standhead .mg-head-detail {
    background-color: #6c757d !important;
}

/* Asegurar que el texto del sitio también sea visible */
.mg-nav-widget-area .site-branding-text .site-title a,
.mg-nav-widget-area .site-branding-text .site-title,
.mg-nav-widget-area .site-branding-text .site-description {
    color: #ffffff !important;
}

/* Responsive: Asegurar que el header se vea bien en móviles */
@media (max-width: 768px) {
    .mg-nav-widget-area-back .inner {
        padding: 15px 0 !important;
    }
    
    .mg-head-detail {
        padding: 8px 0 !important;
    }
    
    /* Asegurar que el logo se vea bien en móvil */
    .mg-nav-widget-area .navbar-header .custom-logo,
    .mg-nav-widget-area .navbar-header img.custom-logo,
    .mg-nav-widget-area .navbar-brand img,
    .mg-nav-widget-area .custom-logo,
    .mg-headwidget .navbar-brand img,
    .mg-standhead .navbar-brand img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Asegurar que las redes sociales se vean en móvil */
    .mg-head-detail .mg-social {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    
    /* Mostrar redes sociales en móvil también */
    .mg-head-detail.hidden-xs {
        display: block !important;
    }
}

@media (max-width: 480px) {
    .mg-nav-widget-area-back .inner {
        padding: 10px 0 !important;
    }
    
    .mg-head-detail {
        padding: 6px 0 !important;
    }
}