@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #f7f5f0;
  --paper-deep: #efede7;
  --ink: #161616;
  --body-ink: #33312f;
  --muted: #66635f;
  --red: #c1121f;
  --red-dark: #99101a;
  --border: #d8d5cf;
  --white: #fff;
  --max: 74rem;
  --reading: 45rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(5rem, 10vw, 8rem);
  --heading: "Montserrat", Arial, sans-serif;
  --body: "Inter", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

body,
button,
input { font-family: var(--body); }

img,
svg { display: block; max-width: 100%; }

a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .1em; }

button,
input { font-size: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: .2rem solid var(--red);
  outline-offset: .25rem;
}

[hidden] { display: none !important; }

.container {
  width: min(calc(100% - (2 * var(--gutter))), var(--max));
  margin-inline: auto;
}

.reading-width { max-width: var(--reading); }

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--white);
  transform: translateY(-200%);
}

.skip-link:focus { transform: translateY(0); }

h1,
h2,
h3 {
  margin: 0 0 .65em;
  font-family: var(--heading);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.02;
}

h1 { font-size: clamp(3.5rem, 7.4vw, 6.75rem); }
h2 { font-size: clamp(2.5rem, 5vw, 4.6rem); }
h3 { font-size: clamp(1.65rem, 3vw, 2.65rem); }
p { margin: 0 0 1.25em; }

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--red);
  font-family: var(--heading);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.site-header {
  position: relative;
  z-index: 20;
  background: var(--paper);
}

.header-inner {
  min-height: 5.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  font-family: var(--heading);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.025em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  background: var(--red);
  color: var(--white);
  font-size: .68rem;
  letter-spacing: .03em;
}

.site-nav { display: flex; align-items: center; gap: clamp(1.4rem, 3vw, 2.5rem); }
.site-nav a { font-family: var(--heading); font-size: .86rem; font-weight: 700; text-decoration: none; }
.site-nav a:hover,
.site-nav a[aria-current="page"] { text-decoration: underline; }

.site-nav .nav-subscribe {
  padding: .72rem 1rem;
  background: var(--red);
  color: var(--white);
  line-height: 1;
}

.site-nav .nav-subscribe:hover { background: var(--red-dark); text-decoration: none; }
.menu-toggle { display: none; }

.staging-bar {
  padding: .43rem var(--gutter);
  background: var(--ink);
  color: var(--white);
  font-size: .74rem;
  font-weight: 700;
  text-align: center;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.35rem;
  margin-top: 2.25rem;
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.4rem;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-family: var(--heading);
  font-size: .9rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.button:hover { transform: translateY(-2px); }
.button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.button--primary { background: var(--red); color: var(--white); }
.button--primary:hover { background: var(--red-dark); }
.button--dark { background: var(--ink); color: var(--white); }
.button--dark:hover { background: #333; }
.button--paper { background: var(--paper); color: var(--ink); }
.button--paper:hover { background: var(--white); }
.button--ghost { border-color: var(--ink); }
.button--ghost:hover { background: var(--ink); color: var(--white); }

.text-link,
.back-link {
  font-family: var(--heading);
  font-size: .9rem;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: color .18s ease, text-decoration-color .18s ease;
}

.text-link:hover,
.back-link:hover { color: var(--red); text-decoration-color: currentColor; }

.section { padding: var(--section) 0; }
.section--ink { background: var(--ink); color: var(--white); }
.section--bordered { border-block: 1px solid var(--border); }
.section--quiet { background: var(--white); }

/* Portada aprobada: tipografía contundente, estructura plana y rojo funcional. */
.home-hero { padding: clamp(6rem, 11vw, 9rem) 0; }
.home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 2.35fr) minmax(16rem, .8fr);
  align-items: end;
  gap: clamp(3rem, 8vw, 8rem);
}

.home-hero__copy h1 { max-width: 12.8ch; font-size: clamp(4.2rem, 6.25vw, 5.85rem); }
.home-hero__copy h1 span { color: var(--red); }
.home-hero__lead { max-width: 42rem; color: var(--body-ink); font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.55; }

.project-status {
  padding: 2rem 0 0 2rem;
  border-top: .32rem solid var(--red);
  border-left: 1px solid var(--border);
}

.project-status h2 { max-width: 10ch; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.project-status > p:not(.eyebrow) { color: var(--muted); font-size: .98rem; }

.home-about { border-top: 1px solid var(--border); }
.home-split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(20rem, .92fr);
  align-items: start;
  gap: clamp(3rem, 8vw, 8rem);
}

.home-split h2 { max-width: 12ch; }
.home-about__copy { padding-top: 2.35rem; color: var(--body-ink); font-size: clamp(1.15rem, 2vw, 1.35rem); }
.home-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.home-section-heading h2 { max-width: 10ch; }

.page-hero {
  padding: clamp(5rem, 10vw, 8rem) 0;
  border-bottom: 1px solid var(--border);
}

.page-hero--compact { padding-bottom: clamp(3.5rem, 7vw, 6rem); text-align: center; }

.narrative-grid,
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(20rem, .8fr);
  align-items: end;
  gap: clamp(3rem, 8vw, 8rem);
}

.narrative-grid h1 { max-width: 12ch; }
.page-lead,
.article-deck,
.prose-large {
  color: var(--body-ink);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.55;
}

.page-lead { align-self: end; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: .25rem solid var(--ink);
}

.article-card {
  min-height: 29rem;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  background: transparent;
}

.article-card + .article-card { border-left: 1px solid var(--border); }
.article-card h3 { margin-top: 1rem; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.article-card h3 a { text-decoration: none; }
.article-card h3 a:hover { color: var(--red); }
.article-card > p:not(.eyebrow) { color: var(--body-ink); font-size: 1rem; }
.article-card .article-meta { margin-top: auto; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  color: var(--muted);
  font-family: var(--heading);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.newsletter-wrap { padding-block: var(--section); }

.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(20rem, .92fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
  padding: clamp(2rem, 5vw, 4.5rem);
  border-top: .35rem solid var(--red);
  background: var(--ink);
  color: var(--white);
}

.newsletter h2 { max-width: 13ch; font-size: clamp(2.4rem, 4.7vw, 4.3rem); }
.newsletter p { max-width: 38rem; color: #d5d2cc; }
.newsletter-form label:not(.consent),
.newsletter-preview label { display: block; margin-bottom: .55rem; font-size: .82rem; font-weight: 650; }
.form-row { display: grid; grid-template-columns: 1fr auto; gap: .6rem; }
.form-row input { min-width: 0; padding: .9rem 1rem; border: 1px solid var(--white); background: var(--white); color: var(--ink); }
.consent { display: flex; align-items: flex-start; gap: .7rem; margin-top: 1rem; color: #d5d2cc; font-size: .82rem; line-height: 1.45; }
.consent input { width: 1.1rem; height: 1.1rem; flex: 0 0 auto; margin-top: .15rem; }
.form-status { min-height: 1.5em; margin: .75rem 0 0; font-size: .9rem; font-weight: 650; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.newsletter-preview strong,
.newsletter-preview span { display: block; }
.newsletter-preview strong { margin-top: 1rem; font-size: .9rem; }
.newsletter-preview span { margin-top: .25rem; color: #c7c3bc; font-size: .78rem; line-height: 1.45; }

/* Plantilla automática de artículos generados desde Markdown. */
.article-hero { padding: clamp(5rem, 10vw, 8rem) 0 3.25rem; }
.article-hero h1 { max-width: 11.5ch; font-size: clamp(3.2rem, 6.5vw, 6rem); }
.back-link { display: inline-block; margin-bottom: 4rem; text-decoration: none; }
.article-deck { margin-bottom: 2rem; }

.article-body {
  padding-bottom: var(--section);
  color: var(--body-ink);
  font-size: clamp(1.08rem, 1.45vw, 1.22rem);
  line-height: 1.78;
}

.article-body > p:first-of-type:not(.article-note) { font-size: 1.12em; }
.article-body h2 { margin: 2.25em 0 .65em; font-size: clamp(2rem, 4vw, 3.2rem); }
.article-body h3 { margin-top: 2em; }
.article-body p,
.article-body li { color: var(--body-ink); }
.article-body li { margin-bottom: .75rem; }
.article-body a { color: var(--red-dark); }
.article-body blockquote {
  margin: 3.25rem 0;
  padding: 1.5rem 0 1.5rem 2rem;
  border-left: .35rem solid var(--red);
  color: var(--ink);
  font-family: var(--heading);
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.3;
}

.article-note,
.disclaimer { font-size: .9rem; line-height: 1.55; }
.article-note { padding: 1.25rem 1.5rem; border-top: .25rem solid var(--red); background: var(--paper-deep); }
.article-cta { margin-top: 2rem; }
.disclaimer { margin: 3.5rem 0; padding: 1.5rem; border-top: .25rem solid var(--ink); background: var(--paper-deep); }
.disclaimer strong { color: var(--ink); }
.disclaimer p { margin: .4rem 0 0; color: var(--muted); }

.about-grid { align-items: start; }
.about-statement { position: sticky; top: 2rem; padding-top: 1.5rem; border-top: .35rem solid var(--red); }
.about-statement p { max-width: 16ch; font-family: var(--heading); font-size: clamp(2.1rem, 4.3vw, 3.9rem); font-weight: 800; letter-spacing: -.05em; line-height: 1.05; }
.about-grid .article-body { padding-bottom: 0; }

.map-shell { padding-bottom: var(--section); }
.map-intro,
.map-quiz,
.map-result {
  max-width: 56rem;
  margin-inline: auto;
  padding: clamp(1.5rem, 5vw, 4rem);
  border-top: .35rem solid var(--red);
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.privacy-note { padding-left: 1.5rem; border-left: .3rem solid var(--red); }
.privacy-note p { margin: .35rem 0 0; color: var(--muted); }
.check-list { padding: 0; margin: 2rem 0; list-style: none; }
.check-list li { position: relative; padding: .8rem 0 .8rem 1.8rem; border-top: 1px solid var(--border); }
.check-list li::before { position: absolute; left: 0; color: var(--red); content: "✓"; font-weight: 800; }
.map-progress { margin-bottom: 3rem; color: var(--muted); font-size: .82rem; font-weight: 650; }
.progress-track { height: .4rem; margin-top: .65rem; background: var(--paper-deep); }
.progress-track span { display: block; width: 0; height: 100%; background: var(--red); transition: width .2s ease; }
.question-card { padding: 0; border: 0; }
.question-card legend { max-width: 17ch; margin-bottom: .6rem; font-family: var(--heading); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.08; }
.question-help { color: var(--muted); }
.answer-list { display: grid; gap: .75rem; margin-top: 2rem; }

.answer-option {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  align-items: center;
  min-height: 4.25rem;
  padding: .85rem 1rem;
  border: 1px solid var(--border);
  cursor: pointer;
  font-weight: 600;
  line-height: 1.35;
}

.answer-option:hover,
.answer-option:has(input:checked) { border-color: var(--red); background: var(--paper); }
.answer-option:has(input:focus-visible) { outline: .18rem solid var(--red); outline-offset: .15rem; }
.answer-option input { position: absolute; opacity: 0; pointer-events: none; }
.answer-score { display: grid; width: 1.8rem; height: 1.8rem; place-items: center; border: 1px solid var(--muted); border-radius: 50%; font-size: .75rem; font-weight: 700; }
.answer-option:has(input:checked) .answer-score { border-color: var(--red); background: var(--red); color: var(--white); }
.map-controls { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; }
.map-controls .button--primary { margin-left: auto; }
.map-error { min-height: 1.4em; margin: 1rem 0 0; color: #8f1019; font-size: .9rem; font-weight: 650; }
.map-result { max-width: 66rem; }
.result-top { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start; padding-bottom: 3rem; border-bottom: 1px solid var(--border); }
.result-top h2 { max-width: 14ch; }
.result-summary { max-width: 40rem; color: var(--muted); font-size: 1.15rem; }
.result-score { min-width: 6.5rem; padding: 1rem; border-top: .3rem solid var(--red); text-align: right; }
.result-score strong { display: block; font-family: var(--heading); font-size: 2.5rem; font-weight: 800; line-height: 1; }
.result-score span { color: var(--muted); font-size: .8rem; }
.result-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(15rem, .7fr); gap: 3rem; padding-block: 3rem; }
.result-grid h3 { font-size: 1.8rem; }
.action-list { padding-left: 1.5rem; }
.action-list li { padding: .6rem 0 .9rem .4rem; border-bottom: 1px solid var(--border); }
.postpone-card { align-self: start; padding: 1.5rem; background: var(--paper-deep); }
.postpone-card p:last-child { margin: 0; }
.result-controls { display: flex; flex-wrap: wrap; gap: 1rem; }
.result-newsletter { margin-top: 4rem; }
.result-newsletter .newsletter { grid-template-columns: 1fr; }

.legal-hero { padding: clamp(5rem, 10vw, 8rem) 0 2.5rem; }
.legal-hero h1 { max-width: 12ch; font-size: clamp(3.3rem, 7vw, 6rem); }
.legal-hero > p:last-child { color: var(--muted); }
.legal-body { padding-bottom: var(--section); }
.configuration-warning { padding: 1rem 1.25rem; border-top: .25rem solid var(--red); background: var(--white); }
.confirmation-page { min-height: 65vh; padding-block: clamp(5rem, 12vw, 10rem); }
.confirmation-page h1 { max-width: 12ch; }
.confirmation-page .page-lead { max-width: 38rem; }

.site-footer { padding: 4rem 0; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .6fr .6fr; gap: 3rem; }
.brand--footer { margin-bottom: 1.25rem; }
.footer-grid p { max-width: 35rem; color: var(--muted); font-size: .88rem; }
.footer-grid nav { display: flex; flex-direction: column; gap: .6rem; font-size: .9rem; font-weight: 600; }
.footer-meta { text-align: right; }

@media (max-width: 920px) {
  .home-hero__grid,
  .home-split,
  .narrative-grid,
  .about-grid { grid-template-columns: 1fr; }
  .project-status { max-width: 34rem; }
  .about-statement { position: static; }
  .cards-grid { grid-template-columns: 1fr; }
  .article-card { min-height: auto; }
  .article-card + .article-card { border-top: 1px solid var(--border); border-left: 0; }
  .article-card .article-meta { margin-top: 2rem; }
}

@media (max-width: 800px) {
  body { font-size: 1.04rem; }
  .header-inner { min-height: 4.75rem; flex-wrap: wrap; }
  .site-nav { width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 1rem; background: var(--paper); }
  .site-js .header-inner { flex-wrap: nowrap; }
  .site-js .menu-toggle { display: inline-flex; align-items: center; gap: .6rem; padding: .65rem; border: 0; background: transparent; font-weight: 700; cursor: pointer; }
  .site-js .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; width: auto; padding: 0 var(--gutter) 1rem; border-bottom: 1px solid var(--border); }
  .site-js .site-nav.is-open { display: flex; }
  .site-nav a { padding: .9rem 0; border-top: 1px solid var(--border); }
  .site-nav .nav-subscribe { margin-top: .6rem; padding: .9rem 1rem; text-align: center; }
  .newsletter,
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter { padding: 1.5rem; }
  .result-grid { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
}

@media (max-width: 560px) {
  h1 { font-size: clamp(3.1rem, 15vw, 4.2rem); }
  .home-hero { padding-block: 4.5rem; }
  .home-hero__copy h1 { font-size: clamp(3.1rem, 14vw, 4rem); }
  .project-status { padding-left: 1.25rem; }
  .home-section-heading { align-items: flex-start; flex-direction: column; }
  .button-group { align-items: stretch; flex-direction: column; }
  .button-group .button { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .map-intro,
  .map-quiz,
  .map-result { padding: 1.25rem; }
  .map-controls { flex-wrap: wrap; }
  .map-controls .button { flex: 1; }
  .result-top { grid-template-columns: 1fr; }
  .result-score { width: 6rem; text-align: left; }
  .article-hero h1 { font-size: clamp(3rem, 14vw, 4rem); }
  .article-body blockquote { margin-inline: 0; padding-left: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  @page { margin: 1.5cm; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header,
  .staging-bar,
  .site-footer,
  .page-hero,
  .no-print { display: none !important; }
  .map-shell { width: 100%; padding: 0; }
  .map-result { padding: 0; border: 0; }
  .result-top,
  .result-grid { display: block; }
  .result-score { margin-bottom: 1cm; }
  .postpone-card,
  .disclaimer { break-inside: avoid; }
  .action-list li { padding-block: .5cm; }
}
