:root {
    --bg-color: #121212;
    --card-bg: #181818;
    --hover-bg: #282828;
    --spotify-green: #1DB954;
    --text-main: #FFFFFF;
    --text-sec: #B3B3B3;
    --accent: #1DB954;
    --ad-bg: #2a2a2a; /* Color de fondo para los espacios de anuncios */
}

body {
    font-family: 'Circular', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0; padding: 0;
    overflow-x: hidden;
}

/* --- NAV (SOLO LOGO GRANDE CENTRADO) --- */
/* --- NAV (ESTÁTICO - NO SIGUE AL USUARIO) --- */
.navbar {
    display: flex; 
    justify-content: center; 
    align-items: center;
    padding: 30px 40px; 
    background: #121212; /* Color sólido, ya no necesita transparencia */
    
    /* CAMBIO IMPORTANTE AQUÍ: */
    position: relative; /* Antes era 'sticky' */
    /* top: 0; <-- Esta línea se elimina */
    
    z-index: 50;
    border-bottom: 1px solid #333;
}

.logo { 
    font-size: 3rem; /* Texto Rentle mucho más grande */
    font-weight: 800; 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

.logo-img { 
    height: 200px; /* Imagen del logo mucho más grande */
    width: auto; 
}

/* La clase .nav-links ya no es necesaria, pero si queda algún resto, esto lo oculta */
.nav-links { display: none; }




/* --- LAYOUT CON ANUNCIOS --- */
.app-layout {
    display: flex;
    justify-content: center;
    max-width: 1400px; /* Ancho máximo para acomodar laterales */
    margin: 0 auto;
    padding: 20px 0;
}

.main-content-wrapper {
    flex: 1;
    max-width: 1000px; /* Ancho máximo del contenido principal */
    padding: 0 20px;
}

/* Estilos para los Anuncios */
.ad-banner {
    width: 100%; max-width: 970px; height: 90px; /* Tamaño estándar de leaderboard */
    background: var(--ad-bg);
    display: flex; align-items: center; justify-content: center;
    color: #666; font-size: 0.9rem;
    margin: 20px auto; border: 1px dashed #444;
}

.side-ad {
    width: 160px; /* Ancho para rascacielos */
    display: none; /* Oculto en móvil */
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
}

.ad-skyscraper {
    width: 160px; height: 600px; /* Tamaño estándar de rascacielos */
    background: var(--ad-bg);
    display: flex; align-items: center; justify-content: center;
    color: #666; font-size: 0.9rem;
    border: 1px dashed #444;
    position: sticky; top: 90px; /* Se queda fijo al hacer scroll */
}

@media (min-width: 1200px) {
    .side-ad { display: flex; } /* Mostrar laterales en pantallas grandes */
}

/* --- HERO --- */
.hero-section {
    display: flex; flex-direction: column-reverse;
    background: var(--card-bg); border-radius: 16px;
    overflow: hidden; margin-bottom: 40px;
    border: 1px solid #333;
}
@media (min-width: 768px) {
    .hero-section { flex-direction: row; height: 400px; }
}

.hero-content {
    flex: 1; padding: 40px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.hero-image { flex: 1; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

.tag { background: var(--spotify-green); color: black; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; text-transform: uppercase; margin-bottom: 15px; }
.hero-content h1 { font-size: 2.5rem; margin: 0 0 15px 0; line-height: 1.1; }
.hero-content p { color: var(--text-sec); margin-bottom: 25px; line-height: 1.6; }

.read-btn {
    background: white; color: black; border: none;
    padding: 12px 30px; border-radius: 30px;
    font-weight: bold; cursor: pointer; transition: transform 0.2s;
}
.read-btn:hover { transform: scale(1.05); }

/* --- CATEGORIES --- */
.category-scroll {
    display: flex; gap: 10px; overflow-x: auto; padding-bottom: 20px; margin-bottom: 20px;
    scrollbar-width: none;
}
.cat-btn {
    background: var(--card-bg); color: var(--text-main);
    border: 1px solid #333; padding: 8px 20px;
    border-radius: 20px; cursor: pointer; white-space: nowrap;
    transition: all 0.2s;
}
.cat-btn:hover { border-color: white; }
.cat-btn.active { background: white; color: black; border-color: white; }

/* --- GRID --- */
.articles-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px; margin-bottom: 60px;
}

.blog-card {
    background: var(--card-bg); border-radius: 12px;
    overflow: hidden; transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #282828; cursor: pointer;
    display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.5); border-color: #444; }

.card-img { height: 200px; width: 100%; object-fit: cover; }
.card-content { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-cat { color: var(--spotify-green); font-size: 0.75rem; font-weight: bold; text-transform: uppercase; margin-bottom: 8px; }
.card-title { font-size: 1.2rem; margin: 0 0 10px 0; line-height: 1.3; }
.card-desc { color: var(--text-sec); font-size: 0.9rem; line-height: 1.5; margin-bottom: 15px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-footer { border-top: 1px solid #333; padding-top: 15px; display: flex; justify-content: space-between; color: #666; font-size: 0.8rem; }

/* --- MODAL GENERAL --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85); z-index: 100;
    display: flex; justify-content: center; align-items: center;
    backdrop-filter: blur(5px);
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.modal-overlay.hidden { opacity: 0; pointer-events: none; }
.modal-overlay:not(.hidden) { opacity: 1; pointer-events: auto; }

.modal-content {
    background: #181818; width: 90%; max-width: 800px; height: 90vh;
    border-radius: 16px; overflow-y: auto; position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.9); border: 1px solid #333;
    transform: translateY(20px); transition: transform 0.3s ease;
}
.modal-overlay:not(.hidden) .modal-content { transform: translateY(0); }

.close-modal {
    position: absolute; top: 20px; right: 20px;
    background: rgba(0,0,0,0.5); border: none; color: white;
    width: 40px; height: 40px; border-radius: 50%;
    font-size: 1.2rem; cursor: pointer; z-index: 10; transition: background 0.2s;
}
.close-modal:hover { background: rgba(0,0,0,0.8); }

/* --- MODAL ANUNCIO VIDEO --- */
.ad-modal { z-index: 200; } /* Mayor z-index para que aparezca sobre todo */
.video-ad-content {
    background: transparent; /* Fondo transparente para el contenedor del vídeo */
    box-shadow: none; border: none;
    display: flex; flex-direction: column; align-items: center;
}
.video-container {
    position: relative; padding-bottom: 56.25%; height: 0; width: 100%; max-width: 800px;
    background: black; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.9);
}
.video-container iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}
.ad-close-btn {
    position: static; margin-bottom: 10px; width: auto; height: auto;
    padding: 8px 15px; border-radius: 20px; background: rgba(255,255,255,0.1);
    font-size: 0.9rem; font-weight: bold;
}
.ad-close-btn:hover { background: rgba(255,255,255,0.2); }


/* --- ESTILOS ARTÍCULO MODAL --- */
.modal-header { padding: 40px 40px 20px 40px; }
.modal-tag { color: var(--spotify-green); font-weight: bold; text-transform: uppercase; font-size: 0.9rem; }
.modal-header h1 { font-size: 2.5rem; margin: 10px 0; line-height: 1.1; }
.modal-meta { color: #666; font-size: 0.9rem; }

.modal-hero-img { width: 100%; height: 300px; object-fit: cover; }
.article-body { padding: 40px; line-height: 1.8; color: #ddd; font-size: 1.1rem; max-width: 680px; margin: 0 auto; }
.article-body h2 { color: white; margin-top: 40px; margin-bottom: 15px; }
.article-body ul { margin-bottom: 20px; padding-left: 20px; color: var(--text-sec); }
.article-body li { margin-bottom: 10px; }

/* --- FOOTER (SIN NEWSLETTER) --- */
.main-footer {
    background-color: #000000;
    border-top: 1px solid #333;
    padding: 60px 0 20px 0;
    margin-top: 60px;
    font-size: 0.9rem;
    color: #B3B3B3;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    /* CAMBIO AQUÍ: Ahora son solo 3 columnas centradas */
    grid-template-columns: 2fr 1fr 1fr; 
    gap: 40px;
}

/* El resto del CSS del footer se mantiene igual para colores y listas... */
.footer-col h4 { color: white; margin-bottom: 20px; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #B3B3B3; text-decoration: none; transition: color 0.2s, padding-left 0.2s; }
.footer-col ul li a:hover { color: var(--spotify-green); padding-left: 5px; }
.brand-col p { line-height: 1.6; margin-bottom: 20px; max-width: 300px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 800; color: white; margin-bottom: 20px; }
.social-links { display: flex; gap: 15px; }
.social-links a { color: white; background: #333; width: 35px; height: 35px; display: flex; justify-content: center; align-items: center; border-radius: 50%; text-decoration: none; transition: background 0.3s; }
.social-links a:hover { background: var(--spotify-green); color: black; }
.footer-bottom { max-width: 1200px; margin: 60px auto 0 auto; padding: 20px 40px 0 40px; border-top: 1px solid #222; display: flex; justify-content: space-between; flex-wrap: wrap; font-size: 0.8rem; }
.disclaimer { color: #666; }

/* Responsive para el nuevo footer de 3 columnas */
@media (max-width: 900px) {
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .brand-col p, .brand-col { align-items: center; margin: 0 auto; }
    .footer-logo, .social-links { justify-content: center; }
}

/* --- ESTILOS DE PÁGINA DE ARTÍCULO INDIVIDUAL --- */
.single-article {
    background: var(--card-bg);
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
}

.article-header {
    padding: 40px 40px 20px 40px;
    border-bottom: 1px solid #282828;
}

.article-header h1 {
    font-size: 2.5rem;
    margin: 15px 0;
    line-height: 1.1;
    color: white;
}

.article-meta {
    color: var(--text-sec);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.article-hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.article-body {
    padding: 40px;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #e0e0e0;
}

.article-body p { margin-bottom: 25px; }
.article-body h2 { color: white; margin-top: 40px; margin-bottom: 15px; font-size: 1.8rem; }
.article-body h3 { color: white; margin-top: 30px; margin-bottom: 10px; font-size: 1.4rem; }
.article-body ul { margin-bottom: 25px; padding-left: 20px; color: #ccc; }
.article-body li { margin-bottom: 10px; }
.article-body strong { color: var(--spotify-green); }

.article-body .lead {
    font-size: 1.3rem;
    font-weight: 300;
    color: white;
    border-left: 4px solid var(--spotify-green);
    padding-left: 20px;
}

.article-footer-nav {
    padding: 20px 40px;
    border-top: 1px solid #333;
}
.back-btn {
    color: var(--spotify-green);
    text-decoration: none;
    font-weight: bold;
}
.back-btn:hover { text-decoration: underline; }

/* Ajuste móvil para artículo */
@media (max-width: 768px) {
    .article-header h1 { font-size: 2rem; }
    .article-body { padding: 20px; font-size: 1rem; }
    .article-hero-img { height: 250px; }
}

/* Añadir al final de tu style.css */
.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block; /* Ocupa todo el espacio */
}