/* FR-Solutions · sitio comercial
   Escena: un jefe de CD revisa el celular a las 05:00 entre el cierre de carga y el turno de reparto,
   con la luz baja de la oficina del patio. Tema oscuro azul noche FR + naranja FR (marca existente). */

:root {
  --bg: oklch(0.165 0.032 262);
  --bg-2: oklch(0.195 0.036 262);
  --surface: oklch(0.225 0.04 262);
  --surface-2: oklch(0.265 0.044 262);
  --line: oklch(0.33 0.04 262);
  --line-soft: oklch(0.28 0.038 262);
  --ink: oklch(0.965 0.008 262);
  --ink-2: oklch(0.83 0.022 262);
  --ink-3: oklch(0.72 0.03 262);
  --fr: oklch(0.77 0.155 64);          /* naranja FR #f39c33 */
  --fr-hi: oklch(0.83 0.14 70);
  --fr-ink: oklch(0.2 0.04 262);       /* texto sobre naranja */
  --blue: oklch(0.72 0.12 245);
  --green: oklch(0.77 0.16 152);
  --amber: oklch(0.86 0.15 92);
  --red: oklch(0.66 0.2 25);

  --f-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-body: "Figtree", "Segoe UI", Arial, sans-serif;

  --r-s: 10px; --r-m: 16px; --r-l: 24px;
  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);   /* ease-out-quint */

  --z-sticky: 20; --z-menu: 30; --z-float: 40;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); margin: 0; text-wrap: balance; font-stretch: 112%; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: var(--z-float); background: var(--fr); color: var(--fr-ink); padding: 10px 16px; border-radius: var(--r-s); font-weight: 700; }
.skip:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--fr); outline-offset: 3px; border-radius: 6px; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: 700 1rem/1 var(--f-body); text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .4s var(--ease), background-color .3s, border-color .3s, box-shadow .4s var(--ease);
}
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--fr); color: var(--fr-ink); box-shadow: 0 10px 24px -12px oklch(0.05 0.02 262 / .9); }
.btn-primary:hover { background: var(--fr-hi); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: oklch(1 0 0 / .02); }
.btn-ghost:hover { border-color: var(--ink-3); background: oklch(1 0 0 / .05); }
.btn-wa { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.btn-wa:hover { border-color: var(--fr); }
.btn-dark { background: var(--bg); color: var(--ink); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px oklch(0.165 0.032 262 / .8); }
.btn-line { border-color: oklch(0.2 0.04 262 / .5); color: var(--fr-ink); }
.btn-line:hover { background: oklch(0.2 0.04 262 / .08); }

/* ---------- navegación ---------- */
.nav { position: sticky; top: 0; z-index: var(--z-sticky); transition: background-color .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: oklch(0.165 0.032 262 / .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line-soft); }
.nav-in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.15rem/1 var(--f-body); }
.brand img { border-radius: 9px; }
.brand b { color: var(--fr); font-weight: 700; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 10px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .95rem; transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--ink); background: oklch(1 0 0 / .05); }
.nav-cta { min-height: 42px; padding: 10px 18px; font-size: .95rem; }
.nav-toggle { display: none; width: 46px; height: 46px; margin-left: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.nav-toggle i { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease); }
.nav-toggle[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }
.menu-movil { display: grid; gap: 4px; padding: 8px var(--gut) 20px; background: var(--bg-2); border-bottom: 1px solid var(--line-soft); }
.menu-movil[hidden] { display: none; }
.menu-movil a:not(.btn) { padding: 14px 4px; text-decoration: none; font-weight: 600; font-size: 1.1rem; border-bottom: 1px solid var(--line-soft); }
.menu-movil .btn { margin-top: 12px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(32px, 6vw, 72px) 0 clamp(56px, 8vw, 104px); isolation: isolate; }
.hero::after { content: ""; position: absolute; z-index: -1; width: 640px; height: 640px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, oklch(0.77 0.155 64 / .16), transparent 65%); pointer-events: none; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.live-dot { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); font-weight: 600; font-size: .95rem; margin-bottom: 22px; }
.live-dot i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1.02; font-weight: 800; letter-spacing: -0.03em; font-stretch: 100%; }
.hero h1 span { color: var(--fr); }
.lead { margin-top: 22px; font-size: clamp(1.06rem, 1.4vw, 1.22rem); color: var(--ink-2); max-width: 56ch; line-height: 1.7; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-soft); color: var(--ink-3); font-size: .95rem; }
.hero-facts b { display: block; font: 800 1.5rem/1.2 var(--f-display); color: var(--ink); font-stretch: 100%; }

/* entrada del hero (orquestada una vez) */
.js .hero-copy > * { animation: rise .9s var(--ease) both; }
.js.ready .hero-copy > *, .js.ready .board { animation: none; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
.js .board { animation: board-in 1.1s var(--ease) .2s both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes board-in { from { opacity: 0; transform: translateY(24px) scale(.98); filter: blur(6px); } }

/* ---------- pantalla de arribos ---------- */
.board {
  margin: 0; border-radius: var(--r-l); padding: 18px;
  background: linear-gradient(180deg, oklch(0.2 0.035 262), oklch(0.15 0.03 262));
  border: 1px solid var(--line); box-shadow: 0 40px 80px -30px oklch(0.05 0.02 262 / .9), inset 0 1px 0 oklch(1 0 0 / .06);
  font-family: var(--f-display); font-stretch: 100%;
}
.board-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 6px 14px; }
.board-t { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.board-t svg { grid-row: span 2; width: 38px; height: 38px; padding: 8px; border-radius: 10px; background: var(--fr); fill: var(--fr-ink); }
.board-t b { font-size: 1.3rem; letter-spacing: .06em; font-stretch: 125%; line-height: 1.1; }
.board-t small { color: var(--ink-3); font: 500 .8rem/1.2 var(--f-body); }
.board-clock { display: flex; align-items: baseline; gap: 4px; font-variant-numeric: tabular-nums; }
.board-clock b { font-size: 1.9rem; font-weight: 800; color: var(--amber); letter-spacing: .02em; }
.board-clock small { font-size: .95rem; color: var(--ink-3); }
.board-lamps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.lmp { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; padding: 8px 10px; border-radius: 10px; background: oklch(1 0 0 / .03); border: 1px solid var(--line-soft); font: 600 .75rem/1.15 var(--f-body); color: var(--ink-3); }
.lmp i { grid-row: span 2; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.lmp b { font: 800 1.15rem/1 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.s-ruta { color: var(--blue); } .s-asig { color: var(--red); } .s-desc { color: var(--amber); } .s-fin { color: var(--green); }
.lmp.s-ruta, .lmp.s-asig, .lmp.s-desc, .lmp.s-fin { color: var(--ink-3); }
.lmp.s-ruta i { background: var(--blue); } .lmp.s-asig i { background: var(--red); } .lmp.s-desc i { background: var(--amber); } .lmp.s-fin i { background: var(--green); }
.board-cols, .row { display: grid; grid-template-columns: 74px 1.25fr 1.1fr .9fr; gap: 10px; align-items: center; }
.board-cols { padding: 0 10px 8px; font: 600 .75rem/1 var(--f-body); color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.board-rows { display: grid; gap: 6px; }
.row { padding: 10px; border-radius: 12px; background: oklch(1 0 0 / .03); border: 1px solid var(--line-soft); position: relative; overflow: hidden; }
.tiles { display: inline-flex; gap: 2px; }
.tiles i { display: inline-grid; place-items: center; width: 1.05em; height: 1.45em; border-radius: 3px; font-style: normal; font-weight: 700; font-size: .92rem; background: oklch(0.12 0.025 262); color: var(--ink); box-shadow: inset 0 -1px 0 oklch(1 0 0 / .06), inset 0 1px 0 oklch(0 0 0 / .4); font-variant-numeric: tabular-nums; }
.tiles i.sp { background: none; box-shadow: none; width: .4em; }
.tiles.t i { color: var(--amber); }
.st { display: inline-flex; align-items: center; gap: 7px; font: 700 .75rem/1.1 var(--f-body); letter-spacing: .04em; color: var(--c); }
.st::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.tm { font: 600 .8rem/1.2 var(--f-body); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.row.flip { animation: flip .7s var(--ease); }
@keyframes flip { 0% { transform: perspective(500px) rotateX(0); } 45% { transform: perspective(500px) rotateX(-82deg); filter: brightness(1.6); } 100% { transform: perspective(500px) rotateX(0); } }
.board-f { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 0 6px; font: 500 .78rem/1 var(--f-body); color: var(--ink-3); }
.board-tick { flex: 1; height: 3px; border-radius: 3px; background: var(--line-soft); overflow: hidden; }
.board-tick span { display: block; height: 100%; width: 100%; background: var(--fr); transform-origin: left; animation: tick 4s linear infinite; }
@keyframes tick { from { transform: scaleX(0); } }

/* ---------- qué reemplaza ---------- */
.swap { padding: clamp(48px, 7vw, 88px) 0; background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.h-sm { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 750; letter-spacing: -0.02em; }
.swap-list { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.swap-list li { display: grid; gap: 10px; padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line-soft); }
.swap-list s { color: var(--ink-3); text-decoration-color: var(--red); text-decoration-thickness: 2px; font-size: .98rem; }
.swap-list span { font: 700 1.15rem/1.35 var(--f-display); font-stretch: 100%; }

/* ---------- secciones ---------- */
.sec-h { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-h h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; font-stretch: 100%; }
.sec-h p { margin-top: 16px; color: var(--ink-2); font-size: 1.12rem; max-width: 60ch; }
.sistemas, .resultados, .modalidades, .faq { padding: clamp(72px, 10vw, 136px) 0; }

/* ---------- productos ---------- */
.prod { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(28px, 4vw, 48px) 0; }
.prod + .prod { border-top: 1px solid var(--line-soft); }
.prod-rev .prod-copy { order: 2; }
.prod-tag { color: var(--fr); font-weight: 700; font-size: .98rem; margin-bottom: 12px; }
.prod h3 { font-size: clamp(1.6rem, 2.8vw, 2.35rem); line-height: 1.12; font-weight: 750; letter-spacing: -0.02em; font-stretch: 100%; }
.prod-copy > p:not(.prod-tag) { margin-top: 16px; color: var(--ink-2); max-width: 54ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips li { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); font-size: .88rem; font-weight: 600; color: var(--ink-2); background: oklch(1 0 0 / .02); }

.prod-vis { border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); padding: clamp(18px, 2.5vw, 28px); box-shadow: 0 30px 60px -36px oklch(0.05 0.02 262 / .9); }
.vis-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.vis-h b { font: 750 1.1rem/1.2 var(--f-display); font-stretch: 100%; }
.pill { padding: 5px 11px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--surface-2); color: var(--ink-2); }
.pill.ok { background: oklch(0.77 0.16 152 / .14); color: var(--green); }

/* SIC */
.sic { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; height: 220px; align-items: end; padding-bottom: 26px; }
.sic-col { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.sic-col i { width: 100%; height: var(--h); border-radius: 8px 8px 3px 3px; background: var(--green); transform-origin: bottom; }
.sic-col i.warn { background: var(--amber); }
.sic-col small { position: absolute; bottom: -24px; font-size: .78rem; color: var(--ink-3); font-weight: 600; }
.sic-ideal { position: absolute; left: 0; right: 0; top: 0; bottom: 26px; width: 100%; height: calc(100% - 26px); }
.sic-ideal path { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-dasharray: 7 7; vector-effect: non-scaling-stroke; opacity: .85; }
.vis-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: .82rem; color: var(--ink-3); font-weight: 600; }
.vis-legend span { display: inline-flex; align-items: center; gap: 7px; }
.vis-legend i { width: 12px; height: 12px; border-radius: 3px; background: var(--green); }
.vis-legend i.warn { background: var(--amber); }
.vis-legend i.line { height: 0; border-top: 2.5px dashed var(--ink); border-radius: 0; background: none; width: 18px; }

/* TMS */
.tms-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tms-kpis div { padding: 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-soft); display: grid; gap: 2px; min-width: 0; }
.tms-kpis small { color: var(--ink-3); font-size: .78rem; font-weight: 600; line-height: 1.25; }
.tms-kpis b { font: 800 1.35rem/1.15 var(--f-display); font-variant-numeric: tabular-nums; font-stretch: 100%; }
.tms-kpis em { font-style: normal; font-size: .8rem; font-weight: 700; }
.up { color: var(--green); } .dn { color: var(--red); }
.tms-line { width: 100%; height: 110px; margin: 18px 0 14px; }
.tms-line .area { fill: oklch(0.77 0.155 64 / .14); }
.tms-line .ln { fill: none; stroke: var(--fr); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.tms-rank { display: grid; gap: 8px; }
.tms-rank li { display: grid; grid-template-columns: 26px minmax(0, 1.2fr) minmax(60px, 1fr) 30px; align-items: center; gap: 10px; font-size: .88rem; }
.tms-rank span { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); font-weight: 800; font-size: .8rem; }
.tms-rank li:first-child span { background: var(--fr); color: var(--fr-ink); }
.tms-rank b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tms-rank i { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--blue) var(--w), var(--line-soft) var(--w)); }
.tms-rank em { font-style: normal; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }

/* Marcación */
.vis-phone { display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: 24px; align-items: center; background: radial-gradient(circle at 30% 30%, oklch(0.77 0.155 64 / .1), transparent 60%), var(--surface); }
.phone { border-radius: 34px; padding: 10px; background: oklch(0.12 0.02 262); border: 1px solid var(--line); box-shadow: 0 24px 50px -20px oklch(0.05 0.02 262); }
.phone-in { border-radius: 26px; background: var(--bg-2); padding: 16px 14px 14px; display: grid; gap: 12px; }
.ph-top { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; }
.ph-top b { font-family: var(--f-display); }
.ph-top small { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ph-map { position: relative; height: 150px; border-radius: 16px; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(135deg, transparent 47%, oklch(1 0 0 / .07) 48% 52%, transparent 53%), linear-gradient(35deg, transparent 60%, oklch(1 0 0 / .06) 61% 64%, transparent 65%), oklch(0.24 0.035 240); }
.ring { position: absolute; border-radius: 50%; border: 2px solid var(--green); }
.ring.r1 { width: 96px; height: 96px; background: oklch(0.77 0.16 152 / .12); }
.ring.r2 { width: 96px; height: 96px; animation: ring 2.6s var(--ease) infinite; }
@keyframes ring { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.pin { width: 16px; height: 16px; border-radius: 50%; background: var(--fr); border: 3px solid var(--ink); position: relative; z-index: 1; }
.ph-dist { position: absolute; bottom: 8px; left: 8px; right: 8px; text-align: center; padding: 5px 8px; border-radius: 8px; background: oklch(0.16 0.03 262 / .85); font-size: .75rem; font-weight: 700; color: var(--green); }
.ph-who { display: flex; align-items: center; gap: 10px; }
.ph-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 800; font-size: .82rem; border: 2px solid var(--green); }
.ph-who b { display: block; font-size: .88rem; }
.ph-who small { color: var(--ink-3); font-size: .78rem; }
.ph-btn { display: block; text-align: center; padding: 12px; border-radius: 14px; background: var(--fr); color: var(--fr-ink); font-weight: 800; font-size: .95rem; }
.ph-checks { display: grid; gap: 12px; }
.ph-checks li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1rem; }
.ph-checks li::before { content: ""; width: 24px; height: 24px; flex: none; border-radius: 50%; background: oklch(0.77 0.16 152 / .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2363d297' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; }

/* ---------- a la medida (sección naranja) ---------- */
.medida { padding: clamp(72px, 10vw, 136px) 0; background: var(--fr); color: var(--fr-ink); }
.medida .sec-h p { color: oklch(0.28 0.05 262); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; counter-reset: s; border-top: 2px solid oklch(0.2 0.04 262 / .85); }
.steps li { position: relative; padding: 28px 28px 8px 0; display: grid; gap: 12px; align-content: start; }
.st-n { font: 800 3.4rem/1 var(--f-display); font-stretch: 125%; color: oklch(0.2 0.04 262 / .9); }
.steps h3 { font-size: 1.35rem; font-weight: 750; font-stretch: 100%; }
.steps p { color: oklch(0.27 0.05 262); font-size: 1rem; }
.steps em { font-style: normal; font-weight: 800; font-size: .88rem; padding: 5px 11px; border-radius: 999px; background: oklch(0.2 0.04 262 / .1); justify-self: start; }

/* ---------- resultados ---------- */
.res-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(20px, 3vw, 32px); }
.res { padding: clamp(22px, 3vw, 36px); border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 18px; align-content: start; }
.res h3 { font-size: 1.15rem; font-weight: 700; color: var(--ink-2); font-stretch: 100%; }
.res-big { display: grid; gap: 6px; }
.res-big b { font: 800 clamp(3rem, 6vw, 4.6rem)/1 var(--f-display); color: var(--fr); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; font-stretch: 100%; }
.res-big span { color: var(--ink-2); max-width: 44ch; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 8px; border-bottom: 1px solid var(--line); }
.bars i { flex: 1; height: calc(var(--v) / 237 * 100%); border-radius: 5px 5px 2px 2px; background: var(--line); transform-origin: bottom; }
.bars i.now { background: var(--fr); }
.bars-x { display: grid; grid-template-columns: 1fr 9fr 2fr; font-size: .8rem; color: var(--ink-3); font-weight: 600; }
.bars-x span:nth-child(2) { text-align: left; padding-left: 60%; }
.bars-x .now { color: var(--fr); text-align: right; }
.note { font-size: .92rem; color: var(--ink-3); }
.pillars { display: grid; gap: 9px; }
.pillars li { display: grid; grid-template-columns: 104px 1fr 56px; align-items: center; gap: 12px; font-size: .92rem; }
.pillars span { color: var(--ink-2); font-weight: 600; }
.pillars i { height: 10px; border-radius: 10px; background: linear-gradient(90deg, var(--fr) calc(var(--w) / 16 * 100%), var(--line-soft) 0); transform-origin: left; }
.pillars b { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--f-display); }
.res-strip { margin-top: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 1px solid var(--line); }
.res-strip li { padding: 22px 20px 22px 0; color: var(--ink-3); font-size: .95rem; }
.res-strip b { display: block; font: 800 1.9rem/1.15 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; font-stretch: 100%; }

/* ---------- modalidades ---------- */
.modalidades { background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.mods { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; align-items: stretch; }
.mod { padding: clamp(24px, 3vw, 34px); border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.mod-hi { background: linear-gradient(180deg, oklch(0.3 0.06 60 / .55), var(--surface) 55%); border-color: oklch(0.77 0.155 64 / .6); }
.mod h3 { font-size: 1.6rem; font-weight: 800; font-stretch: 100%; }
.mod-sub { color: var(--ink-2); }
.ticks { display: grid; gap: 11px; flex: 1; }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: .98rem; }
.ticks li::before { content: ""; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: oklch(0.77 0.155 64 / .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f39c33' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }
.mod-fit { font-size: .92rem; color: var(--ink-3); padding-top: 14px; border-top: 1px solid var(--line-soft); }
.mod .btn { align-self: stretch; }

/* ---------- técnico ---------- */
.tec { padding: clamp(64px, 8vw, 104px) 0; }
.tec-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 64px); }
.tec-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px 32px; }
.tec-list li { color: var(--ink-3); font-size: .98rem; }
.tec-list b { display: block; color: var(--ink); font: 750 1.12rem/1.3 var(--f-display); margin-bottom: 4px; font-stretch: 100%; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-2); border-top: 1px solid var(--line-soft); }
.faq-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 64px); }
.faq h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; font-stretch: 100%; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; font-weight: 700; font-size: 1.08rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; width: 14px; height: 14px; flex: none; border-right: 2px solid var(--fr); border-bottom: 2px solid var(--fr); transform: rotate(45deg) translateY(-4px); transition: transform .4s var(--ease); }
details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
details p { padding: 0 0 22px; color: var(--ink-2); max-width: 65ch; }

/* ---------- contacto ---------- */
.contacto { padding: clamp(72px, 10vw, 128px) 0; background: var(--fr); color: var(--fr-ink); text-align: center; }
.contacto-in { display: grid; justify-items: center; }
.contacto h2 { font-size: clamp(2.1rem, 4.6vw, 3.8rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; max-width: 18ch; font-stretch: 100%; }
.contacto p { margin-top: 16px; font-size: 1.15rem; color: oklch(0.27 0.05 262); max-width: 52ch; }
.contacto .hero-ctas { justify-content: center; }

/* ---------- pie ---------- */
.foot { padding: 32px 0 96px; border-top: 1px solid var(--line-soft); color: var(--ink-3); font-size: .92rem; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.foot .brand { color: var(--ink); }

/* WhatsApp flotante (solo celular) */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: var(--z-float); width: 58px; height: 58px; border-radius: 50%; display: none; place-items: center; background: oklch(0.72 0.17 150); color: oklch(0.99 0 0); box-shadow: 0 12px 30px -8px oklch(0.05 0.02 262 / .8); }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }

/* ---------- revelado al hacer scroll (mejora un contenido ya visible) ---------- */
.js .reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.pre { opacity: 0; transform: translateY(28px); }
.js .prod.pre .sic-col i, .js .res.pre .bars i { transform: scaleY(0); }
.sic-col i, .bars i { transition: transform 1.1s var(--ease); }
.sic-col:nth-child(2) i, .bars i:nth-child(2) { transition-delay: .06s; } .sic-col:nth-child(3) i, .bars i:nth-child(3) { transition-delay: .12s; }
.sic-col:nth-child(4) i, .bars i:nth-child(4) { transition-delay: .18s; } .sic-col:nth-child(5) i, .bars i:nth-child(5) { transition-delay: .24s; }
.sic-col:nth-child(6) i, .bars i:nth-child(6) { transition-delay: .3s; } .bars i:nth-child(7) { transition-delay: .36s; } .bars i:nth-child(8) { transition-delay: .42s; }
.bars i:nth-child(9) { transition-delay: .48s; } .bars i:nth-child(10) { transition-delay: .54s; } .bars i:nth-child(11) { transition-delay: .75s; }
.js .res.pre .pillars i { transform: scaleX(0); }
.pillars i { transition: transform 1.1s var(--ease); }
.steps li:nth-child(2) { transition-delay: .08s; } .steps li:nth-child(3) { transition-delay: .16s; } .steps li:nth-child(4) { transition-delay: .24s; }
.mods .mod:nth-child(2) { transition-delay: .08s; } .mods .mod:nth-child(3) { transition-delay: .16s; }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
}
@media (max-width: 920px) {
  .hero-in, .prod, .tec-in, .faq-in { grid-template-columns: minmax(0, 1fr); }
  .prod-rev .prod-copy { order: 0; }
}
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .wa-float { display: grid; }
  .board { padding: 12px; }
  .board-lamps { grid-template-columns: repeat(2, 1fr); }
  .board-cols, .row { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 8px; }
  .board-cols span:first-child, .board-cols span:last-child, .row .tiles.t, .row .tm { display: none; }
  .tiles i { font-size: .78rem; }
  .board-t b { font-size: 1.1rem; }
  .board-clock b { font-size: 1.5rem; }
  .vis-phone { grid-template-columns: minmax(0, 1fr); }
  .phone { max-width: 260px; margin-inline: auto; }
  .ph-checks { grid-template-columns: 1fr; }
  .tms-kpis { grid-template-columns: 1fr 1fr; }
  .tms-kpis div:last-child { grid-column: span 2; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .pillars li { grid-template-columns: 92px 1fr 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal.pre { opacity: 1; transform: none; }
  .js .prod.pre .sic-col i, .js .res.pre .bars i, .js .res.pre .pillars i { transform: none; }
}
