/* --- Variables de Diseño --- */
:root {
    --bg-color: #f4f1ea; /* Color papel viejo */
    --text-color: #1a1a1a;
    --accent-color: #b91c1c; /* Rojo revolucionario */
    --secondary-color: #333333;
    --border-color: #1a1a1a;
    --paper-shadow: 4px 4px 0px rgba(0,0,0,1);
}

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

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    /* Textura de ruido sutil */
    background-image: linear-gradient(rgba(244, 241, 234, 0.95), rgba(244, 241, 234, 0.95)), url('https://www.transparenttextures.com/patterns/grain.png');
}

/* --- Header --- */
header {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 2rem 1rem;
    text-align: center;
    border-bottom: 5px solid var(--accent-color);
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    text-shadow: 3px 3px 0px var(--accent-color);
}

.slogan {
    font-size: 1rem;
    font-style: italic;
    opacity: 0.8;
    text-transform: lowercase;
}

/* --- Navegación --- */
nav {
    background-color: var(--accent-color);
    padding: 0.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

nav li {
    margin: 0;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    padding: 0.8rem 1.2rem;
    display: block;
    transition: background 0.3s;
    border-right: 1px solid rgba(255,255,255,0.2);
}

nav a:last-child {
    border-right: none;
}

nav a:hover {
    background-color: #7f1d1d;
    text-decoration: underline;
}

#menu-toggle {
    display: none; /* Oculto por defecto en escritorio */
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 100%;
    text-align: center;
    padding: 0.5rem;
}

/* --- Layout Principal --- */
main {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

/* --- Artículos --- */
.post {
    background: #fff;
    border: 2px solid var(--border-color);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--paper-shadow);
    position: relative;
}

/* Etiqueta "URGENTE" solo para artículos con clase .urgente */
.post.urgente::before {
    content: "URGENTE";
    position: absolute;
    top: -15px;
    right: -10px;
    background: var(--accent-color);
    color: white;
    padding: 0.2rem 0.8rem;
    font-size: 0.8rem;
    font-weight: bold;
    transform: rotate(5deg);
    border: 1px solid var(--border-color);
}

.post h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.post-body {
    font-size: 1.1rem;
    text-align: justify;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    background: var(--text-color);
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid var(--text-color);
    transition: all 0.3s;
}

.read-more:hover {
    background: #fff;
    color: var(--text-color);
}

/* --- Barra Lateral --- */
aside {
    background: #e8e4db;
    border: 2px solid var(--border-color);
    padding: 1.5rem;
    height: fit-content;
    box-shadow: var(--paper-shadow);
}

aside h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

aside h3:first-child {
    margin-top: 0;
}

.manifesto {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-style: italic;
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
}

aside ul {
    padding-left: 1.2rem;
    font-size: 0.9rem;
}

aside a {
    color: var(--text-color);
    text-decoration: none;
}

aside a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.tag-cloud a {
    display: inline-block;
    background: #fff;
    border: 1px solid var(--text-color);
    padding: 0.2rem 0.5rem;
    margin: 0.2rem;
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--text-color);
}

.tag-cloud a:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

/* --- Footer --- */
footer {
    background-color: var(--secondary-color);
    color: #ccc;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    border-top: 5px solid var(--accent-color);
}

footer a {
    color: #fff;
}

.disclaimer {
    font-size: 0.8rem;
    margin-top: 1rem;
    font-weight: bold;
    color: #fff;
}

/* --- Media Queries (Móvil) --- */
@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.5rem;
    }

    nav ul {
        display: none; /* Ocultar menú por defecto en móvil */
        flex-direction: column;
    }

    nav ul.active {
        display: flex;
    }

    nav a {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        text-align: center;
    }

    #menu-toggle {
        display: block;
    }
}