/* INVENTUM Patentes · hoja de estilos única
   Sistema de formas: botones y campos 10px · tarjetas 16px · pastillas de estado 999px
   Color de acento único: rojo de marca. Texto y botones usan --red-ink (contraste AA). */

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #262b31;
  --ink-2: #4a525b;
  --anth: #545c65;
  --anth-900: #23272c;
  --anth-800: #2f343a;
  --paper: #f3f4f6;
  --paper-2: #e9ecef;
  --line: #d9dde2;
  --white: #ffffff;
  --red: #ed1c24;
  --red-ink: #c5121a;
  --red-ink-hover: #a90f16;
  --red-soft: #fdecec;
  --ok: #1d6b45;
  --pv: #fff3bf;
  --pv-ink: #5c4a00;

  --r-ctl: 10px;
  --r-card: 16px;
  --shadow: 0 1px 2px rgb(35 39 44 / .06), 0 10px 30px -12px rgb(35 39 44 / .22);
  --ease: cubic-bezier(.23, 1, .32, 1);
  --wrap: 1180px;
  --gut: clamp(1.1rem, 4vw, 2rem);
  --bar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--red-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--red-ink-hover); }
p { margin: 0 0 1rem; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .75rem; letter-spacing: -.02em; text-wrap: balance; color: var(--anth-900); }
h1 { font-size: clamp(2.05rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3.3vw, 2.35rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
strong { font-weight: 700; }
ul, ol { padding-left: 1.2rem; margin: 0 0 1rem; }
li { margin-bottom: .4rem; }

:focus-visible { outline: 3px solid var(--red-ink); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--anth-900); color: #fff; padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 780px; }
.muted { color: var(--ink-2); }
.mt { margin-top: 1.2rem; }
.small { font-size: .9rem; line-height: 1.55; }
.tiny { font-size: .8125rem; line-height: 1.5; color: var(--ink-2); }

/* ---------- Marca: las 3 barras ---------- */
.bars { display: inline-grid; gap: 3px; width: 22px; flex: none; }
.bars i { display: block; height: 4px; background: var(--red); border-radius: 1px; }
.bars--lg { width: 38px; gap: 6px; }
.bars--lg i { height: 7px; }
.bars i.off { background: var(--line); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.35rem;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; white-space: nowrap;
  border-radius: var(--r-ctl); border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--red-ink); color: #fff; }
.btn--primary:hover { background: var(--red-ink-hover); color: #fff; }
.btn--ghost { background: transparent; color: var(--anth-900); border-color: var(--anth); }
.btn--ghost:hover { background: var(--anth-900); color: #fff; border-color: var(--anth-900); }
.btn--light { background: #fff; color: var(--anth-900); }
.btn--light:hover { background: var(--paper-2); color: var(--anth-900); }
.btn--block { width: 100%; }
.btn svg { width: 20px; height: 20px; }
.btn[disabled] { opacity: .65; cursor: progress; }
.cta-note { display: block; margin-top: .55rem; font-size: .875rem; color: var(--ink-2); }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Aviso de preview (quitar al lanzar: clase .is-preview en <html>) ---------- */
.pv { display: none; }
.is-preview .pv {
  display: inline-block; font-size: .72rem; font-weight: 700; line-height: 1.3;
  background: var(--pv); color: var(--pv-ink); border-radius: 999px; padding: .1rem .55rem; margin-left: .35rem;
  vertical-align: middle; letter-spacing: 0;
}
.is-preview .pv-strip { display: block; background: var(--pv); color: var(--pv-ink); font-size: .8125rem; text-align: center; padding: .4rem 1rem; }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgb(255 255 255 / .96); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { width: 170px; height: auto; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a:not(.btn) { color: var(--anth-900); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .6rem .7rem; border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:not(.btn):hover { background: var(--paper); }
.nav a[aria-current="page"] { color: var(--red-ink); }
.nav .btn { margin-left: .5rem; min-height: 44px; padding: .55rem 1rem; font-size: .95rem; }
.menu-btn { display: none; }

@media (max-width: 959px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; min-width: 44px; padding: .5rem .8rem;
    background: var(--paper); border: 0; border-radius: var(--r-ctl); font: inherit; font-weight: 700; color: var(--anth-900); cursor: pointer;
  }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: .5rem var(--gut) 1rem; box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-6px); visibility: hidden;
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s linear .18s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .18s var(--ease), transform .18s var(--ease); }
  .nav a:not(.btn) { padding: .8rem .4rem; font-size: 1.05rem; border-bottom: 1px solid var(--paper-2); border-radius: 0; }
  .nav .btn { margin: .8rem 0 0; }
  .brand img { width: 132px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--anth-900); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgb(28 31 35 / .94) 0%, rgb(35 39 44 / .86) 48%, rgb(35 39 44 / .62) 100%); }
.hero .wrap { display: grid; gap: 2.2rem; padding-top: clamp(2.5rem, 7vw, 5.5rem); padding-bottom: clamp(2.5rem, 7vw, 5.5rem); align-items: center; }
.hero h1 { color: #fff; max-width: 17ch; }
.hero__sub { font-size: clamp(1.08rem, 1.8vw, 1.25rem); color: #e6e9ec; max-width: 44ch; margin-bottom: 1.6rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; }
.hero .cta-note { color: #cfd4d9; }
.hero .link-arrow { color: #fff; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1.25fr .75fr; gap: 3rem; } }

.price-card { background: #fff; color: var(--ink); border-radius: var(--r-card); padding: 1.5rem 1.5rem 1.25rem; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .6); max-width: 420px; }
.price-card__head { display: flex; align-items: center; gap: .75rem; font-weight: 700; color: var(--anth-900); font-size: .98rem; line-height: 1.35; margin-bottom: 1rem; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.price-row + .price-row { border-top: 1px solid var(--paper-2); }
.price-row span { font-size: .95rem; color: var(--ink-2); line-height: 1.35; }
.price-row b { font-size: clamp(1.7rem, 3.2vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; color: var(--anth-900); white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-row--hl b { color: var(--red-ink); font-size: clamp(2.2rem, 4.4vw, 2.9rem); }
.price-card .tiny { margin: .6rem 0 0; }

/* ---------- Secciones ---------- */
.section { padding: clamp(3.2rem, 8vw, 6rem) 0; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--anth-900); color: #e6e9ec; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section-head p { color: var(--ink-2); font-size: 1.1rem; }
.section--dark .section-head p { color: #cfd4d9; }

/* Mito del precio */
.myth { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .myth { grid-template-columns: .9fr 1.1fr; gap: 3.5rem; } }
.bignum { background: #fff; border-radius: var(--r-card); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
.bignum__label { font-weight: 700; color: var(--anth-900); margin-bottom: .25rem; }
.bignum__value { display: block; font-size: clamp(3.6rem, 11vw, 6rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--red-ink); font-variant-numeric: tabular-nums; margin: .4rem 0 .6rem; }
.bignum__value small { font-size: .45em; letter-spacing: -.01em; }
.fees { display: grid; gap: .75rem; margin-top: 1.5rem; }
.fee { display: grid; grid-template-columns: 1fr auto auto; gap: .25rem 1.25rem; align-items: baseline; background: #fff; border-radius: var(--r-ctl); padding: .95rem 1.1rem; }
.fee__name { font-weight: 700; color: var(--anth-900); line-height: 1.3; }
.fee__name span { display: block; font-weight: 500; font-size: .875rem; color: var(--ink-2); }
.fee__col { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fee__col span { display: block; font-size: .75rem; color: var(--ink-2); font-weight: 600; }
.fee__col b { font-size: 1.15rem; }
.fee__col--pyme b { color: var(--red-ink); }
@media (max-width: 520px) {
  .fee { grid-template-columns: 1fr 1fr; }
  .fee__name { grid-column: 1 / -1; }
  .fee__col { text-align: left; }
}
.source { font-size: .8125rem; color: var(--ink-2); margin-top: 1rem; }

/* Pasos del plan */
.steps { display: grid; gap: 1rem; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.5rem; }
.step .bars { margin-bottom: 1rem; }
.step h3 { margin-bottom: .5rem; }
.step p:last-child { margin-bottom: 0; }
.section--paper .step { border-color: transparent; }
.plan-foot { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; margin-top: 2rem; }
.plan-foot .tiny { max-width: 52ch; margin: 0; }

/* Antes de enseñar: lista con barras */
.rules { display: grid; gap: 0; max-width: 820px; }
.rule { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; padding: 1.25rem 0; border-top: 1px solid rgb(255 255 255 / .12); }
.rule:first-child { border-top: 0; }
.rule .bars { margin-top: .45rem; }
.rule h3 { margin-bottom: .3rem; }
.rule p { margin: 0; color: #cfd4d9; }

/* Ayudas: bloque partido */
.aid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .aid { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; } }
.aid__list { display: grid; gap: .85rem; }
.aid__item { background: var(--paper); border-radius: var(--r-ctl); padding: 1rem 1.15rem; }
.aid__item b { display: block; color: var(--anth-900); }
.aid__item p { margin: .2rem 0 0; font-size: .95rem; color: var(--ink-2); }

/* Quiénes somos */
.about { display: grid; gap: 2rem; }
@media (min-width: 900px) { .about { grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: start; } }
.person { display: flex; gap: 1rem; align-items: center; padding: 1rem 0; border-top: 1px solid var(--line); }
.person__mono { width: 56px; height: 56px; border-radius: 50%; background: var(--anth-900); color: #fff; display: grid; place-items: center; font-weight: 800; letter-spacing: .02em; flex: none; }
.person b { display: block; color: var(--anth-900); }
.address { background: var(--paper); border-radius: var(--r-card); padding: 1.4rem; }
.address p:last-child { margin: 0; }

/* Tres caminos */
.paths { display: grid; gap: 1rem; }
@media (min-width: 900px) { .paths { grid-template-columns: 1.3fr 1fr 1fr; } }
.path { display: flex; flex-direction: column; justify-content: space-between; gap: 1.2rem; min-height: 190px; padding: 1.5rem; border-radius: var(--r-card); text-decoration: none; color: var(--ink); background: var(--paper); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.path:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.path h3 { margin: 0 0 .35rem; }
.path p { margin: 0; color: var(--ink-2); }
.path span.go { font-weight: 700; color: var(--red-ink); }
.path--main { background: var(--anth-900); color: #e6e9ec; }
.path--main h3 { color: #fff; }
.path--main p { color: #cfd4d9; }
.path--main span.go { color: #fff; }
.path--main:hover { color: #e6e9ec; }
.path small { display: block; font-size: .8125rem; color: var(--ink-2); margin-top: .5rem; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.1rem 0; min-height: 56px; font-weight: 700; color: var(--anth-900); font-size: 1.05rem; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2.5px solid var(--red-ink); border-bottom: 2.5px solid var(--red-ink); transform: rotate(45deg) translateY(-3px); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details > div { padding: 0 0 1.2rem; color: var(--ink-2); max-width: 68ch; }
.faq details > div p:last-child { margin: 0; }

/* Cierre + formulario */
.close { display: grid; gap: 2rem; }
@media (min-width: 960px) { .close { grid-template-columns: .85fr 1.15fr; gap: 3.5rem; align-items: start; } }
.close__alt { display: grid; gap: .75rem; margin-top: 1.5rem; }
.close__alt .btn { justify-content: flex-start; }

.form-card { background: #fff; color: var(--ink); border-radius: var(--r-card); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); }
.section--dark .form-card { box-shadow: none; }
.warn { display: grid; grid-template-columns: auto 1fr; gap: .85rem; align-items: start; background: var(--red-soft); color: #5e1013; border-radius: var(--r-ctl); padding: .9rem 1rem; margin-bottom: 1.25rem; font-size: .95rem; line-height: 1.5; }
.warn .bars { margin-top: .3rem; }
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field label, .field legend { font-weight: 700; font-size: .95rem; color: var(--anth-900); }
.field .opt { font-weight: 500; color: var(--ink-2); }
.grid-2 { display: grid; gap: 0 1rem; }
@media (min-width: 620px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; min-height: 50px; padding: .7rem .85rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid #8a939c; border-radius: var(--r-ctl);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #69727b; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--red-ink); box-shadow: 0 0 0 3px rgb(197 18 26 / .22); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red-ink); }
.err { color: var(--red-ink); font-size: .875rem; font-weight: 600; margin: 0; }
.err:empty { display: none; }
.check { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; font-size: .95rem; line-height: 1.5; margin: .5rem 0 1rem; }
.check input { width: 24px; height: 24px; margin: 0; accent-color: var(--red-ink); }
.check label { cursor: pointer; }
.hp { display: none !important; }
.rgpd { font-size: .8rem; line-height: 1.5; color: var(--ink-2); margin: 1rem 0 0; }
.form-status { margin: .75rem 0 0; font-weight: 600; }
.form-status.is-error { color: var(--red-ink); }

/* ---------- Herramientas ---------- */
.tool { background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow); padding: clamp(1.25rem, 3vw, 2.2rem); max-width: 860px; }
.section--paper .tool, .page-top .tool { box-shadow: var(--shadow); }
.quiz__progress { display: flex; align-items: center; gap: .8rem; font-size: .875rem; font-weight: 600; color: var(--ink-2); margin-bottom: 1rem; }
.quiz__q { font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 750; color: var(--anth-900); line-height: 1.25; margin: 0 0 1.25rem; letter-spacing: -.01em; }
.quiz__opts { display: grid; gap: .65rem; }
.opt-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; min-height: 60px; padding: .9rem 1.1rem;
  text-align: left; font: inherit; font-weight: 600; color: var(--anth-900); background: var(--paper); border: 2px solid transparent; border-radius: var(--r-ctl); cursor: pointer;
  transition: border-color .15s var(--ease), background-color .15s var(--ease), transform .12s var(--ease);
}
.opt-btn:hover { border-color: var(--anth); background: #fff; }
.opt-btn:active { transform: scale(.99); }
.opt-btn::after { content: ""; width: 9px; height: 9px; border-top: 2.5px solid var(--red-ink); border-right: 2.5px solid var(--red-ink); transform: rotate(45deg); flex: none; }
.quiz__nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.btn-text { background: none; border: 0; font: inherit; font-weight: 700; color: var(--anth); cursor: pointer; min-height: 44px; padding: .5rem 0; text-decoration: underline; text-underline-offset: 3px; }
.btn-text:hover { color: var(--anth-900); }
.enter { animation: enter .22s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.result h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .5rem; }
.result__facts { display: grid; gap: .6rem; margin: 1.2rem 0; }
@media (min-width: 620px) { .result__facts { grid-template-columns: repeat(3, 1fr); } }
.fact { background: var(--paper); border-radius: var(--r-ctl); padding: .85rem 1rem; }
.fact span { display: block; font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.fact b { font-size: 1.1rem; color: var(--anth-900); font-variant-numeric: tabular-nums; }
.fact--hl b { color: var(--red-ink); }
.result__actions { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; margin-top: 1.2rem; }

.calc { display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .calc { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.calc fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; }
.calc legend { font-weight: 700; color: var(--anth-900); margin-bottom: .6rem; padding: 0; }
.seg { display: grid; gap: .5rem; }
.seg label { display: flex; align-items: center; gap: .7rem; min-height: 52px; padding: .6rem .9rem; background: var(--paper); border: 2px solid transparent; border-radius: var(--r-ctl); cursor: pointer; font-weight: 600; transition: border-color .15s var(--ease), background-color .15s var(--ease); }
.seg label:hover { border-color: var(--anth); }
.seg input { width: 20px; height: 20px; margin: 0; accent-color: var(--red-ink); flex: none; }
.seg label:has(input:checked) { border-color: var(--red-ink); background: #fff; }
.seg label:has(input:focus-visible) { outline: 3px solid var(--red-ink); outline-offset: 2px; }
.stepper { display: inline-flex; align-items: center; gap: .5rem; }
.stepper button { width: 48px; height: 48px; border-radius: var(--r-ctl); border: 1.5px solid #8a939c; background: #fff; font: inherit; font-size: 1.4rem; font-weight: 700; color: var(--anth-900); cursor: pointer; }
.stepper button:hover { border-color: var(--anth-900); }
.stepper input { width: 72px; text-align: center; font-weight: 700; }
.hint { font-size: .85rem; color: var(--ink-2); margin: .5rem 0 0; }
.calc__out { background: var(--anth-900); color: #e6e9ec; border-radius: var(--r-card); padding: clamp(1.25rem, 3vw, 1.8rem); align-self: start; }
.calc__out .lbl { font-weight: 600; color: #cfd4d9; margin: 0; }
.calc__total { display: block; font-size: clamp(2.8rem, 8vw, 4.2rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; color: #fff; font-variant-numeric: tabular-nums; margin: .25rem 0 .75rem; }
.calc__lines { list-style: none; padding: 0; margin: 0 0 1rem; font-size: .95rem; }
.calc__lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-top: 1px solid rgb(255 255 255 / .12); margin: 0; }
.calc__lines b { color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc__save { background: rgb(237 28 36 / .16); color: #fff; border-radius: var(--r-ctl); padding: .6rem .85rem; font-weight: 600; margin: 0 0 1rem; }
.calc__save:empty { display: none; }
.calc__out .tiny { color: #b9c0c7; }
.calc__out .btn { margin-top: .5rem; }

/* ---------- Páginas interiores ---------- */
.page-top { background: var(--paper); padding: clamp(1.4rem, 4vw, 2.4rem) 0 clamp(2.4rem, 6vw, 3.8rem); }
.crumbs { font-size: .875rem; margin-bottom: 1.2rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; }
.crumbs li { margin: 0; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: #8a939c; }
.crumbs a { color: var(--anth-900); display: inline-flex; min-height: 32px; align-items: center; }
.page-top h1 { max-width: 22ch; }
.answer { max-width: 760px; font-size: clamp(1.08rem, 1.7vw, 1.2rem); line-height: 1.6; color: var(--ink); background: #fff; border-radius: var(--r-card); padding: 1.25rem 1.4rem; margin-top: 1.25rem; display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.answer .bars { margin-top: .5rem; }
.answer p { margin: 0; }
.byline { font-size: .875rem; color: var(--ink-2); margin: 1rem 0 0; }

.prose { max-width: 760px; }
.prose h2 { margin-top: clamp(2.4rem, 5vw, 3.4rem); }
.prose h2:first-child { margin-top: 0; }
.prose ul li::marker { color: var(--red-ink); }
.prose .lead-in { font-size: 1.1rem; }

.duo { display: grid; gap: 1rem; margin: 1.25rem 0; }
@media (min-width: 700px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo > div { background: var(--paper); border-radius: var(--r-card); padding: 1.25rem; }
.duo h3 { margin-bottom: .4rem; }
.duo p:last-child, .duo ul:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 1.25rem 0; border-radius: var(--r-card); border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .95rem; }
th, td { text-align: left; padding: .8rem 1rem; vertical-align: top; }
thead th { background: var(--anth-900); color: #fff; font-weight: 700; }
tbody tr:nth-child(even) { background: var(--paper); }
tbody th { font-weight: 700; color: var(--anth-900); }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
td.num--hl { color: var(--red-ink); font-weight: 700; }

.cta-band { background: var(--anth-900); color: #e6e9ec; border-radius: var(--r-card); padding: clamp(1.5rem, 4vw, 2.4rem); display: grid; gap: 1.2rem; align-items: center; margin: clamp(2.5rem, 6vw, 4rem) 0; }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 2.8vw, 1.9rem); margin: 0 0 .35rem; }
.cta-band p { margin: 0; color: #cfd4d9; }
.cta-band .cta-note { color: #cfd4d9; }
@media (min-width: 820px) { .cta-band { grid-template-columns: 1fr auto; } }

.xlink { background: var(--paper); border-radius: var(--r-ctl); padding: 1rem 1.15rem; margin: 1.25rem 0; }
.xlink p { margin: 0; }
.sources { font-size: .875rem; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: 2.5rem; }
.sources ul { margin: .4rem 0 0; }

/* Contacto */
.tiles { display: grid; gap: .75rem; margin-bottom: 2rem; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { display: flex; align-items: center; gap: .9rem; min-height: 76px; padding: 1rem 1.2rem; border-radius: var(--r-card); background: #fff; color: var(--anth-900); text-decoration: none; font-weight: 700; box-shadow: var(--shadow); transition: transform .2s var(--ease); }
.tile:hover { transform: translateY(-2px); color: var(--anth-900); }
.tile span { display: block; font-weight: 500; font-size: .9rem; color: var(--ink-2); }
.tile svg { width: 28px; height: 28px; color: var(--red-ink); flex: none; }

/* ---------- Pie ---------- */
.site-footer { background: var(--anth-900); color: #cfd4d9; padding: 3rem 0 2rem; font-size: .925rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer img { width: 160px; margin-bottom: 1rem; }
.site-footer p { margin: 0 0 .5rem; }
.site-footer h2 { font-size: 1rem; color: #fff; margin: 0 0 .6rem; letter-spacing: 0; }
.site-footer h2.mt { margin-top: 1.4rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0; }
.site-footer li a { display: inline-flex; min-height: 40px; align-items: center; text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; }
.footer-base { border-top: 1px solid rgb(255 255 255 / .12); margin-top: 2rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; font-size: .85rem; }

/* ---------- Barra fija móvil ---------- */
.mbar { display: none; }
@media (max-width: 959px) {
  body { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
  .mbar {
    display: grid; grid-template-columns: 1fr 1fr 1.7fr; gap: .4rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: .45rem .5rem calc(.45rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgb(35 39 44 / .25);
  }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 48px; border-radius: var(--r-ctl); font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--anth-900); background: var(--paper); }
  .mbar a svg { width: 20px; height: 20px; }
  .mbar a.mbar__main { background: var(--red-ink); color: #fff; }
}

/* ---------- Legales ---------- */
.legal h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.legal h3 { font-size: 1.05rem; margin-top: 1.4rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.calc-tool { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.close > *, .myth > *, .aid > *, .about > *, .calc > * { min-width: 0; }
.close__alt .btn { white-space: normal; text-align: left; }

/* =====================================================================
   GIRO 1 · correcciones del consejo (Revisor + Abogado)
   Rojo solo en acciones y en el símbolo de marca del hero.
   ===================================================================== */

/* B5 · barras decorativas en antracita; cifras destacadas con marcador gris */
.bars i { background: var(--anth); }
.bars i.off { background: var(--line); }
.section--dark .bars i { background: #cfd4d9; }
.section--dark .bars i.off { background: rgb(255 255 255 / .18); }
.bignum__value, .price-row--hl b, .fee__col--pyme b, td.num--hl, .fact--hl b {
  color: var(--anth-900); background: var(--paper-2); border-radius: 6px; padding: 0 .3em;
}
.bignum__value { display: inline-block; }
.faq summary::after { border-color: var(--anth); }
.opt-btn::after { border-color: var(--anth); }
.calc__save { background: rgb(255 255 255 / .1); }

/* B6 · anillo blanco en CTA sobre fondo oscuro */
.hero .btn--primary, .section--dark .btn--primary, .calc__out .btn--primary { box-shadow: 0 0 0 2px #fff; }

/* D3 · hero sin foto: antracita + símbolo de las 3 barras */
.hero { background: radial-gradient(120% 90% at 85% 50%, #343a41 0%, var(--anth-900) 60%); }
.hero::before { content: none; }
.hero__mark { position: absolute; z-index: -1; right: max(-2vw, calc((100vw - var(--wrap)) / 2 - 40px)); top: 50%; transform: translateY(-50%); width: min(38vw, 470px); display: grid; gap: 11%; }
.hero__mark i { display: block; height: clamp(34px, 5.2vw, 64px); background: var(--red); border-radius: 2px; }
@media (max-width: 959px) {
  .hero__mark { width: 30vw; right: -8vw; top: 26px; transform: none; gap: 9px; opacity: .2; }
  .hero__mark i { height: 16px; }
}
.hero__for { font-weight: 700; color: #cfd4d9; font-size: .95rem; margin: 0 0 .6rem; }
.hero__price { display: none; margin: 1.1rem 0 0; color: #e6e9ec; font-size: 1rem; }
.hero__price strong { color: #fff; background: rgb(255 255 255 / .12); border-radius: 6px; padding: 0 .3em; }
.hero__trust { margin: .6rem 0 0; font-size: .9rem; color: #cfd4d9; }
.link-arrow--light { color: #fff; }
.link-arrow--light:hover { color: #fff; }
.price-card__head { display: block; }
@media (max-width: 959px) {
  .price-card { display: none; }
  .hero__price { display: block; }
  .hero .wrap { padding-top: 1.5rem; padding-bottom: 2rem; }
  .hero h1 { font-size: clamp(1.75rem, 7.6vw, 2.2rem); margin-bottom: .6rem; }
  .hero__sub { font-size: 1.02rem; margin-bottom: 1rem; }
  .hero__actions { gap: .2rem 1rem; }
  .hero .cta-note { margin-top: .35rem; }
}

/* B14 · tocables de 48 px */
.crumbs a, .site-footer li a, .link-arrow, .menu-btn, .nav .btn, .btn-text { min-height: 48px; display: inline-flex; align-items: center; }
.btn { min-height: 48px; }

/* B3 · barra fija: 2 acciones, 52 px, se oculta con hero o formulario a la vista */
@media (max-width: 959px) {
  .mbar { grid-template-columns: 1fr 1.8fr; transition: transform .22s var(--ease); }
  .mbar a { min-height: 52px; font-size: .95rem; }
  .mbar-off .mbar { transform: translateY(110%); }
}

/* Formulario B1/B2/B15 */
.form-title { font-size: 1.35rem; margin: 0 0 1rem; color: var(--anth-900); }
.warn { display: block; background: var(--paper); color: var(--ink); border-left: 0; }
.warn p { margin: 0; }
fieldset.field { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: .45rem; }
.seg--row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .5rem; }
.help { font-size: .85rem; color: var(--ink-2); margin: 0; }
.talk { margin-top: 1.25rem; }
.talk__q { font-weight: 700; margin: 0 0 .5rem; }
.section--dark .talk__q { color: #fff; }
.talk__btns { display: flex; flex-wrap: wrap; gap: .6rem; }
.section--dark .talk .btn--ghost { color: #fff; border-color: #aeb5bc; }
.section--dark .talk .btn--ghost:hover { background: #fff; color: var(--anth-900); }
.talk .btn { white-space: normal; }
.xmark { margin: 1.25rem 0 0; font-size: .95rem; }
.section--dark .xmark { color: #cfd4d9; }
.section--dark .xmark a { color: #fff; }
.form-card:focus { outline: none; }

/* B7 · CTA tras precios y ayudas */
.cta-inline { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; margin-top: 1.4rem; }
.cta-inline .cta-note { margin: .4rem 0 .2rem; }

/* Plan y personas */
.plan-price { max-width: 70ch; margin: 1.5rem 0 0; font-weight: 600; color: var(--anth-900); }
.step p + p { margin-top: -.4rem; }
.person { display: block; padding: 1rem 0 0; }
.paths--2 { grid-template-columns: 1fr; }
@media (min-width: 900px) { .paths--2 { grid-template-columns: 1.3fr 1fr; } }

/* Respuesta en varios párrafos */
.answer p + p { margin-top: .6rem; }
.rule p + p { margin-top: .3rem; }

/* Contacto */
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(2, 1fr); } .tiles--3 { grid-template-columns: repeat(3, 1fr); } }
.tile svg { color: var(--anth-900); }

@media (max-width: 380px) {
  :root { --gut: 1rem; }
  .fee { padding: .85rem .9rem; }
}
[hidden] { display: none !important; }
.page-top .btn, .talk .btn { white-space: normal; text-align: left; }
@media (max-width: 600px) { .hero__mark { display: none; } }
.plan-price--2 { margin-top: .3rem; font-weight: 500; }
.tiny p, .xlink p + p, .aid__item p + p { margin: .25rem 0 0; }
.answer__list { margin: .4rem 0 .6rem; padding-left: 1.1rem; }
.answer__list li { margin-bottom: .25rem; }
.bignum .small + .small { margin-top: -.6rem; }
@media (min-width: 960px) { .menu-btn { display: none; } }
.section--dark .form-card .form-title, .form-card h2 { color: var(--anth-900); }

/* GIRO 2 */
.no-mbar .mbar { display: none !important; }
.no-mbar { padding-bottom: 0 !important; }
.cta-band .btn--primary { box-shadow: 0 0 0 2px #fff; }
.tiles--stack { grid-template-columns: 1fr !important; margin: 1.25rem 0; }
.tiles--stack .tile { box-shadow: none; background: var(--paper); }
.page-top--tight { padding-bottom: 1.25rem; }
.section--contact { padding-top: 1.5rem; }
@media (min-width: 960px) {
  .close--contact .close__info { order: -1; }
  .section--contact { padding-top: clamp(3.2rem, 8vw, 6rem); }
}
