/* --- VARIABLES Y RESET --- */
:root {
    --cyan: #00f2ff;
    --magenta: #ff00ff;
    --yellow: #f1c40f;
    --bg: #050505;
    --card: #111111;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body { 
    background: var(--bg); 
    color: white; 
    font-family: 'Inter', sans-serif; 
    overflow-x: hidden; 
}

/* --- NAVBAR --- */
.navbar {
    background: #000; 
    height: 80px; 
    display: flex; 
    justify-content: center;
    border-bottom: 2px solid var(--cyan); 
    position: sticky; 
    top: 0; 
    z-index: 1000;
}

.nav-container { 
    width: 100%; 
    max-width: 1400px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 20px; 
}

.main-logo { 
    height: 55px; 
    width: auto; 
}

.menu-toggle { 
    display: none; 
    flex-direction: column; 
    gap: 5px; 
    cursor: pointer; 
}

.menu-toggle .bar { 
    width: 30px; 
    height: 3px; 
    background: var(--cyan); 
    transition: 0.3s; 
}

.nav-links { 
    display: flex; 
    list-style: none; 
    gap: 20px; 
    align-items: center;
}

.nav-links a { 
    color: white; 
    text-decoration: none; 
    font-weight: bold; 
    text-transform: uppercase; 
    font-size: 0.85rem; 
    transition: 0.3s; 
}

.nav-links a:hover { 
    color: var(--cyan); 
    text-shadow: 0 0 10px var(--cyan); 
}

/* --- LAYOUT DEL HOME (3 COLUMNAS) --- */
.layout-wrapper {
    display: flex; 
    justify-content: center;
    gap: 30px;
    max-width: 1600px; 
    margin: 40px auto; 
    padding: 0 20px;
}

.main-content {
    flex: 1;
    min-width: 0; 
}

.sidebar-ads { 
    width: 200px; 
    flex-shrink: 0;
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}

.ad-slot { 
    width: 100%; 
    height: 350px; 
    border: 1px solid #222; 
    background-size: cover; 
    background-position: center;
    border-radius: 8px; 
}

/* --- GRILLA DE NOTICIAS (HOME) --- */
.section { margin-bottom: 60px; }

.section-heading { 
    border-left: 8px solid var(--cyan); 
    padding-left: 20px; 
    margin-bottom: 30px; 
    font-size: 1.8rem; 
    text-transform: uppercase;
}

.magenta-line { border-left-color: var(--magenta); }

.news-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 25px; 
}

.news-card { 
    background: var(--card); 
    border-radius: 12px; 
    overflow: hidden; 
    border: 1px solid #222; 
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.news-card:hover { 
    border-color: var(--cyan); 
    transform: translateY(-5px); 
}

.news-thumb { height: 220px; background-size: cover; background-position: center; }

.news-info { padding: 25px; flex: 1; display: flex; flex-direction: column; }

.news-info h3 { font-size: 1.3rem; margin-bottom: 12px; line-height: 1.2; }

.news-info p { color: #888; font-size: 0.95rem; margin-bottom: 20px; }

.news-link { margin-top: auto; color: var(--cyan); text-decoration: none; font-weight: bold; font-size: 0.85rem; }

/* --- ESTRUCTURA PARA NOTICIAS INTERNAS (PÁGINAS HIJAS) --- */
.article-container {
    max-width: 900px; 
    margin: 40px auto; 
    padding: 0 25px;
    line-height: 1.7;
}

.article-subtitle {
    color: var(--magenta);
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-size: 1.1rem;
    display: block;
}

.article-container h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    line-height: 1.1;
    font-weight: 800;
}

.article-meta {
    border-top: 1px solid #333;
    padding-top: 15px;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.article-meta span { color: var(--cyan); font-weight: bold; }

.article-body {
    color: #ddd;
    font-size: 1.25rem;
}

.article-body p { margin-bottom: 20px; }

/* --- BOTONES Y FOOTER --- */
.contenedor-boton-centrado { text-align: center; margin: 50px 0; }
.btn-portal-accion { 
    display: inline-block;
    padding: 18px 40px; 
    border: 2px solid var(--yellow); 
    color: var(--yellow); 
    text-decoration: none; 
    font-weight: bold; 
    border-radius: 5px;
    transition: 0.3s;
}

.footer-total { background: #000; border-top: 2px solid var(--magenta); padding: 50px 20px; margin-top: 60px; }
.footer-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 30px; }
.logo-texto { color: var(--cyan); font-weight: bold; font-size: 1.4rem; }
.copyright { color: #888; font-size: 0.85rem; }

.form-mini { display: flex; gap: 10px; }
.form-mini input { background: #111; border: 1px solid #333; color: white; padding: 12px; border-radius: 5px; width: 250px; }
.btn-ok { background: var(--magenta); border: none; color: white; padding: 0 25px; cursor: pointer; font-weight: bold; border-radius: 5px; }

/* --- RESPONSIVO --- */
@media (max-width: 1100px) {
    .sidebar-ads { display: none; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-links {
        position: fixed; right: -100%; top: 80px; background: rgba(0,0,0,0.98);
        width: 100%; height: calc(100vh - 80px); flex-direction: column; align-items: center;
        padding-top: 60px; transition: 0.5s; gap: 40px;
    }
    .nav-links.active { right: 0; }
    .news-grid { grid-template-columns: 1fr; }
    .article-container h1 { font-size: 2.2rem; }
}

/* Animación Hamburguesa */
.menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }