/* ============================================
   AURA MEDIA - Estilos Principales
   ============================================ */

:root {
    /* Colores principales - Paleta dinámica y vibrante */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-glow: rgba(99, 102, 241, 0.5);
    --secondary-color: #ec4899;
    --secondary-glow: rgba(236, 72, 153, 0.5);
    --accent-color: #f59e0b;
    --accent-glow: rgba(245, 158, 11, 0.5);
    --success-color: #10b981;
    --success-glow: rgba(16, 185, 129, 0.5);
    --purple-glow: rgba(139, 92, 246, 0.6);
    --cyan-glow: rgba(6, 182, 212, 0.6);
    
    /* Colores neutros */
    --dark-bg: #0a0e27;
    --dark-surface: #1a1f3a;
    --dark-text: #f1f5f9;
    --light-bg: #ffffff;
    --light-surface: #f8fafc;
    --light-text: #1e293b;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Tipografía */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Sombras 3D y luminosas */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Sombras luminosas con efectos 3D */
    --glow-primary: 0 0 20px rgba(99, 102, 241, 0.4), 0 0 40px rgba(99, 102, 241, 0.2), 0 0 60px rgba(99, 102, 241, 0.1);
    --glow-secondary: 0 0 20px rgba(236, 72, 153, 0.4), 0 0 40px rgba(236, 72, 153, 0.2);
    --glow-accent: 0 0 20px rgba(245, 158, 11, 0.4), 0 0 40px rgba(245, 158, 11, 0.2);
    --glow-purple: 0 0 30px rgba(139, 92, 246, 0.5), 0 0 60px rgba(139, 92, 246, 0.3);
    --glow-cyan: 0 0 30px rgba(6, 182, 212, 0.5), 0 0 60px rgba(6, 182, 212, 0.3);
    
    /* Sombras 3D elevadas */
    --shadow-3d-sm: 0 2px 4px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.05);
    --shadow-3d-md: 0 4px 8px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08);
    --shadow-3d-lg: 0 8px 16px rgba(0, 0, 0, 0.15), 0 16px 32px rgba(0, 0, 0, 0.1);
    --shadow-3d-xl: 0 12px 24px rgba(0, 0, 0, 0.18), 0 24px 48px rgba(0, 0, 0, 0.12);
    
    /* Transiciones */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--light-text);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ============================================
   HEADER
   ============================================ */

.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, #7c3aed 100%);
    box-shadow: 
        var(--shadow-3d-lg), 
        var(--glow-primary),
        0 10px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* Efecto 3D cilíndrico */
    transform-style: preserve-3d;
    perspective: 1000px;
    position: relative;
    overflow: visible;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: 
        radial-gradient(ellipse at center top, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 30%, transparent 70%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    pointer-events: none;
    z-index: 1;
    transform: perspective(500px) rotateX(5deg);
    transform-origin: top center;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 15px;
    background: 
        linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.05) 50%, transparent 100%),
        radial-gradient(ellipse at center bottom, rgba(0, 0, 0, 0.2) 0%, transparent 70%);
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    pointer-events: none;
    z-index: 1;
    transform: perspective(500px) rotateX(-5deg);
    transform-origin: bottom center;
}

.header-content {
    position: relative;
    z-index: 2;
    transform: translateZ(0);
}

/* Efecto de profundidad adicional en el header */
.header {
    background: 
        linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 30%, #7c3aed 70%, var(--primary-dark) 100%),
        radial-gradient(ellipse at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    background-size: 100% 100%, 200% 200%, 200% 200%;
    background-position: center, 20% 50%, 80% 50%;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) 0;
    gap: var(--spacing-lg);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    color: var(--light-bg);
    transition: transform var(--transition-base);
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.logo-text {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-link {
    color: var(--light-bg);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-size-base);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 80%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--light-bg);
    border-radius: 3px;
    transition: all var(--transition-base);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    padding: var(--spacing-2xl) 0;
    margin-bottom: var(--spacing-2xl);
}

.hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.featured-article {
    background: transparent;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-3d-xl), 0 0 30px rgba(99, 102, 241, 0.2);
    transition: all var(--transition-slow);
    border: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
}

.featured-article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
    z-index: 1;
}

.featured-article:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-3d-xl), var(--glow-primary);
}

.featured-article:hover::before {
    opacity: 1;
}

.article-image-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
}

.article-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 50%, #f59e0b 100%);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.featured-article:hover .article-image {
    transform: scale(1.1);
}

.article-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.8) 100%);
    z-index: 2;
}

.article-text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    z-index: 3;
    color: white;
}

.article-meta-overlay {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
}

.article-category-overlay {
    background: rgba(99, 102, 241, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

.article-date-overlay {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.article-title-overlay {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.9);
    line-height: 1.2;
}

.article-excerpt-overlay {
    font-size: 18px;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.9);
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.95;
}

.btn-read-more-overlay {
    display: inline-block;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.95) 0%, rgba(236, 72, 153, 0.95) 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-shadow: none;
}

.btn-read-more-overlay:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, rgba(99, 102, 241, 1) 0%, rgba(236, 72, 153, 1) 100%);
}

.article-badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--accent-color);
    color: var(--light-bg);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-content {
    padding: var(--spacing-xl);
}

.article-meta {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-sm);
    color: var(--gray-500);
}

.article-category {
    background: var(--primary-color);
    color: var(--light-bg);
    padding: 0.25rem var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.article-title {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--gray-900);
}

.article-excerpt {
    font-size: var(--font-size-lg);
    color: var(--gray-600);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

.btn-read-more {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, var(--secondary-color) 100%);
    color: var(--light-bg);
    padding: var(--spacing-sm) var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-3d-md), var(--glow-primary);
    position: relative;
    overflow: hidden;
}

.btn-read-more::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: left 0.5s;
}

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

.btn-read-more:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-3d-lg), var(--glow-primary);
}

.trending-box {
    background: linear-gradient(135deg, var(--light-bg) 0%, #f8fafc 100%);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-3d-lg), 0 0 25px rgba(139, 92, 246, 0.15);
    position: sticky;
    top: 100px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(10px);
}

.trending-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--gray-900);
}

.trending-list {
    list-style: none;
}

.trending-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--gray-200);
    transition: all var(--transition-base);
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-item:hover {
    padding-left: var(--spacing-sm);
}

.trending-number {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--primary-color);
    min-width: 40px;
}

.trending-link {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    line-height: 1.5;
    transition: color var(--transition-base);
}

.trending-link:hover {
    color: var(--primary-color);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    padding: var(--spacing-2xl) 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--spacing-2xl);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    color: var(--gray-900);
}

.section-filters {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.filter-btn {
    padding: var(--spacing-xs) var(--spacing-md);
    border: 2px solid var(--gray-300);
    background: var(--light-bg);
    color: var(--gray-600);
    border-radius: var(--radius-lg);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-3d-sm);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    width: 300px;
    height: 300px;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--light-bg);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-3d-md), var(--glow-primary);
    transform: translateY(-2px);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.news-card {
    background: transparent;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-3d-md), 0 0 15px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 2;
}

.news-card:hover {
    transform: translateY(-12px) rotateX(2deg);
    box-shadow: var(--shadow-3d-xl), var(--glow-primary);
    border-color: rgba(99, 102, 241, 0.3);
}

.news-card:hover::before {
    opacity: 1;
}

.news-card-image {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    border-radius: var(--radius-xl);
}

.news-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 50%, #f59e0b 100%);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.news-text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    z-index: 2;
    color: white;
}

.news-meta-overlay {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.news-category-overlay {
    background: rgba(99, 102, 241, 0.9);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
}

.news-date-overlay {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
}

.news-title-overlay {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
    line-height: 1.3;
}

.news-excerpt-overlay {
    font-size: 14px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9);
    line-height: 1.5;
    opacity: 0.95;
    margin-bottom: 12px;
}

.btn-read-more-overlay-small {
    display: inline-block;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.95) 0%, rgba(236, 72, 153, 0.95) 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all var(--transition-base);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    text-shadow: none;
}

.btn-read-more-overlay-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, rgba(99, 102, 241, 1) 0%, rgba(236, 72, 153, 1) 100%);
}

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

.news-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.news-card-link {
    color: var(--light-bg);
    text-decoration: none;
    font-weight: 600;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--primary-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.news-card-link:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.news-card-content {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-meta {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-sm);
}

.news-category {
    background: var(--primary-color);
    color: var(--light-bg);
    padding: 0.25rem var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: var(--font-size-xs);
}

.news-date {
    color: var(--gray-500);
}

.news-card-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--gray-900);
    line-height: 1.4;
}

.news-card-excerpt {
    color: var(--gray-600);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
    flex: 1;
}

.news-card-footer {
    margin-top: auto;
}

.news-read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.news-read-more:hover {
    gap: var(--spacing-sm);
    color: var(--primary-dark);
}

.load-more-container {
    text-align: center;
    margin-top: var(--spacing-xl);
}

.btn-load-more {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, var(--secondary-color) 100%);
    color: var(--light-bg);
    padding: var(--spacing-md) var(--spacing-2xl);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: var(--font-size-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-3d-md), var(--glow-primary);
    position: relative;
    overflow: hidden;
}

.btn-load-more::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: left 0.5s;
}

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

.btn-load-more:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-3d-xl), var(--glow-primary);
}

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.sidebar-widget {
    background: linear-gradient(135deg, var(--light-bg) 0%, #f8fafc 100%);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-3d-lg), 0 0 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all var(--transition-base);
}

.sidebar-widget:hover {
    box-shadow: var(--shadow-3d-xl), 0 0 30px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.widget-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--gray-900);
}

.most-read-list {
    list-style: none;
}

.most-read-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--gray-200);
    transition: all var(--transition-base);
}

.most-read-item:last-child {
    border-bottom: none;
}

.most-read-item:hover {
    padding-left: var(--spacing-sm);
}

.most-read-number {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--primary-color);
    min-width: 30px;
}

.most-read-content {
    flex: 1;
}

.most-read-link {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin-bottom: var(--spacing-xs);
    line-height: 1.5;
    transition: color var(--transition-base);
}

.most-read-link:hover {
    color: var(--primary-color);
}

.most-read-views {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
}

.newsletter-widget {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, var(--secondary-color) 100%);
    color: var(--light-bg);
    box-shadow: var(--shadow-3d-xl), var(--glow-primary);
    position: relative;
    overflow: hidden;
}

.newsletter-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.newsletter-widget .widget-title {
    color: var(--light-bg);
}

.newsletter-text {
    margin-bottom: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.9);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.newsletter-input {
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    background: var(--light-bg);
    color: var(--gray-900);
}

.newsletter-input:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.newsletter-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--accent-color) 0%, #d97706 100%);
    color: var(--light-bg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-3d-md), var(--glow-accent);
    position: relative;
    z-index: 1;
}

.newsletter-btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-3d-lg), var(--glow-accent);
}

.social-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.social-link {
    padding: var(--spacing-sm);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    color: var(--light-bg);
    transition: all var(--transition-base);
    font-size: var(--font-size-sm);
    box-shadow: var(--shadow-3d-md);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.social-link:hover::before {
    width: 300px;
    height: 300px;
}

.social-link.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #1565c0 100%);
}

.social-link.twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
}

.social-link:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-3d-xl), 0 0 20px rgba(0, 0, 0, 0.3);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 50%, #1a1f3a 100%);
    color: var(--light-bg);
    padding: var(--spacing-2xl) 0 var(--spacing-xl);
    margin-top: var(--spacing-2xl);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.footer-logo-img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-logo-text {
    font-size: var(--font-size-xl);
    font-weight: 700;
}

.footer-description {
    color: var(--gray-400);
    line-height: 1.7;
}

.footer-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--light-bg);
}

.footer-contact {
    list-style: none;
    color: var(--gray-400);
}

.footer-contact li {
    margin-bottom: var(--spacing-sm);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--gray-700);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-legal {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-legal a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-legal a:hover {
    color: var(--light-bg);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: -1;
    }
    
    .trending-box {
        position: static;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: var(--spacing-lg);
        transform: translateX(-100%);
        transition: transform var(--transition-base);
        box-shadow: var(--shadow-xl);
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-link {
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        display: block;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: var(--font-size-3xl);
    }
    
    .section-title {
        font-size: var(--font-size-3xl);
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        gap: var(--spacing-md);
    }
    
    .trending-box {
        margin-top: var(--spacing-lg);
    }
    
    .ad-banner-vertical {
        margin-bottom: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .header-content {
        padding: 10px 0;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .logo-text {
        font-size: var(--font-size-lg);
    }
    
    .hero {
        padding: var(--spacing-md) 0;
    }
    
    .article-image-wrapper {
        height: 280px;
    }
    
    .article-title-overlay {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .article-excerpt-overlay {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .article-text-overlay {
        padding: 20px;
    }
    
    .article-meta-overlay {
        margin-bottom: 10px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .article-category-overlay {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .article-date-overlay {
        font-size: 12px;
    }
    
    .btn-read-more-overlay {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .trending-box,
    .sidebar-widget {
        padding: var(--spacing-md);
    }
    
    .trending-title {
        font-size: var(--font-size-xl);
    }
    
    .trending-item {
        padding: var(--spacing-sm) 0;
    }
    
    .trending-number {
        font-size: var(--font-size-lg);
        min-width: 30px;
    }
    
    .trending-link {
        font-size: var(--font-size-sm);
    }
    
    .news-card-image {
        height: 200px;
    }
    
    .news-title-overlay {
        font-size: 16px;
    }
    
    .news-excerpt-overlay {
        font-size: 12px;
    }
    
    .news-card-content {
        padding: var(--spacing-md);
    }
    
    .news-card-title {
        font-size: var(--font-size-lg);
    }
    
    .news-card-excerpt {
        font-size: var(--font-size-sm);
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .section-filters {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }
    
    .filter-btn {
        white-space: nowrap;
        font-size: var(--font-size-sm);
        padding: 8px 16px;
    }
    
    .ad-banner-horizontal,
    .ad-banner-vertical,
    .ad-banner-inline {
        padding: 20px 15px;
        min-height: auto;
    }
    
    .ad-label {
        font-size: 10px;
        padding: 6px 12px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .most-read-item {
        padding: var(--spacing-sm) 0;
    }
    
    .most-read-number {
        font-size: var(--font-size-lg);
        min-width: 25px;
    }
    
    .most-read-link {
        font-size: var(--font-size-sm);
    }
    
    .social-links {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        gap: var(--spacing-xs);
    }
    
    .newsletter-input,
    .newsletter-btn {
        font-size: var(--font-size-sm);
        padding: 10px;
    }
}

/* ============================================
   BANNERS DE PUBLICIDAD
   ============================================ */

.ad-banner-section {
    background: #f8fafc;
    padding: 20px 0;
    border-bottom: 2px dashed #e2e8f0;
}

.ad-banner-horizontal {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.ad-banner-horizontal:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.ad-banner-vertical {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all var(--transition-base);
}

.ad-banner-vertical:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.ad-banner-inline {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    margin: 30px 0;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.ad-banner-inline:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.ad-widget {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 2px dashed #cbd5e1;
}

.ad-widget:hover {
    border-color: var(--primary-color);
}

.ad-banner {
    padding: 30px 20px;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.ad-label {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.ad-banner p,
.ad-banner-horizontal p,
.ad-banner-vertical p,
.ad-banner-inline p {
    color: var(--gray-600);
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}

/* Banners adaptativos con imágenes */
.banner-image-adaptive {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    transition: transform var(--transition-base);
    object-fit: contain;
    object-position: center;
}

.banner-image-adaptive:hover {
    transform: scale(1.02);
}

.banner-link {
    display: block;
    width: 100%;
    text-decoration: none;
    transition: opacity var(--transition-base);
}

.banner-link:hover {
    opacity: 0.9;
}

/* Banner horizontal - adaptativo */
.ad-banner-horizontal .banner-image-adaptive {
    width: 100%;
    max-width: 970px;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    margin: 0 auto;
}

/* Banner vertical - adaptativo */
.ad-banner-vertical .banner-image-adaptive,
.banner-vertical {
    width: 100%;
    max-width: 300px;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    margin: 0 auto;
}

.ad-banner .banner-image-adaptive {
    width: 100%;
    max-width: 300px;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    margin: 0 auto;
}

/* Banner inline - adaptativo */
.ad-banner-inline .banner-image-adaptive {
    width: 100%;
    max-width: 728px;
    height: auto;
    max-height: 90px;
    object-fit: contain;
    margin: 0 auto;
}

/* Cuando hay imagen, quitar el fondo y padding extra */
.ad-banner-horizontal:has(.banner-image-adaptive),
.ad-banner-vertical:has(.banner-image-adaptive),
.ad-banner-inline:has(.banner-image-adaptive),
.ad-banner:has(.banner-image-adaptive) {
    background: transparent;
    border: none;
    padding: 10px;
    min-height: auto;
}

/* Fallback para navegadores que no soportan :has() */
.ad-banner-horizontal img,
.ad-banner-vertical img,
.ad-banner-inline img,
.ad-banner img {
    background: transparent;
}

@media (max-width: 768px) {
    .ad-banner-horizontal .banner-image-adaptive {
        max-width: 100%;
        max-height: 150px;
        min-height: 60px;
    }
    
    .ad-banner-vertical .banner-image-adaptive,
    .banner-vertical {
        max-width: 100%;
        max-height: 300px;
        min-height: 200px;
    }
    
    .ad-banner-inline .banner-image-adaptive {
        max-width: 100%;
        max-height: 60px;
        min-height: 40px;
    }
    
    /* Asegurar que las imágenes no se desborden */
    .banner-image-adaptive {
        box-sizing: border-box;
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card {
    animation: fadeIn 0.6s ease-out;
}

.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }
.news-card:nth-child(4) { animation-delay: 0.4s; }
.news-card:nth-child(5) { animation-delay: 0.5s; }
.news-card:nth-child(6) { animation-delay: 0.6s; }

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Efectos de hover mejorados */
.news-card,
.featured-article,
.trending-item,
.most-read-item {
    transition: all var(--transition-base);
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

