/* ==========================================================================
   DelegaTuLead · "plano de obra" (mobile first)
   ========================================================================== */

/* Fuentes alojadas en la propia web (sin peticiones a Google) */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-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/ibm-plex-mono-latin-ext-400.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-20C4, 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/ibm-plex-mono-latin-400.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/ibm-plex-mono-latin-ext-500.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-20C4, 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/ibm-plex-mono-latin-500.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: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/instrument-sans-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/instrument-sans-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;
}

/* ---------- Colores: modo claro por defecto ---------- */
:root {
  --bg: #f1f4f8;
  --surface: #ffffff;
  --text: #13213a;
  --muted: #51607a;
  --line: #cbd5e3;
  --tint: #e4eaf2;
  --accent: #d9480f;
  --on-accent: #ffffff;
  --accent-soft: #fbe7dd;

  --band: #13213a;
  --band-text: #eef3fa;
  --band-muted: #aab8cd;
  --band-line: #2c3f60;
  --band-surface: #1a2b48;

  --green: #1f7a4d;
  --green-soft: #e1f2e8;
  --blue: #1d5fb8;
  --blue-soft: #e3edfb;

  --grid-line: rgba(19, 33, 58, .05);
  --band-grid-line: rgba(238, 243, 250, .045);
  --ph-bg: #fff3c4;
  --ph-text: #5c4500;
  --ph-line: #b38a00;
  --shadow: 0 1px 2px rgba(19, 33, 58, .06), 0 10px 30px rgba(19, 33, 58, .08);

  color-scheme: light;
}

/* ---------- Modo oscuro (sistema y data-theme) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1524;
    --surface: #13213a;
    --text: #eaf0f8;
    --muted: #9fb0c8;
    --line: #2a3d5d;
    --tint: #101c30;
    --accent: #ff7a3d;
    --on-accent: #1a0e05;
    --accent-soft: rgba(255, 122, 61, .16);

    --band: #08101d;
    --band-text: #eaf0f8;
    --band-muted: #9fb0c8;
    --band-line: #22324f;
    --band-surface: #111c30;

    --green: #5bd08f;
    --green-soft: rgba(91, 208, 143, .14);
    --blue: #7bb4ff;
    --blue-soft: rgba(123, 180, 255, .14);

    --grid-line: rgba(234, 240, 248, .035);
    --band-grid-line: rgba(234, 240, 248, .03);
    --ph-bg: #3a2f08;
    --ph-text: #ffe08a;
    --ph-line: #c9a227;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);

    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1524;
  --surface: #13213a;
  --text: #eaf0f8;
  --muted: #9fb0c8;
  --line: #2a3d5d;
  --tint: #101c30;
  --accent: #ff7a3d;
  --on-accent: #1a0e05;
  --accent-soft: rgba(255, 122, 61, .16);

  --band: #08101d;
  --band-text: #eaf0f8;
  --band-muted: #9fb0c8;
  --band-line: #22324f;
  --band-surface: #111c30;

  --green: #5bd08f;
  --green-soft: rgba(91, 208, 143, .14);
  --blue: #7bb4ff;
  --blue-soft: rgba(123, 180, 255, .14);

  --grid-line: rgba(234, 240, 248, .035);
  --band-grid-line: rgba(234, 240, 248, .03);
  --ph-bg: #3a2f08;
  --ph-text: #ffe08a;
  --ph-line: #c9a227;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);

  color-scheme: dark;
}

/* ---------- Tokens de contexto: cada sección los redefine ---------- */
:root {
  --font-head: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: 16px;
  --max: 1160px;
  --radius: 10px;
  --header-h: 64px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

body, .section, .agenda {
  --c-bg: var(--bg);
  --c-surface: var(--surface);
  --c-text: var(--text);
  --c-muted: var(--muted);
  --c-line: var(--line);
  --c-grid: var(--grid-line);
}
.tinted { --c-bg: var(--tint); }
.band {
  --c-bg: var(--band);
  --c-surface: var(--band-surface);
  --c-text: var(--band-text);
  --c-muted: var(--band-muted);
  --c-line: var(--band-line);
  --c-grid: var(--band-grid-line);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--safe-top) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  /* hueco para la barra fija en móvil y para el banner de cookies */
  --bar-space: calc(76px + var(--safe-bottom));
  padding-bottom: calc(var(--bar-space) + var(--cookie-space, 0px));
}

/* Papel de plano: cuadrícula muy suave */
.section, .hero, .site-footer {
  background-color: var(--c-bg);
  background-image:
    linear-gradient(var(--c-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-grid) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--c-text);
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
  text-wrap: balance;
  margin: 0 0 .5em;
}
h2 { font-size: clamp(1.75rem, 5.5vw, 2.75rem); max-width: 22ch; margin-bottom: 36px; }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }

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

:where(ul[role="list"], ol[role="list"]) { list-style: none; margin: 0; padding: 0; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -80px;
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 14px;
  border-radius: 6px;
  font-family: var(--font-head);
  font-size: 1.1875rem;
  font-weight: 700;
}
.skip-link:focus { top: calc(8px + var(--safe-top)); }

/* Etiquetas técnicas */
.label {
  font-family: var(--font-mono);
  font-size: .8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--c-muted);
  margin-bottom: 14px;
}

/* Placeholders visibles: rellenar antes de publicar */
.ph {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .82em;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ph-text);
  background: var(--ph-bg);
  border: 1px dashed var(--ph-line);
  border-radius: 4px;
  padding: 0 6px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

/* Cota: línea de medida con marcas en los extremos y etiqueta central */
.cota {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--c-muted);
  margin: 0;
}
.cota::before, .cota::after {
  content: "";
  flex: 1;
  min-width: 24px;
  height: 12px;
  background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
}
.cota::before { border-left: 1px solid currentColor; }
.cota::after { border-right: 1px solid currentColor; }
.cota span { flex: none; white-space: nowrap; }

/* ---------- Botones ---------- */
/* Texto de 19px en negrita: cuenta como texto grande para el contraste AA */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 6px;
  font-family: var(--font-head);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-secondary { background: transparent; color: var(--c-text); border-color: currentColor; }
.btn-block { display: flex; width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Franja de exclusividad ---------- */
.zone-bar {
  padding: calc(10px + var(--safe-top)) 0 10px;
  background: var(--accent-soft);
  color: var(--text);
  border-bottom: 1px solid var(--line);
}
.zone-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  text-align: center;
}
.zone-inner p { margin: 0; font-size: .9375rem; }
.zone-btn { min-height: 44px; padding: 8px 16px; }

/* ---------- Cabecera fija ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: var(--safe-top);
  background: var(--band);
  color: var(--band-text);
  border-bottom: 1px solid var(--band-line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}
.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -.03em;
  color: var(--band-text);
  text-decoration: none;
  margin: 0;
}
.logo span { color: var(--accent); }
.site-nav { display: none; }
.btn-header { min-height: 44px; padding: 8px 16px; }
/* En pantallas muy estrechas el botón ya está en la barra inferior */
@media (max-width: 399px) {
  .btn-header { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 48px 0 64px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero h1 {
  font-size: clamp(2.3rem, 8.5vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.04;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--c-muted); max-width: 54ch; margin-bottom: 28px; }
.hero .actions { margin-bottom: 28px; }
.honest {
  display: flex;
  gap: 12px;
  align-items: baseline;
  max-width: 52ch;
  color: var(--c-text);
  font-weight: 500;
}
.honest::before {
  content: "";
  flex: none;
  width: 20px;
  height: 3px;
  background: var(--accent);
  transform: translateY(-4px);
}
.cota-hero { margin-top: 32px; max-width: 460px; }

/* ---------- Mockup de agenda ---------- */
.agenda {
  margin: 0;
  min-width: 0;
  background: var(--c-surface);
  color: var(--c-text);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 16px;
}
.agenda-head p {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 12px;
}
.agenda-head span { color: var(--c-muted); font-weight: 500; }
.agenda-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--c-line);
  border-radius: 8px;
}
.agenda-grid {
  display: grid;
  grid-template-columns: 52px repeat(5, minmax(96px, 1fr));
  min-width: 560px;
}
.ag-corner, .ag-day, .ag-time, .ag-cell {
  border-right: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.ag-day:nth-child(6), .ag-cell:nth-child(6n) { border-right: 0; }
.ag-day, .ag-time {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--c-muted);
}
.ag-day { padding: 8px; text-align: center; background: var(--tint); }
.ag-corner { background: var(--tint); }
.ag-time { padding: 8px 6px; }
.ag-cell { padding: 5px; min-height: 76px; }
.agenda-grid > :nth-last-child(-n+6) { border-bottom: 0; }

.ev {
  height: 100%;
  border-radius: 5px;
  padding: 6px 7px;
  font-size: .75rem;
  line-height: 1.25;
  display: grid;
  gap: 3px;
  align-content: start;
}
.ev b { font-weight: 600; }
.ev small { font-family: var(--font-mono); font-size: .6875rem; color: var(--c-muted); }
.ev-visit { background: var(--accent-soft); border-left: 3px solid var(--accent); }
.ev-budget { background: var(--blue-soft); border-left: 3px solid var(--blue); }
.ev-follow { border: 1.5px dashed var(--c-muted); }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 12px;
  font-size: .8125rem;
  color: var(--c-muted);
}
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 14px; height: 10px; border-radius: 2px; }
.sw-visit { background: var(--accent); }
.sw-budget { background: var(--blue); }
.sw-follow { border: 1.5px dashed var(--c-muted); }
.agenda-note { font-family: var(--font-mono); font-size: .75rem; color: var(--c-muted); margin-top: 8px; }

/* ---------- Secciones ---------- */
.section { padding: 72px 0; }

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 24px;
}
.card p { color: var(--c-muted); }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; }

/* Problema */
#problema .card { border-top: 3px solid var(--c-text); }

/* Sistema: pasos sobre una línea */
.steps { position: relative; display: grid; gap: 36px; padding-left: 36px; }
.steps::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--c-line);
}
.steps li { position: relative; }
.steps li::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--c-bg);
}
.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: .8125rem;
  letter-spacing: .1em;
  color: var(--c-muted);
  margin-bottom: 6px;
}
.steps p { color: var(--c-muted); }

/* Packs */
.section-intro { color: var(--c-muted); font-size: 1.125rem; max-width: 60ch; margin: -20px 0 40px; }
.plans { display: grid; gap: 20px; align-items: center; }
.plan {
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  color: var(--c-text);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  padding: 28px 22px;
}
.plan .checklist { flex: 1; }
.plan-featured {
  --c-surface: var(--band);
  --c-text: var(--band-text);
  --c-muted: var(--band-muted);
  --c-line: var(--band-line);
  order: -1; /* en móvil, la recomendada va primero */
  border: 3px solid var(--accent);
  box-shadow: var(--shadow);
  padding: 32px 24px;
}
.plan-badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--c-text);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 14px;
}
.plan-name { font-size: 1.5rem; margin-bottom: 12px; }
.plan-for {
  color: var(--c-muted);
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--c-line);
}

.plans-notes { display: grid; gap: 10px; margin: 32px 0 56px; max-width: 70ch; }
.plans-notes p {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin: 0;
  color: var(--c-muted);
}
.plans-notes p::before {
  content: "";
  flex: none;
  width: 16px;
  height: 3px;
  background: var(--accent);
  transform: translateY(-4px);
}

/* Tabla comparativa (scroll horizontal propio en móvil) */
.compare-details summary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -.01em;
}
.compare-details summary::-webkit-details-marker { display: none; }
.compare-details summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  transition: transform .2s ease;
}
.compare-details[open] summary::after { transform: rotate(45deg); }
.compare-details .table-scroll { margin-top: 16px; }
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 12px;
}
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .9375rem; }
.compare th, .compare td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--c-line);
}
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.0625rem;
  background: var(--tint);
}
.compare thead th span {
  display: block;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 400;
  color: var(--c-muted);
  margin-top: 2px;
}
.compare tbody th { font-weight: 600; width: 30%; }
.compare td { color: var(--c-muted); }
.compare thead th.col-featured {
  background: var(--band);
  color: var(--band-text);
  box-shadow: inset 0 3px 0 var(--accent);
}
.compare thead th.col-featured span { color: var(--band-muted); }
.compare td.col-featured { background: var(--accent-soft); color: var(--c-text); font-weight: 600; }

.know-card { margin-top: 48px; }
.checklist { display: grid; gap: 16px; margin-bottom: 28px; }
.checklist li { position: relative; padding-left: 34px; color: var(--c-muted); }
.checklist strong { color: var(--c-text); font-weight: 600; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: var(--accent-soft);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  width: 6px;
  height: 12px;
  border-right: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(45deg);
}

.know-card {
  border: 2px dashed var(--c-line);
  border-radius: 12px;
  padding: 26px 22px;
}
.know-card h3 { margin-bottom: 18px; }
.know-card dl { margin: 0; display: grid; gap: 18px; }
.know-card dl div { padding-top: 18px; border-top: 1px solid var(--c-line); }
.know-card dl div:first-child { padding-top: 0; border-top: 0; }
.know-card dt { margin-bottom: 6px; color: var(--c-text); }
.know-card dd { margin: 0; color: var(--c-muted); }

/* Cómo trabajamos */
.phases li {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-top: 5px solid var(--c-text);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 22px;
}
.phases .label { color: var(--c-text); margin-bottom: 8px; }
.phases p:not(.label) { color: var(--c-muted); }

/* Encaje */
.fit ul { display: grid; gap: 12px; }
.fit li { position: relative; padding-left: 30px; color: var(--c-muted); }
.fit li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.45;
}
.fit-yes { border-top: 3px solid var(--green); }
.fit-yes li::before { content: "+"; color: var(--green); }
.fit-no li::before { content: "–"; color: var(--c-text); }
.fit-no { border-top: 3px solid var(--c-muted); }

/* Resultados */
.dashed-box {
  border: 2px dashed var(--c-line);
  border-radius: 12px;
  padding: 28px 22px;
  max-width: 760px;
}
.dashed-box p:first-child { font-size: 1.15rem; color: var(--c-text); }

/* Reseñas */
#resenas .section-intro { margin-bottom: 24px; }

/* Plazas piloto */
.pilot-box { display: grid; gap: 24px; justify-items: start; }
.pilot-note { margin: 20px 0 0; color: var(--c-muted); font-size: .9375rem; }
.dash-list { display: grid; gap: 10px; }
.dash-list li { position: relative; padding-left: 26px; color: var(--c-muted); }
.dash-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  color: var(--accent);
}

/* Quiénes somos */
.about { display: grid; gap: 40px; align-items: center; }
.about-photo { margin: 0; width: 100%; max-width: 460px; }
.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  background: var(--tint);
}
.about-photo figcaption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: .8125rem;
  color: var(--c-muted);
}
.about-copy h2 {
  font-size: clamp(1.9rem, 6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  margin-bottom: 16px;
}
.about-sub { font-size: 1.1875rem; color: var(--c-muted); margin: 0 0 28px; max-width: 46ch; }
.about-points { display: grid; gap: 12px; margin-bottom: 28px; }
.about-points li {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.about-points h3 { font-size: 1.0625rem; margin: 0 0 4px; }
.about-points p { margin: 0; color: var(--c-muted); font-size: .9375rem; }

/* Preguntas */
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 18px 56px 18px 20px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 20px 20px; color: var(--c-muted); }

/* Contacto */
.contact h2 { margin-bottom: 16px; }
.contact-phone { margin: 20px 0 0; color: var(--c-muted); }
.contact-phone a { color: var(--c-text); font-weight: 600; white-space: nowrap; }

/* ---------- Pie ---------- */
.site-footer { padding: 48px 0 40px; font-size: .9375rem; }
.footer-grid { display: grid; gap: 28px; }
.footer-grid .logo { margin-bottom: 8px; }
.footer-tag { color: var(--c-muted); max-width: 36ch; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--c-text);
}
.footer-links a:hover { color: var(--accent); }
.link-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--c-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-button:hover { color: var(--accent); }

/* ---------- Barra fija en móvil ---------- */
.mobile-bar {
  --c-text: var(--band-text);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px max(var(--gutter), env(safe-area-inset-right)) calc(10px + var(--safe-bottom)) max(var(--gutter), env(safe-area-inset-left));
  background: var(--band);
  border-top: 1px solid var(--band-line);
}
.mobile-bar .btn { min-height: 48px; padding: 8px 16px; }
.mobile-bar .btn:hover { transform: none; }

/* ---------- Banner de cookies ---------- */
.cookie-banner {
  position: fixed;
  z-index: 70;
  left: var(--gutter);
  right: var(--gutter);
  /* encima de la barra fija del móvil */
  bottom: calc(var(--bar-space) + 8px);
  max-width: 640px;
  max-height: calc(100vh - var(--header-h) - var(--bar-space) - 32px);
  overflow-y: auto;
  margin: 0 auto;
  padding: 18px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(8, 16, 29, .28);
  font-size: .9375rem;
}
.cookie-title { font-size: 1.125rem; margin-bottom: 6px; }
.cookie-title:focus { outline: none; }
.cookie-title:focus-visible { outline: 3px solid var(--accent); }
.cookie-text { color: var(--muted); margin-bottom: 14px; }
.cookie-text a { color: var(--text); }
.cookie-options { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.cookie-option { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; color: var(--muted); }
.cookie-option input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.cookie-option strong { display: block; color: var(--text); font-weight: 600; }
.cookie-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
/* Los tres botones con el mismo peso visual */
.cookie-btn {
  min-height: 44px;
  padding: 8px 10px;
  border: 2px solid var(--text);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9375rem;
  cursor: pointer;
}
.cookie-btn:hover { background: var(--tint); }

/* ---------- Páginas legales ---------- */
.legal-page { --bar-space: 0px; }
.legal { padding: 48px 0 72px; }
/* 60ch de "0" ≈ 70 caracteres de texto real por línea */
.legal-wrap { max-width: calc(60ch + 2 * var(--gutter)); counter-reset: legal; }
.legal h1 { font-size: clamp(2.1rem, 7vw, 3rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 12px; }
.legal h2 { font-size: clamp(1.35rem, 4vw, 1.6rem); max-width: none; margin: 48px 0 14px; }
.legal h2::before {
  counter-increment: legal;
  content: counter(legal) ".";
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .8em;
  color: var(--accent);
  margin-right: .5em;
}
.legal h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.legal p, .legal li, .legal dd { color: var(--c-muted); }
.legal strong { color: var(--c-text); font-weight: 600; }
.legal ul:not(.footer-links) { padding-left: 1.2em; margin: 0 0 1em; display: grid; gap: 6px; }
.legal a { color: var(--c-text); text-underline-offset: 3px; }
.legal a:hover { color: var(--accent); }
.legal-meta { font-family: var(--font-mono); font-size: .8125rem; color: var(--c-muted); margin-bottom: 24px; }
.legal-intro { font-size: 1.125rem; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; margin-bottom: 16px; }
.legal .back-bottom { margin-top: 40px; }

.toc {
  margin: 32px 0 8px;
  padding: 20px 22px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 10px;
}
.toc ol { margin: 0; padding-left: 1.4em; display: grid; gap: 4px; }
.toc li { color: var(--c-muted); font-family: var(--font-mono); font-size: .8125rem; padding: 4px 0; }
.toc a { font-family: var(--font-body); font-size: 1rem; text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.legal-data { margin: 0 0 1em; display: grid; gap: 12px; padding: 18px 20px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 10px; }
.legal-data div { display: grid; gap: 2px; }
.legal-data dt { font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); }
.legal-data dd { margin: 0; color: var(--c-text); }

.legal-table-wrap { overflow-x: auto; margin: 0 0 1em; border: 1px solid var(--c-line); border-radius: 10px; background: var(--c-surface); }
.legal-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .9375rem; }
.legal-table th, .legal-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-line); }
.legal-table tr:last-child > * { border-bottom: 0; }
.legal-table thead th { background: var(--tint); font-family: var(--font-mono); font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); }
.legal-table td { color: var(--c-muted); }
.legal-table td:first-child { color: var(--c-text); }
.legal-table code { font-family: var(--font-mono); font-size: .875rem; color: var(--c-text); }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .about-points { grid-template-columns: 1fr 1fr; gap: 16px; }
  .about-points li { padding: 20px 22px; }
  :root { --gutter: 28px; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .plan, .know-card, .dashed-box { padding: 36px; }
  .plan-featured { padding: 40px 36px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* ---------- Escritorio ---------- */
@media (min-width: 960px) {
  .about { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
  :root { --header-h: 72px; }
  body { --bar-space: 0px; }
  .mobile-bar { display: none; }

  .site-nav { display: block; margin-left: auto; }
  .site-nav ul { display: flex; gap: 28px; }
  .site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    text-decoration: none;
    font-weight: 500;
    font-size: .9375rem;
    color: var(--band-muted);
  }
  .site-nav a:hover { color: var(--band-text); }

  .section { padding: 104px 0; }
  .hero { padding: 88px 0 104px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }

  .grid-4 { grid-template-columns: repeat(4, 1fr); }

  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; padding-left: 0; padding-top: 40px; }
  .steps::before { top: 6px; bottom: auto; left: 7px; right: calc((100% - 96px) / 4 - 7px); width: auto; height: 2px; }
  .steps li::before { left: 0; top: -40px; }

  .plans { grid-template-columns: 1fr 1.12fr 1fr; gap: 20px; align-items: stretch; }
  .plan { padding: 32px 28px; }
  .plan-featured { order: 0; margin: -16px 0; padding: 48px 32px; }
  .know-card dl { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .know-card dl div { padding-top: 0; border-top: 0; }
}

@media (min-width: 1100px) {
  .agenda-grid { min-width: 0; grid-template-columns: 48px repeat(5, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq summary::after { transition: none; }
  .btn:hover { transform: none; }
}
