/* ==========================================================================
   Taller Murcia · sistema de diseño
   --------------------------------------------------------------------------
   Paleta    papel frío + tinta petróleo; un solo color de acción (petróleo)
             y un ámbar de «testigo» reservado a señales y diagramas.
   Tipos     Hanken Grotesk (texto y titulares) + IBM Plex Mono (datos y
             etiquetas técnicas). Servidas en local desde assets/fonts.
   Espaciado escala de 4 px: 4 8 12 16 24 32 48 64 96 128.
   Radios    6 (controles) · 12 (tarjetas) · 20 (paneles).
   Rejilla   contenedor de 1200 px, 12 columnas, canal de 24 px.
   ========================================================================== */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* color */
  --bg: #f4f5f1;
  --surface: #e8ebe5;
  --card: #ffffff;
  --ink: #121c1e;
  --muted: #404c4b;
  --line: rgba(18, 28, 30, 0.14);
  --line-strong: rgba(18, 28, 30, 0.28);
  --action: #0c4a52;
  --action-hover: #083840;
  --action-soft: #dbe6e4;
  --deep: #0b2428;
  --deep-2: #123338;
  --deep-line: rgba(238, 242, 238, 0.16);
  --on-deep: #eef2ee;
  --on-deep-muted: #a8bab8;
  --amber: #f2a71b;
  --amber-ink: #7a4a00;
  --amber-soft: #fbedcc;
  --mint: #8fd9c4;
  --danger: #a3261a;
  --danger-soft: #fbe9e6;

  /* type */
  --font-sans: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --t-h1: clamp(2.375rem, 1.6rem + 3.2vw, 3.875rem);
  --t-h1-page: clamp(2.125rem, 1.5rem + 2.7vw, 3.5rem);
  --t-h2: clamp(1.75rem, 1.35rem + 1.7vw, 2.625rem);
  --t-h3: clamp(1.1875rem, 1.12rem + 0.3vw, 1.375rem);
  --t-lead: clamp(1.125rem, 1.07rem + 0.25vw, 1.25rem);
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
  --t-label: 0.8125rem;

  /* espacio */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --gut: 24px;
  --section: clamp(64px, 9vw, 128px);
  --nav-h: 64px;
  --bar-h: 0px;

  /* forma */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;

  /* movimiento */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --fast: 160ms;
  --slow: 520ms;
}
@media (min-width: 720px)  { :root { --gut: 40px; --nav-h: 72px; } }
@media (min-width: 1100px) { :root { --gut: 56px; } }
@media (max-width: 719px)  { :root { --bar-h: calc(68px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
body {
  margin: 0;
  padding-top: var(--nav-h);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
a[href^="tel:"] { white-space: nowrap; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--action); color: #fff; }

h1, h2, h3 { font-weight: 500; text-wrap: balance; }
h1 { font-size: var(--t-h1); line-height: 1.03; letter-spacing: -0.035em; }
h2 { font-size: var(--t-h2); line-height: 1.1; letter-spacing: -0.028em; }
h3 { font-size: var(--t-h3); line-height: 1.25; letter-spacing: -0.012em; font-weight: 600; }
p { text-wrap: pretty; }
strong { font-weight: 600; }

:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-deep :focus-visible, .site-footer :focus-visible, .actionbar :focus-visible { outline-color: var(--amber); }

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

/* ---------- utilidades de composición ---------- */
.wrap { width: min(100% - 2 * var(--gut), 1200px); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--surface { background: var(--surface); }
.on-deep { background: var(--deep); color: var(--on-deep); }
.on-deep .muted, .on-deep .lead { color: var(--on-deep-muted); }

.grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(12, minmax(0, 1fr)); }
.measure { max-width: 62ch; }
.muted { color: var(--muted); }
.lead { font-size: var(--t-lead); line-height: 1.55; color: var(--muted); }
.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-5); }

.section-head { display: grid; gap: var(--s-4); margin-bottom: clamp(32px, 4.5vw, 56px); max-width: 780px; }
.section-head .lead { max-width: 60ch; }

.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: var(--t-label); font-weight: 500;
  letter-spacing: 0.02em; line-height: 1.3; color: var(--muted);
}
.label::before {
  content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--amber); flex: none;
}
.on-deep .label { color: var(--on-deep-muted); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }

/* ---------- enlaces y botones ---------- */
.link {
  color: var(--action); font-weight: 500; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px; transition: background-size var(--fast) var(--ease), color var(--fast);
}
.link:hover { background-size: 100% 2px; color: var(--action-hover); }
.on-deep .link, .site-footer .link { color: var(--on-deep); }
.on-deep .link:hover, .site-footer .link:hover { color: #fff; }
.prose a {
  color: var(--action); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  transition: color var(--fast);
}
.prose a:hover { color: var(--action-hover); text-decoration-thickness: 2px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: var(--action); font-weight: 500; text-decoration: none;
}
.link-arrow span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 240ms var(--ease); padding-bottom: 2px; }
.link-arrow:hover span { background-size: 100% 1px; }
.link-arrow svg { width: 18px; height: 18px; transition: transform 240ms var(--ease); flex: none; }
.link-arrow:hover svg { transform: translateX(4px); }
.on-deep .link-arrow { color: var(--on-deep); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--r-sm);
  border: 1px solid transparent; background: transparent; color: var(--ink);
  font-weight: 500; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; white-space: nowrap;
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease),
              color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn--primary { background: var(--action); color: #fff; }
.btn--primary:hover { background: var(--action-hover); }
.btn--secondary { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--secondary:hover { border-color: var(--ink); background: rgba(18, 28, 30, 0.04); }
.on-deep .btn--primary, .site-footer .btn--primary { background: var(--amber); color: #1c1400; }
.on-deep .btn--primary:hover, .site-footer .btn--primary:hover { background: #ffb935; }
.on-deep .btn--secondary, .site-footer .btn--secondary { border-color: rgba(238, 242, 238, 0.36); color: var(--on-deep); }
.on-deep .btn--secondary:hover, .site-footer .btn--secondary:hover { border-color: var(--on-deep); background: rgba(238, 242, 238, 0.07); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
@media (max-width: 479px) { .btn-row > .btn { flex: 1 1 100%; } }

/* ---------- cabecera ---------- */
.skip-link {
  position: fixed; left: var(--gut); top: 10px; z-index: 60;
  padding: 10px 16px; background: var(--ink); color: #fff; border-radius: var(--r-sm);
  text-decoration: none; font-weight: 500; transform: translateY(-200%);
}
.skip-link:focus { transform: none; outline: 3px solid var(--ink); outline-offset: 3px; }

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: var(--s-5); }
.brand {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  text-decoration: none; color: var(--ink); margin-right: auto;
}
.brand__name { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.brand__tag {
  display: none; padding-left: 12px; border-left: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; line-height: 1.25; color: var(--muted);
}
@media (min-width: 400px) { .brand__tag { display: block; } }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-size: 0.9688rem; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap;
  border-radius: var(--r-sm); transition: background-color var(--fast);
}
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 2px;
  background: var(--action); transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.header-phone {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px;
  font-family: var(--font-mono); font-size: 0.9375rem; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.header-phone svg { width: 16px; height: 16px; color: var(--action); }
.header-phone:hover { color: var(--action); }
.header-cta { display: none; min-height: 44px; padding-block: 10px; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: transparent;
  font-weight: 500; font-size: 0.9688rem; cursor: pointer; color: var(--ink);
  transition: border-color var(--fast), background-color var(--fast);
}
.menu-toggle:hover { border-color: var(--ink); background: rgba(18, 28, 30, 0.04); }
.menu-toggle__icon { position: relative; width: 18px; height: 12px; }
.menu-toggle__icon::before, .menu-toggle__icon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 1px;
  transition: transform 240ms var(--ease), top 240ms var(--ease);
}
.menu-toggle__icon::before { top: 0; }
.menu-toggle__icon::after { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { top: 5px; transform: rotate(-45deg); }

@media (min-width: 720px) { .header-cta { display: inline-flex; } }
@media (min-width: 980px) {
  .nav { display: block; }
  .menu-toggle { display: none; }
  .brand { margin-right: var(--s-5); }
  .nav { margin-right: auto; }
}
@media (min-width: 1140px) { .header-phone { display: inline-flex; } }

/* menú móvil */
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 45; background: var(--bg);
  padding: var(--s-5) var(--gut) calc(var(--s-6) + var(--bar-h)); overflow-y: auto;
  display: flex; flex-direction: column; gap: var(--s-6);
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 0s linear 200ms;
}
.mobile-menu.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.mobile-menu__list a {
  display: flex; align-items: center; justify-content: space-between; min-height: 60px;
  border-bottom: 1px solid var(--line); text-decoration: none;
  font-size: 1.375rem; font-weight: 500; letter-spacing: -0.02em;
}
.mobile-menu__list a[aria-current="page"] { color: var(--action); }
.mobile-menu__list svg { width: 20px; height: 20px; color: var(--muted); }
.mobile-menu__meta { display: grid; gap: var(--s-2); color: var(--muted); font-size: var(--t-small); }
.mobile-menu__meta a { color: var(--ink); }
@media (min-width: 980px) { .mobile-menu { display: none; } }
body.menu-open { overflow: hidden; }

/* barra fija móvil */
.actionbar {
  position: fixed; inset: auto 0 0 0; z-index: 48;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2);
  padding: 10px var(--s-4) calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--deep); border-top: 1px solid var(--deep-line);
}
.actionbar .btn { min-height: 48px; padding-inline: 12px; }
.actionbar .btn--primary { background: var(--amber); color: #1c1400; }
.actionbar .btn--secondary { border-color: rgba(238, 242, 238, 0.36); color: var(--on-deep); }
@media (min-width: 720px) { .actionbar { display: none; } }

/* ---------- portada ---------- */
.hero { padding-block: clamp(32px, 5vw, 72px) clamp(56px, 7vw, 96px); }
.hero__grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__text { display: grid; gap: var(--s-5); align-content: start; }
.hero__text h1 { max-width: 16ch; }
.hero__text .lead { max-width: 46ch; }
.hero__facts { display: grid; gap: var(--s-3); padding-top: var(--s-5); border-top: 1px solid var(--line); font-size: var(--t-small); }
.hero__facts > * { display: flex; align-items: center; gap: 10px; }
.hero__facts > * > span { min-width: 0; }
.hero__facts > * > svg { width: 18px; height: 18px; color: var(--action); flex: none; }
@media (min-width: 980px) {
  .hero { display: grid; align-items: center; min-height: min(calc(100svh - var(--nav-h)), 920px); }
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); }
}

.rating { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; text-decoration: none; min-height: 44px; }
.rating__stars { display: inline-flex; gap: 2px; color: var(--amber); }
.rating__stars svg { width: 18px; height: 18px; }
.rating__value { font-weight: 650; }
a.rating:hover .rating__text { text-decoration: underline; text-underline-offset: 3px; }

/* panel del diagrama */
.panel {
  position: relative; background: var(--deep); color: var(--on-deep);
  border-radius: var(--r-lg); padding: clamp(20px, 3vw, 36px); overflow: hidden;
}
.panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-4); }
.panel__title { font-family: var(--font-mono); font-size: var(--t-label); font-weight: 500; color: var(--on-deep-muted); }
.panel__badge { font-family: var(--font-mono); font-size: var(--t-label); color: var(--amber); white-space: nowrap; }
.diagram { width: 100%; height: auto; }
.diagram text { font-family: var(--font-mono); }
.legend { display: grid; gap: var(--s-3); margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--deep-line); }
.legend li { display: grid; grid-template-columns: 28px 1fr; gap: var(--s-3); align-items: start; font-size: var(--t-small); line-height: 1.5; color: var(--on-deep-muted); }
.legend strong { color: var(--on-deep); font-weight: 500; }
.legend__n {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid rgba(238, 242, 238, 0.5); font-family: var(--font-mono); font-size: 0.8125rem; color: var(--on-deep);
}
@media (min-width: 620px) { .legend--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-6); } }

.flow { stroke-dasharray: 5 9; animation: flow 1.6s linear infinite; }
.flow--slow { animation-duration: 2.6s; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.soot { animation: soot 3.2s var(--ease) infinite; }
.soot:nth-of-type(2n) { animation-delay: -1.1s; }
.soot:nth-of-type(3n) { animation-delay: -2.2s; }
@keyframes soot { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

/* ---------- síntomas ---------- */
.symptoms { display: grid; }
.symptom {
  display: grid; grid-template-columns: 52px 1fr; gap: var(--s-4); align-items: start;
  padding-block: var(--s-5); border-top: 1px solid var(--line);
}
.symptom:last-child { border-bottom: 1px solid var(--line); }
.symptom__icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-md);
  background: var(--deep); color: var(--amber);
}
.symptom__icon svg { width: 28px; height: 28px; }
.symptom h3 { margin-bottom: 4px; }
.symptom p { color: var(--muted); }
.on-deep .symptom { border-color: var(--deep-line); }
.on-deep .symptom__icon { background: var(--deep-2); }
.on-deep .symptom p { color: var(--on-deep-muted); }

.split { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (min-width: 980px) {
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-5); }
  .split > .split__a { grid-column: 1 / span 5; }
  .split > .split__b { grid-column: 7 / span 6; }
  .split--wide-a > .split__a { grid-column: 1 / span 7; }
  .split--wide-a > .split__b { grid-column: 9 / span 4; }
  .split--even > .split__a { grid-column: 1 / span 6; }
  .split--even > .split__b { grid-column: 7 / span 6; }
  .sticky { position: sticky; top: calc(var(--nav-h) + 32px); }
}

/* ---------- figuras y fotos ---------- */
.photo { position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--surface); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--tall img { aspect-ratio: 3 / 2; }
@media (min-width: 980px) { .photo--tall img { aspect-ratio: 4 / 5; } }
.photo--land img { aspect-ratio: 3 / 2; }
.photo--wide img { aspect-ratio: 16 / 9; }
.photo--sq img { aspect-ratio: 1; }
figure.figure figcaption { margin-top: var(--s-3); font-size: 0.875rem; line-height: 1.5; color: var(--muted); max-width: 60ch; }
.on-deep figure.figure figcaption { color: var(--on-deep-muted); }

/* ---------- tarjetas ---------- */
.cards { display: grid; gap: var(--s-5); }
@media (min-width: 720px)  { .cards--2, .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* tríos: nunca dejan una tarjeta suelta en la segunda fila */
@media (min-width: 900px) { .cards--trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 600px) and (max-width: 899px) {
  .cards--trio > .card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto auto auto 1fr; column-gap: var(--s-5); align-items: start; }
  .cards--trio > .card > * { grid-column: 2; }
  .cards--trio > .card > .photo, .cards--trio > .card > svg { grid-column: 1; grid-row: 1 / -1; align-self: center; }
  .cards--trio > a.card > .photo { margin: 0; border-radius: var(--r-sm); align-self: stretch; }
  .cards--trio > a.card > .photo img { height: 100%; aspect-ratio: auto; min-height: 150px; }
}
.card {
  display: flex; flex-direction: column; gap: var(--s-3);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: clamp(20px, 2.4vw, 32px);
}
.card p { color: var(--muted); }
.card__kicker { font-family: var(--font-mono); font-size: var(--t-label); font-weight: 500; color: var(--muted); }
.card--deep { background: var(--deep); color: var(--on-deep); border-color: transparent; }
.card--deep p, .card--deep .card__kicker { color: var(--on-deep-muted); }
.card--amber { background: var(--amber-soft); border-color: rgba(122, 74, 0, 0.2); }
.card--amber .card__kicker { color: var(--amber-ink); }
.card--amber p { color: #4d3a14; }
a.card { text-decoration: none; transition: transform 240ms var(--ease), border-color 240ms var(--ease); }
a.card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
a.card .link-arrow { margin-top: auto; padding-top: var(--s-3); }
a.card:hover .link-arrow span { background-size: 100% 1px; }
a.card:hover .link-arrow svg { transform: translateX(4px); }
a.card .photo { margin: calc(-1 * clamp(20px, 2.4vw, 32px)); margin-bottom: var(--s-3); border-radius: var(--r-md) var(--r-md) 0 0; }
a.card .photo img { transition: transform 600ms var(--ease); }
a.card:hover .photo img { transform: scale(1.03); }

/* ---------- pasos ---------- */
.steps { display: grid; gap: 0; counter-reset: paso; }
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: var(--s-4); padding-block: var(--s-5);
  border-top: 1px solid var(--line); counter-increment: paso;
}
.step::before {
  content: counter(paso, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.9375rem; font-weight: 500;
  color: var(--action); padding-top: 4px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); }
.on-deep .step { border-color: var(--deep-line); }
.on-deep .step::before { color: var(--amber); }
.on-deep .step p { color: var(--on-deep-muted); }
@media (min-width: 720px) { .step { grid-template-columns: 72px 1fr; } }

/* ---------- opiniones ---------- */
.score { display: grid; gap: var(--s-4); align-content: start; }
.score__value { font-size: clamp(4.5rem, 3rem + 7vw, 8rem); font-weight: 500; letter-spacing: -0.05em; line-height: 0.9; }
.score__value small { font-size: 0.3em; letter-spacing: -0.01em; color: var(--muted); font-weight: 400; margin-left: 6px; }
.topics { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.topic {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); font-size: var(--t-small); background: var(--card);
}
.topic span { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); }
.quote-slot { border-left: 2px solid var(--amber); padding-left: var(--s-5); }
.dist { display: grid; gap: 6px; max-width: 360px; font-family: var(--font-mono); font-size: var(--t-label); color: var(--muted); }
.dist li { display: grid; grid-template-columns: 14px 1fr 34px; gap: 10px; align-items: center; }
.dist__bar { height: 6px; border-radius: 3px; background: var(--surface); overflow: hidden; }
.dist__bar i { display: block; height: 100%; min-width: 2px; border-radius: 3px; background: var(--ink); }
.dist li span:last-child { text-align: right; color: var(--ink); }

/* ---------- datos de visita ---------- */
.facts { display: grid; gap: 0; }
.facts > div { display: grid; gap: 4px; padding-block: var(--s-4); border-top: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--font-mono); font-size: var(--t-label); font-weight: 500; color: var(--muted); }
.facts dd { font-size: 1.0625rem; }
.on-deep .facts > div, .site-footer .facts > div { border-color: var(--deep-line); }
.on-deep .facts dt { color: var(--on-deep-muted); }
@media (min-width: 560px) { .facts > div { grid-template-columns: 150px 1fr; gap: var(--s-4); align-items: baseline; } }

.hours { display: grid; gap: 0; font-variant-numeric: tabular-nums; }
.hours > div { display: flex; justify-content: space-between; gap: var(--s-4); padding-block: 10px; border-top: 1px solid var(--line); }
.hours > div:last-child { border-bottom: 1px solid var(--line); }
.hours dd { font-family: var(--font-mono); font-size: 0.9375rem; text-align: right; }
.hours .is-today { font-weight: 600; }
.hours .is-today dt::after { content: " · hoy"; font-weight: 400; color: var(--muted); }
.hours .is-closed dd { color: var(--muted); }
.on-deep .hours > div { border-color: var(--deep-line); }

/* ---------- tabla ---------- */
.table-wrap { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); overflow: hidden; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 18px 20px; border-top: 1px solid var(--line); font-size: var(--t-small); line-height: 1.55; }
.compare thead th { border-top: 0; font-family: var(--font-mono); font-size: var(--t-label); font-weight: 500; color: var(--muted); background: var(--surface); }
.compare tbody th { font-size: 1.0625rem; font-weight: 600; width: 22%; }
.compare td { color: #2c3837; }
@media (max-width: 799px) {
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .compare tr { padding: 18px 20px; border-top: 1px solid var(--line); }
  .compare tr:first-child { border-top: 0; }
  .compare tbody th { width: 100%; padding: 0 0 8px; border: 0; }
  .compare td { padding: 6px 0; border: 0; }
  .compare td::before { content: attr(data-th); display: block; font-family: var(--font-mono); font-size: var(--t-label); font-weight: 500; color: var(--muted); margin-bottom: 2px; }
}

/* ---------- preguntas ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-5);
  padding-block: 22px; cursor: pointer; list-style: none;
  font-size: var(--t-h3); font-weight: 600; letter-spacing: -0.012em; line-height: 1.3;
  transition: color var(--fast);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--action); }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; margin-top: 1px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat;
  transition: transform 240ms var(--ease), background-size 240ms var(--ease);
}
.faq details[open] summary::after { transform: rotate(180deg); background-size: 12px 1.5px, 1.5px 0; }
.faq .faq__a { padding: 0 44px 26px 0; color: #2c3837; max-width: 68ch; }
.faq .faq__a p + p { margin-top: var(--s-3); }

/* ---------- avisos ---------- */
.note {
  display: grid; grid-template-columns: 24px 1fr; gap: var(--s-4); align-items: start;
  padding: var(--s-5); border-radius: var(--r-md); background: var(--amber-soft); border: 1px solid rgba(122, 74, 0, 0.22);
  color: #3f2f0c;
}
.note svg { width: 24px; height: 24px; color: var(--amber-ink); }
.note strong { color: #2a1e04; }
.note--plain { background: var(--card); border-color: var(--line); color: var(--ink); }
.note--plain svg { color: var(--action); }

/* ---------- cabecera de página interior ---------- */
.page-head { padding-block: clamp(32px, 5vw, 64px) clamp(40px, 5vw, 72px); }
.page-head h1 { font-size: var(--t-h1-page); max-width: 18ch; }
.page-head__grid { display: grid; gap: var(--s-6); align-items: end; }
.page-head__text { display: grid; gap: var(--s-5); }
@media (min-width: 980px) { .page-head__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); } }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: var(--t-label); color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.crumbs a:hover { color: var(--action); text-decoration: underline; text-underline-offset: 3px; }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }

.toc { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.toc .label { margin-right: var(--s-3); }
.page-head__grid--stack { grid-template-columns: minmax(0, 1fr) !important; gap: var(--s-7) !important; }
.toc a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); text-decoration: none; font-size: var(--t-small); font-weight: 500;
  transition: background-color var(--fast), border-color var(--fast), color var(--fast);
}
.toc a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- prosa ---------- */
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-6); }
.prose ul { display: grid; gap: var(--s-2); }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 8px; height: 2px; background: var(--action); }
.bullets { display: grid; gap: var(--s-3); }
.bullets li { position: relative; padding-left: 26px; }
.bullets li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 10px; height: 2px; background: var(--amber); }

/* ---------- formulario ---------- */
.form { display: grid; gap: var(--s-5); }
.form__row { display: grid; gap: var(--s-5); }
@media (min-width: 620px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-size: 0.9375rem; font-weight: 500; }
.field .hint { font-size: 0.875rem; color: var(--muted); line-height: 1.45; }
.field .opt { font-weight: 400; color: var(--muted); }
.input {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); background: var(--card); font-size: 1rem; line-height: 1.4;
  transition: border-color var(--fast), box-shadow var(--fast);
}
textarea.input { min-height: 112px; resize: vertical; }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121c1e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.input:hover { border-color: var(--ink); }
.input:focus-visible { outline: 3px solid var(--action); outline-offset: 1px; border-color: var(--action); }
.input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.field__error { display: none; font-size: 0.9375rem; color: var(--danger); font-weight: 500; }
.field__error:not(:empty) { display: block; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-3); align-items: start; font-size: 0.9375rem; line-height: 1.5; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--action); }
.form__status { display: none; padding: var(--s-4) var(--s-5); border-radius: var(--r-sm); font-size: 0.9688rem; line-height: 1.5; }
.form__status:not(:empty) { display: block; }
.form__status[data-state="error"] { background: var(--danger-soft); color: #6b170f; border: 1px solid rgba(163, 38, 26, 0.3); }
.form__status[data-state="demo"] { background: var(--action-soft); color: #06343a; border: 1px solid rgba(12, 74, 82, 0.28); }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3.2vw, 40px); }

/* ---------- cierre y pie ---------- */
.cta { display: grid; gap: var(--s-6); align-items: end; }
.section--close { padding-bottom: clamp(56px, 7vw, 96px); }
main:has(> .section--close:last-child) + .site-footer { border-top: 1px solid var(--deep-line); }
.cta h2 { max-width: 16ch; }
@media (min-width: 980px) { .cta { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); } }
.cta__side { display: grid; gap: var(--s-5); }

.site-footer { background: var(--deep); color: var(--on-deep); padding-block: clamp(56px, 7vw, 96px) calc(var(--s-6) + var(--bar-h)); }
.footer__grid { display: grid; gap: var(--s-7); }
@media (min-width: 720px)  { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .footer__grid { grid-template-columns: 4fr 3fr 2.5fr 2.5fr; gap: var(--s-6); } }
.footer__col .footer__brand { color: var(--on-deep); font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.footer__col h2 { font-family: var(--font-mono); font-size: var(--t-label); font-weight: 500; letter-spacing: 0.02em; color: var(--on-deep-muted); margin-bottom: var(--s-4); }
.footer__col p, .footer__col li { color: var(--on-deep-muted); font-size: var(--t-small); line-height: 1.6; }
.footer__col a { color: var(--on-deep); text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; }
.footer__col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__col .mono { color: var(--on-deep); }
.footer__legal {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); justify-content: space-between;
  margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--deep-line);
  font-size: 0.875rem; color: var(--on-deep-muted);
}
.footer__legal a { color: var(--on-deep-muted); text-underline-offset: 3px; display: inline-flex; min-height: 32px; align-items: center; }
.footer__legal a:hover { color: var(--on-deep); }
.footer__legal ul { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-5); }

/* ---------- 404 ---------- */
.notfound { min-height: calc(100svh - var(--nav-h) - var(--bar-h)); display: grid; align-items: center; padding-block: var(--s-8); }
.notfound__code { font-family: var(--font-mono); font-size: var(--t-label); font-weight: 500; color: var(--amber-ink); }

/* ---------- animaciones de entrada ---------- */
.anim [data-enter] > * { animation: enter var(--slow) var(--ease) both; }
.anim [data-enter] > *:nth-child(2) { animation-delay: 70ms; }
.anim [data-enter] > *:nth-child(3) { animation-delay: 140ms; }
.anim [data-enter] > *:nth-child(4) { animation-delay: 210ms; }
.anim [data-enter] > *:nth-child(5) { animation-delay: 280ms; }
.anim .panel[data-enter], .anim .toc[data-enter], .anim figure[data-enter] { animation: enter 640ms var(--ease) 120ms both; }
.anim .panel[data-enter] > *, .anim .toc[data-enter] > *, .anim figure[data-enter] > * { animation: none; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.anim [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 640ms var(--ease), transform 640ms var(--ease); }
.anim [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  [data-enter], [data-enter] > *, .anim [data-reveal] { opacity: 1 !important; transform: none !important; }
}

@media print {
  .site-header, .actionbar, .mobile-menu, .skip-link { display: none !important; }
  body { padding: 0; background: #fff; }
  [data-enter], [data-enter] > *, .anim [data-reveal] { opacity: 1 !important; transform: none !important; animation: none !important; }
}
