/* archivo-vietnamese-wdth-normal */
@font-face {
  font-family: 'Archivo Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/_astro/archivo-vietnamese-wdth-normal.rJmnGBSt.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* archivo-latin-ext-wdth-normal */
@font-face {
  font-family: 'Archivo Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/_astro/archivo-latin-ext-wdth-normal.7khWdh9v.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* archivo-latin-wdth-normal */
@font-face {
  font-family: 'Archivo Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/_astro/archivo-latin-wdth-normal.DY7AcnAa.woff2) format('woff2-variations');
  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;
}/* ibm-plex-mono-cyrillic-ext-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/_astro/ibm-plex-mono-cyrillic-ext-400-normal.xuaO2J-f.woff2) format('woff2'), url(/_astro/ibm-plex-mono-cyrillic-ext-400-normal.DMdlQ8Kv.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* ibm-plex-mono-cyrillic-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/_astro/ibm-plex-mono-cyrillic-400-normal.BSMlKf0J.woff2) format('woff2'), url(/_astro/ibm-plex-mono-cyrillic-400-normal.CEL4l2ZJ.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* ibm-plex-mono-vietnamese-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/_astro/ibm-plex-mono-vietnamese-400-normal.BulugwFq.woff2) format('woff2'), url(/_astro/ibm-plex-mono-vietnamese-400-normal.DDuiU_S-.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* ibm-plex-mono-latin-ext-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/_astro/ibm-plex-mono-latin-ext-400-normal.BmRBH3aV.woff2) format('woff2'), url(/_astro/ibm-plex-mono-latin-ext-400-normal.D3D2R8hC.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ibm-plex-mono-latin-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/_astro/ibm-plex-mono-latin-400-normal.DMJ8VG8y.woff2) format('woff2'), url(/_astro/ibm-plex-mono-latin-400-normal.CvHOgSBP.woff) format('woff');
  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;
}/* ibm-plex-mono-cyrillic-ext-500-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/_astro/ibm-plex-mono-cyrillic-ext-500-normal.BqneJy0T.woff2) format('woff2'), url(/_astro/ibm-plex-mono-cyrillic-ext-500-normal.BIfNGwUT.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* ibm-plex-mono-cyrillic-500-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/_astro/ibm-plex-mono-cyrillic-500-normal.Bq9vWWag.woff2) format('woff2'), url(/_astro/ibm-plex-mono-cyrillic-500-normal.Ael50iVv.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* ibm-plex-mono-vietnamese-500-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/_astro/ibm-plex-mono-vietnamese-500-normal.DZ4AoWbu.woff2) format('woff2'), url(/_astro/ibm-plex-mono-vietnamese-500-normal.C8zxqsMH.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* ibm-plex-mono-latin-ext-500-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/_astro/ibm-plex-mono-latin-ext-500-normal.CAhNIIs5.woff2) format('woff2'), url(/_astro/ibm-plex-mono-latin-ext-500-normal.CZ70TYgx.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ibm-plex-mono-latin-500-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/_astro/ibm-plex-mono-latin-500-normal.DSY6xOcd.woff2) format('woff2'), url(/_astro/ibm-plex-mono-latin-500-normal.CB9ihrfo.woff) format('woff');
  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;
}/* ==========================================================================
   Selrach · sistema de diseño
   Tokens globales → tokens semánticos → componentes compartidos. Tema oscuro
   inmersivo por defecto; los documentos (informes, láminas, formularios) son
   papel claro (.theme-light). Lo exclusivo de la home vive en home.css.
   Breakpoints (no admiten variables): 40rem columnas · 64rem dos columnas.
   ========================================================================== */

/* 1. Tokens globales ---------------------------------------------------- */
:root {
  --c-ink-1100: #050C0B;
  --c-ink-1000: #071215;
  --c-ink-950: #0B1A1E;
  --c-ink-900: #102429;
  --c-ink-850: #17303A;
  --c-ink-800: #1F3A42;
  --c-ink-700: #2B4A52;
  --c-ink-600: #4A6870;
  --c-paper: #F6F7F4;
  --c-paper-2: #ECEFEA;
  --c-white: #FFFFFF;
  --c-gray-600: #4A5A5E;
  --c-gray-400: #7A8A8C;
  --c-line: #DDE2DE;
  --c-line-strong: #B9C3BD;

  --c-green-400: #30D860;
  --c-green-300: #5BE683;
  --c-green-700: #11733A;
  --c-green-800: #0C5C2E;
  --c-green-50: #E3F3E8;
  --c-amber-400: #F0A800;
  --c-amber-700: #9A5B00;
  --c-amber-50: #FBF0D9;
  --c-blue-400: #29B6E8;
  --c-blue-700: #17628F;

  --font-sans: "Archivo Variable", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --fs-xl: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  --fs-2xl: clamp(1.875rem, 1.35rem + 2.1vw, 3rem);
  --fs-3xl: clamp(2.375rem, 1.45rem + 3.9vw, 4.5rem);
  /* Escala de cartel: títulos de sección */
  --fs-title: clamp(2.5rem, 0.9rem + 5.4vw, 6.5rem);

  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;
  --section-y: clamp(4rem, 2.5rem + 6vw, 8rem);

  /* Rejilla amplia: aprovecha pantallas grandes; los párrafos limitan su propia medida (ch). */
  --container: 110rem;
  --gutter: clamp(1.25rem, 3.5vw, 4.5rem);
  --measure: 62ch;
  --header-h: 72px;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;
  --shadow-doc: 0 1px 0 rgb(11 26 30 / 0.04), 0 28px 56px -28px rgb(0 0 0 / 0.55);
  --shadow-card: 0 1px 2px rgb(11 26 30 / 0.06), 0 12px 32px -20px rgb(11 26 30 / 0.25);

  --dur-fast: 160ms;
  --dur-med: 320ms;
  --dur-slow: 700ms;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --shadow-lift: 0 1px 2px rgb(11 26 30 / 0.06), 0 22px 44px -24px rgb(11 26 30 / 0.45);
  --grano: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .055 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 2. Tokens semánticos -------------------------------------------------- */
.theme-light,
.report,
.form-card,
.sheet {
  --bg: var(--c-paper);
  --bg-alt: var(--c-paper-2);
  --surface: var(--c-white);
  --text: var(--c-ink-950);
  --text-muted: var(--c-gray-600);
  --border: var(--c-line);
  --border-strong: var(--c-line-strong);
  --input-border: var(--c-gray-400);
  --accent: var(--c-green-700);
  --accent-hover: var(--c-green-800);
  --on-accent: var(--c-white);
  --accent-text: var(--c-green-700);
  --control-bg: var(--c-green-50);
  --leak: var(--c-amber-700);
  --leak-bg: var(--c-amber-50);
  --data: var(--c-blue-700);
  --focus: var(--c-blue-700);
  --track: var(--c-paper-2);
  --surface-2: var(--c-paper);
  color: var(--text);
}

:root,
.theme-dark {
  --bg: var(--c-ink-1100);
  --bg-alt: var(--c-ink-900);
  --surface: #0C1B1C;
  --surface-2: #112628;
  --text: #ECF3EF;
  --text-muted: #9FB3AE;
  --border: rgb(255 255 255 / 0.09);
  --border-strong: rgb(255 255 255 / 0.22);
  --input-border: var(--c-ink-600);
  --accent: var(--c-green-400);
  --accent-hover: var(--c-green-300);
  --on-accent: var(--c-ink-950);
  --accent-text: var(--c-green-400);
  --control-bg: rgb(48 216 96 / 0.1);
  --leak: var(--c-amber-400);
  --leak-bg: rgb(240 168 0 / 0.12);
  --data: var(--c-blue-400);
  --focus: var(--c-blue-400);
  --track: rgb(255 255 255 / 0.07);
  --glow: rgb(48 216 96 / 0.16);
}
.theme-dark { background-color: var(--bg); color: var(--text); }

/* Verde profundo de marca (referencia L.E.K.): se combina con .theme-dark en bandas puntuales. */
.theme-deep {
  --bg: #0A2B20;
  --bg-alt: #0E3326;
  --surface: #0E3326;
  --text: #EDF5F0;
  --text-muted: #A9C2B6;
  --border: #1D4A39;
  --border-strong: #4F7F6C;
  background-color: var(--bg);
  color: var(--text);
}

/* 3. Base ---------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  /* Escala suave en monitores grandes: 100 % hasta ~1600 px, hasta 112,5 % a partir de ~2400 px. */
  font-size: clamp(100%, 0.6rem + 0.35vw, 112.5%);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--sp-4));
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
/* Grano de película fijo sobre todo el sitio (textura premium; no captura eventos). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  background-image: var(--grano);
  pointer-events: none;
}

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

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.12;
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }

[hidden] { display: none !important; } /* Excepción documentada: [hidden] debe ganar a cualquier display de componente. */

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100px;
  z-index: 100;
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-white);
  color: var(--c-ink-950);
  font-weight: 600;
}
.skip-link:focus { top: var(--sp-4); }

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

.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }

.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }
.num { font-variant-numeric: tabular-nums; font-stretch: 104%; font-weight: 600; }
.small { font-size: var(--fs-sm); }
.muted { color: var(--text-muted); }
.text-leak { color: var(--leak); }
.text-control { color: var(--accent-text); }
.arrow { display: inline-block; margin-left: var(--sp-2); transition: transform var(--dur-fast) var(--ease-out); }

/* 4. Tipografía de sección ---------------------------------------------- */
.eyebrow {
  margin-bottom: var(--sp-4);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.display {
  font-size: var(--fs-3xl);
  font-stretch: 104%;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

h2 {
  font-size: var(--fs-2xl);
  font-stretch: 106%;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

h3 {
  font-size: var(--fs-xl);
  font-weight: 650;
  font-stretch: 103%;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.lead {
  max-width: var(--measure);
  font-size: var(--fs-lg);
  line-height: 1.55;
  color: var(--text-muted);
}

.section-head { max-width: 52rem; margin-bottom: clamp(2rem, 1.5rem + 2.5vw, 3.5rem); }
.section-head--wide { max-width: 68rem; }
.section-head h2 + .lead { margin-top: var(--sp-5); }
/* Títulos de sección a escala de cartel en todo el sitio */
.section-head h2 {
  font-size: clamp(2.2rem, 1rem + 3.6vw, 4.6rem);
  font-weight: 760;
  font-stretch: 116%;
  line-height: 0.97;
  letter-spacing: -0.035em;
}
.imes-hero { position: relative; overflow: hidden; background: radial-gradient(50% 60% at 78% 40%, rgb(48 216 96 / 0.14), transparent 70%), var(--bg); }
.imes-hero > .container { position: relative; z-index: 1; }
.imes-hero__glass { position: absolute; z-index: 0; right: 2%; bottom: -12%; width: min(34rem, 40vw); height: auto; opacity: 0.55; rotate: -8deg; pointer-events: none; }
@media (max-width: 63.99rem) { .imes-hero__glass { display: none; } }
.display--md { font-weight: 780; font-stretch: 118%; letter-spacing: -0.04em; }
.section-head .lead + .small { margin-top: var(--sp-4); }

@media (min-width: 40rem) {
  .display { font-stretch: 112%; }
  h2 { font-stretch: 108%; }
}

/* Marcadores semánticos: fuga (ámbar) y control (verde) */
.marker {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.marker::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
}
.marker--leak { color: var(--leak); }
.marker--leak::before {
  background: var(--leak);
  border-radius: 0 50% 50% 50%;
  transform: rotate(45deg);
}
.marker--control { color: var(--accent-text); }
.marker--control::before {
  background: var(--accent);
  border-radius: 50%;
}

/* Sello de ejemplo ficticio */
.stamp {
  flex: none;
  display: inline-block;
  white-space: nowrap;
  padding: 0.2rem 0.5rem;
  border: 1.5px solid var(--leak);
  border-radius: var(--r-sm);
  color: var(--leak);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

/* Escala de medición (firma secundaria) */
.ruler {
  height: 10px;
  color: var(--border-strong);
  background:
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 10%) bottom / 100% 10px no-repeat,
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 2%) bottom / 100% 5px no-repeat;
  border-bottom: 1px solid currentColor;
}

/* 5. Botones ------------------------------------------------------------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) var(--sp-4);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: transparent;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.btn--sm { min-height: 40px; padding: 0.5rem 1rem; }
.btn--lg { min-height: 52px; padding: 0.875rem 1.5rem; font-size: var(--fs-base); }
.btn--block { width: 100%; }

.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }

.btn--ghost { border-color: var(--border-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }

.btn--dark { background: #06120D; color: #ECF3EF; }
.btn--dark:hover { background: #0E2219; }
.btn--outline { border-color: var(--text); color: var(--text); }
.btn--outline:hover { background: var(--text); color: var(--bg); }

.btn--text {
  min-height: 44px;
  padding-inline: 0;
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.25em;
}
.btn--text:hover { text-decoration-color: currentColor; }
.btn--text:hover .arrow,
.symptom__link:hover .arrow,
.solution__link:hover .arrow { transform: translateX(3px); }

/* 6. Barra de prototipo, cabecera y navegación -------------------------- */
/* Alto de la barra mientras exista: el hero lo descuenta para caber en la primera pantalla */
:root:has(.demo-bar) { --demo-h: calc(2 * var(--sp-2) + 0.75rem * 1.4); }
.demo-bar {
  padding-block: var(--sp-2);
  background: var(--c-ink-1000);
  color: #C9D6D3;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.4;
}
.demo-bar .container { display: flex; align-items: center; gap: var(--sp-2); }
.demo-bar__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-amber-400);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
}
/* Cabecera de vidrio: deja ver la escena al hacer scroll */
.site-header.theme-dark { background-color: rgb(5 12 11 / 0.72); backdrop-filter: blur(16px) saturate(140%); }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  min-height: var(--header-h);
}
.site-header__logo { flex: none; margin-right: auto; }
.site-header__logo img { width: auto; height: 36px; }
.site-header__cta { display: none; }

.site-nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: none;
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
}
.site-nav__toggle-icon,
.site-nav__toggle-icon::before,
.site-nav__toggle-icon::after {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast);
}
.site-nav__toggle-icon { position: relative; }
.site-nav__toggle-icon::before,
.site-nav__toggle-icon::after { content: ""; position: absolute; left: 0; }
.site-nav__toggle-icon::before { top: -5px; }
.site-nav__toggle-icon::after { top: 5px; }
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-icon { background: transparent; }
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-icon::before { transform: translateY(5px) rotate(45deg); }
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-icon::after { transform: translateY(-5px) rotate(-45deg); }

.site-nav__list {
  display: none;
  position: absolute;
  inset: 100% 0 auto 0;
  margin: 0;
  padding: var(--sp-3) var(--gutter) var(--sp-6);
  list-style: none;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-nav__toggle[aria-expanded="true"] + .site-nav__list { display: block; }
.site-nav__list a:not(.btn) {
  display: block;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-lg);
  font-weight: 600;
  text-decoration: none;
}
.site-nav__list a[aria-current="page"] { color: var(--accent-text); }
.site-nav__cta-mobile { margin-top: var(--sp-5); }
.site-nav__cta-mobile .btn { width: 100%; }

@media (min-width: 40rem) {
  .site-header__logo img { height: 40px; }
  .site-header__cta { display: inline-flex; }
  .site-nav__cta-mobile { display: none; }
}

@media (min-width: 64rem) {
  .site-nav__toggle { display: none; }
  .site-nav__list {
    display: flex;
    position: static;
    gap: var(--sp-6);
    padding: 0;
    background: none;
    border: 0;
  }
  .site-nav__list a:not(.btn) {
    padding: var(--sp-2) 0;
    border: 0;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--dur-fast);
  }
  .site-nav__list a:not(.btn):hover,
  .site-nav__list a[aria-current="page"] { color: var(--text); }
  .site-nav__list a[aria-current="page"] { box-shadow: 0 2px 0 var(--accent); }
}

/* 7. Hero ------------------------------------------------------------------ */
.hero { padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(4rem, 3rem + 5vw, 7rem); }
.hero__grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem); align-items: center; }
.hero__copy .display { margin-bottom: var(--sp-5); }
.hero__copy .lead { margin-bottom: var(--sp-6); }
.hero__note {
  margin-top: var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.hero__note .num { color: var(--text); }

@media (min-width: 64rem) {
  .hero__grid { grid-template-columns: 1fr 1.02fr; }
}

.toggle {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
}
.toggle__btn {
  min-height: 36px;
  padding: 0.375rem 0.875rem;
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--dur-med) var(--ease-out), color var(--dur-med) var(--ease-out);
}
.toggle__btn:hover { color: var(--text); }
[data-state="hoy"] .toggle__btn[aria-pressed="true"] { background: var(--leak-bg); color: var(--leak); }
[data-state="sistema"] .toggle__btn[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }

[data-state="hoy"] .is-sistema,
[data-state="sistema"] .is-hoy { display: none; }

/* 9. Selector de necesidades -------------------------------------------- */
.selector-layout { display: grid; gap: var(--sp-6); }
@media (min-width: 64rem) {
  .selector-layout { grid-template-columns: 0.8fr 1.2fr; gap: var(--sp-8); align-items: start; }
  .selector-layout .section-head { position: sticky; top: calc(var(--header-h) + var(--sp-6)); }
}

.selector {
  padding: clamp(1.25rem, 0.75rem + 2.5vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.selector__progress {
  height: 4px;
  margin-bottom: var(--sp-6);
  border-radius: 2px;
  background: var(--track);
  overflow: hidden;
}
.selector__progress-bar {
  display: block;
  width: var(--p, 33.333%);
  height: 100%;
  background: var(--accent);
  transition: width var(--dur-med) var(--ease-out);
}
.selector__step { min-width: 0; margin: 0; padding: 0; border: 0; }
.selector__step legend { display: block; width: 100%; margin-bottom: var(--sp-5); padding: 0; }
.selector__count {
  display: block;
  margin-bottom: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.selector__q {
  display: block;
  font-size: var(--fs-xl);
  font-weight: 650;
  font-stretch: 103%;
  line-height: 1.2;
}

.options { display: grid; gap: var(--sp-3); }
@media (min-width: 40rem) {
  .options { grid-template-columns: 1fr 1fr; }
  .option--wide { grid-column: 1 / -1; }
}

.option { position: relative; display: block; cursor: pointer; }
.option input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.option__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  height: 100%;
  padding: var(--sp-4) 3rem var(--sp-4) var(--sp-4);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  transition: border-color var(--dur-fast), background-color var(--dur-fast), box-shadow var(--dur-fast);
}
.option__body::after {
  content: "";
  position: absolute;
  top: 50%;
  right: var(--sp-4);
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border: 1.5px solid var(--input-border);
  border-radius: 50%;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.option__title { font-weight: 600; }
.option__desc { font-size: var(--fs-sm); color: var(--text-muted); }
.option:hover .option__body { border-color: var(--text); }
.option input:checked + .option__body {
  border-color: var(--accent);
  background: var(--control-bg);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.option input:checked + .option__body::after {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 9px var(--accent);
}
.option input:focus-visible + .option__body { outline: 3px solid var(--focus); outline-offset: 2px; }

.selector__error {
  margin-top: var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--leak);
}
.selector__nav {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}
.selector__nav [data-selector-next] { margin-left: auto; }

.selector__result { animation: fade-up var(--dur-med) var(--ease-out); }
.selector__result:focus { outline: none; }
.selector__result-title { margin: var(--sp-2) 0 var(--sp-3); font-size: var(--fs-2xl); font-stretch: 106%; }
.selector__result > p:not(.marker):not(.small) { max-width: 52ch; color: var(--text-muted); font-size: var(--fs-lg); }
.selector__result .actions { margin-block: var(--sp-6) var(--sp-5); }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* 11. Banda IMES® y muestra de informe ---------------------------------- */

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-2) var(--sp-5);
  margin-block: var(--sp-6) var(--sp-5);
}
.price { display: flex; align-items: baseline; gap: var(--sp-2); }
.price__amount { font-size: clamp(2.25rem, 1.8rem + 1.5vw, 3rem); font-weight: 500; line-height: 1; }
.price__tax { color: var(--text-muted); }
.price-row__includes { font-size: var(--fs-sm); color: var(--text-muted); }

.report {
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-doc);
}
.report__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
}
.report__title {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.report__score {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--sp-5);
  padding-block: var(--sp-5);
  border-bottom: 1px solid var(--border);
}
.report__score-num { font-size: var(--fs-lg); color: var(--text-muted); line-height: 1; }
.report__score-num span { font-size: clamp(2.75rem, 2.2rem + 2vw, 3.75rem); color: var(--text); }
.report__level { margin-bottom: var(--sp-3); font-size: var(--fs-sm); font-weight: 600; }

.gauge {
  position: relative;
  height: 12px;
  color: var(--border-strong);
  background:
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 10%) bottom / 100% 12px no-repeat,
    repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 2%) bottom / 100% 5px no-repeat;
  border-bottom: 1px solid currentColor;
}
.gauge::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: calc(var(--score) * 1%);
  height: 4px;
  background: var(--leak);
}
.gauge__mark {
  position: absolute;
  left: calc(var(--score) * 1%);
  top: -6px;
  bottom: -1px;
  width: 2px;
  margin-left: -1px;
  background: var(--text);
}
.gauge__labels {
  display: flex;
  justify-content: space-between;
  margin-top: var(--sp-1);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.report__bars { margin: 0; padding: var(--sp-4) 0; list-style: none; }
.report__bars li {
  display: grid;
  grid-template-columns: minmax(7rem, 9rem) 1fr 1.5rem;
  align-items: center;
  gap: var(--sp-3);
  padding-block: 0.3rem;
  font-size: var(--fs-sm);
}
.report__bars .mono { text-align: right; }
.bar { position: relative; height: 6px; border-radius: 1px; background: var(--track); }
.bar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--s) * 10%);
  border-radius: 1px;
  background: var(--data);
}
.report__bars .is-low .bar::before { background: var(--leak); }
.report__foot { padding-top: var(--sp-4); border-top: 1px solid var(--border); font-weight: 600; }

/* 13. Contrato de transparencia ----------------------------------------- */
.contract { display: grid; gap: var(--sp-6) var(--sp-5); padding: 0; list-style: none; }
@media (min-width: 40rem) { .contract { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .contract { grid-template-columns: repeat(4, 1fr); } }
.clause { display: flex; flex-direction: column; gap: var(--sp-3); padding-top: var(--sp-5); border-top: 3px solid var(--data); }
.clause--control { border-top-color: var(--accent); }
.clause--leak { border-top-color: var(--leak); }
.clause__num { font-size: var(--fs-sm); color: var(--text-muted); }
.clause h3 { font-size: var(--fs-lg); text-wrap: pretty; }
.clause p:last-child { color: var(--text-muted); }
@supports (grid-template-rows: subgrid) {
  .clause { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: var(--sp-3); }
}
.statement {
  max-width: 24ch;
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  font-size: var(--fs-2xl);
  font-weight: 700;
  font-stretch: 108%;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
@media (min-width: 40rem) { .statement__turn { display: block; } }

/* 16. Cierre, contacto y formularios ------------------------------------ */
.closing__grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem); align-items: start; }
@media (min-width: 64rem) { .closing__grid { grid-template-columns: 1fr 1fr; } }
.closing__copy h2 + .lead { margin-top: var(--sp-5); }
.closing__copy .actions { margin-top: var(--sp-6); }

.contact-list { margin-top: var(--sp-7); padding: 0; list-style: none; border-bottom: 1px solid var(--border); }
.contact-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-1) var(--sp-4);
  padding-block: var(--sp-3);
  border-top: 1px solid var(--border);
}
.contact-list__label {
  width: 6.5rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-list a { text-underline-offset: 0.2em; }

.form-card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-doc);
}
.form__title { margin-bottom: var(--sp-2); }
.form__intro { margin-bottom: var(--sp-5); color: var(--text-muted); }

.field { margin-bottom: var(--sp-4); }
.field > label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--input-border);
  border-radius: var(--r-sm);
  background: var(--c-white);
  color: var(--c-ink-950);
  font-size: var(--fs-base);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field input::placeholder { color: #66777A; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.field [aria-invalid="true"] { border-color: var(--leak); box-shadow: inset 0 0 0 1px var(--leak); }
.field__hint { margin-top: 0.375rem; font-size: var(--fs-xs); color: var(--text-muted); }
.field__error {
  display: flex;
  gap: var(--sp-2);
  margin-top: 0.375rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--leak);
}
.field__error::before {
  content: "!";
  flex: none;
  display: grid;
  place-items: center;
  width: 1.25em;
  height: 1.25em;
  margin-top: 0.1em;
  border-radius: 50%;
  background: var(--leak);
  color: var(--c-white);
  font-size: 0.8em;
}
.field--check {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--sp-1) var(--sp-3);
  margin-block: var(--sp-5);
}
.field--check input { width: 20px; height: 20px; margin: 0.15em 0 0; accent-color: var(--accent); }
.field--check label { font-size: var(--fs-sm); font-weight: 400; color: var(--text-muted); }
.field--check label a { color: var(--text); }
.field--check .field__error { grid-column: 2; }

.form-success { animation: fade-up var(--dur-med) var(--ease-out); }
.form-success:focus { outline: none; }
.form-success h3 { margin: var(--sp-2) 0 var(--sp-3); }
.form-success p:not(.marker):not(.small) { color: var(--text-muted); }
.form-success .small { margin-top: var(--sp-4); }

/* 17. Pie ------------------------------------------------------------------ */
.site-footer { background: var(--c-ink-1000); padding-top: var(--sp-8); }
.site-footer__grid { display: grid; gap: var(--sp-7); padding-bottom: var(--sp-7); }
@media (min-width: 64rem) { .site-footer__grid { grid-template-columns: 1fr 2fr; } }
.site-footer__brand img { width: auto; height: 40px; }
.site-footer__brand p { margin-top: var(--sp-4); color: var(--text-muted); }
.site-footer__nav { display: grid; gap: var(--sp-6); }
@media (min-width: 40rem) { .site-footer__nav { grid-template-columns: repeat(3, 1fr); } }
.site-footer__label {
  margin-bottom: var(--sp-3);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.site-footer ul { padding: 0; list-style: none; }
.site-footer li a {
  display: inline-block;
  padding-block: 0.4rem;
  font-size: var(--fs-sm);
  text-decoration: none;
  color: var(--text);
}
.site-footer li a:hover { color: var(--accent-text); }
.site-footer__bottom {
  padding-block: var(--sp-5);
  margin: 0;
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* 18. Landing del Diagnóstico IMES® ------------------------------------- */
.breadcrumb { margin-bottom: var(--sp-5); font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--sp-2); padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: var(--sp-2); }
.breadcrumb a { display: inline-block; padding-block: 0.25rem; color: var(--text-muted); text-underline-offset: 0.2em; }
.breadcrumb a:hover { color: var(--text); }

.display--md { font-size: clamp(2rem, 1.45rem + 2.3vw, 3.25rem); line-height: 1.06; }
.hero .price-row { margin-block: var(--sp-6) var(--sp-5); }

.report__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  margin: 0;
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--border);
}
.report__meta dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.report__meta dd { margin: 0; font-size: var(--fs-sm); font-weight: 600; line-height: 1.35; }
.report__leaks { padding-block: var(--sp-4); }
.report__leaks ol { display: grid; gap: var(--sp-1); margin: 0; padding-left: 1.25rem; font-size: var(--fs-sm); }
.report__foot .marker { margin: 0; }

/* Para quién sí / para quién no */
.fit { display: grid; gap: var(--sp-7); }
@media (min-width: 64rem) { .fit { grid-template-columns: 1fr 1fr; gap: var(--sp-8); } }
.fit__title {
  margin-bottom: var(--sp-2);
  padding-bottom: var(--sp-3);
  border-bottom: 2px solid currentColor;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fit__col--yes .fit__title { color: var(--accent-text); }
.fit__col--no .fit__title { color: var(--leak); }
.fit ul { padding: 0; list-style: none; }
.fit li { position: relative; padding: var(--sp-4) 0 var(--sp-4) 2rem; border-bottom: 1px solid var(--border); }
.fit li::before {
  position: absolute;
  top: var(--sp-4);
  left: 0;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 0.2em;
  border-radius: 50%;
  color: var(--c-white);
  font-size: 0.7rem;
  font-weight: 700;
}
.fit__col--yes li::before { content: "✓"; background: var(--accent); }
.fit__col--no li::before { content: "✕"; background: var(--leak); }
.fit a { color: var(--accent-text); }

/* Las 10 áreas con descripción */
.areas-detail { display: grid; column-gap: var(--sp-7); padding: 0; list-style: none; counter-reset: area; }
@media (min-width: 40rem) { .areas-detail { grid-template-columns: 1fr 1fr; } }
.areas-detail li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  column-gap: var(--sp-3);
  padding-block: var(--sp-4);
  border-top: 1px solid var(--border-strong);
  counter-increment: area;
}
.areas-detail li::before {
  content: counter(area, decimal-leading-zero);
  grid-row: span 2;
  padding-top: 0.2em;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--accent-text);
}
.areas-detail h3 { font-size: var(--fs-lg); }
.areas-detail p { margin-top: var(--sp-1); font-size: var(--fs-sm); color: var(--text-muted); }

/* Qué recibes: índice de informe con líneas de puntos */
.deliver { display: grid; gap: var(--sp-6); }
@media (min-width: 64rem) {
  .deliver { grid-template-columns: 0.8fr 1.2fr; gap: var(--sp-8); align-items: start; }
  .deliver .section-head { margin-bottom: 0; }
}
.toc { padding: 0; list-style: none; border-top: 2px solid var(--text); counter-reset: toc; }
.toc__item { padding-block: var(--sp-5); border-bottom: 1px solid var(--border); counter-increment: toc; }
.toc__line { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-1) var(--sp-3); }
.toc__line::before {
  content: counter(toc, decimal-leading-zero);
  width: 1.75rem;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.toc__title { font-size: var(--fs-lg); font-weight: 650; font-stretch: 103%; }
.toc__leader { display: none; }
.toc__q { flex-basis: 100%; padding-left: calc(1.75rem + var(--sp-3)); font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--accent-text); }
.toc__desc { margin-top: var(--sp-2); padding-left: calc(1.75rem + var(--sp-3)); color: var(--text-muted); }
@media (min-width: 40rem) {
  .toc__line { flex-wrap: nowrap; }
  .toc__leader { display: block; flex: 1; min-width: 2rem; border-bottom: 2px dotted var(--border-strong); }
  .toc__q { flex-basis: auto; padding-left: 0; white-space: nowrap; }
}

/* Visor de la muestra */
.viewer__tabs {
  display: flex;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-2);
  overflow-x: auto;
  scrollbar-width: thin;
}
.viewer__tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: none;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.viewer__tab:hover { border-color: var(--text); color: var(--text); }
.viewer__tab[aria-selected="true"] { border-color: var(--text); background: var(--text); color: var(--bg); }
.viewer__tab .mono { font-weight: 400; }
.viewer__actions { margin-top: var(--sp-6); }

.sheet {
  padding: clamp(1.25rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-doc);
}
@media (min-width: 64rem) { .sheet { min-height: 25rem; } }
.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
}
.sheet__summary { display: grid; gap: var(--sp-6); }
.sheet__summary .report__score { padding-top: 0; }
@media (min-width: 64rem) {
  .sheet__summary { grid-template-columns: 1fr 1.2fr; gap: var(--sp-8); align-items: start; }
  .sheet__summary .report__score { border-bottom: 0; }
}
.sheet__kicker {
  margin-bottom: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.sheet__text .marker { margin-top: var(--sp-5); }
.sheet__text p:not(.marker):not(.sheet__kicker) { max-width: 52ch; }
.report__bars--2col { padding-top: 0; }
@media (min-width: 64rem) {
  .report__bars--2col { columns: 2; column-gap: var(--sp-8); }
  .report__bars--2col li { break-inside: avoid; }
}
.sheet__legend { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); margin-top: var(--sp-3); font-size: var(--fs-xs); color: var(--text-muted); }
.sheet__legend-item { display: inline-flex; align-items: center; gap: var(--sp-2); }
.sheet__legend-item::before { content: ""; width: 16px; height: 6px; background: var(--data); }
.sheet__legend-item--low::before { background: var(--leak); }

.leaks { display: grid; gap: var(--sp-4); padding: 0; list-style: none; }
@media (min-width: 64rem) { .leaks { grid-template-columns: repeat(3, 1fr); } }
.leak {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  border: 1px solid var(--border);
  border-top: 3px solid var(--leak);
  border-radius: var(--r-sm);
}
.leak__area { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--leak); }
.leak__finding { font-weight: 600; line-height: 1.45; }
.leak__meta { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: auto; font-size: var(--fs-sm); color: var(--text-muted); }
.leak__meta strong { color: var(--text); }

.plan-9 { display: grid; gap: var(--sp-6); padding: 0; list-style: none; }
.plan-9 > li { display: flex; flex-direction: column; gap: var(--sp-3); }
@media (min-width: 64rem) {
  .plan-9 { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .plan-9 > li { padding-right: var(--sp-5); }
  .plan-9 > li + li { padding-left: var(--sp-5); border-left: 1px solid var(--border); }
}
.plan-9__when { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--accent-text); }
.plan-9__when::before { content: ""; width: 8px; height: 8px; background: var(--accent); }
.plan-9 ul { display: grid; gap: var(--sp-2); margin: 0; padding-left: 1.1rem; }
.plan-9__kpi { margin-top: auto; padding-top: var(--sp-3); border-top: 1px dashed var(--border-strong); font-size: var(--fs-sm); font-weight: 600; }
.plan-9__kpi .mono { display: block; font-size: 0.75rem; font-weight: 400; letter-spacing: 0.06em; color: var(--text-muted); }

/* Cómo funciona: cada paso marca su tramo sobre una regla con una marca por día (--dias) */
.steps { display: grid; gap: var(--sp-6) var(--sp-5); padding: 0; list-style: none; }
@media (min-width: 40rem) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { display: flex; flex-direction: column; gap: var(--sp-3); }
@supports (grid-template-rows: subgrid) {
  .step { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: var(--sp-3); }
  .step > * { align-self: start; }
}
.step__when { font-size: var(--fs-sm); color: var(--accent-text); }
.step__bar {
  position: relative;
  display: block;
  height: 10px;
  color: var(--border-strong);
  background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px calc(100% / var(--dias, 10))) bottom / 100% 6px no-repeat;
  border-bottom: 1px solid currentColor;
  box-shadow: inset -1px 0 0 currentColor;
}
.step__bar::before {
  content: "";
  position: absolute;
  bottom: -1px;
  left: calc(var(--from) / var(--dias, 10) * 100%);
  width: calc((var(--to) - var(--from)) / var(--dias, 10) * 100%);
  height: 6px;
  background: var(--data);
}
.step:last-child .step__bar::before { background: var(--accent); }
.step > p:last-child { color: var(--text-muted); }

.statement--sm { max-width: 32ch; font-size: var(--fs-xl); }

/* Preguntas frecuentes */
.faq-layout { display: grid; gap: var(--sp-5); }
@media (min-width: 64rem) {
  .faq-layout { grid-template-columns: 0.8fr 1.2fr; gap: var(--sp-8); align-items: start; }
  .faq-layout .section-head { margin-bottom: 0; }
}
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 44px;
  padding-block: var(--sp-4);
  font-size: var(--fs-lg);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-size: 1.375rem;
  line-height: 1;
  color: var(--accent-text);
  transition: transform var(--dur-fast) var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 60ch; padding-bottom: var(--sp-5); color: var(--text-muted); }
.faq a { color: var(--accent-text); }

/* Resumen junto al formulario */
.summary { margin-top: var(--sp-6); padding: var(--sp-5); border: 1px solid var(--border); border-radius: var(--r-md); }
.summary__list { display: grid; gap: var(--sp-2); margin-top: var(--sp-4); padding: 0; list-style: none; }
.summary__list li { display: flex; gap: var(--sp-3); }
.summary__list li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 0.65em; background: var(--accent); }
.field__optional { font-weight: 400; color: var(--text-muted); }

/* Barra de solicitud fija en móvil (oculta mientras se ve el hero, el formulario o el pie) */
.sticky-cta {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--gutter);
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
  animation: fade-up var(--dur-med) var(--ease-out);
}
@media (min-width: 64rem) { .sticky-cta { display: none; } }

/* 21. Fotografía en duotono de marca ----------------------------------- */
/* Todas las fotos reciben el mismo tratamiento (como TAB con su azul): se ven como un sistema
   y no como fotos de banco, y la fotografía real que llegue después heredará el mismo look. */
.duo { position: relative; overflow: hidden; isolation: isolate; background: var(--c-ink-950); }
.duo picture { display: block; width: 100%; height: 100%; }
.duo img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); }
.duo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--duo-tinta, var(--c-green-700));
  mix-blend-mode: color;
  opacity: var(--duo-fuerza, 0.45);
}
.duo--dark img { opacity: 0.55; }
.duo--leak { --duo-tinta: var(--c-amber-700); --duo-fuerza: 0.4; }
.duo--light { --duo-fuerza: 0.32; }

/* 25. Utilidades --------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 27. Tarjetas con luz que sigue al puntero ------------------------------ */
/* La tarjeta es siempre opaca y de borde neutro. La luz son dos capas que solo existen mientras
   el puntero está encima y se apagan con un fundido al salir: así nunca queda «pegada» en la
   última posición. ::before = filo de luz de 1px en el borde; ::after = reflejo interior tenue.
   Ambas van detrás del contenido (z-index -1 dentro de isolation). */
.fx-card {
  --fx-bg: var(--surface);
  --fx-edge: var(--accent);
  --fx-glow: rgb(48 216 96 / 0.05);
  position: relative;
  isolation: isolate;
  border: 1px solid var(--border);
  background: var(--fx-bg);
  transition: translate var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
}
.fx-card::before,
.fx-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-out);
}
/* El filo va por dentro del borde (inset 0): las tarjetas con overflow hidden lo recortarían fuera. */
.fx-card::before {
  inset: 0;
  padding: 1px;
  background: radial-gradient(16rem circle at var(--mx, 50%) var(--my, 0%), var(--fx-edge), transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
  mask-clip: content-box, border-box;
  mask-composite: exclude;
}
.fx-card::after {
  inset: 0;
  background: radial-gradient(22rem circle at var(--mx, 50%) var(--my, 0%), var(--fx-glow), transparent 65%);
}
.fx-card:hover::before { opacity: 0.85; }
.fx-card:hover::after { opacity: 1; }
.fx-card:hover { translate: 0 -2px; box-shadow: var(--shadow-lift); }
.selector.fx-card:hover { translate: none; }

/* Informes con inclinación 3D y reflejo */
.tilt {
  position: relative;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s var(--ease-out);
}
.tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(32rem circle at var(--gx, 50%) var(--gy, 0%), rgb(255 255 255 / 0.5), transparent 45%);
  mix-blend-mode: soft-light;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}
.tilt:hover::after { opacity: 1; }

/* 28. Detalles de acabado -------------------------------------------------- */
/* Subrayado con la regla de medición en titulares clave */
.hl {
  --hl: var(--accent);
  padding-bottom: 0.1em;
  background-image:
    linear-gradient(var(--hl), var(--hl)),
    repeating-linear-gradient(90deg, var(--hl) 0 1.5px, transparent 1.5px 9px);
  background-repeat: no-repeat;
  background-size: 100% 2px, 100% 7px;
  background-position: 0 calc(100% - 0.02em), 0 calc(100% - 0.02em - 2px);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Medidor de lectura bajo la cabecera */
.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--c-green-400);
  transform: scaleX(0);
  transform-origin: left;
}

/* Botones: brillo interior, flecha que avanza, pulsación */
.btn { transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), translate var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.btn--primary { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), 0 12px 26px -16px var(--accent); }
.btn--primary::after { content: "→"; display: inline-block; transition: transform var(--dur-fast) var(--ease-out); }
.btn--primary:hover { translate: 0 -1px; }
.btn--primary:hover::after { transform: translateX(3px); }
.btn:active { translate: 0 1px; }

/* 19. Aviso de prototipo (toast) ---------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: var(--sp-5);
  z-index: 100;
  display: flex;
  gap: var(--sp-3);
  align-items: baseline;
  max-width: calc(100% - 2 * var(--sp-4));
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--c-ink-700);
  border-radius: var(--r-sm);
  background: var(--c-ink-950);
  color: #E8EFEC;
  font-size: var(--fs-sm);
  box-shadow: var(--shadow-doc);
  transform: translateX(-50%);
  animation: fade-up var(--dur-med) var(--ease-out);
}
.toast__label {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-amber-400);
}

/* 20. Movimiento reducido ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important; /* Excepción documentada: anula toda animación por preferencia del usuario. */
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
