/* Home editorial: la identidad de Transal y el mismo orden de lectura en móvil y escritorio. */
body.home .fp-home-editorial {
  --editorial-navy: #032238;
  --editorial-green: #146c59;
  --editorial-muted: #526672;
  box-sizing: border-box;
  width: auto;
  max-width: none;
  margin-block: 0 !important;
  padding: 64px 24px;
  background: #fff;
  color: var(--editorial-navy);
}
body.home .wp-block-group-is-layout-constrained > .fp-home-editorial {
  max-width: none !important;
  margin-left: calc(50% - 50vw + var(--fp-barra, 0px) / 2) !important;
  margin-right: calc(50% - 50vw + var(--fp-barra, 0px) / 2) !important;
}
body.home .fp-home-editorial__inner { max-width: 1216px; margin-inline: auto; }
body.home #destinos > .fp-encabezado {
  box-sizing: border-box;
  max-width: 1264px;
  margin-inline: auto;
  padding-inline: 24px;
}
body.home #destinos .fp-encabezado__titulo { max-width: 720px; }
body.home .fp-home-editorial__heading {
  margin-bottom: 28px;
}
body.home .fp-home-editorial__actions {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}
body.home .fp-home-editorial__heading > div { min-width: 0; }
body.home .fp-home-editorial h2 {
  margin: 0;
  font-size: clamp(27px, 2.65vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
body.home .fp-home-editorial__heading p {
  margin: 10px 0 0;
  color: var(--editorial-muted);
  font-size: 17px;
  line-height: 1.5;
  max-width: 65ch;
}
body.home .fp-home-editorial__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 12px;
  box-sizing: border-box;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid var(--editorial-navy);
  border-radius: 8px;
  background: #fff;
  color: var(--editorial-navy);
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  text-decoration: none;
}
body.home .fp-home-editorial__more:hover { background: var(--editorial-navy); color: #fff; }
body.home .fp-home-editorial__more svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.home .fp-home-editorial__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
body.home .fp-home-editorial__grid li,
body.home .fp-home-editorial__grid article { min-width: 0; margin: 0; }
body.home .fp-home-editorial__story {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
body.home .fp-home-editorial__image {
  /* Fija la portada antes del texto incluso ante HTML anterior en caché. */
  order: -1;
  flex-shrink: 0;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  background: #dce5e8;
  transition: filter 180ms ease-out;
}
body.home .fp-home-editorial__story:hover .fp-home-editorial__image { filter: brightness(0.96); }
body.home .fp-home-editorial__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 15px 0 9px;
  color: var(--editorial-muted);
  font-size: 14px;
  line-height: 1.5;
}
body.home .fp-home-editorial__topic { color: var(--editorial-green); font-weight: 600; }
body.home .fp-home-editorial h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
body.home .fp-home-editorial__story:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: #8eb1a5;
  text-underline-offset: 4px;
}
body.home .fp-home-editorial__excerpt {
  margin: 12px 0 0;
  color: var(--editorial-muted);
  font-size: 17px;
  line-height: 1.5;
}
body.home .fp-home-editorial--guias { background: #eaf5ef; }
body.home .fp-home-editorial a:focus-visible { outline: 3px solid var(--editorial-green); outline-offset: 5px; }
body.home .fp-home-editorial ::selection { color: var(--editorial-navy); background: #76e4bc; }
@media (min-width: 700px) {
  body.home .fp-home-editorial__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
}
@media (max-width: 699px) {
  body.home .fp-home-editorial { padding: 40px 20px 44px; }
  body.home #destinos > .fp-encabezado { padding-inline: 20px; }
  body.home .fp-home-editorial__heading { display: block; margin-bottom: 28px; }
  body.home .fp-home-editorial__heading p { font-size: 16px; }
  body.home .fp-home-editorial__actions { margin-top: 28px; }
  body.home .fp-home-editorial__more { width: 100%; }
  body.home .fp-home-editorial__grid { gap: 28px; }
  body.home .fp-home-editorial__meta { margin-top: 12px; }
  body.home .fp-home-editorial h3 { font-size: 19px; line-height: 1.4; }
  body.home .fp-home-editorial__excerpt { font-size: 16px; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  body.home .fp-home-editorial__image { transition: none; }
}
