/* iContable · sitio público · noviembre 2026
   Paleta tomada del logo: #1956D6 → #0C72CF → #048F9B, C aguamarina #B5FEF7 */

@font-face {
  font-family: "Bricolage";
  src: url("/assets/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("/assets/fonts/onest.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #0b2350;
  --ink-soft: #24365e;
  --muted: #56688a;
  --line: #d5e2ee;
  --paper: #f2f7fb;
  --white: #ffffff;
  --blue: #1956d6;
  --blue-mid: #0c72cf;
  --teal: #048f9b;
  --teal-text: #037480;
  --aqua: #b5fef7;
  --amber: #e0a13a;
  --amber-text: #8a5a0b;
  --grad: linear-gradient(135deg, #1956d6 0%, #0c72cf 50%, #048f9b 100%);

  --display: "Bricolage", "Onest", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 28px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--white);
  font-feature-settings: "tnum" 1;
  overflow-wrap: break-word;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.04; }
h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--white); padding: 8px 14px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.35em;
  border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--ink); color: var(--white); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-teal { background: var(--teal-text); color: var(--white); }
.btn-teal:hover { background: var(--ink); color: var(--white); }
.btn-ink { background: var(--ink); color: var(--aqua); }
.btn-ink:hover { background: var(--blue); color: var(--white); }
.btn-aqua { background: var(--aqua); color: var(--ink); }
.btn-aqua:hover { background: var(--white); color: var(--ink); }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand svg { width: 38px; height: 38px; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.03em; line-height: 1; }
/* Franja del lema sobre la cabecera: no es fija, se va al hacer scroll */
.topbar { background: var(--ink); color: #fff; }
.topbar-row {
  margin-top: 0; margin-bottom: 0; min-height: 36px; display: flex; align-items: center; justify-content: center;
  font-family: var(--body); font-weight: 600; font-size: .84rem; line-height: 1.3; letter-spacing: .015em; text-align: center;
}
@media (max-width: 560px) { .topbar-row { min-height: 32px; font-size: .76rem; letter-spacing: .005em; } }
@media print { .topbar { display: none; } }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: .97rem;
  padding: 10px 12px; border-radius: 8px;
}
.nav a:not(.btn):hover { color: var(--blue); background: var(--paper); }
.nav .login { color: var(--teal-text); font-weight: 600; }
.nav .btn { margin-left: 8px; min-height: 42px; padding: .55em 1.15em; font-size: .95rem; }
.menu-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--white); cursor: pointer; color: var(--ink);
  align-items: center; justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1180px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  .nav .btn { margin: 16px 0 0; min-height: 50px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 80px); background: var(--white); }
.hero-motto { color: var(--teal-text); font-weight: 600; margin-bottom: 18px; font-size: 1.02rem; text-wrap: balance; }
.hero-title {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 4vw, 56px);
  font-size: clamp(2.5rem, 5.5vw, 4.8rem); line-height: .98; letter-spacing: -0.035em;
}
.hero-title > span { display: block; }
.hero-title .future { padding-left: clamp(20px, 3vw, 40px); }
.hero-lede { margin-top: 28px; max-width: 60ch; font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Línea de tiempo: pasado observado | hoy | futuro proyectado */
.timeline { margin: clamp(40px, 6vw, 64px) 0 0; }
.tl-grid {
  position: relative;
  display: grid; grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(4px, 1.1vw, 14px);
  align-items: end; height: clamp(140px, 16vw, 210px);
  border-bottom: 2px solid var(--ink);
}
.tl-col { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.tl-bar {
  width: 100%; border-radius: 8px 8px 2px 2px;
  height: var(--h);
  transform-origin: bottom;
}
.tl-col.past .tl-bar { background: var(--blue); }
.tl-col.partial .tl-bar {
  background: linear-gradient(to top, var(--blue) 0 55%, transparent 55%);
  border: 2px solid var(--blue); border-bottom: 0;
}
.tl-col.future .tl-bar {
  background: repeating-linear-gradient(-45deg, rgba(181, 254, 247, .55) 0 6px, rgba(181, 254, 247, .15) 6px 12px);
  border: 2px dashed var(--teal); border-bottom: 0;
}
.tl-col.future.renta .tl-bar { border-color: var(--blue-mid); }
.tl-months {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(4px, 1.1vw, 14px);
  margin-top: 10px; font-size: .86rem; color: var(--muted); text-align: center;
}
.tl-months span:first-letter { text-transform: uppercase; }
.tl-today {
  position: absolute; top: -18px; bottom: -2px; width: 0;
  border-left: 2px solid var(--ink);
  left: var(--today, 50%);
}
.tl-today b {
  position: absolute; top: -12px; left: 50%; transform: translate(-50%, -100%);
  background: var(--ink); color: var(--aqua); font: 600 .8rem/1 var(--body);
  padding: 6px 10px; border-radius: 999px; white-space: nowrap;
}
.tl-note {
  position: absolute; bottom: calc(var(--h) + 10px); left: 50%; transform: translateX(-50%);
  white-space: nowrap; font-size: .8rem; line-height: 1.25; font-weight: 600; text-align: center;
  color: var(--ink);
}
.tl-note.warn { color: var(--amber-text); }
.tl-note.warn::before {
  content: ""; display: block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--amber); margin: 0 auto 4px;
}
.tl-captions {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px);
  margin-top: 20px; font-size: .95rem; color: var(--muted);
}
.tl-captions p + p { padding-left: clamp(20px, 3vw, 40px); }
.tl-captions strong { color: var(--ink); font-weight: 600; }

.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 0; list-style: none; font-size: .92rem; color: var(--ink-soft); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.sw-observado { background: var(--blue); }
.sw-informado { background: var(--teal); }
.sw-supuesto { background: rgba(181, 254, 247, .6); border: 2px dashed var(--teal); }
.sw-pendiente { background: var(--amber); border-radius: 50%; }
.hero .legend { margin-top: 26px; }

@media (prefers-reduced-motion: no-preference) {
  .js .tl-col .tl-bar { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 70ms + 150ms); }
  .js .tl-col.future .tl-bar { animation-name: appear; animation-duration: .6s; animation-delay: calc(var(--i) * 80ms + 650ms); }
  .js .tl-today { animation: appear .5s ease both .55s; }
  .js .tl-note { animation: appear .5s ease both 1.3s; }
}
@keyframes rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 760px) {
  .hero-title { grid-template-columns: 1fr; row-gap: .12em; }
  .hero-title .future { padding-left: 0; }
  .timeline { margin-top: 64px; }
  .tl-note.warn { left: 2px; transform: none; text-align: left; }
  .tl-note.warn::before { margin: 0 0 4px; }
  .tl-captions { grid-template-columns: 1fr; gap: 6px; }
  .tl-captions p + p { padding-left: 0; }
  .tl-note { font-size: .7rem; }
  .tl-note .long { display: none; }
  .tl-months { font-size: .72rem; }
}

/* ---------- Huincha de clientes ---------- */
.clients { background: var(--ink); color: #c9d7ec; overflow: hidden; border-top: 1px solid rgba(181, 254, 247, .12); border-bottom: 1px solid rgba(181, 254, 247, .12); }
.clients-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 56px); padding: clamp(28px, 3.4vw, 44px) 0 clamp(28px, 3.4vw, 44px) max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); }
.clients-stat { display: grid; gap: 4px; padding-right: clamp(20px, 3vw, 44px); border-right: 1px solid rgba(181, 254, 247, .22); }
.clients-num { font: 700 clamp(2.6rem, 5vw, 3.9rem)/.9 var(--display); letter-spacing: -0.045em; color: var(--aqua); }
.clients-stat p { font-size: .95rem; line-height: 1.3; color: #c9d7ec; max-width: 12ch; }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 90%, transparent); }
.marquee-track { display: flex; flex: none; align-items: center; animation: marquee 55s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--display); font-weight: 500; font-size: clamp(1.35rem, 2.3vw, 1.95rem); letter-spacing: -0.015em;
  color: #e3ecf8; white-space: nowrap; opacity: .78; transition: opacity .2s ease, color .2s ease;
}
.marquee-track span:hover { opacity: 1; color: var(--white); }
.marquee-track i { flex: none; width: 7px; height: 7px; margin-inline: clamp(22px, 3vw, 40px); background: var(--aqua); transform: rotate(45deg); border-radius: 1px; opacity: .85; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (max-width: 760px) {
  .clients-inner { grid-template-columns: 1fr; gap: 16px; padding-right: 0; }
  .clients-stat { display: flex; align-items: baseline; gap: 12px; border-right: 0; padding-right: var(--gutter); }
  .clients-stat p { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; flex-wrap: wrap; flex: 1; row-gap: 10px; padding-right: var(--gutter); }
  .marquee-track[aria-hidden="true"] { display: none; }
  .marquee-track i { margin-inline: 16px; }
}

/* ---------- Secciones ---------- */
.section { padding-block: var(--section); }
.section-paper { background: var(--paper); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head p { margin-top: 18px; font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }

/* Dolores */
.pains { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(24px, 5vw, 72px); margin: 0; padding: 0; list-style: none; }
.pains li { border-top: 1px solid var(--line); padding: 24px 0 26px; display: grid; gap: 6px; align-content: start; }
.pains .pain { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 1.28rem; line-height: 1.2; letter-spacing: -0.01em; }
.pains .answer { color: var(--ink-soft); }
@media (max-width: 760px) { .pains { grid-template-columns: 1fr; } }

/* Niveles: escalera, cada uno incluye el anterior */
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); align-items: stretch; }
.level {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 28px 26px 30px; display: flex; flex-direction: column; gap: 14px;
}
.level-1 { margin-top: clamp(0px, 6vw, 88px); }
.level-2 { margin-top: clamp(0px, 3vw, 44px); border-color: var(--teal); }
.level-3 { background: var(--ink); border-color: var(--ink); color: #d7e4f5; }
.level-3 h3, .level-3 .level-num { color: var(--white); }
.level-num { font: 600 .95rem/1 var(--body); color: var(--muted); display: flex; align-items: center; gap: 10px; }
.level-num i { font-style: normal; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid currentColor; font-size: .85rem; }
.level-1 .level-num { color: var(--blue); }
.level-2 .level-num { color: var(--teal-text); }
.level-3 .level-num { color: var(--aqua); }
.level p.lead { color: inherit; }
.level .includes { font-size: .92rem; font-weight: 600; color: var(--muted); }
.level-3 .includes { color: var(--aqua); }
.level ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: .98rem; }
.level li { position: relative; padding-left: 22px; }
.level li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; border-radius: 2px; background: currentColor; opacity: .55; }
.level-1 li::before { background: var(--blue); opacity: 1; }
.level-2 li::before { background: var(--teal); opacity: 1; }
.level-3 li::before { background: var(--aqua); opacity: 1; }
.level .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) {
  .levels { grid-template-columns: 1fr; }
  .level-1, .level-2 { margin-top: 0; }
}

/* ---------- Portal (sección oscura) ---------- */
.portal { background: var(--ink); color: #c9d7ec; }
.portal h2, .portal h3 { color: var(--white); }
.portal .section-head p { color: #c9d7ec; }
.portal-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.spaces { display: grid; gap: 0; margin-top: 8px; }
.space { border-top: 1px solid rgba(181, 254, 247, .22); padding: 20px 0; display: grid; grid-template-columns: 150px 1fr; gap: 18px; }
.space h3 { font-size: 1.15rem; color: var(--aqua); }
.portal .legend { color: #c9d7ec; margin-top: 28px; }
.portal .sw-observado { background: #4f86f0; }
.portal-login { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.portal-login small { color: #9fb3d3; font-size: .92rem; }

/* Teléfono de muestra */
.phone {
  width: min(100%, 380px); margin-inline: auto;
  background: #f6f9fd; color: var(--ink-soft); border-radius: 36px; padding: 14px;
  box-shadow: 0 0 0 10px #16305f, 0 30px 80px rgba(0, 0, 0, .35);
}
.phone-screen { background: var(--white); border-radius: 24px; padding: 18px 16px 20px; display: grid; gap: 12px; font-size: .9rem; }
.ph-top { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; font-family: var(--display); font-size: 1.05rem; }
.ph-top svg { width: 24px; height: 24px; }
.ph-top em { margin-left: auto; font: 500 .78rem var(--body); color: var(--muted); }
.ph-company { font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.ph-pub { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.ph-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px 13px; display: grid; gap: 6px; }
.ph-card.main { border-color: #bcd0f5; background: #f5f8ff; }
.ph-label { font-size: .8rem; color: var(--muted); }
.ph-amount { font: 700 1.55rem/1.1 var(--display); color: var(--ink); letter-spacing: -0.02em; }
.ph-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ph-row b { color: var(--ink); font-size: 1rem; white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 600; line-height: 1.2; padding: 4px 8px; border-radius: 6px; width: fit-content; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 2px; flex: none; }
.chip-observado { background: #e7efff; color: #123f9e; }
.chip-observado::before { background: var(--blue); }
.chip-informado { background: #e0f4f5; color: #035e67; }
.chip-informado::before { background: var(--teal); }
.chip-supuesto { background: #ecfffd; color: #035e67; outline: 1px dashed var(--teal); }
.chip-supuesto::before { background: var(--aqua); outline: 1px dashed var(--teal); }
.chip-pendiente { background: #fff4e0; color: var(--amber-text); }
.chip-pendiente::before { background: var(--amber); border-radius: 50%; }
.ph-sub { font-size: .8rem; font-weight: 700; color: var(--ink); margin-top: 4px; }
.ph-task { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ph-task span { font-size: .84rem; color: var(--ink-soft); }
.ph-task .ph-btn { flex: none; font: 600 .76rem/1 var(--body); padding: 8px 10px; border-radius: 999px; background: var(--blue); color: var(--white); }
.ph-task .ph-btn.alt { background: var(--white); color: var(--blue); border: 1.5px solid var(--blue); }

/* Fuentes conectadas, seguridad, módulos */
.portal-bottom { margin-top: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); }
.portal-bottom h3 { font-size: 1.2rem; margin-bottom: 12px; }
.portal-bottom p { font-size: .98rem; }
.sources { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: .98rem; }
.sources li { display: flex; gap: 10px; align-items: baseline; }
.sources li::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: #4f86f0; flex: none; transform: translateY(-1px); }
.sources li.soon { color: #9fb3d3; }
.sources li.soon::before { background: transparent; border: 1.5px dashed var(--aqua); }
.sources small { color: #9fb3d3; font-size: .85rem; }
@media (max-width: 960px) {
  .portal-top { grid-template-columns: 1fr; }
  .portal-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .space { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Para quién ---------- */
.segments { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(24px, 5vw, 72px); }
.segment { border-top: 2px solid var(--ink); padding: 22px 0 30px; display: grid; gap: 8px; align-content: start; }
.segment p { color: var(--ink-soft); }
.segment a { font-weight: 600; margin-top: 4px; width: fit-content; }
.segments-note { margin-top: 28px; color: var(--muted); max-width: 62ch; }
@media (max-width: 760px) { .segments { grid-template-columns: 1fr; } }

/* ---------- Proceso (secuencia real) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(16px, 2.2vw, 28px); counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 10px; align-content: start; position: relative; padding-top: 58px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font: 700 1.1rem/1 var(--display); background: var(--white); color: var(--blue); border: 2px solid var(--blue);
}
.steps li::after { content: ""; position: absolute; top: 21px; left: 50px; right: -8px; border-top: 2px dotted var(--line); }
.steps li:last-child::after { display: none; }
.steps li:last-child::before { background: var(--blue); color: var(--white); }
.steps h3 { font-size: 1.18rem; }
.steps p { font-size: .98rem; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 0 0 28px 62px; }
  .steps li::after { top: 46px; bottom: 4px; left: 20px; right: auto; border-top: 0; border-left: 2px dotted var(--line); }
}

/* ---------- Cómo pensamos ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px); }
.principle h3 { font-size: 1.32rem; margin-bottom: 10px; }
.principle { padding-top: 18px; border-top: 4px solid var(--aqua); }
.principle:nth-child(3n+2) { border-top-color: var(--teal); }
.principle:nth-child(3n) { border-top-color: var(--blue); }
@media (max-width: 960px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .principles { grid-template-columns: 1fr; } }

/* ---------- Testimonios ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 5vw, 72px); }
.quote { margin: 0; display: grid; gap: 22px; align-content: start; }
.quote blockquote { margin: 0; font: 600 clamp(1.35rem, 2.4vw, 1.9rem)/1.25 var(--display); color: var(--ink); letter-spacing: -0.015em; }
.quote blockquote::before { content: "“"; display: block; font-size: 3.4em; line-height: .6; color: var(--teal); margin-bottom: 6px; }
.quote figcaption { display: grid; gap: 2px; font-size: .98rem; }
.quote figcaption strong { color: var(--ink); }
.quote figcaption span { color: var(--muted); }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- Preguntas ---------- */
.faq { max-width: 880px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative;
  font: 600 1.18rem/1.3 var(--display); color: var(--ink); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px;
  border-right: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { color: var(--blue); }
.faq .answer { padding: 0 0 24px; max-width: 70ch; }
.faq .answer p + p { margin-top: 10px; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-aside p { margin-top: 18px; font-size: 1.12rem; }
.contact-lines { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.contact-lines li { display: grid; gap: 2px; }
.contact-lines span { font-size: .9rem; color: var(--muted); }
.contact-lines a, .contact-lines b { font-weight: 600; color: var(--ink); font-size: 1.08rem; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(22px, 4vw, 40px); display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 600; color: var(--ink); font-size: .95rem; line-height: 1.35; }
.field label small { font-weight: 400; color: var(--muted); font-size: .85em; line-height: 1; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--body); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--white);
  min-height: 48px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(25, 86, 214, .18); }
.field [aria-invalid="true"] { border-color: #c2412d; }
.field .error { color: #a3341f; font-size: .88rem; }
.field .error:empty { display: none; }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .privacy { font-size: .88rem; color: var(--muted); }
.form .btn { justify-self: start; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } .form .btn { justify-self: stretch; } }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: #b8c8e2; padding: 64px 0 36px; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: var(--white); }
.site-footer .motto { margin-top: 14px; color: var(--aqua); font-weight: 500; max-width: 34ch; }
.site-footer h3 { color: var(--white); font: 600 1rem var(--body); margin-bottom: 12px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #d9e5f5; text-decoration: none; }
.site-footer a:hover { color: var(--aqua); text-decoration: underline; }
.footer-legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(181, 254, 247, .18); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: #8fa5c8; font-size: .88rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Páginas interiores ---------- */
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); }
.page-hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 6vw, 72px); }
.page-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); line-height: 1; letter-spacing: -0.035em; max-width: 16ch; }
.page-hero .hero-lede { margin-top: 24px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.prose p + p { margin-top: 14px; }
.prose ul { margin: 14px 0 0; padding-left: 1.1em; display: grid; gap: 8px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.receipt {
  border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--white); padding: 22px; display: grid; gap: 12px; max-width: 440px;
}
.receipt-row { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 10px; font-size: .95rem; }
.receipt-row:last-child { border-bottom: 0; padding-bottom: 0; }
.receipt-row b { color: var(--ink); white-space: nowrap; }
.receipt-title { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }

.center-page { min-height: 70vh; display: grid; align-content: center; padding-block: 80px; }
.center-page h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1; max-width: 18ch; }
.center-page p { margin-top: 18px; font-size: 1.15rem; max-width: 56ch; }
.center-page .hero-actions { margin-top: 28px; }

@media print {
  .site-header, .marquee, .form, .menu-toggle { display: none !important; }
  .portal, .site-footer { background: #fff; color: #000; }
}

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed; right: clamp(14px, 2.5vw, 28px); bottom: clamp(14px, 2.5vw, 28px); z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 20px 0 16px; border-radius: 999px;
  background: var(--teal-text); color: var(--white); text-decoration: none;
  font: 600 .98rem/1 var(--body);
  box-shadow: 0 10px 28px rgba(11, 35, 80, .28);
  transition: background-color .15s ease;
}
.wa-float:hover { background: var(--ink); color: var(--white); }
.wa-float svg { width: 24px; height: 24px; flex: none; }
@media (max-width: 640px) {
  .wa-float { width: 56px; height: 56px; padding: 0; justify-content: center; }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media print { .wa-float { display: none; } }

/* ---------- Variantes para páginas de especialidad ---------- */
.steps.cols-3 { grid-template-columns: repeat(3, 1fr); }
.steps.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .steps.cols-3, .steps.cols-4 { grid-template-columns: 1fr; } }

.note-box { border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--white); padding: 20px 22px; color: var(--ink-soft); max-width: 820px; }
.section-paper .note-box { background: var(--white); }
.note-box strong { color: var(--ink); }
.after-grid { margin-top: clamp(28px, 4vw, 44px); }
.fineprint { font-size: .92rem; color: var(--muted); margin-top: 22px; max-width: 70ch; }

.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.compare > div { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 26px; background: var(--white); display: grid; gap: 10px; align-content: start; }
.compare .label { font-weight: 600; font-size: .95rem; color: var(--muted); }
.compare .ours { background: var(--ink); border-color: var(--ink); color: #d7e4f5; }
.compare .ours h3 { color: var(--white); }
.compare .ours .label { color: var(--aqua); }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

.flow { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--white); max-width: 440px; }
.flow ol { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: flow; }
.flow-title { font-weight: 700; color: var(--ink); margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
.flow li { counter-increment: flow; display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px dashed var(--line); color: var(--ink); font-weight: 500; }
.flow li::before { content: counter(flow); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 .95rem/1 var(--display); color: var(--blue); border: 2px solid var(--blue); }
.flow li:last-child::before { background: var(--blue); color: var(--white); }
.flow-foot { margin-top: 12px; font-size: .88rem; color: var(--muted); }

/* Tres testimonios en una fila */
.quotes.quotes-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.5vw, 48px); }
.quotes-3 .quote blockquote { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
@media (max-width: 960px) { .quotes.quotes-3 { grid-template-columns: 1fr; } .quotes-3 .quote blockquote { font-size: clamp(1.3rem, 4.6vw, 1.6rem); } }

/* ---------- Hitos del año sobre la línea de tiempo ---------- */
.tl-grid { height: clamp(150px, 18vw, 240px); }
.tl-tags { position: absolute; left: 50%; bottom: calc(var(--h) + 8px); transform: translateX(-50%); display: flex; flex-direction: column-reverse; align-items: center; gap: 4px; pointer-events: none; }
.tl-tag { display: inline-flex; align-items: center; gap: 4px; font: 600 .7rem/1.1 var(--body); padding: 4px 7px; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.tl-tag.done { opacity: .55; }
.tl-tag.done::before { content: "✓"; font-weight: 700; }
.t-dir { background: var(--ink); color: var(--aqua); }
.t-diag { background: #e7efff; color: #123f9e; border-color: #bcd0f5; }
.t-ret { background: #e0f4f5; color: #035e67; border-color: #9fd9dd; }
.t-dj { background: var(--white); color: var(--blue-mid); border-color: var(--blue-mid); }
.t-renta { background: var(--blue); color: var(--white); }
.t-cierre { background: #fff4e0; color: var(--amber-text); border-color: #f0d69d; }
.legend .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; border: 1px solid transparent; }
.legend .dot.t-dir { background: var(--ink); box-shadow: inset 0 0 0 3px var(--aqua); }
.legend .dot.t-dj { background: var(--white); border: 2px solid var(--blue-mid); }
.hero .legend.hitos { margin-top: 22px; gap: 10px 26px; }
@media (prefers-reduced-motion: no-preference) {
  .js .tl-tags { animation: appear .5s ease both 1.2s; }
}
@media (max-width: 900px) {
  .tl-tag { width: 10px; height: 10px; padding: 0; font-size: 0; border-width: 0; }
  .tl-tag.done::before { content: none; }
  .tl-tag.t-dir { box-shadow: inset 0 0 0 2px var(--aqua); }
  .tl-tag.t-dj { border: 2px solid var(--blue-mid); }
  .tl-tags { gap: 3px; bottom: calc(var(--h) + 6px); }
}
.legend .dot.t-diag { background: #5b86e8; }
.legend .dot.t-ret { background: #23aab4; }
.legend .dot.t-cierre { background: var(--amber); }
.tl-tag.done { opacity: .62; }
@media (max-width: 900px) {
  .tl-tag.t-diag { background: #5b86e8; }
  .tl-tag.t-ret { background: #23aab4; }
  .tl-tag.t-cierre { background: var(--amber); }
}
.ph-task { flex-wrap: wrap; row-gap: 8px; }
.ph-task > span:first-child { flex: 1 1 140px; }

/* ---------- Íconos de segmentos ---------- */
.segment.has-icon { grid-template-columns: 52px minmax(0, 1fr); column-gap: 18px; }
.segment.has-icon > :not(.seg-icon) { grid-column: 2; }
.seg-icon { grid-column: 1; grid-row: 1 / span 3; width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; align-self: start; }
.seg-icon svg { width: 26px; height: 26px; }
.c-blue { background: #e6eeff; color: #1956d6; }
.c-violet { background: #efe9ff; color: #6a45d1; }
.c-rose { background: #ffe8ee; color: #d23c62; }
.c-teal { background: #dcf5f4; color: #037480; }
.c-ink { background: var(--aqua); color: var(--ink); }
.c-amber { background: #fff1d6; color: #b46a06; }

/* ---------- Conectores del proceso en movimiento ---------- */
.steps li::after {
  border-top: 0; height: 3px; top: 20px;
  background: radial-gradient(circle, var(--blue-mid) 1.4px, transparent 1.9px) 0 50% / 12px 3px repeat-x;
  animation: step-flow-x 1.1s linear infinite;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
@keyframes step-flow-x { from { background-position: 0 50%; } to { background-position: 12px 50%; } }
@keyframes step-flow-y { from { background-position: 50% 0; } to { background-position: 50% 12px; } }
@media (max-width: 960px) {
  .steps li::after {
    top: 46px; bottom: 4px; left: 19px; right: auto; width: 3px; height: auto;
    background: radial-gradient(circle, var(--blue-mid) 1.4px, transparent 1.9px) 50% 0 / 3px 12px repeat-y;
    animation-name: step-flow-y;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
  }
}
@media (prefers-reduced-motion: reduce) { .steps li::after { animation: none; } }

/* ---------- Infografía: de la fuente a tu escritorio ---------- */
.pipeline { position: relative; overflow: hidden; background: var(--ink); color: #c9d7ec; border-radius: var(--radius-l); padding: clamp(26px, 4vw, 44px); margin-bottom: clamp(44px, 6vw, 72px); }
.pipeline::after { content: ""; position: absolute; right: -120px; top: -120px; width: 340px; height: 340px; border-radius: 50%; border: 50px solid rgba(181, 254, 247, .05); pointer-events: none; }
.pipe-title { font: 600 1rem/1.3 var(--body); color: var(--aqua); margin-bottom: 26px; }
.pipe { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); position: relative; z-index: 1; }
.pipe li { position: relative; display: grid; gap: 6px; align-content: start; }
.pipe strong { color: var(--white); font: 600 1.08rem/1.25 var(--display); letter-spacing: -0.01em; margin-top: 10px; }
.pipe small { font-size: .9rem; line-height: 1.45; color: #a9bcd9; }
.pipe-icon { width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; color: var(--white); box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.pipe-icon svg { width: 28px; height: 28px; }
.n1 { background: #1956d6; }
.n2 { background: #6a45d1; }
.n3 { background: #048f9b; }
.n4 { background: #0c72cf; }
.n5 { background: var(--aqua); color: var(--ink); }
.pipe li::after {
  content: ""; position: absolute; top: 28px; left: 68px; right: calc(-1 * clamp(12px, 2vw, 24px) + 6px); height: 3px;
  background: radial-gradient(circle, var(--aqua) 1.4px, transparent 1.9px) 0 50% / 12px 3px repeat-x;
  animation: step-flow-x 1.1s linear infinite; opacity: .85;
}
.pipe li:last-child::after { display: none; }
.pipe-branches { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; padding-top: 24px; border-top: 1px dashed rgba(181, 254, 247, .25); }
.pipe-chip { display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; border-radius: 999px; font-size: .92rem; font-weight: 600; }
.pipe-chip svg { width: 18px; height: 18px; }
.pipe-chip.warn { background: rgba(224, 161, 58, .16); color: #f3c77c; border: 1px solid rgba(224, 161, 58, .45); }
.pipe-chip.gap { background: rgba(181, 254, 247, .08); color: var(--aqua); border: 1px dashed rgba(181, 254, 247, .55); }
.pr-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 14px; }
.pr-icon svg { width: 22px; height: 22px; }
@media (max-width: 900px) {
  .pipe { grid-template-columns: 1fr; gap: 0; }
  .pipe li { grid-template-columns: 58px minmax(0, 1fr); column-gap: 16px; padding-bottom: 26px; }
  .pipe li > .pipe-icon { grid-row: 1 / span 2; }
  .pipe strong { margin-top: 6px; }
  .pipe li::after {
    top: 64px; bottom: 2px; left: 28px; right: auto; width: 3px; height: auto;
    background: radial-gradient(circle, var(--aqua) 1.4px, transparent 1.9px) 50% 0 / 3px 12px repeat-y;
    animation-name: step-flow-y;
  }
}
@media (prefers-reduced-motion: reduce) { .pipe li::after { animation: none; } }
@media (max-width: 900px) { .pipe li { padding-bottom: 40px; } .pipe li:last-child { padding-bottom: 0; } }

/* ---------- Proceso: el flujo enciende cada paso, del 1 al 5 ---------- */
.steps li::before, .steps li:last-child::before { background: var(--white); color: var(--blue); box-shadow: 0 0 0 0 rgba(25, 86, 214, 0); transform: scale(1); }
.steps li::after {
  -webkit-mask-image: none; mask-image: none; top: 20px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--blue), var(--teal)) 0 50% / 0% 3px no-repeat, radial-gradient(circle, #a9bfe9 1.3px, transparent 1.8px) 0 50% / 12px 3px repeat-x;
}
@media (prefers-reduced-motion: no-preference) {
  .steps li:nth-child(1)::before { animation: step-light-0 7s ease-in-out infinite; }
  .steps li:nth-child(2)::before { animation: step-light-1 7s ease-in-out infinite; }
  .steps li:nth-child(3)::before { animation: step-light-2 7s ease-in-out infinite; }
  .steps li:nth-child(4)::before { animation: step-light-3 7s ease-in-out infinite; }
  .steps li:nth-child(5)::before { animation: step-light-4 7s ease-in-out infinite; }
  .steps li:nth-child(1)::after { animation: step-fill-0 7s ease-in-out infinite; }
  .steps li:nth-child(2)::after { animation: step-fill-1 7s ease-in-out infinite; }
  .steps li:nth-child(3)::after { animation: step-fill-2 7s ease-in-out infinite; }
  .steps li:nth-child(4)::after { animation: step-fill-3 7s ease-in-out infinite; }
}
@keyframes step-light-0 { 0% { background: var(--white); color: var(--blue); box-shadow: 0 0 0 0 rgba(25, 86, 214, 0); transform: scale(1); } 3% { background: var(--blue); color: var(--white); box-shadow: 0 0 0 7px rgba(25, 86, 214, .16); transform: scale(1.14); } 6%, 88% { background: var(--blue); color: var(--white); box-shadow: 0 0 0 7px rgba(25, 86, 214, .16); transform: scale(1); } 94%, 100% { background: var(--white); color: var(--blue); box-shadow: 0 0 0 0 rgba(25, 86, 214, 0); transform: scale(1); } }
@keyframes step-light-1 { 0%, 15% { background: var(--white); color: var(--blue); box-shadow: 0 0 0 0 rgba(25, 86, 214, 0); transform: scale(1); } 18% { background: var(--blue); color: var(--white); box-shadow: 0 0 0 7px rgba(25, 86, 214, .16); transform: scale(1.14); } 21%, 88% { background: var(--blue); color: var(--white); box-shadow: 0 0 0 7px rgba(25, 86, 214, .16); transform: scale(1); } 94%, 100% { background: var(--white); color: var(--blue); box-shadow: 0 0 0 0 rgba(25, 86, 214, 0); transform: scale(1); } }
@keyframes step-light-2 { 0%, 30% { background: var(--white); color: var(--blue); box-shadow: 0 0 0 0 rgba(25, 86, 214, 0); transform: scale(1); } 33% { background: var(--blue); color: var(--white); box-shadow: 0 0 0 7px rgba(25, 86, 214, .16); transform: scale(1.14); } 36%, 88% { background: var(--blue); color: var(--white); box-shadow: 0 0 0 7px rgba(25, 86, 214, .16); transform: scale(1); } 94%, 100% { background: var(--white); color: var(--blue); box-shadow: 0 0 0 0 rgba(25, 86, 214, 0); transform: scale(1); } }
@keyframes step-light-3 { 0%, 45% { background: var(--white); color: var(--blue); box-shadow: 0 0 0 0 rgba(25, 86, 214, 0); transform: scale(1); } 48% { background: var(--blue); color: var(--white); box-shadow: 0 0 0 7px rgba(25, 86, 214, .16); transform: scale(1.14); } 51%, 88% { background: var(--blue); color: var(--white); box-shadow: 0 0 0 7px rgba(25, 86, 214, .16); transform: scale(1); } 94%, 100% { background: var(--white); color: var(--blue); box-shadow: 0 0 0 0 rgba(25, 86, 214, 0); transform: scale(1); } }
@keyframes step-light-4 { 0%, 60% { background: var(--white); color: var(--blue); box-shadow: 0 0 0 0 rgba(25, 86, 214, 0); transform: scale(1); } 63% { background: var(--blue); color: var(--white); box-shadow: 0 0 0 7px rgba(25, 86, 214, .16); transform: scale(1.14); } 66%, 88% { background: var(--blue); color: var(--white); box-shadow: 0 0 0 7px rgba(25, 86, 214, .16); transform: scale(1); } 94%, 100% { background: var(--white); color: var(--blue); box-shadow: 0 0 0 0 rgba(25, 86, 214, 0); transform: scale(1); } }
@keyframes step-fill-0 { 0%, 3% { background-size: 0% 3px, 12px 3px; } 15%, 88% { background-size: 100% 3px, 12px 3px; } 94%, 100% { background-size: 0% 3px, 12px 3px; } }
@keyframes step-fill-v-0 { 0%, 3% { background-size: 3px 0%, 3px 12px; } 15%, 88% { background-size: 3px 100%, 3px 12px; } 94%, 100% { background-size: 3px 0%, 3px 12px; } }
@keyframes step-fill-1 { 0%, 18% { background-size: 0% 3px, 12px 3px; } 30%, 88% { background-size: 100% 3px, 12px 3px; } 94%, 100% { background-size: 0% 3px, 12px 3px; } }
@keyframes step-fill-v-1 { 0%, 18% { background-size: 3px 0%, 3px 12px; } 30%, 88% { background-size: 3px 100%, 3px 12px; } 94%, 100% { background-size: 3px 0%, 3px 12px; } }
@keyframes step-fill-2 { 0%, 33% { background-size: 0% 3px, 12px 3px; } 45%, 88% { background-size: 100% 3px, 12px 3px; } 94%, 100% { background-size: 0% 3px, 12px 3px; } }
@keyframes step-fill-v-2 { 0%, 33% { background-size: 3px 0%, 3px 12px; } 45%, 88% { background-size: 3px 100%, 3px 12px; } 94%, 100% { background-size: 3px 0%, 3px 12px; } }
@keyframes step-fill-3 { 0%, 48% { background-size: 0% 3px, 12px 3px; } 60%, 88% { background-size: 100% 3px, 12px 3px; } 94%, 100% { background-size: 0% 3px, 12px 3px; } }
@keyframes step-fill-v-3 { 0%, 48% { background-size: 3px 0%, 3px 12px; } 60%, 88% { background-size: 3px 100%, 3px 12px; } 94%, 100% { background-size: 3px 0%, 3px 12px; } }
@media (max-width: 960px) {
  .steps li::after { top: 46px; bottom: 4px; left: 19px; width: 3px; height: auto; background: linear-gradient(180deg, var(--blue), var(--teal)) 50% 0 / 3px 0% no-repeat, radial-gradient(circle, #a9bfe9 1.3px, transparent 1.8px) 50% 0 / 3px 12px repeat-y; }
  .steps li:nth-child(1)::after { animation-name: step-fill-v-0; }
  .steps li:nth-child(2)::after { animation-name: step-fill-v-1; }
  .steps li:nth-child(3)::after { animation-name: step-fill-v-2; }
  .steps li:nth-child(4)::after { animation-name: step-fill-v-3; }
}
@media (prefers-reduced-motion: reduce) {
  .steps li::before, .steps li:last-child::before { background: var(--blue); color: var(--white); box-shadow: 0 0 0 7px rgba(25, 86, 214, .16); }
  .steps li::after { background-size: 100% 3px, 12px 3px; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 960px) { .steps li::after { background-size: 3px 100%, 3px 12px; } }

/* ---------- Titular y textos alineados con el eje «Hoy» ---------- */
.hero-title { column-gap: 0; }
.hero-title .past { padding-right: clamp(16px, 2.5vw, 32px); }
.hero-title .future { padding-left: clamp(14px, 1.6vw, 22px); }
.tl-captions { gap: 0; margin-top: 0; }
.tl-captions p { padding-top: 18px; }
.tl-captions p:first-child { padding-right: clamp(16px, 2.5vw, 32px); }
.tl-captions p + p { padding-left: clamp(14px, 1.6vw, 22px); border-left: 2px solid var(--ink); }
@media (max-width: 760px) {
  .hero-title .past, .hero-title .future { padding: 0; }
  .tl-captions p { padding-top: 12px; }
  .tl-captions p + p { padding-top: 6px; border-left: 0; }
}
.clients-inner { padding-left: clamp(20px, 3.5vw, 48px); }

/* ---------- Situaciones con ilustración ---------- */
.pains.pains-art { gap: clamp(14px, 2vw, 22px); }
.pains-art li {
  border: 1px solid var(--line); border-radius: 20px; background: var(--white);
  padding: 22px 24px 24px; grid-template-columns: 84px minmax(0, 1fr); column-gap: 20px; row-gap: 6px;
  box-shadow: 0 1px 0 rgba(11, 35, 80, .03), 0 12px 30px rgba(11, 35, 80, .05);
}
.section-paper .pains-art li { background: var(--white); }
.pains-art li > :not(.pain-art) { grid-column: 2; }
.pain-art { grid-column: 1; grid-row: 1 / span 2; position: relative; width: 84px; height: 84px; border-radius: 22px; display: grid; place-items: center; overflow: hidden; align-self: start; }
.pa-ring { position: absolute; width: 120px; height: 120px; right: -52px; top: -52px; border-radius: 50%; border: 14px solid rgba(255, 255, 255, .16); }
.pa-main { position: relative; color: var(--white); display: grid; place-items: center; }
.pa-main svg { width: 38px; height: 38px; }
.pa-badge { position: absolute; right: 8px; bottom: 8px; width: 26px; height: 26px; border-radius: 9px; background: var(--white); display: grid; place-items: center; box-shadow: 0 4px 10px rgba(11, 35, 80, .18); }
.pa-badge svg { width: 15px; height: 15px; }
.th-blue { background: linear-gradient(140deg, #1956d6, #0c72cf); } .th-blue .pa-badge { color: #1956d6; }
.th-rose { background: linear-gradient(140deg, #e04a6e, #b8325a); } .th-rose .pa-badge { color: #c23a62; }
.th-amber { background: linear-gradient(140deg, #f0a93b, #d4801a); } .th-amber .pa-badge { color: #b46a06; }
.th-teal { background: linear-gradient(140deg, #0aa3ad, #037480); } .th-teal .pa-badge { color: #037480; }
.th-violet { background: linear-gradient(140deg, #7d5ce0, #5a3cc4); } .th-violet .pa-badge { color: #6a45d1; }
.th-ink { background: linear-gradient(140deg, #16336e, #0b2350); } .th-ink .pa-main { color: var(--aqua); } .th-ink .pa-badge { color: var(--ink); background: var(--aqua); }
@media (max-width: 760px) {
  .pains-art li { grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; padding: 18px; }
  .pain-art { width: 64px; height: 64px; border-radius: 18px; }
  .pa-main svg { width: 30px; height: 30px; }
  .pa-badge { width: 22px; height: 22px; right: 5px; bottom: 5px; border-radius: 7px; }
  .pa-badge svg { width: 13px; height: 13px; }
}
.pa-main { transform: translate(-6px, -6px); }
@media (max-width: 760px) { .pa-main { transform: translate(-4px, -4px); } }

/* ---------- Portal: rótulos de cifras y acceso ---------- */
.states { margin-top: 30px; }
.states-title { font-size: .9rem; font-weight: 600; color: var(--aqua); margin-bottom: 12px; }
.states-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.states-grid li { display: grid; gap: 8px; align-content: start; padding: 14px 16px; border: 1px solid rgba(181, 254, 247, .16); border-radius: 14px; background: rgba(255, 255, 255, .035); font-size: .93rem; line-height: 1.45; color: #c9d7ec; }
.state-chip { width: fit-content; display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .01em; }
.state-chip::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
.s-obs { background: rgba(79, 134, 240, .18); color: #8db2ff; }
.s-inf { background: rgba(35, 170, 180, .18); color: #6fdbe2; }
.s-sup { background: rgba(181, 254, 247, .06); color: var(--aqua); outline: 1px dashed rgba(181, 254, 247, .6); }
.s-sup::before { background: transparent; outline: 1.5px dashed currentColor; outline-offset: -1px; }
.s-pen { background: rgba(224, 161, 58, .18); color: #f3c77c; }
.s-pen::before { border-radius: 50%; }
.portal-cta { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 16px 16px 20px; border-radius: 16px; background: rgba(181, 254, 247, .07); border: 1px solid rgba(181, 254, 247, .2); }
.portal-cta div { display: grid; gap: 2px; font-size: .93rem; color: #c9d7ec; }
.portal-cta strong { color: var(--white); font-size: 1rem; }
.portal-cta .btn { flex: none; }
@media (max-width: 520px) {
  .states-grid { grid-template-columns: 1fr; }
  .portal-cta { flex-direction: column; align-items: stretch; }
}

/* ---------- Portal: íconos en espacios, fuentes y garantías ---------- */
.space h3 { display: flex; align-items: center; gap: 12px; }
.sp-icon, .pb-icon { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; }
.sp-icon svg, .pb-icon svg { width: 20px; height: 20px; }
.space { grid-template-columns: 200px 1fr; align-items: center; }
.portal-bottom { align-items: stretch; }
.pb-card { border: 1px solid rgba(181, 254, 247, .16); border-radius: 18px; background: rgba(255, 255, 255, .035); padding: 24px; }
.pb-card h3 { display: flex; align-items: center; gap: 12px; font-size: 1.15rem; margin-bottom: 16px; }
.pb-card p { font-size: .97rem; line-height: 1.6; }
.src-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.src-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; font-size: .93rem; line-height: 1.45; color: #a9bcd9; }
.src-list b { display: block; color: var(--white); font-weight: 600; font-size: .97rem; margin-bottom: 1px; }
.src-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(79, 134, 240, .18); color: #8db2ff; }
.src-icon svg { width: 18px; height: 18px; }
.src-list li:nth-child(2) .src-icon { background: rgba(35, 170, 180, .18); color: #6fdbe2; }
.src-list li:nth-child(3) .src-icon { background: rgba(181, 254, 247, .12); color: var(--aqua); }
.src-list li:nth-child(4) .src-icon { background: rgba(125, 92, 224, .22); color: #b9a6ff; }
.src-list li.soon { opacity: .7; }
.src-list li.soon .src-icon { background: transparent; border: 1.5px dashed rgba(181, 254, 247, .5); color: var(--aqua); }
.src-list li.soon b { color: #c9d7ec; }
@media (max-width: 520px) { .space { grid-template-columns: 1fr; } }
.portal-bottom { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(14px, 2vw, 22px); }
.portal-bottom .pb-card:first-child { grid-row: span 2; }
.src-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; row-gap: 16px; }
@media (max-width: 1100px) { .src-list { grid-template-columns: 1fr; } }
@media (max-width: 960px) { .portal-bottom { grid-template-columns: 1fr; } .portal-bottom .pb-card:first-child { grid-row: auto; } }

/* ---------- Mini línea de tiempo en las tarjetas de las landings ---------- */
.mini-tl { display: grid; gap: 10px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.mt-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.mt-keys { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; white-space: nowrap; }
.mt-keys em { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.mt-keys .k-obs { background: var(--blue); }
.mt-keys .k-fut { background: rgba(181, 254, 247, .7); border: 1.5px dashed var(--teal); margin-left: 6px; }
.mt-bars { position: relative; display: flex; align-items: flex-end; gap: 6px; height: 72px; border-bottom: 2px solid var(--ink); }
.mt-bars i { flex: 1; height: var(--h); border-radius: 5px 5px 1px 1px; transform-origin: bottom; }
.mt-past { background: var(--blue); }
.mt-future { background: repeating-linear-gradient(-45deg, rgba(181, 254, 247, .65) 0 5px, rgba(181, 254, 247, .2) 5px 10px); border: 1.5px dashed var(--teal); border-bottom: 0; }
.mt-today { align-self: stretch; width: 2px; background: var(--ink); margin-top: -6px; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .mt-bars i { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  .js .mt-bars i:nth-child(2) { animation-delay: .06s; } .js .mt-bars i:nth-child(3) { animation-delay: .12s; }
  .js .mt-bars i:nth-child(4) { animation-delay: .18s; } .js .mt-bars i:nth-child(5) { animation-delay: .24s; }
  .js .mt-bars i:nth-child(6) { animation-delay: .3s; } .js .mt-bars .mt-future { animation-name: appear; animation-delay: .55s; }
}
.receipt { box-shadow: 0 20px 50px rgba(11, 35, 80, .10); border-radius: 22px; }
.step-time { display: inline-block; width: fit-content; margin-top: 6px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; color: var(--teal-text); background: #e0f4f5; }
#portal-cifras .pipeline { margin-bottom: 28px; }
.after-pipeline { margin: 0; }

/* ---------- Footer con cuatro columnas ---------- */
.footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Guías ---------- */
.guide-hero { padding: clamp(36px, 6vw, 76px) 0 clamp(30px, 4vw, 44px); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--paper), var(--white)); }
.guide-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.7rem); line-height: 1.03; letter-spacing: -0.032em; max-width: 21ch; }
.guide-hero .hero-lede { margin-top: 20px; max-width: 64ch; }
.guide-meta { margin-top: 18px; font-size: .92rem; color: var(--muted); }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: clamp(32px, 5vw, 80px); align-items: start; padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(64px, 8vw, 104px); }
.article { max-width: 72ch; min-width: 0; }
.article > section { margin-top: clamp(40px, 5vw, 56px); }
.article h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); line-height: 1.12; letter-spacing: -0.02em; scroll-margin-top: 96px; }
.article h3 { font-size: 1.15rem; margin-top: 26px; }
.article p { margin-top: 14px; color: var(--ink-soft); }
.article ul, .article ol:not(.mini-steps) { margin: 14px 0 0; padding-left: 1.2em; display: grid; gap: 9px; color: var(--ink-soft); }
.article a { color: var(--blue); }
.article strong { color: var(--ink); }
.key-facts { background: var(--paper); border-radius: var(--radius-m); padding: 24px 26px 26px; border-left: 4px solid var(--teal); }
.key-facts h2 { font-size: 1.15rem; letter-spacing: 0; }
.key-facts ul { padding-left: 1.1em; }
.article .checklist { list-style: none; padding-left: 0; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.callout { margin-top: 22px; padding: 16px 20px; border-radius: var(--radius-m); background: #fff6e3; border: 1px solid #f0d49c; color: #5c4210 !important; }
.callout strong { color: #4a330a; }
.table-wrap { margin-top: 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--white); }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
table.data caption { text-align: left; padding: 14px 16px 0; font-weight: 600; color: var(--muted); font-size: .9rem; }
table.data th, table.data td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
table.data thead th { background: var(--ink); color: var(--white); font-weight: 600; font-size: .9rem; }
table.data tbody th { color: var(--ink); font-weight: 600; }
table.data tbody tr:last-child th, table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:nth-child(even) { background: #f8fbfd; }
.mini-steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 0; counter-reset: ms; }
.mini-steps li { counter-increment: ms; position: relative; padding: 0 0 22px 52px; }
.mini-steps li::before { content: counter(ms); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: var(--white); font-weight: 700; font-size: .95rem; }
.mini-steps li::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; border-left: 2px dotted var(--line); }
.mini-steps li:last-child::after { display: none; }
.mini-steps li > div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.mini-steps h3 { margin: 4px 0 0; }
.mini-steps .step-time { margin-top: 4px; }
.mini-steps p { margin-top: 6px; }
.sources { border-top: 1px solid var(--line); padding-top: 28px; }
.sources h2 { font-size: 1.1rem; letter-spacing: 0; }
.sources ul { font-size: .93rem; }
.guide-aside { position: sticky; top: 96px; display: grid; gap: 18px; }
.toc { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 20px 22px; background: var(--white); }
.toc p { font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; font-size: .93rem; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--blue); text-decoration: underline; }
.aside-cta { background: var(--ink); color: #cfdcf0; border-radius: var(--radius-m); padding: 24px 22px; display: grid; gap: 12px; }
.aside-cta .aside-title { font: 700 1.25rem/1.15 var(--display); color: var(--white); }
.aside-cta .btn { justify-self: start; }
.aside-wa { color: var(--aqua); font-size: .92rem; }
.guide-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.guide-card { display: grid; align-content: start; gap: 12px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--white); color: var(--ink-soft); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.guide-card h3 { color: var(--ink); font-size: 1.2rem; line-height: 1.2; }
.guide-card p { font-size: .97rem; }
.guide-card .seg-icon { margin: 0; }
.guide-more { color: var(--blue); font-weight: 600; font-size: .95rem; margin-top: 4px; }
.guide-card:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(11, 35, 80, .08); }
.guide-card:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .guide-card { transition: none; } .guide-card:hover { transform: none; } }
@media (max-width: 960px) {
  .guide-layout { grid-template-columns: 1fr; }
  .guide-aside { position: static; }
  .toc { display: none; }
  .guide-cards { grid-template-columns: 1fr; }
}
@media (min-width: 961px) and (max-width: 1100px) { .guide-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Infografía centrada y simétrica (escritorio) ---------- */
@media (min-width: 901px) {
  .pipeline { padding: clamp(34px, 4vw, 52px) clamp(28px, 4vw, 52px); }
  .pipe-title { text-align: center; margin-bottom: 30px; }
  .pipe { --pg: clamp(12px, 2vw, 24px); gap: var(--pg); }
  .pipe li { justify-items: center; text-align: center; }
  .pipe small { max-width: 19ch; }
  .pipe li::after { left: calc(50% + 39px); right: auto; width: calc(100% + var(--pg) - 78px); }
  .pipe-branches { justify-content: center; }
}

/* Cuatro tarjetas: grilla 2x2 en vez de una tarjeta suelta en la segunda fila. */
@media (min-width: 761px) {
  .guide-cards:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tablas de guía apiladas en celular: se leen completas, sin deslizar hacia el lado. */
@media (max-width: 640px) {
  table.data.stack { min-width: 0; }
  table.data.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  table.data.stack tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  table.data.stack tbody tr:last-child { border-bottom: 0; }
  table.data.stack th, table.data.stack td { display: block; padding: 2px 0; border: 0; }
  table.data.stack tbody th { margin-bottom: 4px; }
  table.data.stack td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--ink); }
}

/* Testimonios: tarjetas de igual alto, firma alineada al pie con iniciales */
.quotes, .quotes.quotes-3 { align-items: stretch; gap: clamp(18px, 2.4vw, 28px); }
.quote {
  display: flex; flex-direction: column; gap: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(26px, 2.8vw, 38px);
  box-shadow: 0 1px 2px rgba(11, 35, 80, .04), 0 24px 48px -32px rgba(11, 35, 80, .38);
}
.quote blockquote, .quotes-3 .quote blockquote {
  flex: 1; font: 600 clamp(1.1rem, 1.35vw, 1.24rem)/1.48 var(--display); letter-spacing: -0.01em; color: var(--ink);
}
.quotes:not(.quotes-3) .quote blockquote { font-size: clamp(1.15rem, 1.6vw, 1.38rem); }
.quote blockquote::before { font-size: 3.4em; line-height: .5; margin-bottom: 18px; }
.quote figcaption {
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 14px;
}
.quote figcaption .quote-avatar {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--aqua); font: 700 .98rem/1 var(--display); letter-spacing: .03em;
}
.quote-who { display: grid; gap: 3px; line-height: 1.35; }
.quote-who strong { color: var(--ink); font-size: 1rem; }
.quote-who span { color: var(--muted); font-size: .92rem; }
@media (max-width: 960px) { .quotes-3 .quote blockquote { font-size: clamp(1.1rem, 4vw, 1.25rem); } }

/* ---------- Línea de tiempo v2: pasado real | Hoy | futuro proyectado en panel oscuro ---------- */
.tl-stage { position: relative; margin-top: clamp(8px, 1.5vw, 16px); padding: clamp(18px, 2vw, 24px) 0 0; }
.tl-stage::before {
  content: ""; position: absolute; z-index: 0; left: 50%; right: calc(-1 * clamp(14px, 2vw, 28px));
  top: 0; bottom: calc(-1 * clamp(16px, 1.6vw, 22px));
  background:
    radial-gradient(120% 80% at 70% 0%, rgba(25, 86, 214, .45) 0%, transparent 60%),
    var(--ink);
  border-radius: 0 24px 24px 0;
}
.tl-stage > * { position: relative; z-index: 1; }
.tl-labels { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: clamp(14px, 2vw, 22px); }
.tl-label { display: inline-flex; align-items: center; gap: 8px; font: 700 .82rem/1.2 var(--body); letter-spacing: .01em; }
.tl-label::before { content: ""; width: 12px; height: 12px; border-radius: 3px; flex: none; }
.tl-label.past { color: var(--blue); }
.tl-label.past::before { background: var(--blue); }
.tl-label.future { color: var(--aqua); padding-left: clamp(26px, 3vw, 40px); }
.tl-label.future::before { background: linear-gradient(to top, var(--teal), var(--aqua)); box-shadow: 0 0 10px rgba(181, 254, 247, .7); }

.tl-grid { height: clamp(190px, 21vw, 280px); border-bottom: 0; }
.tl-grid::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(to right, var(--ink) 50%, rgba(181, 254, 247, .55) 50%); }
.tl-bar { border-radius: 9px 9px 2px 2px; }
.tl-col.past .tl-bar { background: linear-gradient(to top, #1447b4, var(--blue)); }
.tl-col.partial .tl-bar { background: linear-gradient(to top, var(--blue) 0 55%, rgba(25, 86, 214, .08) 55%); border: 2px solid var(--blue); border-bottom: 0; }
.tl-col.future .tl-bar {
  background: linear-gradient(to top, rgba(4, 143, 155, .55) 0%, #3fd3d6 55%, var(--aqua) 100%);
  border: 0; box-shadow: 0 0 26px -8px rgba(181, 254, 247, .75);
}
.tl-months { margin-top: 12px; font-weight: 600; color: var(--muted); }
.tl-months span:nth-child(6) { color: var(--ink); }
.tl-months span:nth-child(n+7) { color: #cfe0f5; }

.tl-today { top: 0; bottom: calc(-1 * clamp(16px, 1.6vw, 22px)); left: 50%; border-left: 2px solid var(--aqua); z-index: 2; }
.tl-today b {
  top: 0; transform: translate(-50%, -50%);
  background: var(--aqua); color: var(--ink); font: 800 .86rem/1 var(--body);
  padding: 8px 15px; box-shadow: 0 8px 20px -8px rgba(11, 35, 80, .55);
}

/* Hitos: solo lo que viene, un hito por mes, con nombre completo */
.tl-tags { bottom: calc(var(--h) + 10px); gap: 0; }
.tl-tag, .tl-tag.t-dir, .tl-tag.t-diag, .tl-tag.t-ret, .tl-tag.t-dj, .tl-tag.t-renta, .tl-tag.t-cierre {
  display: inline-block; width: auto; height: auto; max-width: 15ch;
  padding: 6px 10px; border: 0; border-radius: 9px; box-shadow: none;
  font: 700 .76rem/1.2 var(--body); white-space: normal; text-align: center; opacity: 1;
  background: var(--white); color: var(--ink);
}
.tl-tag.key { background: var(--amber); color: var(--ink); box-shadow: 0 0 0 4px rgba(224, 161, 58, .22); }
.tl-col.past .tl-tag:not(.key) { outline: 2px solid var(--ink); outline-offset: -2px; }
.tl-tag .s { display: none; }
@media (max-width: 1180px) {
  .tl-tag .l { display: none; }
  .tl-tag .s { display: inline; }
  .tl-tag, .tl-tag.t-dir, .tl-tag.t-diag, .tl-tag.t-ret, .tl-tag.t-dj, .tl-tag.t-renta, .tl-tag.t-cierre { white-space: nowrap; }
}
@media (max-width: 760px) {
  .tl-stage::before { border-radius: 0 16px 16px 0; }
  .tl-labels { grid-template-columns: 1fr 1fr; }
  .tl-label { font-size: .7rem; gap: 6px; }
  .tl-label::before { width: 9px; height: 9px; }
  .tl-label.future { padding-left: 14px; }
  .tl-grid { height: 170px; }
  .tl-tag:not(.key) { display: none; }
  .tl-tag, .tl-tag.t-renta, .tl-tag.t-cierre { font-size: .66rem; padding: 4px 7px; border-radius: 7px; }
  .tl-today b { font-size: .74rem; padding: 6px 11px; }
}
.tl-stage { margin-bottom: clamp(36px, 4vw, 52px); }
.tl-stage > .tl-today { position: absolute; }
.tl-tags { width: max-content; }
.tl-tag.key { box-shadow: 0 8px 22px -8px rgba(224, 161, 58, .75); }

/* Hitos tipo pin: etiqueta arriba y una línea que baja hasta su barra */
.tl-grid { height: clamp(210px, 23vw, 300px); }
.tl-col { --row: 0px; --pin: 30px; }
.tl-col.row-b { --row: 40px; }
.tl-tags { top: var(--row); bottom: auto; }
.tl-col.has-tag::before {
  content: ""; position: absolute; left: 50%; width: 2px; transform: translateX(-50%);
  top: calc(var(--row) + var(--pin)); bottom: calc(var(--h) + 2px);
  background: linear-gradient(to bottom, rgba(181, 254, 247, .9), rgba(181, 254, 247, .25));
}
.tl-col.past.has-tag::before { background: linear-gradient(to bottom, var(--ink), rgba(11, 35, 80, .2)); }
.tl-col.is-key::before { background: linear-gradient(to bottom, var(--amber), rgba(224, 161, 58, .25)); }
.tl-col.al-start .tl-tags { left: 0; transform: none; }
.tl-col.al-end .tl-tags { left: auto; right: 0; transform: none; }
.tl-tag, .tl-tag.t-dir, .tl-tag.t-diag, .tl-tag.t-ret, .tl-tag.t-dj, .tl-tag.t-renta, .tl-tag.t-cierre { white-space: nowrap; max-width: none; }
@media (max-width: 1180px) and (min-width: 761px) { .tl-col { --pin: 28px; } }
@media (max-width: 760px) {
  .tl-grid { height: 180px; }
  .tl-col { --pin: 22px; }
  .tl-col.row-b { --row: 0px; }
  .tl-col.has-tag:not(.is-key)::before { display: none; }
}

/* ---------- Línea de tiempo v3: contador clásico | Hoy | cómo trabaja iContable ---------- */
.timeline { --side-pad: clamp(18px, 2vw, 28px); --bleed: clamp(14px, 2vw, 28px); --panel: #e8f2fd; }
.tl-stage { margin: 0; padding: clamp(40px, 4vw, 52px) 0 clamp(18px, 2vw, 24px); }
.tl-stage::before {
  top: 0; bottom: 0; right: calc(-1 * var(--bleed));
  background: var(--panel); border-radius: 0 24px 0 0;
}
.tl-grid::after { background: linear-gradient(to right, #8c9db8 50%, var(--teal) 50%); }
.tl-col.past .tl-bar { background: linear-gradient(to top, #8c9db8, #b4c2d6); }
.tl-col.partial .tl-bar { background: linear-gradient(to top, #8c9db8 0 55%, rgba(140, 157, 184, .1) 55%); border: 2px solid #8c9db8; border-bottom: 0; }
.tl-col.future .tl-bar {
  background: linear-gradient(to top, var(--blue) 0%, var(--blue-mid) 45%, #0aa6b2 100%);
  box-shadow: 0 14px 26px -18px rgba(25, 86, 214, .8);
}
.tl-months span:nth-child(-n+6) { color: #7d8ca5; }
.tl-months span:nth-child(6) { color: var(--ink-soft); }
.tl-months span:nth-child(n+7) { color: var(--ink); }
.tl-today { bottom: 0; border-left-color: var(--ink); }
.tl-today b { background: var(--ink); color: var(--aqua); box-shadow: 0 8px 20px -10px rgba(11, 35, 80, .6); }
.tl-tag, .tl-tag.t-dir, .tl-tag.t-diag, .tl-tag.t-ret, .tl-tag.t-dj, .tl-tag.t-renta, .tl-tag.t-cierre {
  background: var(--white); color: var(--ink); box-shadow: 0 6px 16px -10px rgba(11, 35, 80, .45), 0 0 0 1px #cfdcec;
}
.tl-tag.key { background: var(--amber); color: var(--ink); box-shadow: 0 8px 18px -10px rgba(224, 161, 58, .9); }
.tl-col.has-tag::before { background: linear-gradient(to bottom, rgba(11, 35, 80, .45), rgba(11, 35, 80, .1)); }
.tl-col.is-key::before { background: linear-gradient(to bottom, var(--amber), rgba(224, 161, 58, .2)); }

.tl-compare { display: grid; grid-template-columns: 1fr 1fr; }
.tl-side { padding: clamp(22px, 2.4vw, 30px) var(--side-pad) clamp(26px, 2.8vw, 34px) 0; }
.tl-side.ours { position: relative; padding-left: var(--side-pad); margin-right: calc(-1 * var(--bleed)); padding-right: calc(var(--bleed) + var(--side-pad)); background: var(--panel); border-radius: 0 0 24px 0; border-left: 2px solid var(--ink); }
.tl-side-title { display: flex; align-items: center; gap: 10px; font: 700 clamp(1.1rem, 1.5vw, 1.3rem)/1.2 var(--display); letter-spacing: -0.01em; }
.tl-side-title::before { content: ""; width: 14px; height: 14px; border-radius: 4px; flex: none; }
.tl-side.classic .tl-side-title { color: #5f6f8a; }
.tl-side.classic .tl-side-title::before { background: linear-gradient(to top, #8c9db8, #b4c2d6); }
.tl-side.ours .tl-side-title { color: var(--ink); }
.tl-side.ours .tl-side-title::before { background: linear-gradient(to top, var(--blue), #0aa6b2); }
.tl-side ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.tl-side li { position: relative; padding-left: 28px; font-size: 1.02rem; line-height: 1.45; }
.tl-side li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%; }
.tl-side.classic li { color: #66758e; }
.tl-side.classic li::before { background: #e6ebf2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238c9db8' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E") center/12px no-repeat; }
.tl-side.ours li { color: var(--ink); font-weight: 500; }
.tl-side.ours li::before { background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat; }
.hero .hero-actions { margin-top: clamp(28px, 3vw, 40px); }

@media (max-width: 760px) {
  .tl-stage { padding-top: 34px; }
  .tl-stage::before { border-radius: 0 16px 16px 0; }
  .tl-compare { grid-template-columns: 1fr; gap: 12px; margin-top: 18px; }
  .tl-side, .tl-side.ours { margin: 0; padding: 18px 18px 20px; border-radius: 16px; border-left: 0; }
  .tl-side.classic { border: 1px solid var(--line); }
  .tl-side li { font-size: .98rem; }
}

/* ---------- Hero: titular parejo y un solo margen desde el eje «Hoy» ---------- */
.hero { --axis-pad: clamp(18px, 2.2vw, 30px); }
.timeline { --side-pad: var(--axis-pad); }
.hero-title { font-size: clamp(2.4rem, 4.6vw, 4.3rem); line-height: 1; column-gap: 0; }
.hero-title .ln { display: block; white-space: nowrap; }
.hero-title .past { padding-right: var(--axis-pad); }
.hero-title .future { padding-left: var(--axis-pad); }
.tl-side.classic { padding-right: var(--axis-pad); }
.tl-side.ours { padding-left: calc(var(--axis-pad) - 2px); }
.tl-side li { font-size: 1rem; }
.tl-side.classic li { color: var(--muted); }
.tl-side.ours li { font-weight: 400; color: var(--ink-soft); }
.tl-side.ours li strong { color: var(--ink); font-weight: 700; }
.tl-side.ours ul { gap: 11px; }
.tl-panel-label {
  position: absolute; z-index: 1; top: clamp(14px, 1.5vw, 18px); left: calc(50% + var(--axis-pad));
  margin: 0; font: 700 .86rem/1.2 var(--body); color: var(--blue); letter-spacing: .01em;
}
.tl-stage { padding-top: clamp(50px, 4.6vw, 60px); }
@media (max-width: 760px) {
  .hero-title .past, .hero-title .future { padding: 0; }
  .tl-side.ours { padding-left: 18px; }
  .tl-panel-label { left: calc(50% + 10px); right: 0; top: 10px; font-size: .62rem; line-height: 1.25; }
  .tl-stage { padding-top: 46px; }
}

/* ---------- Teléfono realista: marco, Dynamic Island, barra de estado, pestañas y barra de inicio ---------- */
.phone {
  position: relative; width: min(100%, 352px); aspect-ratio: 9 / 19.5; margin-inline: auto;
  padding: 11px; border-radius: 58px; background: #04070d; color: var(--ink-soft);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    0 0 0 3px #46566f,
    0 0 0 4.5px #1a2337,
    0 0 0 5.5px rgba(255, 255, 255, .16),
    0 50px 90px -30px rgba(0, 0, 0, .75),
    0 22px 44px -22px rgba(0, 0, 0, .55);
}
.phone-key { position: absolute; width: 4px; border-radius: 2px 0 0 2px; background: linear-gradient(to right, #2a3550, #56667f); }
.phone-key.k-action { left: -9px; top: 16.5%; height: 4.2%; }
.phone-key.k-vol-up { left: -9px; top: 23.5%; height: 7.6%; }
.phone-key.k-vol-down { left: -9px; top: 33%; height: 7.6%; }
.phone-key.k-power { right: -9px; top: 26%; height: 11.5%; border-radius: 0 2px 2px 0; background: linear-gradient(to left, #2a3550, #56667f); }
.phone-screen {
  position: relative; height: 100%; border-radius: 47px; overflow: hidden;
  background: var(--white); padding: 0; display: flex; flex-direction: column; gap: 0; font-size: .84rem;
}
.ph-status { flex: none; position: relative; height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 8px 26px 0 34px; color: var(--ink); }
.ph-time { font: 700 .95rem/1 var(--body); letter-spacing: .01em; }
.ph-island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 32%; height: 31px; border-radius: 999px; background: #04070d; }
.ph-sys { display: inline-flex; align-items: center; gap: 5px; }
.ph-sys svg { height: 11px; width: auto; fill: currentColor; }
.ph-batt { position: relative; width: 25px; height: 12px; border-radius: 4px; border: 1.3px solid rgba(11, 35, 80, .42); padding: 1.4px; margin-right: 3px; }
.ph-batt i { display: block; height: 100%; width: 78%; border-radius: 2px; background: var(--ink); }
.ph-batt::after { content: ""; position: absolute; right: -4px; top: 3.2px; width: 2px; height: 4px; border-radius: 0 1.5px 1.5px 0; background: rgba(11, 35, 80, .42); }
.ph-app {
  flex: 1; min-height: 0; overflow: hidden; display: grid; gap: 10px; align-content: start; padding: 6px 15px 18px;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 44px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 44px), transparent);
}
.ph-app .ph-amount { font-size: 1.45rem; }
.ph-tabs { flex: none; display: grid; grid-template-columns: repeat(3, 1fr); padding: 9px 10px 28px; border-top: 1px solid var(--line); background: #fbfdff; }
.ph-tabs span { display: grid; justify-items: center; gap: 3px; font: 600 .66rem/1.1 var(--body); color: #8b99b1; }
.ph-tabs svg { width: 21px; height: 21px; }
.ph-tabs .on { color: var(--blue); }
.ph-home { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 36%; height: 5px; border-radius: 3px; background: var(--ink); }
@media (max-width: 420px) {
  .phone { width: min(100%, 330px); border-radius: 52px; padding: 10px; }
  .phone-screen { border-radius: 42px; }
}
.phone-screen { font-size: .8rem; }
.ph-app { gap: 8px; padding-top: 4px; }
.ph-app .ph-card { padding: 10px 12px; gap: 5px; border-radius: 13px; }
.ph-app .ph-amount { font-size: 1.36rem; }
.ph-app .ph-top { font-size: .98rem; }
.ph-app .ph-top svg { width: 22px; height: 22px; }
.ph-app .ph-company { font-size: .95rem; }
.ph-app .ph-label, .ph-app .ph-pub, .ph-app .ph-sub { font-size: .74rem; }
.ph-app .ph-row b { font-size: .92rem; }
.ph-app .ph-task span { font-size: .78rem; }
.ph-app .ph-task .ph-btn { font-size: .7rem; padding: 7px 10px; }
.ph-app .chip { font-size: .66rem; padding: 3px 7px; }

/* ---------- Portal: espacios con frase principal y etiquetas de color ---------- */
.space { grid-template-columns: 200px minmax(0, 1fr); align-items: start; padding: 22px 0; }
.space h3 { padding-top: 2px; }
.space-body { display: grid; gap: 12px; }
.space-lead { margin: 0; font-size: 1.04rem; line-height: 1.5; color: #dbe6f6; }
.space-lead strong { color: var(--white); font-weight: 700; }
.space-feature {
  margin: 6px 0 10px; padding: 22px 22px 22px 20px; border: 1px solid rgba(181, 254, 247, .32); border-radius: 18px;
  background: linear-gradient(135deg, rgba(25, 86, 214, .28), rgba(4, 143, 155, .16));
  box-shadow: 0 18px 40px -26px rgba(0, 0, 0, .7);
}
.space-feature + .space { border-top: 0; }
.space-feature .space-lead { font-size: 1.12rem; }
.space-feature .space-lead strong:last-of-type { color: #f6c46d; }
.space-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.space-tags li {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px;
  font: 600 .8rem/1.2 var(--body); border: 1px solid; white-space: nowrap;
}
.space-tags li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.space-tags .t-aqua { color: var(--aqua); background: rgba(181, 254, 247, .1); border-color: rgba(181, 254, 247, .38); }
.space-tags .t-amber { color: #f6c46d; background: rgba(224, 161, 58, .14); border-color: rgba(224, 161, 58, .5); }
.space-tags .t-blue { color: #9dbcff; background: rgba(79, 134, 240, .16); border-color: rgba(79, 134, 240, .55); }
.space-tags .t-teal { color: #6fdbe2; background: rgba(35, 170, 180, .15); border-color: rgba(35, 170, 180, .5); }
.space-tags .t-violet { color: #c4b5ff; background: rgba(125, 92, 224, .18); border-color: rgba(125, 92, 224, .5); }
@media (max-width: 520px) {
  .space { grid-template-columns: 1fr; gap: 12px; }
  .space-feature { padding: 18px 16px; }
  .space-tags li { white-space: normal; }
}

/* Celular: resultado operacional del mes */
.ph-app .ph-result { border-color: rgba(4, 143, 155, .35); background: #effbfb; }
.ph-app .ph-result .ph-row b { color: var(--teal-text); font-size: 1rem; }
.ph-up { display: inline-flex; align-items: center; gap: 5px; font: 600 .68rem/1.2 var(--body); color: #037480; }
.ph-up::before { content: ""; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 6px solid var(--teal); }
.ph-app { gap: 7px; }
.ph-app .ph-card { padding: 9px 12px; }
.ph-app .ph-sub { margin-top: 2px; }
/* Espacios en vertical: título, frase y etiquetas a todo el ancho */
.space { grid-template-columns: 1fr; gap: 12px; }
.space h3 { padding-top: 0; }
.space-feature { padding: 22px; }
.ph-app .ph-result { gap: 3px; }
.ph-app .ph-result .ph-row { align-items: center; }
.ph-app .ph-res { font: 700 1.2rem/1.1 var(--display); color: var(--teal-text); letter-spacing: -0.01em; }

/* ---------- Menú principal con letra más grande ---------- */
@media (min-width: 1181px) {
  .nav a { white-space: nowrap; }
  .nav a:not(.btn) { font-size: 1.1rem; padding: 10px; }
  .nav .btn { font-size: 1.02rem; min-height: 46px; }
}

/* ---------- Línea de tiempo: informe de gestión mensual (sello en cada barra) ---------- */
.tl-bar { position: relative; }
.tl-report {
  display: inline-block; flex: none; width: 22px; height: 22px; border-radius: 6px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231956d6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z'/%3E%3Cpath d='M14 2v5a1 1 0 0 0 1 1h5'/%3E%3Cpath d='M8 18v-1'/%3E%3Cpath d='M12 18v-6'/%3E%3Cpath d='M16 18v-3'/%3E%3C/svg%3E") center/14px no-repeat;
  box-shadow: 0 3px 8px -3px rgba(11, 35, 80, .45);
}
.tl-bar .tl-report { position: absolute; left: 50%; bottom: 9px; transform: translateX(-50%); }
.tl-col.past .tl-bar .tl-report {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6f8a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z'/%3E%3Cpath d='M14 2v5a1 1 0 0 0 1 1h5'/%3E%3Cpath d='M8 18v-1'/%3E%3Cpath d='M12 18v-6'/%3E%3Cpath d='M16 18v-3'/%3E%3C/svg%3E");
}
.tl-report-legend {
  position: absolute; z-index: 1; top: clamp(14px, 1.5vw, 18px); right: 0;
  margin: 0; display: inline-flex; align-items: center; gap: 7px;
  font: 600 .8rem/1.2 var(--body); color: var(--ink-soft);
}
.tl-report-legend .tl-report { width: 20px; height: 20px; background-size: 13px; box-shadow: 0 0 0 1px #cfdcec; }
@media (max-width: 1180px) {
  .tl-report-legend { top: calc(clamp(14px, 1.5vw, 18px) + 22px); left: calc(50% + var(--axis-pad)); right: auto; font-size: .74rem; }
  .tl-stage { padding-top: 72px; }
}
@media (max-width: 760px) {
  .tl-bar .tl-report { width: 15px; height: 15px; border-radius: 4px; background-size: 10px; bottom: 5px; }
  .tl-report-legend { top: 44px; left: calc(50% + 10px); gap: 5px; font-size: .6rem; }
  .tl-report-legend .tl-report { width: 13px; height: 13px; background-size: 9px; }
  .tl-stage { padding-top: 66px; }
}
@media (max-width: 760px) {
  .tl-tag.t-dir { display: inline-block; font-size: .66rem; padding: 4px 7px; border-radius: 7px; }
  .tl-col:has(.t-dir) { --row: 30px; }
}

/* Contraste: rótulo del lado del contador clásico y leyenda bajo el rótulo de iContable */
.tl-classic-label {
  position: absolute; z-index: 1; top: clamp(14px, 1.5vw, 18px); left: 0; right: calc(50% + var(--axis-pad));
  margin: 0; font: 700 .86rem/1.2 var(--body); color: #7d8ca5; letter-spacing: .01em;
}
.tl-report-legend { top: calc(clamp(14px, 1.5vw, 18px) + 24px); left: calc(50% + var(--axis-pad)); right: auto; }
.tl-stage { padding-top: clamp(76px, 6vw, 84px); }
@media (max-width: 1180px) { .tl-report-legend { top: calc(clamp(14px, 1.5vw, 18px) + 22px); } .tl-stage { padding-top: 74px; } }
@media (max-width: 760px) {
  .tl-classic-label { top: 10px; right: calc(50% + 10px); font-size: .62rem; line-height: 1.25; }
  .tl-report-legend { top: 44px; left: calc(50% + 10px); }
  .tl-stage { padding-top: 66px; }
}

/* Renta F22 en dos líneas (gestionada y optimizada): la línea del hito parte bajo la etiqueta */
@media (min-width: 1181px) { .tl-col:has(.t-renta) { --pin: 48px; } }
