/**
 * Home Page Styles - OpaNoticias
 * 
 * Estilos optimizados para la página principal.
 * Mobile-first approach.
 */

/* ==================== HERO SECTION ==================== */
.home-hero {
    padding: 20px 0;
    background: #f8f9fa;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: 400px;
}

/* JUDICIAL - altura fija */
.judicial-box {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    order: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* MAIN HERO - se ajusta */
.main-hero {
    order: 1;
    height: 100%;
}

/* TABS - altura fija */
.tabs-box {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    order: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
        min-height: 450px;
    }
    
    .judicial-box {
        order: 1;
        grid-row: span 2;
        height: 100%;
    }
    
    .main-hero {
        order: 2;
        height: 100%;
    }
    
    .tabs-box {
        order: 3;
        height: 100%;
    }
}

@media (min-width: 1024px) {
    .home-hero {
        padding: 40px 0;
    }
    
    .hero-grid {
        grid-template-columns: 250px 1fr 280px;
        gap: 30px;
        min-height: 350px;
    }
    
    .judicial-box {
        order: 1;
        grid-row: auto;
        height: 100%;
    }
    
    .main-hero {
        order: 2;
        height: 100%;
    }
    
    .tabs-box {
        order: 3;
        height: 100%;
    }
}

@media (min-width: 1200px) {
    .hero-grid {
        grid-template-columns: 280px 1fr 300px;
        min-height: 350px;
    }
}

/* ==================== JUDICIAL BOX ==================== */
.judicial-box {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    order: 2;
}

.box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #1a1a2e;
}

.box-header h2 {
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: 1px;
}

.view-all-link {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.view-all-link:hover {
    color: #e63946;
}

.judicial-list {
    padding: 0;
}

.judicial-card {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.judicial-card:last-child {
    border-bottom: none;
}

.judicial-card:hover {
    background: #f8f9fa;
}

.judicial-info h3 {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 6px;
}

.judicial-info h3 a {
    color: #1a1a2e;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.judicial-info h3 a:hover {
    color: #e63946;
}

.judicial-info time {
    font-size: 11px;
    color: #999;
}

/* ==================== MAIN HERO ==================== */
.main-hero {
    order: 1;
    height: 100%;
}

.hero-post {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    position: relative;
    height: 100%;
}

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

.hero-img {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

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

.hero-post:hover .hero-img img {
    transform: scale(1.03);
}

/* Overlay para oscurecer la parte inferior */
.hero-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.9) 0%, 
        rgba(0, 0, 0, 0.7) 30%, 
        rgba(0, 0, 0, 0.4) 60%, 
        transparent 100%);
    z-index: 1;
}

/* Texto POSICIONADO sobre la imagen */
.hero-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 20px 20px;
    color: white;
    z-index: 2;
    pointer-events: none;
}

.hero-label {
    display: inline-block;
    background: #e63946;
    color: white;
    padding: 6px 14px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    pointer-events: auto;
}

.hero-text h1 {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 12px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    pointer-events: auto;
}

.hero-text p {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    pointer-events: auto;
}

/* ==================== TABS BOX ==================== */
.tabs-nav {
    display: flex;
    background: #1a1a2e;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-shrink: 0;
}

.tabs-nav::-webkit-scrollbar {
    display: none;
}

.tab-link {
    flex: 1;
    min-width: fit-content;
    padding: 14px 16px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-link:hover,
.tab-link.active {
    color: white;
    background: rgba(230,57,70,0.2);
}

.tab-link.active {
    background: #e63946;
}

.tab-panel {
    display: none;
    padding: 0;
    flex: 1;
    overflow-y: auto;
}

.tab-panel.active {
    display: block;
}

.tab-item {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.tab-item:last-of-type {
    border-bottom: none;
}

.tab-text h4 {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 6px;
}

.tab-text h4 a {
    color: #1a1a2e;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tab-text h4 a:hover {
    color: #e63946;
}

.tab-date {
    font-size: 11px;
    color: #999;
}

.view-more {
    display: block;
    padding: 12px 16px;
    text-align: center;
    color: #e63946;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    background: #f8f9fa;
    transition: background 0.2s ease;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.view-more:hover {
    background: #eee;
}

/* ==================== ESTILOS COMPARTIDOS PARA CATEGORÍAS ==================== */
.section-categories {
    padding: 40px 0;
}

.category-section {
    margin-bottom: 40px;
}

.category-section:last-child {
    margin-bottom: 0;
}

/* TÍTULO DE CATEGORÍA - ESTILO UNIFICADO */
.category-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid #e63946;
}

.category-title h2 {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* LINK "VER TODO" - ESTILO UNIFICADO */
.view-link {
    color: #e63946;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
    padding: 4px 0;
    text-decoration: none;
}

.view-link:hover {
    color: #1a1a2e;
}

.view-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1a1a2e;
    transition: width 0.3s ease;
}

.view-link:hover::after {
    width: 100%;
}

/* ==================== SECCIÓN POLÍTICA ==================== */
.section-politica {
    background: #fff;
}

/* Layout principal */
.featured-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

/* Artículo principal - CON TÍTULO SOBRE IMAGEN */
.featured-main-post {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    min-height: 350px;
}

.featured-main-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.featured-main-image {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.featured-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-main-post:hover .featured-main-image img {
    transform: scale(1.05);
}

/* Overlay oscuro para el texto */
.featured-main-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.9) 0%, 
        rgba(0, 0, 0, 0.7) 40%, 
        rgba(0, 0, 0, 0.4) 70%, 
        transparent 100%);
    z-index: 1;
}

/* Contenido del artículo principal */
.featured-main-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 25px;
    z-index: 2;
    color: white;
}

.featured-main-body h3 {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.featured-main-body h3 a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-main-body h3 a:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Sidebar de artículos */
.featured-sidebar-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-post-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.sidebar-post-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.sidebar-post-content {
    flex: 1;
    min-width: 0;
}

.sidebar-post-content h4 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px 0;
}

.sidebar-post-content h4 a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-post-content h4 a:hover {
    color: #e63946;
}

.card-date {
    display: block;
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 10px;
}

.read-more {
    display: inline-block;
    color: #e63946;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    padding: 4px 8px;
    border: 1px solid #e63946;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.read-more:hover {
    background: #e63946;
    color: white;
}

.sidebar-post-image {
    flex-shrink: 0;
    width: 100px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.sidebar-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* ==================== ACTUALIDAD SECTION ==================== */
.actualidad-section {
    padding: 30px 0;
    background: #f8f9fa;
}

.actualidad-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.actualidad-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Artículo principal */
.actualidad-main {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.actualidad-main-image {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.actualidad-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.actualidad-main:hover .actualidad-main-image img {
    transform: scale(1.03);
}

.actualidad-main-content {
    padding: 16px;
}

.actualidad-main-label {
    display: inline-block;
    background: #e63946;
    color: white;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 10px;
}

.actualidad-main-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px;
}

.actualidad-main-title a {
    color: #1a1a2e;
    text-decoration: none;
}

.actualidad-main-title a:hover {
    color: #e63946;
}

.actualidad-main-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.actualidad-main-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.actualidad-main-date {
    color: #999;
}

.actualidad-main-link {
    color: #e63946;
    text-decoration: none;
    font-weight: 500;
}

/* Artículos secundarios */
.actualidad-secondary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.actualidad-text-article {
    background: white;
    padding: 16px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.actualidad-text-category {
    display: inline-block;
    color: #e63946;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.actualidad-text-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px;
}

.actualidad-text-title a {
    color: #1a1a2e;
    text-decoration: none;
}

.actualidad-text-title a:hover {
    color: #e63946;
}

.actualidad-text-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.actualidad-text-meta {
    font-size: 11px;
    color: #999;
}

/* Sidebar Actualidad */
.actualidad-sidebar {
    display: none;
}


/* ==================== SECCIÓN DEPORTES - DISEÑO FIGMA ==================== */
.section-deportes {
    background: #fff;
}

/* Layout principal mejorado */
.deportes-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* Contenedor principal de contenido */
.deportes-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Artículo Destacado - Estilo Premium */
.deportes-featured {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    border: 1px solid rgba(230, 57, 70, 0.1);
}

.deportes-featured:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(230, 57, 70, 0.15);
    border-color: rgba(230, 57, 70, 0.3);
}

.deportes-featured-image {
    display: block;
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Relación 16:9 */
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.deportes-featured-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.deportes-featured:hover .deportes-featured-image img {
    transform: scale(1.08);
}

/* Overlay elegante */
.deportes-featured-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 40%,
        rgba(0, 0, 0, 0.1) 60%,
        rgba(0, 0, 0, 0.3) 80%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
}

/* Contenido sobre la imagen */
.deportes-featured-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    z-index: 2;
    color: white;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.featured-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e63946 0%, #ff6b6b 100%);
    color: white;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.deportes-featured-body h3 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 16px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.3px;
}

.deportes-featured-body h3 a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    background: linear-gradient(120deg, transparent 0%, transparent 50%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.2) 100%);
    background-size: 220% 100%;
    background-position: 100% 0;
    transition: all 0.4s ease;
    padding: 2px 0;
}

.deportes-featured-body h3 a:hover {
    color: #fff;
    background-position: 0 0;
}

.featured-meta {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.featured-meta .separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
}

.featured-excerpt {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
    max-width: 600px;
}

/* GRID DE 3 ARTÍCULOS - ESTILO FIGMA ELEGANTE */
.deportes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 10px;
}

/* Cards pequeñas elegantes */
.deportes-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(230, 57, 70, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.deportes-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(230, 57, 70, 0.12);
    border-color: rgba(230, 57, 70, 0.2);
}

/* Contenedor de imagen más pequeña y cuadrada */
.deportes-card-image {
    display: block;
    position: relative;
    width: 100%;
    padding-bottom: 60%; /* Relación más cuadrada */
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.deportes-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.deportes-card:hover .deportes-card-image img {
    transform: scale(1.1);
}

/* Badge pequeño sobre la imagen */
.deportes-card-image::before {
    content: 'DEPORTES';
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #e63946 0%, #ff6b6b 100%);
    color: white;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.3);
}

/* Cuerpo de la card más compacto */
.deportes-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Título más pequeño y elegante */
.deportes-card-body h4 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px 0;
    color: #1a1a2e;
    flex: 1;
}

.deportes-card-body h4 a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.deportes-card-body h4 a:hover {
    color: #e63946;
    background: linear-gradient(120deg, transparent 0%, transparent 50%, rgba(230, 57, 70, 0.05) 50%, rgba(230, 57, 70, 0.1) 100%);
    background-size: 220% 100%;
    background-position: 100% 0;
    transition: all 0.4s ease;
}

/* Meta info compacta */
.card-meta {
    font-size: 11px;
    color: #6c757d;
    margin: 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.card-meta .author {
    color: #e63946;
    font-weight: 600;
}

/* Banner vertical estilo Figma */
.deportes-banner {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    position: sticky;
    top: 120px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.banner-sticky {
    position: sticky;
    top: 120px;
}

.deportes-banner .ad-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 16px;
    background: rgba(0, 0, 0, 0.03);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px dashed rgba(0, 0, 0, 0.1);
}

.deportes-banner img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.deportes-banner a:hover img {
    transform: scale(1.02);
}

/* ==================== MEDIA QUERIES - RESPONSIVE FIGMA ==================== */

@media (min-width: 768px) {
    .deportes-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .deportes-card {
        min-height: 280px;
    }
    
    .deportes-card-body h4 {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }
    
    .deportes-featured-body h3 {
        font-size: 26px;
    }
    
    .featured-excerpt {
        -webkit-line-clamp: 2;
        max-width: 70%;
    }
}

@media (min-width: 1024px) {
    .deportes-layout {
        grid-template-columns: 1fr 280px;
        gap: 40px;
    }
    
    .deportes-content {
        gap: 30px;
    }
    
    .deportes-featured-body {
        padding: 35px 40px;
    }
    
    .deportes-featured-body h3 {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .featured-badge {
        font-size: 12px;
        padding: 10px 20px;
    }
    
    .deportes-card {
        min-height: 260px;
    }
    
    .deportes-card-body h4 {
        font-size: 14px;
    }
    
    .deportes-banner {
        padding: 30px;
    }
}

@media (min-width: 1200px) {
    .deportes-layout {
        grid-template-columns: 1fr 320px;
        gap: 50px;
    }
    
    .deportes-featured-body {
        padding: 40px 45px;
    }
    
    .deportes-featured-body h3 {
        font-size: 32px;
    }
    
    .featured-excerpt {
        font-size: 15px;
        -webkit-line-clamp: 3;
        max-width: 75%;
    }
    
    .deportes-grid {
        gap: 25px;
    }
    
    .deportes-card {
        min-height: 280px;
    }
    
    .deportes-card-body h4 {
        font-size: 15px;
    }
}

/* Efectos de animación suave */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.deportes-card {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.deportes-card:nth-child(1) { animation-delay: 0.1s; }
.deportes-card:nth-child(2) { animation-delay: 0.2s; }
.deportes-card:nth-child(3) { animation-delay: 0.3s; }


/* ==================== SECCIÓN OPINIÓN - SIMPLE Y RESPONSIVE ==================== */
.opinion-section {
    padding: 30px 0;
    background: #fff;
}

.opinion-row {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0 15px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Oculta scrollbar Firefox */
}

/* Oculta scrollbar en Chrome/Safari */
.opinion-row::-webkit-scrollbar {
    display: none;
}

/* Items mínimos y simples */
.opinion-item {
    flex: 0 0 auto;
    width: 200px; /* Más pequeño para móvil */
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.2s ease;
    border-left: 3px solid #e63946;
}

.opinion-item:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

/* Avatar simple y pequeño */
.opinion-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 10px;
    border: 2px solid #e63946;
}

.opinion-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contenido mínimo */
.opinion-content {
    text-align: center;
}

.opinion-author {
    display: block;
    font-size: 11px;
    color: #e63946;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.opinion-title {
    font-size: 12px;
    font-weight: 500;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.opinion-item:hover .opinion-title {
    color: #e63946;
}

/* ==================== MEDIA QUERIES ==================== */

@media (min-width: 480px) {
    .opinion-item {
        width: 220px;
    }
    
    .opinion-avatar {
        width: 55px;
        height: 55px;
    }
    
    .opinion-title {
        font-size: 13px;
    }
}

@media (min-width: 768px) {
    .opinion-section {
        padding: 40px 0;
    }
    
    .opinion-row {
        gap: 20px;
        padding: 15px 0;
        justify-content: center; /* Centra los items */
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .opinion-item {
        width: 180px; /* Más pequeño para que entren más */
        padding: 12px;
    }
    
    .opinion-avatar {
        width: 50px;
        height: 50px;
    }
    
    .opinion-author {
        font-size: 10px;
    }
    
    .opinion-title {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
}

@media (min-width: 1024px) {
    .opinion-row {
        gap: 25px;
        overflow-x: visible; /* Sin scroll en desktop */
        justify-content: space-between;
        flex-wrap: nowrap;
    }
    
    .opinion-item {
        width: 200px;
        padding: 15px;
        flex: 1;
        max-width: 220px;
    }
    
    .opinion-avatar {
        width: 60px;
        height: 60px;
    }
    
    .opinion-author {
        font-size: 11px;
    }
    
    .opinion-title {
        font-size: 13px;
    }
}

@media (min-width: 1200px) {
    .opinion-item {
        max-width: 250px;
    }
    
    .opinion-avatar {
        width: 65px;
        height: 65px;
    }
    
    .opinion-title {
        font-size: 14px;
    }
}



/* ==================== SECCIÓN VIDEOS - DISEÑO NUEVO ==================== */
.videos-section {
    padding: 40px 0;
    background: #fff;
}

/* Layout principal */
.videos-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* Video Principal - FONDO NEGRO COMPLETO */
.video-main-container {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.video-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.video-responsive {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-responsive iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Placeholder cuando no hay video */
.video-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.video-placeholder-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.video-placeholder-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ff0000;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.video-placeholder-badge svg {
    width: 20px;
    height: 20px;
}

/* Información del video principal - FONDO NEGRO PARA TODO */
.video-main-info {
    padding: 15px 25px;
    background: #000;
}

.video-main-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.video-main-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

/* METADATA Y ACCIONES EN LA MISMA LÍNEA */
.video-main-meta-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.video-main-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}

.video-main-date {
    color: #ccc;
}

.video-main-type {
    color: #ff0000;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    padding: 3px 10px;
    border: 1px solid #ff0000;
    border-radius: 4px;
    background: rgba(255, 0, 0, 0.1);
}

/* Acciones del video principal - EN LA MISMA LÍNEA DEL TÍTULO */
.video-main-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.video-main-youtube,
.video-main-article {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid;
}

.video-main-youtube {
    background: transparent;
    color: #ff0000;
    border-color: #ff0000;
}

.video-main-youtube:hover {
    background: #ff0000;
    color: white;
    transform: translateY(-1px);
}

.video-main-article {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.video-main-article:hover {
    background: #fff;
    color: #000;
    transform: translateY(-1px);
}

.video-main-youtube svg,
.video-main-article svg {
    width: 14px;
    height: 14px;
}

/* Playlist Container */
.video-playlist-container {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.video-playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #1a1a2e;
    color: white;
}

.playlist-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.playlist-count {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

/* Playlist Items */
.video-playlist-list {
    max-height: 500px;
    overflow-y: auto;
}

.video-playlist-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 15px;
}

.video-playlist-item:hover {
    background: #f8f9fa;
}

.video-playlist-item.active {
    background: rgba(230, 57, 70, 0.05);
    border-left: 3px solid #e63946;
}

/* Número del item */
.playlist-item-number {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 24px;
}

.item-number {
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.video-playlist-item.active .item-number {
    color: #e63946;
}

.item-playing {
    display: none;
    margin-top: 2px;
}

.video-playlist-item.active .item-playing {
    display: block;
    color: #e63946;
}

.item-playing svg {
    width: 14px;
    height: 14px;
}

/* Contenido del item */
.playlist-item-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.playlist-item-thumb {
    position: relative;
    width: 100px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.playlist-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: flex-end;
    padding: 8px;
}

/* Badges de la playlist */
.playlist-item-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 3px;
    color: white;
}

.playlist-item-youtube {
    background: #ff0000;
}

.playlist-item-article {
    background: #6c757d;
}

.playlist-item-badge svg {
    width: 10px;
    height: 10px;
}

/* Información del item */
.playlist-item-info {
    flex: 1;
    min-width: 0;
}

.playlist-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 6px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.playlist-item-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 12px;
}

.playlist-item-date {
    color: #666;
}

.playlist-item-source {
    color: #e63946;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    padding: 2px 8px;
    border: 1px solid #e63946;
    border-radius: 3px;
}

/* Scrollbar */
.video-playlist-list::-webkit-scrollbar {
    width: 6px;
}

.video-playlist-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.video-playlist-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

/* ==================== MEDIA QUERIES ==================== */
@media (min-width: 768px) {
    .videos-layout {
        grid-template-columns: 2fr 1fr;
        gap: 30px;
    }
    
    .video-main-info {
        padding: 20px 25px;
    }
    
    .video-main-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .video-main-title {
        font-size: 20px;
        margin-right: 20px;
        flex: 1;
    }
    
    .video-main-meta-actions {
        flex-direction: row;
        align-items: center;
        gap: 20px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    .playlist-item-thumb {
        width: 120px;
        height: 80px;
    }
    
    .playlist-item-title {
        font-size: 15px;
    }
}

@media (min-width: 1024px) {
    .videos-section {
        padding: 50px 0;
    }
    
    .video-main-info {
        padding: 25px 30px;
    }
    
    .video-main-title {
        font-size: 22px;
    }
    
    .videos-layout {
        gap: 40px;
    }
    
    .video-playlist-container {
        min-width: 350px;
    }
    
    .video-main-youtube,
    .video-main-article {
        padding: 8px 18px;
        font-size: 14px;
    }
}

@media (min-width: 1200px) {
    .videos-layout {
        grid-template-columns: 3fr 1fr;
    }
    
    .video-playlist-container {
        min-width: 380px;
    }
    
    .video-main-title {
        font-size: 24px;
    }
}





/* ==================== SOCIALES / FARÁNDULA ==================== */
.sociales-section {
    padding: 30px 0;
}

.sociales-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e63946;
}

.sociales-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    text-transform: uppercase;
}

.sociales-carousel-wrapper {
    position: relative;
}

.sociales-carousel {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 10px;
}

.sociales-carousel::-webkit-scrollbar {
    display: none;
}

.social-card {
    flex: 0 0 calc(50% - 8px);
    scroll-snap-align: start;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.social-card a {
    text-decoration: none;
}

.social-card-thumb {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.social-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.social-card:hover .social-card-thumb img {
    transform: scale(1.05);
}

.social-card-info {
    padding: 12px;
}

.social-card-title {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.carousel-btn:hover {
    background: #e63946;
    color: white;
}

/* ==================== BANNERS ==================== */
.banner-section {
    padding: 20px 0;
}

.banner-full {
    text-align: center;
}

.banner-full .ad-label {
    display: block;
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.banner-full img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.banner-hero-top {
    padding: 15px 0;
    background: #f8f9fa;
}

.banner-wrapper {
    text-align: center;
}

/* ==================== MEDIA QUERIES UNIFICADAS ==================== */

@media (min-width: 768px) {
    .home-hero {
        padding: 30px 0;
    }
    
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
    
    .judicial-box {
        order: 1;
        grid-row: span 2;
    }
    
    .main-hero {
        order: 2;
    }
    
    .tabs-box {
        order: 3;
    }
    
    .hero-text h1 {
        font-size: 24px;
    }
    
    .hero-text {
        padding: 20px;
    }
    
    /* Actualidad */
    .actualidad-main {
        flex-direction: row;
    }
    
    .actualidad-main-image {
        width: 50%;
        aspect-ratio: auto;
    }
    
    .actualidad-main-content {
        width: 50%;
        padding: 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .actualidad-main-title {
        font-size: 20px;
    }
    
    .actualidad-secondary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Política */
    .featured-layout {
        grid-template-columns: 2fr 1fr;
        gap: 30px;
    }
    
    .featured-main-body {
        padding: 35px 30px;
    }
    
    .featured-main-body h3 {
        font-size: 24px;
    }
    
    /* Columnistas */
    .columnistas-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .columnista-avatar {
        width: 80px;
        height: 80px;
    }
    
    /* Sociales */
    .social-card {
        flex: 0 0 calc(33.333% - 10px);
    }
}

@media (min-width: 1024px) {
    .home-hero {
        padding: 40px 0;
    }
    
    .hero-grid {
        grid-template-columns: 250px 1fr 280px;
        gap: 30px;
        min-height: 350px;
    }
    
    .judicial-box {
        order: 1;
        grid-row: auto;
    }
    
    .main-hero {
        order: 2;
    }
    
    .tabs-box {
        order: 3;
    }
    
    .hero-text h1 {
        font-size: 28px;
    }
    
    .hero-text p {
        -webkit-line-clamp: 4;
    }
    
    /* Política */
    .featured-layout {
        gap: 40px;
    }
    
    .featured-main-post {
        min-height: 400px;
    }
    
    .featured-main-body {
        padding: 40px 35px;
    }
    
    .featured-main-body h3 {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .sidebar-post-content h4 {
        font-size: 16px;
    }
    
    .sidebar-post-image {
        width: 120px;
        height: 90px;
    }
    
    /* Actualidad */
    .actualidad-container {
        grid-template-columns: 1fr 280px;
    }
    
    .actualidad-sidebar {
        display: block;
    }
    
    .actualidad-secondary {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .sidebar-header h3 {
        font-size: 14px;
        font-weight: 700;
        text-transform: uppercase;
        color: #1a1a2e;
        margin: 0 0 16px;
        padding-bottom: 10px;
        border-bottom: 2px solid #e63946;
    }
    
    .sidebar-widget {
        background: white;
        padding: 20px;
        border-radius: 12px;
        margin-bottom: 20px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    }
    
    .sidebar-newsletter h4 {
        font-size: 14px;
        font-weight: 600;
        margin: 0 0 10px;
    }
    
    .sidebar-newsletter p {
        font-size: 13px;
        color: #666;
        margin: 0 0 12px;
    }
    
    .sidebar-form {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .sidebar-input {
        padding: 10px 12px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 14px;
    }
    
    .sidebar-button {
        padding: 10px 16px;
        background: #e63946;
        color: white;
        border: none;
        border-radius: 6px;
        font-weight: 600;
        cursor: pointer;
    }
    
    /* Columnistas */
    .columnistas-grid-5 {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .columnista-avatar {
        width: 90px;
        height: 90px;
    }
    
    .columnista-titulo {
        font-size: 15px;
    }
    
    /* Videos */
    .videos-playlist {
        grid-template-columns: 1fr 350px;
    }
    
    .video-playlist-list {
        max-height: none;
    }
    
    /* Sociales */
    .social-card {
        flex: 0 0 calc(20% - 12px);
    }
    
    .social-card-title {
        font-size: 14px;
    }
}

@media (min-width: 1200px) {
    .hero-grid {
        grid-template-columns: 280px 1fr 300px;
    }
    
    .hero-text h1 {
        font-size: 32px;
    }
    
    .judicial-info h3 {
        font-size: 15px;
    }
    
    .tab-text h4 {
        font-size: 15px;
    }
    
    .actualidad-container {
        grid-template-columns: 1fr 320px;
    }
    
    .actualidad-main-title {
        font-size: 24px;
    }
    
    /* Política */
    .featured-main-body h3 {
        font-size: 32px;
    }
}

/* ==================== UTILITIES ==================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #e63946;
    color: white;
    padding: 8px 16px;
    z-index: 9999;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}