/* ============ XPERT WMS · design system ============ */

@font-face { font-family: 'Geist'; src: url('../assets/fonts/geist-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('../assets/fonts/geist-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('../assets/fonts/geist-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('../assets/fonts/geist-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('../assets/fonts/geist-mono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('../assets/fonts/geist-mono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --bg: #0A0817;
  --bg-2: #0E0B20;
  --panel: #110D26;
  --ink: #F2EFFA;
  --ink-dim: rgba(242, 239, 250, .64);
  --ink-faint: rgba(242, 239, 250, .38);
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --indigo: #4F46E5;
  --violet: #7C3AED;
  --magenta: #E11CD9;
  --grad: linear-gradient(92deg, #4F46E5, #7C3AED 55%, #E11CD9);
  --r: 10px;
  --display: 'Geist', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  --body: 'Geist', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', Consolas, monospace;
  --pad-x: clamp(20px, 5vw, 84px);
  /* padding centrador: contenido a max 1360px en pantallas anchas */
  --pad-cx: max(clamp(20px, 5vw, 84px), calc((100% - 1360px) / 2));
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* grain */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9000;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip { position: absolute; left: -9999px; top: 0; z-index: 9999; background: var(--violet); color: #fff; padding: 10px 18px; }
.skip:focus { left: 12px; top: 12px; }

/* ============ tipografía ============ */
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -.035em; }
h1 { font-size: clamp(2.7rem, 7.6vw, 6rem); }
h2 { font-size: clamp(2rem, 4.8vw, 3.8rem); margin-bottom: clamp(28px, 4vw, 56px); }
h3 { font-size: clamp(1.2rem, 2.1vw, 1.6rem); line-height: 1.22; letter-spacing: -.02em; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.dim { color: var(--ink-faint); }

.eyebrow, .mono, .fuente, .paso-n, .rubro-n, .fase-n, .plano-caption, .scene-tag, .chip, .sap-col-label, .form-title {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ============ layout base ============ */
.section { padding: clamp(90px, 12vw, 200px) var(--pad-cx); border-top: 1px solid var(--line); position: relative; }

/* ============ botones ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-weight: 600; font-size: 1rem;
  padding: 15px 26px; border-radius: var(--r); border: 1px solid transparent;
  cursor: pointer; transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, border-color .25s, background .25s;
  min-height: 48px;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-grad { background: var(--grad); color: #fff; }
.btn-grad:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(124, 58, 237, .35); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-dim); }
.btn-sm { padding: 10px 18px; font-size: .9rem; min-height: 40px; }
.btn-xl { padding: 19px 34px; font-size: 1.1rem; }
.cta-note { font-size: .84rem; color: var(--ink-faint); margin-top: 12px; }

/* ============ header ============ */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px var(--pad-cx);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-head.scrolled { background: rgba(10, 8, 23, .82); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.brand img { width: 66px; height: auto; }
.site-nav { display: flex; gap: 30px; }
.site-nav a { font-size: .92rem; font-weight: 500; color: var(--ink-dim); transition: color .2s; }
.site-nav a:hover { color: var(--ink); }

/* ============ HERO ============ */
.hero { position: relative; height: 100dvh; min-height: 620px; overflow: hidden; }
.compare { position: absolute; inset: 0; touch-action: pan-y; cursor: ew-resize; }
.layer { position: absolute; inset: 0; }
.layer picture { position: absolute; inset: 0; display: block; }
.layer img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }
.layer-antes { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.scene-tag {
  position: absolute; top: 96px; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 8px; font-size: .92rem;
  border: 1px solid var(--line-strong); backdrop-filter: blur(8px);
  color: var(--ink); z-index: 4;
}
.scene-tag::before { content: ''; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.tag-antes { left: var(--pad-cx); background: rgba(28, 14, 12, .78); border-color: rgba(210, 82, 66, .65); color: #F6D3CC; }
.tag-antes::before { background: #E05545; box-shadow: 0 0 12px rgba(224, 85, 69, .9); }
.tag-despues { right: var(--pad-cx); border-color: transparent; background: var(--grad); color: #fff; box-shadow: 0 4px 24px rgba(124, 58, 237, .45); }
.tag-despues::before { background: #fff; box-shadow: 0 0 12px rgba(255, 255, 255, .95); }

.divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos); translate: -50% 0;
  width: 2px; background: linear-gradient(180deg, var(--indigo), var(--magenta));
  z-index: 5; cursor: ew-resize;
}
.divider:focus-visible { outline: 2px solid var(--magenta); outline-offset: 4px; }
.handle {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(10, 8, 23, .55); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .22); color: var(--ink);
}
.handle svg { width: 24px; height: 24px; }

.hero-scrim {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,8,23,.55) 0%, rgba(10,8,23,0) 26%, rgba(10,8,23,0) 46%, rgba(10,8,23,.88) 88%);
}
.hero-copy {
  position: absolute; z-index: 4; left: var(--pad-cx); right: var(--pad-cx);
  bottom: clamp(48px, 9vh, 110px); max-width: 780px; pointer-events: none;
}
.hero-copy .btn, .hero-copy a { pointer-events: auto; }
.eyebrow { color: var(--ink-dim); margin-bottom: 18px; }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--ink-dim); max-width: 560px; margin: 22px 0 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-hint {
  position: absolute; z-index: 4; bottom: 18px; left: 50%; translate: -50% 0;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint); pointer-events: none;
}

/* ============ franja de confianza ============ */
.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 18px 0; }
.trust-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 36s linear infinite; }
.trust-track span { font-family: var(--mono); font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-dim); white-space: nowrap; }
.trust-track i { width: 5px; height: 5px; border-radius: 50%; background: var(--magenta); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ problema + física ============ */
.problema-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.dolores { display: grid; gap: 0; border-top: 1px solid var(--line); }
.dolores li {
  display: flex; gap: 18px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(1rem, 1.5vw, 1.18rem); color: var(--ink-dim);
}
.mono-n { font-family: var(--mono); font-size: .72rem; color: var(--magenta); flex: none; }

.stat-callout { margin-top: 44px; display: flex; gap: 26px; align-items: flex-start; }
.stat-big { font-family: var(--display); font-weight: 600; font-size: clamp(4.4rem, 8vw, 7rem); line-height: .9; }
.stat-big .unit { font-size: .45em; color: var(--magenta); }
.stat-callout p { color: var(--ink-dim); max-width: 320px; font-size: .95rem; }
.fuente { display: inline-block; margin-top: 10px; color: var(--ink-faint); font-size: .62rem; }

.fisica-wrap { position: relative; }
.fisica-stage {
  position: relative; height: clamp(340px, 44vw, 520px); overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r);
  background:
    radial-gradient(90% 60% at 50% 108%, rgba(124, 58, 237, .16), transparent 70%),
    var(--bg-2);
}
.fisica-stage::after {
  content: 'DEPÓSITO / VISTA FRONTAL'; position: absolute; top: 14px; left: 16px;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; color: var(--ink-faint);
}
.caja {
  position: absolute; width: 84px; height: 74px; will-change: transform;
  background: url('../assets/caja.svg') center / contain no-repeat;
  cursor: grab;
}
.caja.v-abierta { background-image: url('../assets/caja-abierta.svg'); }
.caja.v-rota { background-image: url('../assets/caja-rota.svg'); }
.caja.v-nolabel { background-image: url('../assets/caja-sinlabel.svg'); }

.fisica-estado {
  position: absolute; top: 12px; right: 14px; z-index: 5;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 14px; border-radius: 7px;
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid rgba(210, 82, 66, .65); background: rgba(28, 14, 12, .85); color: #F6D3CC;
  transition: background .3s, border-color .3s, color .3s;
}
.fisica-estado::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #E05545; box-shadow: 0 0 10px rgba(224, 85, 69, .9); }
.fisica-estado.on { background: var(--grad); border-color: transparent; color: #fff; }
.fisica-estado.on::before { background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .95); }
.caja:active { cursor: grabbing; }
/* pila estática (mobile / fallback): posiciones finales de la "caída" */
.fisica-stage.static-pile .caja { animation: caer .9s cubic-bezier(.22, 1.4, .36, 1) both; }
.c1 { left: 8%;  bottom: 0;    transform: rotate(-7deg); animation-delay: .05s; }
.c2 { left: 24%; bottom: 0;    transform: rotate(4deg);  animation-delay: .18s; }
.c3 { left: 17%; bottom: 66px; transform: rotate(-13deg); animation-delay: .32s; }
.c4 { left: 46%; bottom: 0;    transform: rotate(9deg);  animation-delay: .12s; }
.c5 { left: 61%; bottom: 0;    transform: rotate(-3deg); animation-delay: .26s; }
.c6 { left: 55%; bottom: 64px; transform: rotate(15deg); animation-delay: .42s; }
.c7 { left: 80%; bottom: 0;    transform: rotate(-11deg); animation-delay: .2s; }
.c8 { left: 36%; bottom: 0;    transform: rotate(2deg) scale(.9); animation-delay: .36s; }
.c9 { left: 70%; bottom: 62px; transform: rotate(8deg) scale(.85); animation-delay: .48s; }
.c10 { left: 3%;  bottom: 64px; transform: rotate(11deg) scale(.8); animation-delay: .52s; }
.c11 { left: 30%; bottom: 128px; transform: rotate(-18deg) scale(.75); animation-delay: .6s; }
.c12 { left: 88%; bottom: 0;   transform: rotate(14deg) scale(.95); animation-delay: .44s; }
@keyframes caer { from { translate: 0 -420px; opacity: 0; } 30% { opacity: 1; } to { translate: 0 0; } }
.fisica-ui { display: flex; justify-content: center; margin-top: 22px; }

/* ============ recorrido ============ */
.recorrido-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.plano-wrap { position: sticky; top: 110px; }
#plano { width: 100%; height: auto; }
.zona-bg { fill: rgba(255, 255, 255, .02); stroke: rgba(255, 255, 255, .07); transition: fill .5s, stroke .5s; }
.zona .dock { fill: #221D40; transition: fill .5s; }
.rack-row rect { fill: #1B1638; stroke: rgba(255, 255, 255, .06); transition: fill .5s; }
.plano-label { font-family: var(--mono); font-size: 13px; letter-spacing: .16em; fill: var(--ink-faint); transition: fill .5s; }
.zona.activa .zona-bg { fill: rgba(124, 58, 237, .13); stroke: rgba(124, 58, 237, .55); }
.zona.activa .plano-label { fill: #E9DEFF; }
.zona.activa .dock { fill: var(--violet); }
.zona.activa .rack-row rect { fill: #2E2560; }
.plano-caption { margin-top: 14px; color: var(--ink-faint); }

.pasos { display: grid; gap: clamp(70px, 8vw, 130px); }
.paso { border-left: 1px solid var(--line); padding-left: clamp(22px, 3vw, 40px); transition: border-color .4s; }
.paso.activo { border-left-color: var(--magenta); }
.paso-n { color: var(--magenta); margin-bottom: 14px; }
.paso h3 { margin-bottom: 14px; }
.paso > p { color: var(--ink-dim); margin-bottom: 20px; }
.paso ul { display: grid; gap: 10px; }
.paso li { position: relative; padding-left: 22px; color: var(--ink-dim); font-size: .95rem; }
.paso li::before { content: ''; position: absolute; left: 0; top: .55em; width: 10px; height: 1px; background: var(--magenta); }

/* ============ manifiesto ============ */
.manifiesto { padding-top: clamp(70px, 9vw, 150px); padding-bottom: clamp(70px, 9vw, 150px); }
.manifiesto p {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.7rem, 4.4vw, 3.4rem); line-height: 1.18; letter-spacing: -.01em;
  max-width: 1000px;
}
.manifiesto .word { opacity: .22; }

/* ============ sap ============ */
.sap { background: var(--bg-2); }
.sap-lead { max-width: 640px; color: var(--ink-dim); font-size: clamp(1rem, 1.6vw, 1.2rem); margin-bottom: clamp(40px, 5vw, 70px); }
.sap-compare { display: grid; grid-template-columns: 1fr 1fr; max-width: 940px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.sap-col { padding: clamp(24px, 3.4vw, 44px); }
.sap-hoy { border-right: 1px solid var(--line); }
.sap-col-label { margin-bottom: 22px; color: var(--ink-faint); }
.sap-con .sap-col-label { color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; }
.sap-col ul { display: grid; gap: 14px; }
.sap-col li { position: relative; padding-left: 24px; color: var(--ink-dim); font-size: .96rem; }
.sap-hoy li::before { content: '×'; position: absolute; left: 0; color: var(--ink-faint); font-family: var(--mono); }
.sap-con li::before { content: '→'; position: absolute; left: 0; color: var(--magenta); font-family: var(--mono); }
.sap-con { background: linear-gradient(160deg, rgba(124, 58, 237, .09), transparent 60%); }
.sap-note {
  display: inline-block; margin-top: 36px;
  padding: 20px 28px; border: 1px solid var(--line-strong); border-radius: var(--r);
  border-left: 3px solid var(--magenta);
  background: var(--panel);
  color: var(--ink-dim); font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}
.sap-note strong { color: var(--ink); font-weight: 600; }

/* ============ rubros (acordeón) ============ */
.rubros-list { border-top: 1px solid var(--line); }
.rubro { border-bottom: 1px solid var(--line); transition: background .35s; }
.rubro summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 74px 1fr auto; align-items: center;
  gap: clamp(16px, 3vw, 44px); padding: clamp(20px, 3vw, 30px) 0;
}
.rubro summary::-webkit-details-marker { display: none; }
.rubro-n { color: var(--ink-faint); transition: color .3s; }
.rubro-tit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.rubro-tit h3 { transition: color .3s; }
.rubro summary:hover .rubro-n, .rubro[open] .rubro-n { color: var(--magenta); }
.rubro summary:hover h3 { color: #fff; }
.rubro-x { position: relative; width: 16px; height: 16px; flex: none; margin-right: 4px; }
.rubro-x::before, .rubro-x::after { content: ''; position: absolute; inset: 50% auto auto 0; width: 16px; height: 1.5px; background: var(--magenta); transition: rotate .3s; }
.rubro-x::after { rotate: 90deg; }
.rubro[open] .rubro-x::after { rotate: 0deg; }
.rubro[open] { background: linear-gradient(150deg, rgba(124, 58, 237, .08), transparent 55%); }
.rubro .rubro-body { padding: 4px 24px clamp(28px, 4vw, 44px) calc(74px + clamp(16px, 3vw, 44px)); }
.rubro-body p { color: var(--ink-dim); max-width: 640px; }
.chip {
  display: inline-block; padding: 7px 13px; border-radius: 6px;
  border: 1px solid rgba(225, 28, 217, .45); color: #F4B7EE;
  background: rgba(225, 28, 217, .08);
}
.rubro-feats { display: grid; gap: 10px; margin: 22px 0; }
.rubro-feats li { position: relative; padding-left: 22px; color: var(--ink-dim); font-size: .95rem; }
.rubro-feats li::before { content: ''; position: absolute; left: 0; top: .55em; width: 10px; height: 1px; background: var(--magenta); }
.rubro-cierre { font-family: var(--display); font-weight: 600; font-size: clamp(1.15rem, 1.9vw, 1.5rem); color: var(--ink); margin-top: 10px; }
.rubros-note { margin-top: 36px; color: var(--ink-faint); font-size: .92rem; max-width: 560px; }

/* ============ números ============ */
.numeros { background: var(--bg-2); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stat { padding: clamp(24px, 2.8vw, 44px); border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat-num { font-family: var(--display); font-weight: 600; font-size: clamp(2.6rem, 4.6vw, 4.6rem); line-height: 1; margin-bottom: 16px; }
.stat-num .unit { font-size: .5em; color: var(--magenta); }
.stat-txt { color: var(--ink-dim); font-size: .92rem; }
.numeros-cierre { margin-top: 44px; font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 2rem); max-width: 760px; }

/* ============ implementación ============ */
.fases { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px); counter-reset: fase; list-style: none; }
.fase { border-top: 1px solid var(--line-strong); padding-top: 24px; }
.fase-n { color: var(--magenta); margin-bottom: 14px; }
.fase h3 { margin-bottom: 12px; }
.fase p { color: var(--ink-dim); font-size: .95rem; }
.impl-note { margin-top: clamp(40px, 5vw, 64px); max-width: 640px; color: var(--ink-dim); border-left: 1px solid var(--magenta); padding-left: 24px; }

/* ============ faq ============ */
.faq-list { max-width: 820px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  cursor: pointer; list-style: none; padding: 22px 0;
  font-family: var(--display); font-weight: 600; font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-x { position: relative; flex: none; width: 16px; height: 16px; }
.faq-x::before, .faq-x::after { content: ''; position: absolute; inset: 50% auto auto 0; width: 16px; height: 1.5px; background: var(--magenta); transition: rotate .3s; }
.faq-x::after { rotate: 90deg; }
details[open] .faq-x::after { rotate: 0deg; }
.faq-list details p { padding: 0 40px 26px 0; color: var(--ink-dim); max-width: 700px; }

/* ============ cierre ============ */
.cierre { text-align: left; }
.cierre h2 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); margin-bottom: 24px; }
.cierre-sub { color: var(--ink-dim); font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 520px; margin-bottom: clamp(32px, 4vw, 52px); }
.cierre-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 440px); gap: clamp(40px, 6vw, 110px); align-items: center; }
.contacto-alt { display: flex; flex-direction: column; gap: 6px; margin-top: 34px; }
.contacto-alt .mono { color: var(--ink-dim); font-size: .8rem; }

.form-demo {
  border: 1px solid var(--line); border-radius: var(--r); padding: clamp(24px, 3vw, 40px);
  background: var(--panel); display: grid; gap: 18px;
}
.form-title { color: var(--ink-faint); }
.form-demo label { display: grid; gap: 8px; font-size: .88rem; font-weight: 500; color: var(--ink-dim); }
.form-demo input, .form-demo select {
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 8px;
  color: var(--ink); font-family: var(--body); font-size: 1rem; padding: 12px 14px;
  transition: border-color .2s;
}
.form-demo input:focus, .form-demo select:focus { outline: none; border-color: var(--violet); }
.form-demo button { justify-content: center; }
.form-ok { font-size: .88rem; color: var(--ink-dim); }

/* ============ footer ============ */
.site-foot { border-top: 1px solid var(--line); padding: clamp(50px, 6vw, 80px) var(--pad-cx); display: grid; gap: 14px; }
.site-foot p { color: var(--ink-dim); font-size: .94rem; }
.site-foot .mono { color: var(--ink-faint); font-size: .74rem; }
.foot-copy { color: var(--ink-faint); font-size: .8rem; }

/* ============ whatsapp fab ============ */
.wa-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 1200;
  width: 56px; height: 56px; border-radius: 50%;
  display: none; place-items: center;
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 28px rgba(124, 58, 237, .45);
}
.wa-fab svg { width: 26px; height: 26px; }

/* ============ reveals (estado inicial solo con JS) ============ */
html.js [data-reveal] { opacity: 0; translate: 0 28px; }
html.js .reveal-in { opacity: 1; translate: 0 0; transition: opacity .8s cubic-bezier(.2,.7,.2,1), translate .8s cubic-bezier(.2,.7,.2,1); }

/* ============ responsive ============ */
@media (max-width: 1023px) {
  .problema-grid, .recorrido-grid, .cierre-grid { grid-template-columns: 1fr; }
  .plano-wrap { position: static; max-width: 520px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .fases { grid-template-columns: 1fr; }
  .rubro summary { grid-template-columns: 52px 1fr auto; gap: 14px; }
  .rubro .rubro-body { padding: 0 0 28px 0; }
}
@media (max-width: 767px) {
  .site-nav { display: none; }
  .site-head .btn { display: none; }
  .wa-fab { display: grid; }
  .scene-tag { top: 84px; padding: 9px 13px; font-size: .74rem; }
  .hero-copy { bottom: 56px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .sap-compare { grid-template-columns: 1fr; }
  .sap-hoy { border-right: none; border-bottom: 1px solid var(--line); }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
  .caja { width: 64px; height: 56px; }
  .fisica-stage { height: 300px; }
  .handle { top: 33%; }
}

/* ============ reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .trust-track { animation: none; }
  .fisica-stage.static-pile .caja { animation: none; }
  html.js [data-reveal] { opacity: 1; translate: 0 0; }
  .manifiesto .word { opacity: 1; }
}
