/* --- ESTILOS GENERALES DE NOTICIAS --- */

:root {
    --verde-valle: #2d5a27;
    --pizarra: #1a1a1a;
    --crema: #fdfaf5;
}

.bg-light {
    background-color: var(--crema);
}

/* --- LISTADO (noticias.php) --- */

.noticias-header {
    background-color: white;
    padding: 100px 0 60px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
}

.noticias-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--pizarra);
    margin-bottom: 10px;
}

.noticia-item {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 50px;
    margin-bottom: 80px;
    align-items: start;
}

.noticia-foto img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 15px 15px 0px rgba(45, 90, 39, 0.1); /* Sombra estilo editorial */
    transition: transform 0.3s ease;
}

.noticia-item:hover .noticia-foto img {
    transform: scale(1.02);
}

.noticia-cuerpo {
	margin: 10px;
}

.noticia-cuerpo .fecha {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--verde-valle);
    font-weight: 600;
    margin-bottom: 15px;
}

.noticia-cuerpo h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.noticia-cuerpo p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
	margin: 10px;
}

.btn-leer {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--pizarra);
    text-decoration: none;
    border-bottom: 2px solid var(--verde-valle);
    padding-bottom: 5px;
    transition: all 0.3s;
}

.btn-leer:hover {
    background-color: var(--verde-valle);
    color: white;
    padding: 5px 10px;
}

/* --- DETALLE DE LA NOTICIA (noticia_detalle.php) --- */

.noticia-completa {
    background: white;
    margin-top: 0;
}

.post-header {
    padding: 120px 0 60px 0;
    text-align: center;
}

.post-date {
    display: block;
    color: var(--verde-valle);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.post-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.1;
}

/* --- Busca este bloque en tu css/noticias.css --- */
.post-hero-img {
    width: 100%;
    height: 60vh; /* Mantenemos la altura del 60% de la pantalla */
    
    /* CAMBIA ESTO: De 'fixed' a 'scroll' */
    background-attachment: scroll; 
    
    /* Asegura que la imagen se vea bien en todos los tamaños */
    background-size: cover; 
    background-position: center; 
    
    margin-bottom: 80px;
    border-bottom: 5px solid var(--verde-valle); /* Opcional: un toque verde al final de la foto */
}

.post-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 100px 20px;
}

.post-body {
    font-size: 1.25rem;
    line-height: 1.9;
    color: #222;
    font-family: 'Inter', sans-serif;
}

/* Primera letra capitular para darle aire de crónica antigua */
.post-body::first-letter {
    float: left;
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    line-height: 1;
    padding-right: 15px;
    color: var(--verde-valle);
}

.post-footer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #eee;
    text-align: center;
}

.share-box p {
    font-weight: 600;
    margin-bottom: 20px;
}

.btn-share {
    background-color: #25D366;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.3s;
}

.btn-share:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* --- RESPONSIVO --- */

@media (max-width: 992px) {
    .noticia-item {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .post-header h1 {
        font-size: 1.5rem;
    }
    
    .post-hero-img {
        height: 40vh;
    }
}