/* Fuentes alojadas en el propio sitio (subconjunto latino: cubre tildes y enie). Licencia OFL. */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url('fonts/archivo-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('fonts/jetbrains-mono-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ==========================================================
   TuTablero - v2
   Concepto: maqueta de arquitectura / plano tecnico.
   Gris piedra, tinta, UN color de senal (naranja).
   Esquinas rectas, lineas finas, datos en mono.
   La escena 3D vive detras y cambia con el scroll.
   ========================================================== */

:root {
  --bg: #E8E7E2;
  --ink: #0C0C0D;
  --mute: #3E3E3A;
  --line: rgba(12, 12, 13, .26);
  --panel: rgba(232, 231, 226, .95);
  --sig: #1B3F9E;       /* azul corporativo */
  --sig-hi: #8DB0FF;    /* mismo azul para superficies oscuras */
  --sig-tx: #1B3F9E;   /* azul para TEXTO sobre fondo claro (AA) */
  --on-sig: #FFFFFF;   /* texto sobre fondo azul */
  --bad: #B42318;

  --f-d: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-m: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gut: max(clamp(20px, 4vw, 56px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.2, .8, .2, 1);
}
html.dark {
  --sig: #8DB0FF;
  --sig-tx: #8DB0FF;
  --on-sig: #0B0B0D;
  --ink: #F1F0EB;
  --mute: #BDBDB7;
  --line: rgba(241, 240, 235, .28);
  --panel: rgba(11, 11, 13, .92);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; scroll-padding-bottom: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-d); font-size: 18px; line-height: 1.55; font-weight: 500;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
  transition: color .5s;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 5px var(--sig); }
::selection { background: var(--sig); color: var(--on-sig); }

.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 16px; font-family: var(--f-m); font-size: .8rem; transition: top .2s; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - var(--gut) * 2, 1320px); margin-inline: auto; }

/* ---------- capas fijas ---------- */
#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
/* capa que protege el texto: el 3D queda a la derecha */
.veil {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(232, 231, 226, .97) 0%, rgba(232, 231, 226, .97) 56%, rgba(232, 231, 226, .7) 62%, rgba(232, 231, 226, 0) 80%);
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--bg) 98%, transparent) 0%,
    color-mix(in srgb, var(--bg) 97%, transparent) 56%,
    color-mix(in srgb, var(--bg) 70%, transparent) 62%,
    transparent 80%);
}
#labels { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
main, .top, .menu, .rail { position: relative; z-index: 1; }
.grain {
  position: fixed; inset: -50%; z-index: 4; pointer-events: none; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
html.dark .grain { mix-blend-mode: screen; opacity: .05; }
.no-gl #gl { display: none; }
.no-gl body {
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ---------- etiquetas 3D ---------- */
.lbl {
  position: absolute; left: 0; top: 0; white-space: nowrap; will-change: transform;
  font-family: var(--f-m); font-size: 12px; font-weight: 600; letter-spacing: .02em; line-height: 1.3;
  background: var(--ink); color: var(--bg); padding: 4px 8px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s, background-color .2s, color .2s;
}
.lbl.on { opacity: 1; visibility: visible; }
.lbl.hot, .lbl:hover { background: var(--sig); color: var(--on-sig); }
.lbl b { display: block; font-weight: 600; font-size: 12px; }
.lbl--city { padding: 6px 10px; }

/* ---------- cursor ---------- */
#cursor { position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none; display: none; mix-blend-mode: difference; }
#cursor i { display: block; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1px solid #fff; transition: transform .35s var(--ease), border-radius .35s; }
#cursor.on { display: block; }
#cursor.hot i { transform: scale(1.7) rotate(45deg); }
@media (hover: none), (pointer: coarse) { #cursor { display: none !important; } }

/* ---------- tipografia ---------- */
h1, h2 { font-family: var(--f-d); font-stretch: 118%; font-weight: 800; letter-spacing: -.045em; line-height: .95; }
h1 { font-size: clamp(2.7rem, 5.6vw, 6rem); }
h2 { font-size: clamp(2.2rem, 4.4vw, 4.1rem); }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; font-stretch: 105%; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.32rem); line-height: 1.5; max-width: 50ch; color: var(--ink); font-weight: 550; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .12em 0 .1em; margin: -.12em 0 -.1em; }
.i { display: inline-block; will-change: transform; }

.tag { display: flex; align-items: center; gap: 12px; font-family: var(--f-m); font-size: .78rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); }
.tag__sq { width: 9px; height: 9px; background: var(--sig); flex: none; }

/* ---------- botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 0 28px; background: var(--ink); color: var(--bg);
  font-family: var(--f-m); font-size: .84rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  border: 1px solid var(--ink); overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), color .3s, border-color .3s;
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--sig); transform: translateY(101%); transition: transform .45s var(--ease); z-index: -1; }
.btn:hover { color: var(--on-sig); border-color: var(--sig); }
.btn:hover::before { transform: none; }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--sig { background: var(--sig); color: var(--on-sig); border-color: var(--sig); }
.btn--sig::before { background: var(--ink); }
.btn--sig:hover { color: var(--bg); border-color: var(--ink); }
html.dark .btn--sig:hover { color: var(--on-sig); background: #fff; }
html.dark .btn--sig::before { background: #fff; }
.btn--sm { min-height: 44px; padding: 0 18px; }
.btn--block { width: 100%; }

/* ---------- header ---------- */
.top { position: fixed; top: 0; left: 0; right: 0; height: 68px; padding: 0 var(--gut); display: flex; align-items: center; justify-content: space-between; gap: 24px; z-index: 60; }
.top::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(var(--bg), transparent); opacity: .92; pointer-events: none; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__tx { font-stretch: 112%; font-weight: 850; letter-spacing: -.04em; font-size: 1.2rem; }
.brand__mk { display: inline-flex; align-items: flex-end; gap: 2px; width: 22px; height: 22px; }
.brand__mk i { flex: 1; background: var(--ink); transition: height .4s var(--ease); }
.brand__mk i:nth-child(1) { height: 40%; }
.brand__mk i:nth-child(2) { height: 70%; }
.brand__mk i:nth-child(3) { height: 100%; background: var(--sig); }
.brand:hover .brand__mk i:nth-child(1) { height: 100%; }
.brand:hover .brand__mk i:nth-child(3) { height: 40%; }
.top__nav { display: flex; gap: 6px; font-family: var(--f-m); font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.top__nav a { padding: 13px 12px; position: relative; }
.top__nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px; background: var(--sig); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.top__nav a:hover::after { transform: scaleX(1); }
.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger i { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.burger i:nth-child(1) { top: 16px; } .burger i:nth-child(2) { top: 26px; }
.menu-open .burger i:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .burger i:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 55; background: var(--bg); padding: 96px var(--gut) 40px; display: flex; flex-direction: column; justify-content: flex-start; overflow-y: auto; overscroll-behavior: contain; gap: 4px; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.menu-open .menu { opacity: 1; visibility: visible; }
.menu a { display: flex; align-items: baseline; gap: 16px; font-stretch: 118%; font-weight: 750; font-size: clamp(2rem, 9vw, 3.4rem); letter-spacing: -.04em; line-height: 1.15; padding: 6px 0; border-bottom: 1px solid var(--line); }
.menu b { font-family: var(--f-m); font-size: .8rem; font-weight: 500; color: var(--sig-tx); letter-spacing: 0; }

/* ---------- rail ---------- */
.rail { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 50; display: flex; flex-direction: column; gap: 4px; }
.rail a { display: flex; align-items: center; justify-content: flex-end; gap: 12px; height: 22px; font-family: var(--f-m); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.rail a:focus-visible span { opacity: 1; transform: none; }
.rail a span { opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .3s var(--ease); white-space: nowrap; }
.rail a i { width: 14px; height: 2px; background: var(--ink); opacity: .35; transition: width .35s var(--ease), background-color .25s, opacity .25s; }
.rail a:hover span, .rail a.on span { opacity: 1; transform: none; }
.rail a.on i { width: 34px; background: var(--sig); opacity: 1; }
@media (max-width: 1100px) { .rail { display: none; } }

/* ---------- hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; }
.hero__in { width: min(100% - var(--gut) * 2, 1320px); margin-inline: auto; display: flex; flex-direction: column; justify-content: space-between; padding: 112px 0 30px; gap: 56px; }
.hero__main { display: grid; gap: 28px; align-content: center; flex: 1; max-width: 880px; }
.hero h1 { max-width: 9em; }
@media (min-width: 1021px) { .hero__main { max-width: 46vw; } }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero__bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 20px; }
.stats { display: flex; gap: clamp(24px, 4vw, 64px); flex-wrap: wrap; }
.stats dt { font-family: var(--f-m); font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
.stats dd { font-stretch: 112%; font-weight: 800; font-size: 2rem; letter-spacing: -.04em; line-height: 1; }
.stats dd.sm { font-size: 1.05rem; letter-spacing: -.02em; font-weight: 700; line-height: 2rem; }
.readout { display: grid; gap: 6px; text-align: right; font-family: var(--f-m); min-width: 240px; }
.readout__k { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.readout__v { font-size: .86rem; font-weight: 600; min-height: 1.3em; }
.readout__v b { color: var(--sig-tx); font-weight: 600; }

/* ---------- secciones ---------- */
.sec { padding: clamp(96px, 16vh, 190px) 0; }
.sec--faq { padding-bottom: 38vh; }
.sh { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 24px; margin-bottom: clamp(40px, 6vw, 76px); }
.sh--col { grid-template-columns: 1fr; gap: 20px; }
.sh__n { font-family: var(--f-m); font-size: .9rem; font-weight: 700; color: var(--sig-tx); padding-top: .6em; }
.sh h2 { max-width: 11em; }
.sh__p { margin-top: 24px; color: var(--mute); max-width: 58ch; font-size: 1.08rem; font-weight: 550; }
html.dark .sh__p { color: var(--mute); }

.panel { background: var(--panel); border: 1px solid var(--line); }

/* ---------- servicios ---------- */
.svc-list { border-bottom: 1px solid var(--line); }
.svc {
  display: grid; grid-template-columns: 90px minmax(0, 1.05fr) minmax(0, 1.5fr) minmax(0, .9fr); gap: 24px; align-items: start;
  padding: 30px 24px; border-top: 1px solid var(--line); background: var(--panel);
  transition: background-color .4s var(--ease), color .4s var(--ease), padding .4s var(--ease);
}
.svc:hover { background: var(--ink); color: var(--bg); padding-left: 36px; }
.svc__n { font-family: var(--f-m); font-size: .88rem; font-weight: 700; color: var(--sig-tx); padding-top: .3em; }
.svc h3 { font-size: clamp(1.3rem, 2.2vw, 1.85rem); font-stretch: 112%; font-weight: 800; letter-spacing: -.035em; }
.svc p { color: var(--mute); font-size: 1.04rem; font-weight: 550; transition: color .4s; }
.svc:hover p { color: color-mix(in srgb, var(--bg) 88%, transparent); }
.svc__t { font-family: var(--f-m); font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); padding-top: .5em; text-align: right; transition: color .4s; }
.svc:hover .svc__t { color: var(--sig-hi); }
.svc:hover .svc__n { color: var(--sig-hi); }
.wall__more .wall__k b { color: var(--sig-hi); }

/* ---------- integraciones ---------- */
.net { display: grid; grid-template-columns: minmax(300px, 400px); }
.net__side { padding: 8px 8px 22px; }
.filters { display: grid; }
.flt {
  display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 14px; min-height: 46px; padding: 0 14px;
  text-align: left; border-bottom: 1px solid var(--line); font-weight: 650; font-size: 1.02rem;
  transition: background-color .25s, color .25s, padding .3s var(--ease);
}
.flt .ic { width: 22px; height: 22px; color: var(--ink); transition: color .25s, transform .35s var(--ease); }
.flt:hover .ic { transform: scale(1.12); }
.flt span { white-space: nowrap; font-style: normal; }
.flt b { white-space: nowrap; font-style: normal; }
i, em { font-style: normal; }
.flt b { font-family: var(--f-m); font-size: .78rem; font-weight: 700; color: var(--mute); }
.flt:hover { padding-left: 20px; }
.flt.is-on { background: var(--ink); color: var(--bg); }
.flt.is-on .ic { color: var(--sig-hi); }
.flt.is-on b { color: var(--sig-hi); }
.note { padding: 18px 14px 4px; font-size: .95rem; font-weight: 550; color: var(--mute); line-height: 1.5; }

.index { margin-top: 44px; border-top: 1px solid var(--line); }
.index summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; min-height: 48px; font-family: var(--f-m); font-size: .78rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.index summary::-webkit-details-marker { display: none; }
.index summary::after { content: "+"; font-size: 1.1rem; transition: transform .3s var(--ease); }
.index[open] summary::after { transform: rotate(45deg); }
.index ul { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 24px; }
.index li { font-family: var(--f-m); font-size: .8rem; font-weight: 500; padding: 6px 10px; border: 1px solid var(--line); background: var(--panel); }
.index li[data-k] { border-color: var(--sig); }

/* ---------- flujos (Power Automate) ---------- */
.flowbox { max-width: 880px; padding: 8px; }
.flowbox__tabs { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.flowbox__tabs button {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; font-weight: 700; font-size: .95rem; text-align: left;
  border-right: 1px solid var(--line); transition: background-color .3s, color .3s;
}
.flowbox__tabs button:last-child { border-right: 0; }
.flowbox__tabs button span { font-family: var(--f-m); font-size: .75rem; opacity: .6; }
.flowbox__tabs button:hover { background: color-mix(in srgb, var(--ink) 9%, transparent); }
.flowbox__tabs button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.flowbox__body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 8px; margin-top: 8px; }

.flow { padding: 22px 18px 10px; position: relative; }
.fstep { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding-bottom: 22px; }
.fstep:not(.on):not(.done) .fstep__ic { opacity: .55; }
.fstep__ic { transition: opacity .45s var(--ease); }
.fstep:last-child { padding-bottom: 12px; }
.fstep::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: -2px; width: 2px; background: var(--line); }
.fstep:last-child::before { display: none; }
.fstep::after { content: ""; position: absolute; left: 21px; top: 44px; width: 2px; height: 0; background: var(--sig); transition: height .5s var(--ease); }
.fstep.done::after { height: calc(100% - 42px); }
.fstep:last-child::after { display: none; }
.fstep__ic {
  width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--ink); font-family: var(--f-m); font-weight: 700; font-size: .84rem;
  background: var(--bg); transition: background-color .35s, color .35s, border-color .35s, transform .4s var(--ease);
}
.fstep.on .fstep__ic { background: var(--sig); border-color: var(--sig); color: var(--on-sig); transform: scale(1.1); }
.fstep.done .fstep__ic { background: var(--ink); color: var(--bg); }
.fstep__k { font-family: var(--f-m); font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); }
.fstep.on .fstep__k { color: var(--sig-tx); }
.fstep__t { display: block; font-weight: 750; font-size: 1.08rem; letter-spacing: -.02em; line-height: 1.25; margin-top: 2px; }
.fstep__d { display: block; font-size: .94rem; font-weight: 550; color: var(--mute); margin-top: 2px; }

.flog { background: #0B0B0D; color: #E8E7E2; padding: 18px; display: flex; flex-direction: column; min-height: 300px; font-family: var(--f-m); }
.flog__h { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: #9C9C97; padding-bottom: 12px; border-bottom: 1px solid rgba(241, 240, 235, .18); }
.flog__run { min-height: 44px; padding: 0 10px; border: 1px solid rgba(241, 240, 235, .3); font: inherit; letter-spacing: .06em; color: #E8E7E2; transition: background-color .25s, color .25s, border-color .25s; }
.flog__run:hover { background: var(--sig-hi); border-color: var(--sig-hi); color: #0B0B0D; }
#flowLog { flex: 1; display: grid; align-content: start; gap: 9px; padding-top: 14px; font-size: .8rem; font-weight: 500; line-height: 1.45; }
#flowLog li { display: grid; grid-template-columns: auto 1fr; gap: 10px; animation: ln .4s var(--ease); }
#flowLog li time { color: var(--sig-hi); }
#flowLog li.ok span::before { content: "OK  "; color: #7FD6A8; }
@keyframes ln { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.flog__note { font-size: .75rem; color: #8E8E88; padding-top: 12px; border-top: 1px solid rgba(241, 240, 235, .12); }

.caps { max-width: 880px; margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.caps li { background: var(--panel); padding: 18px 16px; font-size: .95rem; font-weight: 550; color: var(--mute); line-height: 1.45; }
.caps b { display: block; color: var(--ink); font-size: 1.04rem; font-weight: 750; letter-spacing: -.02em; margin-bottom: 4px; }
.caps__note { max-width: 880px; margin-top: 14px; font-family: var(--f-m); font-size: .78rem; font-weight: 500; color: var(--mute); line-height: 1.5; }

/* ---------- excel / mapa ---------- */
.data { max-width: 520px; padding: 8px; }
.toggle { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); position: relative; }
.toggle button { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; font-weight: 700; font-size: 1rem; transition: color .3s; }
.toggle button span { font-family: var(--f-m); font-size: .75rem; opacity: .6; }
.toggle button[aria-pressed="true"] { color: var(--bg); }
.toggle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 50%; background: var(--ink); transition: transform .5s var(--ease); }
.toggle:has(button:nth-child(2)[aria-pressed="true"])::before { transform: translateX(100%); }
.toggle--sm { margin-top: 20px; }
.toggle--sm::before { display: none; }
.toggle--sm button { min-height: 44px; justify-content: center; font-size: .86rem; }
.toggle--sm button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.data__body { position: relative; padding: 26px 18px 18px; min-height: 270px; }
.data__pane { position: absolute; inset: 26px 18px 18px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .4s var(--ease), transform .5s var(--ease), visibility .4s; }
.data__pane.is-on { position: relative; inset: auto; opacity: 1; visibility: visible; transform: none; }
.data__pane h3 { font-size: 1.6rem; font-stretch: 112%; letter-spacing: -.04em; margin-bottom: 18px; }
.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 24px; font-size: 1.04rem; font-weight: 550; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 2px; background: var(--ink); }
.ticks--bad li::before { background: var(--bad); }
.mono-line { margin-top: 22px; font-family: var(--f-m); font-size: .8rem; font-weight: 500; letter-spacing: .02em; color: var(--mute); }
.mono-line b { color: var(--bad); font-weight: 600; }

/* ---------- proceso ---------- */
.steps { border-bottom: 1px solid var(--line); max-width: 960px; }
.step { display: grid; grid-template-columns: clamp(90px, 14vw, 190px) minmax(0, 1fr) minmax(0, 200px); gap: 24px; align-items: center; padding: 38px 0; border-top: 1px solid var(--line); background: var(--panel); }
.step__n {
  font-stretch: 125%; font-weight: 800; font-size: clamp(3.4rem, 8vw, 7rem); line-height: .85; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 2px var(--ink); transition: color .5s, -webkit-text-stroke-color .5s; padding-left: 12px;
}
.step.is-active .step__n { color: var(--sig-tx); -webkit-text-stroke-color: var(--sig-tx); }
.step__b h3 { font-size: 1.6rem; font-stretch: 112%; letter-spacing: -.04em; margin-bottom: 10px; }
.step__b p { color: var(--mute); max-width: 46ch; font-weight: 550; }
.step__t { font-family: var(--f-m); font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); text-align: right; padding-right: 12px; }
.step.is-active .step__t { color: var(--ink); }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 100px); align-items: start; }
.faq .sh { position: sticky; top: 110px; margin-bottom: 0; }
.faq__list { border-bottom: 1px solid var(--line); background: var(--panel); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 18px; min-height: 48px; font-weight: 700; font-size: 1.12rem; transition: padding .3s var(--ease); }
.faq summary:hover { padding-left: 26px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat; transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); background-color: transparent; }
.faq details p { padding: 0 52px 26px 18px; color: var(--mute); max-width: 62ch; font-weight: 550; animation: dd .45s var(--ease); }
@keyframes dd { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- contacto ---------- */
.sec--cta { padding-bottom: 0; }
.cta { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 100px); align-items: end; padding-bottom: clamp(80px, 14vh, 150px); }
.cta__t h2 { margin-top: 18px; max-width: 9em; }
.cta__t .sh__p { color: var(--mute); }
.form { display: grid; gap: 22px; padding: 30px; background: rgba(11, 11, 13, .94); color: #F1F0EB; border: 1px solid rgba(241, 240, 235, .22); }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--f-m); font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #C9C9C3; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: #F1F0EB; background: transparent; border: 0; border-bottom: 1px solid rgba(241, 240, 235, .5);
  padding: 10px 0; min-height: 46px; border-radius: 0; resize: vertical; transition: border-color .25s;
}
.field input::placeholder, .field textarea::placeholder { color: #8E8E88; }
.field input:hover, .field textarea:hover { border-bottom-color: rgba(241, 240, 235, .6); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--sig-hi); outline-offset: 3px; box-shadow: none; border-bottom-color: var(--sig-hi); }
.field.invalid input, .field.invalid textarea { border-bottom-color: var(--sig-hi); }
.err-msg { font-family: var(--f-m); font-size: .75rem; color: var(--sig-hi); }
.form__status { font-family: var(--f-m); font-size: .78rem; color: #9C9C97; min-height: 1.4em; }

.foot { position: relative; z-index: 1; border-top: 1px solid var(--line); background: rgba(11, 11, 13, .55); padding: 26px 0; }
.foot__in { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot p { font-family: var(--f-m); font-size: .76rem; font-weight: 500; color: var(--mute); max-width: 70ch; }
.brand--sm .brand__tx { font-size: 1rem; }

/* ---------- reveal ---------- */
.has-gsap [data-rv] { opacity: 0; transform: translateY(26px); }

/* ---------- responsive ---------- */
@media (max-width: 1020px), (max-aspect-ratio: 11/10) {
  .veil { background: color-mix(in srgb, var(--bg) 88%, transparent); }
}
@media (max-width: 1020px) {
  .top__nav { display: none; }
  .burger { display: block; }
  .svc { grid-template-columns: 56px minmax(0, 1fr); }
  .svc p, .svc__t { grid-column: 2; text-align: left; }
  .sh { grid-template-columns: 1fr; gap: 14px; }
  .faq, .cta { grid-template-columns: 1fr; }
  .faq .sh { position: static; }
  .step { grid-template-columns: 90px minmax(0, 1fr); }
  .step__t { grid-column: 2; text-align: left; padding: 0; }
  .net { grid-template-columns: 1fr; }
  .data { max-width: none; }
  .flowbox { max-width: none; }
  .flowbox__body { grid-template-columns: 1fr; }
  .caps { max-width: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top { height: 60px; }
  .top__cta { display: none; }
  .hero__in { padding-top: 92px; gap: 36px; }
  .readout { display: none; }
  .stats dd { font-size: 1.6rem; }
  .svc { padding: 24px 16px; gap: 14px; }
  .svc:hover { padding-left: 16px; }
  .form { padding: 22px 18px; }
  .step__n { font-size: 3.6rem; padding-left: 0; }
  .step { grid-template-columns: 70px minmax(0, 1fr); gap: 16px; padding: 28px 12px; }
  .faq summary { padding: 20px 14px; }
  .faq details p { padding: 0 14px 22px; }
  .data__body { min-height: 300px; }
  .flowbox__tabs { grid-template-columns: 1fr 1fr; }
  .flowbox__tabs button:nth-child(2) { border-right: 0; }
  .flowbox__tabs button:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .flow { padding: 18px 8px 6px; }
  .caps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .has-gsap [data-rv], .has-gsap [data-split] .i { opacity: 1; transform: none; }
}

/* ==========================================================
   v3: muro de herramientas, panel de control, referencias
   ========================================================== */
.sec--tight { padding-top: clamp(72px, 11vh, 130px); padding-bottom: clamp(72px, 11vh, 130px); }

/* ---------- muro de herramientas ---------- */
.wall { background: var(--panel); border-bottom: 1px solid var(--line); }
.wall__row { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; padding: 18px 24px; border-top: 1px solid var(--line); align-items: baseline; }
.wall__k { font-family: var(--f-m); font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; display: flex; gap: 10px; align-items: baseline; }
.wall__k b { color: var(--sig-tx); font-weight: 700; }
.wall ul { display: flex; flex-wrap: wrap; gap: 4px 0; }
.wall li {
  font-stretch: 105%; font-weight: 700; font-size: clamp(.95rem, 1.35vw, 1.2rem); letter-spacing: -.02em; line-height: 1.3;
  display: inline-flex; align-items: baseline; cursor: default; transition: color .25s;
}
.wall li::after { content: "/"; color: var(--sig); font-weight: 500; margin: 0 .55em; }
.wall li:last-child::after { display: none; }
.wall li:hover { color: var(--sig-tx); }
.wall li.key { text-decoration: underline; text-decoration-color: var(--sig); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.wall__more { background: var(--ink); color: var(--bg); }

.wall__more p { font-stretch: 105%; font-weight: 700; font-size: clamp(1rem, 1.5vw, 1.25rem); letter-spacing: -.02em; line-height: 1.3; }

/* ---------- panel de control ---------- */
.cp { padding: 0; }
.cp__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.cp__title { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; }
.cp__title em { font-style: normal; font-family: var(--f-m); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line); padding: 3px 8px; color: var(--mute); }
.live { width: 9px; height: 9px; background: var(--sig); position: relative; flex: none; }
.live::after { content: ""; position: absolute; inset: -4px; border: 1.5px solid var(--sig); opacity: 0; animation: ping 2.4s var(--ease) 3; }
@keyframes ping { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

.seg2 { display: inline-flex; border: 1px solid var(--line); }
.seg2 button { white-space: nowrap; min-height: 44px; padding: 0 16px; font-weight: 700; font-size: .9rem; border-right: 1px solid var(--line); transition: background-color .25s, color .25s; }
.seg2 button:last-child { border-right: 0; }
.seg2 button:hover { background: color-mix(in srgb, var(--ink) 9%, transparent); }
.seg2 button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.cp__body { display: grid; grid-template-columns: minmax(300px, 440px) minmax(0, 1fr); gap: 0; }
.cp__map { position: relative; padding: 18px; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 12px; }
#heat { width: 100%; height: auto; max-width: 400px; aspect-ratio: 360 / 440; display: block; cursor: crosshair; touch-action: pan-y pinch-zoom; }
.cp__tip {
  position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; background: var(--ink); color: var(--bg); padding: 6px 10px;
  font-family: var(--f-m); font-size: 12px; font-weight: 600; line-height: 1.35; white-space: nowrap; opacity: 0; transition: opacity .15s;
}
.cp__tip b { display: block; font-size: 13px; color: var(--sig-hi); }
.cp__tip.on { opacity: 1; }
.cp__lvl { font-family: var(--f-m); font-size: .76rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; align-self: flex-start; }
.cp__legend { display: flex; align-items: center; gap: 10px; align-self: stretch; font-family: var(--f-m); font-size: .75rem; font-weight: 600; text-transform: uppercase; }
.cp__legend i { flex: 1; height: 10px; background: linear-gradient(90deg, #E8EDF7, #A9C0F0 35%, #5E86DC 65%, #1B3F9E 85%, #081030); border: 1px solid var(--line); }

.cp__side { padding: 18px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.cp__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kp { border: 1px solid var(--line); padding: 12px 14px; display: grid; gap: 2px; min-width: 0; }
.kp span { font-family: var(--f-m); font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }
.kp b { font-stretch: 112%; font-weight: 800; font-size: clamp(1.15rem, 2vw, 1.7rem); letter-spacing: -.04em; line-height: 1.15; }
.cp__card { border: 1px solid var(--line); padding: 14px; min-width: 0; }
.cp__card h3 { font-family: var(--f-m); font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 10px; }
.cp__row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; }
#cpTrend svg { width: 100%; height: auto; display: block; overflow: visible; }
#cpTrend .ar { fill: var(--sig); opacity: .16; }
#cpTrend .ln { fill: none; stroke: var(--sig); stroke-width: 2.5; stroke-linejoin: round; }
#cpTrend .pv { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 4 4; opacity: .5; }
#cpTrend text { font-family: var(--f-m); font-size: 9.5px; font-weight: 600; fill: var(--mute); }
#cpTrend .gl { stroke: var(--line); }
#cpTop { display: grid; gap: 9px; }
#cpTop li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: .86rem; font-weight: 650; transition: color .2s; }
#cpTop li.hot { color: var(--sig-tx); }
#cpTop li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#cpTop li b { font-family: var(--f-m); font-size: .78rem; font-weight: 700; }
#cpTop li i { grid-column: 1 / -1; height: 6px; background: var(--line); position: relative; }
#cpTop li i::after { content: ""; position: absolute; inset: 0; width: var(--w, 0%); background: var(--ink); transition: width .7s var(--ease), background-color .2s; }
#cpTop li.hot i::after { background: var(--sig); }
#cpDonut { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: center; }
#cpDonut svg { width: 92px; height: 92px; }
#cpDonut circle { transition: stroke-dasharray .7s var(--ease), stroke-dashoffset .7s var(--ease); }
#cpDonut text { font-family: var(--f-m); font-weight: 800; font-size: 15px; fill: var(--ink); }
#cpDonut ul { display: grid; gap: 6px; font-size: .8rem; font-weight: 650; }
#cpDonut li { display: flex; align-items: center; gap: 7px; }
#cpDonut li i { width: 10px; height: 10px; flex: none; }
#cpDonut li b { margin-left: auto; font-family: var(--f-m); font-size: .75rem; }
.cp__note { padding: 14px 18px; border-top: 1px solid var(--line); font-family: var(--f-m); font-size: .76rem; font-weight: 500; color: var(--mute); line-height: 1.5; }

/* ---------- referencias ---------- */
.refs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; perspective: 1200px; }
.ref { display: block; text-align: left; width: 100%; background: var(--panel); border: 1px solid var(--line); transition: border-color .3s, box-shadow .4s var(--ease), transform .3s var(--ease); transform-style: preserve-3d; will-change: transform; }
.ref:hover { border-color: var(--ink); box-shadow: 0 30px 50px -28px rgba(12, 12, 13, .55); }
.ref__img, .ref__b { display: block; }
.ref__img { position: relative; background: #0E0F12; border-bottom: 1px solid var(--line); overflow: hidden; }
.ref__img svg { display: block; width: 100%; height: auto; transition: transform .8s var(--ease); }
.ref:hover .ref__img svg { transform: scale(1.04); }
.ref__fk { position: absolute; right: 10px; bottom: 10px; font-family: var(--f-m); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--bg); color: var(--ink); padding: 3px 7px; }
.ref__b { padding: 16px 18px 20px; }
.ref__b > * { display: block; margin-top: 6px; }
.ref__tag { font-family: var(--f-m); font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--sig-tx); }
.ref__h { font-stretch: 108%; font-weight: 800; font-size: 1.2rem; letter-spacing: -.03em; line-height: 1.2; }
.ref__t { font-family: var(--f-m); font-size: .75rem; font-weight: 500; color: var(--mute); line-height: 1.45; }

.dlg { border: 1px solid var(--ink); padding: 0; background: var(--bg); color: var(--ink); width: min(1080px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; }
.dlg::backdrop { background: rgba(8, 8, 9, .72); backdrop-filter: blur(4px); }
.dlg[open] { animation: dlgIn .45s var(--ease); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.dlg__x { position: absolute; right: 10px; top: 10px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; background: var(--ink); color: var(--bg); transition: background-color .25s, color .25s; }
.dlg__x:hover { background: var(--sig); color: var(--on-sig); }
.dlg__x svg { width: 18px; height: 18px; }
.dlg__img { background: #0E0F12; }
.dlg__img svg { display: block; width: 100%; height: auto; }
.dlg__txt { padding: 24px 28px 28px; display: grid; gap: 10px; }
.dlg__tag { font-family: var(--f-m); font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--sig-tx); }
.dlg__txt h3 { font-stretch: 112%; font-weight: 800; font-size: 1.7rem; letter-spacing: -.04em; line-height: 1.1; }
.dlg__txt > p { max-width: 70ch; font-weight: 550; }
.dlg__tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0; }
.dlg__tools li { font-family: var(--f-m); font-size: .8rem; font-weight: 600; border: 1px solid var(--ink); padding: 5px 10px; }
.dlg__note { font-family: var(--f-m); font-size: .75rem; color: var(--mute); }
.dlg__txt .btn { justify-self: start; margin-top: 6px; }

@media (max-width: 1020px) {
  .wall__row { grid-template-columns: 1fr; gap: 10px; padding: 20px 16px; }
  .cp__body { grid-template-columns: 1fr; }
  .cp__map { border-right: 0; border-bottom: 1px solid var(--line); }
  .refs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .refs { grid-template-columns: 1fr; }
  .cp__row { grid-template-columns: 1fr; }
  .cp__kpis { grid-template-columns: 1fr 1fr 1fr; }
  .kp { padding: 10px; }
  .seg2 { flex-wrap: wrap; }
  .seg2 button { padding: 0 12px; flex: 1; }
  .cp__bar { padding: 12px; }
  .dlg__txt { padding: 20px 18px 24px; }
}

/* ---------- alojamiento / subdominio ---------- */
.host { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.host__preview { background: var(--panel); border: 1px solid var(--line); padding: 22px; }
.host__lb { display: block; font-family: var(--f-m); font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 8px; }
.host__in {
  width: 100%; font: inherit; font-stretch: 112%; font-weight: 800; font-size: 1.5rem; letter-spacing: -.03em; color: var(--ink); background: transparent;
  border: 0; border-bottom: 2px solid var(--ink); padding: 8px 0 10px; border-radius: 0; margin-bottom: 20px; transition: border-color .25s;
}
.host__in:focus { outline: 2px solid var(--ink); outline-offset: 4px; box-shadow: none; }
.browser { border: 1px solid var(--ink); background: #0E0F12; }
.browser__bar { display: flex; align-items: center; gap: 14px; padding: 10px 12px; background: #1A1B20; border-bottom: 1px solid #2A2C32; }
.browser__dots { display: flex; gap: 5px; }
.browser__dots i { width: 9px; height: 9px; background: #4A4C53; }
.browser__dots i:first-child { background: var(--sig); }
.browser__url { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: #0E0F12; color: #ECEBE6; font-family: var(--f-m); font-size: .82rem; font-weight: 500; padding: 7px 12px; border: 1px solid #2A2C32; overflow: hidden; white-space: nowrap; }
.browser__url svg { width: 14px; height: 14px; flex: none; color: #7FD6A8; }
.browser__url b { color: #8DB0FF; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.browser__shot svg { display: block; width: 100%; height: auto; }
.host__note { margin-top: 12px; font-family: var(--f-m); font-size: .75rem; color: var(--mute); }

.host__side { display: grid; gap: 20px; }
.host__list { border-top: 1px solid var(--line); background: var(--panel); }
.host__list li { padding: 18px 18px 18px 22px; border-bottom: 1px solid var(--line); position: relative; font-weight: 550; color: var(--mute); line-height: 1.45; }
.host__list li::before { content: ""; position: absolute; left: 0; top: 24px; width: 8px; height: 8px; background: var(--sig); }
.host__list b { display: block; color: var(--ink); font-weight: 800; font-size: 1.08rem; letter-spacing: -.02em; margin-bottom: 3px; }

.rep { padding: 18px; }
.rep h3 { font-family: var(--f-m); font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 12px; }
.rep__list { display: grid; gap: 12px; }
.rep__list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); }
.rep__list li:first-child { border-top: 0; padding-top: 0; }
.rep__ic { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--ink); }
.rep__ic svg { width: 20px; height: 20px; }
.rep__list b { display: block; font-weight: 750; font-size: .98rem; letter-spacing: -.01em; }
.rep__list span span { font-family: var(--f-m); font-size: .75rem; color: var(--mute); font-weight: 500; }

@media (max-width: 1020px) { .host { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .host__preview { padding: 16px; } .host__in { font-size: 1.2rem; } .browser__url { font-size: .75rem; } }

.refs__filter { margin-bottom: 22px; flex-wrap: wrap; background: var(--panel); }
.ref.is-hidden { display: none; }
@media (max-width: 640px) { .refs__filter button { flex: 1 1 40%; } }

.no-gl .readout { display: none; }

/* ---------- WhatsApp ---------- */
.wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 80; display: flex; align-items: center; gap: 0; height: 60px; min-width: 60px;
  background: #25D366; color: #06371C; border-radius: 30px; padding: 0 14px; box-shadow: 0 10px 28px -8px rgba(0, 0, 0, .45);
  transition: transform .35s var(--ease), box-shadow .3s, gap .35s var(--ease), padding .35s var(--ease);
}
.wa svg { width: 32px; height: 32px; flex: none; }
.wa span { color: #06371c; max-width: 0; overflow: hidden; white-space: nowrap; font-family: var(--f-m); font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; transition: max-width .4s var(--ease); }
.wa:hover, .wa:focus-visible { transform: translateY(-3px); gap: 10px; padding: 0 20px 0 14px; box-shadow: 0 16px 34px -8px rgba(0, 0, 0, .5); }
.wa:hover span, .wa:focus-visible span { max-width: 140px; }
.wa::after { content: ""; position: absolute; inset: 0; border-radius: 30px; border: 2px solid #25D366; opacity: 0; animation: waPing 3s var(--ease) 3; pointer-events: none; }
@keyframes waPing { 0% { transform: scale(1); opacity: .6; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
.menu-open .wa { display: none; }
.btn--wa { background: #25D366; border-color: #25D366; color: #06371c; margin-top: 4px; }
.btn--wa::before { background: var(--ink); }
.btn--wa:hover { color: var(--bg); border-color: var(--ink); }
.btn--wa svg { width: 22px; height: 22px; }
.btn--wa:hover svg { transform: none; }
.foot__wa { font-family: var(--f-m); font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-bottom: 2px solid #25D366; padding-bottom: 2px; }
.foot__wa:hover { color: #25D366; }

/* ---------- seguridad y confidencialidad ---------- */
.secure { margin-top: clamp(40px, 6vw, 72px); background: var(--ink); color: var(--bg); padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.secure__k { font-family: var(--f-m); font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--sig-hi); margin-bottom: 14px; }
.secure__t { font-stretch: 118%; font-weight: 800; font-size: clamp(1.9rem, 3.6vw, 3.2rem); letter-spacing: -.045em; line-height: 1; }
.secure__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: color-mix(in srgb, var(--bg) 22%, transparent); border: 1px solid color-mix(in srgb, var(--bg) 22%, transparent); }
.secure__list li { background: var(--ink); padding: 18px 18px 20px; font-weight: 550; line-height: 1.45; color: color-mix(in srgb, var(--bg) 82%, transparent); }
.secure__list b { display: block; color: var(--bg); font-weight: 800; font-size: 1.1rem; letter-spacing: -.02em; margin-bottom: 4px; }
@media (max-width: 1020px) { .secure { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .secure__list { grid-template-columns: 1fr; } .wa { right: 14px; bottom: 14px; } .foot { padding-bottom: 92px; } }

/* ==========================================================
   Estudio de paneles: territorio, ventas conectadas, flujo en vivo
   ========================================================== */
.studio { padding: 0; }
.studio__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.studio__title { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; }
.studio__title em { font-style: normal; font-family: var(--f-m); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line); padding: 3px 8px; color: var(--mute); }
.studio__hint { padding: 12px 18px; border-bottom: 1px solid var(--line); font-family: var(--f-m); font-size: .8rem; font-weight: 500; color: var(--mute); line-height: 1.5; min-height: 3.2em; }
.st[hidden] { display: none; }
.cp .cp__bar { justify-content: flex-start; }

.cp__time { display: flex; align-items: center; gap: 12px; align-self: stretch; margin-top: 2px; }
.cp__play { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); background: var(--ink); color: var(--bg); transition: background-color .25s, transform .25s var(--ease); }
.cp__play:hover { background: var(--sig); color: var(--on-sig); }
.cp__play svg { width: 20px; height: 20px; fill: currentColor; }
.cp__play .p2 { display: none; }
.cp__play[aria-pressed="true"] .p1 { display: none; }
.cp__play[aria-pressed="true"] .p2 { display: block; }
.cp__mlab { font-family: var(--f-m); font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
#cpMonth, #lvVol { flex: 1; min-width: 0; accent-color: var(--sig); height: 44px; }
#cpMonthLbl { font-family: var(--f-m); font-size: .85rem; font-weight: 700; min-width: 2.6em; text-align: right; }

.xf__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.xf__grp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.xf__lb { font-family: var(--f-m); font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); margin-right: 4px; }
.xf__chip { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); font-weight: 700; font-size: .85rem; transition: background-color .2s, color .2s, border-color .2s; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.xf__chip:hover { border-color: var(--ink); }
.xf__chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.xf__rng { font-family: var(--f-m); font-size: .8rem; font-weight: 500; color: var(--mute); }
.xf__rng b { color: var(--ink); }
.xf__reset { min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); font-family: var(--f-m); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-left: auto; transition: background-color .2s, color .2s; }
.xf__reset:hover:not(:disabled) { background: var(--ink); color: var(--bg); }
.xf__reset:disabled { opacity: .35; cursor: default; }
.xf { padding: 16px 18px 10px; }
#xfSvg { width: 100%; height: auto; display: block; user-select: none; -webkit-user-select: none; touch-action: pan-y pinch-zoom; }
#xfSvg .hit { outline: none; }

.lv { display: grid; grid-template-columns: minmax(0, 1fr) 330px; }
.lv__cv { padding: 14px; min-width: 0; }
#lvCanvas { width: 100%; display: block; }
.lv__side { padding: 18px; border-left: 1px solid var(--line); display: grid; gap: 14px; align-content: start; min-width: 0; }
.lv__kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lv__ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.lv__ctrl label { font-family: var(--f-m); font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
#lvVolLbl { font-family: var(--f-m); font-size: .8rem; font-weight: 700; min-width: 4.6em; text-align: right; }
.lv__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lv__chip i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.lv__chip[aria-pressed="false"] { opacity: .75; text-decoration: line-through; }
.lv__log { display: grid; gap: 7px; font-family: var(--f-m); font-size: .78rem; font-weight: 500; min-height: 9em; }
.lv__log li { display: grid; grid-template-columns: auto 1fr; gap: 10px; animation: dd .35s var(--ease); }
.lv__log time { color: var(--sig-tx); font-weight: 700; }
.lv__log li.bad span { color: var(--bad); font-weight: 700; }

@media (max-width: 1020px) { .lv { grid-template-columns: 1fr; } .lv__side { border-left: 0; border-top: 1px solid var(--line); } .xf__reset { margin-left: 0; } }
@media (max-width: 820px) { .xf { padding: 10px 6px; } #xfSvg { min-width: 760px; touch-action: pan-x pan-y pinch-zoom; } .xf { overflow-x: auto; } }

/* reserva de espacio para evitar saltos (CLS) antes de que carguen las vistas previas */
.refs:empty { min-height: 1180px; }
@media (max-width: 1020px) { .refs:empty { min-height: 1500px; } }
@media (max-width: 640px) { .refs:empty { min-height: 2400px; } }

/* ==========================================================
   Mapa real (SVG): Colombia -> Santander -> Bucaramanga
   ========================================================== */
.geo { position: relative; width: 100%; aspect-ratio: 5 / 6; max-height: 600px; background: #F1F4F9; border: 1px solid var(--line); overflow: hidden; }
.is-loading .geo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); background-size: 220% 100%; animation: shine 1.2s linear infinite; }
@keyframes shine { from { background-position: 120% 0; } to { background-position: -120% 0; } }
#geoSvg { width: 100%; height: 100%; display: block; touch-action: pan-y pinch-zoom; }
#geoSvg .layer { transition: opacity .7s var(--ease); }
#geoSvg .layer[data-mode="off"] { opacity: 0; pointer-events: none; }
#geoSvg .reg { fill: #E3E7EF; stroke: #fff; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; transition: fill .4s, opacity .5s; }
#geoSvg .layer[data-mode="ctx"] .reg { pointer-events: none; }
#geoSvg .layer[data-mode="heat"] .reg { cursor: pointer; }
#geoSvg .reg.gone { opacity: 0; pointer-events: none; }
#geoSvg .reg.self { fill: #FFFFFF; }
#geoSvg .reg.drill { stroke: #1B3F9E; stroke-width: 1.8; }
#geoSvg .reg.hot { stroke: #0C0C0D; stroke-width: 2; }
#geoSvg .reg.pin { stroke: #E5484D; stroke-width: 2.6; }
#geoSvg .land { fill: #DDE3EE; stroke: #fff; stroke-width: 1; vector-effect: non-scaling-stroke; pointer-events: none; }
#geoSvg .lake, #geoSvg .river { fill: #C4DAF2; stroke: none; }
#geoSvg .park { fill: #CFE6D2; stroke: none; }
#geoSvg .labels { transition: opacity .4s; pointer-events: none; }
#geoSvg .lab { font-family: var(--f-d); font-weight: 700; fill: #0C0C0D; text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: rgba(255, 255, 255, .88); stroke-linejoin: round; }
.geo__credit { font-family: var(--f-m); font-size: .75rem; font-weight: 500; color: var(--mute); line-height: 1.45; align-self: stretch; }
.cp__tip small { display: block; font-size: 11px; font-weight: 500; color: #C6CEDF; margin-top: 2px; white-space: normal; max-width: 190px; }
@media (prefers-reduced-motion: reduce) { #geoSvg .layer, #geoSvg .reg { transition: none; } .is-loading .geo::after { animation: none; } }

/* ==========================================================
   Comparador antes / despues (Excel -> tablero)
   ========================================================== */
.ba-wrap { margin-top: clamp(40px, 6vw, 72px); padding: clamp(16px, 2.4vw, 26px); }
.ba__head { max-width: 76ch; margin-bottom: 18px; }
.ba__t { font-stretch: 112%; font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -.035em; line-height: 1.1; }
.ba__p { margin-top: 10px; color: var(--mute); font-weight: 550; }
.ba { --p: 50%; position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); background: #fff; cursor: ew-resize; touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; box-shadow: 0 24px 44px -26px rgba(12, 12, 13, .35); }
.ba__layer { position: absolute; inset: 0; }
.ba__layer svg { display: block; width: 100%; height: 100%; }
.ba__before { clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.ba__tag { position: absolute; top: 14px; z-index: 2; background: rgba(12, 12, 13, .88); color: #fff; font-family: var(--f-m); font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 7px 12px; pointer-events: none; transition: opacity .3s; }
.ba__tag--b { left: 14px; }
.ba__tag--a { right: 14px; background: var(--sig); color: var(--on-sig); }
.ba[data-side="after"] .ba__tag--b, .ba[data-side="before"] .ba__tag--a { opacity: 0; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--p); width: 48px; margin-left: -24px; z-index: 3; cursor: ew-resize; display: grid; place-items: center; outline: 2px solid transparent; }
.ba__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(12, 12, 13, .28), 0 0 18px rgba(12, 12, 13, .4); }
.ba__handle span { position: relative; width: 50px; height: 50px; border-radius: 50%; background: #1B3F9E; box-shadow: 0 0 0 3px #fff, 0 10px 24px rgba(12, 12, 13, .4); transition: transform .25s var(--ease); }
.ba__handle span::before, .ba__handle span::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border-style: solid; transform: translateY(-50%); }
.ba__handle span::before { left: 11px; border-width: 7px 9px 7px 0; border-color: transparent #fff transparent transparent; }
.ba__handle span::after { right: 11px; border-width: 7px 0 7px 9px; border-color: transparent transparent transparent #fff; }
.ba:hover .ba__handle span, .ba.is-drag .ba__handle span { transform: scale(1.1); }
.ba__handle:focus-visible span { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #0C0C0D; }
.ba__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ba__cap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 16px; background: var(--line); border: 1px solid var(--line); }
.ba__cap li { background: var(--panel); padding: 14px 16px; font-weight: 550; color: var(--mute); line-height: 1.45; font-size: .95rem; }
.ba__cap b { display: block; color: var(--ink); font-weight: 800; font-size: 1.02rem; letter-spacing: -.02em; margin-bottom: 3px; }
@media (max-width: 760px) { .ba__cap { grid-template-columns: 1fr; } .ba__tag { font-size: .75rem; padding: 5px 8px; top: 8px; } .ba__tag--b { left: 8px; } .ba__tag--a { right: 8px; } }

/* ---------- formulario: consentimiento, campo trampa y estados ---------- */
.field--check { gap: 6px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-family: var(--f-d); font-size: .9rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: #D6D6D0; line-height: 1.45; }
.check input { flex: none; width: 22px; height: 22px; min-height: 22px; margin: 1px 0 0; padding: 0; accent-color: var(--sig-hi); cursor: pointer; border: 0; }
.field.invalid .check { color: #fff; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form[aria-busy="true"] button[type="submit"] { opacity: .6; pointer-events: none; }
.form__status.ok { color: #7FD6A8; font-weight: 700; }
.form__status.bad { color: #FFB4A8; font-weight: 700; }

.form__wa { color: #fff; font-weight: 700; border-bottom: 2px solid #25D366; }
.form__wa:hover { color: #25D366; }
.form__status { line-height: 1.5; }

.btn--wa span { white-space: nowrap; }
@media (max-width: 480px) { .btn--wa { padding: 0 14px; gap: 10px; } .btn--wa .wa-pre { display: none; } }

/* ==========================================================
   Rendimiento y celular
   ========================================================== */
/* sin parpadeo: en computador el titulo y el hero esperan a GSAP (con salida de emergencia a los 3,2 s) */
@keyframes ttShow { to { opacity: 1; } }
html.full:not(.anim-ready) .hero h1, html.full:not(.anim-ready) .hero [data-rv] { opacity: 0; animation: ttShow .01s 3.2s forwards; }
/* revelado ligero sin librerias */
.rv-css [data-rv] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rv-css [data-rv].in { opacity: 1; transform: none; }
/* modo ligero: sin 3D, sin capa protectora ni textura */
.no-gl .veil, .no-gl #labels, .lite .grain { display: none; }
.lite body { background-image: radial-gradient(rgba(12, 12, 13, .09) 1px, transparent 1.2px); background-size: 22px 22px; }
/* el navegador no dibuja las secciones largas hasta que estan por aparecer */
#stack, #servicios, #referencias, #alojamiento, #proceso, #faq { content-visibility: auto; contain-intrinsic-size: auto 900px; }
/* celulares */
.wa { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); right: calc(20px + env(safe-area-inset-right, 0px)); }
@media (max-width: 640px) {
  .wa { height: 54px; min-width: 54px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); right: calc(14px + env(safe-area-inset-right, 0px)); }
  .wa svg { width: 28px; height: 28px; }
  .hero__in { padding-top: 84px; gap: 28px; }
  .hero__cta .btn { width: 100%; }
  .stats { gap: 18px 28px; }
  .sh h2 { max-width: none; }
  .panel, .ba-wrap { border-radius: 0; }
  .foot { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
}

/* accesibilidad: autocompletado del navegador sobre el formulario oscuro */
.field input:-webkit-autofill, .field textarea:-webkit-autofill { -webkit-text-fill-color: #F1F0EB; box-shadow: 0 0 0 1000px #0B0B0D inset; caret-color: #F1F0EB; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.is-playing .reg { transition: none; }

.xf__sel { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-m); font-size: .8rem; font-weight: 600; color: var(--mute); }
.xf__sel select { min-height: 44px; padding: 0 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; }

/* celular: menu con scroll, paneles legibles, controles tactiles */
.menu-open body { overflow: hidden; }
@media (max-height: 700px) { .menu a { font-size: 1.5rem; padding: 3px 0; } }
@media (max-width: 640px) {
  .cp__kpis, .lv__kpis { grid-template-columns: 1fr 1fr; }
  .cp__kpis .kp:first-child, .lv__kpis .kp:first-child { grid-column: 1 / -1; }
  .kp span { overflow-wrap: anywhere; }
  .dlg__img { overflow-x: auto; }
  .dlg__img svg { min-width: 900px; }
  .cp__map { padding: 10px; }
  #cpTop li { padding-block: 9px; }
  #stack, #servicios, #referencias, #alojamiento, #proceso, #faq { contain-intrinsic-size: auto 1800px; }
  #referencias { contain-intrinsic-size: auto 3300px; }
  .flog__h { flex-wrap: wrap; }
}
@media (max-width: 820px) { .foot { padding-bottom: 92px; } }
@media (max-width: 360px) { .hero h1 { font-size: 2.35rem; } h2 { font-size: 1.9rem; } }
.lite .refs { perspective: none; }
.lite .ref { will-change: auto; transform-style: flat; }
.lite .ref__img svg [filter] { filter: none; }
.lite .sec--faq { padding-bottom: 72px; }
.dlg { max-height: calc(100dvh - 32px); }

.foot__legal { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.foot__legal a { font-family: var(--f-m); font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; display: inline-flex; align-items: center; min-height: 44px; border-bottom: 2px solid transparent; }
.foot__legal a:hover { border-bottom-color: var(--sig); }
.check a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* selector de idioma */
.lang { font-family: var(--f-m); font-size: .8rem; font-weight: 700; letter-spacing: .06em; border: 1px solid var(--line); padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; margin-right: 10px; transition: background-color .25s, color .25s; }
.lang:hover { background: var(--ink); color: var(--bg); }
.menu__lang { font-family: var(--f-m); font-size: 1rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--sig-tx); padding: 14px 0; }
@media (max-width: 520px) { .lang { padding: 0 9px; margin-right: 6px; } }
