/* ── Avance legislativo · Octubre 2026 ─────────────────────────────────
   Estilos de la sección "#avance" y del aviso en la portada.
   Se carga aparte del CSS compilado (index-*.css). */

:root {
  --av-ink-950: #0a1622;
  --av-ink-900: #0e1c2b;
  --av-ink-700: #1c354c;
  --av-ink-500: #4d6378;
  --av-cancha-700: #19744c;
  --av-cancha-600: #1f8a5b;
  --av-cancha-300: #7fd3ac;
  --av-cinta-500: #cb3a4c;
  --av-sand-50: #fbfaf8;
  --av-sand-100: #f4f2ee;
  --av-line: rgba(14, 28, 43, .1);
}

/* Aviso en la portada */
.av-pill {
  display: inline-flex; align-items: center; gap: .75rem;
  margin-bottom: 1.75rem; padding: .4rem 1rem .4rem .4rem;
  border-radius: 999px; border: 1px solid rgba(127, 211, 172, .35);
  background: rgba(10, 22, 34, .55); backdrop-filter: blur(8px);
  color: #fff; text-decoration: none; font-size: .875rem; font-weight: 500;
  max-width: 100%; transition: border-color .25s, background .25s, transform .25s;
}
.av-pill:hover { border-color: var(--av-cancha-300); background: rgba(31, 138, 91, .25); transform: translateY(-1px); }
.av-pill-tag {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .65rem; border-radius: 999px; background: var(--av-cinta-500);
  font-family: "Geist Mono", ui-monospace, monospace; font-size: .65rem;
  font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.av-pill-text { min-width: 0; line-height: 1.3; }
.av-pill-arrow { flex-shrink: 0; transition: transform .25s; }
.av-pill:hover .av-pill-arrow { transform: translateX(3px); }

.av-dot { position: relative; width: .45rem; height: .45rem; border-radius: 50%; background: #fff; }
.av-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit;
  animation: av-ping 1.6s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes av-ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

/* Sección */
.av {
  position: relative; isolation: isolate; overflow: hidden;
  scroll-margin-top: 4rem; padding: 6rem 0;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(31, 138, 91, .14), transparent 60%),
    radial-gradient(40rem 24rem at -10% 110%, rgba(203, 58, 76, .08), transparent 60%),
    var(--av-sand-50);
  color: var(--av-ink-900);
}
@media (min-width: 640px) { .av { padding: 7rem 0; } }

.av-grid { display: grid; gap: 3.5rem; }
@media (min-width: 1024px) { .av-grid { grid-template-columns: 7fr 5fr; gap: 4.5rem; align-items: start; } }

.av-eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .35rem .8rem; border-radius: 999px;
  background: rgba(203, 58, 76, .1); color: var(--av-cinta-500);
  font-family: "Geist Mono", ui-monospace, monospace; font-size: .7rem;
  font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}
.av-eyebrow .av-dot { background: var(--av-cinta-500); }

.av-title {
  margin: 1.4rem 0 0; font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 700;
  line-height: .98; letter-spacing: -.03em; text-wrap: balance;
}
.av-title em { font-style: normal; color: var(--av-cancha-600); }
.av-lead {
  margin: 1.5rem 0 0; max-width: 40rem;
  font-size: 1.125rem; line-height: 1.7; color: rgba(28, 53, 76, .85);
}
.av-lead strong { color: var(--av-ink-900); }

/* Etapas de la tramitación */
.av-steps {
  list-style: none; margin: 2.5rem 0 0; padding: 1.5rem;
  display: grid; gap: 1rem; grid-template-columns: 1fr;
  border-radius: 1.5rem; background: var(--av-ink-900); color: #fff;
  box-shadow: 0 20px 50px -20px rgba(10, 22, 34, .45);
}
@media (min-width: 640px) {
  .av-steps { grid-template-columns: repeat(5, 1fr); gap: 0; padding: 1.75rem 1.25rem; }
}
.av-step { position: relative; display: flex; gap: .85rem; align-items: flex-start; }
@media (min-width: 640px) {
  .av-step { flex-direction: column; align-items: center; text-align: center; gap: .7rem; padding: 0 .35rem; }
  .av-step:not(:last-child)::after {
    content: ""; position: absolute; top: 1rem; left: calc(50% + 1.25rem); right: calc(-50% + 1.25rem);
    height: 2px; background: rgba(255, 255, 255, .15);
  }
  .av-step.is-done:not(:last-child)::after { background: var(--av-cancha-300); }
}
.av-step-icon {
  flex-shrink: 0; display: grid; place-items: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .5);
  font-family: "Geist Mono", ui-monospace, monospace; font-size: .75rem; font-weight: 600;
}
.av-step.is-done .av-step-icon { border-color: var(--av-cancha-300); background: var(--av-cancha-600); color: #fff; }
.av-step.is-next .av-step-icon {
  border-color: #fff; color: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, .5);
  animation: av-ring 2s ease-out infinite;
}
@keyframes av-ring { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .45); } 100% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); } }
.av-step-name { display: block; font-size: .875rem; font-weight: 600; line-height: 1.3; }
.av-step-when {
  display: block; margin-top: .2rem;
  font-family: "Geist Mono", ui-monospace, monospace; font-size: .65rem;
  letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .5);
}
.av-step.is-done .av-step-when { color: var(--av-cancha-300); }
.av-step.is-next .av-step-when { color: #fff; }

/* Qué propone */
.av-points { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; gap: .9rem; }
@media (min-width: 640px) { .av-points { grid-template-columns: 1fr 1fr; } }
.av-point { display: flex; gap: .75rem; font-size: .95rem; line-height: 1.55; color: var(--av-ink-700); }
.av-point::before {
  content: ""; flex-shrink: 0; margin-top: .45rem; width: .55rem; height: .55rem;
  border-radius: 2px; background: var(--av-cancha-600); transform: rotate(45deg);
}

/* Botones */
.av-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem; }
.av-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.35rem; border-radius: 999px;
  font-size: .9rem; font-weight: 600; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.av-btn:hover { transform: translateY(-1px); }
.av-btn-primary { background: var(--av-cancha-600); color: #fff; }
.av-btn-primary:hover { background: var(--av-cancha-700); }
.av-btn-ghost { border: 1px solid rgba(14, 28, 43, .18); color: var(--av-ink-900); background: #fff; }
.av-btn-ghost:hover { border-color: var(--av-cancha-600); color: var(--av-cancha-700); }

/* Videos */
.av-videos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.av-video { margin: 0; }
.av-video:first-child { margin-top: 2.5rem; }
.av-video video {
  display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: 1.25rem; background: var(--av-ink-950);
  box-shadow: 0 24px 50px -24px rgba(10, 22, 34, .6);
}
.av-video figcaption { margin-top: .7rem; font-size: .8rem; line-height: 1.45; color: var(--av-ink-500); }
.av-video figcaption strong { display: block; color: var(--av-ink-900); font-weight: 600; }

/* Citas */
.av-quotes { display: grid; gap: 1.25rem; margin-top: 4.5rem; }
@media (min-width: 768px) { .av-quotes { grid-template-columns: repeat(3, 1fr); } }
.av-quote {
  margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem;
  padding: 1.75rem; border-radius: 1.5rem; background: #fff; border: 1px solid var(--av-line);
}
.av-quote:first-child { background: var(--av-cancha-600); border-color: transparent; color: #fff; }
.av-quote blockquote {
  margin: 0; font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.3rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em;
}
.av-quote blockquote::before { content: "“"; display: block; font-size: 3rem; line-height: .6; margin-bottom: .6rem; color: var(--av-cancha-600); }
.av-quote:first-child blockquote::before { color: var(--av-cancha-300); }
.av-quote figcaption { font-size: .8rem; line-height: 1.45; color: var(--av-ink-500); }
.av-quote figcaption strong { display: block; font-size: .9rem; color: var(--av-ink-900); }
.av-quote:first-child figcaption { color: rgba(255, 255, 255, .75); }
.av-quote:first-child figcaption strong { color: #fff; }

.av-sources {
  margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem;
  font-size: .8rem; color: var(--av-ink-500);
}
.av-sources a { color: var(--av-ink-900); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(14, 28, 43, .25); }
.av-sources a:hover { color: var(--av-cancha-700); text-decoration-color: currentColor; }

@media (prefers-reduced-motion: reduce) {
  .av-dot::after, .av-step.is-next .av-step-icon { animation: none; }
}

/* Panel "Trabajo legislativo" (sección #ley) */
.lg {
  position: relative; overflow: hidden; border-radius: 1.75rem;
  padding: 1.5rem; color: #fff;
  background:
    radial-gradient(50rem 22rem at 100% 0%, rgba(31, 138, 91, .28), transparent 60%),
    radial-gradient(30rem 18rem at 0% 100%, rgba(203, 58, 76, .16), transparent 60%),
    var(--av-ink-950);
  box-shadow: 0 30px 60px -30px rgba(10, 22, 34, .55);
}
@media (min-width: 640px) { .lg { padding: 2.25rem; } }
@media (min-width: 1024px) { .lg { padding: 2.75rem; } }

.lg-head { display: grid; gap: 1.75rem; }
@media (min-width: 1024px) { .lg-head { grid-template-columns: 1fr auto; align-items: end; gap: 3rem; } }
.lg-eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: "Geist Mono", ui-monospace, monospace; font-size: .68rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--av-cancha-300);
}
.lg-eyebrow .av-dot { background: var(--av-cinta-500); }
.lg-title {
  margin: .9rem 0 0; font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 700; line-height: 1; letter-spacing: -.03em;
}
.lg-title em { font-style: normal; color: var(--av-cancha-300); }
.lg-lead { margin: 1rem 0 0; max-width: 36rem; font-size: 1rem; line-height: 1.65; color: rgba(255, 255, 255, .72); }

.lg-hitos { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
@media (min-width: 640px) { .lg-hitos { grid-template-columns: repeat(3, auto); gap: .75rem; } }
.lg-hitos li {
  display: flex; flex-direction: column; gap: .25rem; min-width: 9.5rem;
  padding: .8rem 1rem; border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04);
  font-size: .82rem; line-height: 1.35; color: rgba(255, 255, 255, .85);
}
.lg-hitos li span {
  font-family: "Geist Mono", ui-monospace, monospace; font-size: .7rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--av-cancha-300);
}
.lg-hitos li:last-child { border-color: rgba(127, 211, 172, .45); background: rgba(31, 138, 91, .18); }

/* Tarjetas de video / foto */
.lg-grid {
  margin-top: 2rem; display: grid; gap: .9rem;
  grid-auto-flow: column; grid-auto-columns: 78%;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent;
}
@media (min-width: 640px) { .lg-grid { grid-auto-columns: 46%; } }
@media (min-width: 1024px) { .lg-grid { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; gap: 1.25rem; } }
.lg-tile {
  position: relative; margin: 0; scroll-snap-align: start;
  aspect-ratio: 4 / 5; overflow: hidden; border-radius: 1.25rem;
  background: var(--av-ink-900); isolation: isolate;
}
.lg-tile video, .lg-tile img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%; transition: transform .7s ease;
}
.lg-tile:hover video, .lg-tile:hover img { transform: scale(1.03); }
.lg-tile::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(10, 22, 34, .95) 0%, rgba(10, 22, 34, .55) 32%, transparent 58%);
}
.lg-tag {
  position: absolute; top: .9rem; left: .9rem; z-index: 2;
  padding: .3rem .6rem; border-radius: 999px; background: rgba(10, 22, 34, .7); backdrop-filter: blur(6px);
  max-width: calc(100% - 4.5rem); line-height: 1.3;
  font-family: "Geist Mono", ui-monospace, monospace; font-size: .6rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: #fff;
}
.lg-sound {
  position: absolute; top: .7rem; right: .7rem; z-index: 2;
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%;
  background: rgba(10, 22, 34, .6); backdrop-filter: blur(6px);
  font-size: 1rem; cursor: pointer; transition: background .2s, border-color .2s;
}
.lg-sound:hover, .lg-sound[aria-pressed="true"] { background: var(--av-cancha-600); border-color: transparent; }
.lg-sound:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lg-tile figcaption { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 1.1rem 1.15rem 1.2rem; }
.lg-tile figcaption strong { display: block; font-family: "Space Grotesk", system-ui, sans-serif; font-size: 1.15rem; font-weight: 700; }
.lg-tile figcaption span { display: block; margin-top: .2rem; font-size: .8rem; line-height: 1.4; color: rgba(255, 255, 255, .75); }
.lg-tile figcaption a {
  display: inline-block; margin-top: .6rem; font-size: .75rem; font-weight: 600;
  color: var(--av-cancha-300); text-decoration: none;
}
.lg-tile figcaption a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Autores */
.lg-autores { margin-top: 2.25rem; padding-top: 1.75rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.lg-autores-titulo {
  margin: 0 0 1rem; font-family: "Geist Mono", ui-monospace, monospace; font-size: .68rem;
  letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .55);
}
.lg-autores ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .lg-autores ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .lg-autores ul { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.lg-autores li { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.lg-autores img {
  flex-shrink: 0; width: 2.75rem; height: 2.75rem; border-radius: 50%; object-fit: cover;
  background: var(--av-ink-900); box-shadow: 0 0 0 2px rgba(127, 211, 172, .35);
}
.lg-autores li > span { min-width: 0; line-height: 1.25; }
.lg-autores strong { display: block; font-size: .82rem; font-weight: 600; }
.lg-autores li > span > span { display: block; font-size: .72rem; color: rgba(255, 255, 255, .55); }
.lg-autores em { display: block; font-style: normal; font-size: .68rem; font-weight: 600; color: var(--av-cancha-300); }
.lg-fuente { margin: 1.75rem 0 0; font-size: .7rem; color: rgba(255, 255, 255, .4); }
