/* =========================================================================
   SOFTREPAIR · Hoja de estilos 2026
   Concepto «semáforo»: los tres puntos del logo (rojo, ámbar, verde) son
   el estado de una reparación: avería → diagnóstico → solucionado.
   Sin frameworks ni jQuery. Común a todas las páginas.
   ========================================================================= */

:root {
  --ink:        #0d1520;
  --ink-2:      #152234;
  --ink-3:      #1e2d42;
  --paper:      #f6f3ec;
  --paper-2:    #efe9dc;
  --card:       #ffffff;
  --line:       #e3dccd;
  --text:       #1b2430;
  --muted:      #5b6573;
  --muted-dk:   #9aa6b5;
  --gold:       #c8a84b;
  --gold-deep:  #8a6d1d;
  --red:        #ef4444;
  --amber:      #f59e0b;
  --green:      #22c55e;
  --radius:     18px;
  --radius-sm:  10px;
  --shadow:     0 1px 2px rgba(13,21,32,.06), 0 12px 32px -12px rgba(13,21,32,.18);
  --font:       'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:       'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;
  --wrap:       1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 800; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap > * { min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.on-dark .eyebrow { color: var(--gold); }
.section { padding: 112px 0; }
.section--tight { padding: 80px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 48px); margin-top: 14px; max-width: 16ch; }
.section-head p { color: var(--muted); max-width: 46ch; }
.on-dark { background: var(--ink); color: #fff; }
.on-dark .section-head p { color: var(--muted-dk); }

/* ---- Botones ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 15px/1 var(--font);
  padding: 16px 24px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--ink-3); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #d6b95e; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.on-dark .btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.on-dark .btn--ghost:hover { background: #fff; color: var(--ink); }

/* ---- Puntos de estado ---- */
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot--red { background: var(--red); }
.dot--amber { background: var(--amber); }
.dot--green { background: var(--green); }

/* ---- Logo ---- */
.logo { display: inline-block; text-decoration: none; line-height: 1; font-family: 'Montserrat', sans-serif; font-size: 21px; letter-spacing: 1.5px; }
.logo .soft { font-weight: 300; color: var(--muted); }
.logo .repair { font-weight: 800; letter-spacing: 2px; color: var(--ink); }
.logo .l { position: relative; display: inline-block; }
.logo .l::after { content: ''; position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; }
.logo .l1::after { background: var(--red); }
.logo .l2::after { background: var(--amber); }
.logo .l3::after { background: var(--green); }
.on-dark .logo .soft { color: rgba(255,255,255,.6); }
.on-dark .logo .repair { color: #fff; }

/* =========================================================================
   Barra superior + cabecera
   ========================================================================= */
.topbar { background: var(--ink); color: rgba(255,255,255,.75); font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 40px; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; }
.topbar .status .dot { box-shadow: 0 0 0 4px rgba(255,255,255,.06); }
.topbar .links { display: flex; gap: 22px; }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,243,236,.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header.scrolled { border-bottom-color: var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--text); position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--gold); transition: right .2s; }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.header .btn { padding: 12px 20px; font-size: 14px; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 26px; height: 26px; }

/* =========================================================================
   Cabecera de páginas interiores
   ========================================================================= */
.page-hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; padding: 72px 0 80px; }
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 32px 32px;
}
.page-hero::after { content: ''; position: absolute; right: -140px; top: -160px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(200,168,75,.22), transparent 70%); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(38px, 5.6vw, 64px); margin: 18px 0 18px; letter-spacing: -0.03em; max-width: 20ch; }
.page-hero h1 em { font-style: normal; color: var(--red); }
.page-hero h1 .h1-pre { display: block; font: 700 clamp(14px, 1.6vw, 18px)/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dk); margin-bottom: 14px; }
.page-hero .lead { color: var(--muted-dk); font-size: 19px; max-width: 56ch; }
.crumbs { font: 600 13px/1 var(--mono); color: var(--muted-dk); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumbs a { color: var(--muted-dk); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-current] { color: var(--gold); }

/* =========================================================================
   Hero (home)
   ========================================================================= */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5vw, 64px); margin: 22px 0 24px; letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero h1 .h1-pre { display: block; font: 700 clamp(14px, 1.6vw, 18px)/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 34ch; }
.hero .ctas { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.hero .proof { display: flex; gap: 28px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero .proof div { font-size: 14px; color: var(--muted); }
.hero .proof strong { display: block; font-size: 20px; color: var(--text); font-weight: 800; }
.stars { color: var(--amber); letter-spacing: 2px; }

.hero-visual { position: relative; }
.hero-visual::before {
  content: '';
  position: absolute; right: -60px; top: -50px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,168,75,.35), transparent 70%);
  z-index: -1;
}

/* ---- «El banco de pruebas»: foto + semáforo a la derecha ----
   data-state 0 = apagado · 1 = rojo (avería) · 2 = ámbar (diagnóstico) · 3 = verde (reparado)
   La propia foto "se repara": pasa de gris con interferencias a color. */
.rig {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) 224px;
  min-height: 460px;
  border-radius: 28px; overflow: hidden;
  background: var(--ink);
  box-shadow: 0 30px 70px -24px rgba(13,21,32,.55);
}
.rig-photo { position: relative; overflow: hidden; background: #05080d; }
.rig-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 78% center;
  filter: grayscale(1) brightness(.4) contrast(1.15);
  transform: scale(1.06);
  transition: filter 1.4s ease, transform 2s ease;
}
.rig .tint { position: absolute; inset: 0; z-index: 1; background: transparent; transition: background 1s ease; }
.rig .crt { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .9; transition: opacity 1.2s ease;
  background: repeating-linear-gradient(180deg, rgba(0,0,0,.28) 0 2px, transparent 2px 4px); }
.rig .scan {
  position: absolute; left: 0; right: 0; top: -35%; height: 35%; z-index: 3; opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(245,158,11,.22) 75%, rgba(255,214,120,.95) 99%, transparent);
  transition: opacity .4s;
}
.rig[data-state="1"] .rig-photo img { filter: grayscale(1) brightness(.55) contrast(1.15); }
.rig[data-state="1"] .tint { background: rgba(239,68,68,.30); }
.rig[data-state="2"] .rig-photo img { filter: grayscale(.55) brightness(.78); transform: scale(1.03); }
.rig[data-state="2"] .tint { background: rgba(245,158,11,.16); }
.rig[data-state="2"] .crt { opacity: .45; }
.rig[data-state="2"] .scan { opacity: 1; animation: scan 1.5s linear infinite; }
.rig[data-state="3"] .rig-photo img { filter: none; transform: scale(1); }
.rig[data-state="3"] .crt { opacity: 0; }
@keyframes scan { from { top: -35%; } to { top: 100%; } }

.rig .place-chip, .rig-status {
  position: absolute; z-index: 4; left: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(13,21,32,.8); color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font: 700 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  padding: 9px 12px; border-radius: 999px;
}
.rig .place-chip { top: 16px; }
.rig-status { bottom: 16px; }
.rig-status .dot { background: #4b5563; transition: background .4s, box-shadow .4s; }
.rig[data-state="1"] .rig-status .dot { background: var(--red); box-shadow: 0 0 10px var(--red); }
.rig[data-state="2"] .rig-status .dot { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.rig[data-state="3"] .rig-status .dot { background: var(--green); box-shadow: 0 0 10px var(--green); }

.rig-panel {
  position: relative;
  display: flex; flex-direction: column; gap: 16px;
  padding: 22px 18px 18px;
  color: #fff;
  background: linear-gradient(180deg, #121d2c, #0a111a);
  border-left: 1px solid rgba(255,255,255,.07);
}
.rig-head { display: flex; justify-content: space-between; gap: 8px; font: 700 10.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted-dk); }
.rig-head b { color: #fff; }
.lights {
  list-style: none; margin: 0; padding: 14px 12px;
  display: grid; gap: 12px;
  background: #060a10; border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), inset 0 12px 30px rgba(0,0,0,.7);
}
.light { display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 12px; opacity: .5; transition: opacity .5s; }
.light i {
  width: 46px; height: 46px; border-radius: 50%; display: block; position: relative;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.07), #19222e 62%);
  box-shadow: inset 0 -5px 10px rgba(0,0,0,.65), 0 0 0 3px #0d141e;
  transition: background .5s, box-shadow .5s, opacity .5s;
}
.light i::after { content: ''; position: absolute; left: 22%; top: 16%; width: 30%; height: 22%; border-radius: 50%; background: rgba(255,255,255,.18); filter: blur(1px); }
.light b { display: block; font-size: 14px; font-weight: 800; letter-spacing: 0; }
.light small { display: block; font-size: 12px; line-height: 1.35; color: var(--muted-dk); margin-top: 2px; }
.light.is-done, .light.is-on { opacity: 1; }
.light.is-done i { opacity: .55; }
.light--red.is-on i, .light--red.is-done i     { background: radial-gradient(circle at 35% 30%, #ffb4b4, var(--red) 45%, #7f1d1d); }
.light--amber.is-on i, .light--amber.is-done i { background: radial-gradient(circle at 35% 30%, #ffe2a8, var(--amber) 45%, #92400e); }
.light--green.is-on i, .light--green.is-done i { background: radial-gradient(circle at 35% 30%, #c6f6d5, var(--green) 45%, #14532d); }
.light--red.is-on i   { box-shadow: 0 0 0 3px #0d141e, 0 0 26px 6px rgba(239,68,68,.6); }
.light--amber.is-on i { box-shadow: 0 0 0 3px #0d141e, 0 0 26px 6px rgba(245,158,11,.55); }
.light--green.is-on i { box-shadow: 0 0 0 3px #0d141e, 0 0 26px 6px rgba(34,197,94,.6); }
.pay-pill {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  font: 700 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  background: rgba(34,197,94,.16); color: #86efac;
  padding: 8px 10px; border-radius: 999px;
  opacity: 0; transform: translateY(6px); transition: opacity .5s .3s, transform .5s .3s;
}
.rig[data-state="3"] .pay-pill { opacity: 1; transform: none; }
.replay {
  margin-top: auto; align-self: flex-start;
  background: none; border: 1px solid rgba(255,255,255,.16); color: var(--muted-dk);
  font: 700 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 11px; border-radius: 999px; cursor: pointer; transition: color .2s, border-color .2s;
}
.replay:hover { color: #fff; border-color: rgba(255,255,255,.45); }
.rig.no-anim *, .rig.no-anim *::before, .rig.no-anim *::after { transition: none !important; }

/* =========================================================================
   Franja de cifras
   ========================================================================= */
.facts { background: var(--ink); color: #fff; }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 34px 28px; border-left: 1px solid rgba(255,255,255,.08); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact strong { display: block; font-size: 34px; font-weight: 800; letter-spacing: -0.03em; color: var(--gold); }
.fact span { font-size: 14px; color: var(--muted-dk); }

/* =========================================================================
   Servicios (bento)
   ========================================================================= */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(200px, auto); gap: 18px; }
.svc {
  background: var(--card); border-radius: var(--radius); padding: 28px;
  box-shadow: 0 0 0 1px var(--line);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.svc:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.ico { width: 46px; height: 46px; border-radius: 12px; background: var(--paper); display: grid; place-items: center; color: var(--ink); flex: none; }
.ico svg { width: 24px; height: 24px; }
.svc h3 { font-size: 21px; margin-top: 6px; }
.svc p { color: var(--muted); font-size: 15px; }
.more { margin-top: auto; font-weight: 700; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; color: var(--gold-deep); }
.svc--a { grid-column: span 3; grid-row: span 2; background: var(--gold); box-shadow: none; }
.svc--a .ico { background: rgba(13,21,32,.1); }
.svc--a p { color: rgba(13,21,32,.75); font-size: 17px; max-width: 38ch; }
.svc--a h3 { font-size: 34px; }
.svc--a .big { margin-top: auto; font: 800 clamp(64px, 9vw, 120px)/0.85 var(--font); letter-spacing: -0.05em; color: rgba(13,21,32,.9); }
.svc--a .big small { display: block; font-size: 15px; letter-spacing: 0; font-weight: 700; margin-top: 12px; color: rgba(13,21,32,.7); }
.svc--b, .svc--c, .svc--d, .svc--e { grid-column: span 3; }
.svc--f { grid-column: span 6; background: var(--ink); color: #fff; box-shadow: none; padding: 0; flex-direction: row; }
.svc--f .txt { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1.1; }
.svc--f .ico { background: var(--ink-3); color: var(--gold); }
.svc--f p { color: var(--muted-dk); }
.svc--f .more { color: var(--gold); }
.tag { font: 700 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.svc--f .tag { color: var(--muted-dk); }

/* Ventana de código */
.code { flex: 1.3; background: #0a111b; border-left: 1px solid rgba(255,255,255,.06); display: flex; flex-direction: column; min-width: 0; border-radius: 0 var(--radius) var(--radius) 0; }
.code-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.06); }
.code-bar i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.code-bar i:nth-child(1) { background: var(--red); }
.code-bar i:nth-child(2) { background: var(--amber); }
.code-bar i:nth-child(3) { background: var(--green); }
.code-bar span { margin-left: 10px; font: 600 12px var(--mono); color: var(--muted-dk); }
.code pre { margin: 0; padding: 18px 0; font: 500 13px/1.75 var(--mono); color: #cbd5e1; overflow: hidden; white-space: pre; }
.code .ln { display: block; padding: 0 18px; }
.code .del { background: rgba(239,68,68,.12); color: #fca5a5; text-decoration: line-through; text-decoration-color: rgba(252,165,165,.5); }
.code .add { background: rgba(34,197,94,.10); color: #bbf7d0; }
.code .cm  { color: #64748b; }
.code .ok  { color: #4ade80; font-weight: 700; margin-top: 10px; }

/* =========================================================================
   El semáforo (proceso)
   ========================================================================= */
.process { position: relative; overflow: hidden; }
.process::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(239,68,68,.10), transparent 70%),
    radial-gradient(600px 300px at 50% 100%, rgba(245,158,11,.08), transparent 70%),
    radial-gradient(600px 300px at 90% 10%, rgba(34,197,94,.10), transparent 70%);
  pointer-events: none;
}
.process .wrap { position: relative; }
.track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; }
.track::before { content: ''; position: absolute; top: 62px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, var(--red), var(--amber), var(--green)); opacity: .5; }
.stage { position: relative; background: var(--ink-2); border-radius: var(--radius); padding: 28px 28px 30px; border: 1px solid rgba(255,255,255,.06); }
.stage .lamp { width: 68px; height: 68px; border-radius: 50%; margin-bottom: 22px; display: grid; place-items: center; background: var(--ink); border: 1px solid rgba(255,255,255,.1); position: relative; }
.stage .lamp i { width: 26px; height: 26px; border-radius: 50%; display: block; }
.stage--red .lamp i   { background: var(--red);   box-shadow: 0 0 24px 4px rgba(239,68,68,.55); }
.stage--amber .lamp i { background: var(--amber); box-shadow: 0 0 24px 4px rgba(245,158,11,.5); }
.stage--green .lamp i { background: var(--green); box-shadow: 0 0 24px 4px rgba(34,197,94,.55); }
.stage .step { font: 700 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dk); }
.stage h3 { font-size: 24px; margin: 10px 0 12px; }
.stage p { color: var(--muted-dk); font-size: 15px; }
.stage ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: 14px; color: rgba(255,255,255,.82); }
.stage li { display: flex; gap: 10px; align-items: center; }
.stage li::before { content: ''; width: 14px; height: 2px; background: rgba(255,255,255,.25); flex: none; }
.stage--green { background: linear-gradient(180deg, rgba(34,197,94,.14), var(--ink-2) 60%); border-color: rgba(34,197,94,.3); }
.stage--green h3 { color: #86efac; }
.promise {
  margin-top: 40px; padding: 26px 30px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  border: 1px solid rgba(200,168,75,.35); background: rgba(200,168,75,.06);
}
.promise q { font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; letter-spacing: -0.02em; quotes: '«' '»'; }
.promise q::before, .promise q::after { color: var(--gold); }

/* =========================================================================
   Noticias (tarjetas y portadas generadas por CSS, sin fotos de stock)
   ========================================================================= */
.news { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; }
.news-list { display: grid; gap: 16px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
  text-decoration: none; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.card .body { padding: 22px 24px 26px; display: grid; gap: 10px; align-content: start; flex: 1; }
.card h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 15px; }
.card .src { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 14px; color: var(--gold-deep); }
.meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 700 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.chip { padding: 5px 9px; border-radius: 999px; font: inherit; }
.chip--seg  { background: rgba(239,68,68,.1);  color: #b91c1c; }
.chip--hw   { background: rgba(245,158,11,.14); color: #92400e; }
.chip--win  { background: rgba(200,168,75,.18); color: var(--gold-deep); }
.chip--sw   { background: rgba(34,197,94,.12);  color: #15803d; }
.chip--rep  { background: rgba(13,21,32,.08);   color: var(--ink); }

.cover { position: relative; overflow: hidden; color: #fff; }
.cover svg.glyph { position: absolute; right: -18px; bottom: -22px; width: 150px; height: 150px; opacity: .16; stroke: currentColor; fill: none; stroke-width: 1.2; }
.cover--seg { background: linear-gradient(135deg, #3a0f14, #7f1d1d 60%, #b91c1c); }
.cover--hw  { background: linear-gradient(135deg, #3b2606, #92400e 60%, #d97706); }
.cover--sw  { background: linear-gradient(135deg, #062b16, #14532d 60%, #15803d); }
.cover--rep { background: linear-gradient(135deg, #0d1520, #1e2d42 60%, #3a4b63); }
.card .cover { aspect-ratio: 16 / 8; display: flex; align-items: flex-end; padding: 18px 20px; }
.card .cover .label { position: relative; font: 700 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.85); }

.cover--win { background: var(--ink); padding: 32px; display: flex; flex-direction: column; justify-content: space-between; }
.cover--win .win { font: 800 clamp(96px, 13vw, 168px)/.8 var(--font); letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.85); position: relative; align-self: flex-start; }
.cover--win .win::after { content: ''; position: absolute; left: -4%; right: -4%; top: 52%; height: 6px; background: var(--red); transform: rotate(-8deg); border-radius: 6px; box-shadow: 0 0 22px rgba(239,68,68,.6); }
.cover--win .label { font: 700 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; display: flex; gap: 10px; align-items: center; color: rgba(255,255,255,.8); }
.cover .grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 28px 28px; }
.cover > *:not(.grid):not(.glyph) { position: relative; }

.feature .cover { aspect-ratio: 16 / 9; }
.feature .body { padding: 26px 28px 30px; }
.feature h3 { font-size: 28px; }
.feature p { color: var(--muted); }

.mini { flex-direction: row; min-height: 140px; }
.mini .cover { width: 132px; flex: none; display: grid; place-items: center; aspect-ratio: auto; padding: 0; }
.mini .cover svg.glyph { position: static; width: 54px; height: 54px; opacity: .9; stroke-width: 1.6; }
.mini .body { padding: 18px 20px; gap: 8px; align-content: center; }
.mini h3 { font-size: 17px; }

/* =========================================================================
   Boletín
   ========================================================================= */
.bulletin { overflow: hidden; }
.bulletin .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: center; }
.bulletin h2 { font-size: clamp(34px, 4.6vw, 54px); margin: 16px 0 20px; }
.bulletin h2 span { color: var(--gold); }
.bulletin .story { color: var(--muted-dk); font-size: 17px; max-width: 44ch; }
.bulletin .story b { color: #fff; }
.sub-form { margin-top: 34px; }
.sub-row { display: flex; gap: 10px; background: var(--ink-2); padding: 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.08); max-width: 520px; position: relative; }
.sub-row input[type=email] { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font: 500 16px var(--font); padding: 0 16px; }
.sub-row input[type=email]::placeholder { color: var(--muted-dk); }
.sub-row input[type=email]:focus { outline: none; }
.sub-row:focus-within { border-color: var(--gold); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13px; color: var(--muted-dk); max-width: 520px; }
.consent input { margin-top: 3px; accent-color: var(--gold); flex: none; }
.consent a { color: var(--gold); }
.sub-msg { margin-top: 12px; font-size: 14px; min-height: 20px; }
.perks { display: flex; gap: 22px; margin-top: 26px; flex-wrap: wrap; font-size: 14px; color: rgba(255,255,255,.8); }
.perks span { display: inline-flex; gap: 8px; align-items: center; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.issues { position: relative; height: 520px; }
.issue {
  position: absolute; width: 380px; max-width: 92%;
  background: #fffdf6; color: var(--text);
  border-radius: 6px; padding: 28px 30px 26px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55);
  text-decoration: none; transition: transform .3s ease;
}
.issue .ihead { display: flex; justify-content: space-between; font: 700 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.issue .num { font: 800 64px/1 var(--font); letter-spacing: -0.05em; margin: 18px 0 6px; }
.issue h3 { font-size: 22px; line-height: 1.2; }
.issue ol { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: t; display: grid; gap: 9px; }
.issue li { counter-increment: t; display: grid; grid-template-columns: 28px 1fr; font-size: 14px; color: #3d4652; }
.issue li::before { content: counter(t, decimal-leading-zero); font: 700 12px/1.6 var(--mono); color: var(--gold-deep); }
.issue .read { margin-top: 20px; display: inline-flex; gap: 8px; align-items: center; font-weight: 800; font-size: 14px; color: var(--ink); }
.issue--now  { right: 0; top: 40px; transform: rotate(2deg); z-index: 3; }
.issue--now:hover { transform: rotate(0deg) translateY(-6px); }
.issue--next { right: 210px; top: 0; transform: rotate(-5deg); z-index: 2; background: #f3efe4; }
.issue--next .num { color: #c9c2b2; }
.stamp {
  display: inline-block; margin-top: 8px;
  font: 700 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-deep); border: 2px solid var(--gold-deep); padding: 8px 10px; border-radius: 4px;
  transform: rotate(-4deg); opacity: .85;
}
.issue--2009 {
  left: 0; bottom: 6px; transform: rotate(-9deg); z-index: 1;
  width: 290px; background: #e9dcc0; color: #5c4a2a;
  font-family: 'Courier New', Courier, monospace;
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.6);
}
.issue--2009 .ihead { color: #7a6643; border-color: #7a6643; font-family: inherit; }
.issue--2009 p { font-size: 13px; margin-top: 14px; line-height: 1.5; }
.issue--2009 .old { font-weight: 700; font-size: 20px; margin-top: 12px; }

/* Listado de números (página Boletín) */
.issue-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.issue-card {
  background: #fffdf6; border-radius: 8px; padding: 30px 32px; text-decoration: none;
  box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 10px;
  transition: transform .2s, box-shadow .2s;
}
a.issue-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.issue-card .ihead { display: flex; justify-content: space-between; font: 700 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.issue-card .num { font: 800 72px/1 var(--font); letter-spacing: -0.05em; margin-top: 10px; }
.issue-card h3 { font-size: 24px; }
.issue-card p { color: var(--muted); }
.issue-card--soon { background: #f3efe4; }
.issue-card--soon .num { color: #c9c2b2; }

/* =========================================================================
   Opiniones
   ========================================================================= */
.reviews { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.review { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 14px; }
.review p { font-size: 16px; }
.review footer { margin-top: auto; display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 15px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); font-size: 14px; color: var(--gold-deep); }
.review small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }

/* =========================================================================
   Zona de servicio
   ========================================================================= */
.zone .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.zone h2 { font-size: clamp(32px, 4.2vw, 48px); margin: 14px 0 18px; }
.zone .lead { color: var(--muted); }
.towns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; list-style: none; padding: 0; }
.towns li { font-size: 13px; padding: 7px 13px; border-radius: 999px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.towns li.main { background: var(--ink); color: #fff; box-shadow: none; font-weight: 700; }
.radar { background: var(--ink); border-radius: 28px; padding: 22px; position: relative; margin: 0; }
.radar svg { width: 100%; height: auto; display: block; }
.radar .ring { fill: none; stroke: rgba(255,255,255,.1); stroke-dasharray: 3 5; }
.radar .ring-label { fill: rgba(255,255,255,.35); font: 600 10px var(--mono); }
.radar .town { fill: var(--gold); }
.radar .town-label { fill: rgba(255,255,255,.8); font: 600 11px var(--font); }
.radar .home { fill: var(--green); }
.radar .pulse { fill: none; stroke: var(--green); stroke-width: 2; animation: pulse 2.6s ease-out infinite; }
.radar .sweep { transform-origin: 210px 210px; animation: spin 7s linear infinite; }
@keyframes pulse { from { r: 8; opacity: .9; } to { r: 60; opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
.radar figcaption { font: 600 11px var(--mono); color: rgba(255,255,255,.45); letter-spacing: .06em; margin-top: 8px; text-align: center; }
.town-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.town-card { background: var(--card); border-radius: var(--radius-sm); padding: 20px 22px; box-shadow: 0 0 0 1px var(--line); border-top: 3px solid var(--gold); }
.town-card h3 { font-size: 16px; margin-bottom: 6px; letter-spacing: 0; }
.town-card p { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 4px; font-size: 19px; font-weight: 800; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 34px; height: 34px; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center; flex: none; transition: transform .25s, background .2s; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--gold); box-shadow: none; }
.faq details p { padding: 0 4px 26px; color: var(--muted); max-width: 70ch; }

/* =========================================================================
   CTA final
   ========================================================================= */
.cta-final { padding: 0 0 112px; }
.cta-box {
  border-radius: 32px; padding: 64px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-box::after { content: ''; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(34,197,94,.25), transparent 70%); }
.cta-box h2 { font-size: clamp(32px, 4.4vw, 52px); margin-top: 16px; }
.cta-box p { color: var(--muted-dk); margin-top: 16px; }
.cta-actions { display: grid; gap: 12px; position: relative; z-index: 1; }
.cta-actions .btn { width: 100%; }

/* =========================================================================
   Páginas interiores: artículo, barra lateral, servicios, contacto, galería
   ========================================================================= */
.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.aside { display: grid; gap: 20px; position: sticky; top: 100px; }
.side-card { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: 0 0 0 1px var(--line); }
.side-card h3 { font-size: 13px; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.side-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.side-card li a { text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.35; display: block; }
.side-card li a:hover { color: var(--gold-deep); }
.side-card li small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); margin-top: 2px; }
.side-card--dark { background: var(--ink); color: #fff; box-shadow: none; }
.side-card--dark h3 { color: var(--gold); }
.side-card--dark p { color: var(--muted-dk); font-size: 15px; margin-bottom: 16px; }
.side-card--dark .btn { width: 100%; margin-top: 8px; }

.article-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; aspect-ratio: 16 / 7; }
.article-cover.cover--seg { display: flex; align-items: flex-end; padding: 32px; }
.article-cover .big-glyph { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); width: 200px; height: 200px; stroke: rgba(255,255,255,.22); fill: none; stroke-width: 1.1; }

.prose { font-size: 18px; line-height: 1.75; color: #2b3440; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 30px; margin-top: 1.8em; color: var(--text); }
.prose h3 { font-size: 22px; margin-top: 1.6em; color: var(--text); }
.prose a { color: var(--gold-deep); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose strong { color: var(--text); }
.prose .intro { font-size: 21px; line-height: 1.6; color: var(--text); }
.callout { background: var(--card); border-radius: var(--radius); padding: 26px 28px; box-shadow: 0 0 0 1px var(--line); border-left: 4px solid var(--gold); }
.callout--dark { background: var(--ink); color: #fff; box-shadow: none; border-left-color: var(--green); }
.callout--dark h3 { color: #fff; margin-top: 0; }
.callout--dark p { color: var(--muted-dk); }
.callout .btn { margin-top: 18px; }
.note { font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 22px; }

.tips { list-style: none; padding: 0 !important; display: grid; gap: 16px; counter-reset: tip; }
.tips li { counter-increment: tip; background: var(--card); border-radius: var(--radius); padding: 24px 26px 24px 86px; box-shadow: 0 0 0 1px var(--line); position: relative; margin: 0 !important; }
.tips li::before { content: counter(tip, decimal-leading-zero); position: absolute; left: 24px; top: 22px; font: 800 30px/1 var(--font); letter-spacing: -0.04em; color: var(--gold); }
.tips h3 { margin-top: 0 !important; font-size: 20px; }
.tips p { margin-top: 8px; font-size: 16px; color: var(--muted); line-height: 1.65; }

.svc-main { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-main .svc { min-height: 260px; }
.svc-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.svc-group { background: var(--card); border-radius: var(--radius); padding: 30px; box-shadow: 0 0 0 1px var(--line); }
.svc-group > header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.svc-group h3 { font-size: 22px; }
.svc-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.svc-group li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.svc-group li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-top: 9px; }
.svc-group li strong { display: block; font-size: 16px; }
.svc-group li span { color: var(--muted); font-size: 15px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split h2 { font-size: clamp(30px, 3.8vw, 44px); margin: 14px 0 18px; }
.split p { color: var(--muted); }
.split p + p { margin-top: 14px; }
.photo { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value { background: var(--ink-2); border-radius: var(--radius); padding: 28px; border: 1px solid rgba(255,255,255,.06); }
.value .dot { width: 14px; height: 14px; }
.value h3 { font-size: 21px; margin: 16px 0 10px; }
.value p { color: var(--muted-dk); font-size: 15px; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.form-card { background: var(--card); border-radius: 24px; padding: 40px; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.form-card h2 { font-size: 30px; margin-bottom: 8px; }
.form-card > p { color: var(--muted); margin-bottom: 28px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font: 700 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font: 500 16px var(--font); color: var(--text);
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; width: 100%;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(200,168,75,.18); }
.field .invalid { border-color: var(--red); }
.form-card .consent { color: var(--muted); max-width: none; }
.form-card .consent a { color: var(--gold-deep); font-weight: 700; }
.form-actions { margin-top: 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.feedback { display: none; margin-top: 18px; padding: 14px 18px; border-radius: 12px; font-weight: 600; font-size: 15px; }
.feedback.ok  { display: block; background: #eaf6ed; color: #166534; }
.feedback.err { display: block; background: #fdecea; color: #b91c1c; }
.info-stack { display: grid; gap: 14px; }
.info { background: var(--card); border-radius: var(--radius); padding: 22px 24px; box-shadow: 0 0 0 1px var(--line); display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: center; }
.info h3 { font: 700 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.info p, .info a { font-size: 16px; font-weight: 700; text-decoration: none; }
.info a:hover { color: var(--gold-deep); }
.info-dark { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 24px; }
.info-dark q { display: block; font-weight: 800; font-size: 20px; quotes: '«' '»'; }
.info-dark q::before, .info-dark q::after { color: var(--gold); }
.info-dark p { color: var(--muted-dk); font-size: 14px; margin-top: 10px; }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow); background: var(--ink); }
.gallery a.feat { grid-column: span 2; grid-row: span 2; }
.gallery a.feat img { aspect-ratio: auto; }
.gallery figure { margin: 0; height: 100%; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; background: linear-gradient(transparent, rgba(13,21,32,.88)); color: #fff; font-weight: 700; font-size: 14px; }
.gallery a.feat figcaption { font-size: 17px; padding: 60px 24px 20px; }
.credits { margin-top: 22px; font-size: 13px; color: var(--muted); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); max-height: 92vh; }
.lightbox::backdrop { background: rgba(8,12,18,.9); }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 12px; margin: 0 auto; }
.lightbox p { color: #fff; text-align: center; margin-top: 12px; font-weight: 600; }
.lb-btn { position: fixed; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 24px; cursor: pointer; }
.lb-btn:hover { background: rgba(255,255,255,.24); }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
.lb-close { top: 22px; right: 18px; transform: none; }

/* Legal */
.legal { max-width: 860px; margin: 0 auto; }
.legal h2 { font-size: 26px; margin: 48px 0 14px; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 18px; margin: 26px 0 8px; }
.legal p, .legal li { color: #3d4652; font-size: 16px; line-height: 1.75; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--gold-deep); font-weight: 700; }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: 14px; background: var(--card); border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.legal th, .legal td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal th { background: var(--paper-2); font-weight: 800; }
.legal .datos { background: var(--card); border-radius: var(--radius); padding: 22px 26px; box-shadow: 0 0 0 1px var(--line); border-left: 4px solid var(--gold); }
.legal .pending { background: #fff8e1; border: 1px solid #f0d48a; border-radius: 12px; padding: 14px 18px; font-size: 14px; color: #8a6d1d; margin-bottom: 32px; }
.legal .updated { font-size: 13px; color: var(--muted); margin-top: 40px; }
/* Datos del responsable: disponibles pero plegados (como en DMASK) */
.legal details.responsable { margin-top: 10px; font-size: 14px; }
.legal details.responsable summary { cursor: pointer; color: var(--muted); user-select: none; }
.legal details.responsable summary:hover { color: var(--text); }
.legal details.responsable p { font-size: 14px; margin-top: 8px; }

/* =========================================================================
   Footer, barra móvil y aviso de cookies
   ========================================================================= */
.footer { padding: 72px 0 32px; font-size: 15px; color: var(--muted-dk); }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer h4 { color: #fff; font-size: 14px; letter-spacing: .02em; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer .lema { color: var(--gold); font-weight: 700; margin: 22px 0 10px; }
.footer .bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 26px; font-size: 13px; flex-wrap: wrap; }
.footer .bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer button.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.footer button.linklike:hover { color: #fff; }

.mbar { display: none; }

.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  max-width: 560px; margin-left: auto;
  background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: 22px 24px; box-shadow: 0 24px 60px -12px rgba(0,0,0,.5);
  display: grid; gap: 16px;
}
.cookie p { font-size: 14px; color: rgba(255,255,255,.82); }
.cookie a { color: var(--gold); font-weight: 700; }
.cookie .row { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.cookie .btn { padding: 12px 18px; font-size: 14px; }
.cookie .opts { display: grid; gap: 8px; font-size: 14px; }
.cookie .opts[hidden] { display: none; }
.cookie .opts label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.cookie .opts input { width: 18px; height: 18px; accent-color: var(--gold); }
.cookie .opts span { color: rgba(255,255,255,.6); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1020px) {
  .hero .wrap, .bulletin .wrap, .zone .wrap, .split, .contact-grid, .layout-aside { grid-template-columns: 1fr; gap: 48px; }
  .aside { position: static; }
  .hero-visual { max-width: 680px; }
  .news, .svc-groups { grid-template-columns: 1fr; }
  .news-grid, .svc-main, .values, .town-cards, .gallery { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .cta-box { grid-template-columns: 1fr; padding: 44px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .svc--a, .svc--f { grid-column: span 2; grid-row: auto; }
  .svc--b, .svc--c, .svc--d, .svc--e { grid-column: span 1; }
  .issues { max-width: 520px; }
}
@media (max-width: 860px) {
  .nav, .header .btn { display: none; }
  .menu-btn { display: block; }
  .header.open .nav {
    display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--paper); padding: 24px; border-bottom: 1px solid var(--line);
  }
  .topbar .links { display: none; }
  .facts .wrap { grid-template-columns: repeat(2, 1fr); }
  .fact { padding: 26px 16px; }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .track { grid-template-columns: 1fr; }
  .track::before { display: none; }
  .issue-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .wrap { padding: 0 16px; }
  .section { padding: 80px 0; }
  .section--tight { padding: 56px 0; }
  .page-hero { padding: 48px 0 56px; }
  .hero { padding: 40px 0 72px; }
  .hero .ctas .btn { flex: 1; }
  .rig { grid-template-columns: 1fr; min-height: 0; }
  .rig-photo { aspect-ratio: 4 / 3; }
  .rig-panel { border-left: 0; border-top: 1px solid rgba(255,255,255,.07); }
  .lights { grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 12px 8px; }
  .light { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 8px; }
  .light i { width: 38px; height: 38px; }
  .light small { font-size: 11px; }
  .replay { margin-top: 0; }
  .bento, .news-grid, .svc-main, .values, .town-cards, .reviews, .fields, .gallery { grid-template-columns: 1fr; }
  .gallery a.feat { grid-column: auto; grid-row: auto; }
  .gallery a.feat img { aspect-ratio: 3 / 2; }
  .svc--a, .svc--b, .svc--c, .svc--d, .svc--e, .svc--f { grid-column: span 1; }
  .svc--f { flex-direction: column-reverse; }
  .code { border-radius: var(--radius) var(--radius) 0 0; border-left: 0; }
  .code pre { font-size: 11.5px; }
  .mini .cover { width: 92px; }
  .issues { height: auto; display: grid; gap: 18px; }
  .issue { position: relative; inset: auto; width: auto; max-width: none; transform: none !important; }
  .issue--2009 { display: none; }
  .issue--now { order: -1; }
  .sub-row .btn { padding: 14px 18px; }
  .cta-box { padding: 32px 22px; border-radius: 24px; }
  .form-card { padding: 26px 20px; }
  .legal table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .prose { font-size: 17px; }
  .prose h2 { font-size: 25px; }
  .tips li { padding: 22px 20px 22px 70px; }
  .tips li::before { left: 18px; font-size: 26px; }
  .article-cover { aspect-ratio: 16 / 10; }
  .footer .cols { grid-template-columns: 1fr; }
  .cookie { bottom: 76px; }
  .mbar {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--ink); border-top: 1px solid rgba(255,255,255,.08);
  }
  .mbar a { color: #fff; text-decoration: none; display: grid; place-items: center; gap: 2px; padding: 9px 0 10px; font-size: 12px; font-weight: 700; }
  .mbar a svg { width: 20px; height: 20px; }
  .mbar a:nth-child(2) { color: #4ade80; }
  .mbar a:last-child { background: var(--gold); color: var(--ink); }
}
/* =========================================================================
   SOFTREPAIR 3.0 · software a medida, integración y BI
   El semáforo se mantiene: rojo = el problema, ámbar = el análisis,
   verde = la solución funcionando.
   ========================================================================= */

/* Logo: el peso visual pasa a «SOFT» */
.logo .soft { font-weight: 800; color: var(--ink); }
.logo .repair { font-weight: 300; color: var(--muted); letter-spacing: 1.5px; }
.on-dark .logo .soft { color: #fff; }
.on-dark .logo .repair { color: rgba(255,255,255,.6); }

.topbar .tagline { font-family: var(--mono); font-size: 12px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; min-width: 0; }
@media (max-width: 1240px) { .topbar .links > span { display: none; } }

/* Énfasis del titular: dorado (el rojo queda para los problemas) */
.hero h1 em { color: var(--gold-deep); }
.page-hero h1 em { color: var(--gold); }
.hero--repair h1 em { color: var(--red); }
.hero .lead { max-width: 40ch; }
.page-hero .ctas { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

/* ---- Menú: desplegable «Servicios» ---- */
.nav-dd { position: relative; }
.nav-dd > button {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: 600 15px var(--font); color: var(--text);
  display: inline-flex; align-items: center; gap: 6px; position: relative;
}
.nav-dd > button svg { width: 14px; height: 14px; transition: transform .2s; }
.nav-dd > button::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--gold); transition: right .2s; }
.nav-dd.is-current > button::after, .nav-dd > button:hover::after { right: 20px; }
.dd-menu {
  position: absolute; top: calc(100% + 16px); left: -18px; min-width: 300px; z-index: 60;
  background: var(--card); border-radius: 14px; padding: 8px;
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
  display: none;
}
.dd-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-dd:hover .dd-menu, .nav-dd:focus-within .dd-menu, .nav-dd.open .dd-menu { display: grid; }
.nav-dd:hover > button svg, .nav-dd.open > button svg { transform: rotate(180deg); }
.nav .dd-menu a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; font-size: 15px; }
.nav .dd-menu a::after { display: none; }
.nav .dd-menu a:hover, .nav .dd-menu a[aria-current="page"] { background: var(--paper); }
.dd-menu a small { font-weight: 500; font-size: 13px; color: var(--muted); }
.dd-menu .dd-sep { height: 1px; background: var(--line); margin: 6px 6px; }
.dd-menu .dd-minor { font-size: 14px; color: var(--muted); }

/* ---- Hero: esquema de integración animado ---- */
.flow {
  background: var(--ink); color: #fff; border-radius: 28px; overflow: hidden;
  box-shadow: 0 30px 70px -24px rgba(13,21,32,.55);
}
.flow-body { display: grid; grid-template-columns: minmax(0,1fr) 44px minmax(0,1.05fr) 44px minmax(0,1fr); align-items: center; padding: 30px 22px; }
.flow-col { display: grid; gap: 12px; }
.node {
  display: flex; gap: 10px; align-items: center;
  background: var(--ink-2); border: 1px solid rgba(255,255,255,.08); border-radius: 12px;
  padding: 11px 12px; font-size: 14px; font-weight: 700; line-height: 1.25;
}
.node small { display: block; font-weight: 500; font-size: 12px; color: var(--muted-dk); }
.node .ni { width: 30px; height: 30px; border-radius: 8px; background: var(--ink-3); display: grid; place-items: center; color: var(--gold); flex: none; }
.node .ni svg { width: 16px; height: 16px; }
.node--red .ni { color: #fca5a5; }
.node--green { border-color: rgba(34,197,94,.35); background: linear-gradient(180deg, rgba(34,197,94,.12), var(--ink-2)); }
.node--green .ni { color: #86efac; }
.hub { background: linear-gradient(180deg, rgba(200,168,75,.18), var(--ink-2) 70%); border: 1px solid rgba(200,168,75,.45); border-radius: 16px; padding: 18px 16px; }
.hub b { display: block; font: 700 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.hub strong { display: block; font-size: 17px; margin-top: 6px; }
.hub ol { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 9px; font-size: 14px; color: rgba(255,255,255,.85); }
.hub li { display: flex; gap: 9px; align-items: center; }
.hub li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); flex: none; }
.hub li:last-child::before { background: var(--green); }
.wire { position: relative; height: 2px; margin: 0 6px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.28) 0 6px, transparent 6px 12px); }
.wire::after { content: ''; position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: wire 1.8s linear infinite; }
.wire--b::after { animation-delay: .9s; }
@keyframes wire { from { left: 0; } to { left: calc(100% - 8px); } }
@keyframes wire-v { from { top: 0; } to { top: calc(100% - 8px); } }
.flow-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 22px; border-top: 1px solid rgba(255,255,255,.06); font: 700 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted-dk); }
.flow-foot span { display: inline-flex; gap: 8px; align-items: center; }

/* ---- «¿Te suena?»: los problemas en rojo, la respuesta en verde ---- */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pain { background: var(--card); border-radius: var(--radius); padding: 22px 24px; box-shadow: 0 0 0 1px var(--line); display: flex; gap: 14px; align-items: flex-start; font-size: 16px; font-weight: 600; line-height: 1.45; }
.pain .dot { margin-top: 7px; }
.pain--answer { background: var(--ink); color: #fff; box-shadow: none; font-weight: 800; font-size: 18px; }

/* ---- Servicios en la home ---- */
.svc--a h3 { max-width: 14ch; }
.svc--a .chips { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.svc--a .chips span { font: 700 12px/1 var(--mono); letter-spacing: .04em; padding: 9px 12px; border-radius: 999px; background: rgba(13,21,32,.1); color: var(--ink); }
.svc--a .more { color: var(--ink); }
.svc--f .mini-steps { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; font-size: 15px; color: rgba(255,255,255,.85); }
.svc--f .mini-steps li { display: flex; gap: 10px; align-items: center; }
.svc--f .mini-steps .dot { width: 8px; height: 8px; }

/* ---- Valores (4 columnas) y tecnologías ---- */
.values--4 { grid-template-columns: repeat(4, 1fr); }
.values--light .value { background: var(--card); border-color: var(--line); }
.values--light .value p { color: var(--muted); }
.stack { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.stack li { font: 600 14px/1 var(--mono); padding: 11px 15px; border-radius: 999px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.on-dark .stack li { background: var(--ink-2); box-shadow: 0 0 0 1px rgba(255,255,255,.08); color: rgba(255,255,255,.85); }

/* ---- Bloque «también reparamos» ---- */
.aside-band { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; background: var(--card); border-radius: var(--radius); padding: 26px 30px; box-shadow: 0 0 0 1px var(--line); }
.aside-band h3 { font-size: 20px; }
.aside-band p { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* ---- Lista de capacidades en páginas de servicio ---- */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cap { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: 0 0 0 1px var(--line); display: grid; gap: 10px; align-content: start; }
.cap h3 { font-size: 19px; }
.cap p { color: var(--muted); font-size: 15px; }

/* Ejemplo (antes → después) */
.example { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.example > div { padding: 28px 30px; }
.example .before { background: var(--card); }
.example .after { background: var(--ink); color: #fff; }
.example .lbl { display: inline-flex; gap: 8px; align-items: center; font: 700 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.example .after .lbl { color: var(--muted-dk); }
.example p { font-size: 17px; }
.example .after p { color: rgba(255,255,255,.88); }
.example-note { font-size: 13px; color: var(--muted); margin-top: 12px; }

.code--solo { border-radius: var(--radius); border-left: 0; box-shadow: var(--shadow); }
.split .hero-visual::before { display: none; }
/* Si la banda final va justo después de una sección oscura, separarlas (si no, se pegan) */
.on-dark + .cta-final { padding-top: 112px; }
@media (max-width: 600px) { .on-dark + .cta-final { padding-top: 80px; } }
/* Visual del hero: modernización antes → después */
.code--hero { border-radius: 28px; border-left: 0; overflow: hidden; box-shadow: 0 30px 70px -24px rgba(13,21,32,.55); }
.code--hero pre { padding: 22px 0; font-size: 13.5px; }
.code .warn { color: #fcd34d; background: rgba(245,158,11,.10); }

/* IA: conversación de ejemplo («pregunta a tus datos») */
.chat { background: #0a111b; color: #fff; padding: 22px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.chat--card { flex: 1.3; border-left: 1px solid rgba(255,255,255,.06); border-radius: 0 var(--radius) var(--radius) 0; }
.chat--solo { background: var(--ink); border-radius: 28px; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 30px 70px -24px rgba(0,0,0,.6); }
.chat-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font: 700 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted-dk); padding-bottom: 6px; }
.chat-head span { display: inline-flex; gap: 8px; align-items: center; }
.bubble { max-width: 88%; padding: 12px 15px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; }
.chat .bubble { margin: 0; }
.chat .bubble--q { color: var(--ink); }
.chat .bubble--a { color: rgba(255,255,255,.9); }
.bubble--q { justify-self: end; background: var(--gold); color: var(--ink); font-weight: 700; border-bottom-right-radius: 4px; }
.bubble--a { justify-self: start; background: var(--ink-2); color: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.08); border-bottom-left-radius: 4px; }
.bubble--a b { color: #fff; }
.chat-foot { font: 600 11px/1.3 var(--mono); color: var(--muted-dk); letter-spacing: .04em; }
.svc--ia { background: linear-gradient(135deg, var(--ink), #18233a); }
@media (max-width: 600px) {
  .chat--card { border-radius: var(--radius) var(--radius) 0 0; border-left: 0; }
  .bubble { max-width: 100%; }
}
/* Sobre fondo oscuro, un filo sutil para que las tarjetas oscuras no se pierdan */
.on-dark .flow, .on-dark .dash, .on-dark .code--solo { box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 30px 70px -24px rgba(0,0,0,.6); }

/* Cuadro de mando de ejemplo (BI) */
.dash { background: var(--ink); color: #fff; border-radius: 28px; padding: 22px; box-shadow: 0 30px 70px -24px rgba(13,21,32,.55); }
.dash-head { display: flex; justify-content: space-between; gap: 12px; font: 700 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted-dk); margin-bottom: 16px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { background: var(--ink-2); border-radius: 12px; padding: 14px; border: 1px solid rgba(255,255,255,.06); }
.kpi small { display: block; font: 700 10.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted-dk); }
.kpi b { display: block; font-size: 26px; letter-spacing: -0.02em; margin-top: 6px; }
.kpi em { font-style: normal; font-size: 12px; font-weight: 700; }
.kpi .up { color: #86efac; }
.kpi .down { color: #fca5a5; }
.chart { margin-top: 14px; background: var(--ink-2); border-radius: 12px; padding: 16px 16px 10px; border: 1px solid rgba(255,255,255,.06); }
.chart-title { font: 700 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted-dk); margin-bottom: 14px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; }
.bars i { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--gold), #6d5617); }
.bars i.now { background: linear-gradient(180deg, #4ade80, #166534); }
.bars-x { display: flex; gap: 8px; margin-top: 8px; font: 600 10px/1 var(--mono); color: var(--muted-dk); }
.bars-x span { flex: 1; text-align: center; }

/* ---- Cómo trabajamos: pasos ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step-card { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: 0 0 0 1px var(--line); display: grid; gap: 10px; align-content: start; }
.step-card .n { font: 800 34px/1 var(--font); letter-spacing: -0.04em; color: var(--gold); }
.step-card h3 { font-size: 19px; }
.step-card p { color: var(--muted); font-size: 15px; }
.step-card--zero { background: var(--ink); color: #fff; box-shadow: none; }
.step-card--zero p { color: var(--muted-dk); }
.badge { justify-self: start; font: 700 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; }
.badge--free { background: rgba(34,197,94,.16); color: #15803d; }
.step-card--zero .badge--free { color: #86efac; }
.badge--paid { background: rgba(245,158,11,.16); color: #92400e; }

/* ---- Quién está detrás ---- */
.facts-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.facts-list li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: var(--text); }
.facts-list li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-top: 9px; }
.small-note { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* ---- Formulario 3.0: opciones tipo «pastilla» ---- */
.field fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.field legend { font: 700 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 10px; }
.field .hint { font-weight: 500; text-transform: none; letter-spacing: 0; font-family: var(--font); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-block; padding: 10px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 600; font-size: 14px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.choice span:hover { border-color: var(--gold); }
.choice input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.choice input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.privacy-note { font-size: 12.5px; line-height: 1.55; color: var(--muted); margin-top: 12px; }
.privacy-note a { color: var(--gold-deep); font-weight: 700; }

/* ---- Página 404 ---- */
.lost { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

@media (max-width: 1020px) {
  .flow-body { padding: 26px 18px; }
  .pains, .caps { grid-template-columns: repeat(2, 1fr); }
  .values--4, .steps, .lost { grid-template-columns: repeat(2, 1fr); }
  .aside-band { grid-template-columns: 1fr; }
}
/* El menú de la 3.0 tiene más entradas: se pliega antes (por debajo de 1100 px) */
.logo { flex: none; white-space: nowrap; }
.nav a, .nav-dd > button { white-space: nowrap; }
@media (max-width: 1100px) {
  .nav, .header .btn { display: none; }
  .menu-btn { display: block; }
  .header.open .nav {
    display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--paper); padding: 24px; border-bottom: 1px solid var(--line);
  }
  .header.open .nav .nav-dd > button { pointer-events: none; color: var(--muted); font: 700 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
  .header.open .nav .nav-dd > button svg { display: none; }
  .header.open .nav .dd-menu { display: grid; position: static; box-shadow: none; padding: 8px 0 0; min-width: 0; background: transparent; }
  .header.open .nav .dd-menu a { padding: 6px 0; }
  .header.open .nav .dd-menu a small { display: none; }
  .header.open .nav .dd-sep { display: none; }
  .header.open .nav { max-height: calc(100vh - 76px); overflow-y: auto; }
}
@media (max-width: 860px) {
  .example { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .topbar .wrap { height: auto; min-height: 40px; padding-block: 8px; }
  .topbar .tagline { line-height: 1.4; white-space: normal; }
  .btn { white-space: normal; text-align: center; line-height: 1.25; }
  .hero .ctas, .page-hero .ctas { flex-direction: column; }
  .hero .ctas .btn, .page-hero .ctas .btn { width: 100%; }
  .flow-body { grid-template-columns: 1fr; padding: 22px 16px; }
  .wire { width: 2px; height: 26px; margin: 4px auto; background: repeating-linear-gradient(180deg, rgba(255,255,255,.28) 0 6px, transparent 6px 12px); }
  .wire::after { left: -3px; top: 0; animation-name: wire-v; }
  .pains, .caps, .values--4, .steps, .lost, .kpis { grid-template-columns: 1fr; }
  .aside-band { padding: 22px; }
  .example > div { padding: 22px; }
}

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