/* 1. Base: colores, tipografía, controles y accesibilidad. */
@font-face {
  font-family: Archivo;
  src: url("/assets/archivo-variable.woff2") format("woff2");
  font-display: swap;
  font-weight: 100 900;
}
:root {
  --paper: #f5f3e9;
  --ink: #193d35;
  --green: #1e483d;
  --lime: #daed91;
  --line: #cecec0;
  --muted: #68736b;
  --white: #fffef8;
  --orange: #e4a76c;
  font-family: Archivo, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: default;
  opacity: 0.4;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #de863e;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h2 {
  font-size: clamp(32px, 3.6vw, 53px);
  letter-spacing: -2px;
  line-height: 1.06;
  font-weight: 550;
}
h3 {
  font-size: 22px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
p {
  line-height: 1.65;
}
img {
  max-width: 100%;
  display: block;
}
button {
  border: 0;
}
em {
  font-family: Georgia, serif;
  font-weight: 400;
}
.section-wrap {
  max-width: 1320px;
  margin: auto;
  padding: 88px 56px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 1.8px;
  line-height: 1.4;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 15px 21px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  min-height: 46px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.button:hover {
  transform: translateY(-2px);
}
.lime {
  background: var(--lime);
  color: var(--ink);
}
.dark {
  background: var(--ink);
  color: var(--paper);
}
.outline {
  border-color: var(--line);
  background: transparent;
}
.text-link {
  border: 0;
  background: none;
  text-decoration: none;
  font-size: 13px;
  padding: 10px 0;
}
.text-link:hover {
  text-decoration: underline;
}
.icon-button {
  background: transparent;
  border: 1px solid var(--line);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 21px;
}
.chip {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 40px;
  padding: 10px 17px;
  font-size: 12px;
  min-height: 40px;
}
.chip:hover {
  background: #e8e9dc;
}
.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.tag {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 9px 14px;
  font-size: 10px;
  letter-spacing: 1px;
}
.skip {
  position: fixed;
  left: 10px;
  top: -100px;
  z-index: 100;
  background: var(--lime);
  padding: 15px;
}
.skip:focus {
  top: 10px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 35px;
}
.section-heading .eyebrow {
  margin-bottom: 20px;
}
.section-heading > p {
  font-size: 14px;
  color: var(--muted);
  max-width: 330px;
}
/* 2. Portada: composición editorial y archivo ilustrado. */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 23px 4.25%;
  height: 85px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: relative;
  z-index: 4;
}
.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 1px;
}
.brand-icon {
  font-size: 26px;
}
.brand-light {
  font-weight: 400;
}
.topbar nav {
  display: flex;
  gap: 26px;
}
.topbar nav a {
  font-size: 12px;
  text-decoration: none;
}
.topbar nav a:hover {
  text-decoration: underline;
}
.nav-contribute {
  font-size: 12px;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding: 8px 0;
  display: flex;
  gap: 22px;
}
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 610px;
  max-width: 1600px;
  margin: auto;
}
.hero-copy {
  padding: 60px 6% 25px 8%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.status-dot {
  display: inline-block;
  background: var(--green);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 6px;
}
.hero h1 {
  font-size: clamp(40px, 4.6vw, 73px);
  font-weight: 540;
  letter-spacing: -3.4px;
  line-height: 1.02;
  margin: 28px 0 22px;
}
.hero h1 em {
  color: #4f705a;
}
.hero-description {
  font-size: 15px;
  line-height: 1.7;
  color: #586c5e;
}
.hero-actions {
  display: flex;
  gap: 27px;
  align-items: center;
  margin: 30px 0 45px;
}
.hero-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  width: 100%;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 1px;
}
.hero-bottom span:first-child {
  font-size: 12px;
  letter-spacing: 0;
}
.hero-art {
  position: relative;
  background: #dbe0cb;
  min-height: 540px;
  overflow: hidden;
}
.hero-art > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.art-stamp {
  position: absolute;
  right: 23px;
  top: 24px;
  font-size: 9px;
  letter-spacing: 2px;
  line-height: 1.7;
  transform: rotate(5deg);
  border: 1px solid #647668;
  padding: 9px 12px;
}
.art-stamp b {
  font-size: 18px;
  letter-spacing: 1px;
  font-weight: 500;
}
.art-caption {
  position: absolute;
  bottom: 23px;
  left: 27px;
  right: 27px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 1px;
}
.chapter-strip {
  display: flex;
  justify-content: space-around;
  background: var(--ink);
  color: var(--paper);
  padding: 20px 4%;
  font-size: 9px;
  letter-spacing: 1.3px;
}
.intro {
  display: grid;
  grid-template-columns: 0.55fr 1.3fr 0.7fr;
  gap: 40px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.intro h2 {
  font-size: 34px;
  letter-spacing: -1px;
  margin-bottom: 22px;
}
.intro p:not(.eyebrow) {
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--muted);
}
.intro-note {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.intro-note > span {
  font-size: 35px;
}
.intro-note h3 {
  font-size: 20px;
  margin: 16px 0 10px;
}
/* 3. Línea de tiempo y mapa. */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0;
}
.year-track {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #bfc7b4;
  gap: 16px;
  overflow-x: auto;
  margin-bottom: 30px;
  padding-bottom: 0;
}
.year-button {
  padding: 18px 10px 22px;
  background: transparent;
  position: relative;
  font-size: 17px;
  min-width: 65px;
}
.year-button:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: calc(50% - 4px);
  width: 8px;
  height: 8px;
  background: #9fae9d;
  border-radius: 50%;
}
.year-button.active {
  font-weight: 750;
  color: var(--ink);
}
.year-button.active:after {
  width: 14px;
  height: 14px;
  left: calc(50% - 7px);
  background: var(--ink);
}
.event-panel {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  background: #eeede2;
  min-height: 420px;
}
.event-visual {
  position: relative;
  background: #e1e5cf;
  overflow: hidden;
}
.event-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.event-year {
  position: absolute;
  left: 23px;
  bottom: 15px;
  font-size: 68px;
  letter-spacing: -4px;
  font-weight: 500;
}
.event-content {
  padding: 35px 40px;
}
.event-content .eyebrow {
  margin-bottom: 14px;
}
.event-content h3 {
  font-size: 29px;
  letter-spacing: -1px;
  margin-bottom: 18px;
}
.event-content p {
  font-size: 14px;
  margin-bottom: 15px;
}
.context-note {
  padding-left: 15px;
  border-left: 2px solid #9ba984;
  color: #586b5c;
}
.event-question {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 18px !important;
}
.source-link {
  font-size: 11px;
  text-decoration: underline;
  display: inline-block;
  margin: 4px 10px 0 0;
}
.history-controls {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 18px;
  margin-top: 22px;
}
.history-controls p {
  font-size: 11px;
  color: var(--muted);
}
.territory {
  background: var(--ink);
  color: var(--paper);
}
.map-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}
.map-copy > p:not(.eyebrow) {
  font-size: 14px;
  color: #cad4c5;
  max-width: 400px;
  margin: 25px 0;
}
.map-copy h2 {
  margin-top: 20px;
}
.place-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.place-list .chip {
  color: #dce3d3;
  border-color: #60776a;
}
.place-list .chip.active {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}
.place-list .chip:hover {
  color: var(--ink);
}
.place-detail {
  border-top: 1px solid #567264;
  margin-top: 28px;
  padding-top: 24px;
}
.place-detail .eyebrow {
  color: var(--lime);
  margin-bottom: 12px;
}
.place-detail h3 {
  font-size: 25px;
  margin-bottom: 12px;
}
.place-detail p {
  font-size: 14px;
  color: #d3decc;
}
.map-visual {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(ellipse at center, #264d42 0, transparent 65%);
}
#argentina-map {
  width: 100%;
  max-width: 460px;
}
#argentina-map svg {
  width: 100%;
  height: 540px;
}
.country {
  fill: #476d5b;
  stroke: #a2b48c;
  stroke-width: 1;
}
.map-line {
  stroke: #799881;
  stroke-dasharray: 3 6;
  stroke-width: 0.7;
  opacity: 0.4;
}
.map-pin {
  cursor: pointer;
  outline: none;
}
.map-pin circle {
  fill: var(--lime);
  stroke: #d7e6b0;
  stroke-width: 3;
}
.map-pin .halo {
  fill: none;
  stroke: #d7e6b0;
  opacity: 0.4;
  stroke-width: 1;
}
.map-pin.active .halo,
.map-pin:focus .halo {
  stroke: #fff;
  opacity: 1;
  stroke-width: 2;
}
.map-pin text {
  fill: #e6ecda;
  font-size: 10px;
  font-family: Archivo, Arial, sans-serif;
  paint-order: stroke;
  stroke: #183d35;
  stroke-width: 3px;
}
.map-caption {
  font-size: 10px;
  text-align: center;
  max-width: 400px;
  color: #bacbb6;
}
.map-coordinate {
  font-size: 9px;
  letter-spacing: 2px;
  position: absolute;
  top: 0;
  right: 0;
  writing-mode: vertical-rl;
  color: #aec3a5;
}
/* 4. Galería y juegos. */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 17px;
}
.gallery-card button {
  background: transparent;
  padding: 0;
  width: 100%;
  text-align: left;
}
.gallery-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.25s;
}
.gallery-card button:hover img {
  transform: translateY(-5px);
}
.gallery-card h3 {
  font-size: 15px;
  margin: 14px 0 8px;
  letter-spacing: -0.2px;
}
.gallery-card .gallery-caption {
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
}
.gallery-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}
.small-button {
  background: none;
  border: 1px solid var(--line);
  font-size: 11px;
  border-radius: 3px;
  padding: 8px 10px;
  min-height: 34px;
}
.small-button:hover {
  background: var(--lime);
}
.games {
  padding-top: 20px;
  padding-bottom: 90px;
}
.game-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.game-content {
  background: #e5e9d7;
  padding: 40px;
  min-height: 370px;
  position: relative;
}
.game-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 1px;
}
.progress-bar {
  height: 3px;
  background: #c7d1b5;
  margin: 16px 0 25px;
}
.progress-bar span {
  display: block;
  height: 100%;
  background: var(--green);
  transition: width 0.3s;
}
.game-content h3 {
  max-width: 780px;
  font-size: 27px;
  line-height: 1.3;
}
.answers {
  display: grid;
  gap: 10px;
  margin-top: 25px;
}
.answer {
  border: 1px solid #bec9ac;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 17px;
  background: #f5f6eb;
  border-radius: 3px;
  font-size: 14px;
}
.answer span {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 1px solid #c2cbbb;
  border-radius: 50%;
  font-size: 11px;
}
.answer:disabled {
  opacity: 1;
}
.answer.correct {
  background: #d0e39b;
  border-color: #486540;
}
.answer.wrong {
  background: #f1d7be;
  border-color: #b0754e;
}
.feedback {
  margin-top: 20px;
  font-size: 14px;
}
.feedback .button {
  margin-top: 18px;
}
.game-result {
  font-size: 75px;
  letter-spacing: -5px;
  margin: 18px 0;
}
.order-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 26px 0;
}
.order-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #f5f6eb;
  padding: 12px 15px;
}
.order-item > span:first-child {
  font-size: 11px;
  color: var(--muted);
}
.order-item strong {
  font-size: 14px;
  font-weight: 500;
  flex: 1;
}
.order-item button {
  background: none;
  border: 1px solid var(--line);
  padding: 6px 11px;
}
.order-item small {
  color: var(--green);
  font-weight: 700;
}
/* 5. Taller: coordenadas fijas para conservar el esquema al imprimir. */
.workshop {
  background: #e9e8dc;
  border-block: 1px solid var(--line);
}
.workshop-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: end;
  margin: 28px 0 14px;
}
.workshop-toolbar label:not(.file-label) {
  display: grid;
  gap: 7px;
  font-size: 11px;
}
.workshop-toolbar select {
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
}
.workshop-toolbar .button {
  font-size: 11px;
  padding: 13px 15px;
  gap: 8px;
}
.workshop-help {
  font-size: 12px;
  color: #667164;
  max-width: 900px;
  margin: 20px 0;
}
.workshop-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  border: 1px solid #c7c9b8;
  background: var(--paper);
  min-height: 600px;
}
.library {
  padding: 18px;
  border-right: 1px solid var(--line);
  max-height: 740px;
  overflow-y: auto;
}
.library-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.library-top h3 {
  font-size: 15px;
}
.library input {
  width: 100%;
  font-size: 11px;
  padding: 11px;
  border: 1px solid var(--line);
  margin: 16px 0;
  background: var(--white);
}
.library-tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}
.library-tabs .chip {
  font-size: 11px;
  padding: 6px 12px;
  min-height: 32px;
}
.library-piece {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.library-piece h4 {
  font-size: 12px;
  margin: 0 0 8px;
  line-height: 1.4;
}
.library-piece p {
  font-size: 11px;
  color: var(--muted);
}
.library-piece summary {
  font-size: 10px;
  cursor: pointer;
  margin: 9px 0;
}
.library-piece .small-button {
  width: 100%;
  margin-top: 10px;
}
.library-piece img {
  height: 95px;
  object-fit: cover;
  width: 100%;
  margin-bottom: 10px;
}
.board-scroll {
  overflow: auto;
  padding: 20px;
  background: #d9ddcd;
  min-width: 0;
}
.poster-board {
  position: relative;
  width: 794px;
  height: 1123px;
  background-color: #fffef8;
  background-image:
    linear-gradient(to right, #eee 1px, transparent 1px),
    linear-gradient(to bottom, #eee 1px, transparent 1px);
  background-size: 20px 20px;
  overflow: hidden;
  transform-origin: top left;
}
.poster-board:after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  border: 1px solid #ddd;
}
.board-empty {
  position: absolute;
  top: 20%;
  left: 12%;
  right: 12%;
  text-align: center;
  color: #8c9786;
  pointer-events: none;
}
.board-empty > span {
  font-size: 55px;
}
.board-empty h3 {
  font-size: 23px;
  margin: 18px 0 10px;
}
.board-empty p {
  font-size: 14px;
}
.poster-piece {
  position: absolute;
  width: 270px;
  background: var(--white);
  border: 1px solid #9ba68d;
  padding: 0;
  user-select: none;
  box-shadow: 0 3px 8px #213e2b12;
}
.poster-piece.selected {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  z-index: 3;
}
.piece-handle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  background: #e8eddc;
  cursor: grab;
  touch-action: none;
  font-size: 10px;
  gap: 5px;
}
.piece-handle button {
  padding: 2px 7px;
  background: none;
  font-size: 12px;
  min-height: 26px;
}
.piece-body {
  padding: 17px;
  overflow-wrap: anywhere;
}
.piece-body h3 {
  font-size: 22px;
  letter-spacing: -0.7px;
  margin: 0 0 9px;
}
.piece-body p {
  font-size: 12px;
  line-height: 1.5;
  margin: 8px 0;
}
.piece-body .print-source {
  font-size: 8px;
  color: #61725f;
  word-break: break-word;
}
.piece-body img {
  width: 100%;
  height: auto;
}
.poster-piece.collapsed .piece-text {
  display: none;
}
.poster-piece.heading .piece-body {
  background: var(--ink);
  color: var(--paper);
}
.poster-piece.heading h3 {
  font-size: 30px;
  margin: 0;
}
.piece-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-top: 1px solid var(--line);
  font-size: 10px;
}
.piece-controls input {
  width: 70px;
  padding: 3px;
  border: 1px solid var(--line);
}
.sources-section {
  padding-block: 50px;
}
.sources-section > .eyebrow {
  margin-bottom: 18px;
}
.sources-section details > summary {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  font-size: 23px;
  letter-spacing: -0.6px;
  padding: 10px 0;
}
.sources-section details p {
  font-size: 13px;
  color: var(--muted);
  margin: 20px 0;
}
.sources-section #sources-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.sources-section #sources-list a {
  font-size: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
/* 6. Aportes y diálogos. */
.contribute {
  background: var(--ink);
  color: var(--paper);
}
.contribute-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 85px;
}
.contribute h2 {
  font-size: 65px;
  margin: 28px 0;
}
.contribute h2 em {
  color: var(--lime);
}
.contribute-layout > div > p:not(.eyebrow) {
  font-size: 14px;
  color: #d1dcc9;
}
.contribution-note {
  display: flex;
  gap: 20px;
  border-top: 1px solid #58715f;
  margin-top: 48px;
  padding-top: 25px;
  max-width: 330px;
}
.contribution-note span {
  font-size: 26px;
  color: var(--lime);
}
.contribution-note p {
  font-size: 12px;
  color: #bacaaf;
}
.contribute form label:not(.check-label):not(.upload-area) {
  display: grid;
  gap: 9px;
  font-size: 12px;
  margin-bottom: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
input,
textarea,
select {
  border-radius: 3px;
}
.contribute input:not([type="checkbox"]):not([type="file"]),
.contribute textarea {
  width: 100%;
  background: #264e40;
  border: 1px solid #607864;
  padding: 13px;
  color: var(--paper);
  font-size: 13px;
}
.contribute input::placeholder,
.contribute textarea::placeholder {
  color: #b3c4a9;
}
.contribute textarea {
  resize: vertical;
}
.optional {
  color: #c2d0b9;
}
.upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border: 1px dashed #8ba47c;
  padding: 24px;
  position: relative;
  text-align: center;
  font-size: 12px;
  cursor: pointer;
}
.upload-area.dragging {
  background: #3e654f;
}
.upload-area span:last-of-type {
  font-size: 10px;
  color: #c9d5bb;
}
.upload-icon {
  font-size: 25px;
}
.upload-area input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.upload-area:focus-within {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}
.check-label {
  display: flex;
  gap: 10px;
  align-items: start;
  font-size: 11px;
  line-height: 1.6;
  margin: 21px 0;
}
.check-label input {
  accent-color: var(--lime);
  margin-top: 3px;
}
.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.form-footer > span {
  font-size: 10px;
  color: #bdceb2;
  max-width: 170px;
}
.form-status {
  font-size: 13px;
  margin-top: 18px;
  overflow-wrap: anywhere;
}
.upload-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.upload-preview {
  position: relative;
  width: 82px;
}
.upload-preview img {
  width: 82px;
  height: 70px;
  object-fit: cover;
}
.upload-preview button {
  position: absolute;
  right: 1px;
  top: 1px;
  background: var(--paper);
  width: 24px;
  height: 24px;
  border-radius: 50%;
}
.upload-preview small {
  font-size: 9px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 30px 4.25%;
  font-size: 9px;
  letter-spacing: 1px;
}
footer > a:last-child {
  font-size: 11px;
  letter-spacing: 0;
}
dialog {
  border: 0;
  background: var(--paper);
  color: var(--ink);
  padding: 30px;
  max-width: 650px;
  width: calc(100% - 40px);
  max-height: 92dvh;
  overflow: auto;
  border-radius: 5px;
}
dialog::backdrop {
  background: #102c24bb;
}
dialog img {
  max-height: 55dvh;
  margin: auto;
}
dialog h3 {
  margin: 20px 0 10px;
}
dialog p {
  font-size: 13px;
  margin-bottom: 20px;
}
.dialog-close {
  position: absolute;
  right: 15px;
  top: 15px;
  background: var(--paper);
}
#title-dialog h2 {
  font-size: 30px;
  margin-bottom: 25px;
}
#title-dialog label {
  display: grid;
  gap: 12px;
}
#title-dialog input {
  padding: 15px;
  width: 100%;
  border: 1px solid var(--line);
}
.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: end;
  margin-top: 25px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--paper);
  padding: 14px 22px;
  box-shadow: 0 3px 18px #0002;
  border: 1px solid #809275;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  z-index: 20;
  max-width: 90%;
  font-size: 13px;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
#print-root {
  display: none;
}
/* 7. Adaptación a teléfonos y movimiento reducido. */
@media (min-width: 1500px) {
  .hero-copy {
    padding-left: 12%;
  }
  .hero {
    min-height: 680px;
  }
}
@media (max-width: 1050px) {
  .topbar nav {
    gap: 16px;
  }
  .hero h1 {
    font-size: 53px;
  }
  .hero-copy {
    padding-top: 45px;
  }
  .hero-actions {
    gap: 15px;
  }
  .intro {
    grid-template-columns: 1.5fr 1fr;
  }
  .intro > .eyebrow {
    grid-column: 1/-1;
  }
  .map-layout {
    gap: 25px;
  }
  .contribute-layout {
    gap: 40px;
  }
  .workshop-layout {
    grid-template-columns: 230px minmax(0, 1fr);
  }
  .section-wrap {
    padding: 65px 35px;
  }
  .event-content {
    padding: 25px;
  }
  .event-content h3 {
    font-size: 25px;
  }
}
@media (max-width: 760px) {
  html {
    scroll-padding-top: 20px;
  }
  .topbar {
    height: auto;
    padding: 20px;
    flex-wrap: wrap;
    gap: 15px;
  }
  .brand {
    font-size: 10px;
  }
  .topbar nav {
    order: 3;
    overflow-x: auto;
    width: 100%;
    justify-content: space-between;
    gap: 18px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
  .topbar nav a {
    font-size: 11px;
    white-space: nowrap;
  }
  .nav-contribute {
    font-size: 10px;
    gap: 10px;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    padding: 38px 24px 24px;
  }
  .hero h1 {
    font-size: clamp(43px, 8vw, 65px);
    letter-spacing: -2px;
    margin: 25px 0;
  }
  .hero-description {
    font-size: 14px;
  }
  .hero-actions {
    margin: 25px 0 35px;
  }
  .hero-actions .button {
    font-size: 12px;
    padding: 15px;
    gap: 15px;
  }
  .hero-actions .text-link {
    font-size: 12px;
  }
  .hero-bottom {
    font-size: 8px;
  }
  .hero-art {
    min-height: 0;
    height: 430px;
  }
  .chapter-strip {
    padding: 17px 20px;
    justify-content: space-between;
    gap: 15px;
    font-size: 7px;
    letter-spacing: 0.8px;
  }
  .section-wrap {
    padding: 55px 24px;
  }
  .intro {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .intro h2 {
    font-size: 32px;
  }
  .intro-note {
    padding-left: 18px;
  }
  .intro-note > span {
    display: none;
  }
  .intro-note h3 br {
    display: none;
  }
  .intro-note h3 {
    margin-top: 0;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 25px;
  }
  h2 {
    font-size: 37px;
    letter-spacing: -1.5px;
  }
  .section-heading .eyebrow {
    margin-bottom: 15px;
  }
  .section-heading > p {
    font-size: 13px;
  }
  .year-track {
    justify-content: start;
  }
  .year-button {
    font-size: 16px;
    padding-inline: 15px;
  }
  .event-panel {
    grid-template-columns: 1fr;
  }
  .event-visual {
    height: 250px;
  }
  .event-year {
    font-size: 58px;
  }
  .event-content {
    padding: 25px;
  }
  .event-content h3 {
    font-size: 26px;
  }
  .event-content p {
    font-size: 13px;
  }
  .map-layout {
    grid-template-columns: 1fr;
  }
  .map-copy > p:not(.eyebrow) {
    max-width: none;
  }
  .map-visual {
    min-height: 530px;
  }
  #argentina-map svg {
    height: 480px;
  }
  .map-coordinate {
    display: none;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 15px;
  }
  .gallery-card:last-child {
    grid-column: 1/-1;
    max-width: calc(50% - 8px);
  }
  .game-content {
    padding: 25px 18px;
  }
  .game-content h3 {
    font-size: 22px;
  }
  .answer {
    font-size: 12px;
    padding: 12px;
    gap: 10px;
  }
  .game-tabs {
    flex-wrap: wrap;
  }
  .games {
    padding-top: 0;
  }
  .order-item {
    gap: 8px;
    padding: 10px;
  }
  .order-item strong {
    font-size: 12px;
  }
  .order-item button {
    padding: 7px;
  }
  .workshop-toolbar {
    gap: 8px;
  }
  .workshop-toolbar .button {
    padding: 11px 12px;
  }
  .workshop-help {
    font-size: 11px;
  }
  .workshop-layout {
    grid-template-columns: 1fr;
  }
  .library {
    max-height: 320px;
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }
  .library-piece {
    padding: 12px 0;
  }
  .board-scroll {
    max-height: 640px;
    padding: 15px;
    overscroll-behavior-x: contain;
  }
  .poster-board {
    width: 794px;
  }
  .sources-section #sources-list {
    grid-template-columns: 1fr;
  }
  .sources-section details > summary {
    font-size: 20px;
  }
  .contribute-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contribute h2 {
    font-size: 55px;
    margin: 23px 0;
  }
  .contribution-note {
    margin-top: 25px;
    max-width: none;
  }
  .form-footer > span {
    font-size: 9px;
  }
  footer {
    padding: 25px 24px;
    flex-wrap: wrap;
  }
  footer .brand {
    font-size: 10px;
  }
  footer > span {
    font-size: 8px;
  }
  .form-row {
    gap: 10px;
  }
  .contribute form input,
  .contribute form textarea {
    font-size: 16px !important;
  }
  .gallery-actions {
    gap: 5px;
  }
  .gallery-actions .small-button {
    font-size: 10px;
    padding: 7px 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}
/* 8. Impresión: hojas A4 reales, numeradas para armar el mural. */
@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }
  body > * {
    display: none !important;
  }
  body > #print-root {
    display: block !important;
  }
  .print-sheet {
    width: 210mm;
    height: 297mm;
    position: relative;
    overflow: hidden;
    break-after: page;
    page-break-after: always;
    background: #fff;
  }
  .print-sheet:last-child {
    break-after: auto;
    page-break-after: auto;
  }
  .print-window {
    position: absolute;
    left: 8mm;
    top: 10mm;
    width: 194mm;
    height: 277mm;
    overflow: hidden;
  }
  .print-canvas {
    position: absolute;
    transform-origin: 0 0;
    width: 794px;
    height: 1123px;
  }
  .print-canvas .poster-piece {
    box-shadow: none;
    outline: none;
    user-select: auto;
    break-inside: avoid;
  }
  .print-canvas .piece-handle,
  .print-canvas .piece-controls {
    display: none;
  }
  .sheet-number {
    position: absolute;
    left: 8mm;
    right: 8mm;
    bottom: 3mm;
    font: 8pt Arial;
    color: #64705f;
    display: flex;
    justify-content: space-between;
  }
  .print-card {
    padding: 18mm 17mm;
    height: 285mm;
    overflow: hidden;
  }
  .print-card h2 {
    font:
      600 25pt Archivo,
      Arial,
      sans-serif;
    color: #193d35;
    margin: 7mm 0;
  }
  .print-card p {
    font:
      12pt/1.6 Archivo,
      Arial,
      sans-serif;
    margin: 5mm 0;
  }
  .print-card img {
    height: 90mm;
    width: 100%;
    object-fit: contain;
  }
  .print-card .eyebrow {
    font-size: 10pt;
  }
  .print-card .print-source {
    font-size: 8pt;
    word-break: break-all;
  }
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* Textos extensos: las fichas continúan en las hojas siguientes. */
@media print {
  .print-flow {
    height: auto;
    min-height: 297mm;
    overflow: visible;
  }
  .print-flow .print-card {
    height: auto;
    min-height: 285mm;
    overflow: visible;
  }
  .print-flow .sheet-number {
    display: none;
  }
}
@media (min-width: 761px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .gallery-card:last-child {
    grid-column: auto;
    max-width: none;
  }
}
