/* ==========================================================================
MOONFLAG NEWS - ESTILO BLANCO Y NEGRO / WIREFRAME MINIMALISTA (styles.css)
========================================================================== */

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #ffffff;
    color: #111111;
    line-height: 1.7;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6, .articulo-header h1 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.01em;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 70vh;
}

.latest-section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: #111111;
    border-left: 6px solid #111111;
    padding-left: 15px;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

/* ==========================================================================
1. ENCABEZADO PRINCIPAL (HEADER & NAVEGACIÓN)
========================================================================== */
.main-header {
    background-color: #ffffff;
    border-bottom: 2px solid #111111;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 55px; /* Logotipo ampliado */
    width: auto;
    filter: grayscale(100%);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.main-nav ul {
    display: flex !important;
    list-style: none !important;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-nav ul li a {
    color: #111111;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: opacity 0.2s ease;
}

.main-nav ul li a:hover {
    opacity: 0.6;
    text-decoration: underline;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #111111;
    display: none;
}

/* Cintillo Editorial Integrado al Header */
.header-banner-editorial {
    background-color: #111111;
    color: #ffffff;
    text-align: center;
    padding: 8px 15px;
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
2. SECCIÓN HERO DE NOTICIA PRINCIPAL
========================================================================== */
.hero-section {
    margin-top: 10px;
    margin-bottom: 50px;
    width: 100%;
}

.hero-card {
    display: flex !important;
    flex-direction: row;
    background-color: #ffffff !important;
    border-radius: 0px !important;
    overflow: hidden;
    border: 2px solid #111111 !important;
    width: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-card:hover {
    transform: translateY(-3px);
    box-shadow: 6px 6px 0px #111111 !important;
}

.hero-image-wrapper {
    flex: 1.2 !important;
    height: 420px !important;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.hero-card:hover .hero-image-wrapper img {
    filter: grayscale(0%);
}

.hero-content {
    flex: 1 !important;
    padding: 50px 40px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #ffffff !important;
    border-left: 2px solid #111111;
}

.badge-hero, .badge {
    background-color: #111111 !important;
    color: #ffffff !important;
    padding: 5px 12px !important;
    font-size: 0.7rem !important;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0px !important;
    align-self: flex-start;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.hero-content h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #111111;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-content p {
    color: #555555;
    margin-bottom: 25px;
    font-size: 1rem;
}

.hero-read-more {
    color: #111111 !important;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: opacity 0.2s ease;
    font-family: 'Outfit', sans-serif;
}

.hero-read-more:hover {
    opacity: 0.5;
    text-decoration: underline;
}

/* ==========================================================================
3. CUADRÍCULA DE CASILLAS DE NOTICIAS SECUNDARIAS
========================================================================== */
.news-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: flex-start;
    width: 100%;
}

.noticia-card {
    background-color: #ffffff;
    border: 2px solid #111111;
    border-radius: 0px;
    padding: 20px;
    width: calc(33.333% - 20px);
    min-width: 290px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.noticia-card:hover {
    transform: translateY(-4px);
    box-shadow: 6px 6px 0px #111111;
}

.noticia-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 0px;
    border: 1px solid #111111;
    margin-bottom: 15px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.noticia-card:hover img {
    filter: grayscale(0%);
}

.noticia-card h3 {
    font-size: 1.2rem;
    color: #111111;
    line-height: 1.35;
    margin-bottom: 10px;
    font-weight: 700;
}

.noticia-card p {
    font-size: 0.9rem;
    color: #555555;
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

.no-news {
    font-size: 1.1rem;
    color: #666666;
    text-align: center;
    padding: 60px 20px;
    width: 100%;
    border: 2px dashed #111111;
}

/* ==========================================================================
4. VISTA DE LECTURA DE ARTÍCULO COMPLETO (SPA)
========================================================================== */
.articulo-completo {
    max-width: 780px;
    margin: 0 auto;
    padding: 10px 0;
}

.btn-volver {
    background: #111111;
    border: 2px solid #111111;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    padding: 8px 16px;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-volver:hover {
    background: #ffffff;
    color: #111111;
}

.articulo-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111111;
    margin: 15px 0;
    line-height: 1.15;
}

.articulo-meta {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    color: #555555;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #111111;
    padding-bottom: 15px;
}

.articulo-imagen {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 0px;
    border: 2px solid #111111;
    margin-bottom: 35px;
    filter: grayscale(100%);
}

.articulo-cuerpo p {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.8;
    color: #222222;
    margin-bottom: 25px;
    white-space: pre-line;
}

.bloque-imagen-container {
    margin: 35px 0;
    text-align: center;
}

.articulo-imagen-secundaria {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 0px;
    border: 2px solid #111111;
    filter: grayscale(100%);
}

.pie-de-foto {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 0.85rem !important;
    color: #555555 !important;
    font-style: italic;
    margin-top: 10px;
    text-align: center !important;
    white-space: normal !important;
}

/* ==========================================================================
5. PIE DE PÁGINA (FOOTER)
========================================================================== */
.main-footer {
    background-color: #111111;
    color: #ffffff;
    padding: 60px 20px 20px 20px;
    margin-top: 60px;
    width: 100%;
    border-top: 2px solid #111111;
}

.footer-container {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #444444;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
}

.footer-column p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #bbbbbb;
}

.footer-column ul {
    list-style: none !important;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #bbbbbb;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-column ul li a:hover {
    color: #ffffff;
    padding-left: 5px;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.social-links a {
    color: #111111;
    background-color: #ffffff;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 0px;
    text-decoration: none;
    text-transform: uppercase;
    border: 1px solid #ffffff;
    transition: all 0.2s ease;
}

.social-links a:hover {
    background-color: transparent;
    color: #ffffff;
}

.footer-contact {
    font-style: italic;
    font-size: 0.85rem;
    color: #888888 !important;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid #333333;
    font-size: 0.85rem;
    color: #888888;
}

/* ==========================================================================
6. RESPONSIVE DESIGN
========================================================================== */
@media (max-width: 992px) {
    .noticia-card {
        width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: -100vh;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        border-bottom: 2px solid #111111;
        transition: top 0.3s ease-in-out;
        z-index: 90;
    }

    .main-nav.active {
        top: 98px;
    }

    .main-nav ul {
        flex-direction: column !important;
        align-items: center;
        padding: 30px 0;
        gap: 20px;
    }

    .hero-card {
        flex-direction: column !important;
    }

    .hero-image-wrapper {
        height: 260px !important;
        width: 100% !important;
    }

    .hero-content {
        padding: 30px 20px !important;
        border-left: none;
        border-top: 2px solid #111111;
    }

    .hero-content h1 {
        font-size: 1.6rem !important;
    }

    .noticia-card {
        width: 100%;
    }

    .articulo-header h1 {
        font-size: 1.8rem;
    }

    .footer-container {
        flex-direction: column !important;
        text-align: center;
        gap: 35px;
    }

    .social-links {
        justify-content: center;
    }
}