/* ============================
   CÓRDOBA SANA · estilos base
   ============================ */

:root {
    --color-verde: #009640;
    --color-verde-oscuro: #35755a;
    --color-gris: #555;
    --fuente-titular: 'Playfair Display', serif;
    --fuente-texto: 'Lora', serif;
}

/* Tipografía general */
body {
    font-family: var(--fuente-texto);
    line-height: 1.6;
}

/* Enlaces */
a {
    color: var(--color-verde);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--color-verde-oscuro);
    text-decoration: underline;
}

/* Cabecera */
header {
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
}
header a {
    font-weight: 600;
}

/* Titulares */
h1, h2, h3, h4 {
    font-family: var(--fuente-titular);
	color: #222;
}

/* Sangrar primera línea en artículos */
.prose p {
  text-indent: 1.75em; 
  margin-bottom: 0.9em;
  line-height: 1.8;
}

.prose p:first-of-type,
.prose h2 + p,
.prose h3 + p {
  text-indent: 0;
}

.articulo p {
  margin-bottom: 0.9em;
  line-height: 1.8;
}

.articulo p:first-of-type,
.articulo h2 + p,
.articulo h3 + p {
  text-indent: 0;
}

.articulo ul {
    list-style-type: disc;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.articulo ol {
    list-style-type: decimal;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.articulo li {
    margin-bottom: 0.5rem;
}

/* Noticia destacada */
.destacada article {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.destacada img {
    border-radius: 0.75rem;
    max-height: 480px;
    object-fit: cover;
}
.hero-text {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  max-width: 700px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px); /* compatibilidad Safari */
}
.hero-text h1 {
  color: #fff !important;
}
.hero-text p {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Grid de noticias */
.grid-noticias article img {
    transition: transform 0.3s ease;
}
.grid-noticias article:hover img {
    transform: scale(1.03);
}

/* Ejemplar reciente */
.ejemplar img {
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}


/* Etiquetas de categoría */
.categoria-tag {
  display: inline-block;
  background-color: var(--color-verde);
  color: #fff;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.4rem;
}

/* Bloque de compartir */
.compartir a {
  transition: color 0.2s ease, transform 0.2s ease;
}
.compartir a:hover {
  transform: scale(1.1);
}


/* Para los anuncios */
.banner img {
  max-width: 100%;
  height: auto;
}
.banner-cabecera img {
  max-height: 90px;
}
.banner-lateral img {
  max-width: 300px;
}



aside h2 {
  border-color: var(--color-verde);
}
aside .text-green-700:hover {
  color: var(--color-verde-oscuro);
}

/* Footer */
footer {
    background-color: #fff;
    border-top: 1px solid #eee;
    color: #777;
}
footer a {
    color: var(--color-verde);
}
footer a:hover {
    color: var(--color-verde-oscuro);
}

/* Utilidades pequeñas */
.texto-verde {
    color: var(--color-verde);
}
.bg-verde {
    background-color: var(--color-verde);
    color: #fff;
}
.boton {
    display: inline-block;
    background-color: var(--color-verde);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.4rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
}
.boton:hover {
    background-color: var(--color-verde-oscuro);
}
.fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Estilo editorial */
.prose p {
  margin-bottom: 1rem;
}
.prose h2, .prose h3 {
  color: var(--color-verde);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.prose ul, .prose ol {
  margin-left: 1.25rem;
  margin-bottom: 1rem;
}
.prose a {
  color: var(--color-verde);
  text-decoration: underline;
}



/* Adaptaciones responsive */
@media (min-width: 768px) {
    .destacada article {
        flex-direction: row;
        align-items: flex-start;
    }
    .destacada img {
        width: 50%;
    }
}
