/* Noticias — Blog, prensa y sector. Figma Noticias 1131:30511 (página libre, sin frames de sección): migas 1131:30811,
   título + bajada 1131:30555, filtros 1131:30764 + 1131:30880, buscador 1131:30875, destacada 1131:30559, grilla
   1131:30641 / 1131:30580 / 1131:30702. La sección arranca debajo del header (139) y termina con la grilla (2509); el
   footer (margin-top 99.67) queda en 2609 como en Figma. Contenido de 1065 (x 188–1253) centrado.
   Las cajas de texto tienen textAlignVertical CENTER: la 1.ª línea arranca en top + (caja − líneas·lh)/2. */

.fs-section.fs-not-listado {
  /* Migas: caja 16 en y=161 con lh 24 → línea en 157 (18 debajo del header). Abajo 1.33: la última fila termina en
     2509.2 (grupo de 512, card de 511) y el footer queda en 2609.2 exacto */
  padding: 18px 0 1.33px;
  font-family: var(--wp--preset--font-family--montserrat);
  color: #706f6f;
}

/* Migas 1131:30811: "Inicio" 400 16/24 (x=188) · chevron 4×7 (x=237) · "Conocimiento" (x=246) · chevron (x=367) ·
   "Noticias" 700 (x=376) */
.fs-not-listado__crumbs {
  margin: 0 0 0 max(16px, calc(50% - 532px));
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  word-spacing: 0.85px;
  color: #706f6f;
}
.fs-not-listado__crumbs a { color: inherit; text-decoration: none; }
.fs-not-listado__crumbs strong { margin-left: 2px; font-weight: 700; } /* "Noticias" en x=376 (la caja de "Conocimiento" es más ancha que el texto) */

/* Título 1131:30557: 700 50/54 tracking -2.28 #57A232 centrado (caja 605 en x=418); caja 38 en y=217 → línea en 209 */
.fs-section.fs-not-listado .fs-not-listado__title {
  margin: 28px 16px 0;
  font-weight: 700;
  font-size: 50px;
  line-height: 54px;
  letter-spacing: 0 /* ISE-045: titulares sin tracking negativo, pedido de la clienta */;
  text-align: center;
  color: #57a232;
}

/* Bajada 1131:30558: 400 20/24 #706F6F centrada en caja 667 (x=387); caja 47 en y=283 con 2 líneas → 282.5 */
.fs-section.fs-not-listado .fs-not-listado__text {
  box-sizing: border-box;
  max-width: 667px;
  margin: 19.5px auto 0;
  font-weight: 400;
  font-size: 20px;
  line-height: 24px;
  text-align: center;
  color: #706f6f;
}

/* ---------- Bloque not-listado ---------- */
.fs-section.fs-not-listado .fs-not-lis {
  box-sizing: border-box;
  width: 1065px;
  max-width: calc(100% - 32px);
  margin: 39.5px auto 0; /* píldoras en y=370 (bajada hasta 330.5) */
}
.fs-not-lis [hidden] { display: none !important; }
.fs-not-lis button { font-family: var(--wp--preset--font-family--montserrat); cursor: pointer; }

/* Fila: filtros a la izquierda (x=188), buscador a la derecha (x=856.6, 400 de ancho: termina 4.6 más allá de la grilla) */
.fs-not-lis__tools { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }

/* "Filtrar por:" 1131:30880: 400 15/24 #706F6F, caja 77 en (188, 374); píldoras desde x=279.3, separadas 12.5 */
.fs-not-lis__bar { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12.5px; }
.fs-not-lis__label {
  flex: 0 0 auto;
  margin: 4px 1.8px 0 0; /* 77 + 1.8 + 12.5 = 91.3 hasta la 1.ª píldora */
  width: 77px;
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 400;
  font-size: 15px;
  line-height: 24px;
  white-space: nowrap;
  color: #706f6f;
}

/* Píldoras 1131:30768 / 30788 / 30779 (vectorizadas): 116.2 / 174.9 / 116.2 × 36.2, borde 1 #57A232, radio total;
   texto 400 12.41 mayúsculas verde (alto de mayúscula 8.9) a 13.6 / 11.3 / 13.9 del borde; chevron 8.7×5 a 12.5 / 11.2 / 12.6
   del borde derecho. Figma escribe "TIPO DE CONTENID" (cortado): acá va completo, entra en la píldora. */
.fs-not-lis__dd { position: relative; flex: 0 0 auto; }
.fs-not-lis__pill,
.fs-not-lis__head {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  height: 36.2px;
  margin: 0;
  padding: 1px 28px 0 12.6px; /* con border-box el borde de 1 va adentro: padding = Figma − 1 */
  border: 1px solid #57a232;
  border-radius: 100px;
  background: #fff url(../../icons/not-chevron.svg) right 12.5px center / 8.75px 5px no-repeat;
  font-weight: 400;
  font-size: 12.41px;
  line-height: 12.41px;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
  color: #57a232;
}
.fs-not-lis__dd--tema .fs-not-lis__pill { width: 116.2px; }
.fs-not-lis__dd--tipo .fs-not-lis__pill { width: 174.9px; padding-left: 10.3px; background-position: right 11.2px center; }
.fs-not-lis__dd--anio .fs-not-lis__pill { width: 116.2px; padding-left: 12.9px; background-position: right 12.6px center; }
.fs-not-lis__dd.is-active .fs-not-lis__pill { font-weight: 700; }

/* Desplegable: sin diseño propio en Noticias → el de los filtros de Proyectos (1131:33888): 7.4 debajo de la píldora,
   radio 12.4, borde 1 verde, opciones 12.41 mayúsculas separadas 12.4; la elegida en 700 */
.fs-not-lis__panel { position: absolute; top: calc(100% + 7.4px); left: 0; min-width: 100%; }
.fs-not-lis__head { display: none; }
.fs-not-lis__opts {
  display: flex;
  flex-direction: column;
  gap: 12.4px;
  box-sizing: border-box;
  width: max-content;
  min-width: 100%;
  margin: 0;
  padding: 11.4px 15.1px 12.6px;
  border: 1px solid #57a232;
  border-radius: 12.4px;
  background: #fff;
  list-style: none;
}
.fs-not-lis__opt,
.fs-not-lis__none {
  display: block;
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 400;
  font-size: 12.41px;
  line-height: 12.41px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: #57a232;
}
.fs-not-lis__none { color: #706f6f; text-transform: none; }
/* Opciones en gris; la elegida (y la que está bajo el mouse) en verde (ISE-043: igual en Proyectos) */
.fs-not-lis__opt { color: #706f6f; transition: color .2s; }
.fs-not-lis__opt[aria-current='true'] { font-weight: 700; color: #57a232; }
.fs-not-lis__opt:hover,
.fs-not-lis__opt:focus-visible { color: #57a232; text-decoration: underline; }

/* Filtros aplicados (ISE-043, como en Proyectos 1131:33939): una línea debajo de «Filtrar por:» con cada filtro y su ×
   (700 12.41 verde subrayado, separados 12.4) y al final "Limpiar filtros ×" */
.fs-not-lis__applied { display: flex; flex-wrap: wrap; align-items: center; gap: 12.4px; margin-top: 21.1px; }
.fs-not-lis__chip {
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700;
  font-size: 12.41px;
  line-height: 14.9px;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  color: #57a232;
}
.fs-not-lis__clear {
  align-self: center;
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700;
  font-size: 12.41px;
  line-height: 14.9px;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  color: #57a232;
}

/* Buscador (ISE-042, diseño final del cliente; en Figma 1131:30875 era una línea con la lupa a la izquierda): píldora
   400×48 como la de mobile, borde 1 #57A232, "Buscar" 400 16/22 #706F6F a 22 del borde, lupa de trazo 18 a 20 del borde
   derecho; centrada en vertical con las píldoras de los filtros (36.2) */
.fs-not-lis__search {
  position: relative;
  display: flex;
  flex: 0 0 400px;
  align-items: center;
  box-sizing: border-box;
  height: 48px;
  margin: -5.9px -4.6px 0 0;
  padding: 0 20px 0 22px;
  border: 1px solid #57a232;
  border-radius: 100px;
}
.fs-not-lis__search.fs-field-fx::after { display: none; } /* sin la línea animada de los campos: es una píldora */
.fs-not-lis__search.fs-field-fx { transition: box-shadow .35s var(--fs-ease); }
.fs-not-lis__search.fs-field-fx:focus-within { box-shadow: 0 0 0 3px var(--fs-verde-suave); } /* halo al enfocar, como FAQs */
.fs-not-lis__input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 24px;
  margin: 0;
  padding: 0 30px 0 0;
  border: 0;
  border-radius: 0;
  outline-offset: 4px;
  background: none;
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  color: #706f6f;
  -webkit-appearance: none;
  appearance: none;
}
.fs-not-lis__input::placeholder { color: #706f6f; opacity: 1; }
.fs-not-lis__input::-webkit-search-cancel-button { cursor: pointer; }
.fs-not-lis__go {
  position: absolute;
  top: 50%;
  right: 20px;
  width: 18px;
  height: 18px;
  margin: -9px 0 0;
  padding: 0;
  border: 0;
  background: url(../../icons/not-lupa-mobile.svg) center / 18px 18px no-repeat;
}

/* Destacada 1131:30559 en y=430 (23.8 debajo de las píldoras) */
.fs-not-lis__destacada { margin-top: 23.8px; }

/* Grilla: 3 columnas de 339, gap 24; filas cada 552 (cards de 511 en grupos de 512: 41 entre cards); 40.2 debajo de la
   destacada (sin destacada, 23.8 debajo de los filtros) */
.fs-not-lis__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 41px 24px;
  margin-top: 23.8px;
}
.fs-not-lis__destacada + .fs-not-lis__grid { margin-top: 40.2px; }

.fs-not-lis__empty {
  margin: 40px 0 0;
  font-family: var(--wp--preset--font-family--montserrat);
  font-size: 16px;
  line-height: 21px;
  color: #706f6f;
}

/* "Cargar más": sin diseño en Figma (aparece solo con más de 9 noticias). Píldora de los filtros, centrada, 40 debajo */
.fs-not-lis__more { margin: 40px 0 0; text-align: center; }
.fs-not-lis__more-link {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  height: 36.2px;
  padding: 0 24px;
  border: 1px solid #57a232;
  border-radius: 100px;
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 400;
  font-size: 12.41px;
  line-height: 12.41px;
  text-transform: uppercase;
  text-decoration: none;
  color: #57a232;
}
/* Hover: relleno verde suave + flecha de la capa común (.fs-btn-fx.fs-btn-fx--claro, motion.css) */
.fs-not-lis__more-link[aria-busy='true'] { opacity: 0.5; pointer-events: none; }

/* Mobile — Figma Noticias Mobile 1131:44754 (390×4943): columna con padding 24/20/40/20 y gap 20; el footer va pegado.
   Migas 13/19, título 700 32/36 tracking -1.5, bajada 17/23. Buscador 1131:44758 ARRIBA de los filtros: píldora 350×44,
   borde 1 verde, padding 0/16/0/20, "Buscar" 16/22, lupa de trazo 15×15 a la derecha. Filtros 1131:44761: fila que
   desliza (370 hasta el borde, padding derecho 20), gap 8, "Filtrar por:" 13/19, píldoras 36 de alto con padding
   0/14/0/16, texto 12/17 y chevron 8×4 a 20 del texto. Destacada 1131:44772 y lista 1131:44780 (gap 40). */
@media screen and (max-width: 749px) {
  .fs-section.fs-not-listado { padding: 24px 20px 40px; }
  .fs-not-listado__crumbs { margin: 0; font-size: 13px; line-height: 19px; word-spacing: 3.6px; }
  .fs-section.fs-not-listado .fs-not-listado__title { margin: 20px 0 0; font-size: 32px; line-height: 36px; letter-spacing: 0 /* ISE-045: titulares sin tracking negativo, pedido de la clienta */; }
  .fs-section.fs-not-listado .fs-not-listado__text { max-width: none; margin-top: 20px; font-size: 17px; line-height: 23px; }

  .fs-section.fs-not-listado .fs-not-lis { width: auto; max-width: none; margin-top: 20px; }
  .fs-not-lis__tools { flex-direction: column; gap: 20px; }
  .fs-not-lis__search {
    order: -1;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 16px 0 20px;
    border: 1px solid #57a232;
    border-radius: 100px;
  }
  .fs-not-lis__input { height: 22px; padding: 0 24px 0 0; font-size: 16px; line-height: 22px; }
  .fs-not-lis__go { top: 50%; right: 16px; left: auto; width: 15px; height: 15px; margin-top: -7.5px; background-image: url(../../icons/not-lupa-mobile.svg); background-size: 15px 15px; }

  /* ISE-045: los filtros bajan de línea en vez de deslizarse (igual que Proyectos: así se ven todos) */
  .fs-not-lis__bar {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
  .fs-not-lis__bar::-webkit-scrollbar { display: none; }
  .fs-not-lis__label { width: 67px; margin: 0; font-size: 13px; line-height: 19px; } /* caja de Figma */
  .fs-not-lis__dd { position: static; }
  .fs-not-lis .fs-not-lis__dd .fs-not-lis__pill,
  .fs-not-lis__head {
    width: auto;
    height: 36px;
    padding: 0 42px 0 16px; /* Figma: texto a 17 del borde exterior (16 + borde), chevron 8 a 20 del texto y a 15 del borde */
    background: #fff url(../../icons/not-chevron-mobile.svg) right 14px center / 8px 4px no-repeat;
    font-size: 12px;
    line-height: 17px;
  }
  /* Desplegable abierto (como Proyectos mobile 1131:46334): ocupa el ancho de la fila, opciones en una caja de radio 20 */
  .fs-not-lis__panel { top: 64px; right: 0; left: 0; z-index: 5; } /* sobre la fila de filtros (buscador 44 + 20) */
  .fs-not-lis__head { display: flex; width: 100%; background-image: none; position: relative; }
  /* Con un filtro abierto no asoman las otras píldoras ni «Filtrar por:» al costado (ISE-044) */
  .fs-not-lis__bar:has(.is-open) > :not(.is-open) { visibility: hidden; }
  .fs-not-lis__dd.is-open > .fs-not-lis__pill { visibility: hidden; } /* la propia píldora queda detrás y asomaba a la derecha */
  .fs-not-lis__head::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 14px;
    width: 8px;
    height: 4px;
    margin-top: -2px;
    background: url(../../icons/not-chevron-mobile.svg) center / 8px 4px no-repeat;
    transform: rotate(180deg);
  }
  .fs-not-lis__opts { gap: 14px; width: 100%; margin-top: 8px; padding: 15px; border-radius: 20px; }
  .fs-not-lis__opt,
  .fs-not-lis__none { font-size: 12px; line-height: 17px; white-space: normal; }
  .fs-not-lis__clear { font-size: 13px; line-height: 19px; text-underline-offset: 2px; }

  .fs-not-lis__destacada { margin-top: 20px; }
  .fs-not-lis__grid { grid-template-columns: 100%; gap: 40px; margin-top: 20px; }
  .fs-not-lis__destacada + .fs-not-lis__grid { margin-top: 40px; }
  .fs-not-lis__more-link { height: 36px; font-size: 12px; line-height: 17px; }
}

/* ---------- Animación (capa común en motion.css; prototipo aprobado 2026-10-15) ----------
   Migas, título y bajada suben escalonados (motion.js); después entra la fila de filtros + buscador entera
   (.fs-reveal en blocks/not-listado/render.php, así el buscador no hace el zoom de los formularios) y la destacada
   (not-card.css). Grilla: cards con zoom escalonado por fila: el retardo va por columna (--fs-col, lo calcula
   blocks/not-listado/view.js); las que trae "Cargar más" entran igual (view.js las observa). Desplegables de los filtros:
   bajan con un fundido al abrirse. Buscador: línea verde de 2 que crece al enfocar (.fs-field-fx; en mobile no, el
   buscador es una píldora). */
html.fs-anim .fs-not-lis__tools.fs-reveal { transition-delay: .33s; }
html.fs-anim .fs-not-lis__destacada .fs-not-card.fs-reveal { --fs-dest-delay: .44s; transition-delay: .44s; }
html.fs-anim .fs-not-lis__grid > .fs-not-card.fs-reveal { transition-delay: calc(var(--fs-col, 0) * 110ms); }
html.fs-anim .fs-not-lis__dd.is-open .fs-not-lis__opts { animation: fs-not-desplegar .35s var(--fs-ease) both; }
@keyframes fs-not-desplegar { from { opacity: 0; translate: 0 -6px; } }

/* Elementor (adaptación): bloques-wp.css subraya los links de .fs-section con (0,1,1) como la referencia (Elementor lo
   quita con `.elementor a`); las opciones de los filtros y "Cargar más" van sin subrayado salvo en hover/foco (LESSONS). */
.fs-section .fs-not-lis__opt,
.fs-section .fs-not-lis__more-link { text-decoration: none; }
.fs-section .fs-not-lis__opt:hover,
.fs-section .fs-not-lis__opt:focus-visible { text-decoration: underline; }
