/* Tabano · sistema de diseño (CSS sin dependencias, mobile-first)
   Identidad: editorial contemporánea + técnica. Papel cálido, tinta casi negra, un único acento ámbar.
   Tipografía: pilas del sistema (sin descargas ni saltos de diseño). Ver README para autoalojar fuentes.
   Índice: 1 Tokens · 2 Base · 3 Layout · 4 Header/Footer · 5 Botones · 6 Hero · 7 Bloques · 8 Servicios
           9 Prosa y tablas · 10 Formularios · 11 Consentimiento · 12 Movimiento y preferencias */

/* 1 · Tokens */
:root {
  --paper: #f6f3ec;
  --paper-2: #ece7da;
  --paper-3: #fffdf7;
  --ink: #121210;
  --ink-2: #3a3933;
  --muted: #5c5a50;
  --line: #d6cfbe;
  --field: #6f6c60;
  --accent: #f2b705;
  --forest: #15302b;
  --forest-2: #1f4139;
  --on-dark: #f6f3ec;
  --on-dark-muted: #c9c3b1;
  --ok: #1d6b3b;
  --err: #b42318;
  --focus: #0b57d0;

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "URW Palladio L", "Book Antiqua", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --max: 76rem;
  --radius: 0.5rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 2 · Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.1rem + 6.4vw, 5.6rem); line-height: 1.02; letter-spacing: -0.028em; }
h2 { font-size: clamp(1.75rem, 1.15rem + 2.4vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem); line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.22em; }
a:hover { text-decoration-color: var(--accent); text-decoration-thickness: 0.18em; }
strong { font-weight: 650; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.4em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.section-dark :focus-visible, .site-footer :focus-visible, .consent :focus-visible { outline-color: var(--accent); }
::selection { background: var(--accent); color: var(--ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--paper); padding: 0.75rem 1rem; border-radius: var(--radius); }
.skip:focus { top: 1rem; }
.ico { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 3 · Layout */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 50rem; }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--forest); color: var(--on-dark); }
.section-dark .muted, .section-dark .kicker { color: var(--on-dark-muted); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head p { color: var(--muted); font-size: 1.15rem; }
.section-dark .section-head p { color: var(--on-dark-muted); }
.muted { color: var(--muted); }
.kicker { display: inline-flex; align-items: center; gap: 0.6rem; margin: 0 0 1.25rem; font-family: var(--font-body); font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.kicker::before { content: ""; width: 0.6rem; height: 0.6rem; background: var(--accent); border-radius: 50%; flex: none; }
.lead { font-size: clamp(1.15rem, 1.05rem + 0.55vw, 1.4rem); line-height: 1.5; color: var(--ink-2); max-width: 44rem; }
.center { text-align: center; }

/* 4 · Header y footer */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1.5rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; }
.brand img { display: block; height: 2.75rem; width: auto; }
@media (min-width: 48em) { .brand img { height: 3.25rem; } }
.brand:hover { text-decoration: none; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.nav a:not(.btn) { text-decoration: none; padding: 0.5rem 0; font-weight: 500; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover { border-bottom-color: var(--accent); }
.nav a[aria-current="page"]:not(.btn) { border-bottom-color: var(--ink); }
.nav-btn { display: none; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; }
.nav-btn .ico-close { display: none; }
.nav-btn[aria-expanded="true"] .ico-open { display: none; }
.nav-btn[aria-expanded="true"] .ico-close { display: block; }
@media (max-width: 51.99rem) {
  .js .nav-btn { display: inline-flex; }
  .js .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 0.75rem var(--gutter) 1.5rem; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -24px rgba(18, 18, 16, 0.35); }
  .js .nav[data-open] { display: flex; }
  .js .nav a:not(.btn) { padding: 0.9rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .js .nav .btn { margin-top: 1rem; justify-content: center; }
  .no-js .nav { width: 100%; padding-bottom: 0.75rem; }
}

.site-footer { background: var(--ink); color: #d9d4c4; padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.site-footer a { text-decoration-color: rgba(246, 243, 236, 0.35); }
.site-footer a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.foot-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 44rem) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot-brand .brand { color: var(--paper); margin-bottom: 1rem; }
.foot-brand p { color: #b9b3a1; max-width: 22rem; }
.foot-title { font-family: var(--font-body); font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 0.55rem; }
.foot-note { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(246, 243, 236, 0.18); font-size: 0.9rem; color: #b9b3a1; }
.foot-copy { font-size: 0.9rem; color: #b9b3a1; margin: 0; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-decoration-color: rgba(246, 243, 236, 0.35); text-underline-offset: 0.22em; cursor: pointer; }
.link-btn:hover { color: var(--accent); }

/* 5 · Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem; min-height: 3rem; padding: 0.7rem 1.5rem; border: 2px solid transparent; border-radius: 999px; font: inherit; font-weight: 650; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease); }
.btn:hover { text-decoration: none; }
.btn .ico { transition: transform 0.25s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); color: var(--ink); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--ink); color: var(--paper); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-sm { min-height: 2.75rem; padding: 0.5rem 1.15rem; font-size: 0.95rem; }
.section-dark .btn-primary, .cta-band .btn-primary { background: var(--accent); color: var(--ink); }
.section-dark .btn-primary:hover, .cta-band .btn-primary:hover { background: var(--paper); }
.section-dark .btn-ghost { border-color: var(--on-dark); color: var(--on-dark); }
.section-dark .btn-ghost:hover { background: var(--on-dark); color: var(--ink); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin: 2rem 0 0; }
.arrow-link { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 650; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 0.15rem; }
.arrow-link:hover { border-bottom-color: currentColor; }
.arrow-link .ico { transition: transform 0.25s var(--ease); }
.arrow-link:hover .ico { transform: translateX(4px); }

/* 6 · Hero y migas */
.hero { padding-block: clamp(2.5rem, 7vw, 6rem) clamp(3rem, 7vw, 6rem); overflow: clip; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 60rem) { .hero-grid { grid-template-columns: 1.2fr 0.8fr; gap: 3rem; } }
.hero h1 em { font-style: italic; background: linear-gradient(transparent 64%, var(--accent) 64%, var(--accent) 92%, transparent 92%); padding-inline: 0.05em; }
.hero-art { width: 100%; max-width: 34rem; justify-self: center; color: var(--ink); }
.hero-art svg { width: 100%; height: auto; overflow: visible; }
.hero-art .trazo { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 900; animation: dibujar 2.2s var(--ease) forwards; }
.hero-art .trazo:nth-of-type(2) { animation-delay: 0.1s; } .hero-art .trazo:nth-of-type(3) { animation-delay: 0.2s; }
.hero-art .trazo:nth-of-type(4) { animation-delay: 0.3s; } .hero-art .trazo:nth-of-type(5) { animation-delay: 0.4s; }
.hero-art .trazo:nth-of-type(6) { animation-delay: 0.5s; } .hero-art .trazo:nth-of-type(7) { animation-delay: 0.6s; }
.hero-art .trazo:nth-of-type(8) { animation-delay: 0.7s; }
.hero-art .anillo { fill: none; stroke: currentColor; stroke-width: 1.5; opacity: 0.35; }
.hero-art .foco { fill: var(--accent); stroke: var(--ink); stroke-width: 2; }
.hero-art .punto { fill: currentColor; }
.hero-art .punto-acento { fill: var(--accent); stroke: var(--ink); stroke-width: 1.5; }
@keyframes dibujar { to { stroke-dashoffset: 0; } }
.rise { animation: subir 0.8s var(--ease) both; }
.rise-2 { animation-delay: 0.08s; } .rise-3 { animation-delay: 0.16s; } .rise-4 { animation-delay: 0.24s; }
@keyframes subir { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.page-head { padding-block: clamp(2rem, 5vw, 4.5rem) clamp(2rem, 4vw, 3.5rem); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.2rem, 1.1rem + 4.8vw, 4.4rem); max-width: 22ch; }
.crumbs { margin-bottom: 1.75rem; font-size: 0.9rem; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.5rem; margin: 0; padding: 0; }
.crumbs li { margin: 0; display: inline-flex; gap: 0.5rem; }
.crumbs li + li::before { content: "/"; color: var(--line); }
.crumbs a { display: inline-block; padding: 0.35rem 0; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* 7 · Bloques reutilizables */
.grid-4 { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: 1fr; }
@media (min-width: 40rem) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
.cell { position: relative; background: var(--paper); padding: clamp(1.5rem, 3vw, 2.25rem); transition: background-color 0.25s var(--ease); }
.section-alt .cell { background: var(--paper-2); }
.cell:hover { background: var(--paper-3); }
.cell .num { font-family: var(--font-display); font-size: 1rem; color: var(--muted); display: block; margin-bottom: 1.25rem; }
.cell h3 { margin-bottom: 0.5rem; }
.cell p:last-child { margin-bottom: 0; }
.problemas { display: grid; gap: 2rem 3rem; grid-template-columns: 1fr; counter-reset: p; }
@media (min-width: 44rem) { .problemas { grid-template-columns: repeat(2, 1fr); } }
.problemas article { padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.problemas h3 { margin-bottom: 0.4rem; }
.problemas p { color: var(--muted); margin: 0; }

.servicio-card { display: flex; flex-direction: column; gap: 1rem; color: inherit; text-decoration: none; height: 100%; }
.servicio-card:hover { text-decoration: none; }
.servicio-card .grafico { width: 7.5rem; height: 5.25rem; color: var(--ink); transition: transform 0.35s var(--ease); }
.servicio-card:hover .grafico { transform: translateY(-3px) rotate(-1.5deg); }
.servicio-card h3 { margin: 0; }
.servicio-card .problema { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.3; margin: 0; }
.servicio-card .resumen { color: var(--muted); margin: 0; }
.servicio-card .arrow-link { margin-top: auto; align-self: flex-start; }

.pasos { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; grid-template-columns: 1fr; counter-reset: paso; }
@media (min-width: 48rem) { .pasos { grid-template-columns: repeat(5, 1fr); gap: 1.25rem; } }
.pasos > li { margin: 0; padding-top: 1rem; border-top: 2px solid var(--ink); counter-increment: paso; }
.pasos > li::before { content: counter(paso, decimal-leading-zero); display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1; margin-bottom: 0.75rem; color: var(--muted); }
.pasos h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.pasos p { font-size: 0.97rem; color: var(--muted); margin: 0; }
.pasos ul { list-style: disc; padding-left: 1.1em; font-size: 0.92rem; color: var(--muted); margin: 0.75rem 0 0; }
.pasos-detalle { grid-template-columns: 1fr; }
@media (min-width: 48rem) { .pasos-detalle { grid-template-columns: repeat(5, 1fr); } }

.principios { display: grid; gap: 0; border-top: 1px solid rgba(246, 243, 236, 0.25); }
.principios article { display: grid; gap: 0.5rem 2rem; padding-block: 1.5rem; border-bottom: 1px solid rgba(246, 243, 236, 0.25); }
@media (min-width: 48rem) { .principios article { grid-template-columns: 22rem 1fr; align-items: baseline; } }
.principios h3 { margin: 0; color: var(--on-dark); }
.principios p { margin: 0; color: var(--on-dark-muted); }

.duo { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) { .duo { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: 1rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 3px var(--accent), inset 0 0 0 5px var(--ink); }

.pendiente { margin: 1.5rem 0; padding: 1rem 1.25rem; border: 2px dashed #8a6400; border-radius: var(--radius); background: #fff6d6; color: #3d2d00; font-size: 0.95rem; }
.pendiente strong { display: block; margin-bottom: 0.25rem; }
.pendiente p:last-child { margin-bottom: 0; }

.cards-articulos { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: 1fr; }
@media (min-width: 48rem) { .cards-articulos { grid-template-columns: repeat(3, 1fr); } }
.articulo-card { display: flex; flex-direction: column; gap: 0.75rem; height: 100%; background: var(--paper); padding: clamp(1.5rem, 3vw, 2rem); color: inherit; text-decoration: none; transition: background-color 0.25s var(--ease); }
.articulo-card:hover { background: var(--paper-3); text-decoration: none; }
.articulo-card .tag { font-size: 0.78rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.articulo-card h3 { margin: 0; }
.articulo-card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.articulo-card .meta { margin-top: auto; padding-top: 0.5rem; font-size: 0.88rem; color: var(--muted); }
.cards-articulos.una-col { grid-template-columns: 1fr; }

.faq .faq-item { border-bottom: 1px solid var(--line); }
.faq .faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.25rem 0; cursor: pointer; font-family: var(--font-display); font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); line-height: 1.25; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border: 1.5px solid var(--ink); border-radius: 50%; font-family: var(--font-body); font-size: 1.25rem; line-height: 1; transition: transform 0.25s var(--ease), background-color 0.2s; }
.faq summary:hover::after { background: var(--accent); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-item > div { padding: 0 3.5rem 1.5rem 0; color: var(--ink-2); max-width: 46rem; }
.faq .faq-item > div p:last-child { margin-bottom: 0; }

.cta-band { background: var(--forest); color: var(--on-dark); padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.cta-band h2 { max-width: 20ch; font-size: clamp(2rem, 1.2rem + 3.6vw, 4rem); }
.cta-band p { color: var(--on-dark-muted); max-width: 40rem; font-size: 1.15rem; }
.cta-band .actions { margin-top: 1.75rem; }

.relacionados { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: 1fr; }
@media (min-width: 44rem) { .relacionados { grid-template-columns: repeat(2, 1fr); } }
.relacionados a { display: block; background: var(--paper); padding: 1.25rem 1.5rem; text-decoration: none; transition: background-color 0.2s; }
.relacionados a:hover { background: var(--paper-3); }
.relacionados small { display: block; color: var(--muted); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.25rem; }
.relacionados strong { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; line-height: 1.25; }

/* 8 · Páginas de servicio */
.doc { display: grid; gap: 2.5rem; padding-block: clamp(2.5rem, 6vw, 5rem); }
@media (min-width: 64rem) { .doc { grid-template-columns: 15rem minmax(0, 1fr); gap: 4rem; } }
.toc { display: none; }
@media (min-width: 64rem) { .toc { display: block; position: sticky; top: 6rem; align-self: start; font-size: 0.93rem; } }
.toc-title { font-size: 0.78rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.75rem; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: 0.4rem 0 0.4rem 1rem; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--ink); border-left-color: var(--accent); }
.doc-body { max-width: 48rem; }
.bloque { padding-bottom: clamp(2rem, 4vw, 3.25rem); margin-bottom: clamp(2rem, 4vw, 3.25rem); border-bottom: 1px solid var(--line); }
.bloque:last-of-type { border-bottom: 0; }
.bloque h2 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem); }
.lista { padding-left: 1.2em; }
.lista li::marker { color: var(--ink); }
.nota { margin-top: 1.25rem; padding: 1rem 1.25rem; border-left: 4px solid var(--accent); background: var(--paper-2); font-size: 0.98rem; }
.etapas { list-style: none; padding: 0; margin: 1.5rem 0 0; counter-reset: etapa; display: grid; gap: 0; border-top: 1px solid var(--line); }
.etapas li { display: grid; grid-template-columns: 3rem 1fr; gap: 0.25rem 1rem; padding: 1rem 0; margin: 0; border-bottom: 1px solid var(--line); counter-increment: etapa; }
.etapas li::before { content: counter(etapa, decimal-leading-zero); font-family: var(--font-display); font-size: 1.5rem; color: var(--muted); grid-row: span 2; line-height: 1.1; }
.etapas strong { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; }
.etapas span { color: var(--muted); }

/* 9 · Prosa y tablas */
.prose { max-width: 44rem; font-size: 1.125rem; line-height: 1.7; }
.prose h2 { margin-top: 3rem; font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.3rem); }
.prose h3 { margin-top: 2rem; }
.prose p, .prose ul, .prose ol, .prose .tabla-wrap { margin-bottom: 1.25em; }
.prose a { text-decoration-color: var(--accent); text-decoration-thickness: 0.15em; }
.prose a:hover { background: var(--accent); text-decoration: none; }
.prose blockquote { margin: 1.5rem 0; padding: 0.25rem 0 0.25rem 1.25rem; border-left: 4px solid var(--accent); color: var(--ink-2); font-family: var(--font-display); font-size: 1.3rem; }
.prose blockquote p { margin: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.articulo-head { padding-block: clamp(2rem, 5vw, 4rem) 2rem; }
.articulo-head h1 { font-size: clamp(2.1rem, 1.1rem + 4.4vw, 4rem); max-width: 20ch; }
.articulo-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-size: 0.93rem; color: var(--muted); margin: 0; }
.respuesta { margin: 0 0 2.5rem; padding: 1.5rem 1.75rem; background: var(--paper-2); border-left: 6px solid var(--accent); max-width: 44rem; }
.respuesta .tag { display: block; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.respuesta p { margin: 0; font-family: var(--font-display); font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem); line-height: 1.4; }
.indice-articulo { max-width: 44rem; margin-bottom: 2.5rem; padding: 1.25rem 1.5rem; border: 1px solid var(--line); }
.indice-articulo p { margin: 0 0 0.5rem; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.indice-articulo ol { margin: 0; padding-left: 1.25rem; columns: 1; }
@media (min-width: 44rem) { .indice-articulo ol { columns: 2; column-gap: 2rem; } }
.indice-articulo li { margin-bottom: 0.35rem; break-inside: avoid; }
.tabla-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--paper); margin: 1.5rem 0; }
.tabla-wrap:focus-visible { outline-offset: 0; }
table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.97rem; line-height: 1.45; }
caption { caption-side: top; text-align: left; padding: 0.85rem 1rem; font-size: 0.88rem; color: var(--muted); border-bottom: 1px solid var(--line); }
th, td { padding: 0.8rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: var(--paper-2); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
tbody th { font-weight: 650; }
tbody tr:last-child > * { border-bottom: 0; }

/* 10 · Formularios */
.form { display: grid; gap: 1.25rem; }
.form-card { padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--paper-3); border: 1.5px solid var(--ink); border-radius: var(--radius); }
.field { display: grid; gap: 0.4rem; }
.field label, .field .label { font-weight: 650; font-size: 0.97rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea { width: 100%; min-height: 3rem; padding: 0.7rem 0.9rem; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--field); border-radius: var(--radius); transition: border-color 0.2s, box-shadow 0.2s; }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--err); border-width: 2px; }
.field-error { margin: 0; color: var(--err); font-size: 0.92rem; font-weight: 600; display: flex; gap: 0.4rem; align-items: flex-start; }
.field-error::before { content: "!"; flex: none; display: grid; place-items: center; width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; border-radius: 50%; background: var(--err); color: #fff; font-size: 0.75rem; font-weight: 700; }
.field-error[hidden] { display: none; }
.field-hint { margin: 0; color: var(--muted); font-size: 0.9rem; }
.form-row { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .form-row { grid-template-columns: 1fr 1fr; } }
.check { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.75rem; align-items: start; }
.check input { width: 1.4rem; height: 1.4rem; margin: 0.15rem 0 0; accent-color: var(--ink); }
.check label { font-weight: 400; font-size: 0.95rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { padding: 1rem 1.25rem; border-radius: var(--radius); border: 2px solid var(--err); background: #fdecea; color: #7a1710; font-weight: 600; }
.form-alert ul { margin: 0.5rem 0 0; font-weight: 400; }
.form-alert[hidden] { display: none; }
.form-status { min-height: 1.5rem; margin: 0; font-weight: 600; }
.form-status.ok { color: var(--ok); }
.contacto-grid { display: grid; gap: 3rem; padding-block: clamp(2.5rem, 6vw, 5rem); }
@media (min-width: 60rem) { .contacto-grid { grid-template-columns: 0.8fr 1.2fr; gap: 5rem; } }
.pasos-contacto { list-style: none; padding: 0; margin: 1.5rem 0 0; counter-reset: pc; }
.pasos-contacto li { position: relative; padding-left: 2.75rem; margin-bottom: 1.25rem; counter-increment: pc; }
.pasos-contacto li::before { content: counter(pc); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--accent); font-weight: 700; }
.gracias { padding-block: clamp(4rem, 12vw, 9rem); }
.gracias .ok-mark { display: grid; place-items: center; width: 4rem; height: 4rem; margin-bottom: 1.5rem; border-radius: 50%; background: var(--accent); }
.gracias .ok-mark .ico { width: 1.9rem; height: 1.9rem; stroke-width: 2.5; }

/* 11 · Consentimiento */
.consent { position: fixed; z-index: 90; left: 1rem; right: 1rem; bottom: 1rem; max-width: 40rem; margin-inline: auto; padding: 1.25rem 1.5rem; background: var(--ink); color: var(--on-dark); border-radius: var(--radius); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5); }
.consent[hidden] { display: none; }
.consent p { margin: 0 0 1rem; font-size: 0.95rem; }
.consent a { color: var(--accent); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.consent .btn-primary { background: var(--accent); color: var(--ink); }
.consent .btn-ghost { border-color: var(--on-dark); color: var(--on-dark); }
.consent .btn-ghost:hover { background: var(--on-dark); color: var(--ink); }

/* 12 · Movimiento y preferencias */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .hero-art .trazo { stroke-dashoffset: 0; }
  .rise { opacity: 1; transform: none; }
}
@media (forced-colors: active) {
  .btn, .field input, .field select, .field textarea { border: 2px solid ButtonText; }
  .kicker::before { background: Highlight; }
}
@media print {
  .site-header, .site-footer, .cta-band, .consent, .skip { display: none !important; }
  body { background: #fff; font-size: 11pt; }
}

/* Utilidades finales */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.foot-redes { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.doc, .duo, .contacto-grid, .hero-grid { grid-template-columns: minmax(0, 1fr); }
.doc > *, .duo > *, .contacto-grid > *, .hero-grid > * { min-width: 0; }
@media (min-width: 64rem) { .doc { grid-template-columns: 15rem minmax(0, 1fr); } }
@media (min-width: 56rem) { .duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 60rem) {
  .contacto-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
}

.pasos ul li { margin-bottom: 0.25em; }

.head-grid { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); align-items: center; }
.head-grid > * { min-width: 0; }
.grafico-grande { width: 100%; max-width: 15rem; color: var(--ink); }
@media (min-width: 60rem) { .head-grid { grid-template-columns: minmax(0, 1fr) 17rem; } .grafico-grande { max-width: 17rem; justify-self: end; } }

/* Equipo y autores */
.equipo { display: grid; gap: clamp(2rem, 4vw, 3rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 56rem) { .equipo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.persona { display: grid; gap: 1.25rem; align-content: start; }
.persona img { width: 12rem; height: 12rem; max-width: 100%; object-fit: cover; border-radius: var(--radius); border: 1.5px solid var(--ink); background: var(--paper-2); }
.persona h3 { margin-bottom: 0.15rem; }
.rol { margin: 0 0 0.75rem; font-size: 0.82rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.persona p:last-child { margin-bottom: 0; }
.autor-box { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 1.25rem; align-items: start; max-width: 44rem; margin-top: 3rem; padding: 1.25rem 1.5rem; border: 1px solid var(--line); background: var(--paper-3); }
.autor-box img { width: 6rem; height: 6rem; object-fit: cover; border-radius: var(--radius); }
.autor-box p { margin: 0 0 0.4rem; font-size: 0.97rem; }
.autor-box .autor-nombre { font-family: var(--font-display); font-size: 1.25rem; }
.autor-box .rol { display: inline; margin: 0; font-family: var(--font-body); font-size: 0.78rem; }
.articulo-meta a { text-decoration-color: var(--accent); }
.foot-dir { color: #b9b3a1; font-size: 0.92rem; max-width: 16rem; }
@media (max-width: 30rem) { .autor-box { grid-template-columns: minmax(0, 1fr); } }
.cta-band .btn-ghost { border-color: var(--on-dark); color: var(--on-dark); }
.cta-band .btn-ghost:hover { background: var(--on-dark); color: var(--ink); }
