/* ───────────────── v9 · después del hero ─────────────────
   Una gramática: la del hero. Fondos alternados con intención, producto a
   escala real, color plano de marca, escala tipográfica de seis pasos.     */

:root {
  --t-s: 14px;   /* notas y metadatos: nunca menos */
  --t-b: 17px;   /* cuerpo */
  --t-l: 20px;   /* entrada */
  --t-h3: clamp(22px, 1.9vw, 28px);
  --t-h2: clamp(32px, 3.6vw, 52px);
  --t-d: clamp(88px, 12vw, 184px);
  --deep: #0b6a61;       /* teal oscuro de marca como superficie llena (texto blanco 6,3:1) */
  --deep-2: #095a52;
  --sec: clamp(88px, 10vw, 144px);
}

/* base: los h2 de toda la página suben a la escala nueva */
main h2 {
  font-size: var(--t-h2);
  letter-spacing: -0.03em;
  line-height: 1.04;
}
main h3 {
  font-size: var(--t-h3);
  letter-spacing: -0.02em;
  line-height: 1.12;
}
main .lede {
  font-size: var(--t-l);
}
section + section {
  border-top: 0;
}
.hl-teal {
  color: var(--teal-text);
}
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.sec-head h2 {
  margin: 0;
}
.sec-head .lede {
  margin: 0;
}

/* ═════════════════ 1 · EL RELATO (escena fija con scroll) ═════════════════ */
.tale {
  padding: 0;
  background: var(--bg-2);
  position: relative;
}
.tale-intro {
  padding-top: var(--sec);
  padding-bottom: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
}
.tale-intro h2,
.tale-intro .lede {
  margin: 0;
}
.tale-track {
  position: relative;
  height: 560vh;
}
.tale-stage {
  position: sticky;
  top: var(--nav-h);
  height: calc(100svh - var(--nav-h));
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
}
.tale-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  min-height: 0;
}

/* copy: cinco bloques superpuestos */
.tale-copy {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.tc {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
}
.tc.is-on {
  opacity: 1;
  visibility: visible;
}
.tc-date {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 16px;
  font-size: var(--t-s);
  font-weight: 600;
  color: var(--muted);
}
.tc-date b {
  font-family: var(--display);
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.9;
  color: var(--ink);
}
.tc-loss .tc-date b {
  color: var(--loss-text);
}
.tc-win .tc-date b {
  color: var(--teal-text);
}
.tc h3 {
  font-size: clamp(26px, 2.6vw, 38px);
  margin: 0 0 14px;
  max-width: 18ch;
}
.tc p:last-child {
  font-size: var(--t-l);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 38ch;
  margin: 0;
}

/* tablero */
.board {
  position: relative;
  height: min(560px, calc(100svh - var(--nav-h) - 170px));
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(42, 50, 50, 0.28), 0 8px 20px -12px rgba(42, 50, 50, 0.12);
  overflow: hidden;
}
.board::before {
  /* retícula de marca, muy tenue */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(42, 50, 50, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 50, 50, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}
.scene {
  position: absolute;
  inset: 0;
  padding: clamp(20px, 3vw, 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
}
.board-note {
  position: absolute;
  left: 20px;
  bottom: 14px;
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  z-index: 3;
}

/* escena 0 · Anexo C */
.doc {
  width: min(460px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
}
.doc-k {
  margin: 0;
  font-size: var(--t-s);
  font-weight: 600;
  color: var(--muted);
}
.doc-t {
  margin: 4px 0 20px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.tramo {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 14px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.tr-n {
  font-weight: 700;
}
.tr-r {
  color: var(--ink-2);
}
.tr-v {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tramo[data-tramo="1"] .tr-v {
  font-weight: 500;
  color: var(--muted);
}
.tr-hi {
  border-radius: 12px;
  border-top-color: transparent;
  background: var(--teal-soft);
  color: var(--teal-text);
  position: relative;
}
.tr-hi .tr-r {
  color: var(--teal-text);
}
.doc-f {
  margin: 14px 0 0;
  font-size: var(--t-s);
  color: var(--muted);
}

/* escena 1 · horómetros */
.sc-bars {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 14px;
}
.bars-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.bh-t {
  margin: 0;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-2);
}
.bh-c {
  margin: 0;
  font-size: 15px;
  color: var(--ink-2);
}
.bh-c b {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 800;
  color: var(--teal-text);
  letter-spacing: -0.02em;
  margin-right: 6px;
}
.bars {
  position: relative;
  height: 62%;
  display: flex;
  align-items: flex-end;
  gap: clamp(2px, 0.5vw, 6px);
  padding-top: 8px;
}
.bar {
  flex: 1;
  height: 100%;
  border-radius: 4px 4px 2px 2px;
  background: #d5dcdf;
  transform-origin: bottom;
  transform: scaleY(0.08);
}
.bar.is-over {
  background: var(--teal);
}
.bars-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(1200 / 1300 * 100%);
  border-top: 2px dashed var(--teal-text);
  z-index: 2;
}
.bars-line span {
  position: absolute;
  right: 0;
  bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-text);
  background: #fff;
  padding: 2px 8px;
  border-radius: 6px;
}
.bars-clip {
  position: absolute;
  top: clamp(20px, 3vw, 40px);
  right: clamp(20px, 3vw, 40px);
  width: min(240px, 38%);
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
  z-index: 3;
}
.bars-clip video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: url(#grade);
}
.bars-clip figcaption {
  position: absolute;
  left: 10px;
  bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
.sc-bars .bars-head {
  margin-right: min(270px, 42%);
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

/* escena 2/4 · EDP */
.sc-edp {
  flex-direction: column;
}
.edp {
  width: 100%;
  max-width: 600px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 15px;
}
.edp-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.edp-bar i,
.win-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e0e0e0;
}
.edp-bar span,
.win-bar span {
  margin-left: 8px;
}
.edp-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.8fr 1.2fr;
  gap: 8px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
  position: relative;
}
.edp-hd {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.edp-row .num {
  text-align: right;
}
.edp-row s {
  text-decoration: none;
}
.edp-row b {
  display: none;
  font-weight: 800;
  color: var(--teal-text);
}
.edp-row.hl {
  background: var(--loss-soft);
}
.edp-row.hl .tr,
.edp-row.hl .num {
  color: var(--loss-text);
  font-weight: 700;
}
.edp-more {
  grid-template-columns: 1fr;
  font-size: var(--t-s);
  color: var(--muted);
}
.edp-tot {
  grid-template-columns: 1fr auto;
  border-bottom: 0;
  font-weight: 800;
  font-family: var(--display);
  font-size: 18px;
}
.edp-tot .num {
  color: var(--loss-text);
}
/* estado "ganado" (escena 4) */
.sc-edp.is-win .edp-row.hl {
  background: var(--teal-soft);
}
.sc-edp.is-win .edp-row s {
  text-decoration: line-through;
  color: var(--muted);
  font-weight: 500;
  margin-right: 8px;
}
.sc-edp.is-win .edp-row b {
  display: inline;
}
.sc-edp.is-win .edp-tot .num {
  color: var(--teal-text);
}
.stamp {
  position: absolute;
  right: clamp(16px, 4vw, 48px);
  top: clamp(16px, 3vw, 36px);
  margin: 0;
  padding: 10px 16px;
  border-radius: 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(16px, 1.6vw, 22px);
  letter-spacing: -0.01em;
  transform: rotate(4deg);
  opacity: 0;
  z-index: 3;
}
.stamp-loss {
  color: #fff;
  background: var(--loss);
  box-shadow: 0 16px 30px -14px rgba(228, 0, 20, 0.6);
}
.stamp-win {
  color: #fff;
  background: var(--deep);
  box-shadow: 0 16px 30px -14px rgba(14, 127, 116, 0.6);
}

/* escena 3 · el caso */
.kase {
  width: min(500px, 100%);
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 22px 24px;
}
.kase-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
}
.kase-st {
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--violet-soft);
  color: var(--violet-text);
}
.kase-t {
  margin: 14px 0 6px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.kase-amt {
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -0.03em;
  color: var(--loss-text);
}
.flowy {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: var(--violet-soft);
}
.flowy img {
  border-radius: 8px;
}
.flowy p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  min-height: 3em;
}
.flowy p::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--violet);
  margin-left: 2px;
  vertical-align: -2px;
  animation: caret 1s steps(1) infinite;
}
@keyframes caret {
  50% {
    opacity: 0;
  }
}
.kase-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.owner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
.owner i {
  font-style: normal;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--violet-text);
  background: var(--violet-soft);
}
.approve {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--deep);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

/* línea del mes */
.month {
  padding: 22px 0 28px;
}
.m-track {
  position: relative;
  height: 4px;
  border-radius: 4px;
  background: #dfe5e7;
  margin: 0 8px;
}
.m-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  border-radius: 4px;
  background: var(--teal);
  transform-origin: left;
  transform: scaleX(0);
}
.m-tick {
  position: absolute;
  left: calc((var(--d) - 1) / 34 * 100%);
  top: 12px;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.m-tick i {
  position: absolute;
  left: 50%;
  top: -14px;
  width: 2px;
  height: 8px;
  background: #c3cbce;
  transform: translateX(-50%);
}
.m-tick:first-of-type {
  transform: none;
}
.m-tick.m-late {
  transform: translateX(-100%);
  color: var(--loss-text);
}
.m-close {
  color: var(--ink);
}
.m-head {
  position: absolute;
  top: 50%;
  left: 0;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 5px #fff, 0 6px 16px -4px rgba(42, 50, 50, 0.5);
}
.m-head span {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  margin-left: 0;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.m-head.is-loss,
.m-head.is-loss span {
  background: var(--loss);
}
.m-head.is-win,
.m-head.is-win span {
  background: var(--deep);
}

/* sin JS o con movimiento reducido: el relato se lee como lista */
html:not(.js) .tale-track,
.tale.is-static .tale-track {
  height: auto;
}
html:not(.js) .tale-stage,
.tale.is-static .tale-stage {
  position: relative;
  top: 0;
  height: auto;
  padding: 40px 0 var(--sec);
}
html:not(.js) .tc,
.tale.is-static .tc {
  grid-area: auto;
  opacity: 1;
  visibility: visible;
  margin-bottom: 40px;
}
html:not(.js) .scene[data-scene="2"],
.tale.is-static .scene[data-scene="2"] {
  opacity: 1;
  visibility: visible;
}
html:not(.js) .month,
.tale.is-static .month {
  display: none;
}

/* ═════════════════ 2 · SOLUCIONES ═════════════════ */
.sols {
  padding-block: var(--sec);
}
.sol-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.sol {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 28px;
  padding: clamp(28px, 3.4vw, 48px);
  border-radius: 28px;
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  min-height: 600px;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.sol:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 70px -40px rgba(42, 50, 50, 0.35);
}
.sol-teal {
  background: var(--teal-soft);
}
.sol-violet {
  background: var(--violet-soft);
}
.sol h3 {
  font-size: clamp(32px, 3vw, 44px);
  margin: 0 0 12px;
}
.sol-copy p {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 36ch;
}
.sol-copy strong {
  color: var(--ink);
}
.sol-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-weight: 700;
  font-size: 17px;
  color: var(--teal-text);
}
.sol-violet .sol-link {
  color: var(--violet-text);
}
.sol-link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.4s var(--ease-out);
}
.sol:hover .sol-link svg {
  transform: translateX(5px);
}
.sol-vis {
  position: relative;
  align-self: end;
  min-height: 300px;
}
.mini-case {
  position: absolute;
  left: 0;
  right: -8%;
  bottom: -18%;
  background: #fff;
  border-radius: 20px;
  padding: 24px 26px;
  box-shadow: 0 30px 60px -30px rgba(14, 127, 116, 0.45);
  transition: transform 0.7s var(--ease-out);
}
.sol:hover .mini-case {
  transform: translateY(-14px) rotate(-1deg);
}
.mc-head {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
}
.mc-st {
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--loss-soft);
  color: var(--loss-text);
}
.mc-amt {
  margin: 12px 0 16px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 4vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1;
}
.mc-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.mc-row span {
  color: var(--muted);
}
.mc-row b.loss {
  color: var(--loss-text);
}
.mc-foot {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.shot {
  position: absolute;
  left: 0;
  right: -22%;
  bottom: -20%;
  height: 120%;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 60px -30px rgba(87, 75, 219, 0.5);
  transition: transform 0.7s var(--ease-out);
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0 34%;
}
.sol:hover .shot {
  transform: translateY(-14px);
}
.sol-badge {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--violet-h);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

/* ═════════════════ 3 · 8,6 % + INDUSTRIAS ═════════════════ */
.field-sec {
  background: var(--bg-2);
  padding-block: var(--sec);
}
.stat2 {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px 48px;
  align-items: center;
  padding-bottom: clamp(56px, 7vw, 96px);
  margin-bottom: clamp(56px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
}
.stat2 .big {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--t-d);
  letter-spacing: -0.05em;
  line-height: 0.85;
  color: var(--loss-text);
}
.stat2-t {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 20ch;
}
.stat2-s {
  margin: 0;
  font-size: var(--t-s);
  color: var(--muted);
}
.field-sec h2#h-ind {
  margin-bottom: 32px;
}
.ind-list {
  position: relative;
  border-top: 1px solid var(--line-2);
}
.ind-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
  gap: 16px 40px;
  align-items: center;
  padding: clamp(24px, 3vw, 40px) 8px;
  border-bottom: 1px solid var(--line-2);
  text-decoration: none;
  color: var(--ink);
  transition: padding 0.5s var(--ease-out), color 0.3s;
}
.ind-row h3 {
  margin: 0;
  font-size: clamp(30px, 4vw, 60px);
  font-weight: 800;
  letter-spacing: -0.035em;
  transition: transform 0.5s var(--ease-out), color 0.3s;
}
.ind-row p {
  margin: 0;
  font-size: 18px;
  color: var(--ink-2);
}
.ind-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  color: var(--teal-text);
  white-space: nowrap;
}
.ind-link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.4s var(--ease-out);
}
.ind-row:hover h3 {
  transform: translateX(14px);
  color: var(--teal-text);
}
.ind-row:hover .ind-link svg {
  transform: translateX(5px);
}
.ind-thumb {
  display: none;
}
.ind-float {
  position: absolute;
  left: 0;
  top: 0;
  width: 340px;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6) rotate(-6deg);
  box-shadow: 0 40px 70px -30px rgba(42, 50, 50, 0.5);
  z-index: 5;
}
.ind-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: url(#grade);
}

/* ═════════════════ 4 · CÓMO PARTIMOS (bloque teal lleno) ═════════════════ */
.how2 {
  background: var(--deep);
  color: #fff;
  padding-block: var(--sec);
  position: relative;
  overflow: hidden;
}
.how2::before {
  content: "";
  position: absolute;
  width: 760px;
  height: 760px;
  right: -260px;
  top: -320px;
  border-radius: 50%;
  background: var(--deep-2);
}
.how2::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: 22%;
  bottom: -120px;
  border-radius: 50%;
  background: var(--violet);
  opacity: 0.9;
}
.how2 .wrap {
  position: relative;
  z-index: 1;
}
.how2 h2 {
  color: #fff;
  max-width: 20ch;
  margin-bottom: clamp(56px, 7vw, 96px);
}
.road {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.road-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 11px;
  height: 2px;
  background: rgba(255, 255, 255, 0.22);
}
.road-fill {
  position: absolute;
  inset: 0;
  background: #fff;
  transform-origin: left;
  transform: scaleX(0);
}
html:not(.js) .road-fill {
  transform: none;
}
.road-step {
  position: relative;
  padding-top: 44px;
}
.road-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--deep);
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: background 0.4s, border-color 0.4s, transform 0.5s var(--ease-bounce);
}
.road-step.is-on .road-dot {
  background: #fff;
  border-color: #fff;
  transform: scale(1.15);
}
.road-when {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #bdf1ea;
}
.road-step h3 {
  color: #fff;
  margin: 0 0 10px;
}
.road-step p:last-child {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
  max-width: 32ch;
}
.how2-sys {
  margin-top: clamp(56px, 7vw, 88px);
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px 48px;
  align-items: center;
}
.how2-sys > p {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
}
.chip img {
  height: 22px;
  width: auto;
}

/* ═════════════════ 5 · PRUEBA ═════════════════ */
.proof {
  padding-block: var(--sec);
}
.proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.proof-k {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--teal-text);
}
.proof-copy h2 {
  margin: 0 0 18px;
}
.proof-copy p:last-child {
  margin: 0;
  font-size: var(--t-l);
  line-height: 1.5;
  color: var(--ink-2);
}
.win {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 50px 90px -50px rgba(87, 75, 219, 0.45), 0 10px 24px -14px rgba(42, 50, 50, 0.2);
  background: #fff;
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transform-origin: left center;
}
.win-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.win-body {
  position: relative;
}
.win-body video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.trust {
  margin-top: clamp(64px, 8vw, 104px);
  display: grid;
  gap: 28px;
}
.trust-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px 32px;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.trust-k {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-2);
}
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 40px;
}
.lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 52px;
}
.lg img {
  max-width: 100%;
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  mix-blend-mode: multiply;
  transition: filter 0.3s, opacity 0.3s;
}
.lg:hover img {
  filter: none;
  opacity: 1;
}
.trust-more {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

/* ═════════════════ 6 · PREGUNTAS ═════════════════ */
.faq2 {
  background: var(--bg-2);
  padding-block: var(--sec);
}
.faq2-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 32px clamp(40px, 6vw, 96px);
  align-items: start;
}
.faq2 h2 {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  margin: 0;
  max-width: 12ch;
}
.faq2 .faq {
  max-width: none;
  margin: 0;
}
.faq2 .faq details {
  border-bottom: 1px solid var(--line-2);
}
.faq2 .faq summary {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(19px, 1.6vw, 22px);
  letter-spacing: -0.01em;
  padding: 24px 0;
}
.faq2 .faq details p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 56ch;
  padding-bottom: 24px;
}

/* ═════════════════ 7 · CIERRE ═════════════════ */
.close {
  padding-block: var(--sec);
}
.close h2 {
  max-width: 14ch;
}
.cal {
  margin: 28px 0 24px;
  max-width: 420px;
}
.cal-h,
.cal-g {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cal-h span {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  padding-bottom: 4px;
}
.cd {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--bg-2);
}
.cd-pad {
  background: none;
}
.cd-close {
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--ink);
  color: var(--ink);
}
.cd-next {
  background: none;
  color: #b0b8bc;
}
.cd-win {
  background: var(--deep);
  color: #fff;
  font-weight: 800;
  transform: scale(1.08);
}
.cd-late {
  background: var(--loss-soft);
  color: var(--loss-text);
  box-shadow: inset 0 0 0 2px var(--loss);
  font-weight: 800;
}
.cal-legend {
  display: flex;
  gap: 20px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
}
.cal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cal-legend span::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 4px;
}
.lw::before {
  background: var(--deep);
}
.ll::before {
  background: var(--loss);
}
.close .alt {
  font-size: 16px;
}
.close .form .hint,
.form small,
.form .note {
  font-size: var(--t-s);
}

/* ═════════════════ footer ═════════════════ */
.foot {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 72px 0 32px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.foot-brand img {
  height: 32px;
  width: auto;
  margin-bottom: 16px;
}
.foot-brand p {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--ink-2);
  max-width: 30ch;
}
.foot-muted {
  color: var(--muted) !important;
  font-size: 14px !important;
}
.foot-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.foot-k {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.foot-nav a {
  font-size: 15px;
  color: var(--ink-2);
  text-decoration: none;
}
.foot-nav a:hover {
  color: var(--teal-text);
  text-decoration: underline;
}
.foot-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

/* ═════════════════ móvil ═════════════════ */
@media (max-width: 900px) {
  .sec-head,
  .tale-intro {
    grid-template-columns: 1fr;
  }
  .tale-track {
    height: 520vh;
  }
  .tale-stage {
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .tale-grid {
    height: 100%;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
    padding-top: 16px;
    align-items: start;
  }
  .tc-date {
    margin-bottom: 8px;
  }
  .tc-date b {
    font-size: 34px;
  }
  .tc h3 {
    font-size: 22px;
    margin-bottom: 6px;
  }
  .tc p:last-child {
    font-size: 15px;
  }
  .board {
    height: 100%;
    min-height: 0;
    align-self: stretch;
    border-radius: 18px;
  }
  .mt-x {
    display: none;
  }
  .scene {
    padding: 14px;
  }
  .doc {
    padding: 18px;
  }
  .tramo {
    grid-template-columns: 62px 1fr auto;
    font-size: 13px;
    padding: 10px 8px;
  }
  .edp {
    font-size: 13px;
  }
  .edp-row {
    padding: 9px 10px;
    grid-template-columns: 1.1fr 0.9fr 0.6fr 1.4fr;
  }
  .edp-hd,
  .edp-bar {
    font-size: 11px;
  }
  .edp-tot {
    font-size: 15px;
  }
  .stamp {
    top: auto;
    bottom: 34px;
    right: 14px;
    font-size: 15px;
  }
  .kase {
    padding: 16px;
  }
  .kase-amt {
    font-size: 30px;
    margin-bottom: 10px;
  }
  .kase-t {
    font-size: 17px;
  }
  .flowy p {
    font-size: 14px;
  }
  .bars-clip {
    width: 42%;
    top: 14px;
    right: 14px;
  }
  .sc-bars .bars-head {
    margin-right: 46%;
    flex-direction: column;
    gap: 0;
  }
  .bh-c b {
    font-size: 30px;
  }
  .bars {
    height: 55%;
  }
  .month {
    padding: 14px 0 18px;
  }
  .m-tick {
    font-size: 11px;
  }
  .m-tick[style*="--d:14"] {
    display: none;
  }
  .sol-grid {
    grid-template-columns: 1fr;
  }
  .sol {
    min-height: 520px;
  }
  .stat2 {
    grid-template-columns: 1fr;
  }
  .ind-row {
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 6px 16px;
  }
  .ind-row h3 {
    grid-column: 1;
  }
  .ind-row p,
  .ind-link {
    grid-column: 1;
  }
  .ind-thumb {
    display: block;
    grid-column: 2;
    grid-row: 1 / span 3;
    width: 88px;
    height: 88px;
    border-radius: 14px;
    object-fit: cover;
    filter: url(#grade);
  }
  .ind-float {
    display: none;
  }
  .road {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-left: 44px;
  }
  .road-line {
    left: 11px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
  }
  .road-fill {
    transform-origin: top;
    transform: scaleY(0);
  }
  .road-step {
    padding-top: 0;
  }
  .road-dot {
    left: -44px;
  }
  .how2-sys {
    grid-template-columns: 1fr;
  }
  .proof-grid {
    grid-template-columns: 1fr;
  }
  .win {
    transform: none;
  }
  .trust-row {
    grid-template-columns: 1fr;
  }
  .lg {
    width: 96px;
  }
  .faq2-grid {
    grid-template-columns: 1fr;
  }
  .faq2 h2 {
    position: static;
    max-width: none;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .foot-brand {
    grid-column: 1 / -1;
  }
  .foot-base {
    flex-direction: column;
  }
}


/* ajustes de la ronda de revisión */
.lg-inv img {
  filter: invert(1) grayscale(1);
  mix-blend-mode: normal;
  opacity: 0.8;
}
.lg-inv:hover img {
  filter: invert(1);
}
.sol-badge {
  top: -18px;
  left: auto;
  right: 0;
}
.sol-violet .sol-vis {
  margin-top: 18px;
}
.ind-row h3 {
  font-size: clamp(30px, 3.4vw, 50px);
}
.cal {
  max-width: 340px;
}
.cd {
  font-size: 13px;
  border-radius: 8px;
}

@media (max-width: 900px) {
  .tale-stage {
    height: calc(100svh - var(--nav-h) - 72px);
  }
  .edp-row.edp-more {
    grid-template-columns: 1fr;
  }
  .edp-row.edp-tot {
    grid-template-columns: 1fr auto;
  }
  .stamp {
    top: 8px;
    bottom: auto;
    right: 10px;
    font-size: 13px;
    padding: 7px 11px;
  }
  .sc-edp {
    padding-top: 44px;
  }
  .edp-bar span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.edp-row b,
.sc-edp.is-win .edp-tot .num {
  color: var(--deep-2);
}
.form input::placeholder {
  color: var(--muted);
}

.tr-hi,
.tr-hi .tr-r {
  color: var(--deep-2);
}
.cd-next {
  color: var(--muted);
}
.m-tick {
  color: var(--ink-2);
}
.stamp-loss,
.stamp-win {
  box-shadow: 0 16px 30px -14px rgba(42, 50, 50, 0.45);
}
.road-step p:last-child {
  color: #fff;
}

.sol-teal .sol-link {
  color: var(--deep);
}

/* ═════════ verde de marca plano: #19B8A8 en todo lo verde (Álvaro, 2026-10-16) ═════════ */
:root {
  --teal: #19b8a8;
  --teal-text: #19b8a8;
  --deep: #19b8a8;
  --deep-2: #19b8a8;
  --grad: #19b8a8;
}
.btn-primary,
.btn-mag,
.mcta .btn,
.form [type="submit"],
.approve {
  background: #19b8a8 !important;
  background-image: none !important;
  color: #fff;
  box-shadow: none;
}
.btn-mag::before {
  display: none;
}
.btn-primary:hover,
.btn-mag:hover,
.mcta .btn:hover,
.form [type="submit"]:hover {
  background: #149184 !important; /* hover oficial de marca */
}
/* bloque "Cómo partimos": superficie verde plana, sin círculos de otro tono */
.how2::before {
  background: rgba(255, 255, 255, 0.12);
}
.road-when {
  color: #fff;
}
.road-dot {
  background: #19b8a8;
}

/* hero: la fecha de hoy da sentido a la cuenta regresiva */
.hero-v8 .days .today {
  display: block;
  font-family: var(--font);
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-2);
  margin-bottom: 10px;
}
.hero-v8 .days.is-static .today {
  display: none;
}

/* ═════════ industrias v2: lista + panel fijo (auditoría de movimiento I1–I9) ═════════ */
.ind-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.ind-list {
  border-top: 1px solid var(--line-2);
}
.ind-row {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "h h" "p l";
  gap: 10px 24px;
  align-items: center;
  padding: clamp(22px, 2.6vw, 34px) 24px clamp(22px, 2.6vw, 34px) 28px;
  transition: background 0.4s var(--ease-out);
}
.ind-row h3 {
  grid-area: h;
  font-size: clamp(30px, 3.2vw, 48px);
  color: var(--ink);
}
.ind-row p {
  grid-area: p;
  font-size: 17px;
}
.ind-link {
  grid-area: l;
}
.ind-row:hover h3 {
  color: var(--ink);
  transform: none;
}
.ind-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #19b8a8;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease-out);
}
.ind-row.is-on {
  background: #fff;
}
.ind-row.is-on .ind-bar {
  transform: scaleY(1);
}
.ind-row.is-on h3 {
  transform: translateX(6px);
}
.ind-row.is-on .ind-link svg {
  transform: translateX(5px);
}
.ind-row:focus-visible {
  outline: 3px solid #19b8a8;
  outline-offset: -3px;
  border-radius: 6px;
}
.ind-preview {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  display: grid;
}
.ip {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition:
    opacity 0.45s var(--ease-out),
    transform 0.6s var(--ease-out),
    visibility 0s linear 0.45s;
}
.ip.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.45s var(--ease-out),
    transform 0.6s var(--ease-out),
    visibility 0s;
}
.ip-img {
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px -36px rgba(42, 50, 50, 0.45);
}
.ip-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: url(#grade);
  transform: scale(1.08);
  transition: transform 1.1s var(--ease-out);
}
.ip.is-on .ip-img img {
  transform: scale(1);
}
.ip-body {
  margin-top: 20px;
}
.ip-k {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
}
.ip-words {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ip-words li {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
}
.ip-sol {
  margin: 16px 0 0;
  font-size: 15px;
  color: var(--ink-2);
}
.ip-sol b {
  color: var(--ink);
}
@media (prefers-reduced-motion: reduce) {
  .ip,
  .ip-img img,
  .ind-bar {
    transition: none;
  }
}
@media (max-width: 900px) {
  .ind-wrap {
    grid-template-columns: 1fr;
  }
  .ind-preview {
    display: none;
  }
  .ind-row {
    grid-template-columns: minmax(0, 1fr) 88px;
    grid-template-areas: "h t" "p t" "l t";
    padding: 22px 8px;
  }
  .ind-row .ind-thumb {
    grid-area: t;
  }
  .ind-row.is-on {
    background: none;
  }
  .ind-row.is-on .ind-bar {
    transform: scaleY(0);
  }
  .ind-row.is-on h3 {
    transform: none;
  }
  .ind-row:active {
    background: var(--teal-soft);
  }
}

/* ═════════ resto de la auditoría ═════════ */
.tale-lede {
  display: grid;
  gap: 14px;
  justify-items: start;
}
.tale-skip {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: #19b8a8;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}
.tale-skip:hover {
  color: var(--ink);
}
.sol:focus-visible {
  outline: 3px solid #19b8a8;
  outline-offset: 4px;
  transform: translateY(-6px);
}
/* el cursor de Flowy y las nubes solo se mueven cuando se ven */
.flowy p::after {
  animation-play-state: paused;
}
.tale.in-view .flowy p::after {
  animation-play-state: running;
}
.hero-v8:not(.in-view) .blob {
  animation-play-state: paused;
}
/* preguntas: la altura la anima el script */
.faq2 details {
  overflow: hidden;
}

/* ═════════ respaldo con protagonismo ═════════ */
.backing {
  padding-block: clamp(48px, 6vw, 80px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.backing-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 2fr);
  gap: 32px clamp(32px, 5vw, 72px);
  align-items: center;
}
.backing h2 {
  margin: 0;
  font-size: clamp(26px, 2.4vw, 36px);
}
.backing-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.bk {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 8px clamp(20px, 2.6vw, 40px);
  border-left: 1px solid var(--line);
}
.bk-logo {
  height: 64px;
  display: flex;
  align-items: center;
}
.bk-logo img {
  max-height: 64px;
  max-width: 100%;
  width: auto;
  height: auto;
  transition: transform 0.5s var(--ease-out);
}
.bk:hover .bk-logo img {
  transform: scale(1.05);
}
.bk p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.4;
}
.bk b {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 2px;
}
@media (max-width: 900px) {
  .backing-grid {
    grid-template-columns: 1fr;
  }
  .backing-list {
    grid-template-columns: 1fr;
  }
  .bk {
    grid-template-columns: 120px 1fr;
    align-items: center;
    padding: 18px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .bk-logo {
    height: 48px;
  }
  .bk-logo img {
    max-height: 48px;
  }
}

/* ═════════ menú principal oscuro (variante: ?nav=dark) · tokens dark de flownexai.com ═════════ */
.brand .logo-dark {
  display: none;
}
html.nav-dark .brand .logo-light {
  display: none;
}
html.nav-dark .brand .logo-dark {
  display: block;
}
html.nav-dark .nav {
  background: #0b0f10;
  backdrop-filter: none;
  border-bottom-color: #2a323c;
}
html.nav-dark .nav-links > a,
html.nav-dark .menu > summary {
  color: #e6e8ea;
}
html.nav-dark .nav-links > a:hover,
html.nav-dark .menu > summary:hover,
html.nav-dark .menu[open] > summary {
  background: #121619;
  color: #fff;
}
html.nav-dark .menu-panel {
  background: #121619;
  border-color: #2a323c;
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.7);
}
html.nav-dark .menu-panel a:hover {
  background: #1a2026;
}
html.nav-dark .menu-panel a strong {
  color: #e6e8ea;
}
html.nav-dark .menu-panel a span {
  color: #a3a9b0;
}
html.nav-dark .hamb {
  border-color: #2a323c;
  color: #e6e8ea;
}
html.nav-dark :focus-visible {
  outline-color: #19b8a8;
}
@media (max-width: 900px) {
  html.nav-dark .mobile-menu {
    background: #0b0f10;
  }
  html.nav-dark .mobile-menu a {
    color: #e6e8ea;
    border-bottom-color: #2a323c;
  }
  html.nav-dark .mobile-menu a span {
    color: #a3a9b0;
  }
}
@media (max-width: 900px) {
  .mobile-menu a.btn,
  html.nav-dark .mobile-menu a.btn {
    display: flex;
    justify-content: center;
    padding: 16px 22px;
    color: #fff;
    border-bottom: 0;
    font-family: var(--font);
    font-size: 17px;
  }
}

/* menú principal: items alineados a la derecha, junto al botón */
.nav-links {
  margin-left: auto;
}
.nav-cta {
  margin-left: 12px;
}
.nav-links .menu:last-of-type .menu-panel {
  left: auto;
  right: 0;
}

/* botones: redondeo discreto (10 px), no píldora */
.btn,
.btn-mag,
.mcta .btn,
.mobile-menu a.btn,
.form [type="submit"],
.approve,
.hamb {
  border-radius: 10px !important;
}
.nav-links > a,
.menu > summary {
  border-radius: 8px;
}

/* relato en dos escenas: cada una con su propio largo de scroll */
.tale-a .tale-track {
  height: 400vh;
}
.tale-b .tale-track {
  height: 300vh;
}
.tale-b {
  border-top: 1px solid var(--line);
}
.tale-b .tale-intro h2 .hl-teal {
  color: #19b8a8;
}
@media (max-width: 900px) {
  .tale-a .tale-track {
    height: 320vh;
  }
  .tale-b .tale-track {
    height: 240vh;
  }
}
html:not(.js) .tale-track,
.tale.is-static .tale-track {
  height: auto !important;
}
@media (max-width: 900px) {
  .board-note {
    bottom: auto;
    top: 12px;
    left: 14px;
    font-size: 11px;
  }
  .sc-case {
    padding-top: 34px;
  }
}
@media (max-width: 900px) {
  .board-note {
    max-width: 42%;
    line-height: 1.3;
  }
}

/* fondo del hero: gradientes circulares en vez de discos planos */
.hero-v8 .b1 {
  background: radial-gradient(
    circle at 50% 50%,
    rgba(25, 184, 168, 0.32) 0%,
    rgba(25, 184, 168, 0.14) 38%,
    rgba(25, 184, 168, 0) 70%
  );
}
.hero-v8 .b2 {
  width: 34vw;
  height: 34vw;
  max-width: 460px;
  max-height: 460px;
  right: 24vw;
  top: 10vw;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(108, 99, 255, 0.26) 0%,
    rgba(108, 99, 255, 0.1) 40%,
    rgba(108, 99, 255, 0) 70%
  );
}
@media (max-width: 760px) {
  .hero-v8 .b2 {
    width: 70vw;
    height: 70vw;
    right: -20vw;
    top: 50vw;
  }
}

/* rojo solo para lo crítico (30 sep sin FlowNex, sin cobrar, día 35) */
.stat2 .big {
  color: var(--ink);
}
.tale-b .kase-amt {
  color: var(--ink);
}

/* degradado de marca en las cifras y resaltados elegidos */
:root {
  --grad: linear-gradient(135deg, #19b8a8 0%, #6c63ff 100%);
}
.stat2 .big,
.tale-b .tale-intro h2 .hl-teal,
.close h2 .hl-teal {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.stat2 .big {
  padding-right: 0.04em;
}


/* "Aprobar cambio a tramo 3" es más largo: no se parte en líneas */
.approve {
  white-space: nowrap;
  flex-shrink: 0;
}

/* móvil: el caso cabe entero en el tablero, con el botón visible */
@media (max-width: 900px) {
  .sc-case {
    align-items: flex-start;
    padding: 40px 12px 12px;
  }
  .sc-case .kase {
    padding: 14px;
  }
  .sc-case .kase-t {
    font-size: 15px;
    margin-bottom: 6px;
  }
  .sc-case .kase-amt {
    font-size: 26px;
    margin-bottom: 8px;
  }
  .sc-case .flowy {
    padding: 10px 12px;
  }
  .sc-case .flowy p {
    font-size: 13px;
  }
  .sc-case .kase-foot {
    margin-top: 10px;
  }
}
@media (max-width: 900px) {
  .sc-case {
    padding-top: 34px;
  }
  .sc-case .kase-head {
    margin-bottom: 8px;
  }
  .sc-case .kase-foot {
    gap: 8px;
  }
  .sc-case .approve {
    padding-top: 8px;
    padding-bottom: 8px;
  }
}
/* móvil: deja un hueco bajo el tablero para la etiqueta de la línea del mes */
@media (max-width: 900px) {
  .tale .board {
    height: calc(100% - 36px);
  }
}
@media (max-width: 900px) {
  .tale-b .tc p:not(.tc-date) {
    font-size: 15px;
    line-height: 1.45;
  }
  .tale-b .tc-date b {
    font-size: 40px;
  }
  .sc-case {
    padding-top: 30px;
  }
}

/* ═════════ franja "Reglas para calcular. IA para entender." (tras el relato B) ═════════ */
.rig {
  padding-block: clamp(72px, 8vw, 112px);
  background: #fff;
}
.rig-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.rig-step {
  padding: 24px 22px 26px;
  border-radius: 14px;
  background: var(--bg-2);
}
.rig-step h3 {
  margin: 14px 0 8px;
  font-size: var(--t-l, 24px);
}
.rig-step > p:last-child {
  margin: 0;
  color: var(--ink-2);
}
.rig-tag {
  display: inline-block;
  margin: 0;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.rig-tag.rig-ai {
  color: var(--violet-text);
  background: var(--violet-soft);
  box-shadow: none;
}
.rig-you {
  background: #19b8a8;
}
.rig-you h3,
.rig-you > p:last-child {
  color: #fff;
}
.rig-you .rig-tag {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: none;
}
.sol-copy .sol-bi {
  margin-top: 12px;
  font-weight: 600;
  color: var(--violet-text);
}
@media (max-width: 1100px) {
  .rig-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .rig-list {
    grid-template-columns: 1fr;
  }
}

/* ═════════ auditoría iOS (2026-10-16) ═════════ */

/* 1–4 · relato apilado en pantallas bajas y en horizontal */
.tale.is-stacked .tale-track {
  height: auto !important;
}
.tale.is-stacked .tale-stage {
  position: relative;
  top: 0;
  height: auto !important;
  overflow: visible;
  display: block;
  padding: 24px 0 var(--sec);
}
.tale.is-stacked .tale-grid {
  display: block;
  height: auto;
}
.tale.is-stacked .tale-grid > .board,
.tale.is-stacked .month {
  display: none;
}
.tale.is-stacked .tale-copy {
  display: grid;
  gap: clamp(48px, 8vw, 72px);
}
.tale.is-stacked .tc {
  grid-area: auto;
  opacity: 1;
  visibility: visible;
  transform: none;
}
.tale.is-stacked .tc > p:last-of-type {
  display: block;
}
.tale.is-stacked .board-inline {
  display: block;
  position: relative;
  height: auto;
  margin-top: 20px;
  overflow: hidden;
}
.tale.is-stacked .board-inline .scene {
  position: relative;
  inset: auto;
  opacity: 1;
  visibility: visible;
  transform: none;
  display: flex;
  padding: 18px;
}
.tale.is-stacked .board-inline .sc-bars {
  height: 320px;
}
.tale.is-stacked .board-inline .sc-edp {
  padding-top: 52px;
}
.tale.is-stacked .board-inline .sc-case {
  padding-top: 18px;
}
.tale.is-stacked .stamp {
  opacity: 1;
  top: 10px;
  bottom: auto;
}
/* el párrafo de cada paso nunca se esconde */
@media (max-width: 900px) and (max-height: 700px) {
  .tc > p:last-child {
    display: block;
  }
}

/* 4 · etiquetas de la línea del mes completas */
@media (max-width: 900px) {
  .month {
    padding-bottom: 34px;
  }
}

/* 7 · la nota de cifras de ejemplo sale del tablero en móvil */
.tale-note {
  display: none;
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 900px) {
  .tale-note {
    display: block;
  }
  .board-note {
    display: none;
  }
}
.tale.is-stacked .tale-note {
  display: block;
}
.tale.is-stacked .board-note {
  display: none;
}

/* 5–6 · botón fijo: solo después del hero, nunca en horizontal */
@media (max-width: 900px) and (orientation: landscape) {
  .mcta {
    display: none !important;
  }
  body {
    padding-bottom: 0 !important;
  }
}

/* 8 · hamburguesa en tinta (Safari la pinta azul por defecto) */
.hamb {
  color: var(--ink);
}

/* 9 · captura de Coprelec completa en móvil y etiqueta sin tapar */
@media (max-width: 900px) {
  .sol-vis {
    min-height: 0;
    position: relative;
    display: grid;
    gap: 12px;
  }
  .sol-violet .sol-vis {
    margin-top: 0;
  }
  .sol-badge {
    position: static;
    justify-self: start;
    order: -1;
  }
  .shot {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    bottom: auto;
    height: auto;
    transform: none;
  }
  .shot img {
    height: auto;
    object-fit: contain;
  }
  .sol {
    min-height: 0;
  }
  .mini-case {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
  }
}

/* 10 · texto en tinta sobre el verde #19B8A8 (5,2:1) */
.how2,
.how2 h2,
.how2 h3,
.road-step h3,
.road-step p:last-child,
.road-when,
.how2-sys > p {
  color: var(--ink);
}
.road-line {
  background: rgba(42, 50, 50, 0.2);
}
.road-fill {
  background: var(--ink);
}
.road-dot {
  border-color: rgba(42, 50, 50, 0.45);
}
.road-step.is-on .road-dot {
  background: var(--ink);
  border-color: var(--ink);
}
.how2-sys {
  border-top-color: rgba(42, 50, 50, 0.2);
}
.rig-you h3,
.rig-you > p:last-child {
  color: var(--ink);
}
.rig-you .rig-tag {
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
}

/* 11–12 · hero en pantallas bajas y aire bajo el botón */
@media (max-width: 900px) and (max-height: 719px) {
  .hero-v8 {
    padding-top: 24px;
  }
  .hero-v8 .days .today {
    margin-bottom: 4px;
  }
  .hero-v8 .days .n {
    font-size: clamp(80px, 24vw, 104px);
  }
  .hero-v8 h1 {
    margin-top: 16px;
    font-size: 22px;
  }
  .hero-v8 .lede {
    font-size: 16px;
    margin-top: 10px;
  }
  .hero-v8 .hero-actions {
    margin-top: 18px;
  }
}
@media (max-width: 900px) {
  .hero-v8 .hero-actions {
    row-gap: 20px;
  }
}
.tale.is-stacked .tc > p:last-of-type {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 46ch;
}
.tale.is-stacked .board-inline .scene {
  display: block;
}
.tale.is-stacked .board-inline .scene > *,
.tale.is-stacked .edp,
.tale.is-stacked .kase,
.tale.is-stacked .doc {
  min-width: 0;
  max-width: 100%;
}
.tale.is-stacked .board-inline .sc-bars {
  display: flex;
}
.tale.is-stacked .doc {
  transform: none;
}
.tale-a.is-stacked .stamp-win,
.tale-b.is-stacked .stamp-loss {
  display: none;
}
.tale.is-stacked .tale-stage {
  padding-bottom: 56px;
}
.tale.is-stacked .tale-copy {
  grid-template-columns: minmax(0, 1fr);
}

.tale.is-stacked .scene .stamp {
  display: block;
}
.tale-a.is-stacked .scene .stamp-win,
.tale-b.is-stacked .scene .stamp-loss {
  display: none;
}

/* la ventana inclinada del producto no genera scroll horizontal */
.proof,
.sols {
  overflow-x: clip;
}

/* ═════════ relato animado en teléfono (2026-10-16) ═════════
   La misma escena fija que en escritorio: tablero arriba, texto que cambia
   debajo y línea del mes al pie. El modo apilado queda solo para pantallas
   de menos de 600 px de alto (SE vertical y cualquier horizontal). */
@media (max-width: 900px) {
  .tale:not(.is-stacked) .tale-stage {
    height: calc(100svh - var(--nav-h));
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .tale:not(.is-stacked) .tale-grid {
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 14px;
    padding-top: 12px;
    align-items: stretch;
  }
  .tale:not(.is-stacked) .tale-grid > .board {
    -webkit-user-select: none;
    user-select: none; /* el dedo no selecciona texto del tablero al arrastrar */
    order: 1;
    height: 100%;
    min-height: 0;
    max-height: 440px; /* en teléfonos altos no se estira vacío */
    align-self: end;
  }
  .tale:not(.is-stacked) .tale-grid > .tale-copy {
    order: 2;
  }
  .tale:not(.is-stacked) .tc {
    align-self: start;
  }
  .tale:not(.is-stacked) .tc-date {
    margin-bottom: 6px;
  }
  .tale:not(.is-stacked) .tc-date b {
    font-size: 30px;
  }
  .tale:not(.is-stacked) .tc h3 {
    font-size: 20px;
    line-height: 1.15;
    margin-bottom: 6px;
    max-width: none;
  }
  .tale:not(.is-stacked) .tc > p:last-child,
  .tale-b:not(.is-stacked) .tc p:not(.tc-date) {
    display: block;
    font-size: 15px;
    line-height: 1.45;
    max-width: none;
    margin: 0;
  }
  /* la etiqueta del cabezal vive sobre la línea: necesita su aire */
  .tale:not(.is-stacked) .month {
    padding: 52px 0 30px;
  }
  /* tablero compacto: todo el estado de pago cabe sin recortar el total */
  .tale:not(.is-stacked) .scene {
    padding: 14px;
  }
  .tale:not(.is-stacked) .sc-case {
    padding-top: 14px;
  }
  /* el sello va como pegatina sobre la barra de la ventana, nunca sobre el total */
  .tale:not(.is-stacked) .sc-edp {
    padding-top: 20px;
  }
  .tale:not(.is-stacked) .sc-edp .stamp {
    top: 4px;
    right: 10px;
    bottom: auto;
  }
  .tale:not(.is-stacked) .edp-row {
    padding: 6px 10px;
  }
  .tale:not(.is-stacked) .edp-bar {
    padding: 8px 12px;
  }
  .tale:not(.is-stacked) .doc {
    padding: 14px 16px;
  }
  .tale:not(.is-stacked) .tramo {
    padding: 8px;
  }
}

/* ═════════ pausa de video: redonda, solo icono, discreta (2026-10-16) ═════════ */
.vid-toggle {
  width: 36px;
  height: 36px;
  padding: 0;
  gap: 0;
  justify-content: center;
  border-radius: 50% !important;
  border: 0;
  background: rgba(42, 50, 50, 0.38);
  color: #fff;
  opacity: 0.7;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.2s, background-color 0.2s;
}
.vid-toggle:hover,
.vid-toggle:focus-visible {
  opacity: 1;
  background: rgba(42, 50, 50, 0.6);
}
.vid-toggle svg {
  width: 14px;
  height: 14px;
}
/* el texto queda solo para lectores de pantalla */
.vid-toggle [data-label] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ═════════ menú móvil: se despliega hacia abajo y se repliega hacia arriba ═════════ */
@media (max-width: 900px) {
  .mobile-menu[open] {
    animation: mm-down 0.34s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .mobile-menu[open] nav > a {
    animation: mm-item 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: calc(90ms + var(--i, 0) * 45ms);
  }
  .mobile-menu[open] nav > a:nth-child(2) { --i: 1; }
  .mobile-menu[open] nav > a:nth-child(3) { --i: 2; }
  .mobile-menu[open] nav > a:nth-child(4) { --i: 3; }
  .mobile-menu[open] nav > a:nth-child(5) { --i: 4; }
  .mobile-menu[open].is-closing {
    animation: mm-up 0.26s cubic-bezier(0.5, 0, 0.8, 0.4) both;
  }
  .mobile-menu[open].is-closing nav > a {
    animation: none;
  }
}
@keyframes mm-down {
  from { clip-path: inset(0 0 100% 0); transform: translateY(-14px); }
  to { clip-path: inset(0); transform: none; }
}
@keyframes mm-up {
  from { clip-path: inset(0); transform: none; opacity: 1; }
  to { clip-path: inset(0 0 100% 0); transform: translateY(-14px); opacity: 0.85; }
}
@keyframes mm-item {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-menu[open],
  .mobile-menu[open] nav > a,
  .mobile-menu[open].is-closing {
    animation-duration: 0.01ms;
    animation-delay: 0s;
  }
}
