/* ==========================================================================
   No a los barcos de la muerte — estilos
   Referencia de diseño: Figma "Malala", frame Desktop 1440.
   Breakpoints: 48em (768) · 64em (1024) · 80em (1280, nav completa)
   ========================================================================== */

/* ---------- Fuentes ---------- */
@font-face {
  font-family: "Brunson";
  src: url("../fonts/brunson.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Anton";
  src: url("../fonts/anton-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --black: #000;
  --white: #fff;
  --paper: #fbfbfb;
  --grey: #efefef;
  --yellow: #efc11a;
  --blue: #58baff;
  --red: #ff0004;
  --muted: #6d6d6d;
  --line: #c2c2c2;
  --placeholder: #d9d9d9;

  --f-display: "Brunson", "Anton", Impact, "Arial Narrow", sans-serif;
  --f-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(1.25rem, 4.93vw, 4.4375rem); /* 20 → 71 */
  --nav-h: 53px;

  --fs-hero: clamp(2.5rem, 13vw, 8.75rem); /* 140 */
  --fs-h-xl: clamp(2.5rem, 5.84vw, 5.25rem); /* 84 */
  --fs-h-lg: clamp(2.125rem, 4.17vw, 3.75rem); /* 60 */
  --fs-lead: clamp(1.25rem, 1.95vw, 1.75rem); /* 28 */
  --fs-body: clamp(1.0625rem, 1.39vw, 1.25rem); /* 20 */
  --fs-small: 1rem; /* 16 */

  --head-gap: clamp(1.25rem, 1.95vw, 1.75rem); /* título → texto */
  --focus: var(--black);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--black);
  font-family: var(--f-text);
  font-size: var(--fs-body);
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}
img,
video,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
h1,
h2,
h3,
p,
ul,
ol,
figure,
fieldset {
  margin: 0;
}
fieldset {
  border: 0;
  padding: 0;
  min-width: 0;
}
ul[class] {
  list-style: none;
  padding: 0;
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
main:focus {
  outline: none;
}
[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  background: var(--yellow);
  color: var(--black);
  padding: 0.75rem 1rem;
  font-weight: 700;
}
.skip-link:focus {
  top: 1rem;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Layout ---------- */
.container {
  padding-inline: var(--gutter);
}
.sec {
  position: relative;
  scroll-margin-top: var(--nav-h);
}
.sec--light {
  background: var(--paper);
}
.sec--dark {
  background: var(--black);
  color: var(--blue);
  --focus: var(--blue);
}
.sec--red {
  background: var(--red);
  isolation: isolate;
  overflow: hidden;
}
.sec--yellow {
  background: var(--yellow);
}
.sec--simple {
  padding-block: 8rem;
}

/* ---------- Tipografía ---------- */
.eyebrow {
  font-size: var(--fs-small);
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
  margin-bottom: 1.125rem;
}
.h-xl,
.h-lg,
.hero__title {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.h-xl {
  font-size: var(--fs-h-xl);
}
.h-lg {
  font-size: var(--fs-h-lg);
}
.sec-head {
  margin-bottom: var(--head-gap);
}
.lead {
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.2;
}

.prose > * + * {
  margin-top: 1.3em;
}
.prose h3 {
  font-size: var(--fs-body);
  font-weight: 900;
  text-transform: uppercase;
  margin-top: 2.6em;
  margin-bottom: 1.3em;
}
.prose h3:first-child {
  margin-top: 0;
}
.prose h3 + * {
  margin-top: 0;
}
.prose ul {
  padding-left: 1.4em;
}
.prose li + li {
  margin-top: 0.75em;
}
.prose a {
  text-underline-offset: 0.15em;
}
.prose a:hover {
  text-decoration-thickness: 2px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.6875rem; /* 59 */
  padding: 0.5rem 2rem;
  border: 0;
  border-radius: 0;
  font-family: var(--f-text);
  font-weight: 900;
  font-size: var(--fs-small);
  line-height: 1.15;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn--red {
  background: var(--red);
  color: var(--black);
}
.btn--red-inv {
  background: var(--red);
  color: var(--white);
}
.btn--red:hover,
.btn--red-inv:hover {
  background: var(--black);
  color: var(--white);
}
.btn--yellow {
  background: var(--yellow);
  color: var(--black);
}
.btn--yellow:hover {
  background: var(--black);
  color: var(--yellow);
}
.btn--black {
  background: var(--black);
  color: var(--white);
}
.btn--black:hover {
  background: var(--red);
  color: var(--black);
}
.btn--blue {
  background: var(--blue);
  color: var(--white);
}
.btn--blue:hover {
  background: var(--black);
}
.btn--lg {
  min-height: 5.625rem;
  padding-inline: 2.25rem;
} /* 90 */
.btn--sm {
  min-height: 1.625rem;
  padding: 0.25rem 0.9rem;
  font-size: 0.75rem;
} /* 26 */
.btn--block {
  display: flex;
  width: 100%;
}
.btn[disabled] {
  opacity: 0.5;
  cursor: progress;
}
.btn:not([disabled]):hover {
  transform: rotate(-3.5deg) scale(1.06);
}

/* ---------- Formularios ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field__label {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--muted);
}
.field__hint {
  font-weight: 400;
}
.input {
  width: 100%;
  min-height: 2.625rem; /* 42 */
  padding: 0.45rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.3;
  color: var(--black);
}
.input::placeholder {
  color: var(--muted);
  opacity: 1;
}
.input:focus-visible {
  outline-offset: 0;
  border-color: var(--black);
}
.input--area {
  resize: vertical;
  min-height: 13rem;
  font-weight: 400;
}
.input--small {
  font-size: 0.9375rem;
  min-height: 0;
}
.input--select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--black) 50%),
    linear-gradient(-45deg, transparent 50%, var(--black) 50%);
  background-position:
    right 1.1rem center,
    right 0.8rem center;
  background-size:
    0.3rem 0.3rem,
    0.3rem 0.3rem;
  background-repeat: no-repeat;
}
.input--select:invalid {
  color: var(--muted);
}
.input--select option {
  color: var(--black);
}

.callout {
  background: var(--yellow);
  padding: clamp(1.25rem, 2.15vw, 1.9375rem); /* 31 */
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.2;
}
.callout strong {
  font-weight: 700;
}
.callout--line {
  background: none;
  border: 1px solid var(--line);
}

.img-missing {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 8rem;
  background: var(--placeholder);
}

/* ==========================================================================
   Header / navegación
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: var(--black);
  --focus: var(--yellow);
}
.site-header__bar {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-inline: var(--gutter) 0.8125rem;
}

.site-logo {
  position: absolute;
  left: 0.625rem;
  top: 1rem;
  z-index: 2;
  width: 4.75rem;
  transform-origin: 0 0;
  transition: transform 0.3s ease;
}
.site-logo img {
  width: 100%;
}
.site-logo__txt {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  font-weight: 900;
  font-size: 0.75rem;
  text-transform: uppercase;
  padding: 0.3rem 0.5rem;
}
.is-scrolled .site-logo {
  transform: translateY(-0.75rem) scale(0.62);
}

.site-nav {
  margin-left: auto;
}
.site-nav__list a {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--blue);
  text-decoration: none;
}
.site-nav__list a:hover,
.site-nav__list a[aria-current="true"] {
  color: var(--yellow);
}

.site-header__cta {
  flex: none;
}

/* Mobile/tablet: menú hamburguesa.
   Sin JavaScript pisa nojs.css, que lo vuelve una lista con scroll horizontal. */
.site-nav__toggle {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.5rem;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--blue);
}
.burger,
.burger::before,
.burger::after,
.burger span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: currentColor;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}
.burger {
  position: relative;
  background: none;
}
.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
}
.burger::before {
  top: -7px;
}
.burger::after {
  top: 7px;
}
.menu-open .burger span {
  opacity: 0;
}
.menu-open .burger::before {
  transform: translateY(7px) rotate(45deg);
}
.menu-open .burger::after {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav__list {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem var(--gutter);
  background: var(--black);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.2s ease,
    visibility 0s linear 0.2s;
}
.site-nav__list a {
  display: inline-block;
  padding-block: 0.2rem;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2rem, 9vw, 3.5rem);
  line-height: 1;
}
.menu-open .site-nav__list {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.2s ease;
}
.menu-open body {
  overflow: hidden;
}

@media (max-width: 79.99em) {
  .site-header__cta {
    order: -1;
    margin-left: auto;
    min-height: 2.25rem;
  }
  .site-nav {
    margin-left: 0.25rem;
  }
}

@media (min-width: 64em) {
  .site-logo {
    width: 9.125rem;
  } /* 146 (logo 135 + sombra del export) */
  .is-scrolled .site-logo {
    transform: translateY(-0.8rem) scale(0.36);
  }
}

@media (min-width: 80em) {
  .site-header__bar {
    padding-left: clamp(10.625rem, calc(100vw - 67.8125rem), 22.1875rem);
  } /* 355 en 1440 */
  .site-nav {
    margin-left: 0;
  }
  .site-nav__toggle {
    display: none;
  }
  .site-nav__list {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5625rem; /* 25 */
    padding: 0;
    background: none;
    overflow: visible;
    visibility: visible;
    opacity: 1;
    transition: none;
  }
  .site-nav__list a {
    font-family: var(--f-text);
    font-weight: 700;
    font-size: 0.75rem;
    line-height: 1.2;
    padding: 0;
  }
  .site-header__cta {
    margin-left: auto;
  }
  .menu-open body {
    overflow: auto;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(calc(100svh - var(--nav-h)), 50.3125rem); /* 805 */
  display: grid;
  align-content: stretch;
  padding-block: 7rem 3.5rem;
  background: #2b2b2b;
  --hero-fs: var(--fs-hero);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Trama de puntos por CSS, para video sin tratar (trama: true en 01-hero.md).
   Si el video ya viene tramado desde el generador, poner trama: false. */
.hero--trama .hero__video {
  filter: grayscale(1) contrast(1.15);
}
.hero--trama .hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.85) 0 0.9px, transparent 1.4px) 0 0 / 5px 5px;
  mix-blend-mode: multiply;
}
/* El contenido ocupa todo el alto: el título queda al medio y los botones
   se van contra el borde de abajo del hero. */
.hero__inner {
  display: flex;
  flex-direction: column;
  padding-inline: var(--gutter);
}

.hero__kicker {
  margin-top: auto;
  margin-bottom: 1rem;
}
.hero__kicker span {
  display: inline-block;
  background: var(--yellow);
  font-weight: 900;
  font-size: clamp(0.9375rem, 1.39vw, 1.25rem);
  line-height: 1.2;
  text-transform: uppercase;
  padding: 0.1em 0.5em;
}

.hero__title-wrap {
  position: relative;
}
.hero__title {
  font-size: var(--hero-fs);
  letter-spacing: 0;
}
.hero__line {
  display: block;
  width: fit-content;
  white-space: nowrap;
  background: var(--yellow);
  line-height: 0.8;
  padding: 0.06em 0.05em 0;
}

@supports (text-box: trim-both cap alphabetic) {
  .hero__line {
    line-height: 1;
    padding: 0 0.05em;
    text-box: trim-both cap alphabetic;
  }
  .hero__line + .hero__line {
    margin-top: 0.07em;
  }
}

.hero__aside {
  background: var(--yellow);
  width: fit-content;
  max-width: min(100%, 28rem);
  margin-top: 1rem;
  padding: 0.45rem 0.5rem 0.4rem;
}
.hero__decreto {
  font-weight: 900;
  font-size: clamp(1.125rem, 1.6vw, 1.4375rem);
  line-height: 1.1;
  text-transform: uppercase;
}
.hero__bajada {
  font-weight: 900;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-transform: uppercase;
  margin-top: 0.35rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.25rem;
  margin-top: auto;
  padding-top: clamp(2rem, 10vw, 4.5rem);
}

@media (hover: hover) and (pointer: fine) {
  .hero__kicker,
  .hero__title-wrap {
    transition: opacity 0.35s ease;
  }
  .hero:hover .hero__kicker,
  .hero:hover .hero__title-wrap {
    opacity: 0;
    pointer-events: none;
  }
  /* Con el mouse sobre los botones, o si se llega a ellos por teclado,
     el título vuelve */
  .hero:has(.hero__actions:hover) .hero__kicker,
  .hero:has(.hero__actions:hover) .hero__title-wrap,
  .hero:focus-within .hero__kicker,
  .hero:focus-within .hero__title-wrap {
    opacity: 1;
    pointer-events: auto;
  }
}

.video-pause {
  position: absolute;
  right: var(--gutter);
  bottom: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
  cursor: pointer;
  --focus: var(--white);
}
.video-pause svg {
  fill: currentColor;
}
.video-pause .i-play {
  display: none;
}
.video-pause.is-paused .i-play {
  display: block;
}
.video-pause.is-paused .i-pause {
  display: none;
}
/* En la columna del reel el botón va más cerca del borde del video */
.esc__video .video-pause {
  right: 0.75rem;
}

@media (min-width: 48em) {
  .hero {
    --hero-fs: clamp(2.5rem, 9.72vw, 8.75rem);
  } /* 140 en 1440 */
  .hero__inner {
    padding-left: min(14.58vw, 13.125rem);
  } /* 210 en 1440 */
}
@media (min-width: 64em) {
  @supports (anchor-name: --a) {
    .hero__line:last-child {
      anchor-name: --hero-l2;
    }
    .hero__aside {
      position: absolute;
      margin: 0;
      position-anchor: --hero-l2;
      left: calc(anchor(right) + 1.75rem);
      right: 0;
      top: calc(anchor(top) + var(--hero-fs) * 0.136);
    }
  }
}

/* ==========================================================================
   Los barcos de la muerte
   ========================================================================== */
.sec--barcos {
  background: var(--grey);
}
.barcos {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.barcos__intro {
  padding: clamp(3.5rem, 7.15vw, 6.4375rem) var(--gutter) 2.5rem;
} /* 103 */
.barcos__lead {
  max-width: 30.0625rem;
}
.barcos__body {
  padding: 2.5rem var(--gutter) 3.5rem;
}
.barcos__fig img,
.barcos__fig .img-missing {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.barcos__fig--1 {
  aspect-ratio: 817 / 628;
}
.barcos__fig--2 {
  aspect-ratio: 856 / 860;
}

@media (min-width: 64em) {
  /* Columnas tomadas del frame de 1440:
     0 | 68 texto 549 | 646 foto1 | 856 | 923 texto 1374 | 1440 */
  .barcos {
    grid-template-columns: [a] 4.72% [b] 33.4% [c] 6.74% [d] 14.54% [e] 4.7% [f] 31.46% [g] 4.44% [h];
    grid-template-rows: auto auto;
  }
  .barcos__intro {
    grid-column: b / c;
    grid-row: 1;
    padding: clamp(3.5rem, 7.15vw, 6.4375rem) 0 3rem;
  }
  .barcos__fig--1 {
    grid-column: d / h;
    grid-row: 1;
    align-self: start;
  }
  /* La foto 2 se monta sobre la 1 y se estira hasta el final de la sección */
  .barcos__fig--2 {
    grid-column: a / e;
    grid-row: 2;
    aspect-ratio: auto;
    align-self: stretch;
    min-height: 0;
    margin-top: -4.3vw;
    position: relative;
    z-index: 1;
  }
  .barcos__body {
    grid-column: f / g;
    grid-row: 2;
    padding: 4.3vw 0 3rem;
  }
}

/* ==========================================================================
   Qué está pasando
   ========================================================================== */
/* Cómo se funde la textura con el rojo. Mezcla: multiply (oscurece), darken,
   luminosity, overlay, normal. Subí o bajá la opacidad hasta que guste. */
.sec--red {
  --tex-blend: multiply;
  --tex-opacity: 0.55;
}
.sec__texture {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: var(--tex-blend);
  opacity: var(--tex-opacity);
}
.qep {
  padding-block: clamp(3.5rem, 5.3vw, 4.75rem) clamp(3rem, 4vw, 3.5rem);
}
.qep .sec-head {
  max-width: 53.4375rem;
} /* 855 */
.qep__body {
  max-width: 49.0625rem;
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.2;
}
.qep .btn {
  margin-top: clamp(2rem, 3vw, 2.5rem);
}

/* ==========================================================================
   Proyecto de ley
   ========================================================================== */
/* El logo flota a la derecha: así el texto lo rodea en vez de quedar debajo.
   El margen derecho negativo lo saca del padding del container para que llegue
   casi al borde, y el margen superior negativo lo monta sobre la sección anterior. */
.proyecto__logo {
  float: right;
  position: relative;
  z-index: 2; /* para montarse sobre la sección anterior */
  width: min(35.97vw, 32.375rem); /* 518 en 1440 */
  height: auto;
  /* El margen de arriba descuenta el padding del bloque para que el logo quede
     exactamente donde estaba: 7.15vw (103 en 1440) sobre el borde de la sección. */
  margin: calc(-7.15vw - clamp(2.5rem, 3.5vw, 3.125rem)) calc(1.39vw - var(--gutter)) 1.5rem 1.5rem;
  shape-margin: 1.5rem;
  pointer-events: none;
}
.proyecto {
  padding-block: clamp(2.5rem, 3.5vw, 3.125rem);
}
.proyecto__intro {
  max-width: 43.6875rem;
} /* 699 */
.proyecto__intro .lead {
  font-size: clamp(1.1875rem, 1.74vw, 1.5625rem);
  line-height: 1.05;
} /* 25 / 26 */
.proyecto__body {
  margin-top: clamp(2.5rem, 4vw, 4rem);
  max-width: 65.125rem;
} /* 1042 */
.proyecto__body li + li {
  margin-top: 0.95rem;
}
.proyecto .btn {
  clear: right; /* nunca al costado del logo */
  margin-top: clamp(2rem, 3.5vw, 3rem);
}

@media (min-width: 64em) {
  .proyecto {
    padding-left: max(var(--gutter), 11.25vw);
  } /* 162 */
}

/* ==========================================================================
   Acción colectiva (Escribiles)
   ========================================================================== */
.esc {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.esc__main {
  padding: clamp(3.5rem, 4.8vw, 4.3125rem) var(--gutter) clamp(2rem, 3vw, 2.5rem);
}

/* La lista va abajo, de borde a borde */
.esc__lista {
  padding: 0 var(--gutter) clamp(4rem, 6vw, 5.5rem);
}

.esc__lead {
  max-width: 47rem;
}

.esc .callout {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 56rem;
}

/* Distrito + las dos acciones principales, en una fila */
.esc__fila {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: clamp(2rem, 3.2vw, 2.875rem);
}

.esc__fila .field {
  flex: 1 1 15rem;
  max-width: 26rem;
}

.esc__fila .input {
  height: 100%;
}

.esc__fila .btn {
  min-height: 0;
  padding: 0.75rem 1.25rem;
}

.esc__status {
  margin-top: 1rem;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--muted);
}

.legs__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  gap: 1.6rem 1.5rem;
  margin-top: clamp(2.5rem, 4vw, 3.375rem);
}

.leg {
  display: flex;
  align-items: flex-start;
  gap: 0.9375rem;
}

.leg__foto {
  flex: none;
  width: 5.4375rem; /* 87 */
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--placeholder);
}

.leg__foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leg__txt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: var(--fs-body);
  line-height: 1.2;
}

.leg__nombre {
  font-weight: 700;
}

.leg__detalle {
  font-weight: 500;
}

/* Copiar y pegar */
.copia {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(2rem, 3vw, 2.5rem);
  max-width: 44rem;
}

.copia__intro {
  font-size: var(--fs-small);
}

.copia__item {
  display: grid;
  gap: 0.4rem;
  justify-items: start;
}

.copia__item .input {
  width: 100%;
}

/* Las dos acciones de cierre */
.esc__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(3rem, 5vw, 4.5rem);
}

.esc__acciones .btn {
  min-height: 0;
  padding: 0.75rem 1.25rem;
}

.esc__video {
  position: relative;
  aspect-ratio: 618 / 648;
  background: var(--black);
}

.esc__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 64em) {
  /* Fila 1: texto a la izquierda, video a la derecha hasta el borde.
     Fila 2: la lista, a ancho completo, en tres columnas. */
  .esc {
    grid-template-columns: [main] 57% [side] 43%;
  }
  .esc__main {
    grid-column: main;
    padding-right: 6%;
  }
  .esc__side {
    grid-column: side;
  }
  .esc__lista {
    grid-column: 1 / -1;
  }
  .legs__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.9rem 2.5rem;
  }
}


/* ==========================================================================
   Integrantes / Organizaciones (fondo negro)
   ========================================================================== */
.sec--integrantes .container {
  padding-block: clamp(3.5rem, 3.9vw, 3.5rem) clamp(4rem, 8.2vw, 7.375rem);
}
.integrantes__intro {
  max-width: 30.0625rem;
  line-height: 1.3;
} /* 481 */

.people {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: clamp(1rem, 12vw, 13.5rem);
  row-gap: 3rem;
  /* 3 columnas de 233 + 2 calles de 216: no pasa de tres por fila */
  max-width: 78rem;
  margin: clamp(3rem, 7.3vw, 7.25rem) auto 0;
}

/* Ancho de la columna de texto: la última fila, incompleta, queda centrada */
.person {
  flex: 0 1 17rem; /* 233 */
  text-align: center;
}
.person__foto {
  display: block;
  width: 85%; /* 15% menos que el ancho de la columna */
  margin-inline: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #949494;
}
.person__foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.person h3,
.person__name {
  font-size: 1.375rem; /* 22 */
  font-weight: 700;
  line-height: 1.3;
  margin-top: 0.7rem;
}
.person p,
.person__bio {
  font-size: 0.9375rem; /* 15 */
  line-height: 1.6;
  margin-top: 1.625rem;
  max-width: 17rem; /* 233 */
}

/* En la tarjeta la bio se corta a dos líneas: el resto va en el modal */
.person__bio {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

/* El + que abre la bio completa */
.person__mas {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 1rem auto 0;
  padding: 0;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: none;
  color: var(--blue);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.person__mas span[aria-hidden] {
  margin-top: -0.15em; /* centra ópticamente el signo */
}

.person__mas:hover {
  background: var(--blue);
  color: var(--black);
}

/* Modal con la bio completa (popover nativo, sin JavaScript) */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(32rem, calc(100vw - 2.5rem));
  max-height: min(42rem, calc(100svh - 3rem));
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 0;
  background: var(--black);
  color: var(--blue);
  text-align: left;
  overflow: auto;
  --focus: var(--blue);
}

.modal:popover-open {
  display: block;
}

/* Fallback para navegadores sin popover (la clase la pone main.js) */
.modal.is-open {
  display: block;
  z-index: 100;
  box-shadow: 0 0 0 100vmax rgb(0 0 0 / 0.85);
}

.modal::backdrop {
  background: rgb(0 0 0 / 0.85);
}

.modal__cerrar {
  display: block;
  margin-left: auto;
  padding: 0 0.25rem;
  border: 0;
  background: none;
  color: var(--blue);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.modal__foto {
  display: block;
  width: 7.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #949494;
}

.modal__foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal__nombre {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 1rem;
}

.modal__bio {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-top: 1rem;
}

@media (min-width: 48em) {
  .people {
    row-gap: clamp(4rem, 8.2vw, 7.375rem);
  }
}

.sec--orgs .container {
  padding-block: 0 clamp(5rem, 11vw, 10rem);
}

/* Tira de logos: todos a la misma altura, cada uno con su proporción.
   Con ul.orgs para ganarle al padding: 0 del reset de listas. */
ul.orgs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  justify-items: center;
  gap: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.75rem);
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding: 0;
}

.org,
.org__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 5rem; /* 50: la altura que comparten todos los logos */
  text-decoration: none;
}

.org img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Los apaisados no pasan de este ancho, para que ninguno domine la fila */
.org img {
  max-width: 9.375rem; /* 150 */
}

/* Los logos que son circulares se recortan en círculo */
.org--circular img {
  height: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

.org__link:hover img {
  opacity: 0.7;
}

.org__name {
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

@media (min-width: 30em) {
  ul.orgs {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 64em) {
  ul.orgs {
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(1.5rem, 3.5vw, 3rem);
  }
}

/* ==========================================================================
   Contexto / Contacto
   ========================================================================== */
.sec--contexto .container {
  padding-block: clamp(4rem, 6vw, 5.5rem) clamp(4rem, 6vw, 5.5rem);
}

/* Título de la sección a la izquierda, lista de artículos a la derecha */
.ctx {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.ctx__intro {
  margin-top: var(--head-gap);
  max-width: 28rem;
}

.ctx__lista {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 2.5vw, 2rem) clamp(1.75rem, 3vw, 2.5rem);
  width: 100%;
}

.nota {
  padding-top: clamp(1.25rem, 2vw, 1.75rem);
  border-top: 1px solid var(--line);
}

.nota__titulo {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2.125rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* Quitar subrayado por defecto a título y enlace de lectura */
.nota__titulo a,
.nota__link a {
  text-decoration: none;
}

/* Activar subrayado únicamente al hacer hover o foco por teclado */
.nota__titulo a:hover,
.nota__titulo a:focus-visible,
.nota__link a:hover,
.nota__link a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.nota__autor {
  font-size: var(--fs-small);
  color: var(--muted);
  margin-top: 0.4rem;
}

.nota__resumen {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-top: 0.9rem;
  max-width: 100%;
}

.nota__link {
  margin-top: 0.9rem;
  font-size: var(--fs-small);
  font-weight: 700;
  text-transform: uppercase;
}

@media (min-width: 48em) {
  .ctx__lista {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64em) {
  .ctx {
    grid-template-columns: 1fr 2fr;
    align-items: start;
    column-gap: clamp(2.5rem, 5vw, 5.5rem);
  }
  .ctx__head {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
  }
  .ctx__intro {
    margin-left: 0;
  }
  .ctx__lista {
    grid-column: 2;
    grid-row: 1;
  }
}

/* ==========================================================================
   Artículo (página propia)
   ========================================================================== */
.articulo {
  background: var(--paper);
}

.articulo__inner {
  padding-block: clamp(3rem, 6vw, 6rem) clamp(4rem, 8vw, 7rem);
  max-width: 46rem;
  margin-inline: auto;
}

.articulo__titulo {
  margin-top: 0.5rem;
  text-wrap: balance;
}

.articulo__credito {
  margin-top: 1.25rem;
  font-size: var(--fs-small);
  color: var(--muted);
}

.articulo__cuerpo {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.articulo__cuerpo h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2.125rem);
  line-height: 1.05;
  text-transform: uppercase;
  margin-top: 2.2em;
  margin-bottom: 0.8em;
}

.articulo__cuerpo blockquote {
  margin: 1.6em 0;
  padding-left: 1.2em;
  border-left: 3px solid var(--line);
}

.articulo__cuerpo .footnotes {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}

.articulo__firma {
  margin-top: 2.5rem;
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.5;
}

.articulo__volver {
  margin-top: 3rem;
  font-size: var(--fs-small);
  font-weight: 700;
  text-transform: uppercase;
}

.sec--contacto .container {
  padding-block: clamp(4rem, 7vw, 6.5rem) clamp(5rem, 9vw, 8rem);
}
.contacto {
  max-width: 41.9375rem;
} /* 671 */
.contacto__form {
  display: grid;
  gap: 0.9375rem;
  margin-top: 2rem;
} /* 15 */
.contacto__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}
.contacto__status {
  font-size: var(--fs-small);
  margin-right: auto;
}
.contacto .btn {
  min-width: 7.375rem;
} /* 118 */

/* ==========================================================================
   Pie
   ========================================================================== */
.site-footer {
  background: var(--black);
  color: var(--blue);
  --focus: var(--blue);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 2rem;
  padding-block: 2.5rem;
  font-size: var(--fs-small);
}
.site-footer__org {
  font-weight: 700;
}
.site-footer__redes ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 0;
}
.site-footer__legal {
  margin-left: auto;
  color: var(--white);
}

/* Crédito "Diseño: LaburoEstudio" */
.site-footer__credito {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #b9b9b9;
  font-size: 0.75rem;
  font-weight: 300;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  transform-origin: 100% 50%;
  transition:
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    color 0.15s ease;
}

/* El logo es un SVG muy ancho: sin esto se ve a 1811 px */
.site-footer__credito img {
  width: auto;
  max-width: none;
  height: 0.625rem;
  transition: filter 0.15s ease;
}

.site-footer__credito:hover {
  color: var(--white);
  transform: rotate(-3.5deg) scale(1.06);
}

.site-footer__credito:hover img {
  filter: brightness(1.6);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Hero — Estructura apilada para Mobile (Wireframe)
   ========================================================================== */
@media (max-width: 47.99em) {
  .hero {
    --hero-fs: clamp(2.25rem, 12vw, 8.75rem);
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding-block: 0;
    background: var(--black);
  }

  /* Descomponemos el contenedor interno para ordenar sus elementos junto al video */
  .hero__inner {
    display: contents;
  }

  /* 1. BLOQUE SUPERIOR (texto sobre fondo negro) */
  .hero__kicker {
    order: 1;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
    padding-inline: var(--gutter);
  }

  .hero__kicker span {
    font-size: 0.8125rem; /* 13 */
    padding: 0.15em 0.5em;
  }

  .hero__title-wrap {
    order: 2;
    padding-inline: var(--gutter);
  }

  /* El aside es hijo del title-wrap: alcanza con el margen de arriba.
     Con margin-inline propio quedaba corrido respecto al título. */
  .hero__aside {
    width: auto;
    max-width: none;
    margin: 0.75rem 0 0;
    padding: 0.6rem 0.7rem 0.7rem;
  }

  .hero__decreto {
    font-size: 1rem; /* 16 */
  }

  .hero__bajada {
    font-size: 0.75rem; /* 12 */
    margin-top: 0.3rem;
  }

  /* 2. BLOQUE MEDIO: el video entero, sin recorte y pegado a la caja */
  .hero__media {
    order: 4;
    background: #c30;
    position: relative;
    inset: auto;
    z-index: 1;
    width: 100%;
    aspect-ratio: auto;
  }

  .hero__video {
    position: static;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* 3. BLOQUE INFERIOR (botones sobre fondo claro) */
  .hero__actions {
    order: 5;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    width: 100%;
    margin-top: 0;
    padding: 1.5rem var(--gutter) 2rem;
    background: var(--paper);
  }

  .hero__actions .btn {
    width: 100%;
    min-height: 3.25rem;
    padding-inline: 0.5rem;
    font-size: 0.8125rem;
  }

  /* El botón de pausa, sobre el video */
  .hero .video-pause {
    position: absolute;
    inset: auto 0.75rem 0.75rem auto;
    margin: 0;
  }
}


/* ==========================================================================
   Contador de participaciones (página interna, no indexable)
   ========================================================================== */
.contador {
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(2rem, 5vw, 3.5rem);
  padding: 2rem var(--gutter);
  background: var(--black);
  text-align: center;
}

.contador__logo {
  width: min(60vw, 15rem);
  height: auto;
}

.contador__linea {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.contador__label {
  color: var(--blue);
}

.contador__numero {
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
}


