/* =========================================================
   AvanTI — Desarrollamos soluciones
   Paleta y tipografía: cambia aquí los colores de tu marca
   ========================================================= */
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #0b0a1c;
  --bg-2: #110f27;
  --surface: rgba(255, 255, 255, .04);
  --surface-2: rgba(255, 255, 255, .07);
  --border: rgba(255, 255, 255, .09);
  --text: #eeeef6;
  --muted: #a3a1c4;
  --brand-1: #7c74f0;   /* índigo AvanTI (versión luminosa) */
  --brand-2: #4fe3f0;   /* cian complementario */
  --accent: #5ff0dc;    /* aqua (botones principales) */
  --brand-ink: #403f7a; /* índigo exacto del logo */
  --pink: #f472b6;
  --grad: linear-gradient(120deg, var(--brand-1), var(--brand-2));
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1240px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
address { font-style: normal; }
::selection { background: var(--brand-1); color: #fff; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 1000; background: var(--accent); color: #000; padding: 10px 16px; border-radius: 10px; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }

/* Ruido sutil sobre todo el sitio */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 999; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.grad-text { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 2000; background: var(--bg); display: grid; place-items: center; animation: loaderOut .5s 4s forwards; }
@keyframes loaderOut { to { opacity: 0; visibility: hidden; } }
.loader__logo { display: grid; justify-items: center; gap: 18px; }
.loader__mark { width: 72px; height: 72px; border-radius: 18px; animation: spinIn 1.2s var(--ease) both; }
.loader__bar { width: 140px; height: 3px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 40%; background: var(--grad); animation: load 1s ease-in-out infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@keyframes spinIn { from { transform: rotate(-90deg) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Cursor ---------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 1500; display: none; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor__dot { width: 6px; height: 6px; background: var(--accent); }
.cursor__ring { width: 38px; height: 38px; border: 1.5px solid rgba(255,255,255,.35); transition: width .25s var(--ease), height .25s var(--ease), background .25s, border-color .25s; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; background: rgba(95,240,220,.08); border-color: var(--accent); }

/* ---------- Botones ---------- */
.btn {
  --pad: 16px 26px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad); border-radius: 999px; font-weight: 600; font-size: 16px; line-height: 1;
  transition: transform .3s var(--ease), background .3s, box-shadow .3s, color .3s; white-space: nowrap;
}
.btn--sm { --pad: 12px 20px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--accent); color: #0b0a1c; box-shadow: 0 10px 30px -10px rgba(95,240,220,.55); }
.btn--primary:hover { box-shadow: 0 16px 40px -10px rgba(95,240,220,.75); }
.btn--ghost { border: 1px solid var(--border); background: var(--surface); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: var(--surface-2); border-color: rgba(255,255,255,.2); }
.btn--whatsapp { background: #25d366; color: #052e16; margin-top: 28px; }
.btn__arrow { transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 100; transition: background .4s, backdrop-filter .4s, border-color .4s, transform .4s var(--ease); border-bottom: 1px solid transparent; }
.header.is-scrolled { background: rgba(11,10,28,.72); backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--border); }
.header.is-hidden { transform: translateY(-100%); }
.nav { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__logo { height: 38px; width: auto; }
.footer .brand__logo { height: 96px; }
.nav__links { display: flex; gap: 6px; margin-left: auto; }
.nav__cta { transition: box-shadow .3s; }
.nav__links a { padding: 8px 14px; border-radius: 999px; font-size: 15px; color: var(--muted); transition: color .2s, background .2s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); background: var(--surface-2); }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); position: relative; margin-left: auto; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), top .3s; }
.nav__burger span:first-child { top: 17px; } .nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.mobile-menu { background: rgba(11,10,28,.97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); padding: 12px 20px 28px; }
.mobile-menu a { display: block; padding: 14px 4px; font-family: var(--font-display); font-size: 26px; border-bottom: 1px solid var(--border); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 90px; overflow: hidden; isolation: isolate; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__glow { position: absolute; z-index: -2; width: 900px; height: 900px; right: -200px; top: -250px; background: radial-gradient(closest-side, rgba(124,116,240,.35), transparent 70%); filter: blur(20px); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(transparent 60%, var(--bg)), linear-gradient(90deg, var(--bg) 0%, rgba(11,10,28,.5) 45%, transparent 70%); }
.hero__inner { display: grid; grid-template-columns: 1.25fr .85fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 20px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(95,240,220,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(95,240,220,0); } 100% { box-shadow: 0 0 0 0 rgba(95,240,220,0); } }
.hero__title { font-size: clamp(40px, 5.2vw, 78px); font-weight: 700; letter-spacing: -.045em; line-height: .98; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; white-space: nowrap; }
@media (max-width: 480px) { .hero__title .line { white-space: normal; } }
.hero__title .line > span { display: inline-block; }
.hero__small { font-size: .42em; letter-spacing: -.02em; font-weight: 500; color: var(--muted); display: inline-block; margin-top: .5em; }
.typed { color: var(--text); border-right: 2px solid var(--accent); padding-right: 4px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { border-color: transparent; } }
.hero__lead { margin-top: 28px; max-width: 560px; font-size: 19px; color: var(--muted); }
.hero__lead strong { color: var(--text); font-weight: 600; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; font-size: 14px; color: var(--muted); }
.check { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(95,240,220,.14); color: var(--accent); font-size: 12px; margin-right: 6px; }

.hero__visual { position: relative; }
.dash { position: relative; border-radius: var(--radius); background: linear-gradient(160deg, rgba(23,23,40,.92), rgba(12,12,22,.92)); border: 1px solid var(--border); box-shadow: 0 40px 100px -30px rgba(124,116,240,.5), inset 0 1px 0 rgba(255,255,255,.06); overflow: hidden; transform-style: preserve-3d; }
.dash__top { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.dots { display: flex; gap: 6px; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; } .dots i:nth-child(2) { background: #febc2e; } .dots i:nth-child(3) { background: #28c840; }
.dash__url { flex: 1; text-align: center; background: var(--surface); border-radius: 8px; padding: 4px 10px; }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
.dash__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; display: grid; gap: 4px; }
.kpi__label { font-size: 13px; color: var(--muted); }
.kpi__value { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi__trend { font-size: 12px; font-weight: 600; } .kpi__trend.up { color: var(--accent); }
.chart { grid-column: 1 / -1; height: 120px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 0 0; overflow: hidden; }
.chart svg { width: 100%; height: 100%; }
.chart__line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.4s .8s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.feed { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; }
.feed li { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.feed li.is-new { animation: feedIn .6s var(--ease); }
@keyframes feedIn { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.feed time { margin-left: auto; color: var(--muted); font-size: 12px; }
.tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; }
.tag--pay { background: rgba(79,227,240,.15); color: var(--brand-2); }
.tag--ai { background: rgba(124,116,240,.2); color: #b3a2ff; }
.tag--sec { background: rgba(95,240,220,.14); color: var(--accent); }

.float-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: rgba(20,20,34,.85); backdrop-filter: blur(12px); border: 1px solid var(--border); box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); font-size: 14px; animation: float 6s ease-in-out infinite; }
.float-card small { display: block; color: var(--muted); font-size: 12px; }
.float-card__icon { font-size: 22px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); }
.float-card--a { left: -50px; bottom: 60px; }
.float-card--b { right: -24px; top: -26px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-12px); } }

.scroll-hint { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; border-radius: 20px; border: 1.5px solid rgba(255,255,255,.3); transform: translateX(-50%); }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 2px; background: var(--text); transform: translateX(-50%); animation: scrollHint 1.8s infinite; }
@keyframes scrollHint { 80%, 100% { transform: translate(-50%, 14px); opacity: 0; } }

/* ---------- Marquesina ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--border); background: var(--bg-2); padding: 22px 0; }
.marquee__track { display: flex; width: max-content; gap: 34px; align-items: center; animation: marquee 38s linear infinite; font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.marquee__track i { color: var(--accent); font-style: normal; font-size: .7em; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.section--alt { background: var(--bg-2); }
.section__head { max-width: 780px; margin-bottom: clamp(44px, 6vw, 72px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__head--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section__title { font-size: clamp(34px, 4.6vw, 62px); font-weight: 700; letter-spacing: -.04em; }
.section__lead { margin-top: 20px; font-size: 18.5px; color: var(--muted); max-width: 640px; }
.section__head--center .section__lead { margin-inline: auto; }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { position: relative; padding: 34px 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; transition: border-color .4s, background .4s; transform-style: preserve-3d; }
.service-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(124,116,240,.18), transparent 50%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.service-card:hover { border-color: rgba(124,116,240,.45); }
.service-card:hover::before { opacity: 1; }
.service-card--featured { background: linear-gradient(160deg, rgba(124,116,240,.18), rgba(79,227,240,.06)); border-color: rgba(124,116,240,.4); }
.service-card__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); margin-bottom: 26px; box-shadow: 0 10px 30px -10px rgba(124,116,240,.7); transform: translateZ(30px); }
.service-card__icon svg { width: 26px; height: 26px; fill: none; stroke: #0b0a1c; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { font-size: 23px; margin-bottom: 12px; transform: translateZ(20px); }
.service-card p { color: var(--muted); font-size: 16px; }
.badge { position: absolute; top: 22px; right: 22px; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: #0b0a1c; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px !important; }
.pills li { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: #cfcfe0; }

/* ---------- Stats ---------- */
.stats { padding: 60px 0; border-block: 1px solid var(--border); background: radial-gradient(800px 200px at 50% 0%, rgba(124,116,240,.12), transparent); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { display: grid; gap: 6px; text-align: center; }
.stat strong { font-family: var(--font-display); font-size: clamp(42px, 5vw, 68px); font-weight: 700; letter-spacing: -.04em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat > span { color: var(--muted); font-size: 15px; }

/* ---------- IA + Seguridad ---------- */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.tabs { display: inline-flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); margin: 34px 0 26px; }
.tab { padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--muted); transition: background .3s, color .3s; }
.tab.is-active { background: var(--text); color: var(--bg); }
.feature-list { display: grid; gap: 14px; }
.feature-list li { position: relative; padding-left: 34px; color: var(--muted); }
.feature-list li::before { content: "→"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }
.feature-list b { color: var(--text); font-weight: 600; }
.tab-panel.is-active { animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }

.chat-demo { border-radius: var(--radius); background: #0b141a; border: 1px solid var(--border); overflow: hidden; box-shadow: 0 40px 90px -30px rgba(79,227,240,.35); max-width: 460px; justify-self: center; width: 100%; }
.chat-demo__head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #1f2c33; }
.chat-demo__head b { font-size: 15px; } .chat-demo__head small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #8696a0; }
.online { width: 7px; height: 7px; border-radius: 50%; background: #25d366; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #0b0a1c; font-weight: 700; font-family: var(--font-display); }
.chat-demo__body { height: 380px; padding: 18px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.025) 1px, transparent 1px) 0 0/22px 22px; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 12px; font-size: 14.5px; line-height: 1.45; animation: msgIn .4s var(--ease); }
.msg--in { align-self: flex-start; background: #202c33; border-top-left-radius: 4px; }
.msg--out { align-self: flex-end; background: #005c4b; border-top-right-radius: 4px; }
.msg small { display: block; text-align: right; font-size: 10.5px; color: rgba(255,255,255,.5); margin-top: 2px; }
.msg--typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: #8696a0; animation: blink 1.2s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .2s; } .msg--typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.chat-demo__input { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #1f2c33; }
.chat-demo__input span { flex: 1; background: #2a3942; border-radius: 20px; padding: 9px 14px; color: #8696a0; font-size: 14px; }
.chat-demo__input button { width: 40px; height: 40px; border-radius: 50%; background: #00a884; color: #fff; }

/* ---------- Método / timeline ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.timeline::before { z-index: 0; content: ""; position: absolute; left: 0; right: 0; top: 33px; height: 2px; background: var(--border); }
.timeline::after { z-index: 0; content: ""; position: absolute; left: 0; top: 33px; height: 2px; width: var(--progress, 0%); background: var(--grad); box-shadow: 0 0 20px var(--brand-1); }
.step { position: relative; z-index: 1; }
.step__num { position: relative; z-index: 1; display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; background: var(--bg); border: 2px solid var(--border); font-family: var(--font-display); font-size: 20px; font-weight: 700; transition: border-color .4s, background .4s, color .4s; }
.step.is-on .step__num { border-color: transparent; background: var(--grad); color: #0b0a1c; }
.step__time { display: inline-block; margin: 22px 0 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.step h3 { font-size: 24px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 16px; }

/* ---------- Configurador ---------- */
.configurator { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.configurator__box { padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 15px; font-weight: 500; cursor: pointer; transition: all .25s var(--ease); user-select: none; }
.chip span:hover { border-color: rgba(255,255,255,.25); transform: translateY(-2px); }
.chip input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip input:focus-visible + span { outline: 2px solid var(--brand-2); outline-offset: 3px; }
.estimate { display: flex; align-items: center; gap: 30px; margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--border); }
.estimate__ring { position: relative; width: 150px; height: 150px; flex: none; }
.estimate__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--surface-2); stroke-width: 10; }
.ring-fg { fill: none; stroke: url(#grad-brand); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset .8s var(--ease); }
.estimate__value { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.estimate__value strong { font-family: var(--font-display); font-size: 44px; line-height: 1; }
.estimate__value span { font-size: 13px; color: var(--muted); }
.estimate__text p { font-size: 18px; } .estimate__text small { display: block; margin: 6px 0 20px; color: var(--muted); }

/* ---------- Proyectos ---------- */
.swiper-nav { display: flex; gap: 10px; }
.swiper-btn { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); font-size: 20px; transition: background .3s, color .3s; }
.swiper-btn:hover { background: var(--text); color: var(--bg); }
.projects { padding-left: max(20px, calc((100vw - var(--container)) / 2)) !important; padding-right: 20px !important; }
.project { width: 400px !important; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); transition: transform .4s var(--ease); }
.project:hover { transform: translateY(-8px); }
.project__art { position: relative; height: 240px; display: grid; place-items: center; background: linear-gradient(135deg, var(--c1), var(--c2)); overflow: hidden; }
.project__art::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 2px, transparent 2px 18px); }
.project__art::after { content: ""; position: absolute; width: 70%; height: 70%; border-radius: 18px; background: rgba(11,10,28,.35); backdrop-filter: blur(4px); bottom: -20%; transform: rotate(-6deg); border: 1px solid rgba(255,255,255,.25); transition: transform .5s var(--ease); }
.project:hover .project__art::after { transform: rotate(0) translateY(-14px); }
.project__art span { position: relative; z-index: 1; font-size: 72px; filter: drop-shadow(0 12px 20px rgba(0,0,0,.35)); transition: transform .5s var(--ease); }
.project:hover .project__art span { transform: scale(1.12) rotate(-6deg); }
.project__body { padding: 26px; }
.project__cat { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-2); }
.project h3 { font-size: 26px; margin: 8px 0 10px; }
.project p { color: var(--muted); font-size: 15.5px; }

/* ---------- Clientes ---------- */
.clients { padding: 70px 0 80px; }
.clients__title { text-align: center; font-family: var(--font-body); font-size: 15px; font-weight: 500; letter-spacing: .04em; color: var(--muted); margin-bottom: 30px; }
.marquee--clients { border: 0; background: none; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marquee--clients .marquee__track { gap: 60px; animation-duration: 45s; animation-direction: reverse; font-size: clamp(20px, 2.2vw, 28px); color: #6f6f88; }
.marquee--clients li { transition: color .3s; } .marquee--clients li:hover { color: var(--text); }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bento__item { padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.bento__item--wide { grid-column: span 2; }
.bento__item--accent { background: linear-gradient(130deg, rgba(95,240,220,.14), rgba(79,227,240,.08)); border-color: rgba(95,240,220,.3); }
.bento__item h3 { font-size: 24px; margin-bottom: 10px; }
.bento__item p { color: var(--muted); }
.speed-bar { margin-top: 26px; height: 10px; border-radius: 10px; background: var(--surface-2); overflow: hidden; }
.speed-bar span { display: block; height: 100%; width: 0; border-radius: 10px; background: linear-gradient(90deg, var(--brand-1), var(--brand-2), var(--accent)); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h) + 30px); }
.faq__head .btn { margin-top: 30px; }
.faq__list { display: grid; gap: 12px; }
.faq__item { border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); transition: border-color .3s, background .3s; }
.faq__item[open] { border-color: rgba(124,116,240,.45); background: var(--surface-2); }
.faq__item summary { list-style: none; cursor: pointer; padding: 22px 60px 22px 24px; position: relative; font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 20px; transition: transform .3s var(--ease), background .3s; }
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--accent); color: #000; }
.faq__item p { padding: 0 24px 24px; color: var(--muted); }

/* ---------- Contacto ---------- */
.contact { overflow: hidden; }
.contact__glow { position: absolute; width: 800px; height: 800px; left: -300px; bottom: -400px; background: radial-gradient(closest-side, rgba(79,227,240,.18), transparent); pointer-events: none; }
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact__list { display: grid; gap: 18px; margin-top: 36px !important; }
.contact__list li { display: flex; align-items: center; gap: 16px; }
.contact__list small { display: block; color: var(--muted); font-size: 13px; }
.contact__list a, .contact__list address { font-size: 18px; font-weight: 500; }
.contact__list a:hover { color: var(--accent); }
.contact__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); font-size: 22px; flex: none; }

.form { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: rgba(255,255,255,.035); border: 1px solid var(--border); backdrop-filter: blur(12px); display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { position: relative; }
.field input, .field textarea, .field select { width: 100%; padding: 26px 18px 10px; border-radius: 14px; border: 1px solid var(--border); background: rgba(11,10,28,.6); color: var(--text); font: inherit; font-size: 16px; transition: border-color .25s, box-shadow .25s; appearance: none; }
.field select { padding-top: 26px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { background: var(--bg-2); }
.field textarea { resize: vertical; min-height: 130px; }
.field label { position: absolute; left: 18px; top: 18px; color: var(--muted); font-size: 16px; pointer-events: none; transition: all .2s var(--ease); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand-1); box-shadow: 0 0 0 4px rgba(124,116,240,.18); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label, .label--static { top: 8px !important; font-size: 12px !important; color: var(--brand-2) !important; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--pink); }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); }
.consent input { accent-color: var(--accent); width: 18px; height: 18px; margin-top: 2px; }
.consent a { color: var(--text); text-decoration: underline; }
.form__status { min-height: 1.5em; font-size: 15px; text-align: center; }
.form__status.ok { color: var(--accent); } .form__status.err { color: var(--pink); }
.form.is-sending button[type="submit"] { opacity: .7; pointer-events: none; }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; border-top: 1px solid var(--border); padding-top: 80px; background: var(--bg-2); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand p b { color: var(--text); }
.footer__brand p { margin-top: 18px; color: var(--muted); max-width: 320px; font-size: 15px; }
.footer__col h3 { font-family: var(--font-body); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer__col li { margin-bottom: 10px; font-size: 15px; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 60px; padding: 26px 0; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.to-top:hover { color: var(--text); }
.footer__giant { font-family: var(--font-display); font-weight: 700; font-size: clamp(120px, 26vw, 380px); letter-spacing: -.07em; line-height: .75; text-align: center; background: linear-gradient(180deg, rgba(255,255,255,.08), transparent 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; margin-top: 10px; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37,211,102,.7); transition: transform .3s var(--ease); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ring 2.4s infinite; }
@keyframes ring { to { transform: scale(1.6); opacity: 0; } }

/* ---------- Animaciones de entrada (las controla GSAP) ---------- */
.js .reveal-up { opacity: 0; transform: translateY(30px); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; margin-top: 20px; }
  .float-card--a { left: -10px; } .float-card--b { right: -6px; }
  .services, .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__item--wide { grid-column: span 2; }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
  .timeline::before, .timeline::after { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .split-grid, .configurator, .faq, .contact__grid { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .services, .bento, .timeline { grid-template-columns: 1fr; }
  .bento__item--wide { grid-column: auto; }
  .form__row { grid-template-columns: 1fr; }
  .estimate { flex-direction: column; text-align: center; }
  .project { width: 300px !important; }
  .project__art { height: 190px; }
  .float-card { display: none; }
  .hero__lead { font-size: 17px; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .configurator__box { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal-up { opacity: 1; transform: none; }
}
