/*
 Theme Name:   News Child Theme (GeneratePress)
 Theme URI:    https://elmexicoindeleble.com/
 Description:  Tema hijo para noticias con estilo Newspaper Pro sobre GeneratePress.
 Author:       Tu Nombre
 Template:     generatepress
 Version:      1.1.0
*/

/* --- Estilos del Header (Negro, Texto Blanco, Hover Rojo) --- */
.site-header {
    background: #000000 !important;
    display: block !important;
    visibility: visible !important;
    border-bottom: 3px solid #ff0000; /* Línea roja de acento estilo News */
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.site-logo img {
    max-height: 55px;
    width: auto;
    display: block;
}

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

.main-nav a {
    text-decoration: none;
    color: #ffffff !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    color: #ff0000 !important;
}

/* --- Layout Estilo Newspaper Pro --- */
.news-home-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 30px 20px;
    background: #fff;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Títulos de Bloque */
.block-title {
    position: relative;
    border-bottom: 2px solid #222;
    margin-bottom: 25px;
    margin-top: 30px;
}

.block-title span {
    background: #222;
    color: #fff;
    padding: 5px 15px;
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Hero Grid (1 Grande + 4 Pequeños) */
.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 250px 250px;
    gap: 10px;
    margin-bottom: 40px;
}

.hero-item {
    position: relative;
    overflow: hidden;
    background: #000;
}

.hero-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: transform 0.5s ease;
}

.hero-item:hover img {
    transform: scale(1.1);
}

.hero-large {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    color: #fff;
}

.cat-badge {
    background: #ff0000;
    color: #fff;
    font-size: 10px;
    text-transform: uppercase;
    padding: 3px 8px;
    font-weight: bold;
    margin-bottom: 10px;
    display: inline-block;
}

.hero-title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.3;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-large .hero-title {
    font-size: 2.2rem;
}

/* Sección Secundaria (Post List) */
.secondary-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.post-list-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.post-list-thumb {
    width: 220px;
    height: 140px;
    flex-shrink: 0;
    overflow: hidden;
}

.post-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.post-list-item:hover .post-list-thumb img {
    transform: scale(1.05);
}

.post-list-content h3 {
    margin: 5px 0 10px 0;
    font-size: 1.3rem;
}

.post-list-content a {
    color: #222;
    text-decoration: none;
}

.post-list-content a:hover {
    color: #ff0000;
}

/* Footer */
.site-footer {
    background: #1a1a1a;
    color: #999;
    padding: 40px 0;
    text-align: center;
    font-size: 0.85rem;
    border-top: 4px solid #333;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .hero-large {
        grid-column: 1 / 3;
    }
    .secondary-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-large {
        grid-column: 1 / 2;
    }
    .post-list-item {
        flex-direction: column;
    }
    .post-list-thumb {
        width: 100%;
        height: 200px;
    }
}