/* =========================================================
   EDSAONE · Noticias (Figma 217:1469) y noticia individual (Figma 433:2909)
   Marcado: mu-plugin edsaone-noticias.php ([eds_noticias] y plantilla de entrada).
   Este CSS se carga en toda la web, así que también da estilo a las entradas.
   ========================================================= */

/* Cabecera clara sin imagen */
#top .eds-phero--plain { min-height: 0; }
#top .eds-phero--plain .content { padding: 54px 0 90px; }

/* Pastillas: filtro, «Leer más» y paginación */
#top .eds-pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 32px; padding: 6px 10px; border: 2px solid transparent; border-radius: 5px; color: var(--eds-azul-dark); font: 16px/20px var(--eds-font); text-decoration: none; }
#top .eds-pill:hover { background: var(--eds-azul-bg); }
#top .eds-pill.is-active { background: var(--eds-azul-dark); color: var(--eds-blanco); }
#top .eds-pill--outline { border-color: var(--eds-verde); }
#top .eds-pill--outline:hover { background: var(--eds-verde); }
#top .eds-pill--num { background: var(--eds-azul-dark); color: var(--eds-blanco); }
#top .eds-pill--num.is-active { background: var(--eds-azul-light); }
#top .eds-pill--num:hover { filter: brightness(1.2); background: var(--eds-azul-dark); }
#top .eds-pill--arrow { min-width: 42px; background: var(--eds-verde); }
#top .eds-pill--arrow::after { content: ""; width: 22px; height: 14px; background: var(--eds-azul-dark); -webkit-mask: var(--eds-arrow) center / contain no-repeat; mask: var(--eds-arrow) center / contain no-repeat; }
#top .eds-pill--prev::after { transform: scaleX(-1); }
#top .eds-pill--arrow:hover { background: var(--eds-verde); filter: brightness(1.07); }

/* Listado */
#top .eds-no-listado .content { padding: 90px 0; }
#top .eds-news__filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
#top .eds-sec .eds-news__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin: 0; padding: 0; list-style: none; }
#top .eds-sec .eds-news__card { position: relative; display: flex; flex-direction: column; gap: 5px; margin: 0; padding: 0 0 65px; border-bottom: 1px solid var(--eds-azul-light); list-style: none; color: var(--eds-azul-dark); }
#top .eds-news__img { display: block; overflow: hidden; height: 258px; border-radius: var(--eds-radius); background: var(--eds-azul-bg); }
#top .eds-news__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
#top .eds-news__card:hover .eds-news__img img { transform: scale(1.03); }
#top .eds-sec .eds-news__title { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.15; text-transform: none; }
#top .eds-news__title a { color: var(--eds-azul-dark); text-decoration: none; }
#top .eds-news__title a:hover { text-decoration: underline; }
#top .eds-news__meta { margin: 0; color: var(--eds-azul-light); font-size: 13px; line-height: 1.15; }
#top .eds-news__excerpt { margin: 0; font-size: 16px; line-height: 20px; }
#top .eds-news__more { position: absolute; right: 0; bottom: 9px; }
#top .eds-news__empty { margin: 0; color: var(--eds-azul-dark); }
#top .eds-news__pages { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }

/* Noticia individual */
#top.single-post .avia-post-nav { display: none; } /* flechas laterales de Enfold: ya hay anterior/siguiente al pie */
#top .eds-post__hero { padding: 54px 0 70px; background: var(--eds-azul-bg); color: var(--eds-azul-dark); }
#top .eds-post__title { max-width: 910px; margin: 0; color: var(--eds-azul-dark); font: 700 32px/1.15 var(--eds-font); letter-spacing: 0; text-transform: none; }
#top .eds-post__hero .eds-breadcrumb { margin-top: 4px; }
#top .eds-post__meta { margin: 14px 0 0; color: var(--eds-azul-light); font-size: 13px; line-height: 1.15; }
#top .eds-post__body { max-width: 910px; margin: 0 auto; padding: 30px 0 90px; color: var(--eds-azul-dark); }
#top .eds-post__img { margin: 0 0 25px; }
#top .eds-post__img img { display: block; width: 100%; height: auto; border-radius: var(--eds-radius); }
#top .eds-post__content h2, #top .eds-post__content h3 { margin: 25px 0 15px; color: var(--eds-azul-dark); font: 700 20px/1.15 var(--eds-font); letter-spacing: 0; text-transform: none; }
#top .eds-post__content h4 { margin: 20px 0 15px; color: var(--eds-azul-dark); font: 700 16px/1.15 var(--eds-font); letter-spacing: 0; text-transform: none; }
#top .eds-post__content > :first-child { margin-top: 0; }
#top .eds-post__content p { margin: 0 0 10px; font-size: 16px; line-height: 20px; }
#top .eds-post__content a { color: var(--eds-azul-light); }
#top .eds-post__share { display: flex; align-items: center; gap: 16px; width: fit-content; margin: 30px 0 0 auto; padding: 18px 30px; border-radius: var(--eds-radius); background: var(--eds-azul-bg); }
#top .eds-post__share span { display: inline-flex; align-items: center; gap: 10px; margin-right: 10px; font-size: 16px; }
#top .eds-post__share span::after { content: ""; width: 22px; height: 14px; background: var(--eds-azul-dark); -webkit-mask: var(--eds-arrow) center / contain no-repeat; mask: var(--eds-arrow) center / contain no-repeat; }
#top .eds-post__share a { display: inline-flex; color: var(--eds-verde); }
#top .eds-post__share a:hover { color: var(--eds-azul-light); }
#top .eds-post__share svg { width: 22px; height: 22px; }
#top .eds-post__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 60px; }
#top .eds-post__near { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 6px; border-bottom: 1px solid var(--eds-azul-light); color: var(--eds-azul-dark); text-decoration: none; }
#top .eds-post__near--next { grid-column: 2; flex-direction: row-reverse; text-align: right; }
#top .eds-post__near-text { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 90px; }
#top .eds-post__near--next .eds-post__near-text { align-items: flex-end; }
#top .eds-post__near-text strong { font-size: 16px; line-height: 1.15; }
#top .eds-post__near-text .eds-pill { align-self: flex-start; }
#top .eds-post__near--next .eds-post__near-text .eds-pill { align-self: flex-end; }
#top .eds-post__near img { flex: 0 0 140px; width: 140px; height: 90px; object-fit: cover; border-radius: 5px; }

@media only screen and (max-width: 989px) {
  #top .eds-sec .eds-news__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media only screen and (max-width: 767px) {
  #top .eds-phero--plain .content { padding: 40px 0 50px; }
  #top .eds-no-listado .content { padding: 50px 0; }
  /* Filtro en una fila deslizable (con 7 categorías ocupaba casi un cuarto de pantalla) */
  #top .eds-news__filter { flex-wrap: nowrap; overflow-x: auto; margin-right: -20px; padding-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  #top .eds-news__filter::-webkit-scrollbar { display: none; }
  #top .eds-news__filter .eds-pill { flex: 0 0 auto; white-space: nowrap; }
  #top .eds-sec .eds-news__grid { grid-template-columns: 1fr; }
  #top .eds-news__img { height: 210px; }
  #top .eds-post__hero { padding: 40px 0 50px; }
  #top .eds-post__title { font-size: 26px; }
  #top .eds-post__body { padding-bottom: 50px; }
  #top .eds-post__share { width: auto; margin-left: 0; padding: 14px 20px; }
  #top .eds-post__nav { grid-template-columns: 1fr; gap: 30px; }
  #top .eds-post__near--next { grid-column: 1; }
  #top .eds-post__near img { flex-basis: 100px; width: 100px; height: 70px; }
}
