* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f8f7f2;
    color: #1a1a1a;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    padding: 40px 20px;
}

.mag-header {
    max-width: 1200px;
    margin: 0 auto 60px auto;
    text-align: center;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
    border-bottom: 2px solid #000;
    padding-bottom: 8px;
}

.logo {
    font-size: clamp(60px, 12vw, 130px);
    font-weight: 900;
    letter-spacing: -5px;
    margin: 20px 0;
    line-height: 0.8;
}

.navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    border-top: 1.5px solid #000;
    border-bottom: 1.5px solid #000;
    padding: 12px 0;
}

.navigation li {
    font-size: 11px;
    font-weight: 900;
}

.magazine-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto 80px auto;
}

.featured {
    border-top: 1.5px solid #000;
    padding-top: 20px;
}

.featured h2 {
    font-family: "Georgia", serif;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.1;
    margin: 20px 0;
}

/* --- ESTILOS DE LA IMAGEN DESTACADA --- */
.featured-image {
    margin: 25px 0 30px 0;
    width: 100%;
    border: 1px solid #1a1a1a;
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
    /* Filtro para que sea B/N por defecto (estilo periódico) */
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

/* Al pasar el ratón, la imagen recupera el color */
.featured-image:hover img {
    filter: grayscale(0%);
}

.featured-image figcaption {
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    padding: 8px 10px;
    border-top: 1px solid #1a1a1a;
    background-color: #f0f0f0;
    letter-spacing: 1px;
}
/* ------------------------------------- */

.tag-simple {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
}

.sidebar-cards {
    display: flex;
    flex-direction: column;
    gap: 30px;
    grid-column: 2; 
    grid-row: 1 / span 2; 
}

.entry-card {
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    background-color: transparent;
}

.entry-card__header {
    display: flex;
    border-bottom: 1px solid #1a1a1a;
}

.entry-card__tag {
    padding: 8px 15px;
    font-size: 11px;
    font-weight: 900;
    color: #006eb3; 
    border-right: 1px solid #1a1a1a;
    background-color: transparent;
    text-transform: uppercase;
}

.entry-card__spacer {
    flex-grow: 1;
}

.entry-card:hover .entry-card__header {
    background-color: #1a1a1a;
}

.entry-card:hover .entry-card__tag {
    color: #ffffff;
    border-right: 1px solid #ffffff;
}

.entry-card .card-content {
    padding: 20px;
}

.entry-card h2 {
    font-family: "Georgia", serif;
    font-size: 22px;
    margin-bottom: 12px;
}

p {
    font-size: 14px;
    margin-bottom: 20px;
    color: #333;
}

.link {
    font-size: 10px;
    font-weight: 900;
    text-decoration: none;
    color: #000;
    border-bottom: 1px solid #000;
    text-transform: uppercase;
}

.main-footer {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 2px solid #000;
    padding-top: 40px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 15px;
}

.footer-column h4 {
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 20px;
}

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

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 12px;
    font-weight: bold;
}

.footer-links a.rss-link {
    color: #ff6600;
}

.footer-subscribe {
    display: flex;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 5px;
}

.footer-subscribe input {
    background: transparent;
    border: none;
    flex-grow: 1;
    outline: none;
    font-size: 12px;
}

.footer-subscribe button {
    background: transparent;
    border: none;
    font-weight: 900;
    cursor: pointer;
    font-size: 12px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #e0e0e0;
    padding: 20px 0;
    font-size: 10px;
    font-weight: 900;
}

/* --- ESTILOS DEL MÓDULO RSS --- */

.rss-subscribe-card {
    grid-column: 1;
    margin-top: 0;
    padding-top: 20px;
    border-top: 4px solid #000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rss-header {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 5px;
}

.status-indicator {
    color: #ff4500;
    animation: blink 2s infinite;
}

.rss-body h3 {
    font-family: "Georgia", serif;
    font-size: 24px;
    font-style: italic;
    margin-bottom: 10px;
    color: #000;
}

.rss-body p {
    font-size: 14px;
    max-width: 90%;
    line-height: 1.5;
    margin-bottom: 25px;
}

.rss-button {
    display: inline-block;
    background-color: #1a1a1a;
    color: #fff;
    text-decoration: none;
    padding: 14px 28px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 1px solid #1a1a1a;
}

.rss-button:hover {
    background-color: transparent;
    color: #1a1a1a;
    cursor: pointer;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* --- MEDIA QUERIES --- */

@media (max-width: 900px) {
    .magazine-grid { grid-template-columns: 1fr; }
    .sidebar-cards { grid-column: 1; grid-row: auto; }
    .rss-subscribe-card { grid-column: 1; }
    .footer-container { grid-template-columns: 1fr; gap: 30px; }
}