/* Rotador editorial: una nota con foto y tres titulares para elegir. */
#home .lead-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 10px;
  color: #52616c;
  font: 800 11px/1 Arial, sans-serif;
  letter-spacing: .1em;
}
#home .lead-controls b { margin-left: 10px; color: #0c1720; letter-spacing: .04em; }
#home .lead-controls > div { display: flex; gap: 5px; }
#home .lead-controls button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 32px;
  border: 1px solid #bac3c9;
  border-radius: 3px;
  color: #11202b;
  background: #fff;
  font: 700 20px/1 Arial, sans-serif;
}
#home .lead-controls button:hover,
#home .lead-controls button:focus-visible { border-color: #b3c900; background: #e9ec54; }
#home .lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr);
  grid-template-rows: auto;
  align-items: stretch;
  gap: 10px;
  overflow: visible;
}
#home .lead-main,
#home .lead-side { min-width: 0; }
#home .lead-side { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(3, minmax(174px, auto)); gap: 8px; }
#home .lead-main .story {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  height: 100%;
  min-height: 550px;
  padding: 0;
  border-radius: 4px;
  background: #fff !important;
  color: #101923;
}
#home .lead-main .story .story-media,
#home .lead-main .story.big.story-long .story-media {
  display: block;
  width: 100%;
  height: auto !important;
  aspect-ratio: 16 / 9;
  flex: none;
  object-fit: cover;
}
#home .lead-main .story .story-media.image-fallback {
  padding: 24px;
  object-fit: contain;
  background: #101923;
}
#home .lead-main .story .story-copy { width: 100%; max-width: none; padding: 20px 24px 25px; }
#home .lead-main .story h1 { max-width: none; font-size: clamp(27px, 2.6vw, 37px); overflow-wrap: anywhere; }
#home .lead-main .story p,
#home .lead-main .story .go { display: none; }
#home .lead-side .story:not(.big) {
  display: grid;
  grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  grid-column: auto !important;
  grid-row: auto !important;
  width: 100%;
  height: 100%;
  min-height: 174px;
  padding: 12px 14px;
  border: 1px solid #e1e6e9;
  border-left: 4px solid var(--accent, #b3c900);
  border-radius: 7px;
  color: #101923;
  background: #fff !important;
  box-shadow: 0 5px 18px #1326330d;
}
#home .lead-side .story:hover,
#home .lead-side .story:focus-visible { border-color: var(--accent, #b3c900); background: #f9fafb !important; transform: translateY(-2px); }
#home .lead-side .story::before {
  content: attr(data-position);
  display: grid;
  place-items: center;
  position: absolute;
  inset: 18px auto auto 20px;
  width: 27px;
  height: 25px;
  opacity: 1;
  color: #101923;
  background: var(--accent, #b3c900);
  border-radius: 3px;
  font: 800 11px/1 Arial, sans-serif;
  z-index: 3;
}
#home .lead-side .story::after,
#home .lead-side .story p,
#home .lead-side .story .go { display: none !important; }
#home .lead-side .story .story-media {
  display: block !important;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
}
#home .lead-side .story .story-media.image-fallback { padding: 12px; object-fit: contain; background: #101923; }
#home .lead-side .story .story-copy { width: 100%; max-width: none; min-width: 0; padding: 0; }
#home .lead-side .story .kicker { padding: 5px 7px; color: #101923; background: var(--accent, #b3c900); font-size: 10px; }
#home .lead-side .story h2,
#home .lead-side .story.story-long h2 {
  margin: 9px 0 0;
  color: #101923;
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.2;
  font-weight: 700;
  overflow: visible;
  overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  #home .lead-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  #home .lead-main .story { min-height: 0; }
  #home .lead-main .story .story-media,
  #home .lead-main .story.big.story-long .story-media { height: auto; aspect-ratio: 16 / 9; }
  #home .lead-side { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto; }
  #home .lead-side .story:not(.big) { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 0; min-height: 0; padding: 0 0 12px; }
  #home .lead-side .story .story-media { border-radius: 0; }
  #home .lead-side .story .story-copy { padding: 12px; }
  #home .lead-side .story::before { inset: 10px auto auto 10px; }
  #home .lead-side .story h2,
  #home .lead-side .story.story-long h2 { font-size: 15px; }
}
@media (max-width: 620px) {
  #home .lead-controls { margin: 2px 0 9px; }
  #home .lead-grid { gap: 9px; padding: 0; margin: 0; }
  #home .lead-main .story,
  #home .lead-main .story.big { display: flex; width: 100%; min-height: 0; }
  #home .lead-main .story .story-copy { padding: 17px 18px 22px; }
  #home .lead-main .story h1 { font-size: clamp(25px, 6.8vw, 30px); line-height: 1.13; }
  #home .lead-side {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }
  #home .lead-side .story:not(.big) {
    grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 96px;
    height: auto;
    padding: 9px;
  }
  #home .lead-side .story .story-media { min-height: 0; aspect-ratio: 16 / 9; border-radius: 4px; }
  #home .lead-side .story .story-copy { padding: 0; }
  #home .lead-side .story::before { inset: 14px auto auto 14px; }
  #home .lead-side .story .kicker { font-size: 9px; padding: 4px 5px; }
  #home .lead-side .story h2,
  #home .lead-side .story.story-long h2 { margin-top: 6px; font-size: 14px; line-height: 1.18; }
}
@media (prefers-reduced-motion: reduce) {
  #home .lead-grid .story { transition: none; }
}
