/* 1. VARIABLES Y BASE */
:root {
    --primary: #111;
    --accent: #007bff;
    --bg: #f0f2f5;
    --text: #1a1a1a;
    --white: #ffffff;
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background: var(--bg); 
    margin: 0; 
    color: var(--text);
    line-height: 1.6;
}

/* 2. BARRA SUPERIOR (NAVBAR) - SIEMPRE FIJA */
.navbar { 
    background: var(--primary); 
    color: white; 
    padding: 12px 0; 
    position: fixed; 
    top: 0; 
    width: 100%;
    z-index: 3000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.nav-left, .nav-right { flex: 1; display: flex; align-items: center; }
.nav-center { flex: 2; text-align: center; }
.nav-center h1 { margin: 0; font-size: 1.6rem; letter-spacing: 2px; cursor: pointer; transition: 0.3s; }
.nav-center h1:hover { color: var(--accent); }

.nav-right { justify-content: flex-end; cursor: pointer; font-size: 1.4rem; }
#btn-buscar { cursor: pointer; font-size: 1.2rem; transition: 0.3s; }
#btn-buscar:hover { color: var(--accent); }

#buscador { 
    background: #333; 
    border: none; 
    color: white; 
    padding: 6px 12px; 
    border-radius: 4px; 
    margin-left: 10px; 
    transition: 0.3s;
    outline: none;
}
.hidden { width: 0; padding: 0 !important; opacity: 0; overflow: hidden; }

/* 3. ADS LATERALES - PERSIGUEN AL USUARIO */
.ad-fixed { 
    position: fixed; 
    top: 85px; 
    width: 160px; 
    height: 600px; 
    background: #e0e0e0; 
    border: 1px solid #ccc; 
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
}

.left { left: calc(50% - 620px); } 
.right { right: calc(50% - 620px); }

.ad-content { 
    color: #999; 
    font-weight: bold; 
    font-size: 0.7rem; 
    writing-mode: vertical-rl; 
    text-orientation: mixed;
}

/* 4. DISEÑO PRINCIPAL (LAYOUT) */
.main-layout { 
    margin-top: 85px; 
    display: flex;
    justify-content: center;
    padding-bottom: 50px;
}

.content { 
    width: 100%;
    max-width: 800px; 
    background: var(--white); 
    padding: 25px; 
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    min-height: 85vh;
}

/* 5. GRID DE NOTICIAS */
.grid-noticias { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 25px; 
}

.card { 
    border: 1px solid #eee; 
    border-radius: 10px; 
    overflow: hidden; 
    cursor: pointer; 
    transition: 0.3s; 
    background: var(--white);
}

.card:hover { 
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1); 
}

.card img { width: 100%; height: 180px; object-fit: cover; }
.card-body { padding: 15px; }
.card-body h3 { margin: 10px 0 0 0; font-size: 1.1rem; color: #222; }

/* 6. VISTA DE LECTURA Y ABOUT US */
#vista-lectura article, #vista-about article { 
    animation: fadeIn 0.4s ease-in-out; 
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.btn-volver { 
    background: var(--primary); 
    color: white;
    border: none; 
    padding: 10px 20px; 
    border-radius: 5px; 
    cursor: pointer; 
    margin-bottom: 25px;
    font-weight: bold;
    transition: 0.3s;
}
.btn-volver:hover { background: var(--accent); }

#detalle-noticia h2, .about-container h2 { font-size: 2.2rem; margin-bottom: 15px; line-height: 1.2; }
#detalle-noticia img, .about-container img { width: 100%; border-radius: 10px; margin-bottom: 20px; }
#detalle-noticia p, .about-container p { font-size: 1.15rem; line-height: 1.8; color: #444; }

/* 7. MENÚ LATERAL (SIDENAV) */
.sidenav { 
    height: 100%; 
    width: 0; 
    position: fixed; 
    z-index: 4000; 
    top: 0; 
    right: 0; 
    background-color: var(--primary); 
    overflow-x: hidden; 
    transition: 0.5s; 
    padding-top: 60px; 
}

.sidenav a { 
    padding: 15px 32px; 
    text-decoration: none; 
    font-size: 1.2rem; 
    color: #bbb; 
    display: block; 
    transition: 0.3s; 
}

.sidenav a i { margin-right: 15px; width: 25px; text-align: center; }
.sidenav a:hover { color: white; background: #222; padding-left: 40px; }

.sidenav a:hover i.fa-youtube { color: #FF0000; }
.sidenav a:hover i.fa-tiktok { color: #00f2ea; }

.sidenav hr { border: 0; border-top: 1px solid #333; margin: 10px 32px; }
.sidenav .closebtn { position: absolute; top: 10px; right: 25px; font-size: 36px; }

/* 8. RESPONSIVE */
@media (max-width: 1150px) {
    .ad-fixed { display: none; }
}

@media (max-width: 700px) {
    .grid-noticias { grid-template-columns: 1fr; }
    .content { padding: 15px; margin: 0 10px; }
    .nav-center h1 { font-size: 1.3rem; }
    #buscador { width: 100px; }
}
promo-dev {
    margin-top: 50px;
    padding: 25px;
    background: #1e1e1e; /* Fondo oscuro tipo editor de código */
    color: #d4d4d4;
    border-radius: 12px;
    text-align: center;
    border-left: 5px solid var(--accent);
}

.promo-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.promo-header i { color: #4ec9b0; font-size: 1.5rem; }
.promo-header h3 { margin: 0; color: #fff; font-size: 1.3rem; }

.promo-dev p { 
    font-size: 1rem !important; 
    color: #aaa !important;
    margin-bottom: 20px;
}

.botones-redes {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-yt, .btn-tk {
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    color: white;
    transition: 0.3s;
    font-size: 0.9rem;
}

.btn-yt { background: #cc0000; }
.btn-tk { background: #333; border: 1px solid #444; }

.btn-yt:hover { background: #ff0000; transform: translateY(-3px); }
.btn-tk:hover { background: #444; transform: translateY(-3px); }


