/* Fuentes alojadas en la propia web (licencia SIL OFL 1.1, ver /fonts): ninguna visita se envía a terceros */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/schibsted-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/schibsted-grotesk-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/newsreader-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/newsreader-latin-500-normal.woff2") format("woff2"); }

:root {
  --paper: #F2F4F1;
  --paper-2: #E7EBE7;
  --ink: #1C2B26;
  --muted: #5D6A65;
  --line: #CAD2CD;
  --blue: #2742C4;
  --blue-dk: #1C2F94;
  --marker: #F5CD3A;
  --ok: #1F7A4D;
  --err: #B3261E;
  --white: #FFFFFF;
  --pend: #FFF2BF;
  --pend-line: #C9A23A;

  --f-ui: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-text: "Newsreader", Georgia, "Times New Roman", serif;

  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4.5rem; --s9: 6.5rem;
  --radius: 10px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--f-text);
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--blue-dk); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--f-ui); margin: 0; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5.2vw, 3.9rem); font-weight: 800; letter-spacing: -.035em; max-width: 15ch; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 700; max-width: 22ch; }
h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 var(--s4); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: var(--s2) var(--s4); z-index: 20; }
.skip:focus { left: var(--s4); top: var(--s4); }

/* Highlighter: the one marking device on the page, used for key facts only */
.hl {
  background: linear-gradient(transparent 62%, var(--marker) 62%, var(--marker) 100%);
  padding: 0 .12em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* Texto pendiente de rellenar: se ve a propósito y `npm run comprobar` impide publicarlo */
.pendiente {
  background: var(--pend); color: var(--ink);
  outline: 1px dashed var(--pend-line); outline-offset: 1px;
  border-radius: 3px; padding: 0 .2em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 1rem/1 var(--f-ui);
  background: var(--blue); color: var(--white);
  border: 0; border-radius: 999px;
  padding: .95rem 1.4rem;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease;
}
.btn:hover { background: var(--blue-dk); color: var(--white); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn--small { padding: .6rem 1rem; font-size: .92rem; }
.link { font: 600 1rem/1.4 var(--f-ui); }
.link--app { display: inline-flex; align-items: center; gap: .5rem; }
.link--app img { width: 24px; height: 24px; flex: none; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); height: 64px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font: 800 1.2rem/1 var(--f-ui); letter-spacing: -.02em; }
.logo svg { width: 28px; height: 28px; }
.logo__b { color: var(--blue); }

/* Hero */
.hero { padding: var(--s8) 0 var(--s9); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s7); align-items: center; }
.lead { font-size: 1.3rem; line-height: 1.55; color: var(--ink); max-width: 36ch; margin: var(--s5) 0 var(--s6); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s5); }
.hero__note { margin-top: var(--s4); font: 400 .95rem/1.4 var(--f-ui); color: var(--muted); }

/* Demo: de la hoja de cálculo al cuadro de mando */
.demo { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1.1fr); align-items: center; gap: var(--s2); }
.demo figcaption { grid-column: 1 / -1; font: 400 .9rem/1.4 var(--f-ui); color: var(--muted); margin-top: var(--s4); }
.demo__arrow { height: 2px; background: var(--ink); position: relative; }
.demo__arrow::after { content: ""; position: absolute; right: -1px; top: -5px; border: 6px solid transparent; border-left: 8px solid var(--ink); border-right: 0; }

.sheet, .dash { background: var(--white); border: 1px solid var(--line); border-radius: 14px; font-family: var(--f-ui); overflow: hidden; }
.sheet__bar, .dash__bar { display: flex; align-items: center; gap: .45rem; padding: .5rem .75rem; background: var(--paper-2); font-size: .74rem; color: var(--muted); }
.sheet__bar::before { content: ""; width: 11px; height: 11px; border-radius: 3px; background: var(--ok); flex: none; }
.dash__bar::before { content: ""; width: 11px; height: 11px; border-radius: 3px; background: var(--blue); flex: none; }

.sheet__grid { width: 100%; border-collapse: collapse; font-size: .8rem; }
.sheet__grid th { background: var(--paper); color: var(--muted); font-weight: 500; font-size: .66rem; text-align: center; border: 1px solid var(--paper-2); padding: .2rem .3rem; }
.sheet__grid tbody th { width: 1.7rem; }
.sheet__grid td { border: 1px solid var(--paper-2); padding: .38rem .5rem; white-space: nowrap; transition: background-color .2s ease, box-shadow .2s ease; }
.sheet__grid td.h { font-weight: 700; }
.sheet__grid td.num { text-align: right; }
.sheet__grid td.is-sel { box-shadow: inset 0 0 0 2px var(--blue); background: color-mix(in srgb, var(--blue) 8%, var(--white)); }

.dash { box-shadow: 0 18px 40px -24px rgba(28, 43, 38, .45); }
.dash__body { padding: var(--s4); }
.dash__label { font-size: .74rem; color: var(--muted); margin: 0; }
.dash__kpi { font-weight: 800; font-size: 1.6rem; line-height: 1.15; letter-spacing: -.02em; margin: .1rem 0 0; }
.dash__delta { font-size: .78rem; font-weight: 600; color: var(--ok); margin: .1rem 0 var(--s3); min-height: 1.25em; }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 96px; border-bottom: 1px solid var(--line); }
.bar { flex: 1; height: calc(var(--v) * 100%); background: var(--ink); border-radius: 3px 3px 0 0; transition: background-color .25s ease; }
.bar--prev {
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--blue) 30%, transparent) 0 3px, transparent 3px 6px);
  box-shadow: inset 0 0 0 1.5px var(--blue);
}
.bar.is-on { background: var(--blue); }
.bar--prev.is-on { background: color-mix(in srgb, var(--blue) 40%, var(--white)); }
/* Alturas a escala, de 0 a 25.000 €: ventas reales de enero a abril y previsión lineal de mayo y junio */
.chart .bar:nth-child(1) { --v: .7296; }
.chart .bar:nth-child(2) { --v: .7642; }
.chart .bar:nth-child(3) { --v: .8152; }
.chart .bar:nth-child(4) { --v: .8748; }
.chart .bar:nth-child(5) { --v: .9176; }
.chart .bar:nth-child(6) { --v: .9663; }
.chart__x { display: flex; gap: 6px; margin-top: .3rem; font-size: .66rem; color: var(--muted); }
.chart__x span { flex: 1; text-align: center; }
.dash__prev { font-size: .8rem; margin: var(--s3) 0 0; }
.dash__prev b { font-weight: 700; padding: 0 .15em; border-radius: 3px; transition: background-color .25s ease; }
.dash__prev.is-on b { background: var(--marker); }
.dash__legend { display: flex; gap: var(--s3); font-size: .7rem; color: var(--muted); margin: .45rem 0 0; }
.k::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .3rem; vertical-align: -1px; background: var(--ink); }
.k--prev::before { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--blue) 30%, transparent) 0 2px, transparent 2px 4px); box-shadow: inset 0 0 0 1.5px var(--blue); }

/* Sections */
.section { padding: var(--s9) 0; border-top: 1px solid var(--line); }
.section--alt { background: var(--paper-2); border-top: 0; }
.section__intro { color: var(--muted); max-width: 56ch; margin: var(--s4) 0 var(--s7); font-size: 1.2rem; }

/* Services as a tariff sheet */
.tarifa { border-top: 2px solid var(--ink); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: var(--s7); padding: var(--s6) 0; border-bottom: 1px solid var(--line); }
.row__main p { max-width: 60ch; margin-top: var(--s3); }
.row__more { display: inline-block; margin-top: var(--s4); }
.checks { list-style: none; padding: 0; margin: var(--s4) 0 0; font: 400 .98rem/1.5 var(--f-ui); }
.checks li { padding-left: 1.5rem; position: relative; margin-bottom: .35rem; }
.checks li::before { content: ""; position: absolute; left: .1rem; top: .5em; width: .7rem; height: .38rem; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.row__price { text-align: right; padding-top: .2rem; }
.price { font: 700 1.6rem/1.2 var(--f-ui); letter-spacing: -.02em; margin: 0; }
.price small { display: block; font: 400 .9rem/1.4 var(--f-ui); color: var(--muted); letter-spacing: 0; margin-top: .3rem; }
.price__alt { font: 400 .9rem/1.4 var(--f-ui); color: var(--muted); margin-top: var(--s3); }
.price--inline { font-size: 1.15rem; margin: var(--s4) 0; }

/* Big Data: el recorrido de los datos, de izquierda a derecha */
.flujo { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); }
.etapa { position: relative; display: flex; flex-direction: column; border-top: 2px solid var(--ink); padding-top: var(--s4); }
.etapa:not(:last-child)::after { content: ""; position: absolute; top: -6px; right: -1px; border: 5px solid transparent; border-left: 8px solid var(--ink); border-right: 0; }
.etapa h3 { font-size: 1.2rem; margin-bottom: var(--s2); }
.etapa p { font-size: 1.02rem; }
.tec { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.tec li { font: 500 .78rem/1 var(--f-ui); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .38rem .6rem; }
.bd__extra { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s7); margin-top: var(--s7); padding-top: var(--s6); border-top: 1px solid var(--line); }
.bd__extra h3 { font-size: 1.2rem; margin-bottom: var(--s2); }
.bd__extra p { font-size: 1.02rem; max-width: 52ch; }
.bd__extra .tec { margin-top: var(--s3); }
.bd__quien { margin: var(--s7) 0 0; font: 400 1rem/1.5 var(--f-ui); color: var(--muted); max-width: 70ch; }
.bd__quien a { font-weight: 600; white-space: nowrap; }

/* Products */
.productos { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--s7); align-items: start; }
.prod { background: var(--paper); border-radius: var(--radius); padding: var(--s6); border-left: 4px solid var(--blue); }
.prod__head { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s4); align-items: start; }
.prod__head h3 { padding-top: .2rem; }
.prod__logo { width: 64px; height: 64px; }
.prod__what { font: 600 1.05rem/1.4 var(--f-ui); color: var(--muted); margin: var(--s2) 0 var(--s4); }
.prod__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); }
.prod__note { font: 400 .88rem/1.4 var(--f-ui); color: var(--muted); }
.prod__version { font: 600 .92rem/1.4 var(--f-ui); color: var(--ink); margin: var(--s4) 0 0; }
.prod__help { font: 400 .85rem/1.45 var(--f-ui); color: var(--muted); margin: var(--s3) 0 0; max-width: 52ch; }
.proximos__t { font: 600 .95rem/1.2 var(--f-ui); color: var(--muted); margin: 0 0 var(--s3); }
.proximo { border-top: 1px solid var(--line); padding: var(--s5) 0; }
.proximo:last-child { padding-bottom: 0; }
.proximo h3 { font-size: 1.2rem; }
.proximo p { font-size: 1.02rem; }
.estado { display: inline-block; font: 600 .8rem/1 var(--f-ui); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .38rem .65rem; margin: var(--s2) 0 var(--s3); }

/* Steps: a real sequence, so numbered */
.pasos { list-style: none; padding: 0; margin: var(--s7) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); counter-reset: paso; }
.pasos li { counter-increment: paso; border-top: 2px solid var(--ink); padding-top: var(--s4); }
.pasos li::before { content: counter(paso); display: block; font: 800 2.4rem/1 var(--f-ui); color: var(--blue); margin-bottom: var(--s3); letter-spacing: -.03em; }
.pasos h3 { font-size: 1.15rem; margin-bottom: var(--s2); }
.pasos p { font-size: 1.02rem; color: var(--ink); }

/* Data residency */
.section--ink { background: var(--ink); color: var(--paper); border-top: 0; }
.section--ink h2 { color: var(--white); }
.datos { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s8); align-items: center; }
.datos__text > p { margin: var(--s5) 0; max-width: 54ch; color: #D6DDD9; }
.datos__list { list-style: none; padding: 0; margin: 0; font: 400 1rem/1.5 var(--f-ui); color: #D6DDD9; }
.datos__list li { padding: var(--s3) 0; border-top: 1px solid #3A4A44; }
.datos__list b { color: var(--white); font-weight: 600; }
.mapa { margin: 0; }
.mapa svg { width: 100%; height: auto; font-family: var(--f-ui); }
.mapa rect { fill: none; stroke: #8FA39B; stroke-width: 1.5; }
.mapa__es > rect { fill: #24372F; stroke: var(--marker); stroke-width: 2; }
.mapa rect.zona { fill: var(--marker); stroke: none; }
.mapa text { fill: var(--white); font-size: 17px; font-weight: 700; }
.mapa text.s { font-size: 12.5px; font-weight: 400; fill: #C6D0CB; }
.mapa__link { fill: none; stroke: #8FA39B; stroke-width: 1.5; stroke-dasharray: 5 5; }
.mapa figcaption { font: 400 .9rem/1.4 var(--f-ui); color: #AEBBB5; margin-top: var(--s3); }

/* ¿Quiénes somos? */
.conocenos { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--s8); align-items: start; }
.conocenos .section__intro { margin-bottom: 0; }
.equipo { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s5); }
.persona { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: var(--s4); border-top: 1px solid var(--line); padding-top: var(--s5); }
.persona > :not(.persona__foto) { grid-column: 2; }
.persona__foto { grid-row: 1 / span 3; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font: 500 .8rem/1 var(--f-ui); color: var(--muted); background: var(--paper-2); }
.persona__foto.pendiente { padding: 0; border-radius: 50%; background: var(--pend); }
img.persona__foto { object-fit: cover; }
.persona h3 { font-size: 1.2rem; }
.persona__rol { font: 600 .95rem/1.3 var(--f-ui); color: var(--blue); margin: .3rem 0 var(--s2); }
.persona__bio { font-size: 1.02rem; margin: 0; }

/* Contact */
.contacto { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--s8); }
.contacto__text p { color: var(--muted); max-width: 36ch; margin-top: var(--s4); }
.canales { margin: var(--s5) 0 0; font: 400 1rem/1.5 var(--f-ui); }
.canales div { padding: var(--s3) 0; border-top: 1px solid var(--line); }
.canales dt { font-size: .85rem; color: var(--muted); }
.canales dd { margin: .15rem 0 0; font-weight: 600; font-size: 1.1rem; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5) var(--s4); font-family: var(--f-ui); }
.f { grid-column: 1 / -1; display: flex; flex-direction: column; gap: .4rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.f--half { grid-column: span 1; }
.f label, .f legend { font-weight: 600; font-size: .95rem; padding: 0; }
.opt { font-weight: 400; color: var(--muted); }
.f input, .f textarea {
  font: 400 1rem/1.4 var(--f-ui); color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line); border-radius: 8px;
  padding: .75rem .85rem; width: 100%;
}
.f textarea { resize: vertical; min-height: 130px; }
.f input:focus, .f textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 22%, transparent); }
.f [aria-invalid="true"] { border-color: var(--err); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.chips label { position: relative; font-weight: 500; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-block; padding: .5rem .9rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); font-size: .92rem; cursor: pointer; }
.chips input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.f--check { flex-direction: row; align-items: flex-start; gap: .6rem; }
.f--check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--blue); flex: none; }
.f--check label { font-weight: 400; font-size: .92rem; color: var(--muted); }
.f--send { flex-direction: row; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.form__status { margin: 0; font-size: .95rem; }
.form__status.is-ok { color: var(--ok); font-weight: 600; }
.form__status.is-err { color: var(--err); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Legal pages */
.legal { padding: var(--s8) 0; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); max-width: none; margin-bottom: var(--s5); }
.legal h2 { font-size: 1.35rem; margin: var(--s6) 0 var(--s3); max-width: none; }
.legal table { width: 100%; border-collapse: collapse; font: 400 .95rem/1.45 var(--f-ui); margin: var(--s3) 0 var(--s2); }
.legal th, .legal td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font-weight: 600; background: var(--paper-2); }
.legal .leyenda { font: 400 .85rem/1.45 var(--f-ui); color: var(--muted); }

/* Responsive */
@media (max-width: 980px) {
  .hero__in, .datos, .contacto, .productos, .conocenos { grid-template-columns: minmax(0, 1fr); gap: var(--s7); }
  .demo { max-width: 600px; }
  .pasos, .flujo { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s6); }
  .etapa:nth-child(2)::after { display: none; }
  .row { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .row__price { text-align: left; }
  .mapa { max-width: 420px; }
}
@media (max-width: 640px) {
  body { font-size: 1.06rem; }
  .hero { padding: var(--s7) 0 var(--s8); }
  .section { padding: var(--s8) 0; }
  .demo { grid-template-columns: minmax(0, 1fr); }
  .demo__arrow { width: 2px; height: 26px; justify-self: center; }
  .demo__arrow::after { right: -5px; top: auto; bottom: -1px; border: 6px solid transparent; border-top: 8px solid var(--ink); border-bottom: 0; }
  .pasos, .flujo, .bd__extra { grid-template-columns: minmax(0, 1fr); }
  .bd__extra { gap: var(--s6); }
  .etapa { border-top: 0; border-left: 2px solid var(--ink); padding: 0 0 0 var(--s4); }
  .etapa:not(:last-child)::after { display: block; top: auto; bottom: -14px; right: auto; left: -6px; border: 5px solid transparent; border-top: 8px solid var(--ink); border-bottom: 0; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .f--half { grid-column: 1 / -1; }
  .foot__in { grid-template-columns: minmax(0, 1fr); }
  .persona { grid-template-columns: 56px minmax(0, 1fr); }
  .persona__foto { width: 56px; height: 56px; }
}

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

/* ---------- Menú principal con desplegables ---------- */
.top__in { position: relative; }
.nav__abrir { display: none; }
.nav__lista { display: flex; align-items: center; gap: var(--s1); list-style: none; margin: 0; padding: 0; font-family: var(--f-ui); }
.nav__cta { margin-left: var(--s3); }
.menu { position: relative; }
.menu__btn {
  display: inline-flex; align-items: center; gap: .45rem;
  font: 500 .95rem/1 var(--f-ui); color: var(--ink);
  background: none; border: 0; border-radius: 8px; padding: .65rem .75rem; cursor: pointer;
}
.menu__btn::after {
  content: ""; width: .42rem; height: .42rem; margin-top: -.2rem;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg); transition: transform .15s ease;
}
.menu__btn[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: .2rem; }
.menu__btn:hover, .menu__btn[aria-expanded="true"] { background: var(--paper-2); }
.menu__btn[data-actual] { color: var(--blue); font-weight: 600; }
.menu__lista {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 30;
  min-width: 320px; list-style: none; margin: 0; padding: .4rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 20px 44px -22px rgba(28, 43, 38, .4);
}
.menu__btn[aria-expanded="true"] + .menu__lista { display: block; }
.nav:not(.con-js) .menu:focus-within .menu__lista { display: block; }
.menu__lista a { display: block; padding: .65rem .8rem; border-radius: 8px; color: var(--ink); text-decoration: none; }
.menu__lista a:hover, .menu__lista a:focus-visible { background: var(--paper); }
.menu__lista b { display: block; font: 600 .97rem/1.3 var(--f-ui); }
.menu__lista span { display: block; font: 400 .84rem/1.35 var(--f-ui); color: var(--muted); margin-top: .15rem; }
.menu__lista a[aria-current="page"] b { color: var(--blue); }

@media (max-width: 900px) {
  .nav__abrir {
    display: inline-flex; align-items: center; gap: .5rem; margin-left: auto;
    font: 600 .95rem/1 var(--f-ui); color: var(--ink); background: var(--white);
    border: 1.5px solid var(--line); border-radius: 999px; padding: .6rem 1rem; cursor: pointer;
  }
  .nav__abrir::before { content: ""; width: 14px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; box-shadow: inset 0 4px 0 -2px var(--white), inset 0 6px 0 -2px currentColor; }
  .nav__abrir[aria-expanded="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
  .nav__abrir[aria-expanded="true"]::before { box-shadow: inset 0 4px 0 -2px var(--ink), inset 0 6px 0 -2px currentColor; }
  .nav.con-js { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -30px rgba(28, 43, 38, .5); max-height: calc(100vh - 64px); overflow-y: auto; }
  .nav.con-js.esta-abierto { display: block; }
  /* Sin JavaScript: el menú se queda abierto debajo del logo */
  .top__in:has(.nav:not(.con-js)) { height: auto; flex-wrap: wrap; padding-top: .75rem; }
  .top__in:has(.nav:not(.con-js)) .nav__abrir { display: none; }
  .nav:not(.con-js) { width: 100%; }
  .nav__lista { flex-direction: column; align-items: stretch; gap: 0; padding: .25rem max(16px, env(safe-area-inset-left, 0px)) 1.25rem; }
  .menu__btn { width: 100%; justify-content: space-between; border-radius: 0; padding: 1rem .1rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .menu__btn:hover, .menu__btn[aria-expanded="true"] { background: none; }
  .menu__lista { position: static; min-width: 0; box-shadow: none; border: 0; border-radius: 0; background: transparent; padding: .25rem 0 .75rem; }
  .menu__lista a { padding: .6rem .5rem; }
  .nav__cta { margin: var(--s5) 0 0; }
  .nav__cta .btn { width: 100%; padding: .9rem 1rem; }
}

/* ---------- Páginas interiores ---------- */
.cabecera { padding: var(--s8) 0 var(--s8); }
.cabecera--corta { padding-bottom: var(--s5); }
.cabecera h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); max-width: 18ch; }
.cabecera .lead { max-width: 52ch; }
.cabecera--corta .lead { margin-bottom: 0; }
.cabecera__in { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s7); align-items: end; }
.migas { display: flex; flex-wrap: wrap; gap: .45rem; font: 500 .9rem/1.3 var(--f-ui); color: var(--muted); margin: 0 0 var(--s5); }
.migas a { color: var(--muted); }
.resumen { border-top: 2px solid var(--ink); padding-top: var(--s4); font-family: var(--f-ui); }
.resumen .checks { margin-top: var(--s4); }
.resumen--aviso { border-top-color: var(--marker); font: 400 1rem/1.55 var(--f-ui); }
.resumen--aviso p { margin-bottom: var(--s3); }
.resumen__t { font: 700 1.1rem/1.3 var(--f-ui); margin: 0 0 var(--s3); }
.section--sin-linea { border-top: 0; padding-top: var(--s5); }
.h2--pequeno { font-size: 1.35rem; margin-bottom: var(--s3); }
.producto__titulo { display: flex; align-items: center; gap: var(--s4); }
.producto__titulo img { width: 72px; height: 72px; flex: none; }
.producto__marca { width: 72px; height: 72px; flex: none; display: grid; place-items: center; border-radius: 18px; background: var(--ink); color: var(--marker); font: 800 2.4rem/1 var(--f-ui); letter-spacing: -.04em; }

.descarga { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); }
.btn--grande { padding: 1.1rem 1.7rem; font-size: 1.08rem; }
.descarga__version { font: 600 .95rem/1.4 var(--f-ui); margin: 0; }
.descarga__req { font: 400 .9rem/1.4 var(--f-ui); color: var(--muted); margin: .15rem 0 0; }
.precios { width: 100%; border-collapse: collapse; font: 400 .98rem/1.35 var(--f-ui); }
.precios th { text-align: left; font-weight: 400; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.precios td { text-align: right; font-weight: 700; padding: .55rem 0 .55rem var(--s4); border-bottom: 1px solid var(--line); white-space: nowrap; }
.precios td span { font-weight: 400; color: var(--muted, inherit); font-size: .88em; }
.precios .precios__grupo th { font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; padding-top: 1.1rem; border-bottom: 1px solid var(--ink); }
.precios tbody:first-child .precios__grupo th { padding-top: .2rem; }

/* Bloques de contenido */
.indice { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6) var(--s7); }
.indice--tres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.indice__item { border-top: 2px solid var(--ink); padding-top: var(--s4); display: flex; flex-direction: column; }
.indice__item h3 a { color: var(--ink); text-decoration: none; }
.indice__item h3 a:hover { color: var(--blue); }
.indice__item p { margin: var(--s2) 0 var(--s3); font-size: 1.05rem; }
.indice__item .link { margin-top: auto; }
.funciones { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6) var(--s5); }
.funciones li { border-top: 1px solid var(--line); padding-top: var(--s4); }
.funciones h3 { font-size: 1.12rem; margin-bottom: var(--s2); }
.funciones p { font-size: 1.02rem; margin: 0; }
.checks--grande { font-size: 1.02rem; max-width: 70ch; }
.checks--grande li { margin-bottom: .65rem; }
.checks--grande b { font-weight: 600; }
.dos-columnas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s8); }
.dos-columnas h2 { margin-bottom: var(--s4); }
.columna__t { font-size: 1.15rem; margin-bottom: var(--s4); }
.pasos--lista { grid-template-columns: minmax(0, 1fr); margin-top: 0; gap: var(--s4); }
.pasos--lista li { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); column-gap: var(--s3); border-top: 1px solid var(--line); padding-top: var(--s3); }
.pasos--lista li::before { font-size: 1.6rem; margin: 0; grid-row: span 2; }
.pasos--lista p { margin: 0; }
.cierre { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s6); align-items: end; }
.cierre .section__intro { margin-bottom: 0; }
.cierre__acciones { font: 400 .98rem/1.5 var(--f-ui); color: var(--muted); }
.cierre__acciones p { margin: var(--s4) 0 0; }

/* Tablas de precios */
.tabla-scroll { overflow-x: auto; margin: 0 0 var(--s3); }
.tabla { width: 100%; border-collapse: collapse; font: 400 .95rem/1.45 var(--f-ui); background: var(--white); border-radius: var(--radius); }
.tabla--estrecha { max-width: 720px; }
.tabla th, .tabla td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabla thead th { font-weight: 600; background: var(--ink); color: var(--white); }
.tabla thead th:first-child { border-top-left-radius: var(--radius); }
.tabla thead th:last-child { border-top-right-radius: var(--radius); }
.tabla tbody th { font-weight: 600; }
.tabla .num { text-align: right; white-space: nowrap; }
.tabla__t { font-size: 1.2rem; margin: var(--s7) 0 var(--s4); }
.leyenda { font: 400 .86rem/1.5 var(--f-ui); color: var(--muted); max-width: 90ch; }
.declaracion { white-space: pre-wrap; font: 400 .95rem/1.6 var(--f-ui); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); overflow-wrap: anywhere; }
.legal .migas { margin-bottom: var(--s5); }
select { font: 400 1rem/1.4 var(--f-ui); color: var(--ink); background: var(--white); border: 1.5px solid var(--line); border-radius: 8px; padding: .75rem .85rem; width: 100%; }
select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 22%, transparent); }
.form__status b { font-weight: 800; }

/* ---------- Pie ---------- */
.foot { background: var(--ink); color: #C6D0CB; padding: var(--s7) 0 var(--s6); font: 400 .95rem/1.55 var(--f-ui); }
.foot a { color: var(--white); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__in { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--s6); }
.foot__marca b { color: var(--white); font: 800 1.15rem/1.4 var(--f-ui); }
.foot__t { color: var(--white); font-weight: 600; margin: 0 0 var(--s3); }
.foot__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.foot__col a { color: #C6D0CB; }
.foot__col a:hover, .foot__col a[aria-current="page"] { color: var(--white); }
.foot__legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); border-top: 1px solid #3A4A44; padding-top: var(--s4); font-size: .86rem; }
.foot__legal a { color: #C6D0CB; text-decoration: underline; }

@media (max-width: 980px) {
  .cabecera__in, .dos-columnas, .cierre { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
  .funciones, .indice--tres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot__marca { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .cabecera { padding: var(--s6) 0 var(--s7); }
  .indice, .indice--tres, .funciones { grid-template-columns: minmax(0, 1fr); }
  .foot__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .producto__titulo img, .producto__marca { width: 56px; height: 56px; }
  .producto__marca { font-size: 1.9rem; border-radius: 14px; }
}
.wrap > h2 + .funciones, .wrap > h2 + .indice, .wrap > h2 + .dos-columnas, .wrap > h2 + .tabla-scroll { margin-top: var(--s6); }

/* ---------- Portada de consultora ---------- */
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); max-width: 11ch; }
.hero .lead { max-width: 44ch; }
.esquema { margin: 0; }
.esquema svg { width: 100%; height: auto; font-family: var(--f-ui); overflow: visible; }
.esquema__t { font-size: 13px; font-weight: 600; fill: var(--muted); }
.esquema .nodo rect { fill: var(--white); stroke: var(--line); stroke-width: 1.2; }
.esquema .nodo text { font-size: 12.5px; font-weight: 500; fill: var(--ink); }
.esquema .nodo--fin rect { fill: var(--white); stroke: var(--blue); stroke-width: 1.4; }
.esquema .nodo--fin text { fill: var(--blue-dk); font-weight: 600; }
.esquema__lineas path { fill: none; stroke: #A9B6B0; stroke-width: 1.3; }
.esquema__centro > rect { fill: var(--ink); }
.esquema__ct { font-size: 15px; font-weight: 800; fill: var(--white); letter-spacing: -.01em; }
.esquema .capa rect { fill: #2C3F38; }
.esquema .capa text { font-size: 12px; fill: #DDE5E1; }
.esquema__pulsos circle { fill: var(--marker); opacity: 0; }
.esquema__pulsos circle.fin { fill: var(--blue); }
@media (prefers-reduced-motion: reduce) { .esquema__pulsos { display: none; } }

.credenciales { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.credenciales__lista { list-style: none; margin: 0; padding: var(--s5) 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); font-family: var(--f-ui); }
.credenciales__lista li { padding-left: var(--s4); border-left: 3px solid var(--marker); }
.credenciales__lista b { display: block; font-size: 1rem; font-weight: 700; line-height: 1.3; }
.credenciales__lista span { display: block; font-size: .9rem; line-height: 1.45; color: var(--muted); margin-top: .3rem; }

.sectores { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6) var(--s5); }
.sectores li { padding-top: var(--s4); border-top: 2px solid var(--ink); }
.sectores h3 { font-size: 1.1rem; margin-bottom: var(--s2); }
.sectores p { font-size: 1rem; margin: 0; }
.tec--grande { margin-top: var(--s5); gap: .5rem; }
.tec--grande li { font-size: .92rem; padding: .55rem .85rem; background: var(--white); }
.indice__con-logo { display: flex; align-items: center; gap: .6rem; }
.indice__con-logo img { width: 32px; height: 32px; }
.mini-marca { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--ink); color: var(--marker); font: 800 1.1rem/1 var(--f-ui); }

.section--ink .section__intro { color: #C6D0CB; }
.section--ink .cierre__acciones { color: #C6D0CB; }
.section--ink .cierre__acciones a:not(.btn) { color: var(--white); }
.btn--claro { background: var(--marker); color: var(--ink); }
.btn--claro:hover { background: #FFE07A; color: var(--ink); }

@media (max-width: 980px) {
  .credenciales__lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sectores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .esquema { max-width: 560px; }
}
@media (max-width: 640px) {
  .credenciales__lista, .sectores { grid-template-columns: minmax(0, 1fr); }
}
.section--ink + .foot, main:has(> .section--ink:last-child) + .foot { border-top: 1px solid #3A4A44; }
.persona__foto--iniciales { background: var(--ink); color: var(--marker); font: 800 1.3rem/1 var(--f-ui); letter-spacing: -.02em; }
