/* Fundacoraz — papel hueso, tinta y vino. Un libro bien compuesto: títulos al margen, filetes, poco color. */

@font-face {
  font-family: "Literata";
  src: url("/fonts/literata-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata";
  src: url("/fonts/literata-latin-opsz-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Fondo y superficies */
  --paper: #f3efe7;
  --paper-raised: #fbf9f5;
  --stone: #e7e0d4;
  /* Texto */
  --ink: #1c1917;
  --ink-soft: #554d47;
  /* Filetes */
  --line: #d5cbbd;
  --line-strong: #8a7f75;
  /* Marca: el vino del logo, en pocos lugares */
  --wine: #6b2137;
  --wine-deep: #4b1626;
  --wine-tint: #efe2e2;
  /* Fondo oscuro de cierre */
  --night: #1c1418;
  --on-dark: #f3efe7;
  --on-dark-soft: #cdbfb8;
  /* Semántico */
  --danger: #a02b1b;

  --font-display: "Literata", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-text: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;

  --container: 76rem;
  --gutter: 20px;
  --measure: 40rem;
  --form: 34rem;
  --section: 64px;
  --col-gap: 64px;
  --header-h: 0px;
  --speed: 180ms;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  color-scheme: light;
}

@media (min-width: 600px) {
  :root { --header-h: 72px; }
}
@media (min-width: 960px) {
  :root { --gutter: 40px; --section: 104px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 20px);
  scroll-padding-bottom: 88px;
  scrollbar-color: var(--line-strong) var(--paper);
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.62;
  overflow-wrap: break-word;
  font-kerning: normal;
}
@media (min-width: 960px) { body { font-size: 1.125rem; } }

::selection { background: var(--wine); color: var(--on-dark); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 430;
  color: inherit;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.3rem + 2.6vw, 4rem); line-height: 1.08; letter-spacing: -0.022em; }
h2 { font-size: clamp(1.7rem, 1.35rem + 1.2vw, 2.5rem); line-height: 1.14; letter-spacing: -0.018em; }
h3 { font-size: 1.35rem; line-height: 1.25; letter-spacing: -0.01em; }
p, ul, ol { margin: 0 0 1em; }
strong { font-weight: 640; }

a {
  color: var(--wine);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--speed) var(--ease-out), text-decoration-color var(--speed) var(--ease-out);
}
a:visited { color: var(--wine); }
a:hover { color: var(--wine-deep); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
main:focus { outline: none; }
input, textarea, select, button, a { scroll-margin-top: calc(var(--header-h) + 24px); scroll-margin-bottom: 88px; }
input, textarea { caret-color: var(--wine); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: var(--measure); }
.prose > :last-child { margin-bottom: 0; }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px;
}
.skip-link:focus, .skip-link:hover { top: 12px; color: var(--paper); }

/* Acciones */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px; border-radius: 2px; border: 1px solid transparent;
  font: 600 1rem/1.2 var(--font-text); letter-spacing: 0.005em; text-decoration: none; cursor: pointer;
  transition: background-color var(--speed) var(--ease-out), color var(--speed) var(--ease-out), transform 120ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--primary, .btn--primary:visited { background: var(--wine); color: var(--on-dark); }
.btn--primary:hover { background: var(--wine-deep); color: var(--on-dark); text-decoration: none; }
.btn--light, .btn--light:visited { background: var(--on-dark); color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn[aria-busy="true"] { opacity: 0.85; cursor: progress; }

.link-secondary, .link-secondary:visited { color: var(--ink); font-weight: 600; text-decoration-color: var(--wine); }
.link-secondary:hover { color: var(--wine); }
.link-urgent, .link-urgent:visited { color: var(--danger); font-weight: 600; text-decoration: underline; }
.link-urgent:hover { color: var(--danger); }
.link-on-dark, .link-on-dark:visited { color: var(--on-dark); font-weight: 600; text-decoration-color: var(--on-dark-soft); }
.link-on-dark:hover { color: var(--on-dark); text-decoration-color: var(--on-dark); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }
.links-inline { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.link-list { padding-left: 1.2em; }
.link-list li { margin-bottom: 8px; }

.lead { font-size: 1.125rem; line-height: 1.55; max-width: 38rem; }
@media (min-width: 960px) { .lead { font-size: 1.25rem; } }

.statement {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-style: italic;
  font-weight: 380;
  font-size: clamp(1.85rem, 1.25rem + 2vw, 3.1rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
  max-width: 20ch;
  margin-bottom: 0.7em;
  text-wrap: balance;
}

/* Cabecera */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-top: 10px; padding-bottom: 10px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; }
.brand img { height: 24px; width: auto; }
.nav-main { display: none; }
.nav-main ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px 26px; }
.nav-main a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem;
  background: linear-gradient(var(--wine), var(--wine)) left calc(100% - 8px) / 0 1px no-repeat;
  transition: background-size var(--speed) var(--ease-out), color var(--speed) var(--ease-out);
}
.nav-main a:hover { color: var(--ink); background-size: 100% 1px; }
.nav-main a[aria-current="page"] { color: var(--wine); background-size: 100% 1px; }
.site-header__actions { display: flex; align-items: center; gap: 8px 20px; }
.site-header__actions .link-urgent { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.98rem; }
.site-header .btn { min-height: 44px; padding: 10px 20px; }
.menu-fallback, .menu-toggle {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  font: 600 1rem/1.25 var(--font-text); color: var(--ink); background: transparent;
  border: 1px solid var(--ink); border-radius: 2px; text-decoration: none; cursor: pointer;
  transition: transform 120ms var(--ease-out);
}
.menu-toggle:active { transform: scale(0.97); }
.menu-fallback:visited { color: var(--ink); }
.menu-toggle[hidden], .js .menu-fallback { display: none; }

@media (max-width: 599px) {
  .site-header__inner {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px;
    grid-template-areas: "brand menu" "urgent write"; padding-top: 8px; padding-bottom: 10px;
  }
  .site-header__actions { display: contents; }
  .brand { grid-area: brand; }
  .brand img { height: 21px; }
  .menu-fallback, .menu-toggle { grid-area: menu; justify-self: end; }
  .site-header__actions .link-urgent { grid-area: urgent; }
  .site-header__actions .btn { grid-area: write; justify-self: end; }
}
@media (min-width: 600px) { .brand img { height: 26px; } }
@media (min-width: 960px) {
  .brand img { height: 28px; }
  .site-header__inner { flex-wrap: nowrap; gap: 32px; min-height: 76px; }
  .nav-main { display: block; }
  .menu-toggle, .menu-fallback, .js .menu-toggle { display: none; }
}

.menu-dialog {
  margin: 0 0 0 auto; height: 100%; max-height: none; width: min(100%, 24rem); max-width: 100%;
  padding: 0; border: 0; background: var(--paper); color: var(--ink);
}
.menu-dialog::backdrop { background: rgba(28, 20, 24, 0.5); }
.menu-dialog__bar { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter); border-bottom: 1px solid var(--line); }
.menu-dialog__title { font: 600 1rem/1.25 var(--font-text); color: var(--ink-soft); }
.menu-close { min-height: 44px; padding: 0 16px; font: 600 1rem/1.25 var(--font-text); background: transparent; color: var(--ink); border: 1px solid var(--ink); border-radius: 2px; cursor: pointer; }
.menu-dialog ul { list-style: none; margin: 0; padding: 8px var(--gutter) 8px; }
.menu-dialog li { border-bottom: 1px solid var(--line); }
.menu-dialog li a { display: flex; align-items: center; min-height: 56px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 420; letter-spacing: -0.015em; color: var(--ink); text-decoration: none; }
.menu-dialog li a[aria-current="page"] { color: var(--wine); }
.menu-dialog__urgent { padding: 16px var(--gutter) 24px; }
.menu-dialog__urgent a { display: inline-flex; min-height: 44px; align-items: center; }

/* Secciones: papel, separadas por un filete del ancho del texto */

.section { padding: var(--section) 0; }
.section--page { padding-top: 56px; }
:is(.hero, .section:not(.band, .section--divide)) + .section:not(.band, .section--divide) { padding-top: 0; }
:is(.hero, .section:not(.band, .section--divide)) + .section:not(.band, .section--divide) > .container {
  padding-top: var(--section);
  background: linear-gradient(var(--line), var(--line)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}

.band { padding: var(--section) 0; }
.band--wine { background: var(--wine); color: var(--on-dark); }
.band--dark { background: var(--night); color: var(--on-dark); }
.band :focus-visible { outline-color: var(--on-dark); }
.band--dark h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.5rem); max-width: 18ch; }
.band--dark p { max-width: 36rem; color: var(--on-dark-soft); }
.band--dark .prose { max-width: none; }

/* Títulos al margen: en escritorio el h2 vive en la columna izquierda y el texto en la derecha. */
.rule { margin-bottom: 0.6em; }
@media (min-width: 960px) {
  .section > .container:has(> h2.rule),
  .section > .container > div.prose:has(> h2.rule) {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: var(--col-gap);
    align-items: start;
    max-width: var(--container);
  }
  .section > .container > div.prose:has(> h2.rule) { max-width: none; }
  :is(.section > .container:has(> h2.rule), .section > .container > div.prose:has(> h2.rule)) > h2.rule {
    grid-column: 1;
    font-size: clamp(1.6rem, 1.1rem + 0.8vw, 2.1rem);
    line-height: 1.15;
    max-width: 14ch;
    margin: 0;
  }
  :is(.section > .container:has(> h2.rule), .section > .container > div.prose:has(> h2.rule)) > :not(h2.rule) { grid-column: 2; max-width: var(--measure); }
  :is(.section > .container:has(> h2.rule), .section > .container > div.prose:has(> h2.rule)) > :is(.faces, .reads, .steps, .people, .figure) { max-width: none; }
  :is(.section > .container:has(> h2.rule), .section > .container > div.prose:has(> h2.rule)) > h2.rule:not(:first-child),
  :is(.section > .container:has(> h2.rule), .section > .container > div.prose:has(> h2.rule)) > h2.rule:not(:first-child) + * {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--line);
  }
}
.band--wine h2.rule { font-size: 1.25rem; font-style: italic; color: var(--on-dark-soft); margin-bottom: 20px; }
@media (min-width: 960px) {
  .band--wine .prose > h2.rule { font-size: 1.5rem; padding-top: 0.6rem; }
}

/* Cabeceras de página */

.hero { padding: 48px 0 var(--section); }
.hero__grid { display: grid; gap: 28px; }
.hero__text > :last-child { margin-bottom: 0; }
.hero h1 { max-width: 22ch; }
.hero .breadcrumb ol { margin-top: 0; }
.hero__note { font-size: 0.98rem; color: var(--ink-soft); max-width: 36rem; margin-top: 20px; }
@media (min-width: 960px) {
  .hero { padding-top: 88px; }
}

.hero--home { padding-top: 40px; }
.hero--home h1 { font-size: clamp(1.6rem, 1.05rem + 2.4vw, 2.6rem); line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
.hero--home .lead { font-size: 1.05rem; }
.facts { margin: 8px 0 0; border-top: 1px solid var(--ink); font-size: 1rem; }
.facts > div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 560; }
@media (min-width: 960px) {
  .hero--home { padding-top: 96px; }
  .hero--home .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 1fr) minmax(0, 4fr); row-gap: 64px; column-gap: 0; }
  .hero--home h1 { grid-column: 1 / -1; font-size: clamp(3rem, 1rem + 3.6vw, 5rem); line-height: 1.06; letter-spacing: -0.025em; max-width: 21ch; }
  .hero--home .hero__text { grid-column: 1; }
  .hero--home .lead { font-size: 1.25rem; }
  .hero--home .facts { grid-column: 3; align-self: end; margin: 0; }
}

/* Imágenes */

.figure { margin: 0; }
.figure img { width: 100%; }
.figure figcaption { margin-top: 12px; font-size: 0.92rem; line-height: 1.45; color: var(--ink-soft); max-width: 36rem; }
.figure--inset { max-width: 18rem; margin: 48px 0; }
.figure--band { margin-top: 64px; }
.figure--band img { aspect-ratio: 16 / 9; object-fit: cover; object-position: center 35%; }
@media (min-width: 960px) {
  .figure--inset { margin: 72px 0 72px calc((100% - var(--col-gap)) / 3 + var(--col-gap)); max-width: 20rem; }
  .figure--band { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--col-gap); align-items: end; }
  .figure--band img { grid-column: 2; grid-row: 1; aspect-ratio: 3 / 2; }
  .figure--band figcaption { grid-column: 1; grid-row: 1; margin: 0; }
}

/* Qué hacemos / Qué no hacemos */

.section--divide { background: var(--stone); }
.limits { display: grid; gap: 48px; }
.limits h2 { font-size: clamp(1.6rem, 1.2rem + 1vw, 2.2rem); padding-bottom: 16px; border-bottom: 1px solid var(--ink); margin-bottom: 8px; }
.limits ul { list-style: none; padding: 0; margin: 0; }
.limits li { position: relative; padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); }
.limits li::before { content: ""; position: absolute; left: 0; top: calc(14px + 0.8em); width: 14px; height: 1px; background: var(--wine); }
.limits li:last-child { border-bottom: 0; }
@media (min-width: 960px) {
  .limits { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--col-gap); }
}

/* Pasos */

.steps { list-style: none; counter-reset: paso; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.steps > li { counter-increment: paso; position: relative; padding: 20px 0 20px 3.25rem; border-bottom: 1px solid var(--line); }
.steps > li::before {
  content: counter(paso); position: absolute; left: 0; top: 14px;
  font-family: var(--font-display); font-optical-sizing: auto; font-size: 2rem; font-weight: 380; line-height: 1.1; color: var(--wine);
}
@media (min-width: 960px) {
  .steps > li { padding: 28px 0 28px 5rem; }
  .steps > li::before { font-size: 2.75rem; top: 22px; }
}

/* Personas en inicio */

.faces { list-style: none; padding: 0; margin: 8px 0 0; display: grid; border-top: 1px solid var(--ink); }
.faces li { border-bottom: 1px solid var(--line); }
.faces a { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); grid-template-rows: 1fr auto 1fr; column-gap: 18px; padding: 14px 0; color: inherit; text-decoration: none; }
.faces img { grid-row: 1 / -1; width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; object-position: center 22%; }
.faces__name { grid-row: 2; font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -0.01em; line-height: 1.15; }
.faces__role { grid-row: 3; align-self: start; margin-top: 4px; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.35; }
.faces a:hover .faces__name { color: var(--wine); }
@media (min-width: 600px) {
  .faces { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 0; }
  .faces li { border-bottom: 0; }
  .faces li:nth-child(2) { margin-top: 48px; }
  .faces a { grid-template-columns: none; grid-template-rows: none; gap: 4px; padding: 0; }
  .faces img { grid-row: auto; margin-bottom: 10px; }
  .faces__name, .faces__role { grid-row: auto; margin-top: 0; }
}

/* Lecturas en inicio */

.reads { list-style: none; padding: 0; margin: 8px 0 28px; border-top: 1px solid var(--ink); }
.reads li { border-bottom: 1px solid var(--line); }
.reads a { display: grid; grid-template-columns: 6rem minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 18px; row-gap: 4px; padding: 16px 0; color: inherit; text-decoration: none; }
.reads img { grid-row: 1 / span 2; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.reads__cat { color: var(--ink-soft); font-size: 0.92rem; }
.reads__title { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.2; }
.reads a:hover .reads__title { color: var(--wine); }
@media (min-width: 960px) {
  .reads a { grid-template-columns: 11rem minmax(0, 1fr); column-gap: 28px; padding: 20px 0; }
  .reads__cat { align-self: end; }
  .reads__title { font-size: 1.55rem; }
}

/* Bloques varios */

.split { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr); align-items: start; gap: var(--col-gap); }
}

.identity { font-style: normal; font-size: 1.02rem; line-height: 1.6; max-width: 34rem; }
.identity p { margin-bottom: 10px; }
.identity a { color: inherit; }
.identity__name { font-family: var(--font-display); font-weight: 450; font-size: 1.45rem; line-height: 1.2; letter-spacing: -0.012em; margin: 0 0 14px; }
.identity__note { display: block; margin-top: 4px; font-size: 0.94rem; color: var(--ink-soft); }

.people { display: grid; }
.person { display: grid; gap: 24px; padding: 40px 0; border-top: 1px solid var(--line); }
.people > .person:first-child { border-top-color: var(--ink); }
.person:last-child { border-bottom: 1px solid var(--line); }
.person__heading { margin-bottom: 8px; }
.person__name { display: block; font-size: clamp(1.75rem, 1.3rem + 1vw, 2.4rem); }
.person__role { display: block; font-family: var(--font-text); font-size: 1rem; font-weight: 600; color: var(--wine); letter-spacing: 0; margin-top: 8px; }
.person__charge { font-size: 0.98rem; color: var(--ink-soft); margin-bottom: 12px; }
.person__text { max-width: 60ch; }
.person__photo { max-width: 15rem; margin: 0; }
.person__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 22%; height: auto; }
.people--compact .person { padding: 22px 0; }
.people--compact .person:first-child { border-top-color: var(--ink); }
.people--compact .person__heading { font-size: 1.4rem; }
.people--compact .person__name { font-size: 1.45rem; }
@media (min-width: 960px) {
  .person--photo { grid-template-columns: minmax(0, 1fr) 15rem; gap: var(--col-gap); align-items: end; }
  .person--photo:nth-child(even) { grid-template-columns: 15rem minmax(0, 1fr); }
  .person--photo:nth-child(even) .person__photo { order: -1; }
  .people--compact { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .people--compact .person:nth-child(2) { border-top-color: var(--ink); }
}

/* Blog */

.article-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.article-list li { border-bottom: 1px solid var(--line); }
.article-row { display: flex; flex-direction: column; gap: 6px; padding: 28px 0; color: var(--ink); text-decoration: none; }
.article-row:visited { color: var(--ink); }
.article-row__title { order: 1; font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); font-weight: 430; line-height: 1.15; letter-spacing: -0.018em; color: var(--ink); transition: color var(--speed) var(--ease-out); }
.article-row__desc { order: 2; max-width: 60ch; font-size: 1.02rem; color: var(--ink-soft); }
.article-row__cat { order: 0; font-size: 0.92rem; color: var(--wine); font-weight: 600; }
.article-row:hover .article-row__title { color: var(--wine); }
@media (min-width: 960px) {
  .article-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--col-gap); row-gap: 8px; align-items: baseline; padding: 40px 0; }
  .article-row__cat { grid-column: 1; grid-row: 1 / span 2; }
  .article-row__title { grid-column: 2; }
  .article-row__desc { grid-column: 2; }
}

.notice { background: var(--stone); padding: 14px 18px; font-size: 1rem; max-width: var(--measure); border-radius: 2px; }
.notice--article { background: var(--night); color: var(--on-dark); margin: 0; padding: 12px 0; font-size: 0.95rem; font-weight: 500; max-width: none; border-radius: 0; }
.notice--article a { color: var(--on-dark); }
.notice--article .container { display: block; }

.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 0; margin: 0 0 28px; font-size: 0.94rem; color: var(--ink-soft); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--line-strong); }
.breadcrumb a { display: inline-flex; min-height: 24px; align-items: center; color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--wine); }

.notice--article + .hero { padding-bottom: 48px; }
.article { max-width: 44rem; padding: 0 0 var(--section); }
@media (min-width: 1100px) {
  .article { max-width: none; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--col-gap); align-items: start; }
  .article > * { grid-column: 2; max-width: 44rem; }
  .article > .article__toc {
    grid-column: 1; grid-row: 1 / span 9; position: sticky; top: calc(var(--header-h) + 32px);
    margin: 0; font-size: 0.98rem;
  }
}
.article__meta { font-size: 0.94rem; color: var(--ink-soft); margin-top: 20px; }
.article__cover { margin: 0 0 40px; }
.article__cover img { width: 100%; height: auto; }
.article__toc { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: 20px 0; margin-bottom: 44px; }
.article__toc-title { font-weight: 600; margin-bottom: 8px; }
.article__toc ol { margin: 0; padding-left: 1.4em; }
.article__toc li { padding: 4px 0; }
.article__body h2 { margin-top: 1.8em; font-size: clamp(1.5rem, 1.25rem + 0.8vw, 2rem); }
.article__body ul { padding-left: 1.2em; }
.article__body li { margin-bottom: 8px; }
.article__body em { font-style: italic; }
.art-callout { margin: 36px 0; padding: 0; border: 0; font-family: var(--font-display); font-style: italic; font-size: 1.5rem; font-weight: 380; line-height: 1.35; letter-spacing: -0.01em; color: var(--wine); }
.article__disclaimer { font-size: 0.94rem; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 48px; color: var(--ink-soft); }
.article__sources h2, .article__related h2, .article__cta h2 { font-size: 1.55rem; }
.article__sources ul, .article__related ul { padding-left: 1.2em; }
.article__sources li, .article__related li { margin-bottom: 8px; }
.article__cta { background: var(--wine); color: var(--on-dark); padding: 36px 28px; margin: 48px 0; }
.article__cta :focus-visible { outline-color: var(--on-dark); }
.article__cta .btn--primary, .article__cta .btn--primary:visited { background: var(--on-dark); color: var(--ink); }
.article__cta .btn--primary:hover { background: #fff; color: var(--ink); }
.article__cta .link-secondary, .article__cta .link-secondary:visited { color: var(--on-dark); text-decoration-color: var(--on-dark-soft); }
.article__cta .link-secondary:hover { color: var(--on-dark); text-decoration-color: var(--on-dark); }
.article__related { margin-bottom: 32px; }

/* Legales, emergencias */

.legal { max-width: 44rem; }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); }
.legal h2 { font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.65rem); margin-top: 1.8em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }
.legal__date { font-size: 0.94rem; color: var(--ink-soft); font-weight: 600; }
.policy { margin-bottom: 56px; }

.urgent-list { padding-left: 1.2em; }
.urgent-list li { margin-bottom: 14px; }
.urgent-list li::marker { color: var(--danger); }
.page-emergencias h1 { color: var(--danger); }

/* Formulario */

.form-layout { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .form-layout { grid-template-columns: minmax(0, 1fr) var(--form); gap: var(--col-gap); align-items: start; }
}
.form { max-width: var(--form); background: transparent; border: 0; border-top: 1px solid var(--ink); padding: 28px 0 0; border-radius: 0; }
.form__title { font-size: 1.75rem; }
.form__hint { font-size: 0.95rem; color: var(--ink-soft); }
.form__status:empty { display: none; }
.form__status { border: 0; border-top: 2px solid var(--danger); color: var(--danger); background: transparent; padding: 12px 0; margin-bottom: 24px; font-weight: 600; }
.form__status:focus { outline: 3px solid var(--ink); outline-offset: 3px; }
.field { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.field > label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.field__help, .field__counter { font-size: 0.94rem; margin: 0 0 8px; color: var(--ink-soft); }
.field__counter { margin-top: 6px; }
.req, .opt { font-weight: 400; font-size: 0.94rem; color: var(--ink-soft); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font: 400 1.0625rem/1.4 var(--font-text); color: var(--ink);
  background: var(--paper-raised); border: 1px solid var(--line-strong); border-radius: 2px;
  transition: border-color var(--speed) var(--ease-out);
}
.field input:hover, .field textarea:hover { border-color: var(--ink); }
.field textarea { min-height: 8rem; resize: vertical; }
.field [aria-invalid="true"] { border: 2px solid var(--danger); }
.field__error { color: var(--danger); font-size: 0.95rem; font-weight: 600; margin: 6px 0 0; }
.field__error:empty { display: none; }
.field__error:not(:empty)::before { content: "Error: "; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 10px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--paper-raised); cursor: pointer; font-weight: 400; transition: border-color var(--speed) var(--ease-out), background-color var(--speed) var(--ease-out); }
.choice:hover { border-color: var(--ink); }
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--wine); }
.choice:has(input:checked) { border-color: var(--wine); background: var(--wine-tint); font-weight: 600; }
.field--check { display: grid; grid-template-columns: 24px 1fr; gap: 4px 12px; align-items: start; }
.field--check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--wine); }
.field--check label { font-weight: 400; margin: 0; }
.field--check a { display: inline-block; min-height: 24px; }
.field--check a { display: inline-block; min-height: 24px; }
.field--check .field__error { grid-column: 2; }
.form__urgent { margin: 8px 0 20px; }
.btn--submit { width: 100%; }
@media (min-width: 600px) { .btn--submit { width: auto; min-width: 12rem; } }
.form__after { font-size: 0.94rem; margin: 16px 0 0; color: var(--ink-soft); }
.form-layout__aside .notice { margin-top: 16px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Pie: continúa el fondo oscuro del cierre */

.site-footer { background: var(--night); color: var(--on-dark); padding: 64px 0 120px; font-size: 1rem; }
body:has(main > .band--dark:last-child) .site-footer { padding-top: 0; }
body:has(main > .band--dark:last-child) .site-footer > .container { border-top: 1px solid rgba(243, 239, 231, 0.18); padding-top: 56px; }
.site-footer :focus-visible { outline-color: var(--on-dark); }
.site-footer a, .site-footer a:visited { color: var(--on-dark); }
.site-footer a:hover { color: var(--on-dark); }
.site-footer__grid { display: grid; gap: 36px; }
.site-footer__logo { height: 26px; width: auto; margin-bottom: 24px; filter: brightness(0) invert(1); opacity: 0.92; }
.site-footer h2 { font: 600 0.95rem/1.3 var(--font-text); letter-spacing: 0; color: var(--on-dark-soft); margin-bottom: 6px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; }
.site-footer .identity__note { color: var(--on-dark-soft); }
.site-footer__end { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(243, 239, 231, 0.18); font-size: 0.92rem; color: var(--on-dark-soft); }
.site-footer__end p { margin-bottom: 4px; }
@media (min-width: 960px) {
  .site-footer { padding-bottom: 64px; }
  .site-footer__grid { grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)) ; gap: 40px; }
}

.wa-float, .wa-float:visited {
  position: fixed; right: 16px; bottom: 16px; z-index: 20;
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px;
  background: var(--night); color: var(--on-dark); border: 1px solid rgba(243, 239, 231, 0.3);
  border-radius: 2px; font-weight: 600; text-decoration: none;
  transition: background-color var(--speed) var(--ease-out), transform 120ms var(--ease-out);
}
.wa-float:hover { background: var(--wine-deep); color: var(--on-dark); }
.wa-float:active { transform: scale(0.97); }
.wa-float:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Aviso de medición: no bloquea la página; aceptar y rechazar pesan lo mismo. */

.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--paper-raised); color: var(--ink);
  border-top: 1px solid var(--ink);
  padding: 16px 0 calc(16px + env(safe-area-inset-bottom, 0px));
  font-size: 0.98rem;
}
.consent[hidden], .btn[hidden] { display: none; }
.consent__inner { display: grid; gap: 12px; }
.consent__title { font-size: 1.2rem; margin-bottom: 4px; }
.consent__text p { margin: 0; max-width: 46rem; }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 760px) {
  .consent__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 32px; }
  .consent__actions { display: flex; }
}
.btn--choice, .btn--choice:visited { background: var(--paper-raised); color: var(--ink); border-color: var(--ink); }
.btn--choice:hover { background: var(--ink); color: var(--paper); }
.consent-open .wa-float { bottom: calc(var(--consent-h, 0px) + 16px); }
.legal code { font-size: 0.92em; background: var(--stone); padding: 1px 5px; border-radius: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .wa-float, .skip-link, .consent { display: none; }
  body, .site-footer, .band, .article__cta, .notice--article, .section--divide { background: #fff; color: #000; }
  .site-footer a, .site-footer__logo { filter: none; color: #000; }
}
