/* =====================================================
   VIDEOS DESTACADOS – SOLO HORIZONTALES (AJUSTADO)
===================================================== */

/* Wrapper principal con fondo negro */
.informe-videos-section {
    background-color: #000;
    padding: 32px 0;
}

.informe-videos {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
.informe-videos__header {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0;
    margin-bottom: 24px;
    background: transparent;
    padding: 0;
}

/* Título en primera fila, primera columna */
.informe-videos__header .informe-videos__title {
    grid-column: 1;
    grid-row: 1;
}

/* Botón en primera fila, segunda columna */
.informe-videos__header .informe-videos__more {
    grid-column: 2;
    grid-row: 1;
}

/* Separador blanco bajo el título - ocupa toda la segunda fila */
.informe-videos-section__separator {
    grid-column: 1 / -1; /* Ocupa todas las columnas */
    grid-row: 2;
    width: 100%;
    height: 4px;
    background-color: #fff;
    margin-top: 8px;
}

/* Título */
.informe-videos-section .informe-videos__title {
    font-family: "MJRT", serif !important;
    font-size: 1.9rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: #fff !important;
}

/* Botón */
.informe-videos__more {
    font-family: "MarcinAnt", sans-serif !important;
    text-transform: uppercase !important;
    font-size: 0.8rem !important;
    color: #EE3339 !important;
    text-decoration: none !important;
    letter-spacing: .6px !important;
    font-weight: 700 !important;
    margin-top: 0;
}

.informe-videos__more:hover {
    text-decoration: underline;
}

/* GRID - Shorts: 3 columnas desktop/tablet, 1 mobile */
.informe-videos__grid--shorts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.informe-videos__item--short {
    display: flex;
    flex-direction: column;
}

/* Estilos para Shorts dentro de Videos Destacados */
.informe-videos__item--short .wppm-post-wrap {
    margin-bottom: 0;
}

.informe-videos__item--short .post-img {
    margin-bottom: 8px;
}

.informe-videos__item--short .embd-wrap {
    margin-bottom: 0;
}

/* Aspect-ratio 9:16 para Shorts en Videos Destacados */
.informe-videos__item--short .embd-wrap[data-ratio="9:16"],
.informe-videos__item--short .embd-wrap:has(iframe.sd-embed.is-vertical),
.informe-videos__item--short .embd-wrap:has(iframe.sd-embed.is-youtube-short) {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    position: static !important;
    height: auto !important;
}

.informe-videos__item--short .embd-wrap iframe.sd-embed.is-vertical,
.informe-videos__item--short .embd-wrap iframe.sd-embed.is-youtube-short,
.informe-videos__item--short .embd-wrap .sd-embed.is-vertical,
.informe-videos__item--short .embd-wrap .sd-embed.is-youtube-short {
    aspect-ratio: 9 / 16 !important;
    width: 100% !important;
    height: auto !important;
    display: block;
    border-radius: 4px;
}

/* =====================================================
   TÍTULOS DE VIDEOS - Sistema con clases específicas
   Usa .video-title en lugar de .post-title para evitar
   conflictos con resets globales
   ===================================================== */

/* Base - Estilos comunes para todos los títulos de video */
.informe-videos__item .video-title,
.informe-videos__item .video-title a,
.informe-videos--dark .video-title,
.informe-videos--dark .video-title a,
.informe-videos__embed .video-title,
.informe-videos__embed .video-title a,
.informe-videos__embed .post-details .video-title,
.informe-videos__embed .post-details .video-title a,
.informe-videos__embed .post-details h3.video-title,
.informe-videos__embed .post-details h3.video-title a,
.informe-videos--dark .informe-videos__embed .video-title,
.informe-videos--dark .informe-videos__embed .video-title a,
.informe-videos--dark .informe-videos__embed .post-details .video-title,
.informe-videos--dark .informe-videos__embed .post-details .video-title a,
.informe-videos--dark .informe-videos__embed .post-details h3.video-title,
.informe-videos--dark .informe-videos__embed .post-details h3.video-title a,
.informe-videos-section .informe-videos__embed .post-details h3.video-title,
.informe-videos-section .informe-videos__embed .post-details h3.video-title a {
    font-family: "MJRT", serif !important;
    font-size: 1rem !important;
    font-weight: 900 !important; /* MJRT Black */
    text-decoration: none !important;
    display: block !important;
    line-height: 1.25 !important;
    margin-top: 6px !important;
    color: #FFFFFF !important; /* Blanco */
    /* Reset de estilos globales */
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
}

/* Dark variant (Videos Destacados usa esta variante) */
.informe-videos--dark .video-title,
.informe-videos--dark .video-title a,
.informe-videos--dark .informe-videos__embed .video-title,
.informe-videos--dark .informe-videos__embed .video-title a,
.informe-videos--dark .informe-videos__embed .post-details .video-title,
.informe-videos--dark .informe-videos__embed .post-details .video-title a,
.informe-videos--dark .informe-videos__embed .post-details h3.video-title,
.informe-videos--dark .informe-videos__embed .post-details h3.video-title a,
.informe-videos-section .informe-videos__embed .post-details h3.video-title,
.informe-videos-section .informe-videos__embed .post-details h3.video-title a {
    color: #FFFFFF !important;
}

.informe-videos--dark .video-title a:hover,
.informe-videos__item .video-title a:hover,
.informe-videos__embed .video-title a:hover,
.informe-videos__embed .post-details .video-title a:hover,
.informe-videos__embed .post-details h3.video-title a:hover,
.informe-videos--dark .informe-videos__embed .video-title a:hover,
.informe-videos--dark .informe-videos__embed .post-details .video-title a:hover,
.informe-videos--dark .informe-videos__embed .post-details h3.video-title a:hover,
.informe-videos-section .informe-videos__embed .post-details h3.video-title a:hover {
    color: #F5F5F5 !important;
    text-decoration: underline !important;
}

/* Optional light variant (para futuros usos) */
.informe-videos--light .video-title a {
    color: #111 !important;
}

.informe-videos--light .video-title a:hover {
    color: #333 !important;
    text-decoration: underline !important;
}

/* Reset de h3 dentro de videos destacados para evitar conflictos */
/* NOTA: No usar color: inherit aquí porque puede heredar color negro */
.informe-videos__item .video-title,
.informe-videos--dark .video-title,
.informe-videos--light .video-title,
.informe-videos__embed .video-title,
.informe-videos__embed .post-details .video-title,
.informe-videos__embed .post-details h3.video-title,
.informe-videos--dark .informe-videos__embed .video-title,
.informe-videos--dark .informe-videos__embed .post-details .video-title,
.informe-videos--dark .informe-videos__embed .post-details h3.video-title,
.informe-videos-section .informe-videos__embed .post-details h3.video-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: inherit !important;
    line-height: inherit !important;
    font-weight: inherit !important;
    /* color: inherit removido - se establece explícitamente arriba */
}

/* =====================================================
   SOBRESCRIBIR REGLAS GLOBALES h2 a, h3 a
   Especificidad mayor que (0,0,2) para forzar color blanco
   ===================================================== */
.informe-videos-section h2 a,
.informe-videos-section h3 a,
.informe-videos-section .informe-videos__embed h3.video-title a,
.informe-videos-section .informe-videos__embed .post-details h3.video-title a,
.informe-videos--dark h2 a,
.informe-videos--dark h3 a,
.informe-videos--dark .informe-videos__embed h3.video-title a,
.informe-videos--dark .informe-videos__embed .post-details h3.video-title a,
.informe-videos-section.informe-videos--dark h2 a,
.informe-videos-section.informe-videos--dark h3 a,
.informe-videos-section.informe-videos--dark .informe-videos__embed h3.video-title a,
.informe-videos-section.informe-videos--dark .informe-videos__embed .post-details h3.video-title a {
    color: #FFFFFF !important;
}

/* META */
.informe-videos-section .informe-videos__meta {
    margin: 0 0 2px !important;
    font-family: "MarcinAnt", sans-serif !important;
    font-size: 0.72rem !important;
    display: flex !important;
    gap: 8px !important;
    text-transform: uppercase !important;
}

/* Categoría en rojo */
.informe-videos-section .informe-videos__meta span:first-child {
    color: #EE3339 !important;
}

/* Fecha en gris claro */
.informe-videos-section .informe-videos__meta span:last-child {
    color: #bbbbbb !important;
}

/* =====================================================
   TITULAR UNIFICADO - Selector maestro único
   ===================================================== */
.informe-videos-section .informe-videos__headline a {
    font-family: "MJRT", serif;
    font-size: 1rem;
    font-weight: 600; /* semibold */
    line-height: 1.25;
    color: #fff;
    text-decoration: none;
    display: block;
    margin-top: 6px;
}

.informe-videos-section .informe-videos__headline a:hover {
    color: #d4d4d4;
    text-decoration: underline;
}

/* Reset de h3 para evitar conflictos - solo estructura, no tipografía */
.informe-videos-section .informe-videos__headline,
.informe-videos-section h3 {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
}

/* Botón Ver más - Estilo unificado Superdeportivo */
.informe-videos-section .informe-videos__load-more-wrap {
    text-align: center !important;
    margin: 30px auto 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}

/* Especificidad alta para sobrescribir estilos globales/Elementor */
/* Botón fondo rojo #EE3334 y texto blanco - estilo producción */
.informe-videos__load-more button,
.informe-videos__load-more a,
.informe-videos-destacados .load-more,
.informe-videos-section .informe-videos__load-more-wrap .informe-videos__load-more,
.informe-videos-section button.informe-videos__load-more,
button.informe-videos__load-more {
    background-color: #EE3334 !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    display: inline-block !important;
    font-family: "MJRT", serif !important;
    font-size: 14px !important;
    letter-spacing: .5px !important;
    transition: all .25s ease !important;
    text-align: center !important;
    margin: 0 !important;
    line-height: 1.5 !important;
    /* Reset de estilos que pueden venir de resets globales */
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Reset adicional para cualquier estilo de enlace que pueda estar aplicado */
.informe-videos-section .informe-videos__load-more-wrap .informe-videos__load-more:link,
.informe-videos-section .informe-videos__load-more-wrap .informe-videos__load-more:visited,
.informe-videos-section .informe-videos__load-more-wrap .informe-videos__load-more:active,
.informe-videos__load-more:link,
.informe-videos__load-more:visited,
.informe-videos__load-more:active,
.informe-videos-destacados .load-more:link,
.informe-videos-destacados .load-more:visited,
.informe-videos-destacados .load-more:active {
    background-color: #EE3334 !important;
    background: #EE3334 !important;
    color: #FFFFFF !important;
    border: none !important;
    text-decoration: none !important;
}

/* Hover: tono más oscuro del rojo */
.informe-videos__load-more button:hover,
.informe-videos__load-more a:hover,
.informe-videos-destacados .load-more:hover,
.informe-videos-section .informe-videos__load-more-wrap .informe-videos__load-more:hover:not(:disabled):not(.loading),
.informe-videos-section button.informe-videos__load-more:hover:not(:disabled):not(.loading),
button.informe-videos__load-more:hover:not(:disabled):not(.loading) {
    background-color: #c62828 !important;
    color: #fff !important;
    border: none !important;
}

.informe-videos-section .informe-videos__load-more-wrap .informe-videos__load-more:disabled,
.informe-videos-section button.informe-videos__load-more:disabled,
button.informe-videos__load-more:disabled,
.informe-videos__load-more:disabled,
.informe-videos-destacados .load-more:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background-color: #EE3334 !important;
    color: #FFFFFF !important;
}

.informe-videos-section .informe-videos__load-more-wrap .informe-videos__load-more.loading,
.informe-videos-section button.informe-videos__load-more.loading,
button.informe-videos__load-more.loading,
.informe-videos__load-more.loading,
.informe-videos-destacados .load-more.loading {
    opacity: 0.7 !important;
    pointer-events: none !important;
    background-color: #EE3334 !important;
    color: #FFFFFF !important;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .informe-videos {
        max-width: 100%;
        padding: 0 16px;
    }

    /* Tablet: mantener 3 columnas */
    .informe-videos__grid--shorts {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    /* Padding para el botón "Ver más" en tablet */
    .informe-videos__header .informe-videos__more,
    .informe-videos-section .informe-videos__header .informe-videos__more,
    .informe-videos-global .informe-videos-section .informe-videos__header .informe-videos__more,
    .informe-videos--dark .informe-videos__header .informe-videos__more {
        padding: 24px !important;
    }
}

@media (max-width: 768px) {
    /* Mobile: 1 columna */
    .informe-videos__grid--shorts {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .informe-videos__item--short {
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    
    .informe-videos__item--short:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .informe-videos-section {
        padding: 24px 10px;
    }

    .informe-videos {
        padding: 0 12px;
    }

    .informe-videos__header {
        margin-bottom: 20px;
    }

    .informe-videos-section .informe-videos__title {
        font-size: 1.38rem !important;
        line-height: 1.05 !important;
    }

    .informe-videos-section .informe-videos__item {
        gap: 3px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        padding-bottom: 16px;
        margin-bottom: 16px;
    }

    .informe-videos-section .informe-videos__item:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .informe-videos-section .informe-videos__headline a {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    /* Padding para el botón "Ver más" en mobile */
    .informe-videos__more,
    .informe-videos-section .informe-videos__header .informe-videos__more,
    .informe-videos-global .informe-videos-section .informe-videos__header .informe-videos__more,
    .informe-videos--dark .informe-videos__header .informe-videos__more {
        padding: 20px 24px !important;
    }
}

/* ===============================================
   FIX: Reset de embed-wrap dentro del módulo
   =============================================== */
.informe-videos .embed-wrap {
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
    display: block;
}

/* YouTube Shorts: neutralizar aspect-ratio del wrapper */
.informe-videos .embed-wrap:has(iframe.sd-embed.is-youtube-short),
.informe-videos .embed-wrap:has(iframe.sd-embed.is-vertical.is-youtube-short),
.informe-videos .embed-wrap[data-ratio="9:16"] {
    aspect-ratio: unset !important;
    padding-bottom: 0 !important;
    height: auto !important;
    position: static !important;
}

/* Los iframes y videos se ajustan al contenedor */
.informe-videos .embed-wrap iframe,
.informe-videos .embed-wrap video {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* YouTube Shorts: forzar aspect-ratio 9:16 */
.informe-videos .embed-wrap iframe.sd-embed.is-youtube-short,
.informe-videos .embed-wrap iframe.sd-embed.is-vertical.is-youtube-short,
.informe-videos .embed-wrap .sd-embed.is-youtube-short,
.informe-videos .embed-wrap .sd-embed.is-vertical.is-youtube-short {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 9 / 16 !important;
    max-width: 400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
}

/* Neutralizado - los titulares ahora se controlan desde .informe-videos-section .informe-videos__headline a */

/* ============================================================
   ESTILO DEL BLOQUE EN EL HOME (igual al front-test)
============================================================ */

.informe-videos-global .informe-videos__title {
    background: #000;
    color: #fff;
    font-family: "MJRT", serif;
    font-size: 2rem;
    padding: 16px 24px;
}

/* Neutralizado - los titulares ahora se controlan desde .informe-videos-section .informe-videos__headline a */

/* Meta + fecha */
.informe-videos-global .informe-videos__meta {
    font-family: "MarcinAnt", serif;
    font-size: 0.7rem;
    color: #444;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ============================================================
   ESCRITORIO: Ajustes específicos para desktop
============================================================ */
@media (min-width: 1025px) {
    /* Reducir ancho del embed a 90% - Mayor especificidad */
    .informe-videos-section .informe-videos__embed,
    .informe-videos-global .informe-videos-section .informe-videos__embed,
    .informe-videos--dark .informe-videos__embed {
        width: 90% !important;
    }

    /* Padding horizontal para grid de shorts - Mayor especificidad */
    .informe-videos-section .informe-videos__grid.informe-videos__grid--shorts,
    .informe-videos-global .informe-videos-section .informe-videos__grid.informe-videos__grid--shorts,
    .informe-videos--dark .informe-videos__grid.informe-videos__grid--shorts {
        padding: 0px 80px !important;
    }

    /* Padding horizontal para header - Mayor especificidad */
    .informe-videos-section .informe-videos__header,
    .informe-videos-global .informe-videos-section .informe-videos__header,
    .informe-videos--dark .informe-videos__header {
        padding: 0px 80px !important;
    }

    /* Padding para el botón "Ver más" en el header - Mayor especificidad */
    .informe-videos-section .informe-videos__header .informe-videos__more,
    .informe-videos-global .informe-videos-section .informe-videos__header .informe-videos__more,
    .informe-videos--dark .informe-videos__header .informe-videos__more {
        padding: 24px 24px !important;
    }
}

/* ============================================================
   TODAS LAS RESOLUCIONES: Hacer que sde-videos-global 
   ocupe el 100% de la pantalla desbordando el main container
============================================================ */
.informe-videos-global {
    position: relative !important;
    width: 100vw !important;
    max-width: 100vw !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}