:root {
  --ink: #06283a;
  --muted: #52616c;
  --purple: #814595;
  --purple-dark: #06283a;
  --paper: #fff;
  --line: #e3e7e9;
  --lilac: #f3edf7;
  --sun: #ffb90b;
  --brand-bar: #87458b;
}
body { background: white; }
h1, h2 { font-family: var(--sans); font-weight: 750; letter-spacing: -.045em; }
.eyebrow { text-transform: none; letter-spacing: 0; font-size: 14px; }
.button { border-radius: 7px; box-shadow: none !important; font-weight: 650; }
.button:hover { transform: none; }
.button-outline { background: white; }
.contact-bar { display: none; }
.sidebar-card h3, .archive-list a, .news-card h3 { font-family: var(--sans); }
.site-header { background: var(--brand-bar); color: white; backdrop-filter: none; border-bottom: 0; }
.header-inner { height: 74px; }
.brand img { width: 106px; height: auto; }
.header-tools .header-congress { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.header-tools .header-congress:hover { background: #ffd05a; border-color: #ffd05a; }
.site-header :is(.search-button, .menu-toggle) { color: white; }
.site-header :is(.brand, .search-button, .menu-toggle, .header-congress):focus-visible { outline-color: white; }
.footer { background: var(--lilac); color: var(--ink); }
.footer .footer-brand img { filter: none; height: auto; }
.footer :is(.footer-links, .footer-contact a, .footer-links a:hover, .social-links a) { color: var(--ink); }
.footer :is(.footer-brand p, .footer-contact p, .footer-bottom) { color: var(--muted); }
.footer .footer-bottom { border-color: #d8cedf; }
.footer :is(.legal-links a:hover, .social-links a:hover) { color: var(--purple); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* ===== Portada · tercera dirección visual (9 nov 2026) =====
   Las rutas de colores del Congreso guían la portada.
   Navy #06283A, violeta #814595, amarillo #FFB90B, rojo #ED2B24, lila #F3EDF7. */
:root { --red: #ed2b24; --navy: #06283a; }
:is(.h-routes, .h-congress, .h-posters, .h-services, .h-learn, .h-master, .h-state, .h-join, .h-network, .h-news) h2 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.1; letter-spacing: -.045em; font-weight: 780; }
/* Comunes que otras páginas siguen usando */
.prose .source-photo { margin-bottom: 24px; }
.prose .source-photo img { width: 100%; margin: 0; border-radius: 10px; }
.source-photo figcaption { margin-top: 5px; font-size: 12px; color: var(--muted); }
.button-white { background: white; color: var(--purple); border-color: white; }
.button-white:hover { background: #eee8f1; color: var(--purple); border-color: #eee8f1; }
.news-card .news-story { display: block; width: 100%; }
.news-card .news-image { display: block; width: 100%; margin-bottom: 14px; aspect-ratio: 16/10; background: var(--lilac); border-radius: 8px; overflow: hidden; }
.news-image img { width: 100%; height: 100%; object-fit: contain; }
.news-story time { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.news-story:hover h3 { color: var(--purple); text-decoration: underline; text-underline-offset: 4px; }
/* 1. Primer vistazo */
.h-hero { position: relative; isolation: isolate; overflow: hidden; background: #f4efe9; min-height: min(calc(100svh - 74px), 820px); display: grid; align-items: center; padding: clamp(48px, 7vw, 110px) 0; }
.h-hero-bg { position: absolute; inset: 0; z-index: -2; }
.h-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 45%; }
.h-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #fff 0%, #fffffff0 34%, #ffffffc4 47%, #ffffff00 64%); }
.h-hero-grid { display: grid; grid-template-columns: minmax(0, 660px); }
.h-hero h1 { font-family: var(--sans); font-size: clamp(46px, 5.4vw, 80px); line-height: .96; letter-spacing: -.05em; font-weight: 800; color: var(--navy); }
.h-hero-lead { margin-top: 28px; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.5; color: var(--navy); max-width: 30em; }
.h-hero-actions { margin-top: 32px; display: grid; gap: 18px; justify-items: start; }
.h-call { display: inline-grid; gap: 2px; padding: 14px 26px 16px; background: var(--purple); color: white; border-radius: 6px; transition: background .18s, transform .18s; }
.h-call span { font-size: 14px; font-weight: 600; }
.h-call strong { font-size: clamp(26px, 2.4vw, 34px); line-height: 1; letter-spacing: -.03em; font-weight: 780; font-variant-numeric: tabular-nums; }
.h-call:hover { background: var(--navy); }
.h-call:active { transform: scale(.98); }
.h-hero-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
/* Actividad especial. Imagen y colores de la web de la votación. */
.h-vote {
  padding: clamp(24px, 4vw, 56px) 0;
  background: white;
}
.h-vote-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 34%);
  align-items: center;
  gap: 16px 36px;
  padding: 28px clamp(24px, 5vw, 64px);
  border-radius: 8px;
  background: #2e1a47;
  color: white;
  text-decoration: none;
}
.h-vote-copy { padding: 12px 0; }
.h-vote-label {
  margin: 0 0 14px;
  color: #e2b23a;
  font-size: 15px;
  font-weight: 650;
}
.h-vote h2 {
  max-width: 12ch;
  color: white;
  font-size: clamp(36px, 4.4vw, 60px);
  font-weight: 780;
  line-height: 1.03;
  letter-spacing: -.04em;
}
.h-vote-lead {
  max-width: 34em;
  margin-top: 18px;
  color: #f0eaf7;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
}
.h-vote-deadline { margin-top: 10px; color: #d7cbe7; font-size: 15px; }
.h-vote-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 26px;
  padding: 14px 22px;
  border-radius: 7px;
  background: #e2b23a;
  color: #1f1830;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.4;
}
.h-vote-banner:hover .h-vote-cta { background: #f1c85f; text-decoration: underline; text-underline-offset: 4px; }
.h-vote-banner:focus-visible { outline: 3px solid #814595; outline-offset: 5px; }
.h-vote-visual { display: grid; justify-items: center; gap: 18px; }
.h-vote-logo { display: block; width: 100%; max-width: 340px; height: auto; }
.h-vote-art { display: block; width: 100%; max-width: 340px; height: auto; justify-self: center; }
@media (max-width: 640px) {
  .h-vote-banner { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 28px 24px 20px; }
  .h-vote-copy { padding: 0; }
  .h-vote h2 { max-width: 12ch; font-size: clamp(34px, 9vw, 48px); }
  .h-vote-visual { gap: 12px; margin-top: 24px; }
  .h-vote-logo { max-width: 280px; }
  .h-vote-art { width: 220px; max-width: 100%; }
  .h-vote-cta { width: 100%; margin-top: 22px; }
}
/* 2. Rutas */
.h-routes { background: var(--navy); color: white; padding: clamp(48px, 6vw, 88px) 0 clamp(52px, 6vw, 92px); }
.h-routes h2 { color: white; }
.h-route-line { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 36px; counter-reset: none; }
.h-route-line li { position: relative; min-width: 0; padding-top: 34px; }
.h-route-line li::before { content: ''; position: absolute; top: 9px; left: 0; right: -36px; height: 5px; background: var(--route, var(--purple)); }
.h-route-line li:nth-child(4n)::before, .h-route-line li:last-child::before { right: 0; }
.h-route-line li::after { content: ''; position: absolute; top: 2px; left: 0; width: 19px; height: 19px; border-radius: 50%; background: var(--navy); border: 5px solid var(--route, var(--purple)); transition: transform .2s; }
.h-route-line li:nth-child(3n+1) { --route: #a35bb8; }
.h-route-line li:nth-child(3n+2) { --route: var(--sun); }
.h-route-line li:nth-child(3n) { --route: var(--red); }
.h-route-line a { display: grid; align-content: start; gap: 12px; padding: 10px 12px 8px 0; color: white; }
.h-route-line strong { font-size: clamp(22px, 2vw, 27px); line-height: 1.15; letter-spacing: -.025em; font-weight: 750; overflow-wrap: break-word; }
.h-route-line span { max-width: 26ch; font-size: 16px; line-height: 1.5; color: #d7e0e5; }
.h-route-line a:hover strong, .h-route-line a:focus-visible strong { text-decoration: underline; text-decoration-color: var(--route); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.h-route-line li:hover::after { transform: scale(1.25); }
.h-route-line a:focus-visible { outline-color: white; }
/* 3. Congreso */
.h-congress-archive { padding: clamp(40px, 6vw, 80px) 0; background: white; scroll-margin-top: 90px; }
.h-congress-archive-grid { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(24px, 5vw, 64px); }
.h-congress-archive-image { display: block; overflow: hidden; border-radius: 8px; }
.h-congress-archive-image img { display: block; width: 100%; height: auto; }
.h-congress-archive h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.06; }
.h-congress-archive-title { margin-top: 18px; font-size: clamp(20px, 2vw, 26px); line-height: 1.25; font-weight: 650; color: var(--navy); }
.h-congress-archive-date { margin-top: 12px; font-size: 14px; color: var(--muted); }
.h-congress-archive-copy > p:last-of-type { margin-top: 18px; color: var(--muted); font-size: 17px; }
.h-congress-archive-copy > .button { margin-top: 24px; }
@media (max-width: 800px) {
  .h-congress-archive-grid { grid-template-columns: minmax(0, 1fr); }
  .h-congress-archive-copy > .button { width: 100%; }
}
.h-congress { background: white; padding: clamp(56px, 7vw, 110px) 0 clamp(40px, 5vw, 70px); }
.h-congress-head { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 48px; align-items: end; margin-bottom: 28px; }
.h-congress-head p { font-size: 18px; line-height: 1.5; color: var(--navy); max-width: 34em; }
.congress-banner { display: block; position: relative; overflow: hidden; border-radius: 6px; background: #faf8f5; }
.congress-banner img { display: block; width: 100%; height: auto; transition: transform .5s ease; }
.congress-banner:hover img { transform: scale(1.012); }
.congress-mobile-copy { display: none; }
.h-congress-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-top: 22px; }
.button.h-sun { background: var(--sun); border-color: var(--sun); color: var(--navy); font-size: 17px; min-height: 56px; padding-inline: 30px; font-weight: 750; }
.button.h-sun:hover { background: var(--navy); border-color: var(--navy); color: white; }
/* 4. Carteles */
.h-posters { background: var(--navy); color: white; padding: clamp(56px, 7vw, 100px) 0 clamp(48px, 6vw, 84px); scroll-margin-top: 70px; }
.h-posters-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px 40px; align-items: end; margin-bottom: 30px; }
.h-posters h2 { color: white; }
.h-posters-head p { color: #d7e0e5; font-size: 16px; max-width: 26em; }
.carousel-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.carousel-tools > span { font-size: 14px; margin-right: 8px; color: #d7e0e5; font-variant-numeric: tabular-nums; }
.carousel-tools button { width: 52px; height: 52px; border: 0; border-radius: 50%; background: white; color: var(--navy); font-size: 24px; line-height: 1; transition: background .18s, transform .18s; }
.carousel-tools button:hover { background: var(--sun); }
.carousel-tools button:active { transform: scale(.94); }
.carousel-tools button:disabled { opacity: .3; cursor: default; background: white; }
.carousel-tools button:focus-visible { outline-color: var(--sun); }
.campaign-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; padding: 4px 4px 18px; margin-inline: -4px; scrollbar-width: thin; scrollbar-color: var(--sun) #ffffff22; }
.campaign-track:focus-visible { outline-color: var(--sun); }
.campaign-card { min-width: 0; scroll-snap-align: start; }
.poster-button { display: block; border: 0; background: white; padding: 0; position: relative; width: 100%; overflow: hidden; border-radius: 4px; cursor: zoom-in; }
.poster-button > img { width: 100%; height: auto; aspect-ratio: 10/9; object-fit: contain; transition: transform .35s ease; }
.poster-button:hover > img { transform: scale(1.02); }
.poster-button:focus-visible { outline-color: var(--sun); }
.poster-zoom { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 12px; background: #e9eef1; color: var(--navy); font-size: 14px; font-weight: 650; transition: background .18s, color .18s; }
.poster-zoom svg { width: 15px; height: 15px; stroke-width: 2; }
.poster-button:hover .poster-zoom { background: var(--sun); }
.campaign-caption { padding-top: 14px; }
.campaign-caption > span { font-size: 14px; color: var(--sun); font-weight: 600; }
.campaign-caption h3 { font-size: 20px; line-height: 1.2; font-weight: 700; margin-top: 4px; letter-spacing: -.02em; color: white; }
.campaign-caption h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
/* 5. Servicios */
.h-services { background: white; padding: clamp(64px, 8vw, 130px) 0; }
.h-services-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.h-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: sticky; top: 96px; }
.h-shot { position: relative; display: block; overflow: hidden; border-radius: 4px; color: white; }
.h-shot-1 { grid-column: 1 / -1; }
.h-shot img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s ease; }
.h-shot-1 img { aspect-ratio: 16 / 9; object-position: 50% 30%; }
.h-shot:hover img { transform: scale(1.04); }
.h-shot span { position: absolute; left: 0; bottom: 0; padding: 7px 12px; background: var(--navy); font-size: 13px; font-weight: 600; }
.h-services-copy > p { margin-top: 20px; font-size: 18px; line-height: 1.55; color: var(--navy); }
.h-services-copy > p a { color: var(--purple); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.h-service-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 4px; }
.h-service-list a { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; padding: 12px 12px 12px 0; border-radius: 6px; transition: background .18s; }
.h-service-list a:hover { background: var(--lilac); }
.h-service-list img { width: 64px; height: 48px; object-fit: contain; }
.h-service-list i { display: block; width: 18px; height: 18px; margin-left: 23px; border-radius: 50%; border: 5px solid var(--purple); }
.h-service-list strong { display: block; margin-bottom: 6px; font-size: 19px; line-height: 1.2; letter-spacing: -.02em; color: var(--navy); }
.h-service-list a:hover strong { color: var(--purple); }
.h-service-list span { font-size: 15px; line-height: 1.4; color: var(--muted); }

/* 5b. Formación */
.h-learn { background: var(--lilac); padding: clamp(64px, 8vw, 120px) 0; scroll-margin-top: 70px; }
.h-learn-head { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 48px; align-items: end; margin-bottom: 40px; }
.h-learn-head p { font-size: 18px; line-height: 1.55; color: var(--navy); max-width: 32em; }
.h-learn-grid { display: grid; grid-template-columns: 5fr 4fr 4fr; gap: clamp(24px, 3vw, 48px); align-items: start; }
.h-learn-photo { margin: 0; }
.h-learn-photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 60% 50%; border-radius: 4px; }
.h-learn-photo figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.h-learn h3 { font-size: 22px; font-weight: 750; letter-spacing: -.025em; color: var(--purple); padding-bottom: 12px; border-bottom: 4px solid var(--purple); }
.h-learn-list { list-style: none; margin: 0; padding: 0; }
.h-learn-list a { display: grid; gap: 8px; padding: 20px 0; }
.h-learn-list li + li { border-top: 2px solid #ddd0e5; }
.h-learn-list strong { font-size: 19px; line-height: 1.2; letter-spacing: -.02em; color: var(--navy); }
.h-learn-list span { font-size: 15px; line-height: 1.4; color: var(--muted); }
.h-learn-list a:hover strong { color: var(--purple); text-decoration: underline; text-underline-offset: 4px; }

/* 5c. Máster */
.h-master { background: var(--purple); color: white; scroll-margin-top: 70px; }
.h-master-grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding: clamp(64px, 8vw, 120px) 0; }
.h-master h2 { color: white; }
.h-master-copy p { margin-top: 22px; font-size: 19px; line-height: 1.55; max-width: 30em; }
.h-master-actions { margin-top: 30px; }
.button.h-light { background: white; border-color: white; color: var(--purple); border-radius: 6px; font-size: 16px; min-height: 54px; }
.button.h-light:hover { background: var(--sun); border-color: var(--sun); color: var(--navy); }
.h-master-art.poster-button { border-radius: 4px; }
.h-master-art:focus-visible { outline-color: white; }

/* 5d. Cáncer, cuestión de Estado: con los colores de su propia identidad */
.h-state { background: white; padding: clamp(64px, 8vw, 120px) 0; }
.h-state-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.h-state-art { margin: 0; background: white; box-shadow: 0 0 0 2px #e8ebee inset; border-radius: 4px; overflow: hidden; }
.h-state-art img { width: 100%; height: auto; }
.h-state h2 { color: #06283a; }
.h-state-copy > p { margin-top: 18px; font-size: 18px; line-height: 1.55; color: var(--navy); }
.h-state h3 { margin-top: 28px; font-size: 18px; font-weight: 750; color: #a91d34; letter-spacing: -.01em; }
.h-state-lines { list-style: none; margin: 18px 0 32px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.h-state-lines li { position: relative; padding-left: 20px; font-size: 16px; line-height: 1.35; color: var(--navy); font-weight: 600; }
.h-state-lines li::before { content: ''; position: absolute; left: 0; top: .32em; width: 0; height: 0; border-left: 11px solid #f3e10a; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.h-state-lines li:nth-child(even)::before { border-left-color: #a91d34; }
.button.h-navy { background: #06283a; border-color: #06283a; color: white; border-radius: 6px; font-size: 16px; min-height: 54px; }
.button.h-navy:hover { background: #a91d34; border-color: #a91d34; }

/* 6. Forma parte */
.h-join { background: var(--sun); color: var(--navy); }
.h-join-grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(28px, 4vw, 72px); align-items: center; padding: clamp(56px, 7vw, 110px) 0; }
.h-join-photo { margin: 0; }
.h-join-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 40% 40%; border-radius: 4px; }
.h-join-photo figcaption { margin-top: 8px; font-size: 13px; color: var(--navy); }
.h-join h2 { color: var(--navy); }
.h-join-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; }
.h-join-list li + li { border-top: 3px solid var(--navy); }
.h-join-list a { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 18px 0; }
.h-join-list a::after { content: '→'; grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 28px; transition: transform .2s; }
.h-join-list a:hover::after { transform: translateX(6px); }
.h-join-list strong { font-size: clamp(22px, 2vw, 28px); line-height: 1.1; letter-spacing: -.03em; }
.h-join-list span { font-size: 16px; line-height: 1.4; }
.h-join-list a:hover strong { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }
.h-join a:focus-visible { outline-color: var(--navy); }
/* 7. La red */
.h-network { background: var(--lilac); padding: clamp(56px, 7vw, 110px) 0; }
.h-network-head { display: grid; grid-template-columns: 5fr 6fr; gap: 24px clamp(28px, 5vw, 80px); align-items: center; }
.h-figure { display: grid; gap: 4px; color: var(--purple); }
.h-figure strong { font-size: clamp(110px, 15vw, 220px); line-height: .82; letter-spacing: -.07em; font-weight: 800; font-variant-numeric: tabular-nums; }
.h-figure span { font-size: clamp(18px, 1.6vw, 22px); font-weight: 650; color: var(--navy); max-width: 16em; line-height: 1.25; }
.h-network-head p:not(.h-figure) { margin: 16px 0 24px; font-size: 18px; color: var(--navy); max-width: 30em; }
.h-network .button { border-radius: 6px; }
.h-divisions { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: clamp(40px, 5vw, 70px); }
.h-divisions a { display: grid; justify-items: start; gap: 10px; padding: 18px 16px; background: white; border-radius: 6px; font-size: 15px; font-weight: 650; line-height: 1.25; color: var(--navy); transition: transform .18s, color .18s; }
.h-divisions a:hover { color: var(--purple); transform: translateY(-3px); }
.h-divisions img { width: 84px; height: 54px; object-fit: contain; object-position: left center; }
/* 8. Noticias del RSS */
.h-news { background: white; padding: clamp(64px, 8vw, 120px) 0; }
.h-news-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 30px; flex-wrap: wrap; margin-bottom: 34px; }
.h-news-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 4vw, 60px); align-items: start; }
.h-news-img { display: block; overflow: hidden; background: var(--lilac); border-radius: 4px; }
.h-news-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.h-news a:hover .h-news-img img { transform: scale(1.03); }
.h-news time { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.h-news h3 { color: var(--navy); letter-spacing: -.025em; }
.h-news a:hover h3 { color: var(--purple); text-decoration: underline; text-underline-offset: 4px; }
.h-news-lead .h-news-img { aspect-ratio: 16 / 10; }
.h-news-lead .h-news-text { display: block; margin-top: 20px; }
.h-news-lead h3 { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.18; font-weight: 750; }
.h-news-lead p { margin-top: 14px; font-size: 17px; line-height: 1.55; color: var(--navy); }
.h-news-list { display: grid; gap: 22px; }
.h-news-item a { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: start; }
.h-news-item .h-news-img { aspect-ratio: 1; }
.h-news-item h3 { font-size: 18px; line-height: 1.25; font-weight: 700; }
/* Cartel ampliado */
.poster-dialog { border: 0; border-radius: 8px; padding: 16px 20px; width: min(1180px, 96vw); max-width: 96vw; max-height: 96vh; background: white; color: var(--ink); box-shadow: 0 20px 100px #06283a44; }
.poster-dialog::backdrop { background: #06283ae6; }
.poster-dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 12px; }
.poster-dialog h2 { font: 650 17px/1.4 var(--sans); letter-spacing: 0; max-width: 760px; }
.poster-dialog-bar button { width: 44px; height: 44px; border: 0; background: #edf0f2; border-radius: 50%; font-size: 28px; color: var(--ink); flex-shrink: 0; }
.poster-dialog-bar button:hover { background: var(--sun); }
.poster-dialog-image { display: flex; justify-content: center; }
.poster-dialog-image img { width: auto; max-width: 100%; max-height: calc(96vh - 130px); object-fit: contain; }
.poster-dialog > a { display: block; text-align: center; margin-top: 10px; font-size: 14px; color: var(--purple); text-decoration: underline; }
/* Entradas al hacer scroll: el contenido nunca depende del script */
@media (prefers-reduced-motion: no-preference) {
  .js .h-hero-bg img { animation: h-drift 22s ease-in-out infinite alternate; transform-origin: 70% 50%; }
  @keyframes h-drift { from { transform: scale(1); } to { transform: scale(1.05); } }
}
/* Tableta */
@media (max-width: 1120px) {
  .h-divisions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .h-route-line { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 32px; }
  .h-route-line li::before { right: -32px; }
  .h-route-line li:nth-child(2n)::before { right: 0; }
  .header-inner { height: 68px; }
  .main-nav { top: 68px; }
  .brand img { width: 96px; }
  .h-hero-grid, .h-services-grid, .h-join-grid, .h-network-head, .h-news-grid, .h-congress-head, .h-learn-head, .h-master-grid, .h-state-grid { grid-template-columns: minmax(0, 1fr); }
  .h-learn-grid { grid-template-columns: 1fr 1fr; }
  .h-learn-photo { grid-column: 1 / -1; }
  .h-learn-photo img { aspect-ratio: 16 / 8; }
  .h-hero::before { background: linear-gradient(90deg, #fff 0%, #ffffffe6 45%, #ffffff80 75%, #ffffff40 100%); }
  .h-mosaic { position: static; }
  .h-services-copy { order: -1; }
  .h-posters-head { grid-template-columns: 1fr auto; }
  .h-posters-head p { grid-row: 2; grid-column: 1 / -1; }
  .campaign-track { grid-auto-columns: calc((100% - 24px) / 2); }
  .carousel-tools > span { display: none; }
}
/* Móvil */
@media (max-width: 640px) {
  .header-inner { gap: 7px; }
  .brand img { width: 88px; }
  .menu-toggle { width: 40px; height: 40px; }
  :is(.h-routes, .h-congress, .h-posters, .h-services, .h-learn, .h-master, .h-state, .h-join, .h-network, .h-news) h2 { font-size: clamp(30px, 8.6vw, 36px); }
  .h-hero { min-height: calc(100svh - 68px); align-items: end; padding: 0 0 28px; }
  .h-hero::before { background: linear-gradient(180deg, #ffffff00 0%, #ffffff00 22%, #ffffffd9 46%, #fff 60%); }
  .h-hero-bg img { object-position: 50% 0; height: 62%; }
  .h-hero-copy { padding-top: 38svh; }
  .h-hero h1 { font-size: clamp(38px, 11vw, 48px); }
  .h-hero-lead { margin-top: 16px; font-size: 17px; }
  .h-hero-actions { margin-top: 22px; }
  .h-call { width: 100%; }
  .h-route-line { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 28px; }
  .h-route-line li { padding: 0 0 0 40px; }
  .h-route-line li::before, .h-route-line li:nth-child(2n)::before, .h-route-line li:last-child::before { top: 0; bottom: 0; left: 7px; right: auto; width: 5px; height: auto; }
  .h-route-line li:first-child::before { top: 14px; }
  .h-route-line li:last-child::before { bottom: auto; height: 14px; }
  .h-route-line li::after { top: 8px; }
  .h-route-line a { padding: 4px 0 22px; gap: 4px; }
  .h-route-line strong { font-size: 22px; }
  .h-congress .shell { max-width: 460px; }
  .h-congress-head p { font-size: 16px; }
  .congress-banner img { aspect-ratio: 1122 / 1402; }
  .congress-mobile-copy { position: absolute; inset: 6% auto auto 7%; display: grid; justify-items: start; gap: 5px; max-width: 83%; font-size: clamp(11px, 3.3vw, 16px); font-weight: 650; line-height: 1.25; color: var(--navy); }
  .congress-mobile-copy strong { color: var(--purple); font-size: clamp(30px, 9vw, 46px); line-height: 1; letter-spacing: -.045em; }
  .congress-mobile-cta { background: var(--sun); border-radius: 6px; padding: 8px 11px; margin-top: 4px; }
  .h-congress-actions .button.h-sun { width: 100%; }
  .h-posters-head { gap: 12px; }
  .carousel-tools button { width: 46px; height: 46px; }
  .campaign-track { grid-auto-columns: 86%; gap: 14px; }
  .campaign-caption h3 { font-size: 18px; }
  .h-shot-1 img { aspect-ratio: 4 / 3; }
  .h-shot span { font-size: 11px; padding: 5px 8px; }
  .h-service-list a { grid-template-columns: 52px 1fr; gap: 12px; }
  .h-service-list img { width: 52px; height: 40px; }
  .h-service-list i { margin-left: 17px; }
  .h-service-list strong { font-size: 17px; }
  .h-divisions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-divisions a { font-size: 14px; padding: 14px 12px; }
  .h-figure strong { font-size: 120px; }
  .h-news-item a { grid-template-columns: 96px 1fr; gap: 14px; }
  .h-learn-grid { grid-template-columns: minmax(0, 1fr); }
  .h-learn-photo img { aspect-ratio: 4 / 3; }
  .h-state-lines { grid-template-columns: minmax(0, 1fr); }
  .h-master-copy p, .h-learn-head p, .h-state-copy > p { font-size: 17px; }
  .button.h-light, .button.h-navy { width: 100%; }
  .h-news-item h3 { font-size: 16px; }
  .h-news-lead h3 { font-size: 26px; }
  .h-news-lead p { font-size: 16px; }
  .poster-dialog { padding: 12px; width: 98vw; max-width: 98vw; }
  .poster-dialog h2 { font-size: 14px; }
  .poster-dialog-bar { gap: 12px; }
}
@media (max-width: 380px) { .h-hero h1 { font-size: 36px; } }

/* Patrocinio general de la web, conservado del pie original. */
.footer-sponsors { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-bottom: 40px; margin-bottom: 44px; border-bottom: 1px solid #d8cedf; }
.footer-sponsors p { margin: 0; font-size: 16px; font-weight: 600; color: var(--muted); }
.footer-sponsor-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.footer-sponsor-logo { display: flex; align-items: center; justify-content: center; width: 220px; height: 112px; border-radius: 6px; background: white; overflow: hidden; }
.footer-sponsor-logo img { width: 200px; max-width: calc(100% - 24px); height: auto; max-height: none; flex-shrink: 0; }
@media (max-width: 900px) {
  .footer-sponsors { flex-direction: column; align-items: flex-start; gap: 24px; }
}
@media (max-width: 640px) {
  .footer-sponsors { padding-bottom: 32px; margin-bottom: 36px; }
  .footer-sponsor-logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 16px; }
  .footer-sponsor-logo { width: 100%; height: 96px; }
}
@media (max-width: 380px) {
  .footer-sponsor-logos { grid-template-columns: minmax(0, 1fr); max-width: 240px; }
}
