/* =============================================================================
   Concejo Municipal de San Guillermo — Hero
   Identidad: propuesta de Ailén Rainaudo (Lato · verde, amarillo, azules institucionales)
   ========================================================================== */
:root {
  --verde: #2A9137;
  --verde-oscuro: #0D4A24;
  --amarillo: #FAB613;
  --naranja: #F3931B;
  --azul: #1A83A4;
  --azul-oscuro: #132F55;
  --ink: #0b1a2e;
  --white: #fff;
  --white-80: rgba(255, 255, 255, .82);
  --white-60: rgba(255, 255, 255, .62);
  --line: rgba(255, 255, 255, .22);

  --font: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(1.25rem, 4.6vw, 4.5rem);
  --header-h: clamp(4.75rem, 7vw, 6.25rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: #f6f4ef; }
/* nada se sale por los costados (las palabras grandes de «El Concejo» se desplazan fuera del borde) */
html, body { overflow-x: clip; }
.about { overflow-x: clip; }
body { font-family: var(--font); color: var(--white); -webkit-font-smoothing: antialiased; }
html.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amarillo); outline-offset: 4px; border-radius: 3px; }

.skip-link {
  position: absolute; z-index: 100; left: 1rem; top: -4rem;
  padding: .75rem 1rem; border-radius: 6px;
  background: var(--white); color: var(--azul-oscuro); font-weight: 700; font-size: .875rem;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ================================================================ Encabezado */
.header {
  position: fixed; z-index: 30; top: 0; left: 0; right: 0;
  height: var(--header-h);
  padding: env(safe-area-inset-top) var(--pad) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
/* filete superior con los colores de la identidad */
.header::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--amarillo) 0%, var(--verde) 50%, var(--azul) 100%);
}
.header__brand { display: block; flex: none; }
.header__brand img { display: block; height: clamp(2.5rem, 3.4vw, 3.25rem); width: auto; }

.nav { display: flex; align-items: center; gap: clamp(1.5rem, 2.6vw, 2.75rem); }
.nav__list { display: flex; gap: clamp(1.1rem, 2vw, 2.25rem); margin: 0; padding: 0; list-style: none; }
.nav__list a {
  position: relative; display: inline-block; padding: .55rem 0;
  font-size: .9375rem; font-weight: 400; letter-spacing: .01em; color: var(--white-80);
  transition: color .25s;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .15rem; height: 2px; border-radius: 2px;
  background: var(--amarillo); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.nav__list a:hover { color: var(--white); }
.nav__list a:hover::after { transform: scaleX(1); }

.nav__cta {
  display: inline-flex; align-items: center; height: 2.6rem; padding: 0 1.25rem;
  border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px;
  font-size: .9375rem; font-weight: 700;
  transition: background .25s, color .25s, border-color .25s;
}
.nav__cta:hover { background: var(--white); color: var(--azul-oscuro); border-color: var(--white); }

.menu-btn {
  display: none; align-items: center; gap: .7rem; height: 2.75rem; padding: 0;
  border: 0; background: none; cursor: pointer; font-size: .9375rem; font-weight: 700;
}
.menu-btn__icon { position: relative; width: 1.5rem; height: .8rem; }
.menu-btn__icon i {
  position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .45s var(--ease), top .45s var(--ease);
}
.menu-btn__icon i:first-child { top: 0; }
.menu-btn__icon i:last-child { top: calc(100% - 2px); }
.is-open .menu-btn__icon i:first-child { top: calc(50% - 1px); transform: rotate(45deg); }
.is-open .menu-btn__icon i:last-child { top: calc(50% - 1px); transform: rotate(-45deg); }

/* ===================================================================== Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex;
}
.hero__media { position: absolute; inset: 0; z-index: -1; background: var(--azul-oscuro); }
.hero__poster, .hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
}
.hero__video { opacity: 0; transition: opacity 1.4s ease; }
.hero__video.is-playing { opacity: 1; }

/* Sombreados de lectura: tinte azul institucional, sin lavar la imagen */
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 26, 46, .62) 0%, rgba(11, 26, 46, 0) 24%),
    linear-gradient(0deg, rgba(11, 26, 46, .86) 0%, rgba(11, 26, 46, .5) 26%, rgba(11, 26, 46, 0) 58%),
    linear-gradient(90deg, rgba(11, 26, 46, .5) 0%, rgba(11, 26, 46, 0) 55%);
}

.hero__inner {
  width: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 2rem) var(--pad) clamp(1.75rem, 3.5vw, 2.75rem);
}

.hero__content { max-width: 46rem; margin-bottom: clamp(2.25rem, 5vh, 4rem); }
.hero__eyebrow {
  display: flex; align-items: center; gap: .9rem; margin: 0 0 1.4rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--white-80);
}
.hero__eyebrow::before {
  content: ""; width: 2.25rem; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--amarillo), var(--verde));
}
.hero__title {
  margin: 0;
  font-size: clamp(2.6rem, 1.4rem + 4.4vw, 5.75rem);
  font-weight: 300; line-height: 1.02; letter-spacing: -.025em;
  text-wrap: balance;
}
.hero__title strong { display: block; font-weight: 900; letter-spacing: -.03em; }
.hero__lead {
  max-width: 34rem; margin: 1.5rem 0 2.25rem;
  font-size: clamp(1.02rem, .95rem + .35vw, 1.25rem); font-weight: 400; line-height: 1.6; color: var(--white-80);
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.75rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.25rem; font-size: 1rem; font-weight: 700; letter-spacing: .005em;
  transition: background .25s, color .25s, transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn svg { width: 1.15rem; height: 1.15rem; transition: transform .35s var(--ease); }
.btn--primary {
  padding: 0 1.75rem; border-radius: 999px;
  background: var(--amarillo); color: var(--azul-oscuro);
  box-shadow: 0 10px 30px -12px rgba(250, 182, 19, .65);
}
.btn--primary:hover { background: #ffc634; transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgba(250, 182, 19, .8); }
.btn--ghost { padding: 0; color: var(--white); }
.btn--ghost:hover svg { transform: translateX(4px); }

/* Accesos rápidos */
.quick {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.quick__item {
  position: relative; display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.35rem 1.5rem 1.1rem 0;
  transition: color .3s;
}
.quick__item + .quick__item { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.quick__item::before {        /* línea de color que crece al pasar */
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px;
  background: var(--amarillo); transform: scaleX(0); transform-origin: left;
  transition: transform .55s var(--ease);
}
.quick__item:nth-child(2)::before { background: var(--verde); }
.quick__item:nth-child(3)::before { background: var(--azul); }
.quick__item:nth-child(4)::before { background: var(--naranja); }
.quick__item:hover::before, .quick__item:focus-visible::before { transform: scaleX(1); }
.quick__text { display: grid; gap: .3rem; }
.quick__text b { font-size: 1.0625rem; font-weight: 700; }
.quick__text span { font-size: .875rem; color: var(--white-60); }
.quick__arrow {
  width: 1.1rem; height: 1.1rem; margin-left: auto; margin-top: .15rem; color: var(--white-60);
  transition: transform .4s var(--ease), color .3s;
}
.quick__item:hover .quick__arrow { transform: translate(3px, -3px); color: var(--white); }

/* Pausa del video (accesibilidad) */
.video-toggle {
  position: absolute; z-index: 5; right: var(--pad); top: calc(var(--header-h) + 1rem);
  width: 2.5rem; height: 2.5rem; padding: 0; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35); background: rgba(11, 26, 46, .25);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: grid; place-items: center; cursor: pointer; color: var(--white);
  transition: background .25s, border-color .25s;
}
.video-toggle:hover { background: rgba(11, 26, 46, .5); border-color: rgba(255, 255, 255, .6); }
.video-toggle svg { width: 1rem; height: 1rem; grid-area: 1 / 1; }
.video-toggle__play { display: none; }
.video-toggle[aria-pressed="true"] .video-toggle__pause { display: none; }
.video-toggle[aria-pressed="true"] .video-toggle__play { display: block; }

#contenido { position: absolute; }

/* Entrada */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.header[data-reveal] { transform: none; }
.is-ready [data-reveal] { opacity: 1; transform: none; }
.is-ready .hero__eyebrow { transition-delay: .1s; }
.is-ready .hero__title { transition-delay: .2s; }
.is-ready .hero__lead { transition-delay: .35s; }
.is-ready .hero__actions { transition-delay: .48s; }
.is-ready .quick { transition-delay: .65s; }
.is-ready .video-toggle { transition-delay: .8s; }

/* ============================================================== Responsive */
@media (max-width: 1180px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 2.5rem;
    padding: calc(var(--header-h) + 1rem) var(--pad) 3rem;
    background: rgba(19, 47, 85, .94);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden;
    transition: opacity .45s var(--ease), visibility 0s .45s;
  }
  .is-open .nav { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
  .nav__list { flex-direction: column; gap: 1.1rem; }
  .nav__list a { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.5rem); font-weight: 300; color: var(--white); }
  .nav__list a::after { bottom: 0; }
  .nav__cta { height: 3.1rem; padding: 0 1.5rem; font-size: 1rem; }
}

@media (max-width: 900px) {
  .quick { grid-template-columns: repeat(2, 1fr); }
  .quick__item:nth-child(3) { padding-left: 0; border-left: 0; }
  .quick__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(11, 26, 46, .65) 0%, rgba(11, 26, 46, 0) 22%),
      linear-gradient(0deg, rgba(11, 26, 46, .92) 0%, rgba(11, 26, 46, .62) 40%, rgba(11, 26, 46, 0) 72%);
  }
  .hero__content { margin-bottom: 1.75rem; }
  .hero__eyebrow { margin-bottom: 1rem; font-size: .6875rem; }
  .hero__lead { margin: 1rem 0 1.5rem; }
  .btn--primary { width: 100%; }
  .hero__actions { gap: 1rem; }
  .quick__item { padding: 1rem .75rem .85rem 0; gap: .6rem; }
  .quick__item + .quick__item { padding-left: .9rem; }
  .quick__item:nth-child(3) { padding-left: 0; }
  .quick__text b { font-size: .9375rem; }
  .quick__text span { font-size: .75rem; }
  .quick__arrow { display: none; }
  .video-toggle { width: 2.25rem; height: 2.25rem; }
}

@media (max-height: 700px) and (min-width: 561px) {
  .hero__lead { display: none; }
  .hero__content { margin-bottom: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01s !important; animation: none !important; }
}

/* =============================================================================
   Sección «El Concejo»
   Izquierda: panel fijo con los colores del logo difuminados (cambian por capítulo).
   Derecha: fotos que se abren desde un círculo —el centro del símbolo— al bajar,
   con una palabra clave grande que se desliza detrás.
   ========================================================================== */
.about {
  position: relative;
  background: #f6f4ef;
  color: var(--ink);
  padding: clamp(1rem, 2vw, 1.5rem);
}
.about__wrap {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 7rem);
}

/* ---------- Panel fijo */
.about__sticky {
  position: sticky; top: clamp(1rem, 2vw, 1.5rem);
  height: calc(100vh - 2 * clamp(1rem, 2vw, 1.5rem));
  height: calc(100svh - 2 * clamp(1rem, 2vw, 1.5rem));
}
.about__panel {
  position: relative; height: 100%; overflow: hidden; isolation: isolate;
  border-radius: clamp(14px, 1.6vw, 24px);
  background: var(--azul-oscuro);
  color: var(--white);
}
.about__glow { position: absolute; inset: -20%; z-index: -2; filter: blur(70px) saturate(1.15); }
.glow {
  position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%;
  opacity: .9; mix-blend-mode: screen;
  transition: transform 2.2s cubic-bezier(.22, .8, .2, 1), opacity 2s ease;
}
.glow--yellow { background: var(--amarillo); left: 0; top: 0; }
.glow--green  { background: var(--verde);    left: 0; top: 0; }
.glow--blue   { background: var(--azul);     left: 0; top: 0; }
.glow--orange { background: var(--naranja);  left: 0; top: 0; }
/* Posición de cada mancha según el capítulo (x, y en % del contenedor) */
.about__panel[data-step="0"] .glow--green  { transform: translate(-5%, 55%) scale(1.25); }
.about__panel[data-step="0"] .glow--blue   { transform: translate(70%, -5%) scale(1.1); }
.about__panel[data-step="0"] .glow--yellow { transform: translate(-25%, -30%) scale(.75); }
.about__panel[data-step="0"] .glow--orange { transform: translate(90%, 95%) scale(.4); opacity: .4; }

.about__panel[data-step="1"] .glow--blue   { transform: translate(-10%, 45%) scale(1.35); }
.about__panel[data-step="1"] .glow--green  { transform: translate(75%, 80%) scale(.8); }
.about__panel[data-step="1"] .glow--yellow { transform: translate(70%, -25%) scale(.55); opacity: .55; }
.about__panel[data-step="1"] .glow--orange { transform: translate(-30%, -20%) scale(.45); opacity: .35; }

.about__panel[data-step="2"] .glow--yellow { transform: translate(-5%, 50%) scale(1.15); }
.about__panel[data-step="2"] .glow--orange { transform: translate(50%, 75%) scale(.9); opacity: .85; }
.about__panel[data-step="2"] .glow--green  { transform: translate(75%, -15%) scale(.8); }
.about__panel[data-step="2"] .glow--blue   { transform: translate(-30%, -30%) scale(.7); }

.about__panel[data-step="3"] .glow--green  { transform: translate(15%, 60%) scale(1.3); }
.about__panel[data-step="3"] .glow--yellow { transform: translate(-20%, 20%) scale(.8); }
.about__panel[data-step="3"] .glow--blue   { transform: translate(75%, 5%) scale(1.05); }
.about__panel[data-step="3"] .glow--orange { transform: translate(85%, 90%) scale(.5); opacity: .5; }

/* velo para que el texto siempre se lea + grano fino */
.about__panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(19, 47, 85, .55) 0%, rgba(19, 47, 85, .1) 45%, rgba(19, 47, 85, .35) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.about__symbol {
  position: absolute; z-index: -1; right: -18%; bottom: -22%; width: 78%;
  opacity: .14; mix-blend-mode: soft-light; filter: grayscale(1) brightness(2.2);
  transform: rotate(var(--spin, 0deg)); will-change: transform;
}

.about__panel-inner {
  height: 100%; display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(1.75rem, 3.5vw, 3.5rem);
}
.about__eyebrow {
  margin: 0 0 auto; font-size: .75rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  color: var(--white-80);
}
.about__titles { display: grid; }
.about__title {
  grid-area: 1 / 1; margin: 0;
  font-size: clamp(2.4rem, 1.2rem + 3.3vw, 4.8rem);
  font-weight: 300; line-height: 1.02; letter-spacing: -.025em;
  text-wrap: balance;
  opacity: 0; transform: translateY(30px); filter: blur(8px);
  transition: opacity .7s var(--ease), transform 1s var(--ease), filter .9s var(--ease);
}
.about__title em { display: block; font-style: normal; font-weight: 900; letter-spacing: -.03em; }
.about__title.is-active { opacity: 1; transform: none; filter: none; transition-delay: .15s; }
.about__title.is-leaving { opacity: 0; transform: translateY(-24px); filter: blur(6px); transition-delay: 0s; }

.about__dots { display: flex; gap: .55rem; margin-top: clamp(1.75rem, 4vh, 2.75rem); }
.about__dots a {
  width: .55rem; height: .55rem; border-radius: 999px; background: rgba(255, 255, 255, .35);
  transition: width .6s var(--ease), background .4s;
}
.about__dots a:hover { background: rgba(255, 255, 255, .7); }
.about__dots a.is-active { width: 2.4rem; background: var(--white); }

/* ---------- Capítulos */
.about__steps { display: grid; gap: clamp(7rem, 22vh, 13rem); padding: 22vh clamp(0rem, 3vw, 3rem) 26vh 0; }
.step { position: relative; }
.step__mobile-title { display: none; }

.step__media { margin: 0; position: relative; z-index: 1; }
.step--alt .step__media { margin-left: 12%; }
.step:not(.step--alt) .step__media { margin-right: 8%; }
.step__frame {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: #dcd7cc;
  /* --r: radio del círculo que revela la foto (lo controla el scroll) */
  clip-path: circle(var(--r, 14%) at var(--cx, 50%) 50%);
  border-radius: 6px;
}
.step__frame img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transform: scale(var(--zoom, 1.25)) translateY(var(--py, 0px));
  will-change: transform;
}
.step__media figcaption {
  display: flex; align-items: center; gap: .7rem;
  margin-top: 1rem; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(19, 47, 85, .55);
}
.step__media figcaption::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--c, var(--verde)); }
#concejo-historia { --c: var(--azul); }
#concejo-participacion { --c: var(--amarillo); }
#concejo-futuro { --c: var(--naranja); }

/* Palabra clave gigante que se desliza detrás del contenido */
.step__word {
  position: relative; z-index: 0; margin: -0.18em 0 0; pointer-events: none; white-space: nowrap;
  font-size: clamp(4.5rem, 2rem + 7vw, 10rem); font-weight: 900; letter-spacing: -.045em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(19, 47, 85, .14);
  transform: translateX(var(--wx, 0px));
  will-change: transform;
}
.step--alt .step__word { text-align: right; }

.step__body { position: relative; z-index: 1; max-width: 34rem; margin-top: -1.6rem; }
.step--alt .step__body { margin-left: auto; }
.step__body > * { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.step.is-visible .step__body > * { opacity: 1; transform: none; }
.step.is-visible .step__body > :nth-child(2) { transition-delay: .1s; }
.step.is-visible .step__body > :nth-child(3) { transition-delay: .2s; }
.step__body p { margin: 0 0 1.1rem; font-size: 1.0625rem; line-height: 1.7; color: rgba(11, 26, 46, .72); }
.step__body .step__lead { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); line-height: 1.5; color: var(--azul-oscuro); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0 0; }
.facts div { padding-top: .9rem; border-top: 2px solid var(--verde); }
.facts div:nth-child(2) { border-color: var(--amarillo); }
.facts div:nth-child(3) { border-color: var(--azul); }
.facts dt { font-size: .6875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(19, 47, 85, .55); }
.facts dd { margin: .35rem 0 0; font-size: 1rem; font-weight: 700; color: var(--azul-oscuro); }

.values { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.values li {
  padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid rgba(26, 131, 164, .45);
  font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--azul-oscuro);
}
.values li:nth-child(odd) { border-color: rgba(250, 182, 19, .8); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .6rem; margin-top: 1rem;
  font-size: 1rem; font-weight: 700; color: var(--azul-oscuro);
  border-bottom: 2px solid var(--amarillo); padding-bottom: .3rem;
}
.link-arrow svg { width: 1.15rem; height: 1.15rem; transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Tablet / móvil: el panel queda como portada de la sección */
@media (max-width: 900px) {
  .about__wrap { grid-template-columns: 1fr; gap: 0; }
  .about__sticky { position: static; height: 62svh; min-height: 360px; }
  .about__titles .about__title:not(:first-child) { display: none; }
  .about__dots { display: none; }
  .about__steps { padding: 4.5rem .25rem 3rem; gap: 5rem; }
  .step--alt .step__media, .step:not(.step--alt) .step__media { margin: 0; }
  .step__mobile-title {
    display: block; margin: 0 0 1.5rem;
    font-size: clamp(2rem, 1.3rem + 3.5vw, 2.8rem); font-weight: 300; line-height: 1.06; letter-spacing: -.02em;
    color: var(--azul-oscuro);
  }
  .step__mobile-title em { display: block; font-style: normal; font-weight: 900; }
  #concejo-quienes .step__mobile-title { display: none; }   /* ya está en el panel */
  .step__word { font-size: clamp(3.5rem, 2rem + 9vw, 6rem); }
  .facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .step__frame { clip-path: none; }
  .step__frame img { transform: none; }
  .step__word { transform: none; }
}

/* =============================================================================
   Sección «Concejales y autoridades» — el recinto
   Capas (de atrás hacia adelante): arcos del hemiciclo · nicho · concejal · banca.
   Banca en azul institucional con filete del color de cada bloque; detalles en amarillo.
   ========================================================================== */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.council {
  background: #f6f4ef; color: var(--azul-oscuro);
  padding: clamp(5rem, 9vw, 8rem) var(--pad) clamp(4.5rem, 8vw, 7rem);
}
.council__wrap { max-width: 84rem; margin: 0 auto; }

.council__head {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end;
  gap: 1.25rem 4rem; margin-bottom: clamp(3.5rem, 7vw, 5.5rem);
}
.council__eyebrow {
  grid-column: 1 / -1; display: flex; align-items: center; gap: .9rem; margin: 0;
  font-size: .75rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--azul);
}
.council__eyebrow::before { content: ""; width: 2.25rem; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--amarillo), var(--verde)); }
.council__title { margin: 0; font-size: clamp(2.5rem, 1.3rem + 3.8vw, 5rem); font-weight: 300; line-height: 1.02; letter-spacing: -.025em; }
.council__title em { display: block; font-style: normal; font-weight: 900; letter-spacing: -.03em; }
.council__lead { margin: 0; max-width: 30rem; font-size: clamp(1.02rem, .96rem + .25vw, 1.15rem); line-height: 1.6; color: rgba(19, 47, 85, .7); }

/* ---------- Bloque: pestaña + recinto */
.bloc { --c: var(--verde); --panel: #ebe7de; }
.bloc + .bloc { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.bloc--b { --c: var(--azul); }
.secretary { --c: var(--amarillo); }

.bloc__tab {
  display: inline-flex; align-items: baseline; gap: .85rem;
  padding: 1.05rem 1.6rem .9rem;
  background: var(--panel); border-radius: 18px 18px 0 0;
  position: relative;
}
.bloc__tab::after {   /* curva que une la pestaña con el panel */
  content: ""; position: absolute; right: -18px; bottom: 0; width: 18px; height: 18px;
  background: radial-gradient(circle at 100% 0, transparent 17.5px, var(--panel) 18px);
}
.bloc__name { margin: 0; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); font-weight: 700; letter-spacing: -.01em; }
.bloc__count { font-size: .875rem; color: rgba(19, 47, 85, .55); white-space: nowrap; }

.bloc__body {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--panel);
  border-radius: 0 24px 24px 24px;
  perspective: 1400px;
}
/* Arcos concéntricos del hemiciclo, muy sutiles */
.bloc__arcs {
  position: absolute; z-index: -1; left: 50%; bottom: 0; width: 160%; aspect-ratio: 2 / 1;
  translate: -50% 0; pointer-events: none;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: repeating-radial-gradient(circle at 50% 100%, transparent 0 calc(9% - 1px), rgba(19, 47, 85, .07) calc(9% - 1px) 9%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  transform: translate3d(calc(var(--mx, 0) * -8px), calc(var(--my, 0) * -5px), 0);
}

/* ---------- Banca */
.bench { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.member { display: flex; flex-direction: column; min-width: 0; }

.member__stage {
  position: relative; overflow: hidden;   /* los concejales "suben" desde detrás de la banca */
  aspect-ratio: 640 / 610;
  padding-top: clamp(1.5rem, 4vw, 3.5rem);
}
.member__niche {   /* nicho en arco detrás de cada concejal */
  position: absolute; z-index: 0; left: 50%; bottom: 0; width: 68%; height: 72%;
  translate: -50% 0; border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #f8f6f1 0%, #f3f0ea 100%);
  transform: translate3d(calc(var(--mx, 0) * -5px), calc(var(--my, 0) * -3px), 0);
}
.member__shadow {   /* sombra de contacto sobre la banca */
  position: absolute; z-index: 1; left: 50%; bottom: -10px; width: 72%; height: 26px; translate: -50% 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(11, 26, 46, .32), transparent 70%);
  filter: blur(6px);
  transform: translate3d(calc(var(--mx, 0) * 6px), 0, 0);
}
.member__figure {
  position: absolute; z-index: 2; inset: 0; display: block;
  transform-origin: 50% 100%;
  transform:
    translate3d(calc(var(--mx, 0) * 14px), 0, 0)
    rotateY(calc(var(--mx, 0) * 6deg)) rotateX(calc(var(--my, 0) * -2.5deg));
}
.member__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: 50% 100%;
  filter: drop-shadow(0 14px 18px rgba(11, 26, 46, .16)) drop-shadow(0 2px 3px rgba(11, 26, 46, .12));
}
.member__badge {
  position: absolute; z-index: 4; top: clamp(1rem, 2.5vw, 1.75rem); left: clamp(1rem, 2.2vw, 1.75rem);
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .42rem .8rem .42rem .62rem; border-radius: 999px;
  background: var(--amarillo); color: var(--azul-oscuro);
  font-size: .78rem; font-weight: 700;
  box-shadow: 0 6px 18px -8px rgba(250, 182, 19, .9);
}
.member__badge svg { width: .95rem; height: .95rem; }

/* La banca: franja azul continua con filete de color arriba */
.plate {
  position: relative; z-index: 3; flex: 1;
  display: flex; flex-direction: column;
  background: var(--azul-oscuro); color: var(--white);
  padding: clamp(1.4rem, 2.5vw, 2rem) clamp(1.25rem, 2.4vw, 2rem) clamp(1.5rem, 2.6vw, 2.1rem);
  box-shadow: inset 0 10px 0 var(--c), inset 0 11px 0 rgba(255, 255, 255, .18);
  padding-top: calc(10px + clamp(1.4rem, 2.5vw, 2rem));
}
.member + .member .plate::before {   /* separador entre bancas */
  content: ""; position: absolute; left: 0; top: calc(10px + 1.5rem); bottom: 1.5rem; width: 1px; background: rgba(255, 255, 255, .14);
}
.plate__name { margin: 0; font-size: clamp(1.3rem, 1.05rem + .8vw, 1.7rem); font-weight: 700; letter-spacing: -.015em; }
.plate__name::after { content: ""; display: block; width: 1.6rem; height: 3px; border-radius: 2px; margin-top: .65rem; background: var(--amarillo); }
.plate__role { margin: .85rem 0 0; font-size: 1rem; color: rgba(255, 255, 255, .88); }
.plate__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; margin: .45rem 0 1.4rem; }
.plate__period { font-size: .875rem; color: rgba(255, 255, 255, .6); }
.plate__sub { font-size: .8rem; padding: .22rem .65rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .85); }
.plate__actions { display: flex; gap: .5rem; margin-top: auto; }
.mail-btn {
  display: inline-flex; align-items: center; gap: .55rem;
  height: 2.75rem; padding: 0 1.05rem; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .32); color: var(--white);
  font-size: .9375rem; font-weight: 700; white-space: nowrap;
  transition: background .25s, border-color .25s, color .25s;
}
.mail-btn:hover { background: var(--amarillo); border-color: var(--amarillo); color: var(--azul-oscuro); }
.mail-btn svg, .copy-btn svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.copy-btn {
  flex: none; width: 2.75rem; height: 2.75rem; padding: 0; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .32); background: transparent; color: var(--white); cursor: pointer;
  display: grid; place-items: center; transition: background .25s, border-color .25s;
}
.copy-btn svg { grid-area: 1 / 1; transition: opacity .25s, transform .35s var(--ease); }
.copy-btn .i-check { opacity: 0; transform: scale(.6); }
.copy-btn:hover { border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .08); }
.copy-btn.is-copied { background: var(--verde); border-color: var(--verde); }
.copy-btn.is-copied .i-copy { opacity: 0; transform: scale(.6); }
.copy-btn.is-copied .i-check { opacity: 1; transform: none; }

/* ---------- Secretaría */
.secretary__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: stretch; }
.secretary__member .member__stage { aspect-ratio: 640 / 600; }
.plate--bar { flex: none; height: 2.25rem; padding: 0; }
.secretary__text { padding: clamp(2rem, 4vw, 3.5rem); align-self: center; }
.secretary__name { margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); font-weight: 700; letter-spacing: -.015em; }
.secretary__rule { display: block; width: 1.6rem; height: 3px; border-radius: 2px; margin-top: .7rem; background: var(--amarillo); }
.secretary__role { margin: .9rem 0 0; font-size: 1.0625rem; }
.secretary__note { max-width: 30rem; margin: .8rem 0 1.5rem; font-size: 1rem; line-height: 1.6; color: rgba(19, 47, 85, .7); }
.secretary__link {
  display: inline-flex; align-items: center; gap: .55rem; padding-bottom: .25rem;
  border-bottom: 2px solid var(--amarillo); font-weight: 700; color: var(--azul-oscuro);
}
.secretary__link svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.secretary__link:hover svg { transform: translateX(4px); }

/* ---------- Entrada en cadena (se dispara una vez, todos desde el mismo punto)
   1) se dibuja la banca  2) cada concejal sube desde atrás, de izquierda a derecha
   3) aparece su placa */
/* la banca se dibuja como una sola franja: cada tramo continúa donde termina el anterior */
.js-chamber .bloc__body .plate { clip-path: inset(0 100% 0 0); transition: clip-path .3s linear; }
.js-chamber .bloc__body .member + .member .plate { transition-delay: .3s; }
.js-chamber .bloc__body .member + .member + .member .plate { transition-delay: .6s; transition-timing-function: cubic-bezier(.2, .6, .35, 1); }
.js-chamber .bloc__body.is-in .plate { clip-path: inset(0 0 0 0); }

.js-chamber .member__figure > img { translate: 0 62%; opacity: 0; filter: blur(8px) drop-shadow(0 14px 18px rgba(11, 26, 46, .16)); }
.js-chamber .member__niche { scale: 1 .6; transform-origin: 50% 100%; opacity: 0; }
.js-chamber .member__badge { opacity: 0; translate: 0 -8px; }
.js-chamber .plate > * { opacity: 0; translate: 0 10px; }
.js-chamber .member__figure > img,
.js-chamber .member__niche,
.js-chamber .member__badge,
.js-chamber .plate > * {
  --d: calc(.85s + var(--i) * .55s);            /* pausa entre uno y otro */
  transition:
    translate 1.5s cubic-bezier(.16, 1, .3, 1) var(--d),
    opacity 1.1s ease var(--d),
    filter 1.3s ease var(--d),
    scale 1.4s cubic-bezier(.16, 1, .3, 1) calc(var(--d) - .25s);
}
.js-chamber .member__niche { transition-delay: calc(var(--d) - .25s); }
.js-chamber .plate > * { --d: calc(1.55s + var(--i) * .55s); transition-duration: .9s; }
.js-chamber .plate > :nth-child(2) { --d: calc(1.65s + var(--i) * .55s); }
.js-chamber .plate > :nth-child(3) { --d: calc(1.72s + var(--i) * .55s); }
.js-chamber .plate > :nth-child(4) { --d: calc(1.8s + var(--i) * .55s); }
.js-chamber .member__badge { --d: calc(2s + var(--i) * .55s); }
.js-chamber .is-in .member__figure > img { translate: 0 0; opacity: 1; filter: drop-shadow(0 14px 18px rgba(11, 26, 46, .16)) drop-shadow(0 2px 3px rgba(11, 26, 46, .12)); }
.js-chamber .is-in .member__niche { scale: 1 1; opacity: 1; }
.js-chamber .is-in .member__badge,
.js-chamber .is-in .plate > * { opacity: 1; translate: 0 0; }
/* la sombra de contacto aparece cuando la persona "se sienta" */
.js-chamber .member__shadow { opacity: 0; transition: opacity 1s ease calc(1.6s + var(--i) * .55s); }
.js-chamber .is-in .member__shadow { opacity: 1; }

/* ---------- Responsive */
@media (max-width: 900px) {
  .council__head { grid-template-columns: 1fr; }
  .bench { grid-template-columns: 1fr; }
  .member__stage { aspect-ratio: auto; height: min(92vw, 30rem); }
  .member + .member .plate::before { display: none; }
  .member + .member .member__stage { border-top: 0; }
  .secretary__body { grid-template-columns: 1fr; }
  .secretary__text { order: -1; padding-bottom: 0; }
  /* en móvil cada concejal se dispara al aparecer en pantalla */
  .js-chamber .member__figure > img, .js-chamber .member__niche, .js-chamber .member__badge, .js-chamber .plate > * { --i: 0 !important; }
}
@media (max-width: 420px) {
  .mail-btn__who { display: none; }
  .bloc__tab { padding: .9rem 1.15rem .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .js-chamber .bloc__body .plate, .js-chamber .member__figure > img, .js-chamber .member__niche,
  .js-chamber .member__badge, .js-chamber .plate > *, .js-chamber .member__shadow {
    clip-path: none !important; translate: none !important; scale: none !important; opacity: 1 !important; filter: none !important; transition: none !important;
  }
}

/* ---------- Concejales: zoom leve e individual al pasar el cursor (reemplaza el movimiento de los 3) */
.member__figure { transform: none; transition: scale .7s var(--ease); }
.bloc__arcs, .member__niche, .member__shadow { transform: none; }
@media (hover: hover) and (pointer: fine) {
  .member:hover .member__figure,
  .member:focus-within .member__figure { scale: 1.045; }
}
/* móvil: cada concejal dispara su propia banca */
.js-chamber .member.is-in .plate { clip-path: inset(0 0 0 0); }

/* =============================================================================
   Home — acceso a «Concejales» (mini sección después de «El Concejo»)
   Paleta completa del manual: verde y azul por bloque, naranja y amarillo en arcos.
   ========================================================================== */
.meet { background: #f6f4ef; padding: clamp(1rem, 3vw, 2rem) var(--pad) clamp(4.5rem, 8vw, 7rem); }
.meet__card {
  position: relative; overflow: hidden;
  max-width: 84rem; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 26rem); align-items: center;
  gap: 2rem clamp(2rem, 5vw, 5rem);
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 3.5rem) clamp(1.75rem, 3vw, 2.5rem);
  border-radius: 24px; background: var(--white); color: var(--azul-oscuro);
  box-shadow: 0 1px 0 rgba(19, 47, 85, .06), 0 24px 60px -40px rgba(19, 47, 85, .35);
}
.meet__card::before {   /* filete con los cinco colores de la identidad */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--verde) 0 20%, var(--amarillo) 20% 40%, var(--naranja) 40% 60%, var(--azul) 60% 80%, var(--azul-oscuro) 80% 100%);
}
.meet__text { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.meet__eyebrow { display: flex; align-items: center; gap: .7rem; font-size: .75rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--naranja); }
.meet__eyebrow::before { content: ""; width: 1.75rem; height: 3px; border-radius: 3px; background: var(--naranja); }
.meet__title { max-width: 22ch; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.6rem); font-weight: 300; line-height: 1.1; letter-spacing: -.02em; }
.meet__title strong { font-weight: 900; color: var(--verde); }
.meet__btn {
  display: inline-flex; align-items: center; gap: .65rem; white-space: nowrap; margin-top: .9rem;
  height: 3.25rem; padding: 0 1.6rem; border-radius: 999px;
  background: var(--verde); color: var(--white); font-weight: 700; font-size: 1rem;
  transition: background .3s, box-shadow .3s, transform .35s var(--ease);
}
.meet__btn svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.meet__card:hover .meet__btn { background: #237d2f; transform: translateY(-2px); box-shadow: 0 14px 28px -16px rgba(42, 145, 55, .9); }
.meet__card:hover .meet__btn svg { transform: translateX(4px); }
.meet__card:focus-visible { outline: 3px solid var(--naranja); outline-offset: 4px; }

.meet__chamber { width: 100%; height: auto; overflow: visible; }
.meet__chamber .arc { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.arc--1 { stroke: var(--amarillo); } .arc--2 { stroke: var(--naranja); } .arc--3 { stroke: rgba(19, 47, 85, .18); }
.podium { fill: var(--azul-oscuro); }
.seat { stroke: var(--white); stroke-width: 4; transform-box: fill-box; transform-origin: center; transition: translate .5s var(--ease); }
.seat--verde { fill: var(--verde); } .seat--azul { fill: var(--azul); }
.meet__card:hover .seat { translate: 0 -5px; }
.meet__card:hover .seat:nth-of-type(2) { transition-delay: .04s; } .meet__card:hover .seat:nth-of-type(3) { transition-delay: .08s; }
.meet__card:hover .seat:nth-of-type(4) { transition-delay: .12s; } .meet__card:hover .seat:nth-of-type(5) { transition-delay: .16s; }
.meet__card:hover .seat:nth-of-type(6) { transition-delay: .2s; }
.meet__legend {
  grid-column: 2; justify-self: center; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .35rem .9rem;
  margin-top: -1rem; font-size: .8125rem; color: rgba(19, 47, 85, .65);
}
.meet__legend > span { white-space: nowrap; }
.dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin-right: .15rem; }
.dot--verde { background: var(--verde); } .dot--azul { background: var(--azul); }

/* entrada: arcos que se dibujan y bancas que se ocupan de izquierda a derecha */
.js-meet .meet__chamber .arc { stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s cubic-bezier(.65, 0, .35, 1); }
.js-meet .arc--2 { transition-delay: .15s; } .js-meet .arc--3 { transition-delay: .3s; }
.js-meet .podium { opacity: 0; transition: opacity .6s ease .5s; }
.js-meet .seat { opacity: 0; scale: .3; transition: opacity .5s ease calc(.7s + var(--s) * .22s), scale .8s cubic-bezier(.34, 1.56, .64, 1) calc(.7s + var(--s) * .22s), translate .5s var(--ease); }
.js-meet .is-in .arc { stroke-dashoffset: 0; }
.js-meet .is-in .podium { opacity: 1; }
.js-meet .is-in .seat { opacity: 1; scale: 1; }
@media (max-width: 900px) {
  .meet__card { grid-template-columns: 1fr; }
  .meet__chamber { order: -1; max-width: 20rem; justify-self: center; }
  .meet__legend { grid-column: 1; order: -1; margin-top: -1.5rem; }
  .meet__btn { width: 100%; justify-content: center; }
}

/* =============================================================================
   Página «Concejales» — portada clara, con los colores del manual
   ========================================================================== */
.logo-pos { display: none !important; }
.header--page .logo-neg { display: none !important; }
.header--page .logo-pos { display: block !important; }
.header--page.is-open .logo-neg { display: block !important; }
.header--page.is-open .logo-pos { display: none !important; }
.header--page .menu-btn { color: var(--azul-oscuro); }
.header--page.is-open .menu-btn { color: var(--white); }
@media (min-width: 1181px) {
  .header--page .nav__list a { color: rgba(19, 47, 85, .72); }
  .header--page .nav__list a:hover, .header--page .nav__list a[aria-current] { color: var(--azul-oscuro); }
  .header--page .nav__list a[aria-current]::after { transform: scaleX(1); background: var(--verde); }
  .header--page .nav__cta { color: var(--azul-oscuro); border-color: rgba(19, 47, 85, .3); }
  .header--page .nav__cta:hover { background: var(--azul-oscuro); color: var(--white); border-color: var(--azul-oscuro); }
}

.page-intro {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--white); color: var(--azul-oscuro);
  padding: calc(var(--header-h) + clamp(3rem, 7vw, 6rem)) var(--pad) clamp(4rem, 8vw, 6.5rem);
}
.page-intro__arcs {
  position: absolute; z-index: -1; right: -18%; bottom: -55%; width: min(78rem, 95vw); aspect-ratio: 1; pointer-events: none;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 calc(7% - 1px), rgba(19, 47, 85, .07) calc(7% - 1px) 7%);
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%); mask-image: radial-gradient(circle, #000 30%, transparent 70%);
}
/* franja inferior con los cinco colores */
.page-intro__band { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; display: flex; }
.page-intro__band i { flex: 1; transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.page-intro__band i:nth-child(1) { background: var(--verde); }
.page-intro__band i:nth-child(2) { background: var(--amarillo); transition-delay: .1s; }
.page-intro__band i:nth-child(3) { background: var(--naranja); transition-delay: .2s; }
.page-intro__band i:nth-child(4) { background: var(--azul); transition-delay: .3s; }
.page-intro__band i:nth-child(5) { background: var(--azul-oscuro); transition-delay: .4s; }
.is-ready .page-intro__band i { transform: scaleX(1); }

.page-intro__inner { max-width: 84rem; margin: 0 auto; }
.crumbs { display: flex; gap: .6rem; font-size: .875rem; color: rgba(19, 47, 85, .5); margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.crumbs a { color: rgba(19, 47, 85, .75); }
.crumbs a:hover { color: var(--azul-oscuro); text-decoration: underline; text-underline-offset: 3px; }
.page-intro__title {
  margin: 0; display: flex; flex-wrap: wrap; column-gap: .32em;
  font-size: clamp(2.7rem, 1rem + 6.4vw, 7.25rem); font-weight: 300; line-height: 1; letter-spacing: -.035em;
}
.page-intro__title b { font-weight: 900; letter-spacing: -.04em; }
.pt--verde b { color: var(--verde); }
.pt--naranja b { color: var(--naranja); }
.pt--azul b { color: var(--azul); }
.page-intro__lead { max-width: 34rem; margin: clamp(1.5rem, 3vw, 2.25rem) 0 0; font-size: clamp(1.02rem, .96rem + .3vw, 1.2rem); line-height: 1.6; color: rgba(19, 47, 85, .72); }
.pt { display: inline-block; opacity: 0; translate: 0 .35em; transition: opacity .9s ease, translate 1.1s var(--ease); }
.is-ready .pt { opacity: 1; translate: 0 0; }
.is-ready .pt:nth-child(1) { transition-delay: .2s; }
.is-ready .pt:nth-child(2) { transition-delay: .5s; }
.is-ready .pt:nth-child(3) { transition-delay: .8s; }
.page-intro__lead, .crumbs { opacity: 0; transition: opacity 1s ease 1.1s; }
.is-ready .page-intro__lead, .is-ready .crumbs { opacity: 1; }
.council--page { padding-top: clamp(3.5rem, 7vw, 5.5rem); }
@media (max-width: 640px) { .page-intro__title { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) {
  .pt, .page-intro__lead, .crumbs, .page-intro__band i, .js-meet .seat, .js-meet .podium, .js-meet .meet__chamber .arc {
    opacity: 1 !important; translate: none !important; transform: none !important; scale: none !important; stroke-dashoffset: 0 !important; transition: none !important;
  }
  .member__figure { transition: none !important; }
}

/* Página «Concejales»: ocupa todo el ancho de la pantalla */
.page-concejales main { display: block; width: 100%; }
.page-concejales .page-intro__inner,
.page-concejales .council__wrap { max-width: 112rem; }

/* =============================================================================
   Barra de scroll oculta (el desplazamiento funciona igual)
   ========================================================================== */
html { scrollbar-width: none; -ms-overflow-style: none; scroll-padding-top: 6.5rem; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* =============================================================================
   Menú flotante: al empezar a bajar, la barra superior se convierte en una
   cápsula azul institucional semitransparente que queda siempre visible.
   (El fondo va en ::after para no encerrar el menú móvil, que es position: fixed.)
   ========================================================================== */
.header {
  --fl: max(.75rem, calc((100% - 82rem) / 2));
  transition: top .6s var(--ease), left .6s var(--ease), right .6s var(--ease), height .6s var(--ease), padding .6s var(--ease), opacity 1s var(--ease);
}
.header::before { transition: opacity .3s ease; }
.header::after {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  border-radius: 999px;
  background: rgba(19, 47, 85, .7);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 18px 44px -22px rgba(11, 26, 46, .6), inset 0 1px 0 rgba(255, 255, 255, .08);
  opacity: 0; transform: translateY(-14px) scale(.98);
  transition: opacity .45s ease, transform .7s var(--ease);
}
.header__brand img { transition: height .6s var(--ease); }

.header.is-floating {
  top: .75rem; left: var(--fl); right: var(--fl);
  height: 4.25rem; padding: 0 .75rem 0 1.5rem;
}
.header.is-floating::before { opacity: 0; }
.header.is-floating::after { opacity: 1; transform: none; }
.header.is-floating .header__brand img { height: 2.35rem; }
.header.is-floating .nav__cta { height: 2.75rem; }
.header.is-floating.is-open::after { opacity: 0; }

/* En la página de Concejales la barra arranca clara; al flotar vuelve al blanco */
.header--page.is-floating .logo-neg { display: block !important; }
.header--page.is-floating .logo-pos { display: none !important; }
.header--page.is-floating .menu-btn { color: var(--white); }
@media (min-width: 1181px) {
  .header--page.is-floating .nav__list a { color: var(--white-80); }
  .header--page.is-floating .nav__list a:hover, .header--page.is-floating .nav__list a[aria-current] { color: var(--white); }
  .header--page.is-floating .nav__list a[aria-current]::after { background: var(--amarillo); }
  .header--page.is-floating .nav__cta { color: var(--white); border-color: rgba(255, 255, 255, .45); }
  .header--page.is-floating .nav__cta:hover { background: var(--white); color: var(--azul-oscuro); border-color: var(--white); }
}
@media (max-width: 1180px) {
  .header.is-floating { top: .6rem; height: 3.75rem; padding: 0 1.1rem 0 1.15rem; }
  .header.is-floating .header__brand img { height: 2.1rem; }
  /* con el menú abierto la barra vuelve a ocupar el ancho completo */
  .header.is-floating.is-open { top: 0; left: 0; right: 0; height: var(--header-h); padding: env(safe-area-inset-top) var(--pad) 0; }
}
@media (prefers-reduced-motion: reduce) {
  .header, .header::after, .header__brand img { transition: none !important; }
}

/* «El Concejo»: el panel fijo queda debajo del menú flotante */
@media (min-width: 901px) {
  .about__sticky {
    top: 5.75rem;
    height: calc(100vh - 5.75rem - clamp(1rem, 2vw, 1.5rem));
    height: calc(100svh - 5.75rem - clamp(1rem, 2vw, 1.5rem));
  }
}
.link-arrow svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* =============================================================================
   Home — franja «Sesiones» (link al canal de YouTube)
   ========================================================================== */
.sessions { background: #f6f4ef; padding: 0 var(--pad) clamp(4.5rem, 8vw, 7rem); color: var(--azul-oscuro); }
.sessions__row {
  max-width: 82rem; margin: 0 auto;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.25rem clamp(1.25rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-top: 1px solid rgba(19, 47, 85, .14); border-bottom: 1px solid rgba(19, 47, 85, .14);
}
.sessions__play {
  position: relative; display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%;
  background: var(--naranja); color: var(--white);
}
.sessions__play::after {   /* pulso suave, como "en vivo" */
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--naranja); opacity: .35;
  animation: sessions-pulse 2.4s var(--ease) infinite;
}
@keyframes sessions-pulse { 0% { transform: scale(.9); opacity: .45; } 70%, 100% { transform: scale(1.25); opacity: 0; } }
.sessions__play svg { width: 1.6rem; height: 1.6rem; fill: currentColor; margin-left: 3px; }
.sessions__eyebrow { margin: 0 0 .35rem; font-size: .75rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--naranja); }
.sessions__title { margin: 0; font-size: clamp(1.25rem, 1rem + .9vw, 1.75rem); font-weight: 300; line-height: 1.2; letter-spacing: -.01em; }
.sessions__title strong { font-weight: 900; }
.sessions__btn {
  display: inline-flex; align-items: center; gap: .6rem; height: 3.1rem; padding: 0 1.4rem; border-radius: 999px; white-space: nowrap;
  border: 1.5px solid var(--azul-oscuro); color: var(--azul-oscuro); font-weight: 700;
  transition: background .3s, color .3s;
}
.sessions__btn svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.sessions__btn:hover { background: var(--azul-oscuro); color: var(--white); }
.sessions__btn:hover svg { transform: translate(2px, -2px); }
@media (max-width: 720px) {
  .sessions__row { grid-template-columns: auto 1fr; }
  .sessions__play { width: 3.25rem; height: 3.25rem; }
  .sessions__btn { grid-column: 1 / -1; justify-content: center; }
}

/* =============================================================================
   Noticias — tarjetas limpias (funcionan con y sin foto)
   ========================================================================== */
.news { background: #f6f4ef; color: var(--azul-oscuro); padding: 0 var(--pad) clamp(5rem, 9vw, 8rem); }
.news__wrap { max-width: 82rem; margin: 0 auto; }
.news__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3rem); }
.news__eyebrow { display: flex; align-items: center; gap: .9rem; margin: 0 0 1rem; font-size: .75rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--verde); }
.news__eyebrow::before { content: ""; width: 2.25rem; height: 3px; border-radius: 3px; background: var(--verde); }
.news__title { margin: 0; font-size: clamp(2.2rem, 1.3rem + 3vw, 4rem); font-weight: 300; line-height: 1.02; letter-spacing: -.025em; }
.news__title em { font-style: normal; font-weight: 900; }
.news__all { display: inline-flex; align-items: center; gap: .55rem; padding-bottom: .3rem; border-bottom: 2px solid var(--verde); font-weight: 700; }
.news__all svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.news__all:hover svg { transform: translateX(4px); }
.news__empty { grid-column: 1 / -1; margin: 0; padding: 3rem 0; text-align: center; color: rgba(19, 47, 85, .6); }

.news__grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.news__grid--home { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: auto auto; }
.news__grid--home .ncard--feat { grid-row: 1 / span 2; }
.news__grid--list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.news__grid--list .ncard--wide { grid-column: span 2; }

.ncard { min-width: 0; }
.ncard__link {
  display: flex; flex-direction: column; height: 100%;
  background: var(--white); border-radius: 20px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(19, 47, 85, .06), 0 20px 44px -34px rgba(19, 47, 85, .4);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.ncard__link:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(19, 47, 85, .06), 0 28px 54px -32px rgba(19, 47, 85, .5); }
.ncard__link:focus-visible { outline: 3px solid var(--verde); outline-offset: 4px; }
.ncard__body { display: flex; flex-direction: column; flex: 1; gap: .75rem; padding: clamp(1.25rem, 2.2vw, 1.75rem); }
.ncard__title { margin: 0; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.ncard--feat .ncard__title, .ncard--wide .ncard__title { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); line-height: 1.15; }
.ncard__lead { margin: 0; font-size: 1rem; line-height: 1.55; color: rgba(19, 47, 85, .7); }
.ncard__more { display: inline-flex; align-items: center; gap: .45rem; margin-top: auto; padding-top: .5rem; font-size: .9375rem; font-weight: 700; color: var(--azul-oscuro); }
.ncard__more svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.ncard__link:hover .ncard__more svg { transform: translateX(4px); }

/* tarjetas laterales de la home: imagen a la izquierda, texto a la derecha */
.ncard--side .ncard__link { flex-direction: row; }
.ncard--side .ncard__media { flex: 0 0 38%; aspect-ratio: auto; min-height: 100%; }

.nmeta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; margin: 0; font-size: .8125rem; color: rgba(19, 47, 85, .6); }
.nmeta__cat { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .72rem; color: var(--azul-oscuro); }
.nmeta__cat::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--c); }

/* Imagen de la noticia, o fondo de la identidad cuando todavía no hay foto */
.nmedia { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: #efebe3; }
.nmedia > img:not(.nmedia__symbol) { width: 100%; height: 100%; object-fit: cover; display: block; transition: scale .8s var(--ease); }
.ncard__link:hover .nmedia > img:not(.nmedia__symbol) { scale: 1.045; }
.nmedia--empty { background: linear-gradient(140deg, color-mix(in srgb, var(--c) 16%, #f4f1ea) 0%, #f4f1ea 70%); }
.nmedia--empty::after {   /* filete del color de la categoría */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--c);
}
.nmedia__arcs {
  position: absolute; right: -30%; bottom: -55%; width: 95%; aspect-ratio: 1; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 calc(11% - 1px), rgba(19, 47, 85, .08) calc(11% - 1px) 11%);
}
.nmedia__symbol {
  position: absolute; right: 8%; bottom: 12%; width: 34%; max-width: 11rem; height: auto; opacity: .9;
  transition: transform .9s var(--ease);
}
.ncard--side .nmedia__symbol { width: 46%; right: 50%; bottom: 50%; translate: 50% 50%; }
.ncard__link:hover .nmedia__symbol { transform: rotate(-12deg) scale(1.04); }

@media (max-width: 1000px) {
  .news__grid--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .news__grid--home { grid-template-columns: 1fr; }
  .news__grid--home .ncard--feat { grid-row: auto; }
}
@media (max-width: 640px) {
  .news__grid--list { grid-template-columns: 1fr; }
  .news__grid--list .ncard--wide { grid-column: auto; }
  .ncard--side .ncard__link { flex-direction: column; }
  .ncard--side .ncard__media { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
  .ncard--side .nmedia__symbol { width: 34%; right: 8%; bottom: 12%; translate: none; }
}

/* ---------- Página de noticias */
.page-intro--news .pt-verde { color: var(--verde); }
.news--page { padding-top: clamp(2.5rem, 5vw, 4rem); }
.news__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.news__filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  --c: var(--azul-oscuro);
  display: inline-flex; align-items: center; gap: .5rem; height: 2.6rem; padding: 0 1.1rem; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(19, 47, 85, .2); background: var(--white); color: var(--azul-oscuro); font-size: .9375rem; font-weight: 700;
  transition: background .25s, color .25s, border-color .25s;
}
.chip[data-filter]:not([data-filter=""])::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--c); }
.chip:hover { border-color: rgba(19, 47, 85, .5); }
.chip.is-active { background: var(--azul-oscuro); border-color: var(--azul-oscuro); color: var(--white); }
.news__count { margin: 0; font-size: .9375rem; color: rgba(19, 47, 85, .6); }

/* =============================================================================
   Ventana de la noticia: centrada, no ocupa toda la pantalla
   ========================================================================== */
html.nmodal-open { overflow: hidden; }
.nmodal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: clamp(1rem, 4vh, 3rem) 1rem; }
.nmodal[hidden] { display: none; }
.nmodal__backdrop {
  position: absolute; inset: 0; background: rgba(11, 26, 46, .5);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .4s ease;
}
.nmodal__panel {
  position: relative; display: flex; flex-direction: column;
  width: min(47.5rem, 100%); max-height: min(88vh, 60rem);
  background: var(--white); color: var(--azul-oscuro); border-radius: 24px; overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(11, 26, 46, .6);
  opacity: 0; transform: translateY(24px) scale(.97);
  transition: opacity .4s ease, transform .55s var(--ease);
  outline: none;
}
.nmodal__panel::before {   /* filete de cinco colores */
  content: ""; position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: 5px;
  background: linear-gradient(90deg, var(--verde) 0 20%, var(--amarillo) 20% 40%, var(--naranja) 40% 60%, var(--azul) 60% 80%, var(--azul-oscuro) 80% 100%);
}
.nmodal.is-open .nmodal__backdrop { opacity: 1; }
.nmodal.is-open .nmodal__panel { opacity: 1; transform: none; }
.nmodal__panel.is-swap [data-nmodal-content] { animation: nmodal-swap .5s var(--ease); }
@keyframes nmodal-swap { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.nmodal__grip-area { display: none; }
.nmodal__close {
  position: absolute; z-index: 4; top: 1rem; right: 1rem; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: grid; place-items: center; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: var(--azul-oscuro);
  box-shadow: 0 6px 18px -8px rgba(11, 26, 46, .45);
  transition: transform .35s var(--ease), background .25s;
}
.nmodal__close:hover { transform: rotate(90deg); background: var(--white); }
.nmodal__close svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nmodal__scroll { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.nmodal__media { aspect-ratio: 16 / 8; }
.nmodal__media .nmedia__symbol { width: 20%; right: 50%; bottom: 50%; translate: 50% 50%; }
.nmodal__gallery {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; aspect-ratio: 16 / 9; background: #efebe3; scrollbar-width: none;
}
.nmodal__gallery::-webkit-scrollbar { display: none; }
.nmodal__gallery img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.nmodal__body { padding: clamp(1.5rem, 4vw, 2.75rem) clamp(1.5rem, 5vw, 3.25rem) clamp(1.5rem, 3vw, 2.25rem); }
.nmodal__title { margin: .9rem 0 0; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); font-weight: 900; line-height: 1.12; letter-spacing: -.02em; }
.nmodal__text { margin-top: 1.25rem; }
.nmodal__text p { margin: 0 0 1em; font-size: 1.0625rem; line-height: 1.7; color: rgba(19, 47, 85, .82); }
.nmodal__share {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(19, 47, 85, .1); font-size: .875rem; color: rgba(19, 47, 85, .6);
}
.nmodal__share > span { margin-right: .3rem; }
.share-btn {
  display: inline-flex; align-items: center; gap: .45rem; height: 2.4rem; padding: 0 .95rem; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(19, 47, 85, .2); background: none; color: var(--azul-oscuro); font-size: .875rem; font-weight: 700;
  transition: border-color .25s, background .25s, color .25s;
}
.share-btn svg { width: 1rem; height: 1rem; fill: currentColor; }
.share-btn .i-link { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.share-btn:hover { border-color: rgba(19, 47, 85, .5); }
.share-btn.is-done { background: var(--verde); border-color: var(--verde); color: var(--white); }

.nmodal__nav {
  display: flex; justify-content: space-between; gap: 1rem; padding: .85rem clamp(1rem, 3vw, 1.75rem);
  border-top: 1px solid rgba(19, 47, 85, .1); background: #fbfaf7;
}
.nmodal__step {
  display: inline-flex; align-items: center; gap: .5rem; height: 2.6rem; padding: 0 .9rem; border-radius: 999px; cursor: pointer;
  border: 0; background: none; color: var(--azul-oscuro); font-size: .9375rem; font-weight: 700; transition: background .25s, opacity .25s;
}
.nmodal__step svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nmodal__step:hover:not(:disabled) { background: rgba(19, 47, 85, .06); }
.nmodal__step:disabled { opacity: .3; cursor: default; }

/* En celular: hoja que sube desde abajo, deja ver un poco la página */
@media (max-width: 640px) {
  .nmodal { place-items: end center; padding: 0; }
  .nmodal__panel { width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: 22px 22px 0 0; transform: translateY(100%); transition: opacity .3s ease, transform .5s var(--ease); }
  .nmodal__panel::before { display: none; }
  .nmodal__grip-area { display: grid; place-items: center; position: absolute; z-index: 3; top: 0; left: 0; right: 0; height: 2.25rem; touch-action: none; }
  .nmodal__grip { width: 2.75rem; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .9); box-shadow: 0 1px 4px rgba(11, 26, 46, .3); }
  .nmodal__close { top: .85rem; right: .85rem; width: 2.4rem; height: 2.4rem; }
  .nmodal__media { aspect-ratio: 16 / 10; }
  .nmodal__nav { padding-bottom: calc(.85rem + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .nmodal__backdrop, .nmodal__panel, .ncard__link, .nmedia img, .nmedia__symbol { transition: none !important; }
  .sessions__play::after { animation: none; }
  .nmodal__panel.is-swap [data-nmodal-content] { animation: none; }
}

/* Noticias — ajustes: fondo sin foto más sutil y alturas equilibradas */
.nmedia__symbol { opacity: .2; filter: saturate(.85); }
.ncard__link:hover .nmedia__symbol { opacity: .3; }
.nmedia { aspect-ratio: 16 / 9; }
.ncard__lead { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ncard--side .ncard__lead { -webkit-line-clamp: 2; font-size: .9375rem; }
/* home: la destacada acompaña la altura de las dos laterales */
.news__grid--home .ncard--feat .ncard__media { aspect-ratio: auto; flex: 1 1 auto; min-height: 15rem; }
.ncard--side .ncard__link { min-height: 14.5rem; }
.ncard--side .ncard__media { flex: 0 0 34%; }
/* página: la más reciente ocupa una fila completa, en horizontal */
.news__grid--list .ncard--wide { grid-column: 1 / -1; }
.news__grid--list .ncard--wide .ncard__link { flex-direction: row; }
.news__grid--list .ncard--wide .ncard__media { flex: 0 0 56%; aspect-ratio: 16 / 9; }
.news__grid--list .ncard--wide .ncard__body { justify-content: center; padding: clamp(1.5rem, 3.5vw, 3rem); }
.nmodal__media { aspect-ratio: 16 / 7; }
.nmodal__media .nmedia__symbol { opacity: .22; width: 16%; }
@media (max-width: 900px) {
  .news__grid--home .ncard--feat .ncard__media { aspect-ratio: 16 / 9; flex: none; min-height: 0; }
  .news__grid--list .ncard--wide .ncard__link { flex-direction: column; }
  .news__grid--list .ncard--wide .ncard__media { flex: none; }
}
@media (max-width: 640px) {
  .ncard--side .ncard__link { min-height: 0; }
  .ncard--side .ncard__media { aspect-ratio: 16 / 9; }
  .nmodal__media { aspect-ratio: 16 / 9; }
}

/* =============================================================================
   Proyectos — tarjetas tipo expediente (sin fotos)
   ========================================================================== */
.projects__eyebrow { color: var(--azul); }
.projects__eyebrow::before { background: var(--azul); }
.projects__all { border-bottom-color: var(--azul); }
.page-intro--projects .pt-azul-c { color: var(--azul); }

.pgrid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.pgrid--home { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }

.pcard { min-width: 0; }
.pcard__link {
  position: relative; display: flex; flex-direction: column; gap: .8rem; height: 100%;
  padding: clamp(1.4rem, 2.4vw, 2rem); padding-top: calc(clamp(1.4rem, 2.4vw, 2rem) + 4px);
  background: var(--white); border-radius: 20px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(19, 47, 85, .06), 0 20px 44px -34px rgba(19, 47, 85, .4);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.pcard__link::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c); }
.pcard__link::after {   /* arcos muy suaves en la esquina, como en el resto del sitio */
  content: ""; position: absolute; right: -5.5rem; top: -5.5rem; width: 13rem; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle, transparent 0 calc(14% - 1px), rgba(19, 47, 85, .06) calc(14% - 1px) 14%);
  transition: transform 1s var(--ease);
}
.pcard__link:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(19, 47, 85, .06), 0 28px 54px -32px rgba(19, 47, 85, .5); }
.pcard__link:hover::after { transform: rotate(20deg) scale(1.08); }
.pcard__link:focus-visible { outline: 3px solid var(--azul); outline-offset: 4px; }
.pcard__top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.pcard__type { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(19, 47, 85, .6); }
.pstate {
  display: inline-flex; align-items: center; gap: .45rem; height: 1.85rem; padding: 0 .8rem; border-radius: 999px;
  font-size: .8125rem; font-weight: 700; color: var(--azul-oscuro);
  background: color-mix(in srgb, var(--c) 16%, white);
}
.pstate::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--c); }
.pstate--en-tratamiento::before { animation: pstate-pulse 2s ease-in-out infinite; }
@keyframes pstate-pulse { 50% { opacity: .35; } }
.pcard__num { margin: .2rem 0 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 300; letter-spacing: -.02em; color: var(--azul-oscuro); }
.pcard__title { margin: 0; font-size: clamp(1.1rem, 1rem + .35vw, 1.25rem); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; color: var(--azul-oscuro);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__author { margin: 0; font-size: .9375rem; color: rgba(19, 47, 85, .75); }
.pcard__author span { color: rgba(19, 47, 85, .5); }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(19, 47, 85, .08); font-size: .875rem; color: rgba(19, 47, 85, .6); }
.pcard__more { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--azul-oscuro); font-size: .9375rem; }
.pcard__more svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.pcard__link:hover .pcard__more svg { transform: translateX(4px); }

/* recorrido del expediente */
.ptrack { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.ptrack li { position: relative; display: flex; flex-direction: column; gap: .5rem; }
.ptrack li::before {   /* línea entre pasos */
  content: ""; position: absolute; top: calc(.375rem - 1px); left: 0; right: 0; height: 2px; background: rgba(19, 47, 85, .12);
}
.ptrack li:first-child::before { left: .375rem; }
.ptrack li:last-child::before { right: auto; width: .375rem; }
.ptrack li.is-done::before { background: var(--c); }
.ptrack li.is-current::before { background: linear-gradient(90deg, var(--c) 0 .75rem, rgba(19, 47, 85, .12) .75rem); }
.ptrack li:last-child.is-current::before { background: var(--c); }
.ptrack__dot { position: relative; width: .75rem; height: .75rem; border-radius: 50%; background: var(--white); border: 2px solid rgba(19, 47, 85, .2); }
.ptrack li.is-done .ptrack__dot { background: var(--c); border-color: var(--c); }
.ptrack li.is-current .ptrack__dot { box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent); }
.ptrack__label { font-size: .75rem; line-height: 1.3; color: rgba(19, 47, 85, .5); padding-right: .5rem; }
.ptrack li.is-done .ptrack__label { color: var(--azul-oscuro); font-weight: 700; }
.ptrack--big { margin-top: 1.5rem; }
.ptrack--big .ptrack__dot { width: 1rem; height: 1rem; }
.ptrack--big li::before { top: calc(.5rem - 1px); }
.ptrack--big li:first-child::before { left: .5rem; }
.ptrack--big li:last-child::before { width: .5rem; }
.ptrack--big .ptrack__label { font-size: .875rem; }

/* página: barra de filtros + búsqueda */
.psearch {
  display: flex; align-items: center; gap: .6rem; height: 2.85rem; padding: 0 1.1rem; min-width: min(100%, 20rem);
  border-radius: 999px; border: 1px solid rgba(19, 47, 85, .2); background: var(--white); color: rgba(19, 47, 85, .55);
  transition: border-color .25s, box-shadow .25s;
}
.psearch:focus-within { border-color: var(--azul); box-shadow: 0 0 0 4px rgba(26, 131, 164, .15); }
.psearch svg { flex: none; width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.psearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: .9375rem; color: var(--azul-oscuro); }
.psearch input::placeholder { color: rgba(19, 47, 85, .45); }
.projects__count { margin: -1rem 0 1.25rem; }

/* ventana del proyecto */
.pmodal__head { position: relative; padding: clamp(2rem, 4vw, 2.75rem) clamp(1.5rem, 5vw, 3.25rem) clamp(1.5rem, 3vw, 2rem); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 10%, #f7f5f0), #fbfaf7); border-bottom: 1px solid rgba(19, 47, 85, .08); }
.pmodal__head .pcard__top { padding-right: 3rem; }
.pmodal__num { margin: 1rem 0 0; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); font-weight: 300; letter-spacing: -.02em; }
.pmodal__head .nmodal__title { margin-top: .4rem; }
.pfacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0 0 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid rgba(19, 47, 85, .08); }
.pfacts dt { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(19, 47, 85, .5); }
.pfacts dd { margin: .35rem 0 0; font-size: .9375rem; font-weight: 700; }
.pdocs__title { margin: 1.5rem 0 .75rem; font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(19, 47, 85, .6); }
.pdocs { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.pdocs a { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border-radius: 12px; border: 1px solid rgba(19, 47, 85, .14); font-weight: 700; transition: border-color .25s, background .25s; }
.pdocs a:hover { border-color: var(--azul); background: rgba(26, 131, 164, .05); }
.pdocs svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: var(--azul); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pdocs a span { margin-left: auto; font-size: .75rem; color: rgba(19, 47, 85, .5); }
.pdocs__empty { margin: 0; padding: 1rem 1.1rem; border-radius: 12px; background: #f6f4ef; font-size: .9375rem; color: rgba(19, 47, 85, .65); }
@media (max-width: 640px) {
  .pfacts { grid-template-columns: 1fr 1fr; }
  .psearch { width: 100%; }
  .pmodal__head { padding-top: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pcard__link, .pcard__link::after { transition: none !important; }
  .pstate--en-tratamiento::before { animation: none; }
}

/* =============================================================================
   Pie de página
   ========================================================================== */
.footer {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--azul-oscuro); color: var(--white);
  border-radius: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px) 0 0;
  padding: clamp(3.5rem, 7vw, 6rem) var(--pad) clamp(1.5rem, 3vw, 2rem);
}
.footer::before {   /* filete de cinco colores */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: linear-gradient(90deg, var(--verde) 0 25%, var(--amarillo) 25% 50%, var(--naranja) 50% 75%, var(--azul) 75% 100%);
}
.footer__arcs {
  position: absolute; z-index: -1; right: -14rem; top: -14rem; width: 44rem; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle, transparent 0 calc(8% - 1px), rgba(255, 255, 255, .06) calc(8% - 1px) 8%);
  -webkit-mask-image: radial-gradient(circle, #000 35%, transparent 70%); mask-image: radial-gradient(circle, #000 35%, transparent 70%);
}
.footer__wrap { max-width: 82rem; margin: 0 auto; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .7fr) minmax(0, 1fr); gap: 2.5rem clamp(2rem, 5vw, 5rem); }
.footer__logo img { width: clamp(11rem, 16vw, 14rem); height: auto; display: block; }
.footer__claim { max-width: 22ch; margin: 1.75rem 0 0; font-size: clamp(1.35rem, 1.1rem + .9vw, 1.9rem); font-weight: 300; line-height: 1.2; letter-spacing: -.015em; }
.footer__claim strong { font-weight: 900; }
.footer__social { display: flex; gap: .6rem; margin-top: 1.75rem; }
.footer__social a {
  display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25); color: var(--white);
  transition: background .3s, color .3s, border-color .3s, transform .35s var(--ease);
}
.footer__social a:hover { background: var(--amarillo); border-color: var(--amarillo); color: var(--azul-oscuro); transform: translateY(-2px); }
.footer__social svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.footer__col h3 { margin: .35rem 0 1.25rem; font-size: .75rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--amarillo); }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.footer__col a { color: var(--white-80); transition: color .25s; }
.footer__col a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--amarillo); }
.footer__contact li { display: flex; align-items: flex-start; gap: .85rem; }
.footer__contact svg { flex: none; width: 1.2rem; height: 1.2rem; margin-top: .15rem; fill: none; stroke: var(--white-60); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.footer__contact small { display: block; margin-bottom: .15rem; font-size: .75rem; color: var(--white-60); }
.footer__contact .tbd { color: var(--white-80); font-style: italic; }
.footer__word {
  margin: clamp(2.5rem, 6vw, 4.5rem) 0 0; white-space: nowrap; text-align: center;
  font-size: clamp(3.5rem, 13vw, 12.5rem); font-weight: 900; line-height: .85; letter-spacing: -.045em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .16);
  user-select: none;
}
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: clamp(1.25rem, 3vw, 2rem); padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .875rem; color: var(--white-60);
}
.footer__bottom p { margin: 0; }
.footer__up { display: inline-flex; align-items: center; gap: .5rem; color: var(--white-80); font-weight: 700; }
.footer__up svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.footer__up:hover { color: var(--white); }
.footer__up:hover svg { transform: translateY(-3px); }
@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
/* la última sección de cada página no necesita tanto espacio antes del pie */
.sessions--page { padding-bottom: clamp(4rem, 7vw, 6rem); }

/* =============================================================================
   Botones — simetría óptica
   1) Lato apoya el texto un poco abajo: se sube ~1px para que quede centrado
      entre el borde de arriba y el de abajo.
   2) Las flechas/íconos tienen aire propio dentro del dibujo: del lado del ícono
      se descuenta ese aire para que los dos costados se vean iguales.
   ========================================================================== */
.btn--primary, .nav__cta, .meet__btn, .sessions__btn, .mail-btn, .chip, .share-btn,
.nmodal__step, .pstate {
  line-height: 1; padding-bottom: .06em;
}
.btn--primary { padding-top: 0; padding-left: 1.85rem; padding-right: 1.85rem; }
.nav__cta { padding-left: 1.3rem; padding-right: 1.3rem; }

/* ícono al final → un poco menos de aire a la derecha */
.meet__btn { gap: .6rem; padding-left: 1.6rem; padding-right: 1.35rem; }
.sessions__btn { gap: .55rem; padding-left: 1.4rem; padding-right: 1.2rem; }
.nmodal__step[data-next], .nmodal__step[data-pnext] { padding-left: .95rem; padding-right: .75rem; }
.nmodal__step[data-prev], .nmodal__step[data-pprev] { padding-left: .75rem; padding-right: .95rem; }

/* ícono al principio → un poco menos de aire a la izquierda */
.mail-btn { gap: .55rem; padding-left: .95rem; padding-right: 1.1rem; }
.share-btn { gap: .45rem; padding-left: .8rem; padding-right: .95rem; }
.member__badge { padding-left: .62rem; padding-right: .72rem; }
/* chips y estados con punto de color: mismo aire a los dos lados */
.chip { padding-left: 1.1rem; padding-right: 1.1rem; }
.pstate { padding-left: .8rem; padding-right: .8rem; }

/* íconos sueltos dentro de círculos: centro exacto */
.sessions__play svg { width: 1.75rem; height: 1.75rem; margin: 0; }
.footer__social svg, .nmodal__close svg { display: block; }
.footer__social svg { width: 1.3rem; height: 1.3rem; }

/* =============================================================================
   Home — franja final de contacto
   ========================================================================== */
.reach { background: #f6f4ef; color: var(--azul-oscuro); padding: 0 var(--pad) clamp(4.5rem, 8vw, 7rem); }
.reach__row {
  max-width: 82rem; margin: 0 auto; text-align: center;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid rgba(19, 47, 85, .14);
  display: flex; flex-direction: column; align-items: center;
}
.reach__title { margin: 0; max-width: 24ch; font-size: clamp(1.8rem, 1.1rem + 2.4vw, 3.2rem); font-weight: 300; line-height: 1.08; letter-spacing: -.025em; }
.reach__title strong { font-weight: 900; color: var(--naranja); }
.reach__lead { margin: 1rem 0 1.75rem; font-size: 1.0625rem; color: rgba(19, 47, 85, .7); }
.reach__btn {
  display: inline-flex; align-items: center; gap: .6rem; height: 3.25rem; padding: 0 1.4rem 0 1.65rem; padding-bottom: .06em; line-height: 1;
  border-radius: 999px; background: var(--azul-oscuro); color: var(--white); font-weight: 700;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s;
}
.reach__btn svg, .cform__send svg, .channel__btn svg, .other svg:last-child { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.reach__btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -16px rgba(19, 47, 85, .8); }
.reach__btn:hover svg { transform: translateX(4px); }

/* =============================================================================
   Página «Contacto»
   ========================================================================== */
.page-intro--contact .pt-naranja-c { color: var(--naranja); }
.channels, .write, .others { background: #f6f4ef; color: var(--azul-oscuro); padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- Canales directos */
.channels { padding-top: clamp(2.5rem, 5vw, 4rem); }
.channels__grid { max-width: 82rem; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.85rem, 1.6vw, 1.25rem); }
.channel {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .55rem;
  padding: clamp(1.4rem, 2.2vw, 1.85rem); padding-top: calc(clamp(1.4rem, 2.2vw, 1.85rem) + 4px);
  background: var(--white); border-radius: 20px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(19, 47, 85, .06), 0 20px 44px -36px rgba(19, 47, 85, .4);
}
.channel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c); }
.channel__icon { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: .45rem; border-radius: 50%; background: color-mix(in srgb, var(--c) 15%, white); }
.channel__icon svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: var(--azul-oscuro); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.channel__label { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(19, 47, 85, .6); }
.channel__value { margin: 0; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.channel__value.tbd, .where .tbd { font-weight: 400; font-style: italic; color: rgba(19, 47, 85, .5); }
.channel__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .9rem; }
.channel > .channel__btn { margin-top: auto; }
.channel > .channel__btn, .channel__actions { margin-top: auto; }
.channel__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; height: 2.6rem; padding: 0 1.05rem; padding-bottom: .06em; line-height: 1;
  border-radius: 999px; border: 1px solid rgba(19, 47, 85, .22); background: none; color: var(--azul-oscuro);
  font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; transition: background .25s, color .25s, border-color .25s;
}
.channel > .channel__btn { margin-top: auto; }
.channel__btn svg { width: 1rem; height: 1rem; }
.channel__btn:hover:not(.is-off) { background: var(--azul-oscuro); border-color: var(--azul-oscuro); color: var(--white); }
.channel__btn.is-off, .channel__btn:disabled { opacity: .38; cursor: not-allowed; pointer-events: none; }
.channel__btn--wa:hover { background: #25d366 !important; border-color: #25d366 !important; color: var(--azul-oscuro) !important; }
.channel__copy { width: 2.6rem; padding: 0; display: grid; place-items: center; }
.channel__copy svg { grid-area: 1 / 1; width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: opacity .25s, transform .35s var(--ease); }
.channel__copy .i-check { opacity: 0; transform: scale(.6); }
.channel__copy.is-copied { background: var(--verde); border-color: var(--verde); color: var(--white); }
.channel__copy.is-copied .i-copy { opacity: 0; transform: scale(.6); }
.channel__copy.is-copied .i-check { opacity: 1; transform: none; }
.channel__state { display: inline-flex; align-items: center; gap: .45rem; margin-top: auto; padding-top: .9rem; font-size: .875rem; font-weight: 700; }
.channel__state::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: #8a94a3; }
.channel__state.is-open::before { background: var(--verde); box-shadow: 0 0 0 4px rgba(42, 145, 55, .18); }
.channel__state.is-open { color: var(--verde); }

/* ---------- Formulario + ubicación */
.write { padding-top: clamp(1.25rem, 2.5vw, 1.75rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.write__grid { max-width: 82rem; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(.85rem, 1.6vw, 1.25rem); align-items: stretch; }
.write__card {
  background: var(--white); border-radius: 24px; padding: clamp(1.75rem, 4vw, 3.25rem);
  box-shadow: 0 1px 0 rgba(19, 47, 85, .06), 0 20px 44px -36px rgba(19, 47, 85, .4);
}
.write__eyebrow { display: flex; align-items: center; gap: .9rem; margin: 0 0 1rem; font-size: .75rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--naranja); }
.write__eyebrow::before { content: ""; width: 2.25rem; height: 3px; border-radius: 3px; background: var(--naranja); }
.write__title { margin: 0; font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); font-weight: 300; line-height: 1.05; letter-spacing: -.025em; }
.write__title strong { font-weight: 900; }
.write__lead { margin: .9rem 0 2rem; font-size: 1.0625rem; line-height: 1.6; color: rgba(19, 47, 85, .7); }

.cform { display: grid; gap: 1.15rem; }
.cform__motivos { border: 0; margin: 0 0 .35rem; padding: 0; }
.cform__motivos legend, .field label, .field__label { display: block; margin-bottom: .55rem; font-size: .9375rem; font-weight: 700; }
.field small, .field__label small { font-weight: 400; color: rgba(19, 47, 85, .55); }
.cform__chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.mchip { position: relative; cursor: pointer; }
.mchip input { position: absolute; opacity: 0; pointer-events: none; }
.mchip span {
  display: inline-flex; align-items: center; height: 2.6rem; padding: 0 1.1rem; padding-bottom: .06em; line-height: 1; border-radius: 999px;
  border: 1px solid rgba(19, 47, 85, .2); font-size: .9375rem; font-weight: 700; transition: background .25s, color .25s, border-color .25s;
}
.mchip:hover span { border-color: rgba(19, 47, 85, .5); }
.mchip input:checked + span { background: var(--azul-oscuro); border-color: var(--azul-oscuro); color: var(--white); }
.mchip input:focus-visible + span { outline: 3px solid var(--azul); outline-offset: 3px; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.field { min-width: 0; }
.field input:not([type="file"]), .field textarea, .select select {
  width: 100%; border: 1px solid rgba(19, 47, 85, .16); border-radius: 12px; background: #f9f8f5;
  font: inherit; font-size: 1rem; color: var(--azul-oscuro);
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field input:not([type="file"]), .select select { height: 3.25rem; padding: 0 1rem; }
.field textarea { padding: .85rem 1rem; resize: vertical; min-height: 8.5rem; line-height: 1.55; }
.field input:focus, .field textarea:focus, .select select:focus { outline: 0; border-color: var(--azul); background: var(--white); box-shadow: 0 0 0 4px rgba(26, 131, 164, .15); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #c4452b; box-shadow: 0 0 0 4px rgba(196, 69, 43, .12); }
.field__error { margin: .4rem 0 0; min-height: 0; font-size: .85rem; font-weight: 700; color: #b23c24; }
.field__error:empty { display: none; }
.field--extra { padding: 1rem 1.1rem; border-radius: 14px; background: color-mix(in srgb, var(--naranja) 8%, white); border: 1px solid color-mix(in srgb, var(--naranja) 25%, white); animation: field-in .45s var(--ease); }
@keyframes field-in { from { opacity: 0; transform: translateY(-6px); } }
.select { position: relative; }
.select select { appearance: none; padding-right: 2.75rem; cursor: pointer; background-color: var(--white); }
.select::after { content: ""; position: absolute; right: 1.1rem; top: 50%; width: .55rem; height: .55rem; border-right: 2px solid var(--azul-oscuro); border-bottom: 2px solid var(--azul-oscuro); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.file { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; cursor: pointer; }
.file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file__btn {
  display: inline-flex; align-items: center; gap: .5rem; height: 2.75rem; padding: 0 1.15rem 0 .95rem; padding-bottom: .06em; line-height: 1; border-radius: 999px;
  background: var(--white); border: 1px solid rgba(19, 47, 85, .22); font-weight: 700; font-size: .9375rem; transition: border-color .25s;
}
.file:hover .file__btn { border-color: var(--azul-oscuro); }
.file input:focus-visible + .file__btn { outline: 3px solid var(--azul); outline-offset: 3px; }
.file__btn svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.file__name { font-size: .9rem; color: rgba(19, 47, 85, .6); overflow-wrap: anywhere; }
.cform__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-top: .5rem; padding-top: 1.25rem; border-top: 1px solid rgba(19, 47, 85, .08); }
.cform__privacy { margin: 0; font-size: .875rem; color: rgba(19, 47, 85, .6); }
.cform__send {
  display: inline-flex; align-items: center; gap: .6rem; height: 3.35rem; padding: 0 1.45rem 0 1.7rem; padding-bottom: .06em; line-height: 1;
  border: 0; border-radius: 999px; cursor: pointer; background: var(--verde); color: var(--white); font: inherit; font-size: 1rem; font-weight: 700;
  transition: background .25s, transform .35s var(--ease), box-shadow .35s var(--ease);
}
.cform__send:hover { background: #237d2f; transform: translateY(-2px); box-shadow: 0 14px 28px -16px rgba(42, 145, 55, .9); }
.cform__send:hover svg { transform: translateX(4px); }
.cform__send.is-sending { opacity: .75; cursor: progress; }
.cform__send.is-sending svg { animation: send-nudge .8s ease-in-out infinite; }
@keyframes send-nudge { 50% { transform: translateX(5px); } }
.cform__ok { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; padding: 2rem 0 .5rem; outline: none; animation: field-in .5s var(--ease); }
.cform__okicon { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--verde); color: var(--white); margin-bottom: .5rem; }
.cform__okicon svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cform__ok h3 { margin: 0; font-size: 1.6rem; font-weight: 900; letter-spacing: -.015em; }
.cform__ok p { margin: 0 0 1rem; font-size: 1.0625rem; color: rgba(19, 47, 85, .75); }

.where { display: grid; grid-template-rows: auto 1fr; gap: clamp(.85rem, 1.6vw, 1.25rem); }
.where__photo { margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; }
.where__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.where__map {
  position: relative; overflow: hidden; min-height: 16rem; border-radius: 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; padding: 2rem; text-align: center;
  background: #ebe7de; color: rgba(19, 47, 85, .65); font-size: .9375rem;
}
.where__map p { position: relative; margin: 0; max-width: 22ch; }
.where__arcs { position: absolute; left: 50%; top: 50%; width: 46rem; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 calc(5% - 1px), rgba(19, 47, 85, .08) calc(5% - 1px) 5%); }
.where__pin { position: relative; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--naranja); color: var(--white); box-shadow: 0 0 0 10px rgba(243, 147, 27, .18); }
.where__pin svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.where__map.has-map { padding: 0; }
.where__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.6) contrast(.95); }

/* ---------- Otras formas */
.others { padding-bottom: clamp(4.5rem, 8vw, 7rem); }
.others__title { max-width: 82rem; margin: 0 auto 1.25rem; font-size: .75rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: rgba(19, 47, 85, .6); }
.others__grid { max-width: 82rem; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.85rem, 1.6vw, 1.25rem); }
.other {
  display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.35rem; border-radius: 18px; cursor: pointer;
  border: 1px solid rgba(19, 47, 85, .12); background: transparent; transition: background .3s, border-color .3s, transform .4s var(--ease);
}
.other:hover { background: var(--white); border-color: transparent; transform: translateY(-3px); }
.other__icon { flex: none; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; background: color-mix(in srgb, var(--c) 15%, white); }
.other__icon svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: var(--azul-oscuro); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.other__text { flex: 1; display: flex; flex-direction: column; gap: .2rem; }
.other__text b { font-size: 1rem; }
.other__text span { font-size: .875rem; color: rgba(19, 47, 85, .6); }
.other:hover svg:last-child { transform: translateX(3px); }

@media (max-width: 1100px) {
  .channels__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .write__grid { grid-template-columns: 1fr; }
  .where { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .where__photo { aspect-ratio: auto; min-height: 16rem; }
}
@media (max-width: 760px) {
  .others__grid { grid-template-columns: 1fr; }
  .where { grid-template-columns: 1fr; }
  .where__photo { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .channels__grid { grid-template-columns: 1fr; }
  .cform__row { grid-template-columns: 1fr; }
  .cform__send { width: 100%; justify-content: center; }
  .reach__btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .field--extra, .cform__ok, .cform__send.is-sending svg { animation: none !important; }
  .other, .reach__btn, .cform__send { transition: none !important; }
}

/* lo marcado como oculto queda oculto aunque tenga un display propio */
[hidden] { display: none !important; }

/* =============================================================================
   Celular — versión más liviana
   ========================================================================== */
@media (max-width: 760px) {
  /* 1. Portada: sin los 4 accesos (el menú ya los tiene) */
  .quick { display: none; }

  /* 2. «El Concejo»: portada de sección más baja, fotos completas, sin palabras de contorno */
  .about__sticky { height: auto; min-height: 0; }
  .about__panel { min-height: 15rem; }
  .about__steps { padding-top: 3rem; gap: 3.75rem; }
  .step__word { display: none; }
  .step__frame { clip-path: none !important; border-radius: 20px; }
  .step__frame img { transform: none !important; }
  .js-fade .step__media { opacity: 0; translate: 0 18px; transition: opacity .9s ease, translate 1s var(--ease); }
  .js-fade .step__media.is-seen { opacity: 1; translate: 0 0; }

  /* 5. Contacto: en celular, solo el mapa */
  .where__photo { display: none; }
  .where__map { min-height: 13rem; }
}

/* 3. Noticias (home): sin hueco dentro de las tarjetas */
@media (max-width: 640px) {
  .ncard--side .ncard__link { min-height: 0; flex-direction: column; }
  .ncard--side .ncard__media { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .ncard__more { margin-top: .25rem; padding-top: .25rem; }

  /* 4. Filtros en una sola fila que se desliza */
  .news__bar { display: block; }
  .news__filters {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin: 0 calc(var(--pad) * -1) 1rem; padding: .25rem var(--pad);
    scroll-padding-inline: var(--pad);
  }
  .news__filters::-webkit-scrollbar { display: none; }
  .news__filters .chip { flex: none; }
  .psearch { width: 100%; }
}

/* 6. Pie: en celular sin la lista «El sitio» (ya está en el menú) */
@media (max-width: 560px) {
  .footer nav.footer__col { display: none; }
  .footer__top { gap: 2.25rem; }
}

/* 7. Concejales: cada bloque es un carrusel que se desliza de costado */
@media (max-width: 900px) {
  .bloc__body.is-carousel { border-radius: 0 24px 24px 24px; padding: 1.25rem 0 1rem; }
  .is-carousel .bench {
    display: flex; gap: .85rem; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    padding: 0 1.1rem; scroll-padding-inline: 1.1rem;
  }
  .is-carousel .bench::-webkit-scrollbar { display: none; }
  .is-carousel .member {
    flex: 0 0 min(84%, 22rem); scroll-snap-align: center;
    border-radius: 20px; overflow: hidden; background: #f3f0ea;
  }
  .is-carousel .member__stage { height: auto; aspect-ratio: 640 / 600; padding-top: 1rem; }
  .is-carousel .plate { border-radius: 0; }
  .is-carousel .member__badge { top: .85rem; left: .85rem; }
  .bench__dots { display: flex; justify-content: center; gap: .5rem; padding-top: 1rem; }
  .bench__dots button {
    width: .55rem; height: .55rem; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
    background: rgba(19, 47, 85, .22); transition: width .35s var(--ease), background .3s;
  }
  .bench__dots button[aria-current="true"] { width: 1.6rem; background: var(--c); }
}
@media (min-width: 901px) { .bench__dots { display: none; } }
@media (max-width: 760px) {
  .step__body { margin-top: 1.5rem; }   /* sin la palabra de contorno, el texto va debajo del epígrafe */
}

/* =============================================================================
   «El Concejo» en celular: el bloque de color queda fijo arriba (como en compu)
   y las fotos y textos pasan por debajo. El título cambia según el capítulo.
   ========================================================================== */
@media (max-width: 760px) {
  .about__wrap { position: relative; }
  .about__sticky {
    position: sticky; z-index: 6; top: 4.9rem; align-self: start;
    height: auto; min-height: 0;
  }
  .about__sticky::before {   /* tapa lo que sube por detrás, entre el menú y el bloque */
    content: ""; position: absolute; z-index: -1; left: calc(var(--pad) * -1 - 1rem); right: calc(var(--pad) * -1 - 1rem);
    top: -6rem; bottom: 1.25rem; background: #f6f4ef;
  }
  .about__panel {
    height: auto; min-height: 0;
    border-radius: 20px;
    box-shadow: 0 18px 36px -22px rgba(11, 26, 46, .55);
  }
  .about__panel-inner { padding: 1.1rem 1.25rem 1.15rem; }
  .about__eyebrow { margin-bottom: .85rem; font-size: .68rem; }
  .about__titles .about__title:not(:first-child) { display: block; }
  .about__title { font-size: clamp(1.65rem, 1.2rem + 2.4vw, 2.1rem); }
  .about__dots { display: flex; position: absolute; right: 1.25rem; top: 1.05rem; margin: 0; gap: .4rem; }
  .about__dots a { width: .45rem; height: .45rem; }
  .about__dots a.is-active { width: 1.4rem; }
  .about__symbol { width: 45%; right: -6%; bottom: -55%; }
  .step__mobile-title, #concejo-quienes .step__mobile-title { display: none; }
  .about__steps { padding-top: 2.25rem; }
}
@media (max-width: 760px) {
  /* el panel y los capítulos comparten la misma celda: así el panel tiene recorrido para quedar fijo */
  .about__wrap { grid-template-columns: 1fr; grid-template-rows: auto; }
  .about__aside, .about__steps { grid-column: 1; grid-row: 1; }
  .about__aside { position: relative; z-index: 6; pointer-events: none; }
  .about__aside .about__sticky { pointer-events: auto; }
  .about__steps { padding-top: calc(var(--about-panel-h, 9.5rem) + 2.25rem); }
}
.cform__senderr { margin: 0; padding: .85rem 1rem; border-radius: 12px; background: rgba(196, 69, 43, .08); color: #9c331d; font-size: .9375rem; font-weight: 700; }

.channel__value[data-contact="correo"] { overflow-wrap: normal; word-break: normal; }
.channel__state { min-height: calc(2.6rem + .9rem); }

/* =============================================================================
   Correcciones de la revisión
   ========================================================================== */
/* Portada en celulares chicos: todo entra en la pantalla y nada se corta */
.hero { height: auto; }
.hero__inner { min-height: inherit; }
@media (max-width: 560px) and (max-height: 760px) {
  .hero__inner { padding-top: calc(var(--header-h) + 1rem); padding-bottom: 1.25rem; }
  .hero__content { margin-bottom: .75rem; }
  .hero__eyebrow { margin-bottom: .75rem; }
  .hero__title { font-size: clamp(2.2rem, 10vw, 2.6rem); }
  .hero__lead { margin: .75rem 0 1.1rem; font-size: .975rem; line-height: 1.5; }
  .hero .btn--primary { height: 3rem; }
}

/* «El Concejo» en celular: menos espacio vacío antes del bloque fijo */
@media (max-width: 760px) {
  .about { padding-top: 1.75rem; }
}

/* Pie y tarjetas: sin palabras sueltas en el último renglón */
.footer__contact span, .channel__value, .reach__title, .hero__lead, .page-intro__lead { text-wrap: pretty; }

/* Proyectos: con pocas tarjetas, ocupan todo el ancho en lugar de dejar un hueco */
.pgrid--list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.pgrid--list:has(> .pcard:only-child) { grid-template-columns: minmax(0, 40rem); }
/* el fondo que acompaña al bloque fijo no puede salirse de su sección (tapaba el final de la portada) */
@media (max-width: 760px) { .about { overflow: clip; } }

/* ---------- Política de privacidad */
.legal { background: #f6f4ef; color: var(--azul-oscuro); padding: clamp(2.5rem, 5vw, 4rem) var(--pad) clamp(4.5rem, 8vw, 7rem); }
.legal__card { max-width: 46rem; margin: 0 auto; padding: clamp(1.75rem, 4vw, 3.25rem); background: var(--white); border-radius: 24px; box-shadow: 0 1px 0 rgba(19, 47, 85, .06), 0 20px 44px -36px rgba(19, 47, 85, .4); }
.legal__card h2 { margin: 2rem 0 .6rem; font-size: 1.15rem; font-weight: 900; letter-spacing: -.01em; }
.legal__card h2:first-child { margin-top: 0; }
.legal__card p { margin: 0 0 1rem; font-size: 1.0625rem; line-height: 1.7; color: rgba(19, 47, 85, .82); }
.legal__card a { color: var(--azul); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.legal__note { padding: 1rem 1.15rem; border-radius: 14px; background: #f6f4ef; font-size: .9375rem !important; }
.legal__date { margin-top: 2rem !important; font-size: .875rem !important; color: rgba(19, 47, 85, .55) !important; }
.footer__legal { color: var(--white-80); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .35); }
.footer__legal:hover { color: var(--white); }
.cform__privacy a { color: var(--azul); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Página 404 */
.page-404 .nf { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.page-404 .nf .page-intro__inner { width: 100%; }
.nf__code { margin: 0 0 1rem; font-size: clamp(5rem, 3rem + 10vw, 11rem); font-weight: 900; line-height: .85; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 2px rgba(19, 47, 85, .15); }
.nf__links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.nf__btn { display: inline-flex; align-items: center; height: 3rem; padding: 0 1.3rem; padding-bottom: .06em; line-height: 1; border-radius: 999px; border: 1px solid rgba(19, 47, 85, .22); font-weight: 700; transition: background .25s, color .25s, border-color .25s; }
.nf__btn:hover { background: var(--azul-oscuro); border-color: var(--azul-oscuro); color: var(--white); }
.nf__btn--main { background: var(--verde); border-color: var(--verde); color: var(--white); }
.nf__btn--main:hover { background: #237d2f; border-color: #237d2f; }

/* =============================================================================
   Declaraciones — Ciudadanos Ilustres (retratos en arco, como los concejales)
   ========================================================================== */
.page-intro--decl .pt-amarillo-c { color: #e0a000; }
.ilustres { background: #f6f4ef; color: var(--azul-oscuro); padding: clamp(3.5rem, 7vw, 6rem) var(--pad) clamp(3rem, 6vw, 5rem); }
.ilustres__wrap { max-width: 82rem; margin: 0 auto; }
.ilustres__head { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: end; gap: 1.5rem clamp(2rem, 6vw, 6rem); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.ilustres__head--home { display: flex; justify-content: space-between; flex-wrap: wrap; }
.ilustres__eyebrow { display: flex; align-items: center; gap: .9rem; margin: 0 0 1rem; font-size: .75rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: #b98400; }
.ilustres__eyebrow::before { content: ""; width: 2.25rem; height: 3px; border-radius: 3px; background: var(--amarillo); }
.ilustres__title { margin: 0; font-size: clamp(2.4rem, 1.3rem + 3.6vw, 4.6rem); font-weight: 300; line-height: 1; letter-spacing: -.03em; }
.ilustres__title em { font-style: normal; font-weight: 900; }
.ilustres__about p { margin: 0 0 .9rem; font-size: clamp(1.02rem, .96rem + .25vw, 1.15rem); line-height: 1.65; color: rgba(19, 47, 85, .75); }
.ilustres__about strong { color: var(--azul-oscuro); }
.ilustres__count { font-size: .875rem !important; font-weight: 700; color: #b98400 !important; }
.ilustres__count:empty { display: none; }
.ilustres__all { border-bottom-color: var(--amarillo); }
.ilustres--home { padding-top: 0; padding-bottom: clamp(4.5rem, 8vw, 7rem); }

.ilus-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 1.75rem); }
.ilus-grid--home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ilus { animation: ilus-in .9s var(--ease) both; animation-delay: calc(var(--i) * .12s); }
@keyframes ilus-in { from { opacity: 0; transform: translateY(18px); } }
.ilus__link { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .55rem; }
.ilus__arch {
  position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 5; margin-bottom: .6rem;
  border-radius: 999px 999px 20px 20px; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #ebe7de, #e3ded3);
  box-shadow: 0 1px 0 rgba(19, 47, 85, .05), 0 22px 40px -30px rgba(19, 47, 85, .55);
}
.ilus__arch::after {   /* filete dorado interior, como una medalla */
  content: ""; position: absolute; inset: 7px; z-index: 2; pointer-events: none;
  border: 1.5px solid rgba(250, 182, 19, .9); border-radius: 999px 999px 14px 14px;
}
.ilus__arch img:not(.ilus__sym) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: scale .8s var(--ease); }
.ilus__link:hover .ilus__arch img:not(.ilus__sym) { scale: 1.045; }
.ilus__sym { width: 38%; opacity: .22; }
.ilus__year { display: inline-flex; align-items: center; height: 1.6rem; padding: 0 .7rem; padding-bottom: .06em; line-height: 1; border-radius: 999px; background: color-mix(in srgb, var(--amarillo) 22%, white); font-size: .8125rem; font-weight: 700; }
.ilus__name { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); font-weight: 900; line-height: 1.25; letter-spacing: -.01em; }
.ilus__link:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 6px; border-radius: 20px; }
.ilus-empty { grid-column: 1 / -1; display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.5rem); padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 24px; border: 1px dashed rgba(19, 47, 85, .2); }
.ilus-empty .ilus__arch { width: clamp(5.5rem, 10vw, 7.5rem); flex: none; margin: 0; }
.ilus-empty p { margin: 0; color: rgba(19, 47, 85, .65); line-height: 1.6; }
.ilus-empty b { display: block; color: var(--azul-oscuro); font-size: 1.1rem; margin-bottom: .2rem; }

/* ---------- Todas las declaraciones */
.decls { padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid rgba(19, 47, 85, .1); }
.decls__head { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.decls__eyebrow { color: var(--azul); }
.decls__eyebrow::before { background: var(--azul); }
.decls__tools { display: flex; flex-wrap: wrap; gap: .6rem; }
.dyear { width: 11rem; }
.dyear select { height: 2.85rem; border-radius: 999px; background-color: var(--white); font-size: .9375rem; font-weight: 700; }
.dcard__year { font-size: .8125rem; font-weight: 700; color: rgba(19, 47, 85, .55); }
.dcard__num { margin: 0; font-size: .875rem; font-weight: 700; color: rgba(19, 47, 85, .6); }
.dcard__lead { margin: 0; font-size: .9375rem; line-height: 1.55; color: rgba(19, 47, 85, .7); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Ventana: Ciudadano Ilustre */
.vilus { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); align-items: end; gap: 1.5rem; padding: clamp(2rem, 4vw, 2.75rem) clamp(1.5rem, 5vw, 3.25rem) 1.5rem; background: linear-gradient(180deg, color-mix(in srgb, var(--amarillo) 14%, #f7f5f0), #fbfaf7); border-bottom: 1px solid rgba(19, 47, 85, .08); }
.vilus__arch { margin: 0; }
.vilus__eyebrow { margin: 0 0 .5rem; font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #b98400; }
.vilus .nmodal__title { margin: 0; }
.vilus__num { margin: .5rem 0 0; font-size: .875rem; color: rgba(19, 47, 85, .6); }
.vphotos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.vphotos a { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; }
.vphotos img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease); }
.vphotos a:hover img { scale: 1.05; }
.nmodal__body--top { padding-top: clamp(2.75rem, 5vw, 3.5rem); }

/* =============================================================================
   Programas
   ========================================================================== */
.page-intro--prog .pt-verde { color: var(--verde); }
.progs { padding-top: clamp(2.5rem, 5vw, 4rem); }
.prog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.prog { min-width: 0; animation: ilus-in .8s var(--ease) both; animation-delay: calc(var(--i) * .08s); }
.prog__link {
  display: flex; flex-direction: column; height: 100%; background: var(--white); border-radius: 20px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(19, 47, 85, .06), 0 20px 44px -34px rgba(19, 47, 85, .4);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.prog__link:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(19, 47, 85, .06), 0 28px 54px -32px rgba(19, 47, 85, .5); }
.prog__link:focus-visible { outline: 3px solid var(--c); outline-offset: 4px; }
.prog__media { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; background: #efebe3; }
.prog__media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--c); }
.prog__media img:not(.prog__sym) { width: 100%; height: 100%; object-fit: cover; transition: scale .8s var(--ease); }
.prog__link:hover .prog__media img:not(.prog__sym) { scale: 1.045; }
.prog__media--empty { background: linear-gradient(140deg, color-mix(in srgb, var(--c) 22%, #f4f1ea) 0%, #f4f1ea 75%); }
.prog__arcs { position: absolute; right: -25%; bottom: -60%; width: 90%; aspect-ratio: 1; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 calc(11% - 1px), rgba(19, 47, 85, .08) calc(11% - 1px) 11%); }
.prog__sym { position: relative; width: 26%; opacity: .3; transition: transform .9s var(--ease); }
.prog__link:hover .prog__sym { transform: rotate(-12deg) scale(1.05); }
.prog__body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; gap: .65rem; padding: clamp(1.25rem, 2.2vw, 1.75rem); }
.prog__name { margin: .15rem 0 0; font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); font-weight: 900; line-height: 1.2; letter-spacing: -.015em; }
.prog__lead { font-size: .9375rem; line-height: 1.55; color: rgba(19, 47, 85, .7); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.prog__body .pcard__more { margin-top: auto; padding-top: .4rem; }
.prog__link:hover .pcard__more svg { transform: translateX(4px); }
.prog-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; padding: clamp(3rem, 7vw, 5rem) 1.5rem; border-radius: 24px; background: var(--white); }
.prog-empty__icon { display: grid; place-items: center; width: 5.5rem; height: 5.5rem; border-radius: 50%; background: color-mix(in srgb, var(--verde) 12%, white); }
.prog-empty__icon .prog__sym { width: 55%; opacity: .5; }
.prog-empty p { margin: 0; max-width: 30rem; color: rgba(19, 47, 85, .65); line-height: 1.6; }
.prog-empty b { display: block; color: var(--azul-oscuro); font-size: 1.15rem; margin-bottom: .3rem; }
.pstate--vigente::before { animation: pstate-pulse 2s ease-in-out infinite; }

/* ventana del programa */
.vinfos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .75rem; margin: .25rem 0 1.5rem; }
.vinfo { padding: 1rem 1.15rem; border-radius: 14px; background: #f6f4ef; }
.vinfo h3 { margin: 0 0 .4rem; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(19, 47, 85, .55); }
.vinfo p { margin: 0; font-size: .9375rem; line-height: 1.55; }
.vcta { display: inline-flex; align-items: center; gap: .6rem; height: 3rem; padding: 0 1.3rem 0 1.5rem; padding-bottom: .06em; line-height: 1; border-radius: 999px; background: var(--verde); color: var(--white); font-weight: 700; transition: background .25s, transform .35s var(--ease); }
.vcta svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.vcta:hover { background: #237d2f; transform: translateY(-2px); }
.vcta:hover svg { transform: translateX(4px); }

@media (max-width: 900px) {
  .ilustres__head { grid-template-columns: 1fr; }
  .ilus-grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .ilus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem .85rem; }
  .ilus-empty { flex-direction: column; text-align: center; }
  .vilus { grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding-top: 2.75rem; }
  .vphotos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .decls__tools { width: 100%; }
  .dyear { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ilus, .prog { animation: none; }
  .pstate--vigente::before { animation: none; }
}
@media (min-width: 641px) { .decls__tools { flex-wrap: nowrap; align-items: center; } .decls__tools .psearch { min-width: 17rem; } }
/* retratos con tamaño de medalla, no de póster */
@media (min-width: 561px) {
  .ilus-grid, .ilus-grid--home { grid-template-columns: repeat(auto-fill, minmax(11.5rem, 14.5rem)); justify-content: start; }
}
