/* self-hosted fonts (restored after polish strip) */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/IBMPlexMono-400-italic-latin-ext.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/IBMPlexMono-400-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/IBMPlexMono-600-italic-latin-ext.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/IBMPlexMono-600-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/IBMPlexMono-400-normal-latin-ext.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/IBMPlexMono-400-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/IBMPlexMono-500-normal-latin-ext.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/IBMPlexMono-500-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/IBMPlexMono-600-normal-latin-ext.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/IBMPlexMono-600-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/IBMPlexMono-700-normal-latin-ext.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/IBMPlexMono-700-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/InterTight-400-italic-latin-ext.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/InterTight-400-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/InterTight-600-italic-latin-ext.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/InterTight-600-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/InterTight-400-normal-latin-ext.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/InterTight-400-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/InterTight-500-normal-latin-ext.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/InterTight-500-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/InterTight-600-normal-latin-ext.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/InterTight-600-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/InterTight-700-normal-latin-ext.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/InterTight-700-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/SpaceGrotesk-400-normal-latin-ext.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/SpaceGrotesk-400-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/SpaceGrotesk-500-normal-latin-ext.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/SpaceGrotesk-500-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/SpaceGrotesk-600-normal-latin-ext.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/SpaceGrotesk-600-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/SpaceGrotesk-700-normal-latin-ext.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/SpaceGrotesk-700-normal-latin.woff2) format('woff2');
  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;
}

/* ==========================================================================
   CALIBRA CAFÉ — Servicio técnico de barra · Cali
   Hoja de estilos única. Género: technical-spec.
   ========================================================================== */

:root {
  interpolate-size: allow-keywords;

  --bg: #F2F4F3;
  --surface: #E3E7E5;
  --surface-2: #EAEDEB;
  --surface-3: #D6DBD8;
  --ink: #1C2321;
  --ink-soft: #4A544F;
  --ink-faint: #7C8783;
  --accent: #35704F;
  --accent-deep: #244C36;
  --accent-2: #C1440E;
  --accent-2-soft: #E8683024;
  --line: #C7CECA;
  --line-strong: #9CA6A1;
  --line-hair: #D9DEDB;

  --header-h: 74px;
  --maxw: 1180px;
  --pad: clamp(16px, 4vw, 32px);

  --font-head: "Space Grotesk", Helvetica, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter Tight", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-2: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(15.5px, .35vw + 14.6px, 17px);
  line-height: 1.62;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Textura de plano técnico: retícula muy tenue sobre el fondo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(28, 35, 33, .028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(28, 35, 33, .028) 1px, transparent 1px);
  background-size: 44px 44px;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -.008em;
  line-height: 1.06;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.35rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.75rem); letter-spacing: -.014em; }
h3 { font-size: clamp(1.15rem, 1.5vw, 1.42rem); }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; transition: color 200ms var(--ease-2); }
a:hover { color: var(--accent-2); }

strong { font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection { background: var(--accent); color: var(--bg); }

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

.long { word-break: break-word; overflow-wrap: anywhere; }

/* ---------- Layout base --------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
  position: relative;
  min-width: 0;
}

/* Líneas guía de rejilla 12 columnas, visibles y tenues */
.gridlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.gridlines::before {
  content: "";
  display: block;
  height: 100%;
  background-image: repeating-linear-gradient(
    to right,
    var(--line-hair) 0 1px,
    transparent 1px calc(100% / 12)
  );
  background-size: 100% 100%;
  opacity: .85;
}
@media (max-width: 767px) {
  .gridlines::before {
    background-image: repeating-linear-gradient(
      to right, var(--line-hair) 0 1px, transparent 1px calc(100% / 4));
  }
}

main { padding-top: var(--header-h); position: relative; z-index: 1; }

section { position: relative; }

/* El header fijo no debe tapar el inicio de una sección enlazada por ancla */
main section[id],
#main { scroll-margin-top: calc(var(--header-h) + 12px); }

.section {
  padding-block: clamp(60px, 8vw, 116px);
  border-top: 1px solid var(--line);
  position: relative;
}
.section--flush { border-top: 0; }

/* Escala técnica: marcas de medición en los bordes de sección */
.section::before,
.section::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 9px;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to right, var(--line-strong) 0 1px, transparent 1px 26px);
  opacity: .5;
}
.section::before { top: 0; }
.section::after { bottom: 0; transform: scaleY(-1); opacity: .22; }
.section--flush::before { display: none; }

/* Código de servicio tipo "EX-04" */
.sect-code {
  position: absolute;
  top: 18px;
  right: var(--pad);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  z-index: 2;
}
.sect-code::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--line-strong);
  vertical-align: middle;
  margin-right: 9px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border: 1.5px solid var(--accent-2);
  flex: none;
  transform: rotate(45deg);
}

.lede {
  font-size: clamp(1.02rem, .5vw + .92rem, 1.2rem);
  color: var(--ink-soft);
  max-width: 62ch;
}

.section-head { max-width: 720px; margin-bottom: clamp(34px, 4vw, 56px); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: .8rem;
}
.skip-link:focus {
  left: 8px; top: 8px;
  color: var(--bg);
}

/* ---------- Header -------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1080;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(242, 244, 243, 0.92);
  border-bottom: 1px solid var(--line);
  transition: background 240ms ease, box-shadow 240ms ease, height 240ms ease;
}
.site-header.scrolled {
  background: rgba(242, 244, 243, .985);
  box-shadow: 0 8px 24px -16px rgba(0, 0, 0, .18);
  height: 64px;
}
.header-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  min-width: 0;
}
.brand:hover { color: var(--ink); }
.brand svg { flex: none; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.03rem;
  letter-spacing: -.02em;
  line-height: 1;
  white-space: nowrap;
}
.brand-name span { color: var(--accent); }
.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .56rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 3px;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: clamp(14px, 1.6vw, 26px);
}
.nav-desktop a {
  position: relative;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .74rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 0;
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--accent-2);
  transition: right 240ms var(--ease);
}
.nav-desktop a:hover { color: var(--ink); }
.nav-desktop a:hover::after { right: 0; }
.nav-desktop a.is-active { color: var(--ink); }
.nav-desktop a.is-active::after { right: 0; background: var(--accent); }

.nav-desktop .nav-cta::after { display: none; }
.nav-cta {
  background: var(--ink);
  color: var(--bg) !important;
  padding: 11px 18px !important;
  border: 1px solid var(--ink);
  transition: background 200ms var(--ease-2), color 200ms var(--ease-2), transform 200ms var(--ease);
}
.nav-desktop .nav-cta:hover,
.nav-desktop .nav-cta:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg) !important;
  transform: translateY(-2px);
}

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none !important; }
}

.nav-toggle {
  position: relative;
  z-index: 1100;
  width: 44px; height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 19px; height: 1.6px;
  background: var(--ink);
  transition: transform 260ms var(--ease), opacity 160ms linear;
}
.nav-toggle[aria-expanded="true"] { background: var(--bg); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* ---------- Drawer -------------------------------------------------------- */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 240ms var(--ease-2), visibility 240ms;
  z-index: 1040;
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(360px, 92vw);
  background: var(--bg);
  border-left: 1px solid var(--line-strong);
  transform: translateX(100%);
  transition: transform 320ms var(--ease);
  z-index: 1050;
  padding: calc(var(--header-h) + 22px) 26px 30px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.drawer.is-open { transform: translateX(0); }
.drawer .dr-label {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -.012em;
  color: var(--ink);
  padding: 15px 0;
  border-bottom: 1px solid var(--line-hair);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.drawer nav a .n {
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--ink-faint);
}
.drawer nav a:hover { color: var(--accent); }
.drawer nav a.is-active { color: var(--accent); }
.drawer-foot {
  margin-top: auto;
  padding-top: 26px;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--ink-soft);
  line-height: 1.9;
}
.drawer-foot a { color: var(--ink); }
.drawer-foot a:hover { color: var(--accent); }

/* ---------- Botones ------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 15px 24px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 220ms var(--ease-2), color 220ms var(--ease-2),
              border-color 220ms var(--ease-2), transform 220ms var(--ease),
              box-shadow 220ms var(--ease);
  text-align: center;
}
.btn svg { transition: transform 260ms var(--ease); flex: none; }

.btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -16px rgba(11, 110, 153, .8);
}
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn-accent { background: var(--accent-2); color: #FFF6F1; border-color: var(--accent-2); }
.btn-accent:hover, .btn-accent:focus-visible {
  background: var(--ink); color: #FFF6F1; border-color: var(--ink);
  transform: translateY(-2px);
}

.btn-block { width: 100%; }
@media (min-width: 640px) { .btn-auto { width: auto; } }

/* ---------- Hero ---------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  background: #171C1A;
  color: #EAEDEB;
  padding-block: clamp(46px, 6vw, 96px) clamp(58px, 8vw, 122px);
  border-bottom: 1px solid var(--ink);
  overflow: hidden;
}
/* Retícula de plano + tick de medición, enmascarada hacia la esquina */
.hero-bp {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(125% 105% at 82% 4%, #000 26%, transparent 76%);
          mask-image: radial-gradient(125% 105% at 82% 4%, #000 26%, transparent 76%);
}
/* Halo verde planta de café */
.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  top: -22%; right: -12%;
  width: 62vw; height: 62vw;
  max-width: 780px; max-height: 780px;
  background: radial-gradient(circle at center, rgba(53,112,79,.34), transparent 62%);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 9px;
  background-image: repeating-linear-gradient(to right, rgba(255,255,255,.30) 0 1px, transparent 1px 26px);
  opacity: .6;
  pointer-events: none;
  z-index: 3;
}

.hero-grid {
  display: grid;
  gap: clamp(40px, 5vw, 60px);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.02fr 0.98fr;
    gap: clamp(38px, 4vw, 66px);
    align-items: center;
  }
}

.hero-copy { min-width: 0; }
.hero .eyebrow { color: #7FD1A2; }
.hero .eyebrow::before { border-color: var(--accent-2); }
.hero h1 {
  color: #F4F6F5;
  margin-bottom: 22px;
  font-size: clamp(2.55rem, 5.8vw, 4.7rem);
  line-height: 1.015;
  letter-spacing: -.026em;
}
.hero h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
  animation: wordUp 760ms var(--ease) forwards;
  animation-delay: calc(120ms + var(--i) * 85ms);
}
.hero h1 .word--em { color: var(--accent-2); font-style: normal; }
@keyframes wordUp { to { opacity: 1; transform: none; } }

.hero-sub { max-width: 44ch; color: #AEB8B3; font-size: clamp(1.02rem, .4vw + .95rem, 1.2rem); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero .btn-primary { background: var(--accent); border-color: var(--accent); color: #F3F7F4; }
.hero .btn-primary:hover,
.hero .btn-primary:focus-visible {
  background: var(--accent-2); border-color: var(--accent-2); color: #FFF6F1;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -16px rgba(193, 68, 14, .75);
}
.hero .btn-ghost { background: rgba(255,255,255,.02); color: #EAEDEB; border-color: rgba(255,255,255,.30); }
.hero .btn-ghost:hover,
.hero .btn-ghost:focus-visible {
  background: rgba(255,255,255,.08); color: #FFF; border-color: rgba(255,255,255,.6);
  transform: translateY(-2px);
}

.trust-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 36px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.14);
  max-width: 560px;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .63rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #B6C0BB;
  background: #171C1A;
  border: 0;
  padding: 12px 13px;
  min-width: 0;
}
.trust-badge svg { color: #7FD1A2; flex: none; }

/* ---------- Composición visual del hero ---------------------------------- */
.hero-visual { position: relative; min-width: 0; }

.hero-photo {
  position: relative;
  margin: 0;
  border: 1px solid rgba(255,255,255,.18);
  background: #0E1211;
  overflow: hidden;
}
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(.9) contrast(1.07) brightness(1.02);
  transform: scale(1.001);
}
@media (min-width: 1024px) { .hero-photo img { aspect-ratio: 5 / 4; } }
.hero-photo::before,
.hero-photo::after {
  content: "";
  position: absolute;
  width: 15px; height: 15px;
  z-index: 3;
  pointer-events: none;
}
.hero-photo::before { top: 11px; left: 11px; border-top: 1.5px solid rgba(255,255,255,.8); border-left: 1.5px solid rgba(255,255,255,.8); }
.hero-photo::after  { bottom: 11px; right: 11px; border-bottom: 1.5px solid rgba(255,255,255,.8); border-right: 1.5px solid rgba(255,255,255,.8); }

/* barrido de calibración */
.hp-scan {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  z-index: 2;
  background: linear-gradient(90deg, transparent, #7FD1A2 42%, #FFFFFF 50%, #7FD1A2 58%, transparent);
  box-shadow: 0 0 14px 2px rgba(127,209,162,.5);
  opacity: 0;
}
.js .hp-scan { animation: heroScan 5.2s var(--ease-2) 1.1s infinite; }
@keyframes heroScan {
  0%   { top: 4%;  opacity: 0; }
  8%   { opacity: .9; }
  46%  { top: 96%; opacity: .9; }
  54%  { top: 96%; opacity: 0; }
  100% { top: 96%; opacity: 0; }
}

.hp-tag {
  position: absolute;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #EAEDEB;
  background: rgba(20,25,23,.8);
  border: 1px solid rgba(255,255,255,.18);
  padding: 5px 9px;
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
}
.hp-tag--tl { top: 13px; left: 34px; }
.hp-tag--br { bottom: 13px; right: 34px; }

.hp-readout {
  position: absolute;
  z-index: 4;
  top: 13px; right: 13px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-mono);
  color: #F4F6F5;
  background: rgba(36,76,54,.92);
  border: 1px solid rgba(127,209,162,.55);
  padding: 8px 11px 9px;
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
  box-shadow: 0 12px 26px -16px rgba(0,0,0,.8);
}
.hp-readout em { font-style: normal; font-size: .52rem; letter-spacing: .16em; text-transform: uppercase; color: #A7D9BC; }
.hp-readout b { font-weight: 600; font-size: 1.32rem; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.hp-readout b span { font-size: .58em; color: #A7D9BC; margin-left: 2px; }

/* Diagrama de extracción — panel de instrumento flotante */
.hero-diagram {
  position: relative;
  z-index: 5;
  min-width: 0;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(to right, rgba(28,35,33,.03) 1px, transparent 1px) 0 0 / 33.333% 100%,
    var(--surface-2);
  padding: clamp(14px, 2vw, 22px);
  margin-top: clamp(16px, 3vw, 22px);
  box-shadow: 0 34px 64px -34px rgba(0,0,0,.85);
}
@media (min-width: 1024px) {
  .hero-diagram {
    margin-top: -66px;
    margin-left: clamp(44px, 6vw, 84px);
  }
}
.hero-diagram .dg-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--line);
  padding-bottom: 11px;
  margin-bottom: 14px;
}
.hero-diagram svg { display: block; width: 100%; height: auto; }

.hero-diagram .dg-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 16px;
}
.dg-cell { background: var(--surface-2); padding: 12px 13px; min-width: 0; }
.dg-cell .k {
  display: block;
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 5px;
}
.dg-cell .v {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(.95rem, 1.5vw, 1.22rem);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.dg-cell .v em { font-style: normal; color: var(--accent-2); }

/* trazos que se dibujan */
.draw {
  stroke-dasharray: var(--len, 600);
  stroke-dashoffset: var(--len, 600);
}
.is-drawn .draw {
  animation: drawIn 1400ms var(--ease-2) forwards;
  animation-delay: calc(var(--d, 0) * 1ms);
}
@keyframes drawIn { to { stroke-dashoffset: 0; } }

.dot-pulse { opacity: 0; }
.is-drawn .dot-pulse {
  animation: dotIn 400ms var(--ease) forwards, pulseRing 3.4s 1.4s ease-out infinite;
  animation-delay: calc(var(--d, 0) * 1ms), calc(var(--d, 0) * 1ms + 500ms);
}
@keyframes dotIn { to { opacity: 1; } }
@keyframes pulseRing {
  0%   { r: 3.2; opacity: 1; }
  55%  { r: 8;   opacity: 0; }
  100% { r: 3.2; opacity: 0; }
}

.flow-bead { opacity: 0; }
.is-drawn .flow-bead {
  animation: beadFall 2.6s linear infinite;
  animation-delay: calc(1200ms + var(--d, 0) * 1ms);
}
@keyframes beadFall {
  0%   { opacity: 0; transform: translateY(0); }
  12%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(46px); }
}

/* ---------- Reveal -------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal.is-in { opacity: 1; transform: none; }
html.no-js .reveal { opacity: 1; transform: none; }
html.no-js .draw { stroke-dasharray: none; stroke-dashoffset: 0; }
html.no-js .dot-pulse, html.no-js .flow-bead, html.no-js .shower-drop, html.no-js .tds-target-line { opacity: 1; }
html.no-js .tds-fill { transform: scaleY(1); }
html.no-js .hero h1 .word { opacity: 1; transform: none; animation: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero h1 .word { opacity: 1 !important; transform: none !important; animation: none !important; }
  .is-drawn .draw { animation: none !important; stroke-dashoffset: 0 !important; }
  .is-drawn .dot-pulse, .is-drawn .flow-bead { animation: none !important; opacity: 1 !important; }
  .drop, .shower-drop, .tds-fill { animation: none !important; }
  .hp-scan { animation: none !important; opacity: 0 !important; }
  * { scroll-behavior: auto !important; }
}

/* ---------- Protocolo (timeline vertical) --------------------------------- */

.protocol { position: relative; }
.proto-list { list-style: none; margin: 0; padding: 0; }

.proto-step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: clamp(26px, 3.4vw, 40px) 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.proto-step:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 768px) {
  .proto-step { grid-template-columns: 132px 1fr 220px; gap: clamp(20px, 3vw, 44px); align-items: start; }
}
.proto-step::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 0; height: 1px;
  background: var(--accent-2);
  transition: width 700ms var(--ease);
}
.proto-step.is-in::before { width: 100%; transition-delay: calc(var(--i, 0) * 90ms); }

.proto-code {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .14em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
}
.proto-code .icon {
  width: 30px; height: 30px;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--ink);
  flex: none;
  transition: background 240ms var(--ease-2), color 240ms var(--ease-2), transform 240ms var(--ease);
}
.proto-step:hover .icon { background: var(--ink); color: var(--bg); transform: rotate(-6deg); }

.proto-body { min-width: 0; }
.proto-body h3 { margin-bottom: 8px; }
.proto-body p { color: var(--ink-soft); max-width: 58ch; margin: 0; }

.proto-meta {
  min-width: 0;
  border-left: 2px solid var(--line);
  padding-left: 16px;
}
.proto-meta dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.proto-meta dt {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 3px;
}
.proto-meta dd {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .82rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ---------- Tablas -------------------------------------------------------- */

.table-scroll {
  display: block; width: 100%; max-width: 100%; min-width: 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  margin: 18px 0;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--surface-2);
}
.table-scroll > table { margin: 0 !important; min-width: 480px; width: 100%; }
:where(*:has(> .table-scroll), *:has(> * > .table-scroll), *:has(> * > * > .table-scroll)) { min-width: 0; }

table {
  border-collapse: collapse;
  width: 100%;
  font-size: .92rem;
}
caption {
  caption-side: top;
  text-align: left;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
thead th {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface-3);
  white-space: nowrap;
}
tbody td, tbody th {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line-hair);
  vertical-align: top;
  text-align: left;
  font-weight: 400;
  color: var(--ink-soft);
}
tbody th {
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -.008em;
  white-space: nowrap;
}
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody tr { transition: background 200ms var(--ease-2); }
tbody tr:hover { background: var(--surface-3); }
td.num, th.num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
}
td.num em { font-style: normal; color: var(--accent-2); }
.tbl-note {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .04em;
  color: var(--ink-faint);
  margin-top: 10px;
}

.price-cop { color: var(--ink); font-family: var(--font-mono); font-weight: 500; }

/* ---------- Instrumental (split asimétrico + overlap) --------------------- */

.instrument-grid { display: grid; gap: 22px; }
@media (min-width: 900px) { .instrument-grid { grid-template-columns: 7fr 5fr; gap: clamp(24px, 3vw, 44px); align-items: start; } }

.instrument-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.instrument {
  background: var(--bg);
  padding: clamp(20px, 2.4vw, 28px);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  gap: 4px 18px;
  align-items: start;
  min-width: 0;
  transition: background 240ms var(--ease-2), transform 240ms var(--ease);
}
.instrument:hover { background: var(--surface-2); }
.instrument .ic {
  grid-row: 1 / span 3;
  width: 46px; height: 46px;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  color: var(--accent);
  flex: none;
  transition: transform 260ms var(--ease), border-color 240ms var(--ease-2), color 240ms var(--ease-2);
}
.instrument:hover .ic { transform: translateY(-3px); border-color: var(--accent-2); color: var(--accent-2); }
.instrument h3 { margin: 0; min-width: 0; overflow-wrap: break-word; }
.instrument .spec {
  grid-column: 2;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 2px 0 8px;
}
.instrument p { grid-column: 2; margin: 0; color: var(--ink-soft); font-size: .95rem; min-width: 0; }

.instrument-aside {
  border: 1px solid var(--line-strong);
  background: var(--ink);
  color: var(--surface);
  padding: clamp(22px, 2.6vw, 30px);
  position: relative;
  overflow: hidden;
}
.instrument-aside h3 { color: var(--bg); }
.instrument-aside p { color: #B9C2BE; font-size: .95rem; }
.instrument-aside .eyebrow { color: #6FBCDF; }
.instrument-aside .eyebrow::before { border-color: #E8683E; }
.instrument-aside::after {
  content: "";
  position: absolute;
  right: -60px; bottom: -60px;
  width: 190px; height: 190px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
}
.aside-stats { display: grid; gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); margin-top: 22px; }
.aside-stat { background: var(--ink); padding: 14px 16px; }
.aside-stat .v {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.6rem;
  color: #FFF;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.aside-stat .v .suf { color: #E8683E; }
.aside-stat .k {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8B9591;
  margin-top: 5px;
}

/* ---------- Efecto firma: ducha del portafiltro + barra TDS --------------- */

.signature {
  background: var(--surface);
  border-block: 1px solid var(--line-strong);
}
.sig-grid { display: grid; gap: clamp(28px, 4vw, 52px); align-items: center; }
@media (min-width: 900px) { .sig-grid { grid-template-columns: 6fr 6fr; } }

.shower-stage {
  border: 1px solid var(--line-strong);
  background: var(--bg);
  padding: clamp(14px, 2vw, 24px);
  min-width: 0;
}
.shower-stage svg { display: block; width: 100%; height: auto; }

.shower-drop {
  opacity: 0;
  transform-box: fill-box;
}
.is-pouring .shower-drop {
  animation: dropFall 1.5s linear infinite;
  animation-delay: calc(var(--d, 0) * 1ms);
}
@keyframes dropFall {
  0%   { opacity: 0; transform: translateY(0) scaleY(.7); }
  10%  { opacity: 1; }
  70%  { opacity: 1; transform: translateY(52px) scaleY(1.25); }
  100% { opacity: 0; transform: translateY(66px) scaleY(1.4); }
}

.tds-fill {
  transform-origin: bottom center;
  transform: scaleY(0);
}
.is-pouring .tds-fill { animation: tdsRise 2600ms 400ms var(--ease-2) forwards; }
@keyframes tdsRise { to { transform: scaleY(1); } }

.tds-target-line { opacity: .0; }
.is-pouring .tds-target-line { animation: fadeIn 600ms 2600ms forwards; }
@keyframes fadeIn { to { opacity: 1; } }

.sig-readout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 20px;
}
.sig-cell { background: var(--bg); padding: 14px 15px; }
.sig-cell .k {
  font-family: var(--font-mono);
  font-size: .56rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.sig-cell .v {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  letter-spacing: -.035em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  margin-top: 4px;
}
.sig-cell .v .unit { font-size: .48em; color: var(--ink-faint); letter-spacing: .04em; }
.sig-cell--hot .v { color: var(--accent-2); }

.sig-copy blockquote {
  margin: 0 0 26px;
  font-family: var(--font-head);
  font-weight: 600;
  font-style: normal;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: -.018em;
  line-height: 1.16;
  color: var(--ink);
  border-left: 3px solid var(--accent-2);
  padding-left: clamp(16px, 2vw, 24px);
}
.sig-copy blockquote cite {
  display: block;
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 500;
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 16px;
}

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.checklist li {
  background: var(--surface-2);
  padding: 13px 15px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  font-size: .93rem;
  color: var(--ink-soft);
  min-width: 0;
  transition: background 200ms var(--ease-2);
}
.checklist li:hover { background: var(--bg); }
.checklist li svg { color: var(--accent); margin-top: 3px; flex: none; }
.checklist li b { color: var(--ink); font-weight: 600; }

/* ---------- Parámetros: banda + tarjetas --------------------------------- */

.param-callouts {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 30px;
}
@media (min-width: 700px) { .param-callouts { grid-template-columns: repeat(4, 1fr); } }
.param-callout { background: var(--surface-2); padding: 18px 18px 20px; min-width: 0; }
.param-callout .k {
  font-family: var(--font-mono);
  font-size: .57rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 8px;
}
.param-callout .v {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(1.28rem, 2.1vw, 1.62rem);
  letter-spacing: -.032em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.param-callout .v .unit { font-size: .55em; color: var(--ink-faint); margin-left: 3px; }
.param-callout .h { font-size: .82rem; color: var(--ink-soft); margin-top: 7px; }
.param-callout:nth-child(2) .v { color: var(--accent); }
.param-callout:nth-child(4) .v { color: var(--accent-2); }

/* ---------- Tarifas ------------------------------------------------------- */

.tarifas { background: var(--surface-2); }
.tarifa-grid { display: grid; gap: clamp(24px, 3vw, 40px); }
@media (min-width: 980px) { .tarifa-grid { grid-template-columns: 7.4fr 4.6fr; align-items: start; } }

.tarifa-side {
  border: 1px solid var(--line-strong);
  background: var(--bg);
  padding: clamp(20px, 2.4vw, 28px);
}
.tarifa-side h3 { font-size: 1.1rem; }
.tarifa-side .cap {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--ink-soft);
  line-height: 1.9;
}
.cap-bar {
  height: 6px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  margin: 12px 0 8px;
  position: relative;
  overflow: hidden;
}
.cap-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 80%;
  background: repeating-linear-gradient(45deg, var(--accent-2) 0 4px, #D9622D 4px 8px);
}

.incl { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 7px; }
.incl li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  font-size: .89rem;
  color: var(--ink-soft);
  min-width: 0;
}
.incl li::before {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 500;
  line-height: 1.7;
}
.incl--no li::before { content: "−"; color: var(--ink-faint); }

/* ---------- Informe de cierre -------------------------------------------- */

.report-band {
  background: var(--ink);
  color: var(--surface);
  border-block: 1px solid var(--ink);
  overflow: hidden;
  position: relative;
}
.report-band::before,
.report-band::after {
  content: "";
  position: absolute; left: 0; right: 0; height: 9px;
  background-image: repeating-linear-gradient(to right, rgba(255,255,255,.28) 0 1px, transparent 1px 26px);
  pointer-events: none;
}
.report-band::before { top: 0; }
.report-band::after { bottom: 0; }
.report-band h2 { color: #FFF; }
.report-band .lede { color: #AAB4B0; }
.report-band .eyebrow { color: #6FBCDF; }
.report-band .eyebrow::before { border-color: #E8683E; }
.report-band .sect-code { color: #7C8783; }
.report-band .sect-code::before { background: rgba(255,255,255,.3); }

.report-grid { display: grid; gap: clamp(26px, 3vw, 44px); }
@media (min-width: 900px) { .report-grid { grid-template-columns: 5fr 7fr; align-items: start; } }

.report-doc {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid #3A423F;
  box-shadow: 14px 14px 0 -1px rgba(232, 104, 62, .28);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.report-doc:hover { transform: translateY(-4px); box-shadow: 18px 18px 0 -1px rgba(232, 104, 62, .38); }
.report-doc .doc-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--surface-2);
}
.report-doc .doc-body { padding: 20px 18px 22px; }
.report-doc .doc-body h3 { font-size: 1.18rem; margin-bottom: 4px; }
.report-doc .doc-body .sub { font-family: var(--font-mono); font-size: .68rem; color: var(--ink-faint); letter-spacing: .06em; margin-bottom: 18px; }
.doc-row {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dotted var(--line);
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--ink-soft);
}
.doc-row b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.doc-row:last-child { border-bottom: 0; }

.report-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: #3A423F; border: 1px solid #3A423F; }
@media (min-width: 620px) { .report-features { grid-template-columns: 1fr 1fr; } }
.report-features li {
  background: var(--ink);
  padding: 20px 20px 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 3px 15px;
  min-width: 0;
  transition: background 240ms var(--ease-2);
}
.report-features li:hover { background: #252D2A; }
.report-features li svg { grid-row: 1 / span 2; color: #6FBCDF; flex: none; }
.report-features li h4 { color: #FFF; margin: 0; font-size: .98rem; min-width: 0; }
.report-features li p { color: #98A29E; margin: 0; font-size: .87rem; min-width: 0; }

/* ---------- Testimonios (rejilla editorial irregular) --------------------- */

.testi-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 860px) { .testi-grid { grid-template-columns: repeat(3, 1fr); } }
.testi {
  background: var(--bg);
  padding: clamp(22px, 2.5vw, 30px);
  display: flex; flex-direction: column;
  min-width: 0;
  transition: background 240ms var(--ease-2);
}
.testi:hover { background: var(--surface-2); }
@media (min-width: 860px) {
  .testi:nth-child(1) { grid-column: span 2; }
  .testi:nth-child(4) { grid-column: span 2; }
}
.testi .stars { color: var(--accent-2); margin-bottom: 14px; line-height: 0; }
.testi .stars .rating-svg { height: 15px; width: auto; display: block; }
.testi p { color: var(--ink-soft); font-size: .96rem; }
.testi .who {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line-hair);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .06em;
  color: var(--ink-faint);
}
.testi .who b { display: block; color: var(--ink); font-weight: 500; font-size: .82rem; letter-spacing: 0; margin-bottom: 3px; }

/* ---------- FAQ ----------------------------------------------------------- */

.faq { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.faq details { background: var(--surface-2); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px clamp(18px, 3vw, 28px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -.008em;
  color: var(--ink);
  transition: background 200ms var(--ease-2);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--bg); }
.faq summary .plus {
  width: 22px; height: 22px;
  position: relative;
  flex: none;
}
.faq summary .plus::before,
.faq summary .plus::after {
  content: ""; position: absolute; background: var(--accent-2);
  left: 50%; top: 50%;
}
.faq summary .plus::before { width: 13px; height: 1.6px; transform: translate(-50%, -50%); }
.faq summary .plus::after { width: 1.6px; height: 13px; transform: translate(-50%, -50%); transition: transform 300ms var(--ease-2); }
.faq details[open] summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq details > .body {
  height: 0;
  padding: 0 clamp(18px, 3vw, 28px);
  overflow: hidden;
  transition: height 360ms var(--ease-2), padding-block-end 360ms var(--ease-2);
}
.faq details[open] > .body { height: auto; padding-block-end: 26px; }
.faq .body p { color: var(--ink-soft); font-size: .95rem; max-width: 72ch; }
@media (prefers-reduced-motion: reduce) { .faq details > .body { transition: none; } }

/* ---------- CTA final ----------------------------------------------------- */

.cta-band { border-top: 1px solid var(--line); background: var(--surface); }
.cta-inner {
  display: grid; gap: 26px; align-items: center;
  padding-block: clamp(48px, 6vw, 84px);
}
@media (min-width: 860px) { .cta-inner { grid-template-columns: 1fr auto; gap: 48px; } }
.cta-inner h2 { margin-bottom: 10px; }
.cta-inner p { color: var(--ink-soft); margin: 0; max-width: 54ch; }

/* ---------- Contacto ------------------------------------------------------ */

.page-hero {
  min-height: 240px;
  display: flex; align-items: center;
  padding-block: clamp(48px, 6.5vw, 92px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 340px at 12% 0%, rgba(11, 110, 153, .09), transparent 65%),
    var(--bg);
  position: relative;
}
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9px;
  background-image: repeating-linear-gradient(to right, var(--line-strong) 0 1px, transparent 1px 26px);
  opacity: .5;
}
.page-hero h1 { font-size: clamp(2.15rem, 4.6vw, 3.55rem); }
.page-hero .lede { margin-top: 16px; }

.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.channel {
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 12px;
  padding: 22px;
  display: block;
  color: var(--ink);
  min-width: 0;
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease), border-color 240ms var(--ease-2);
}
.channel:hover, .channel:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px -24px rgba(28, 35, 33, .55);
  border-color: var(--line-strong);
  color: var(--ink);
}
.channel .ci {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(11, 110, 153, .1);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 16px;
  transition: transform 260ms var(--ease), background 240ms var(--ease-2), color 240ms var(--ease-2);
}
.channel:hover .ci { transform: scale(1.08); background: var(--ink); color: var(--bg); }
.channel .cl {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}
.channel .cv {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: -.01em;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.channel .ch { font-size: .84rem; color: var(--ink-soft); margin-top: 7px; }

.hours-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 620px) { .hours-grid { grid-template-columns: repeat(2, 1fr); } }
.hour-row {
  background: var(--surface-2);
  padding: 13px 17px;
  display: flex; justify-content: space-between; gap: 14px;
  font-family: var(--font-mono);
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
  transition: background 200ms var(--ease-2);
}
.hour-row:hover { background: var(--bg); }
.hour-row .d { color: var(--ink); letter-spacing: .08em; text-transform: uppercase; font-size: .66rem; align-self: center; }
.hour-row.is-today { background: var(--bg); box-shadow: inset 3px 0 0 var(--accent-2); }

/* ---------- Formulario ---------------------------------------------------- */

.form-wrap {
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  padding: clamp(22px, 3vw, 38px);
}
.form-grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } }

.field { display: block; min-width: 0; }
.field > .lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 7px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--line-strong);
  padding: 10px 2px;
  transition: border-color 220ms var(--ease-2), background 220ms var(--ease-2);
  border-radius: 0;
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 13px) 20px, calc(100% - 8px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 28px;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
  background: rgba(11, 110, 153, .045);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; }

.field-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  font-size: .88rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.field input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: auto;
  width: 18px; height: 18px;
  min-width: 18px; min-height: 18px;
  padding: 0; border: 0; margin: 2px 0 0;
  accent-color: var(--accent);
}
.form-note { font-family: var(--font-mono); font-size: .66rem; color: var(--ink-faint); letter-spacing: .04em; }

.field > .lbl .opt { letter-spacing: .08em; text-transform: none; opacity: .72; }

/* Honeypot: fuera de la vista y del foco, pero rellenable por bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Objetivo táctil cómodo en móvil */
@media (max-width: 640px) {
  .field input[type="text"],
  .field input[type="email"],
  .field input[type="tel"],
  .field select { padding-block: 13px; font-size: 16px; }
  .field textarea { font-size: 16px; }
}

/* ---------- Nosotros / equipo -------------------------------------------- */

.team-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 860px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.person { background: var(--surface-2); padding: clamp(22px, 2.5vw, 30px); min-width: 0; transition: background 240ms var(--ease-2); }
.person:hover { background: var(--bg); }
.person .avatar {
  width: 58px; height: 58px;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: .02em;
  color: var(--accent);
  margin-bottom: 18px;
  transition: transform 260ms var(--ease);
}
.person:hover .avatar { transform: rotate(-5deg); }
.person h3 { margin-bottom: 3px; }
.person .role {
  font-family: var(--font-mono);
  font-size: .63rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.person p { font-size: .92rem; color: var(--ink-soft); }

.notes { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.note-item {
  background: var(--surface-2);
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 6px 20px;
  min-width: 0;
}
@media (max-width: 620px) { .note-item { grid-template-columns: 1fr; } }
.note-item time { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; color: var(--accent); text-transform: uppercase; padding-top: 3px; }
.note-item p { margin: 0; font-size: .93rem; color: var(--ink-soft); min-width: 0; }
.note-item b { color: var(--ink); font-weight: 600; }

/* ---------- Prosa legal --------------------------------------------------- */

.prose { max-width: 740px; line-height: 1.7; }
.prose h2 { margin-top: 46px; font-size: clamp(1.35rem, 2vw, 1.72rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 30px; font-size: 1.08rem; }
.prose p, .prose li { color: var(--ink-soft); line-height: 1.7; }
.prose p { margin-bottom: 1.15em; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose a { word-break: break-word; overflow-wrap: anywhere; }
.prose .meta-line {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  margin-bottom: 34px;
}

.sitemap-cols { display: grid; gap: 30px; }
@media (min-width: 760px) { .sitemap-cols { grid-template-columns: repeat(3, 1fr); } }
.sitemap-cols h3 { font-size: .96rem; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.sitemap-cols ul { list-style: none; margin: 0; padding: 0; }
.sitemap-cols li { padding: 9px 0; border-bottom: 1px solid var(--line-hair); }
.sitemap-cols a { color: var(--ink); font-family: var(--font-mono); font-size: .8rem; }
.sitemap-cols a:hover { color: var(--accent); }

/* ---------- Footer -------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: #98A29E;
  border-top: 1px solid var(--ink);
  position: relative;
  z-index: 1;
}
.footer-top {
  display: grid;
  gap: 34px;
  padding-block: clamp(44px, 5vw, 72px);
}
@media (min-width: 860px) { .footer-top { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; } }
.site-footer h4 {
  color: #FFF;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer a { color: #C3CBC7; }
.site-footer a:hover { color: #6FBCDF; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; font-size: .89rem; }
.footer-brand .brand-name { color: #FFF; font-size: 1.2rem; }
.footer-brand p { font-size: .9rem; max-width: 34ch; margin-top: 16px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.footer-badges span {
  font-family: var(--font-mono);
  font-size: .56rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid #3A423F;
  padding: 6px 8px;
  color: #8B9591;
}
.footer-bottom {
  border-top: 1px solid #3A423F;
  padding-block: 22px 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .06em;
  color: #7C8783;
}

/* ---------- Cookie -------------------------------------------------------- */

.cookie-banner {
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--ink);
  box-shadow: 0 26px 60px -30px rgba(0, 0, 0, .6);
  padding: 20px;
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
  transition: transform 280ms var(--ease), opacity 240ms;
  z-index: 9999;
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-banner[hidden] { display: none; }
@media (min-width: 900px) { .cookie-banner { left: 24px; right: auto; max-width: 420px; } }
.cookie-banner h2 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.cookie-banner p { font-size: .86rem; color: var(--ink-soft); margin-bottom: 16px; }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cookie-actions .btn { padding: 13px 10px; font-size: .68rem; min-height: 44px; letter-spacing: .08em; }
.cookie-actions .btn:first-child { grid-column: 1 / -1; }

.cookie-panel { display: none; margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.cookie-panel.is-open { display: block; }
.cookie-opt {
  display: grid; grid-template-columns: auto 1fr; gap: 11px;
  align-items: start;
  font-size: .82rem;
  color: var(--ink-soft);
  padding: 8px 0;
}
.cookie-opt input[type="checkbox"] {
  appearance: auto; -webkit-appearance: auto;
  width: 18px; height: 18px; min-width: 18px; min-height: 18px;
  margin: 2px 0 0; padding: 0; border: 0;
  accent-color: var(--accent);
}
.cookie-opt b { display: block; color: var(--ink); font-weight: 600; }

/* ---------- 404 / gracias ------------------------------------------------- */

.center-page {
  min-height: calc(100vh - var(--header-h) - 120px);
  display: grid;
  place-items: center;
  text-align: left;
  padding-block: clamp(60px, 9vw, 130px);
}
.center-card { max-width: 640px; }
.center-card .big {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(4rem, 12vw, 7rem);
  letter-spacing: -.05em;
  line-height: .92;
  color: var(--accent-2);
  margin-bottom: 20px;
}
.center-card .check {
  width: 62px; height: 62px;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 26px;
}

/* ---------- Responsive fixes --------------------------------------------- */

@media (max-width: 640px) {
  .sect-code { font-size: .6rem; top: 14px; }
  .hero-diagram .dg-foot { grid-template-columns: 1fr; }
  .dg-cell { padding: 11px 12px; }
  .instrument { padding: 18px; gap: 4px 14px; }
  .instrument .ic { width: 36px; height: 36px; }
  .instrument .ic svg { width: 18px; height: 18px; }
  .channel { padding: 18px; }
  .channel .ci { width: 40px; height: 40px; }
  .proto-meta { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 14px; }
  .cta-inner .btn { width: 100%; }
  .testi { padding: 20px; }
  .report-doc { box-shadow: 8px 8px 0 -1px rgba(232, 104, 62, .28); }
}
@media (max-width: 400px) {
  .cookie-actions { grid-template-columns: 1fr; }
  .cookie-actions .btn:first-child { grid-column: auto; }
}

/* ============================================================
   FOTOGRAFÍA TÉCNICA
   ============================================================ */

.foto { position: relative; margin: 0 0 clamp(24px, 4vw, 44px); }

/* Marco técnico con overflow para zoom + ticks de esquina */
.foto-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #0E1211;
}
.foto-frame img,
.foto img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  filter: saturate(.86) contrast(1.07);
  transition: transform 900ms var(--ease), filter 500ms var(--ease-2);
}
.foto img { border: 1px solid var(--line-strong); }
.foto:hover .foto-frame img { transform: scale(1.045); filter: saturate(.98) contrast(1.09); }

.foto--wide .foto-frame img,
.foto--wide img { aspect-ratio: 3 / 2; object-fit: cover; }
.foto--alta { max-width: 400px; margin-inline: auto; }
.foto--alta .foto-frame img,
.foto--alta img { aspect-ratio: 2 / 3; object-fit: cover; }

/* Ticks de esquina */
.foto-frame::before,
.foto-frame::after {
  content: "";
  position: absolute;
  width: 15px; height: 15px;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 0 1.5px rgba(0,0,0,.55));
}
.foto-frame::before { top: 11px; left: 11px; border-top: 1.5px solid rgba(255,255,255,.9); border-left: 1.5px solid rgba(255,255,255,.9); }
.foto-frame::after  { bottom: 11px; right: 11px; border-bottom: 1.5px solid rgba(255,255,255,.9); border-right: 1.5px solid rgba(255,255,255,.9); }

/* Etiqueta y chip de dato sobre la foto */
.foto-tag {
  position: absolute;
  z-index: 3;
  left: 34px; top: 13px;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #EAEDEB;
  background: rgba(20,25,23,.8);
  border: 1px solid rgba(255,255,255,.18);
  padding: 5px 9px;
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
}
.foto-chip {
  position: absolute;
  z-index: 3;
  right: 13px; bottom: 13px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-mono);
  color: #F4F6F5;
  background: rgba(36,76,54,.92);
  border: 1px solid rgba(127,209,162,.55);
  padding: 8px 11px 9px;
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
  box-shadow: 0 12px 26px -16px rgba(0,0,0,.8);
}
.foto-chip em { font-style: normal; font-size: .5rem; letter-spacing: .16em; text-transform: uppercase; color: #A7D9BC; }
.foto-chip b { font-weight: 600; font-size: 1.12rem; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.foto-chip b span { font-size: .58em; color: #A7D9BC; margin-left: 1px; }

.foto figcaption {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .655rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.foto figcaption::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent-2);
  flex: none;
}

.foto-cuadro {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 18px;
  border: 1px solid var(--line-strong);
  filter: saturate(.9) contrast(1.04);
}

.scroll-progress{position:fixed;top:0;left:0;height:3px;width:0;background:var(--accent);z-index:9998;transition:width 80ms linear;pointer-events:none}

/* header-cta-padding-guard v1 */
.nav-desktop a.nav-cta, header a.nav-cta, .site-header a.nav-cta {
  padding: 10px 18px;
}
