/* Variables CSS modernas */
:root {
    /* Paleta de colores mejorada */
    --color-amarillo: #ffeb3b;
    --color-rojo: #c81e1e;
    --color-rojo-hover: #a01818;
    --color-negro: #0a0a0a;
    --color-negro-suave: #1a1a1a;
    --color-blanco: #ffffff;
    --color-gris: #f8f9fa;
    --color-gris-oscuro: #6c757d;
    --color-gris-claro: #e9ecef;
    
    /* Sombras modernas */
    --sombra-suave: 0 2px 20px rgba(0, 0, 0, 0.08);
    --sombra-media: 0 4px 30px rgba(0, 0, 0, 0.12);
    --sombra-fuerte: 0 8px 40px rgba(0, 0, 0, 0.16);
    
    /* Gradientes */
    --gradiente-rojo: linear-gradient(135deg, #c81e1e 0%, #a01818 100%);
    --gradiente-header: linear-gradient(135deg, #c81e1e 0%, #d63031 50%, #c81e1e 100%);
    --gradiente-nav: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    
    /* Transiciones */
    --transicion-suave: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transicion-rapida: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estilo general del cuerpo */
body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--color-negro);
    overflow-x: hidden;
}

/* ========================================
   HEADER MODERNO Y ELEGANTE
======================================== */
.site-header {
    background: linear-gradient(135deg, 
        rgba(200, 30, 30, 0.95) 0%, 
        rgba(231, 76, 60, 0.95) 50%, 
        rgba(200, 30, 30, 0.95) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 16px 0;
    position: relative;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 235, 59, 0.3);
    overflow: hidden;
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    animation: shimmerHeader 8s ease-in-out infinite;
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 235, 59, 0.5),
        transparent
    );
}

@keyframes shimmerHeader {
    0% { left: -100%; }
    100% { left: 100%; }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 2;
}

/* Logo Section */
.logo-section {
    flex-shrink: 0;
}

.logo-text {
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-brand {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #ffeb3b;
    text-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.5),
        0 0 24px rgba(255, 235, 59, 0.4),
        2px 2px 0 #c81e1e;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
}

.logo-text:hover .logo-brand {
    transform: scale(1.05) translateY(-2px);
    text-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.6),
        0 0 32px rgba(255, 235, 59, 0.6),
        3px 3px 0 #a01818;
}

.logo-img {
    width: auto;
    height: auto;
    object-fit: contain;
    max-height: 65px;
    filter: 
        drop-shadow(0 4px 16px rgba(0, 0, 0, 0.3))
        drop-shadow(0 0 24px rgba(255, 235, 59, 0.2));
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-img:hover {
    transform: scale(1.05) translateY(-2px);
    filter: 
        drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4))
        drop-shadow(0 0 32px rgba(255, 235, 59, 0.4));
}

/* Header Info Modern Container */
.header-info-modern {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ========================================
   DATETIME CARD (Fecha y Hora Moderna)
======================================== */
.datetime-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.datetime-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.datetime-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}


/* ========================================
   SOCIAL MODERN (Redes Sociales Elegantes)
======================================== */
.social-modern {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.1rem;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.social-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.social-btn:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.25),
        0 0 0 4px rgba(255, 255, 255, 0.1);
}

.social-btn:hover::before {
    opacity: 1;
}

/* Colores específicos por red social */
.social-btn.facebook:hover {
    background: linear-gradient(135deg, #1877f2 0%, #42a5f5 100%);
    box-shadow: 
        0 8px 24px rgba(24, 119, 242, 0.4),
        0 0 0 4px rgba(24, 119, 242, 0.2);
}

.social-btn.twitter:hover {
    background: linear-gradient(135deg, #1da1f2 0%, #42a5f5 100%);
    box-shadow: 
        0 8px 24px rgba(29, 161, 242, 0.4),
        0 0 0 4px rgba(29, 161, 242, 0.2);
}

.social-btn.instagram:hover {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    box-shadow: 
        0 8px 24px rgba(228, 64, 95, 0.4),
        0 0 0 4px rgba(228, 64, 95, 0.2);
}

.social-btn.youtube:hover {
    background: linear-gradient(135deg, #ff0000 0%, #ff4444 100%);
    box-shadow: 
        0 8px 24px rgba(255, 0, 0, 0.4),
        0 0 0 4px rgba(255, 0, 0, 0.2);
}

.social-btn i {
    position: relative;
    z-index: 1;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-btn:hover i {
    transform: scale(1.15) rotate(5deg);
}

/* Ticker de noticias de última hora */
.breaking-news-ticker {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: #ffffff;
    padding: 12px 0;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid #ffeb3b;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.ticker-label {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(135deg, #c81e1e 0%, #e74c3c 100%);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 3;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    border-right: 2px solid #ffeb3b;
}

.breaking-icon {
    font-size: 1.2rem;
    animation: pulseRed 1.5s ease-in-out infinite;
}

.breaking-text {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.ticker-content {
    margin-left: 200px;
    padding: 12px 20px;
    overflow: hidden;
    position: relative;
}

.ticker-item {
    white-space: nowrap;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    animation: scrollTicker 30s linear infinite;
    display: inline-block;
    padding-left: 100%;
}

@keyframes pulseRed {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes scrollTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Animaciones avanzadas removidas: el sitio conserva microinteracciones (hover/scale) pero no se aplican animaciones en cascada. */

/* Tarjetas de noticias modernas */
.news-card {
  position: relative;
  overflow: hidden;
    border-radius: 16px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--sombra-suave);
  transform: translateY(0);
    transition: var(--transicion-suave);
  opacity: 1;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-fuerte);
    background: rgba(255, 255, 255, 0.98);
}

.news-card img {
  width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transicion-suave);
    border-radius: 12px 12px 0 0;
}

.news-card:hover img {
    transform: scale(1.08);
}

/* Tarjeta principal con diseño especial */
.news-card.principal {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    border: 2px solid rgba(200, 30, 30, 0.1);
}

.news-card.principal img {
    height: 300px;
}

/* Animaciones profesionales */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
  transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

/* Clases de animación */
.animate-fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-slide-in {
    animation: slideInRight 0.5s ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Animación simple para tarjetas */
.news-card {
    opacity: 1;
    transform: translateY(0);
}

/* Estados de carga */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--color-gris-oscuro);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(200, 30, 30, 0.1);
    border-left: 4px solid var(--color-rojo);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-state p {
    margin: 0;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Efecto shimmer para loading */
.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* Microtransiciones mejoradas */
a, button, .nav-link {
    transition: var(--transicion-rapida);
}

/* Respetar preferencia de reducir movimiento */
@media (prefers-reduced-motion: reduce) {
    .news-card, a, button, .nav-link, .animate-fade-in, .animate-slide-in, .animate-pulse {
        animation: none !important;
        transition: none !important;
    }
    .news-card {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Tags de categoría modernos */
.news-card .category-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--gradiente-rojo);
    color: var(--color-blanco);
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 3;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(200, 30, 30, 0.3);
    backdrop-filter: blur(10px);
    letter-spacing: 0.5px;
}

/* Contenido de tarjetas mejorado */
.news-card .news-content {
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.news-card .news-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    margin: 0 0 12px;
    line-height: 1.3;
    font-weight: 600;
}

.news-card .news-title a {
    color: var(--color-negro);
    text-decoration: none;
    transition: var(--transicion-rapida);
    display: block;
}

.news-card .news-title a:hover {
    color: var(--color-rojo);
    text-shadow: 0 2px 4px rgba(200, 30, 30, 0.1);
}

.news-card .timestamp {
    font-size: 0.8rem;
    color: var(--color-gris-oscuro);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-card .timestamp::before {
    content: '🕒';
    font-size: 0.7rem;
}

/* Resumen de noticias */
.news-card .news-summary {
    color: var(--color-gris-oscuro);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Tarjetas de video */
.video-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--sombra-suave);
    transition: var(--transicion-suave);
    opacity: 1;
    transform: translateY(0);
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-fuerte);
    background: rgba(255, 255, 255, 0.98);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transicion-suave);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.08);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transicion-suave);
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.play-button {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: var(--transicion-suave);
}

.video-card:hover .play-button {
    transform: scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.video-content {
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.video-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    margin: 0 0 12px;
    line-height: 1.3;
    font-weight: 600;
}

.video-title a {
    color: var(--color-negro);
    text-decoration: none;
    transition: var(--transicion-rapida);
    display: block;
}

.video-title a:hover {
    color: var(--color-rojo);
    text-shadow: 0 2px 4px rgba(200, 30, 30, 0.1);
}

.video-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

.video-views {
    font-size: 0.85rem;
    color: var(--color-gris-oscuro);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}


/* Modal de noticia completa */
.news-detail {
    max-width: 100%;
}

.news-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--color-gris-claro);
}

.news-category {
    background: var(--gradiente-rojo);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.news-date, .news-author {
    font-size: 0.9rem;
    color: var(--color-gris-oscuro);
    font-weight: 500;
}

.news-detail-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: var(--sombra-media);
}

.news-detail-content {
    line-height: 1.8;
}

.news-detail-summary {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-negro);
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(200, 30, 30, 0.05);
    border-left: 4px solid var(--color-rojo);
    border-radius: 8px;
}

.news-detail-text {
    font-size: 1rem;
    color: var(--color-negro);
    text-align: justify;
}

.news-detail-text br {
    margin-bottom: 12px;
}

/* Cursor pointer para tarjetas clickeables */
.news-card {
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-fuerte);
    background: rgba(255, 255, 255, 0.98);
}

/* Navegación moderna */
.main-nav {
    background: var(--gradiente-nav);
    backdrop-filter: blur(20px);
    box-shadow: var(--sombra-media);
    position: relative;
}

.main-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.main-nav .nav-link {
    color: var(--color-blanco);
    text-transform: uppercase;
    font-weight: 600;
    padding: 16px 20px;
    transition: var(--transicion-suave);
    position: relative;
    border-radius: 8px;
    margin: 0 4px;
    letter-spacing: 0.5px;
}

.main-nav .nav-link:hover {
    background: rgba(200, 30, 30, 0.1);
    color: var(--color-amarillo);
    transform: translateY(-2px);
}

.main-nav .nav-link.active {
    background: var(--gradiente-rojo);
    color: var(--color-blanco);
    box-shadow: 0 4px 12px rgba(200, 30, 30, 0.3);
}

.main-nav .nav-link.active::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -8px;
    width: 60%;
    height: 3px;
    background: var(--color-amarillo);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(255, 235, 59, 0.4);
}

/* Focus visible mejorado */
.main-nav .nav-link:focus {
    outline: 2px solid var(--color-amarillo);
    outline-offset: 2px;
    background: rgba(255, 235, 59, 0.1);
}

/* Navbar responsive mejorado */
.navbar-toggler {
    border: none;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px var(--color-amarillo);
}

/* Barra lateral moderna */
.sidebar-widget {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: var(--sombra-suave);
    transition: var(--transicion-suave);
}

.sidebar-widget:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra-media);
}

.widget-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    text-transform: uppercase;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid transparent;
    background: var(--gradiente-rojo);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradiente-rojo);
    border-radius: 2px;
}

/* "Lo más visto" mejorado */
#lo-mas-visto-container li {
    margin-bottom: 8px;
}

#lo-mas-visto-container li a {
    color: var(--color-negro);
    font-weight: 600;
    text-decoration: none;
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
    transition: var(--transicion-suave);
    background: rgba(248, 249, 250, 0.5);
    border-left: 4px solid transparent;
}

#lo-mas-visto-container li a:hover {
    color: var(--color-rojo);
    background: rgba(200, 30, 30, 0.05);
    border-left-color: var(--color-rojo);
    transform: translateX(4px);
}

#lo-mas-visto-container li a::before {
    content: '🔥';
    margin-right: 8px;
    font-size: 0.9rem;
}

/* Opinión mejorada */
#opinion-container .opinion-card {
    background: rgba(248, 249, 250, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border-left: 4px solid var(--color-rojo);
    transition: var(--transicion-suave);
}

#opinion-container .opinion-card:hover {
    background: rgba(200, 30, 30, 0.05);
    transform: translateX(4px);
}

#opinion-container .opinion-card:last-child {
    margin-bottom: 0;
}

.opinion-title {
    font-weight: 700;
    color: var(--color-negro);
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.opinion-title::before {
    content: '"';
    color: var(--color-rojo);
    font-size: 1.2rem;
}

.opinion-title::after {
    content: '"';
    color: var(--color-rojo);
    font-size: 1.2rem;
}

.opinion-author {
    font-size: 0.85rem;
    color: var(--color-rojo);
    font-style: italic;
    font-weight: 600;
    margin-top: 8px;
    display: block;
}


/* Galería moderna */
.gallery-item {
    overflow: hidden;
    position: relative;
    cursor: pointer;
    margin-bottom: 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--sombra-suave);
    transition: var(--transicion-suave);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-fuerte);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transicion-suave);
    border-radius: 12px 12px 0 0;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(200, 30, 30, 0.95) 0%, rgba(160, 24, 24, 0.95) 100%);
    color: var(--color-blanco);
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(100%);
    transition: var(--transicion-suave);
    backdrop-filter: blur(10px);
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

/* Modal de galería mejorado */
#modalGaleria .modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#modalGaleria img {
    max-height: 70vh;
    object-fit: cover;
    border-radius: 12px;
}

/* Pie de página moderno */
.site-footer {
    background: var(--gradiente-nav);
    color: rgba(255, 255, 255, 0.8);
    padding: 40px 0;
    border-top: 3px solid var(--color-rojo);
    position: relative;
    margin-top: 60px;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.site-footer p {
    margin-bottom: 8px;
    font-weight: 500;
}

.site-footer p:first-child {
    font-size: 1.1rem;
    font-weight: 600;
}

.site-footer p:last-child {
    font-style: italic;
    opacity: 0.7;
}

/* Títulos de sección modernos */
.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 32px;
    position: relative;
    color: var(--color-negro);
    text-align: center;
}

.section-title span {
    position: relative;
    display: inline-block;
    padding: 0 20px;
}

.section-title span::before,
.section-title span::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 3px;
    background: var(--gradiente-rojo);
    border-radius: 2px;
}

.section-title span::before {
    left: -80px;
}

.section-title span::after {
    right: -80px;
}

/* Filtro de categorías mejorado */
#filtro-categoria {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(200, 30, 30, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 600;
    color: var(--color-negro);
    box-shadow: var(--sombra-suave);
    transition: var(--transicion-suave);
}

#filtro-categoria:focus {
    outline: none;
    border-color: var(--color-rojo);
    box-shadow: 0 0 0 3px rgba(200, 30, 30, 0.1);
}

/* ========================================
   BUSCADOR DE NOTICIAS
======================================== */
.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 50px;
    padding: 8px 20px;
    box-shadow: var(--sombra-media);
    border: 2px solid rgba(200, 30, 30, 0.1);
    transition: var(--transicion-suave);
}

.search-box:focus-within {
    border-color: var(--color-rojo);
    box-shadow: 0 4px 20px rgba(200, 30, 30, 0.2), 0 0 0 4px rgba(200, 30, 30, 0.1);
    transform: translateY(-2px);
}

.search-icon {
    color: var(--color-rojo);
    font-size: 1.2rem;
    margin-right: 12px;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    padding: 12px 8px;
    outline: none;
    color: var(--color-negro);
    font-weight: 500;
}

.search-input::placeholder {
    color: var(--color-gris-oscuro);
    opacity: 0.6;
}

.search-clear {
    background: rgba(200, 30, 30, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transicion-rapida);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-rojo);
}

.search-clear:hover {
    background: var(--color-rojo);
    color: white;
    transform: scale(1.1);
}

.search-results-info {
    text-align: center;
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--color-gris-oscuro);
    font-weight: 500;
}

.search-results-info.has-results {
    color: var(--color-rojo);
    font-weight: 600;
}

.search-highlight {
    background: rgba(255, 235, 59, 0.4);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* ========================================
   BOTONES DE COMPARTIR MEJORADOS
======================================== */
.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0;
    padding: 16px;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 12px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transicion-suave);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.share-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transicion-suave);
}

.share-btn:hover::before {
    left: 100%;
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.share-btn i {
    font-size: 1.1rem;
}

/* WhatsApp */
.share-btn.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
}

.share-btn.whatsapp:hover {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Facebook */
.share-btn.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #42a5f5 100%);
    color: white;
}

.share-btn.facebook:hover {
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
}

/* Twitter */
.share-btn.twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #42a5f5 100%);
    color: white;
}

.share-btn.twitter:hover {
    box-shadow: 0 6px 20px rgba(29, 161, 242, 0.4);
}

/* Telegram */
.share-btn.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #229ED9 100%);
    color: white;
}

.share-btn.telegram:hover {
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}

/* Email */
.share-btn.email {
    background: linear-gradient(135deg, #EA4335 0%, #F57C00 100%);
    color: white;
}

.share-btn.email:hover {
    box-shadow: 0 6px 20px rgba(234, 67, 53, 0.4);
}

/* Copy Link */
.share-btn.copy {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.share-btn.copy:hover {
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.share-btn.copy.copied {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.share-btn.copy.copied::after {
    content: '✓';
    margin-left: 8px;
    font-weight: bold;
}

/* ========================================
   LOADING SKELETONS
======================================== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--sombra-suave);
}

.skeleton-image {
    width: 100%;
    height: 200px;
    margin-bottom: 16px;
}

.skeleton-title {
    width: 80%;
    height: 24px;
    margin-bottom: 12px;
}

.skeleton-text {
    width: 100%;
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-text.short {
    width: 60%;
}

/* ========================================
   ANIMACIONES MEJORADAS
======================================== */

/* Fade In con rebote */
@keyframes fadeInBounce {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    60% {
        opacity: 1;
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Slide In desde la izquierda */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Zoom In */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Shake suave (para errores) */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Bounce suave */
@keyframes bounceSoft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Clases de animación */
.animate-bounce-in {
    animation: fadeInBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-slide-left {
    animation: slideInLeft 0.5s ease-out;
}

.animate-zoom {
    animation: zoomIn 0.4s ease-out;
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

/* ========================================
   MENÚ MÓVIL OFF-CANVAS MEJORADO
======================================== */

/* Overlay cuando el menú está abierto */
.navbar-collapse {
    transition: var(--transicion-suave);
}

@media (max-width: 991px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 9999;
        padding: 80px 20px 20px;
        overflow-y: auto;
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }
    
    .navbar-collapse.show {
        right: 0;
    }
    
    .navbar-collapse.collapsing {
        right: -100%;
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 8px;
    }
    
    .main-nav .nav-link {
        padding: 16px 20px;
        border-radius: 12px;
        margin: 0;
        border-left: 4px solid transparent;
        transition: var(--transicion-suave);
    }
    
    .main-nav .nav-link:hover,
    .main-nav .nav-link.active {
        background: rgba(200, 30, 30, 0.15);
        border-left-color: var(--color-amarillo);
        transform: translateX(8px);
    }
    
    .main-nav .nav-link.active::after {
        display: none;
    }
}

/* Overlay oscuro cuando menú está abierto */
.navbar-collapse.show::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Botón hamburguesa mejorado */
.navbar-toggler {
    position: relative;
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0;
    z-index: 10000;
    transition: var(--transicion-suave);
}

.navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255, 235, 59, 0.5);
    outline: none;
}

.navbar-toggler-icon {
    position: relative;
    width: 24px;
    height: 2px;
    background: white;
    display: block;
    transition: var(--transicion-suave);
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: white;
    left: 0;
    transition: var(--transicion-suave);
}

.navbar-toggler-icon::before {
    top: -8px;
}

.navbar-toggler-icon::after {
    top: 8px;
}

/* Animación X cuando está abierto */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Botón cerrar en móvil */
.navbar-collapse .btn-close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transicion-rapida);
}

@media (max-width: 991px) {
    .navbar-collapse .btn-close-menu {
        display: flex;
    }
}

.btn-close-menu:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* ========================================
   MEJORAS DE MODAL NOTICIA
======================================== */
.modal-content {
    border-radius: 16px;
    border: none;
    overflow: hidden;
}

.modal-header {
    background: var(--gradiente-rojo);
    color: white;
    border: none;
    padding: 20px 24px;
}

.modal-header .modal-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: var(--transicion-rapida);
}

.modal-header .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.modal-footer {
    border: none;
    background: rgba(248, 249, 250, 0.5);
    padding: 16px 24px;
}

/* Animación del modal */
.modal.fade .modal-dialog {
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.modal.show .modal-dialog {
    animation: modalBounce 0.5s ease-out;
}

@keyframes modalBounce {
    0% {
        transform: scale(0.7) translateY(-50px);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* ========================================
   MODO OSCURO (preparado para siguiente fase)
======================================== */
.dark-mode-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradiente-rojo);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(200, 30, 30, 0.4);
    z-index: 1000;
    transition: var(--transicion-suave);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 30px rgba(200, 30, 30, 0.6);
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(200, 30, 30, 0.9);
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: var(--transicion-suave);
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(200, 30, 30, 0.5);
}

/* ========================================
   RESPONSIVE HEADER MODERNO
======================================== */
@media (max-width: 991px) {
    .header-content {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
    
    .header-info-modern {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .datetime-card {
        flex: 1 1 100%;
        justify-content: center;
    }
    
    .social-modern {
        flex: 1 1 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .site-header {
        padding: 12px 0;
    }
    
    .datetime-card {
        padding: 10px 20px;
    }
    
    .datetime-text {
        font-size: 0.75rem;
    }
    
    .social-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

/* Responsive mejorado */
@media (max-width: 768px) {
    .logo-img {
        max-height: 50px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-title span::before,
    .section-title span::after {
        width: 30px;
    }
    
    .section-title span::before {
        left: -50px;
    }
    
    .section-title span::after {
        right: -50px;
    }
    
    .news-card {
        margin-bottom: 20px;
    }
    
    .news-card .news-content {
        padding: 16px;
    }
    
    .news-card .news-title {
        font-size: 1.1rem;
    }
    
    .sidebar-widget {
        padding: 20px;
        margin-bottom: 24px;
    }
    
    .main-nav .nav-link {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .gallery-item img {
        height: 150px;
    }
    
    .video-thumbnail {
        height: 160px;
    }
    
    .video-title {
        font-size: 1.1rem;
    }
    
    /* Ticker responsive */
    .ticker-label {
        padding: 8px 12px;
        width: 120px;
    }
    
    .breaking-text {
        font-size: 0.8rem;
    }
    
    .ticker-content {
        margin-left: 120px;
        padding: 8px 12px;
    }
    
    .ticker-item {
        font-size: 0.85rem;
    }
    
    .fecha-hora-container {
        padding: 8px 16px;
        gap: 12px;
        font-size: 0.85rem;
    }
    
    .social-icons-header {
        gap: 8px;
    }
    
    .social-icons-header a {
        width: 45px;
        height: 45px;
    }
    
    .social-icons-header a i {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .site-header {
        padding: 12px 0;
    }
    
    .logo-img {
        max-height: 45px;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .section-title span::before,
    .section-title span::after {
        display: none;
}

.news-card .category-tag {
        font-size: 0.7rem;
        padding: 6px 12px;
    }
    
    .main-nav .nav-link {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    
    .social-icons-header {
        gap: 6px;
    }
    
    .social-icons-header a {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }
    
    .social-icons-header a i {
        font-size: 1rem;
    }
    
    /* Ticker móvil pequeño */
    .ticker-label {
        padding: 6px 8px;
        width: 100px;
    }
    
    .breaking-text {
        font-size: 0.7rem;
    }
    
    .breaking-icon {
        font-size: 1rem;
    }
    
    .ticker-content {
        margin-left: 100px;
        padding: 6px 8px;
    }
    
    .ticker-item {
        font-size: 0.8rem;
        animation-duration: 20s;
    }
    
    .fecha-hora-container {
        padding: 6px 12px;
        gap: 8px;
        font-size: 0.8rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .video-thumbnail {
        height: 140px;
    }
    
    .video-title {
        font-size: 1rem;
    }
    
    .video-content {
        padding: 16px;
    }
    
    .news-detail-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .news-detail-image {
        height: 250px;
    }
    
    .news-detail-summary {
        font-size: 1rem;
        padding: 12px;
    }
    
    .news-detail-text {
        font-size: 0.9rem;
    }
}

/* ========================================
   ANIMACIONES DE CARGA DE IMÁGENES
======================================== */
@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmerImage {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Placeholder animado mientras carga la imagen */
img {
    animation: fadeInImage 0.6s ease-in-out forwards;
    background: linear-gradient(
        90deg,
        rgba(200, 30, 30, 0.1) 0%,
        rgba(200, 30, 30, 0.2) 50%,
        rgba(200, 30, 30, 0.1) 100%
    );
    background-size: 1000px 100%;
    background-position: 0 0;
}

img[src=""],
img:not([src]) {
    animation: shimmerImage 1.5s infinite ease-in-out;
}

.news-card img,
.video-thumbnail img,
.gallery-item img,
.news-detail-image {
    animation: fadeInImage 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.news-card img {
    opacity: 0;
}

.news-card img.loaded,
.video-thumbnail img.loaded,
.gallery-item img.loaded {
    animation: fadeInImage 0.6s ease-in-out forwards;
}