/* ==========================================================
   Kaanan · Plataforma de Administración de Condominios
   Paleta basada en el logotipo: morado #804CA4 + negro,
   acentos cian / magenta del identificador original.
   ========================================================== */
:root {
  --purple: #804CA4;
  --purple-600: #6A3B8C;
  --purple-300: #B08AD1;
  --purple-100: #EFE7F6;
  --cyan: #00D8E8;
  --magenta: #E0357A;
  --ink: #0C0913;
  --ink-2: #15101F;
  --ink-3: #1E1730;
  --text: #1B1624;
  --muted: #5F5870;
  --line: #E6E1EE;
  --bg: #FFFFFF;
  --bg-soft: #F7F4FB;
  --white: #FFFFFF;
  --wa: #25D366;
  --grad: linear-gradient(120deg, #804CA4 0%, #A35BD6 45%, #00D8E8 100%);
  --grad-soft: linear-gradient(120deg, rgba(128,76,164,.18), rgba(0,216,232,.12));
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px -20px rgba(40, 18, 70, .28);
  --shadow-lg: 0 40px 100px -30px rgba(40, 18, 70, .45);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1200px;
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body {
  margin: 0; font-family: var(--font-body); color: var(--text); background: var(--bg);
  font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; }
.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad); z-index: 200; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--purple);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.6em; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 700; font-size: .98rem; letter-spacing: .01em; position: relative; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { color: #fff; background: var(--grad); background-size: 180% 100%; box-shadow: 0 12px 30px -10px rgba(128,76,164,.7); }
.btn-primary:hover { transform: translateY(-3px); background-position: 100% 0; box-shadow: 0 18px 40px -12px rgba(128,76,164,.85); }
.btn-wa { color: #fff; background: var(--wa); box-shadow: 0 12px 30px -12px rgba(37,211,102,.7); }
.btn-wa:hover { transform: translateY(-3px); background: #1fbd59; }
.btn-ghost { color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-3px); }
.btn-outline { color: var(--purple); border: 1.5px solid var(--purple); background: transparent; }
.btn-outline:hover { background: var(--purple); color: #fff; transform: translateY(-3px); }
.btn-lg { padding: 1.1em 2em; font-size: 1.05rem; }
.btn .shine { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; z-index: -1; }
.btn .shine::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); animation: shine 3.6s var(--ease) infinite;
}
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; padding: 18px 0;
  transition: background .4s, padding .4s, box-shadow .4s, backdrop-filter .4s;
}
.nav.scrolled { background: rgba(12,9,19,.78); backdrop-filter: blur(16px) saturate(140%); padding: 10px 0; box-shadow: 0 10px 30px -15px rgba(0,0,0,.5); }
.nav .container { display: flex; align-items: center; gap: 28px; }
.brand { flex: none; display: flex; align-items: center; gap: 12px; color: #fff; }
.brand img { height: 40px; width: auto; }
.brand span { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; letter-spacing: -.01em; }
.nav-links { display: flex; gap: 22px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { color: rgba(255,255,255,.78); font-weight: 600; font-size: .93rem; position: relative; padding: 6px 0; transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: flex; gap: 10px; }
.nav-cta .btn { padding: .7em 1.2em; font-size: .9rem; }
.burger { display: none; margin-left: 12px; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 12px; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease), opacity .2s; content: ""; }
.burger span { top: 21px; }
.burger span::before { top: -7px; left: 0; }
.burger span::after { top: 7px; left: 0; }
.nav.open .burger span { background: transparent; }
.nav.open .burger span::before { top: 0; transform: rotate(45deg); }
.nav.open .burger span::after { top: 0; transform: rotate(-45deg); }

/* Language switch */
.lang-switch { flex: none; display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); font-size: .78rem; font-weight: 800; letter-spacing: .04em; }
.lang-switch span, .lang-switch b { padding: 5px 9px; border-radius: 999px; color: rgba(255,255,255,.6); transition: all .3s; }
.lang-switch .cur { background: #fff; color: var(--ink); }
.lang-switch:hover span:not(.cur), .lang-switch:hover b:not(.cur) { color: #fff; }
.mx-tag { font-family: var(--font-head); font-size: .8rem; letter-spacing: .06em; color: #fff; background: var(--grad); padding: 2px 7px; border-radius: 6px; margin-left: -4px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  background: var(--ink); color: #fff; overflow: hidden; padding: 130px 0 90px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .22; transform: scale(1.08); filter: saturate(120%) hue-rotate(10deg); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(1200px 600px at 75% 30%, rgba(128,76,164,.25), transparent 60%), linear-gradient(180deg, rgba(12,9,19,.55) 0%, rgba(12,9,19,.85) 70%, var(--ink) 100%); }
#net { position: absolute; inset: 0; z-index: 1; opacity: .75; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); z-index: 1; opacity: .55; animation: float 16s ease-in-out infinite; }
.orb.o1 { width: 520px; height: 520px; background: #804CA4; top: -140px; left: -120px; }
.orb.o2 { width: 420px; height: 420px; background: #00B7C8; bottom: -160px; right: 10%; animation-delay: -6s; opacity: .35; }
.orb.o3 { width: 280px; height: 280px; background: #E0357A; top: 30%; right: -80px; animation-delay: -10s; opacity: .25; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(40px, -30px) scale(1.06); } 66% { transform: translate(-30px, 30px) scale(.96); } }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.9); margin-bottom: 24px; backdrop-filter: blur(6px);
}
.eyebrow b { background: var(--grad); padding: 3px 10px; border-radius: 999px; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); font-weight: 800; margin-bottom: 22px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(110%); animation: rise 1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }
.hero-sub { font-size: 1.15rem; color: rgba(255,255,255,.76); max-width: 560px; margin-bottom: 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; color: rgba(255,255,255,.7); font-size: .88rem; font-weight: 600; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 18px; height: 18px; color: var(--cyan); }
.fade-up { opacity: 0; transform: translateY(26px); animation: fadeUp 1s var(--ease) forwards; }
.d1 { animation-delay: .35s; } .d2 { animation-delay: .5s; } .d3 { animation-delay: .65s; } .d4 { animation-delay: .8s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* Phone mockup */
.mock { position: relative; height: 600px; perspective: 1400px; }
.phone {
  position: absolute; left: 50%; top: 50%; width: 290px; height: 590px; margin: -295px 0 0 -145px;
  border-radius: 44px; background: #0f0b17; padding: 12px; border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 50px 120px -30px rgba(128,76,164,.8), inset 0 0 0 2px rgba(255,255,255,.04);
  transform: rotateY(-14deg) rotateX(6deg); transform-style: preserve-3d; transition: transform .6s var(--ease);
  animation: phoneIn 1.4s var(--ease) .3s both;
}
@keyframes phoneIn { from { opacity: 0; transform: translateY(60px) rotateY(-30deg) rotateX(14deg); } }
.phone-screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: linear-gradient(180deg, #faf8fd 0%, #f1ecf7 100%); color: var(--text); position: relative; }
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; background: #0f0b17; border-radius: 20px; z-index: 3; }
.app-head { background: var(--grad); color: #fff; padding: 46px 18px 22px; }
.app-head small { opacity: .8; font-size: .72rem; }
.app-head h4 { font-size: 1.05rem; margin: 2px 0 0; }
.app-body { padding: 14px; display: grid; gap: 10px; }
.app-card { background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: 0 6px 18px -10px rgba(60,20,90,.35); }
.app-card .t { font-size: .68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.donut-wrap { display: flex; align-items: center; gap: 14px; }
.donut { width: 86px; height: 86px; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 12; }
.donut .bg { stroke: #EEE8F4; }
.donut .s1 { stroke: var(--purple); stroke-dasharray: 0 999; animation: dash1 2s var(--ease) 1.2s forwards; }
.donut .s2 { stroke: var(--cyan); stroke-dasharray: 0 999; animation: dash2 2s var(--ease) 1.5s forwards; }
@keyframes dash1 { to { stroke-dasharray: 136 999; } }
@keyframes dash2 { to { stroke-dasharray: 58 999; stroke-dashoffset: -136; } }
.legend { font-size: .72rem; display: grid; gap: 4px; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.row-mini { display: flex; justify-content: space-between; font-size: .76rem; padding: 6px 0; border-bottom: 1px dashed #eee; }
.row-mini:last-child { border: 0; }
.pill { font-size: .62rem; padding: 2px 8px; border-radius: 99px; font-weight: 700; }
.pill.ok { background: #DDF7E9; color: #11804A; }
.pill.wait { background: #FFF1D6; color: #9A6300; }
.pill.pur { background: var(--purple-100); color: var(--purple); }
.bars { display: flex; gap: 6px; align-items: flex-end; height: 50px; }
.bars span { flex: 1; background: var(--grad); border-radius: 5px 5px 2px 2px; height: 10%; animation: grow 1.6s var(--ease) forwards; }
@keyframes grow { to { height: var(--h); } }

.float-card {
  position: absolute; z-index: 4; background: rgba(255,255,255,.96); color: var(--text); border-radius: 16px; padding: 12px 14px;
  box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center; font-size: .82rem; min-width: 210px;
  animation: pop .9s var(--ease) both, bob 6s ease-in-out infinite;
}
.float-card .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; color: #fff; }
.float-card .ic svg { width: 20px; height: 20px; }
.float-card b { display: block; font-size: .84rem; }
.float-card small { color: var(--muted); font-size: .72rem; }
.fc1 { top: 0; left: -40px; animation-delay: 1.4s, 2s; }
.fc2 { top: 250px; right: -40px; animation-delay: 1.8s, 3s; }
.fc3 { bottom: 40px; left: -10px; animation-delay: 2.2s, 1s; }
@keyframes pop { from { opacity: 0; transform: scale(.6) translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.35); border-radius: 20px; }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 3px; background: #fff; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink-2); color: rgba(255,255,255,.8); padding: 22px 0; overflow: hidden; border-block: 1px solid rgba(255,255,255,.06); position: relative; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--ink-2), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--ink-2), transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; white-space: nowrap; }
.marquee-track span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 120px 0; }
.section.soft { background: var(--bg-soft); }
.section.dark { background: var(--ink); color: #fff; overflow: hidden; }
.sec-head { text-align: center; max-width: 780px; margin: 0 auto 64px; }
.kicker { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--purple); margin-bottom: 14px; }
.dark .kicker { color: var(--cyan); }
.sec-head h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); font-weight: 800; }
.sec-head p { color: var(--muted); font-size: 1.1rem; }
.dark .sec-head p { color: rgba(255,255,255,.7); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.left { transform: translateX(-50px); }
.reveal.right { transform: translateX(50px); }
.reveal.zoom { transform: scale(.92); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Problem / stats ---------- */
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.problem-text h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 800; }
.problem-text p { color: var(--muted); font-size: 1.08rem; }
.pain-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.pain-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: transform .4s var(--ease), box-shadow .4s; }
.pain-list li:hover { transform: translateX(8px); box-shadow: var(--shadow); }
.pain-list .x { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #FDE8EF; color: var(--magenta); font-weight: 800; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat {
  background: #fff; border-radius: var(--radius); padding: 30px 26px; border: 1px solid var(--line); position: relative; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s;
}
.stat:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.stat::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.stat.in::before { transform: scaleX(1); }
.stat .num { font-family: var(--font-head); font-weight: 800; font-size: 3rem; line-height: 1; margin-bottom: 10px; }
.stat p { color: var(--muted); font-size: .95rem; margin: 0; }
.stat.hl { background: var(--ink); color: #fff; border: 0; }
.stat.hl p { color: rgba(255,255,255,.72); }
.src { font-size: .78rem; color: var(--muted); margin-top: 16px; }

/* ---------- Tabs / Platform ---------- */
.tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 50px; flex-wrap: wrap; }
.tab {
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; cursor: pointer; color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px; transition: all .35s var(--ease);
}
.tab svg { width: 20px; height: 20px; }
.tab:hover { border-color: var(--purple-300); color: var(--purple); }
.tab.active { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 12px 30px -12px rgba(12,9,19,.6); }
.panel { display: none; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.panel.active { display: grid; animation: panelIn .8s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(24px); } }
.panel-img { position: relative; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 1 / .95; }
.panel-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.panel-img:hover img { transform: scale(1.06); }
.panel-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 50%, rgba(12,9,19,.65)); }
.panel-img .tag { position: absolute; left: 22px; bottom: 22px; z-index: 2; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.panel h3 { font-size: 2rem; font-weight: 800; }
.panel > div > p { color: var(--muted); font-size: 1.05rem; }
.feat-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; }
.feat-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; font-weight: 500; opacity: 0; transform: translateY(12px); animation: fadeUp .6s var(--ease) forwards; animation-delay: calc(var(--i) * 60ms + .2s); }
.feat-list svg { flex: none; width: 20px; height: 20px; color: var(--purple); margin-top: 3px; }

/* ---------- Bento (differentiators) ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(210px, auto); gap: 18px; }
.cell {
  position: relative; border-radius: 24px; padding: 28px; overflow: hidden; background: var(--ink-2); border: 1px solid rgba(255,255,255,.08);
  transition: transform .5s var(--ease), border-color .5s; isolation: isolate;
}
.cell::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(128,76,164,.35), transparent 45%); opacity: 0; transition: opacity .4s; }
.cell:hover::before { opacity: 1; }
.cell:hover { transform: translateY(-6px); border-color: rgba(176,138,209,.45); }
.cell .ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid rgba(255,255,255,.12); color: var(--cyan); margin-bottom: 20px; }
.cell .ico svg { width: 26px; height: 26px; }
.cell h3 { font-size: 1.25rem; margin-bottom: 8px; }
.cell p { color: rgba(255,255,255,.66); font-size: .95rem; margin: 0; }
.cell .badge { position: absolute; top: 22px; right: 22px; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 99px; background: var(--grad); color: #fff; }
.cell.w2 { grid-column: span 2; }
.cell.h2 { grid-row: span 2; }
.cell.feature-img { padding: 0; display: flex; flex-direction: column; }
.cell.feature-img img { width: 100%; height: 55%; object-fit: cover; opacity: .9; }
.cell.feature-img .in-pad { padding: 26px 28px; }
.cell.big { background: linear-gradient(145deg, #2A1840, #15101F 60%); }

/* ---------- Security flow ---------- */
.flow { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.road {
  position: relative; height: 340px; border-radius: 28px; background: linear-gradient(180deg, rgba(26,20,40,.72), rgba(15,11,23,.95)), url("../img/noche-condominio.webp") center 30%/cover; border: 1px solid rgba(255,255,255,.08); overflow: hidden;
}
.road .lane { position: absolute; left: 0; right: 0; bottom: 70px; height: 4px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.25) 0 40px, transparent 40px 80px); animation: lane 1.6s linear infinite; }
@keyframes lane { to { background-position: -80px 0; } }
.road .ground { position: absolute; left: 0; right: 0; bottom: 0; height: 110px; background: linear-gradient(180deg, #221B33, #17121F); }
.car { position: absolute; bottom: 82px; left: -180px; width: 170px; z-index: 3; }
.road.run .car { animation: drive 9s var(--ease) infinite; }
@keyframes drive {
  0% { left: -180px; } 30% { left: 26%; } 62% { left: 26%; } 100% { left: 115%; }
}
.gate { position: absolute; bottom: 110px; left: 62%; width: 16px; height: 70px; background: #3A2F4F; border-radius: 4px; z-index: 2; }
.gate .arm { position: absolute; top: 8px; left: 8px; width: 150px; height: 9px; background: repeating-linear-gradient(90deg, #fff 0 18px, #E0357A 18px 36px); border-radius: 5px; transform-origin: 0 50%; transform: rotate(0deg); }
.road.run .gate .arm { animation: arm 9s var(--ease) infinite; }
@keyframes arm { 0%, 50% { transform: rotate(0); } 56%, 78% { transform: rotate(-78deg); } 88%, 100% { transform: rotate(0); } }
.reader { position: absolute; bottom: 110px; left: 54%; width: 26px; height: 90px; background: #2E2540; border-radius: 6px; z-index: 2; }
.reader::before { content: ""; position: absolute; top: 8px; left: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); opacity: .3; }
.road.run .reader::before { animation: blink 9s infinite; }
@keyframes blink { 0%, 30% { opacity: .3; } 33%, 60% { opacity: 1; } 62%, 100% { opacity: .3; } }
.beam { position: absolute; bottom: 150px; left: calc(54% - 140px); width: 150px; height: 60px; background: linear-gradient(-90deg, rgba(0,216,232,.5), transparent); clip-path: polygon(100% 40%, 0 0, 0 100%, 100% 60%); opacity: 0; z-index: 1; }
.road.run .beam { animation: beam 9s infinite; }
@keyframes beam { 0%, 30% { opacity: 0; } 34%, 48% { opacity: 1; } 52%, 100% { opacity: 0; } }
.hud { position: absolute; top: 22px; left: 22px; right: 22px; display: flex; gap: 10px; flex-wrap: wrap; z-index: 4; }
.hud .chip { font-size: .76rem; font-weight: 700; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.5); display: flex; align-items: center; gap: 8px; transition: all .4s; }
.hud .chip i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.3); }
.hud .chip.on { color: #fff; border-color: rgba(0,216,232,.6); background: rgba(0,216,232,.12); }
.hud .chip.on i { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.hud .chip.ok.on { border-color: rgba(37,211,102,.7); background: rgba(37,211,102,.14); }
.hud .chip.ok.on i { background: var(--wa); box-shadow: 0 0 10px var(--wa); }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 16px; }
.steps li { counter-increment: s; display: flex; gap: 18px; padding: 18px 20px; border-radius: 16px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); transition: all .4s var(--ease); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: var(--purple-300); flex: none; width: 34px; }
.steps li.on { background: rgba(128,76,164,.18); border-color: rgba(176,138,209,.5); transform: translateX(8px); }
.steps b { display: block; font-family: var(--font-head); margin-bottom: 2px; }
.steps span { color: rgba(255,255,255,.66); font-size: .93rem; }

/* ---------- Comparison ---------- */
.compare-wrap { overflow-x: auto; border-radius: 24px; box-shadow: var(--shadow); background: #fff; border: 1px solid var(--line); }
.compare { width: 100%; border-collapse: collapse; min-width: 720px; }
.compare th, .compare td { padding: 18px 22px; text-align: center; border-bottom: 1px solid var(--line); font-size: .96rem; }
.compare th:first-child, .compare td:first-child { text-align: left; font-weight: 600; }
.compare thead th { font-family: var(--font-head); font-size: 1rem; background: var(--bg-soft); }
.compare thead th.k { background: var(--ink); color: #fff; position: relative; }
.compare thead th.k img { height: 26px; margin: 0 auto 4px; }
.compare td.k { background: rgba(128,76,164,.06); }
.compare tbody tr { transition: background .3s; }
.compare tbody tr:hover { background: #FBF9FD; }
.yes, .no, .part { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 800; }
.yes { background: #DDF7E9; color: #11804A; }
.no { background: #F3F1F6; color: #A49DB1; }
.part { background: #FFF1D6; color: #9A6300; font-size: .8rem; }
.compare-note { font-size: .82rem; color: var(--muted); margin-top: 14px; text-align: center; }

/* ---------- Apps ecosystem ---------- */
.eco { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.app-tile { background: #fff; border-radius: 22px; padding: 26px 22px; border: 1px solid var(--line); text-align: center; transition: transform .5s var(--ease), box-shadow .5s; position: relative; overflow: hidden; }
.app-tile:hover { transform: translateY(-10px) rotate(-1deg); box-shadow: var(--shadow); }
.app-tile .ai { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 14px 30px -12px rgba(128,76,164,.7); }
.app-tile .ai svg { width: 30px; height: 30px; }
.app-tile h4 { font-size: 1.05rem; margin-bottom: 6px; }
.app-tile p { font-size: .88rem; color: var(--muted); margin: 0; }
.store { display: flex; justify-content: center; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.store a { display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px; border-radius: 14px; background: var(--ink); color: #fff; transition: transform .35s var(--ease); }
.store a:hover { transform: translateY(-3px); }
.store svg { width: 26px; height: 26px; }
.store small { display: block; font-size: .68rem; opacity: .7; line-height: 1; }
.store b { font-size: 1rem; line-height: 1.2; }

/* ---------- Audience ---------- */
.aud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.aud-card { border-radius: 26px; overflow: hidden; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s; }
.aud-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.aud-card .im { height: 200px; overflow: hidden; }
.aud-card .im img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.aud-card:hover .im img { transform: scale(1.08); }
.aud-card .bd { padding: 26px; }
.aud-card h3 { font-size: 1.35rem; }
.aud-card ul { padding: 0; margin: 14px 0 0; list-style: none; display: grid; gap: 8px; }
.aud-card li { display: flex; gap: 10px; font-size: .95rem; color: var(--muted); }
.aud-card li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 9px; border-radius: 50%; background: var(--purple); }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.timeline::before { content: ""; position: absolute; top: 34px; left: 8%; right: 8%; height: 2px; background: rgba(255,255,255,.12); }
.timeline .bar { position: absolute; top: 34px; left: 8%; height: 2px; width: 0; background: var(--grad); transition: width 2.2s var(--ease); }
.timeline.in .bar { width: 84%; }
.tl { text-align: center; position: relative; }
.tl .dot { width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 50%; background: var(--ink-3); border: 2px solid rgba(255,255,255,.14); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; position: relative; z-index: 2; transition: all .6s var(--ease); transition-delay: var(--d); }
.timeline.in .tl .dot { background: var(--purple); border-color: var(--purple-300); box-shadow: 0 0 0 8px rgba(128,76,164,.18); }
.tl h4 { font-size: 1.05rem; }
.tl p { font-size: .9rem; color: rgba(255,255,255,.66); }
.impl-note { margin-top: 50px; text-align: center; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.impl-note span { padding: 10px 18px; border-radius: 99px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); font-size: .9rem; font-weight: 600; }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.why-img { position: relative; }
.why-img .main { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 1 / 1.05; }
.why-img .main img { width: 100%; height: 100%; object-fit: cover; }
.why-img .badge-exp { position: absolute; right: -24px; bottom: 40px; background: var(--ink); color: #fff; padding: 22px 26px; border-radius: 22px; box-shadow: var(--shadow-lg); }
.why-img .badge-exp .num { font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; line-height: 1; }
.why-img .badge-exp small { color: rgba(255,255,255,.7); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 28px; }
.why-item h4 { font-size: 1.08rem; display: flex; align-items: center; gap: 10px; }
.why-item h4 svg { width: 22px; height: 22px; color: var(--purple); }
.why-item p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 4px 24px; transition: box-shadow .4s, border-color .4s; }
.faq details[open] { box-shadow: var(--shadow); border-color: var(--purple-300); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--purple-100); color: var(--purple); font-size: 1.3rem; transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--purple); color: #fff; }
.faq .ans { color: var(--muted); padding-bottom: 20px; animation: fadeUp .5s var(--ease); }

/* ---------- Contact / Booking ---------- */
.booking { background: var(--ink); color: #fff; overflow: hidden; }
.booking .orb { opacity: .35; }
.book-grid { position: relative; z-index: 2; display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: start; }
.book-info h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 800; }
.book-info > p { color: rgba(255,255,255,.72); font-size: 1.08rem; }
.contact-cards { display: grid; gap: 14px; margin: 30px 0; }
.cc { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: all .4s var(--ease); }
a.cc:hover { background: rgba(255,255,255,.1); transform: translateX(6px); }
.cc .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.cc .ic svg { width: 22px; height: 22px; }
.cc small { display: block; color: rgba(255,255,255,.6); font-size: .78rem; }
.cc b { font-size: 1.02rem; }
.hours { font-size: .9rem; color: rgba(255,255,255,.65); }
.form-card { background: #fff; color: var(--text); border-radius: 28px; padding: 38px; box-shadow: 0 50px 120px -40px rgba(0,0,0,.7); position: relative; }
.form-card h3 { font-size: 1.5rem; margin-bottom: 4px; }
.form-card > p { color: var(--muted); font-size: .95rem; }
.stepper { display: flex; gap: 8px; margin: 18px 0 26px; }
.stepper span { flex: 1; height: 5px; border-radius: 5px; background: var(--line); position: relative; overflow: hidden; }
.stepper span::after { content: ""; position: absolute; inset: 0; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.stepper span.done::after { transform: scaleX(1); }
.fstep { display: none; }
.fstep.active { display: block; animation: panelIn .6s var(--ease); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, .field .lbl { font-size: .84rem; font-weight: 700; color: #3B3448; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--line); background: #FCFBFE; color: var(--text); transition: border-color .3s, box-shadow .3s; outline: none;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(128,76,164,.14); background: #fff; }
.field.err input, .field.err select { border-color: var(--magenta); }
.field .msg { font-size: .76rem; color: var(--magenta); min-height: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 14px; border-radius: 99px; border: 1.5px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--muted); transition: all .25s; user-select: none; }
.chips input:checked + span { background: var(--purple); border-color: var(--purple); color: #fff; }
.chips input:focus-visible + span { box-shadow: 0 0 0 3px rgba(128,76,164,.3); }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slots button { padding: 10px 6px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; font-size: .85rem; color: var(--text); transition: all .25s; }
.slots button:hover { border-color: var(--purple); color: var(--purple); }
.slots button.sel { background: var(--purple); color: #fff; border-color: var(--purple); }
.slots .empty { grid-column: 1 / -1; font-size: .85rem; color: var(--muted); padding: 10px; background: var(--bg-soft); border-radius: 10px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--muted); margin-top: 16px; }
.consent input { margin-top: 4px; accent-color: var(--purple); }
.consent a { color: var(--purple); text-decoration: underline; }
.form-actions { display: flex; gap: 12px; justify-content: space-between; margin-top: 26px; flex-wrap: wrap; }
.form-actions .btn { flex: 1; min-width: 160px; }
.hp { position: absolute; left: -9999px; }
.summary { background: var(--bg-soft); border-radius: 16px; padding: 18px 20px; font-size: .92rem; display: grid; gap: 6px; }
.summary div { display: flex; justify-content: space-between; gap: 16px; }
.summary span { color: var(--muted); }
.summary b { text-align: right; }
.form-status { margin-top: 14px; font-size: .9rem; font-weight: 600; }
.form-status.error { color: var(--magenta); }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Captcha */
.captcha { margin-top: 16px; padding: 16px; border-radius: 16px; background: var(--bg-soft); border: 1px dashed var(--purple-300); }
.captcha-row { display: grid; grid-template-columns: auto auto 1fr; gap: 10px; align-items: center; }
.captcha-row img { width: 165px; height: auto; border-radius: 10px; border: 1px solid var(--line); background: #fff; user-select: none; }
.cap-q { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; padding: 10px 16px; background: #fff; border-radius: 10px; border: 1px solid var(--line); }
.cap-refresh { width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--purple); cursor: pointer; display: grid; place-items: center; transition: transform .4s var(--ease), border-color .3s; }
.cap-refresh:hover { transform: rotate(180deg); border-color: var(--purple); }
.cap-refresh svg { width: 18px; height: 18px; }
.captcha-row input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 500; }
.captcha-row input { text-transform: uppercase; letter-spacing: .2em; font-weight: 700; min-width: 0; }
.cap-note { display: flex; gap: 6px; align-items: center; margin-top: 8px; font-size: .74rem; color: var(--muted); }
.cap-note svg { width: 14px; height: 14px; color: var(--purple); }
#turnstileBox { margin-top: 4px; }
@media (max-width: 680px) { .captcha-row { grid-template-columns: 1fr auto; } .captcha-row input { grid-column: 1 / -1; } .captcha-row img { width: 100%; max-width: 220px; } }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; background: rgba(12,9,19,.7); backdrop-filter: blur(6px); padding: 20px; }
.modal.open { display: grid; animation: fadeIn .4s; }
@keyframes fadeIn { from { opacity: 0; } }
.modal-box { background: #fff; border-radius: 28px; padding: 44px 36px; max-width: 460px; width: 100%; text-align: center; animation: pop .6s var(--ease); }
.check { width: 88px; height: 88px; margin: 0 auto 20px; }
.check circle { fill: none; stroke: var(--purple); stroke-width: 4; stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1s var(--ease) forwards; }
.check path { fill: none; stroke: var(--purple); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .6s var(--ease) .7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.modal-box h3 { font-size: 1.6rem; }
.modal-box p { color: var(--muted); }
.modal-actions { display: grid; gap: 10px; margin-top: 22px; }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 120px; background: var(--bg-soft); }
.cta-inner { position: relative; border-radius: 32px; overflow: hidden; padding: 70px 60px; background: var(--grad); color: #fff; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; box-shadow: var(--shadow-lg); }
.cta-inner::before { content: ""; position: absolute; inset: 0; background: url("../img/ciudad-inteligente.webp") center/cover; opacity: .12; mix-blend-mode: luminosity; }
.cta-inner > * { position: relative; }
.cta-inner h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 800; }
.cta-inner p { color: rgba(255,255,255,.88); font-size: 1.08rem; margin: 0; }
.cta-inner .btns { display: flex; flex-direction: column; gap: 12px; }
.cta-inner .btn-white { background: #fff; color: var(--purple); }
.cta-inner .btn-white:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -12px rgba(0,0,0,.4); }

/* ---------- Map ---------- */
.map-section { background: var(--ink); padding: 0 0 110px; }
.map-card { position: relative; border-radius: 28px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 50px 120px -40px rgba(0,0,0,.8); min-height: 440px; display: grid; }
.map-frame { grid-area: 1 / 1; width: 100%; height: 100%; min-height: 440px; border: 0; filter: saturate(.9) contrast(1.02); }
.map-info { grid-area: 1 / 1; align-self: center; justify-self: start; margin: 28px; width: min(400px, calc(100% - 56px)); background: rgba(255,255,255,.97); color: var(--text); border-radius: 22px; padding: 28px; box-shadow: var(--shadow-lg); position: relative; z-index: 2; }
.map-info h3 { font-size: 1.45rem; margin-bottom: 14px; }
.map-info p { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; color: var(--muted); margin-bottom: 10px; }
.map-info p svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--purple); }
.map-info a:not(.btn) { color: var(--purple); font-weight: 700; }
.map-btns { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.map-btns .btn { flex: 1; padding: .8em 1.1em; font-size: .92rem; }
@media (max-width: 680px) {
  .map-section { padding-bottom: 80px; }
  .map-card { display: block; min-height: 0; }
  .map-frame { height: 300px; min-height: 0; display: block; }
  .map-info { margin: 0; width: 100%; border-radius: 0; box-shadow: none; }
}

/* ---------- Footer ---------- */
.footer { background: #08060D; color: rgba(255,255,255,.7); padding: 80px 0 30px; font-size: .94rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h5 { font-family: var(--font-head); color: #fff; font-size: 1rem; margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.foot-brand img { height: 46px; margin-bottom: 16px; }
.foot-bottom { margin-top: 60px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .84rem; align-items: center; }
.foot-bottom img { height: 26px; opacity: .85; }

/* ---------- WhatsApp floating ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 150; display: flex; align-items: center; gap: 12px; }
.wa-btn { width: 62px; height: 62px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 34px -8px rgba(37,211,102,.7); position: relative; transition: transform .35s var(--ease); }
.wa-btn:hover { transform: scale(1.08); }
.wa-btn svg { width: 32px; height: 32px; }
.wa-btn::before, .wa-btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ring 2.4s ease-out infinite; }
.wa-btn::after { animation-delay: 1.2s; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
.wa-bubble { background: #fff; color: var(--text); padding: 12px 16px; border-radius: 16px 16px 4px 16px; box-shadow: var(--shadow); font-size: .88rem; font-weight: 600; max-width: 230px; opacity: 0; transform: translateX(20px) scale(.9); transition: all .5s var(--ease); pointer-events: none; position: relative; }
.wa-bubble.show { opacity: 1; transform: none; pointer-events: auto; }
.wa-bubble button { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer; font-size: .8rem; line-height: 1; }

/* Back to top */
.to-top { position: fixed; left: 22px; bottom: 22px; z-index: 140; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(20px); transition: all .4s var(--ease); }
.to-top.show { opacity: 1; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Legal page ---------- */
.legal-hero { background: var(--ink); color: #fff; padding: 150px 0 70px; }
.legal { max-width: 860px; margin: 0 auto; padding: 70px 0 110px; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal p, .legal li { color: #3B3448; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) { .nav-cta .btn-ghost { display: none; } }
@media (max-width: 1080px) {
  .nav-links, .nav-cta .btn-outline-l { display: none; }
  .burger { display: block; }
  .lang-switch { margin-left: auto; }
  .nav-cta { display: none; }
  .nav.open { background: rgba(12,9,19,.97); }
  .nav.open .nav-links { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: rgba(12,9,19,.97); padding: 10px 20px 26px; gap: 4px; }
  .nav.open .nav-links a { display: block; padding: 12px 0; font-size: 1.05rem; }
  .hero .container { grid-template-columns: 1fr; }
  .mock { height: 560px; max-width: 460px; margin: 0 auto; width: 100%; }
  .problem-grid, .panel, .flow, .why, .book-grid, .cta-inner { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .eco { grid-template-columns: repeat(3, 1fr); }
  .aud { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 26px; }
  .timeline::before, .timeline .bar { display: none; }
  .tl { display: grid; grid-template-columns: 68px 1fr; gap: 18px; text-align: left; align-items: start; }
  .tl .dot { margin: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .why-img .badge-exp { right: 16px; }
}
@media (max-width: 680px) {
  .section { padding: 84px 0; }
  .container { width: calc(100% - 32px); }
  .hero { padding-top: 110px; }
  .hero-ctas .btn { flex: 1; }
  .mock { height: 520px; transform: scale(.9); }
  .float-card { min-width: 0; font-size: .74rem; }
  .fc1 { left: -6px; } .fc2 { right: -6px; } .fc3 { left: 0; }
  .stats, .feat-list, .fgrid, .why-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .cell.w2 { grid-column: auto; }
  .cell.h2 { grid-row: auto; }
  .eco { grid-template-columns: 1fr 1fr; }
  .aud { grid-template-columns: 1fr; }
  .road { height: 300px; }
  .car { width: 130px; }
  .gate .arm { width: 110px; }
  .form-card { padding: 26px 20px; }
  .slots { grid-template-columns: repeat(3, 1fr); }
  .cta-inner { padding: 44px 26px; }
  .foot-grid { grid-template-columns: 1fr; }
  .wa-bubble { display: none; }
  .tabs .tab { padding: 12px 16px; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
