/* ==========================================================================
   Pablo Tech · app shell
   Barra lateral flotante desplegable, vistas tipo app, modo claro/oscuro
   ========================================================================== */
:root {
  --bg: #f2f3f6;
  --surface: #ffffff;
  --surface-2: #f6f7f9;
  --ink: #0f1115;
  --ink-2: #3b404b;
  --muted: #6b7280;
  --line: rgba(15, 17, 21, .08);
  --rail: #181A1B;
  --rail-2: #292B2F;
  --rail-ink: #e9ebf0;
  --rail-muted: #8a909c;
  --accent: #0366FF;
  --accent-2: #BCFF5E;
  --grad: linear-gradient(135deg, #0366FF 0%, #BCFF5E 100%);
  --ok: #22c55e;
  --shadow: 0 1px 2px rgba(15,17,21,.04), 0 8px 24px rgba(15,17,21,.06);
  --shadow-lg: 0 24px 60px rgba(15,17,21,.16);
  --r: 22px;
  --rail-w: 264px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #08090c;
  --surface: #111318;
  --surface-2: #161a21;
  --ink: #eef0f4;
  --ink-2: #c3c8d2;
  --muted: #8d93a1;
  --line: rgba(255, 255, 255, .07);
  --rail: #0d1015;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background .3s, color .3s; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
h1, h2, h3 { margin: 0; letter-spacing: -.025em; }
p { line-height: 1.6; }
kbd { font: 600 .7rem var(--font); padding: 3px 6px; border-radius: 6px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); color: var(--rail-muted); }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border-radius: 14px; font-weight: 700; font-size: .94rem; white-space: nowrap; transition: transform .2s var(--ease), box-shadow .25s, background .25s, color .25s; position: relative; overflow: hidden; }
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(.97); }
.btn.sm { padding: 9px 14px; font-size: .85rem; border-radius: 12px; }
.btn.wide { width: 100%; }
.btn-accent { background: var(--grad); color: #181A1B; box-shadow: 0 10px 24px rgba(3,102,255,.3); }
.btn-accent:hover { box-shadow: 0 14px 32px rgba(3,102,255,.45); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { box-shadow: var(--shadow-lg); }
.btn-glass { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255,255,255,.14); }
.btn-soft { background: var(--surface-2); border: 1px solid var(--line); }
.btn-soft:hover { border-color: var(--accent); }
.btn-wa { background: #25d366; color: #052e16; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .88rem; color: var(--accent); }
.link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link:hover svg { transform: translateX(3px); }
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .2; transform: scale(0); animation: ripple .6s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(2.8); opacity: 0; } }

/* ---------- shell ---------- */
.shell { min-height: 100vh; }
.shell.collapsed { --rail-w: 84px; }

/* ---------- barra lateral flotante ---------- */
.rail {
  position: fixed; z-index: 40; left: 14px; top: 14px; bottom: 14px; width: var(--rail-w);
  background: var(--rail); color: var(--rail-ink); border-radius: 26px; padding: 14px 12px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,.22), inset 0 0 0 1px rgba(255,255,255,.05);
  transition: width .5s var(--ease), transform .45s var(--ease);
}
.rail::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(120% 50% at 0% 0%, rgba(3,102,255,.16), transparent 60%); }
.lbl { white-space: nowrap; transition: opacity .25s .12s, transform .35s var(--ease); }
.shell.collapsed .rail .lbl { opacity: 0; transform: translateX(-6px); pointer-events: none; transition-delay: 0s; }

.rail-top { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 4px 0 6px; }
.brand { display: flex; align-items: center; gap: 12px; overflow: hidden; }
.brand-mark { width: 40px; height: 40px; border-radius: 13px; background: var(--grad); display: grid; place-items: center; color: #181A1B; font-weight: 800; font-size: 1.2rem; flex: none; box-shadow: 0 8px 20px rgba(3,102,255,.35); }
.brand-name { font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; }
.brand-name b { color: var(--accent); font-weight: 800; }
.collapse {
  position: absolute; right: -14px; top: 26px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow), 0 0 0 1px var(--line); transition: transform .5s var(--ease), background .2s;
}
.collapse svg { width: 16px; height: 16px; stroke-width: 2.5; }
.collapse:hover { background: var(--accent); color: #fff; }
.shell.collapsed .collapse { transform: rotate(180deg); }

.search-pill {
  display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 12px 0 19px; border-radius: 14px; overflow: hidden;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.07); color: var(--rail-muted); text-align: left; transition: background .2s, border-color .2s;
}
.search-pill:hover { background: rgba(255,255,255,.1); border-color: rgba(3,102,255,.4); color: var(--rail-ink); }
.search-pill .lbl:first-of-type { flex: 1; font-size: .9rem; }

.rail-nav { position: relative; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; flex: 1; margin: 2px 0; }
.rail-nav .grp { margin: 14px 0 6px; padding-left: 20px; height: 14px; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #5d6370; position: relative; }
.shell.collapsed .rail-nav .grp::before { content: ""; position: absolute; left: 22px; right: 22px; top: 6px; height: 1px; background: rgba(255,255,255,.1); }
.rail-nav a {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 12px 0 19px; border-radius: 14px; overflow: hidden;
  color: var(--rail-muted); font-weight: 600; font-size: .93rem; transition: color .25s;
}
.rail-nav a svg { width: 22px; height: 22px; transition: transform .3s var(--ease); }
.rail-nav a:hover { color: var(--rail-ink); }
.rail-nav a:hover svg { transform: scale(1.1); }
.rail-nav a.active { color: #fff; }
.rail-nav a.active svg { color: var(--accent); }
.indicator { position: absolute; z-index: 0; left: 0; right: 0; top: 0; height: 46px; border-radius: 14px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); transition: transform .45s var(--ease), opacity .3s; pointer-events: none; opacity: 0; }
.indicator::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); }
.badge { margin-left: auto; font-size: .64rem; font-weight: 800; padding: 3px 7px; border-radius: 99px; background: rgba(3,102,255,.16); color: var(--accent-2); }
.dot-live { position: absolute; left: 36px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px var(--rail), 0 0 10px var(--ok); }

.rail-bottom { display: flex; flex-direction: column; gap: 4px; }
.promo { position: relative; overflow: hidden; padding: 16px; border-radius: 18px; margin-bottom: 6px; background: linear-gradient(160deg, rgba(3,102,255,.18), rgba(255,255,255,.04)); border: 1px solid rgba(3,102,255,.22); transition: opacity .3s, max-height .45s var(--ease), padding .45s, margin .45s; max-height: 220px; }
.promo b { display: block; margin: 10px 0 4px; }
.promo p { margin: 0 0 12px; font-size: .8rem; color: var(--rail-muted); line-height: 1.45; }
.shell.collapsed .promo { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin: 0; border-width: 0; }
.rail-link { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 12px 0 19px; border-radius: 14px; color: var(--rail-muted); font-weight: 600; font-size: .9rem; overflow: hidden; transition: background .2s, color .2s; }
.rail-link:hover { background: rgba(255,255,255,.06); color: var(--rail-ink); }
.rail-link svg { width: 22px; height: 22px; }
.ic-sun { display: none; }
[data-theme="dark"] .ic-sun { display: block; }
[data-theme="dark"] .ic-moon { display: none; }

.tip { position: fixed; z-index: 90; padding: 7px 11px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: .8rem; font-weight: 700; pointer-events: none; white-space: nowrap; opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .2s var(--ease); box-shadow: var(--shadow-lg); }
.tip.show { opacity: 1; transform: none; }
.tip::before { content: ""; position: absolute; left: -4px; top: 50%; width: 8px; height: 8px; background: inherit; transform: translateY(-50%) rotate(45deg); border-radius: 2px; }

/* ---------- escenario ---------- */
.stage { margin-left: calc(var(--rail-w) + 28px); padding: 14px 22px 30px 0; min-height: 100vh; transition: margin-left .5s var(--ease); min-width: 0; }
.topbar {
  position: sticky; top: 14px; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 64px; padding: 0 12px 0 20px; margin-bottom: 18px; border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; }
.crumb-app { color: var(--muted); font-weight: 600; font-size: .9rem; }
.crumbs svg { width: 14px; height: 14px; transform: rotate(180deg); color: var(--muted); }
.crumbs h1 { font-size: 1.05rem; font-weight: 800; white-space: nowrap; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.chip-dolar { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.chip-dolar svg { width: 15px; height: 15px; color: var(--ok); }
.chip-dolar b { color: var(--ink); }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.icon-btn:hover { border-color: var(--accent); transform: translateY(-1px); }

/* ---------- vistas ---------- */
.view[hidden] { display: none; }
.view-head { margin: 8px 4px 24px; max-width: 760px; }
.view-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 6px 0 10px; }
.view-head p { color: var(--muted); margin: 0; font-size: 1.02rem; }
.eyebrow { font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); isolation: isolate; }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(3,102,255,.09), transparent 45%); pointer-events: none; }
.card:hover::after { opacity: 1; }
.sec-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 4px 14px; }
.sec-row h3 { font-size: 1.15rem; }
.ki { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 13%, transparent); flex: none; }
.ki svg { width: 22px; height: 22px; }

/* aparición escalonada */
.rv { opacity: 0; transform: translateY(18px) scale(.985); }
.view.enter .rv { animation: rv .7s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rv { to { opacity: 1; transform: none; } }
.tilt { transition: transform .3s var(--ease), box-shadow .3s; transform-style: preserve-3d; }
.tilt:hover { box-shadow: var(--shadow-lg); }

/* transiciones entre vistas */
::view-transition-old(stage), ::view-transition-new(stage) { animation-duration: .42s; animation-timing-function: var(--ease); }
::view-transition-old(stage) { animation-name: vt-out; }
::view-transition-new(stage) { animation-name: vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); filter: blur(6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } }
.views-wrap { view-transition-name: stage; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------- inicio ---------- */
.home-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; }
.hero-card { position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; padding: clamp(26px, 3.4vw, 42px); min-height: 400px; background: #181A1B; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: var(--shadow-lg); }
.hero-card .glow { position: absolute; z-index: -1; width: 560px; height: 560px; right: -160px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(3,102,255,.55), rgba(3,102,255,0) 60%); filter: blur(10px); animation: drift 12s ease-in-out infinite alternate; }
.hero-card .glow::after { content: ""; position: absolute; width: 380px; height: 380px; left: -320px; top: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(188,255,94,.28), transparent 62%); }
@keyframes drift { to { transform: translate(-60px, 40px) scale(1.12); } }
.gridlines { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 70% 20%, #000 10%, transparent 70%); }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); font-size: .8rem; font-weight: 600; color: #BCFF5E; margin-bottom: auto; }
.live, .dot-ok { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(34,197,94,.7); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.hero-card h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.05; margin: 60px 0 14px; max-width: 640px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-card p { color: #b4bac6; max-width: 560px; margin: 0 0 24px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.cta.center { justify-content: center; }
.hero-mini { position: absolute; right: 26px; top: 30px; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.mini-card { padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: .8rem; min-width: 190px; animation: bob 6s ease-in-out infinite alternate; box-shadow: 0 16px 40px rgba(0,0,0,.25); }
.mini-card span { display: block; color: #9aa1ae; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.mini-card b { display: block; font-size: .98rem; margin: 3px 0 1px; }
.mini-card small { color: #b4bac6; }
.mini-card.m2 { animation-delay: -2s; margin-right: 28px; }
.mini-card.m3 { animation-delay: -4s; display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 700; }
@keyframes bob { to { transform: translateY(-8px); } }
@media (max-width: 1280px) { .hero-mini { display: none; } }

.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.kpi { padding: 20px; display: flex; flex-direction: column; gap: 6px; justify-content: flex-end; }
.kpi .ki { margin-bottom: auto; }
.kpi b { font-size: 2rem; letter-spacing: -.04em; margin-top: 16px; }
.kpi small { color: var(--muted); font-weight: 600; font-size: .84rem; }

.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.qtile { display: flex; flex-direction: column; gap: 12px; padding: 18px; text-align: left; }
.qtile b { font-size: .98rem; }
.qtile small { color: var(--muted); font-weight: 600; font-size: .8rem; }
.qtile .go { margin-top: auto; display: flex; justify-content: space-between; align-items: center; color: var(--accent); font-weight: 700; font-size: .82rem; }
.qtile .go svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.qtile:hover .go svg { transform: translateX(4px); }

.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; margin-top: 16px; }
.ai-card { padding: 26px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.ai-card h3 { font-size: 1.3rem; line-height: 1.25; }
.ai-card .btn { align-self: flex-start; margin-top: 4px; }
.chat-demo { display: flex; flex-direction: column; gap: 8px; font-size: .88rem; }
.chat-demo p { margin: 0; padding: 10px 13px; border-radius: 16px; max-width: 90%; line-height: 1.45; }
.chat-demo .u { align-self: flex-end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 4px; }
.chat-demo .b { background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.feat-card { padding: 22px; }
.feat-card .sec-row { margin: 0 0 14px; }
.feat { display: grid; gap: 10px; }
.feat-item { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 16px; transition: background .2s; }
.feat-item:hover { background: var(--surface-2); }
.feat-item img, .feat-item .ph { width: 84px; height: 60px; border-radius: 12px; object-fit: cover; flex: none; background: var(--surface-2); }
.feat-item b { display: block; font-size: .95rem; }
.feat-item small { color: var(--muted); font-weight: 600; font-size: .78rem; }
.feat-item svg { margin-left: auto; color: var(--muted); width: 18px; height: 18px; }

/* orbe de IA */
.orb { position: relative; display: inline-block; width: 46px; height: 46px; border-radius: 50%; flex: none; }
.orb i { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, #0366FF, #BCFF5E, #6be3ff, #0366FF, #0366FF); animation: spin 5s linear infinite; box-shadow: 0 8px 24px rgba(3,102,255,.35); }
.orb::before { content: ""; position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(circle, rgba(3,102,255,.35), transparent 65%); animation: breathe 3s ease-in-out infinite; }
.orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.75), transparent 34%); }
.orb.sm { width: 34px; height: 34px; }
.orb.big { width: 96px; height: 96px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.2); opacity: .6; } }

/* ---------- servicios ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.svc { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.svc h3 { font-size: 1.1rem; margin-top: 6px; }
.svc p { color: var(--muted); margin: 0; font-size: .9rem; }
.svc ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.svc li { display: flex; gap: 8px; }
.svc li::before { content: "✓"; color: var(--accent); font-weight: 800; }
.svc .price-tag { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.svc .price-tag small { display: block; color: var(--muted); font-size: .74rem; font-weight: 700; }
.svc .price-tag b { font-size: 1.25rem; letter-spacing: -.02em; }
.svc .price-tag .ars { display: block; color: var(--muted); font-size: .74rem; font-weight: 600; }
.svc .acts { display: flex; gap: 8px; }

/* ---------- proyectos ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.filters button { padding: 9px 15px; border-radius: 99px; font-weight: 700; font-size: .85rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); transition: .2s; }
.filters button:hover { color: var(--ink); }
.filters button.on { background: var(--ink); color: var(--bg); border-color: transparent; }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.proj { display: flex; flex-direction: column; overflow: hidden; animation: rv .6s var(--ease) both; }
.proj .media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--pc, #0366FF), #181A1B); }
.proj .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.proj:hover .media img { transform: scale(1.06); }
.proj .media .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 4rem; font-weight: 800; color: rgba(255,255,255,.25); }
.proj .tag { position: absolute; left: 12px; top: 12px; font-size: .7rem; font-weight: 800; padding: 6px 10px; border-radius: 99px; background: rgba(24,26,27,.6); color: #fff; backdrop-filter: blur(8px); letter-spacing: .02em; }
.proj .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.proj h3 { font-size: 1.12rem; }
.proj p { margin: 0; color: var(--muted); font-size: .9rem; }
.proj ul { margin: 2px 0 6px; padding-left: 18px; color: var(--ink-2); font-size: .85rem; }
.proj .stack { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.proj .stack span { font-size: .72rem; font-weight: 700; padding: 4px 9px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.proj a.ver { margin-top: 12px; }

/* ---------- sectores ---------- */
.sector-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.sector { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.sector h3 { font-size: 1.1rem; margin-top: 6px; }
.sector p { color: var(--muted); margin: 0; font-size: .9rem; }
.sector .link { margin-top: auto; padding-top: 6px; }
.zones { padding: 22px; margin-top: 16px; }
.zones h3 { font-size: 1.05rem; margin-bottom: 14px; }
.zone-list { display: flex; flex-wrap: wrap; gap: 8px; }
.zone-list span { padding: 8px 13px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; }

/* ---------- cotizador ---------- */
.quote { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.q-panel { padding: 24px; }
.q-step { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.q-step.last { border: 0; margin: 0; padding: 0; }
.q-title { display: flex; align-items: center; gap: 10px; font-weight: 800; margin-bottom: 14px; }
.q-title b { width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: .78rem; }
.q-title small { color: var(--muted); font-weight: 600; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt label { display: block; height: 100%; padding: 13px 14px 13px 42px; border-radius: 14px; cursor: pointer; position: relative; background: var(--surface-2); border: 1.5px solid var(--line); transition: border-color .2s, background .2s, transform .2s var(--ease); }
.opt label::before { content: ""; position: absolute; left: 14px; top: 15px; width: 18px; height: 18px; border-radius: 6px; border: 2px solid #c9ccd3; transition: .2s; }
.opt input[type=radio] + label::before { border-radius: 50%; }
.opt label:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.opt label b { display: block; font-size: .9rem; }
.opt label small { color: var(--muted); font-size: .78rem; font-weight: 600; }
.opt input:checked + label { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.opt input:checked + label::before { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px var(--surface); }
.opt input:focus-visible + label { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.range-row { display: flex; align-items: center; gap: 14px; }
.range-row input { flex: 1; accent-color: var(--accent); }
.range-row output { min-width: 40px; text-align: center; font-weight: 800; padding: 6px 8px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.q-result { position: sticky; top: 96px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.q-result .price { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-top: 4px; }
.q-result .price-ars { color: var(--muted); font-size: .85rem; font-weight: 600; }
.q-result .incluye { color: var(--muted); font-size: .86rem; margin: 2px 0; }
.breakdown { list-style: none; padding: 0; margin: 0; font-size: .86rem; }
.breakdown li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.breakdown li span:last-child { font-weight: 700; white-space: nowrap; }
.q-result .time { font-size: .86rem; font-weight: 600; }
.q-result .monthly { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px dashed var(--line); font-size: .84rem; line-height: 1.5; }
.fields { display: grid; gap: 8px; margin-top: 4px; }
.fields input, .fields select { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); outline: none; transition: border-color .2s, box-shadow .2s; }
.fields input:focus, .fields select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(3,102,255,.12); }
.disclaimer { font-size: .74rem; color: var(--muted); margin: 4px 0 0; line-height: 1.45; }

/* ---------- asistente ---------- */
.ai-hero { padding: clamp(30px, 5vw, 60px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; overflow: hidden; }
.ai-hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 70%; z-index: -1; background: radial-gradient(ellipse at 50% 0%, rgba(3,102,255,.16), transparent 60%); }
.ai-hero h2 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 760px; }
.ai-hero p { color: var(--muted); max-width: 640px; margin: 0; font-size: 1.04rem; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chips-row span { padding: 8px 13px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); font-size: .84rem; font-weight: 700; }
.prompts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; width: 100%; max-width: 820px; margin-top: 10px; }
.prompts button { padding: 16px; border-radius: 16px; text-align: left; font-weight: 600; font-size: .9rem; background: var(--surface-2); border: 1px solid var(--line); transition: transform .2s var(--ease), border-color .2s; }
.prompts button:hover { transform: translateY(-2px); border-color: var(--accent); }

/* ---------- proceso / modelos / faq ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.step { padding: 24px; }
.step b { font-size: 2.4rem; font-weight: 800; letter-spacing: -.05em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 18px; }
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; font-size: .92rem; }
.models { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 16px; align-items: stretch; }
.model { padding: 26px; display: flex; flex-direction: column; }
.model .num { font-size: 2.2rem; font-weight: 800; color: var(--muted); opacity: .35; letter-spacing: -.05em; margin-bottom: 12px; }
.model h3 { font-size: 1.25rem; margin-bottom: 10px; }
.model p { color: var(--muted); margin: 0 0 14px; font-size: .93rem; }
.model ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-weight: 600; font-size: .9rem; }
.model li { display: flex; gap: 8px; }
.model li::before { content: "✓"; color: var(--accent); font-weight: 800; }
.model.featured { background: #181A1B; color: #fff; border-color: transparent; overflow: hidden; }
.model.featured::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -160px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(3,102,255,.4), transparent 62%); animation: drift 12s ease-in-out infinite alternate; }
.model.featured p { color: #b4bac6; } .model.featured .num { color: var(--accent-2); opacity: 1; }
.model.featured .btn { margin-top: 22px; align-self: flex-start; }
.tagline { align-self: flex-start; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 99px; background: rgba(3,102,255,.16); color: var(--accent-2); margin-bottom: 14px; }
.faq-list { display: grid; gap: 10px; max-width: 880px; }
.faq-list details { padding: 0; overflow: hidden; }
.faq-list summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 20px; font-weight: 700; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 18px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); font-size: 1.1rem; transition: transform .3s var(--ease), background .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq-list details p { margin: 0; padding: 0 20px 18px; color: var(--muted); animation: rv .4s var(--ease) both; }
.faq-list details.flash { box-shadow: 0 0 0 3px var(--accent); }
.contact-card { margin-top: 16px; padding: 26px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; max-width: 880px; }
.contact-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.contact-card p { margin: 0; color: var(--muted); }
.foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 40px; padding: 18px 6px 0; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }

/* ---------- paleta de comandos ---------- */
.cmdk { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; background: rgba(8,9,12,.45); backdrop-filter: blur(6px); animation: fade .2s; }
.cmdk[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.cmdk-box { width: min(640px, 100%); border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 40px 100px rgba(0,0,0,.4); animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.cmdk-in { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.cmdk-in input { flex: 1; border: 0; outline: none; background: none; font-size: 1.05rem; color: var(--ink); }
.cmdk-in kbd, .cmdk-foot kbd { background: var(--surface-2); border-color: var(--line); color: var(--muted); }
.cmdk-list { max-height: min(56vh, 460px); overflow-y: auto; padding: 8px; }
.cmdk-grp { padding: 10px 12px 6px; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cmdk-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 12px; text-align: left; transition: background .12s; }
.cmdk-item .ki { width: 36px; height: 36px; border-radius: 10px; }
.cmdk-item .ki svg { width: 18px; height: 18px; }
.cmdk-item b { display: block; font-size: .92rem; }
.cmdk-item small { color: var(--muted); font-size: .78rem; }
.cmdk-item mark { background: rgba(3,102,255,.2); color: inherit; border-radius: 4px; padding: 0 1px; }
.cmdk-item .ret { margin-left: auto; opacity: 0; color: var(--muted); font-size: .8rem; }
.cmdk-item.active { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.cmdk-item.active .ret { opacity: 1; }
.cmdk-empty { padding: 30px; text-align: center; color: var(--muted); }
.cmdk-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: .76rem; color: var(--muted); }

/* ---------- asistente (widget de asistente.js) ---------- */
.ai-fab { position: fixed; right: 22px; bottom: 22px; z-index: 61; height: 54px; padding: 0 20px 0 10px; border-radius: 99px; background: #181A1B; color: #fff; font: 700 .95rem var(--font); display: inline-flex; align-items: center; gap: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.3), inset 0 0 0 1px rgba(255,255,255,.08); transition: transform .3s var(--ease); }
.ai-fab::before { content: ""; width: 36px; height: 36px; border-radius: 50%; background: conic-gradient(from 0deg, #0366FF, #BCFF5E, #6be3ff, #0366FF, #0366FF); animation: spin 5s linear infinite; box-shadow: 0 0 18px rgba(3,102,255,.5); }
.ai-fab { font-size: 0; } .ai-fab span { font-size: .92rem; }
.ai-fab:hover { transform: translateY(-3px); }
.ai-fab.open { transform: scale(.92); }
.ai-panel { position: fixed; right: 22px; bottom: 90px; z-index: 70; width: min(410px, calc(100vw - 24px)); height: min(640px, calc(100vh - 120px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 40px 100px rgba(0,0,0,.35); overflow: hidden; animation: pop .35s var(--ease); }
.ai-panel[hidden] { display: none; }
.ai-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; background: #181A1B; color: #fff; }
.ai-head small { display: block; color: #9aa1ae; font-size: .78rem; }
.ai-head-btns button { color: #c3c8d2; font-size: 1.05rem; padding: 6px 9px; border-radius: 10px; }
.ai-head-btns button:hover { background: rgba(255,255,255,.1); color: #fff; }
.ai-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); }
.ai-msg { max-width: 88%; padding: 11px 14px; border-radius: 16px; font-size: .92rem; line-height: 1.5; animation: rv .35s var(--ease) both; }
.ai-msg p { margin: 0 0 6px; } .ai-msg p:last-child { margin: 0; }
.ai-msg ul { margin: 4px 0 6px; padding-left: 18px; }
.ai-bot { background: var(--surface); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.ai-user { background: var(--ink); color: var(--bg); align-self: flex-end; border-bottom-right-radius: 4px; }
.ai-typing { color: var(--muted); font-style: italic; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .45; } }
.ai-error { border-color: rgba(3,102,255,.5); }
.ai-error .btn { margin-top: 8px; padding: 8px 14px; font-size: .85rem; }
.ai-sug { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px 0; background: var(--surface-2); }
.ai-sug button { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 7px 12px; font-size: .8rem; font-weight: 600; }
.ai-sug button:hover { border-color: var(--accent); }
.ai-ok { margin: 0; padding: 10px 16px; font-size: .86rem; background: rgba(34,197,94,.1); border-top: 1px solid rgba(34,197,94,.3); }
.ai-ok[hidden] { display: none; }
.ai-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.ai-form textarea { flex: 1; resize: none; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px; font: inherit; font-size: .92rem; max-height: 120px; outline: none; }
.ai-form textarea:focus { border-color: var(--accent); }
.ai-form .btn { padding: 0 16px; border-radius: 14px; background: var(--grad); color: #181A1B; }
.ai-form .btn:disabled { opacity: .5; cursor: wait; }
.ai-legal { margin: 0; padding: 0 14px 10px; font-size: .7rem; color: var(--muted); text-align: center; background: var(--surface); }
.ai-legal a { color: var(--accent); cursor: pointer; font-weight: 700; }

/* ---------- móvil: barra inferior + menú lateral ---------- */
.mtab, .scrim { display: none; }
@media (max-width: 1180px) and (min-width: 901px) {
  .home-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .duo, .quote { grid-template-columns: 1fr; }
  .q-result { position: static; }
  .models { grid-template-columns: 1fr 1fr; } .models .featured { grid-column: span 2; }
}
@media (max-width: 900px) {
  .shell, .shell.collapsed { --rail-w: 280px; }
  .rail { transform: translateX(calc(-100% - 24px)); }
  .shell.drawer .rail { transform: none; }
  .shell.collapsed .rail .lbl { opacity: 1; transform: none; pointer-events: auto; }
  .shell.collapsed .promo { opacity: 1; max-height: 220px; padding: 16px; margin-bottom: 6px; border-width: 1px; }
  .collapse { display: none; }
  .stage { margin-left: 0; padding: 10px 12px 110px; }
  .topbar { top: 10px; height: 58px; padding: 0 8px 0 14px; }
  .crumb-app, .crumbs > svg, .hide-sm { display: none; }
  .home-grid, .duo, .quote { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .q-result { position: static; }
  .models { grid-template-columns: 1fr; }
  .hero-card { min-height: 0; }
  .hero-card h2 { margin-top: 40px; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(8,9,12,.5); backdrop-filter: blur(3px); animation: fade .2s; }
  .scrim[hidden] { display: none; }
  .mtab {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; position: fixed; z-index: 50; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    height: 70px; border-radius: 24px; background: rgba(24,26,27,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 16px 40px rgba(0,0,0,.3);
  }
  .mtab a, .mtab > button { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #8a909c; font-size: .7rem; font-weight: 700; padding: 8px 0; }
  .mtab a.active { color: #fff; } .mtab a.active svg { color: var(--accent); }
  .mtab .mtab-ai { justify-self: center; width: 60px; height: 60px; border-radius: 50%; background: #181A1B; display: grid; place-items: center; transform: translateY(-16px); box-shadow: 0 10px 28px rgba(3,102,255,.35), 0 0 0 5px var(--bg); }
  .mtab .mtab-ai .orb { width: 42px; height: 42px; }
  .ai-fab { display: none; }
  .ai-panel { right: 8px; left: 8px; width: auto; bottom: 92px; height: calc(100vh - 110px); }
}
@media (max-width: 520px) {
  .kpi { padding: 16px; } .kpi b { font-size: 1.6rem; }
  .chip-dolar { padding: 7px 9px; }
  .opts { grid-template-columns: 1fr; }
}

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

/* ---------- quién soy ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }
.about-main { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; }
.about-main > p { color: var(--ink-2); margin: 0; }
.about-top { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.avatar-xl { width: 110px; height: 110px; border-radius: 30px; background: #181A1B; display: grid; place-items: center; position: relative; overflow: hidden; flex: none; box-shadow: var(--shadow-lg); }
.avatar-xl::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 0deg, #0366FF, #BCFF5E, #6be3ff, #0366FF, #0366FF); animation: spin 8s linear infinite; opacity: .9; }
.avatar-xl::after { content: ""; position: absolute; inset: 4px; border-radius: 26px; background: #181A1B; }
.avatar-xl span { position: relative; z-index: 1; font-size: 2.4rem; font-weight: 800; color: #fff; letter-spacing: -.04em; }
.about-top h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 4px 0 6px; }
.role { margin: 0 0 8px; color: var(--muted); font-weight: 600; }
.loc { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.loc svg { width: 16px; height: 16px; }
.about-side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mini-stat { padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; }
.mini-stat b { font-size: 2.2rem; letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mini-stat span { color: var(--muted); font-weight: 600; font-size: .86rem; }
.pillars { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.pillar { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.pillar h3 { font-size: 1.1rem; margin-top: 6px; }
.pillar p { margin: 0; color: var(--muted); font-size: .92rem; }
.skills-card { padding: 22px; margin-top: 16px; }
.skills-card h3 { font-size: 1.05rem; margin-bottom: 14px; }

/* explicación práctica en tarjetas */
.explain { display: grid; gap: 6px; }
.explain p { margin: 0; font-size: .88rem; color: var(--ink-2); line-height: 1.5; }
.explain p b { color: var(--ink); }
.explain .ej, .term .ej { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border-left: 3px solid var(--accent); color: var(--muted); }
.price-tag b.sm { font-size: 1rem; }
.banner { margin-top: 16px; padding: 26px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: #181A1B; color: #fff; border-color: transparent; overflow: hidden; }
.banner::before { content: ""; position: absolute; z-index: -1; width: 500px; height: 500px; right: -200px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(3,102,255,.4), transparent 62%); }
.banner h3 { font-size: 1.3rem; margin: 6px 0; max-width: 640px; }
.banner p { color: #b4bac6; margin: 0; max-width: 640px; }

/* ---------- resultados ---------- */
.how { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.how-step { flex: 1 1 170px; display: flex; flex-direction: column; gap: 4px; padding: 10px; }
.how-step .ki { margin-bottom: 6px; }
.how-step b { font-size: 1rem; }
.how-step small { color: var(--muted); font-weight: 600; font-size: .8rem; }
.how-arrow { color: var(--muted); width: 22px; height: 22px; }
@media (max-width: 900px) { .how-arrow { transform: rotate(90deg); margin: 0 auto; } .how { flex-direction: column; align-items: stretch; } }
.casos { display: grid; gap: 16px; }
.caso { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); overflow: hidden; }
@media (max-width: 900px) { .caso { grid-template-columns: 1fr; } }
.caso-media { position: relative; min-height: 220px; background: #181A1B; }
.caso-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.caso:hover .caso-media img { transform: scale(1.05); }
.caso .tag { position: absolute; left: 12px; top: 12px; font-size: .7rem; font-weight: 800; padding: 6px 10px; border-radius: 99px; background: rgba(24,26,27,.65); color: #fff; backdrop-filter: blur(8px); }
.caso-body { padding: 22px 24px; }
.caso-body h3 { font-size: 1.2rem; margin-bottom: 14px; }
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 1100px) { .flow { grid-template-columns: 1fr; } }
.flow > div { padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.flow small { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.flow p { margin: 0; font-size: .88rem; }
.flow .win { background: color-mix(in srgb, var(--ok) 9%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.flow .win small { color: #15803d; }
.flow ul { margin: 0; padding-left: 18px; font-size: .86rem; display: grid; gap: 4px; }
.roi { margin-top: 16px; padding: clamp(22px, 3vw, 32px); }
.roi.flash, .svc.flash, .term.flash { box-shadow: 0 0 0 3px var(--accent), var(--shadow-lg); }
.roi-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 20px; }
.roi-head h3 { font-size: 1.4rem; margin: 6px 0; }
.roi-head p { margin: 0; color: var(--muted); max-width: 520px; font-size: .9rem; }
.roi-presets { display: flex; gap: 8px; flex-wrap: wrap; }
.roi-presets button { padding: 9px 14px; border-radius: 99px; font-weight: 700; font-size: .84rem; background: var(--surface-2); border: 1px solid var(--line); position: relative; overflow: hidden; }
.roi-presets button.on { background: var(--ink); color: var(--bg); border-color: transparent; }
.roi-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 900px) { .roi-body { grid-template-columns: 1fr; } }
.roi-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
@media (max-width: 520px) { .roi-form { grid-template-columns: 1fr; } }
.roi-field { display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); transition: border-color .2s; }
.roi-field:focus-within { border-color: var(--accent); }
.roi-field span { font-size: .76rem; font-weight: 700; color: var(--muted); }
.roi-field input { border: 0; outline: none; background: none; font-size: 1.15rem; font-weight: 800; width: 100%; }
.roi-out { display: flex; flex-direction: column; gap: 12px; }
.roi-big { padding: 20px; border-radius: 18px; background: #181A1B; color: #fff; position: relative; overflow: hidden; }
.roi-big::before { content: ""; position: absolute; width: 300px; height: 300px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(3,102,255,.45), transparent 62%); }
.roi-big small { color: #9aa1ae; font-weight: 700; font-size: .78rem; position: relative; }
.roi-big b { display: block; font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -.04em; position: relative; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.roi-big.neg b { background: none; color: #f87171; }
.roi-meter { height: 8px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; position: relative; margin-top: 8px; }
.roi-meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width .6s var(--ease); }
.roi-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.roi-kpis div { padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.roi-kpis small { display: block; color: var(--muted); font-size: .74rem; font-weight: 700; }
.roi-kpis b { font-size: 1.1rem; }

/* ---------- aprendé ---------- */
.glosario { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.term { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.term h3 { font-size: 1.05rem; }
.term p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.term .ej { font-size: .84rem; }
@media (max-width: 1180px) { .about-grid { grid-template-columns: 1fr; } .about-side { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px) { .about-side { grid-template-columns: 1fr 1fr; } }
.theme-vt #stage { view-transition-name: none; }
#stage { view-transition-name: stage; }

.source-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; margin-bottom: 16px; flex-wrap: wrap; }
.source-card > div { flex: 1 1 320px; }
.source-card b { display: block; margin-bottom: 2px; }
.source-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.disclaimer a { color: var(--accent); font-weight: 700; }

/* ==================== CATÁLOGO ESTILO TIENDA ==================== */
.catalog { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 8px; }
.cat-list, .cat-detail { border-radius: 34px; padding: 22px; overflow: hidden; }
.cat-detail { position: sticky; top: 96px; }
.cat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.cat-head div { flex: 1; } .cat-head b { display: block; } .cat-head small { color: var(--muted); font-weight: 600; font-size: .78rem; }
.cat-brand { font-weight: 800; font-style: italic; font-size: 1.5rem; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px var(--muted); }
/* banner */
.cat-banner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; min-height: 170px; padding: 20px 6px 20px 22px; border-radius: 24px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.ban-tag { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 99px; background: var(--grad); color: #181A1B; }
.ban-copy h3 { font-size: 1.3rem; margin: 10px 0 4px; }
.ban-copy p { margin: 0 0 14px; color: var(--muted); font-size: .86rem; }
.ban-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ban-price { font-size: .8rem; color: var(--muted); font-weight: 600; } .ban-price b { color: var(--ink); font-size: .95rem; }
.ban-art { height: 150px; display: grid; place-items: center; }
.ban-art.in .visual { animation: banIn .7s var(--ease) both; }
@keyframes banIn { from { opacity: 0; transform: translateX(30px) rotate(6deg) scale(.9); } }
.cat-dots { display: flex; justify-content: center; gap: 6px; margin: 12px 0 18px; }
.cat-dots button { width: 7px; height: 7px; border-radius: 99px; background: var(--line); transition: width .3s var(--ease), background .3s; }
.cat-dots button.on { width: 22px; background: var(--accent); }
/* pestañas */
.cat-tabs { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; margin-bottom: 18px; padding-bottom: 2px; }
.cat-tabs button { text-align: left; flex: none; opacity: .32; transition: opacity .25s; }
.cat-tabs button b { display: block; font-size: 1.22rem; letter-spacing: -.02em; }
.cat-tabs button small { font-size: .72rem; font-weight: 700; }
.cat-tabs button.on { opacity: 1; }
.cat-tabs button:hover { opacity: .7; }
/* tarjetas de producto */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.pcard { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 22px; background: var(--surface-2); border: 1.5px solid transparent; text-align: left; position: relative; transition: transform .3s var(--ease), border-color .25s, box-shadow .3s; animation: rv .5s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pcard.sel { border-color: var(--ink); }
.pname { font-weight: 700; font-size: .92rem; }
.pdots { display: flex; gap: 4px; } .pdots i { width: 7px; height: 7px; border-radius: 50%; }
.pcard .visual { height: 120px; margin: 6px 0; }
.pcard:hover .visual { transform: scale(1.06) rotate(-2deg); }
.pfoot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; }
.pfoot small { display: block; font-size: .68rem; color: var(--muted); font-weight: 700; }
.pfoot b { font-size: 1.02rem; letter-spacing: -.02em; }
.parrow { width: 34px; height: 34px; border-radius: 10px; border: 1.5px solid var(--ink); display: grid; place-items: center; transition: background .2s, color .2s; }
.parrow svg { width: 16px; height: 16px; }
.pcard:hover .parrow { background: var(--ink); color: var(--bg); }
/* detalle */
.det-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.det-top h3 { font-size: 1.25rem; text-align: center; flex: 1; }
.det-back svg { transform: none; }
.det-back { visibility: hidden; }
.det-fav { font-size: 1.1rem; color: var(--muted); }
.det-fav.on { background: var(--ink); color: #ff5a5f; }
.det-stage { position: relative; display: grid; grid-template-columns: 76px 1fr 92px; align-items: center; min-height: 330px; margin: 10px 0 6px; }
.det-wm { position: absolute; left: 50%; top: 50%; translate: -50% -50%; font-size: clamp(9rem, 18vw, 15rem); font-weight: 800; font-style: italic; letter-spacing: -.08em; color: var(--surface-2); -webkit-text-stroke: 2px var(--line); z-index: 0; pointer-events: none; user-select: none; transform: rotate(-12deg); }
.det-sizes, .det-extras { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 8px; }
.det-sizes small, .det-extras small { font-size: .7rem; font-weight: 800; color: var(--muted); text-align: center; }
.det-sizes button { padding: 9px 4px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font-size: .72rem; font-weight: 800; transition: .2s; }
.det-sizes button:hover { border-color: var(--ink); }
.det-sizes button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: scale(1.05); }
.det-extras button { display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font-size: .66rem; font-weight: 700; text-align: left; line-height: 1.15; transition: .2s; }
.det-extras button i { width: 14px; height: 14px; border-radius: 50%; background: var(--ec); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ec) 20%, transparent); }
.det-extras button.on { border-color: var(--ec); background: color-mix(in srgb, var(--ec) 12%, var(--surface)); }
.det-extras button.on i { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--ec); }
.det-visual { position: relative; z-index: 1; height: 300px; display: grid; place-items: center; }
.det-visual.pop .visual { animation: detIn .8s var(--ease) both; }
@keyframes detIn { from { opacity: 0; transform: translateY(30px) rotate(-10deg) scale(.85); } }
.det-tier { font-size: .82rem; color: var(--muted); margin: 0 0 8px; text-align: center; }
.det-tier b { color: var(--ink); }
.det-explain { display: grid; gap: 6px; margin-bottom: 14px; }
.det-explain p { margin: 0; font-size: .86rem; color: var(--ink-2); }
.det-explain .ej { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border-left: 3px solid var(--accent); color: var(--muted); }
.det-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.det-price small { display: block; font-size: .7rem; font-weight: 800; color: var(--muted); }
.det-price b { display: block; font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -.04em; line-height: 1.1; }
.det-price span { font-size: .76rem; color: var(--muted); font-weight: 600; }
.det-note { font-size: .7rem; color: var(--muted); margin: 12px 0 0; }
/* botón deslizable */
.swipe { --p: 0; position: relative; width: min(260px, 100%); height: 60px; border-radius: 99px; background: #181A1B; color: #fff; display: flex; align-items: center; padding: 6px; cursor: pointer; overflow: hidden; user-select: none; touch-action: none; }
.swipe::before { content: ""; position: absolute; inset: 0; background: var(--grad); opacity: calc(var(--p) * .9); transition: opacity .2s; }
.swipe-thumb { position: relative; z-index: 2; width: 48px; height: 48px; border-radius: 50%; background: #292B2F; display: grid; place-items: center; cursor: grab; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.swipe-thumb svg { width: 20px; height: 20px; color: var(--accent-2); }
.swipe.drag .swipe-thumb { cursor: grabbing; background: #fff; } .swipe.drag .swipe-thumb svg { color: var(--accent); }
.swipe-txt { position: relative; z-index: 1; flex: 1; text-align: center; font-weight: 700; font-size: .88rem; opacity: calc(1 - var(--p)); }
.swipe-arr { position: relative; z-index: 1; padding-right: 14px; font-weight: 800; letter-spacing: -2px; animation: arr 1.4s ease-in-out infinite; opacity: calc(1 - var(--p)); }
@keyframes arr { 50% { transform: translateX(5px); opacity: .5; } }
.swipe.done::before { opacity: 1; }
.swipe:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ==================== ILUSTRACIONES EN CÓDIGO ==================== */
.visual { position: relative; width: 100%; height: 100%; display: grid; place-items: center; transition: transform .5s var(--ease); --vc: var(--accent); }
.visual::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 4%; height: 10%; border-radius: 50%; background: radial-gradient(rgba(0,0,0,.28), transparent 70%); filter: blur(4px); z-index: 0; }
.vz { position: relative; z-index: 1; }
.vz-screen { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; background: linear-gradient(160deg, #fff, #eef0f4); padding: 8% 9%; display: flex; flex-direction: column; gap: 6%; }
[data-theme="dark"] .vz-screen { background: linear-gradient(160deg, #1c2029, #12151b); }
.vz-screen > span, .vz-screen i { display: block; border-radius: 4px; }
.vz-nav { height: 7%; width: 100%; background: color-mix(in srgb, var(--vc) 25%, transparent); }
.vz-hero { height: 34%; background: linear-gradient(135deg, var(--vc), color-mix(in srgb, var(--vc) 50%, #BCFF5E)); border-radius: 8px !important; }
.vz-hero.round { height: 30%; border-radius: 14px !important; }
.vz-hero.big { height: 55%; }
.vz-line { height: 5%; width: 80%; background: rgba(120,128,140,.25); } .vz-line.s { width: 55%; }
.vz-btn { height: 9%; width: 42%; background: #181A1B; border-radius: 99px !important; } .vz-btn.wide { width: 100%; margin-top: auto; }
.vz-cols { display: flex; gap: 6%; height: 30%; } .vz-cols i { flex: 1; background: color-mix(in srgb, var(--vc) 18%, transparent); border-radius: 6px; }
.vz-prods { display: grid; grid-template-columns: 1fr 1fr; gap: 6%; flex: 1; } .vz-prods i { background: color-mix(in srgb, var(--vc) 20%, #fff); border-radius: 8px; }
.vz-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 6%; height: 28%; } .vz-cards i { background: color-mix(in srgb, var(--vc) 16%, transparent); border-radius: 8px; }
.vz-tab { margin-top: auto; height: 10%; display: flex !important; justify-content: space-around; align-items: center; background: #181A1B; border-radius: 99px !important; } .vz-tab i { width: 12%; height: 40%; background: #fff; opacity: .7; border-radius: 99px; }
.vz-dash { display: flex; gap: 5%; height: 100%; } .vz-dash .side { width: 18%; background: #181A1B; border-radius: 6px; }
.vz-dash .main { flex: 1; display: flex; flex-direction: column; gap: 8%; } .vz-dash .kp { display: flex; gap: 6%; height: 22%; } .vz-dash .kp i { flex: 1; background: color-mix(in srgb, var(--vc) 18%, transparent); border-radius: 6px; }
.vz-dash .chart { flex: 1; display: flex; align-items: flex-end; gap: 8%; padding: 0 4%; } .vz-dash .chart i { flex: 1; background: var(--vc); border-radius: 4px 4px 0 0; animation: grow 2.4s ease-in-out infinite alternate; }
.vz-dash .chart .b1 { height: 40%; } .vz-dash .chart .b2 { height: 70%; animation-delay: .3s; } .vz-dash .chart .b3 { height: 55%; animation-delay: .6s; } .vz-dash .chart .b4 { height: 90%; animation-delay: .9s; }
@keyframes grow { to { transform: scaleY(.75); transform-origin: bottom; } }
.vz-tag { position: absolute; right: 8%; top: 10%; padding: 3% 6%; border-radius: 99px; background: #181A1B; color: #fff; font-size: .6rem; font-weight: 800; }
/* dispositivos */
.vz.laptop { width: 82%; aspect-ratio: 16 / 10.5; border-radius: 10px; background: #181A1B; padding: 2.4%; transform: perspective(700px) rotateY(-14deg) rotateX(6deg); box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.vz.laptop .vz-screen { inset: 3%; border-radius: 6px; }
.vz-base { position: absolute; left: -7%; right: -7%; bottom: -7%; height: 7%; background: linear-gradient(#cfd3da, #9aa0aa); border-radius: 0 0 14px 14px; }
.vz.phone { width: 38%; aspect-ratio: 9 / 19; border-radius: 22px; background: #181A1B; padding: 4%; transform: rotate(-8deg); box-shadow: 0 18px 40px rgba(0,0,0,.3); }
.vz.phone .vz-screen { inset: 4%; border-radius: 18px; padding-top: 16%; }
.vz.phone .vz-screen::before { content: ""; position: absolute; top: 4%; left: 50%; width: 30%; height: 3.5%; translate: -50% 0; background: #181A1B; border-radius: 99px; }
.vz.phone.mini { position: absolute; width: 24%; right: 6%; bottom: 6%; transform: rotate(10deg); }
.vz.phone.back { position: absolute; z-index: 0; transform: rotate(10deg) translateX(55%); opacity: .55; filter: blur(.5px); }
.vz.tv { width: 82%; aspect-ratio: 16 / 9.5; border-radius: 8px; background: #181A1B; padding: 2%; box-shadow: 0 18px 40px rgba(0,0,0,.25); transform: perspective(700px) rotateY(12deg); }
.vz.tv .vz-screen { inset: 3%; border-radius: 4px; }
.vz-stand { position: absolute; bottom: 10%; width: 30%; height: 4%; background: #9aa0aa; border-radius: 4px; z-index: 0; }
.vz.chat { width: 84%; display: flex; flex-direction: column; gap: 8px; }
.vz.chat .msg { padding: 8px 11px; border-radius: 14px; font-size: .62rem; font-weight: 600; max-width: 82%; box-shadow: 0 8px 20px rgba(0,0,0,.12); animation: rv .6s var(--ease) both; }
.vz.chat .msg.u { align-self: flex-end; background: #181A1B; color: #fff; border-bottom-right-radius: 4px; }
.vz.chat .msg.b { align-self: flex-start; background: #fff; color: #181A1B; border: 1px solid rgba(0,0,0,.06); border-bottom-left-radius: 4px; animation-delay: .25s; }
.vz.chat .msg.s { animation-delay: .5s; }
.vz-orb { position: absolute; left: 4%; bottom: 8%; width: 34px; height: 34px; border-radius: 50%; background: conic-gradient(from 0deg, #0366FF, #BCFF5E, #6be3ff, #0366FF, #0366FF); animation: spin 5s linear infinite; z-index: 2; box-shadow: 0 6px 18px rgba(3,102,255,.4); }
.vz.brand { width: 76%; aspect-ratio: 1.3; border-radius: 16px; background: #fff; box-shadow: 0 18px 40px rgba(0,0,0,.18); display: grid; grid-template-columns: 1fr 1fr; padding: 10%; gap: 8%; transform: rotate(-6deg); }
.vz.brand .logo { grid-row: span 2; display: grid; place-items: center; border-radius: 14px; background: #181A1B; color: var(--vc); font-weight: 800; font-size: 2rem; font-style: italic; }
.vz.brand .sw { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .vz.brand .sw i { border-radius: 6px; aspect-ratio: 1; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.vz.brand .type { font-size: 1.6rem; font-weight: 800; color: #181A1B; align-self: end; }
.vz-chip { position: absolute; right: 12%; top: 16%; z-index: 2; padding: 6px 10px; border-radius: 99px; background: var(--vc); color: #fff; font-size: .7rem; font-weight: 800; box-shadow: 0 8px 18px rgba(0,0,0,.2); animation: bob 3s ease-in-out infinite alternate; }
.visual.lg .vz.phone { width: 44%; } .visual.lg .vz.chat .msg { font-size: .8rem; padding: 11px 14px; } .visual.lg .vz-orb { width: 48px; height: 48px; }
.visual.sm .vz.chat .msg { font-size: .5rem; padding: 6px 8px; } .visual.sm .vz-orb { width: 24px; height: 24px; }
.visual.sm .vz.brand .logo { font-size: 1.2rem; } .visual.sm .vz.brand .type { font-size: 1rem; }
.visual.lg { animation: floaty 5s ease-in-out infinite alternate; }
@keyframes floaty { to { transform: translateY(-10px); } }

@media (max-width: 1100px) {
  .catalog { grid-template-columns: 1fr; }
  .cat-detail { position: static; }
  .det-back { visibility: visible; }
}
@media (max-width: 560px) {
  .cat-list, .cat-detail { padding: 16px; border-radius: 28px; }
  .cat-banner { grid-template-columns: 1fr; padding: 18px; } .ban-art { height: 130px; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .pcard { padding: 12px; } .pcard .visual { height: 96px; }
  .det-stage { grid-template-columns: 64px 1fr 74px; min-height: 270px; } .det-visual { height: 240px; }
  .det-extras button span { display: none; } .det-extras button { justify-content: center; padding: 8px; }
  .swipe { width: 100%; }
}

/* ==================== SISTEMA VISUAL UNIFICADO ====================
   Lima #BCFF5E (acciones) · Azul #0366FF (acentos) · Negro #181A1B · Grafito #292B2F
   Tipografía única: Plus Jakarta Sans */
:root { --lime: #BCFF5E; --blue: #0366FF; --ink-0: #181A1B; --graphite: #292B2F; --lime-ink: #3f6b06; --bg: #f1f2f4; --rail: #181A1B; --rail-2: #292B2F; }
[data-theme="dark"] { --accent: #BCFF5E; --bg: #0f1011; --surface: #181A1B; --surface-2: #202224; --rail: #121314; }
.btn-accent, .ai-form .btn { background: var(--lime); color: var(--ink-0); box-shadow: 0 10px 26px rgba(188,255,94,.35); }
.btn-accent:hover { box-shadow: 0 14px 34px rgba(188,255,94,.5); }
.brand-mark, .ban-tag { background: var(--lime); color: var(--ink-0); box-shadow: 0 8px 20px rgba(188,255,94,.3); }
.brand-name b, .badge { color: var(--lime); }
.badge { background: rgba(188,255,94,.14); }
.indicator { background: rgba(188,255,94,.1); }
.indicator::before { background: var(--lime); }
.rail-nav a.active svg { color: var(--lime); }
.search-pill:hover { border-color: rgba(188,255,94,.45); }
.promo { background: linear-gradient(160deg, rgba(188,255,94,.16), rgba(3,102,255,.1)); border-color: rgba(188,255,94,.25); }
.collapse:hover { background: var(--lime); color: var(--ink-0); }
.grad { background: linear-gradient(90deg, var(--lime), #6be3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mini-stat b, .step b { background: linear-gradient(90deg, var(--blue), #4d8dff); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="dark"] .mini-stat b, [data-theme="dark"] .step b { background: linear-gradient(90deg, var(--lime), #6be3ff); -webkit-background-clip: text; background-clip: text; }
.roi-big b { background: linear-gradient(90deg, var(--lime), #6be3ff); -webkit-background-clip: text; background-clip: text; }
.roi-meter i, .swipe::before, .swipe.done::before { background: var(--lime); }
.swipe-thumb { background: var(--lime); } .swipe-thumb svg { color: var(--ink-0); }
.swipe.drag .swipe-thumb { background: #fff; } .swipe-txt, .swipe-arr { mix-blend-mode: normal; }
.cat-dots button.on { background: var(--ink); }
.pcard.sel { border-color: var(--blue); }
.det-sizes button.on { background: var(--ink); }
.det-fav.on { color: #ff4d6d; }
.faq-list details[open] summary::after { background: var(--lime); color: var(--ink-0); }
.opt input:checked + label { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 7%, var(--surface)); }
.opt input:checked + label::before { border-color: var(--blue); background: var(--blue); }
.q-title b { background: var(--lime); color: var(--ink-0); }
.explain .ej, .term .ej, .det-explain .ej { border-left-color: var(--lime); }
.filters button.on, .roi-presets button.on { background: var(--ink); }
[data-theme="dark"] .ki { color: color-mix(in srgb, var(--c, var(--blue)) 45%, #fff); background: color-mix(in srgb, var(--c, var(--blue)) 22%, transparent); }
/* tarjetas de estadísticas como la referencia: azul, negro, lima, blanca */
.kpis .kpi:nth-child(1) { background: var(--blue); border-color: transparent; color: #fff; }
.kpis .kpi:nth-child(1) small { color: rgba(255,255,255,.8); }
.kpis .kpi:nth-child(1) .ki { --c: #ffffff; background: rgba(255,255,255,.18); color: #fff; }
.kpis .kpi:nth-child(2) { background: var(--ink-0); border-color: transparent; color: #fff; }
.kpis .kpi:nth-child(2) small { color: #a3a8b0; }
.kpis .kpi:nth-child(2) .ki { background: rgba(188,255,94,.16); color: var(--lime); }
.kpis .kpi:nth-child(3) { background: var(--lime); border-color: transparent; color: var(--ink-0); }
.kpis .kpi:nth-child(3) small { color: #3b4a1f; }
.kpis .kpi:nth-child(3) .ki { background: rgba(24,26,27,.1); color: var(--ink-0); }
/* barra inferior móvil: activo en pastilla lima */
@media (max-width: 900px) {
  .mtab { background: rgba(24,26,27,.94); }
  .mtab a.active { color: var(--lime); }
  .mtab a.active svg { color: var(--lime); }
  .mtab .mtab-ai { background: var(--lime); box-shadow: 0 10px 28px rgba(188,255,94,.45), 0 0 0 5px var(--bg); }
}
.hero-card .pill { color: var(--lime); }
.chat-demo .u, .ai-user { background: var(--ink-0); color: #fff; }
[data-theme="dark"] .chat-demo .u, [data-theme="dark"] .ai-user { background: var(--blue); }
.card::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(3,102,255,.07), transparent 45%); }

/* ==================== CLARIDAD + CELULAR ==================== */
.qtile > div b { display: block; margin-bottom: 2px; }
.qtile > div small { display: block; }
.qtile { min-height: 168px; }
.opt label .simple { display: block; font-size: .8rem; color: var(--ink-2); font-weight: 500; margin: 1px 0 2px; }
.steps3 { margin-top: 16px; padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.steps3 h3 { font-size: 1.15rem; margin-bottom: 14px; }
.steps3 ol { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.steps3 li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--surface-2); }
.steps3 .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--lime); color: var(--ink-0); font-weight: 800; }
.steps3 li:nth-child(2) .n { background: var(--blue); color: #fff; }
.steps3 li:nth-child(3) .n { background: var(--ink-0); color: var(--lime); }
.steps3 b { display: block; font-size: .98rem; margin-bottom: 2px; }
.steps3 small { color: var(--muted); font-size: .86rem; line-height: 1.45; display: block; }
.steps3 .btn { max-width: 420px; }
.price-dock { display: none; }
@media (max-width: 900px) {
  body { font-size: 16px; }
  .view-head h2 { font-size: 1.75rem; }
  .view-head p { font-size: 1rem; line-height: 1.55; }
  .eyebrow { font-size: .72rem; }
  .hero-card { padding: 24px 22px; border-radius: 26px; }
  .hero-card h2 { font-size: 2rem; margin-top: 28px; }
  .hero-card p { font-size: 1rem; }
  .cta .btn { flex: 1 1 100%; justify-content: center; }
  .kpis { gap: 10px; } .kpi { padding: 16px; min-height: 140px; } .kpi b { font-size: 1.7rem; margin-top: 10px; } .kpi small { font-size: .84rem; line-height: 1.3; }
  .quick { grid-template-columns: 1fr 1fr; gap: 10px; }
  .qtile { padding: 16px; min-height: 160px; }
  .qtile > div b { font-size: .95rem; line-height: 1.25; }
  .steps3 ol { grid-template-columns: 1fr; }
  .steps3 .btn { max-width: none; }
  .sec-row { margin: 24px 2px 12px; }
  .sec-row h3 { font-size: 1.12rem; }
  .sec-row .link { font-size: .82rem; }
  .card, .q-panel, .q-result { border-radius: 22px; }
  .q-panel, .q-result { padding: 18px; }
  .opt label { padding: 14px 14px 14px 44px; }
  .opt label b { font-size: .95rem; }
  .btn { min-height: 48px; }
  .btn.sm { min-height: 40px; }
  .duo .ai-card h3 { font-size: 1.15rem; }
  .feat-item img { width: 72px; height: 56px; }
  .foot { padding-bottom: 20px; }
  .price-dock { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(92px + env(safe-area-inset-bottom)); padding: 10px 10px 10px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(0,0,0,.18); transition: transform .35s var(--ease), opacity .3s; }
  .price-dock small { display: block; font-size: .7rem; font-weight: 700; color: var(--muted); }
  .price-dock b { font-size: 1.05rem; letter-spacing: -.02em; }
  .price-dock.hide { opacity: 0; transform: translateY(20px); pointer-events: none; }
  #v-cotizador[hidden] ~ .price-dock, .view[hidden] .price-dock { display: none; }
  .det-explain p { font-size: .9rem; }
  .catalog { margin-top: 4px; }
}

/* ==================== HERO PC (estilo vitrina con paisaje) ==================== */
.d-only { display: none; }
.hero-mini { display: none !important; }
@media (min-width: 1181px) {
  .d-only { display: block; }
  .home-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .kpi { min-height: 150px; }
  .hero-card { min-height: 600px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr auto; align-items: end; border-radius: 34px; }
  .hero-card .glow, .hero-card .gridlines { display: none; }
  .scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
  .sky { position: absolute; inset: 0; background: linear-gradient(180deg, #0a0f1f 0%, #0d2a6e 45%, #1f5fd8 72%, #9fe0ff 100%); }
  .sun { position: absolute; width: 560px; height: 560px; left: 50%; bottom: -120px; translate: -50% 0; border-radius: 50%; background: radial-gradient(circle, rgba(188,255,94,.55), rgba(188,255,94,0) 62%); filter: blur(6px); animation: breathe 9s ease-in-out infinite; }
  .stars { position: absolute; inset: 0 0 45% 0; background-image: radial-gradient(1px 1px at 12% 20%, #fff, transparent), radial-gradient(1px 1px at 30% 8%, #fff, transparent), radial-gradient(1.5px 1.5px at 62% 15%, #fff, transparent), radial-gradient(1px 1px at 78% 28%, #fff, transparent), radial-gradient(1px 1px at 90% 10%, #fff, transparent), radial-gradient(1px 1px at 45% 30%, #fff, transparent); opacity: .7; }
  .mt { position: absolute; left: -2%; width: 104%; bottom: 0; height: 62%; transition: transform .6s var(--ease); }
  .mt path { fill: currentColor; }
  .mt1 { color: rgba(40,70,140,.55); } .mt2 { color: rgba(24,26,27,.72); height: 50%; } .mt3 { color: #181A1B; height: 34%; }
  .hero-filter { grid-column: 1 / -1; justify-self: center; margin-top: 22px; display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 18px; border-radius: 22px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); box-shadow: 0 20px 50px rgba(0,0,0,.25); z-index: 3; }
  .hero-filter label { display: flex; flex-direction: column; padding: 4px 16px 4px 0; margin-right: 10px; border-right: 1px solid rgba(255,255,255,.2); }
  .hero-filter small { font-size: .68rem; font-weight: 700; color: rgba(255,255,255,.7); }
  .hero-filter select { background: transparent; border: 0; color: #fff; font-weight: 800; font-size: .95rem; padding: 2px 0; outline: none; cursor: pointer; }
  .hero-filter select option { color: #181A1B; }
  .hero-filter .btn { min-height: 48px; }
  .hero-giant { position: absolute; left: 0; right: 0; top: 108px; text-align: center; font-size: clamp(4rem, 8.4vw, 8.4rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: rgba(255,255,255,.2); -webkit-text-stroke: 1px rgba(255,255,255,.18); pointer-events: none; z-index: 0; }
  .hero-card > .pill, .hero-card > h2, .hero-card > p, .hero-card > .cta { grid-column: 1; position: relative; z-index: 2; margin-left: 40px; }
  .hero-card > .pill { grid-row: 2; align-self: end; margin-bottom: 16px; }
  .hero-card > h2 { font-size: clamp(2rem, 3.2vw, 2.9rem); margin-top: 0; max-width: 560px; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
  .hero-card > p { max-width: 500px; color: #dfe6f3; text-shadow: 0 2px 16px rgba(0,0,0,.4); }
  .hero-card > .cta { margin-bottom: 40px; }
  .glass-card { position: absolute; z-index: 3; border-radius: 26px; padding: 20px; color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); box-shadow: 0 24px 60px rgba(0,0,0,.28); transition: transform .4s var(--ease), background .3s; }
  .glass-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.2); }
  .glass-card b { display: block; font-size: 1.05rem; }
  .glass-card p { margin: 6px 0 12px; font-size: .84rem; color: rgba(255,255,255,.82); line-height: 1.5; }
  .gc-right { right: 32px; bottom: 32px; width: 320px; }
  .gc-left { right: 372px; bottom: 32px; width: 300px; background: rgba(255,255,255,.92); color: var(--ink-0); }
  .gc-left p { color: #4b5058; }
  .gc-left:hover { background: #fff; }
  .gc-row { display: flex; align-items: center; gap: 12px; }
  .gc-num { font-size: 2.4rem; font-weight: 800; letter-spacing: -.05em; }
  .gc-thumbs { display: flex; } .gc-thumbs img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; margin-left: -10px; } .gc-thumbs img:first-child { margin-left: 0; }
  .gc-go { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-0); color: var(--lime); flex: none; }
  .gc-right .gc-go { background: #fff; color: var(--ink-0); }
  .gc-go svg { width: 18px; height: 18px; transform: rotate(-45deg); }
  .gc-head { display: flex; align-items: center; gap: 10px; }
  .gc-loc { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: .78rem; color: rgba(255,255,255,.8); }
  .gc-loc svg { width: 14px; height: 14px; }
  .gc-meta { display: flex; gap: 8px; flex-wrap: wrap; } .gc-meta span { font-size: .74rem; font-weight: 700; padding: 6px 10px; border-radius: 99px; background: rgba(255,255,255,.16); }
}
@media (min-width: 1181px) and (max-width: 1499px) { .gc-left { display: none; } .hero-giant { font-size: 6rem; } }
/* ajustes: etiqueta del hero y menú lateral en pantallas bajas */
.rail-nav > * { flex-shrink: 0; }
@media (min-width: 1181px) { .hero-card > .pill { justify-self: start; width: max-content; } }
@media (min-width: 901px) and (max-height: 860px) {
  .promo { display: none; }
  .rail-nav a { height: 40px; } .indicator { height: 40px; }
  .rail-nav .grp { margin: 8px 0 4px; }
}

/* ==================== TEMA BLANCO · VIDRIO · MONOCROMO ====================
   Blanco y vidrio esmerilado, texto negro, sin azules. El lima solo como detalle. */
html[data-theme="light"] {
  --bg: #eceef0; --surface: rgba(255,255,255,.72); --surface-2: rgba(246,247,248,.85);
  --ink: #181A1B; --ink-2: #3d4147; --muted: #6f747b; --line: rgba(24,26,27,.08);
  --accent: #181A1B; --blue: #181A1B;
  --rail: rgba(255,255,255,.62); --rail-ink: #181A1B; --rail-muted: #6f747b;
  --shadow: 0 1px 2px rgba(24,26,27,.04), 0 10px 30px rgba(24,26,27,.06);
  --shadow-lg: 0 30px 70px rgba(24,26,27,.14);
}
html[data-theme="light"] body {
  background:
    radial-gradient(900px 600px at 10% -10%, #ffffff 0%, rgba(255,255,255,0) 60%),
    radial-gradient(800px 700px at 100% 0%, #f7f8f9 0%, rgba(247,248,249,0) 55%),
    radial-gradient(1000px 800px at 60% 110%, #e3e6e9 0%, rgba(227,230,233,0) 60%),
    var(--bg);
  background-attachment: fixed;
}
html[data-theme="light"] .card, html[data-theme="light"] .topbar, html[data-theme="light"] .steps3, html[data-theme="light"] .how {
  background: rgba(255,255,255,.7); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255,255,255,.85); box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, var(--shadow);
}
html[data-theme="light"] .card::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.7), transparent 45%); }
/* barra lateral de vidrio blanco */
html[data-theme="light"] .rail { background: rgba(255,255,255,.62); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%); box-shadow: 0 20px 50px rgba(24,26,27,.10), inset 0 0 0 1px rgba(255,255,255,.9); }
html[data-theme="light"] .rail::before { background: none; }
html[data-theme="light"] .search-pill { background: rgba(24,26,27,.05); border-color: rgba(24,26,27,.06); color: var(--muted); }
html[data-theme="light"] .search-pill:hover { background: rgba(24,26,27,.08); color: var(--ink); border-color: rgba(24,26,27,.12); }
html[data-theme="light"] kbd { background: #fff; border-color: rgba(24,26,27,.1); color: var(--muted); }
html[data-theme="light"] .rail-nav .grp { color: #9a9fa6; }
html[data-theme="light"] .rail-nav a.active { color: #fff; }
html[data-theme="light"] .rail-nav a.active svg { color: var(--lime); }
html[data-theme="light"] .indicator { background: var(--ink); box-shadow: 0 8px 20px rgba(24,26,27,.18); }
html[data-theme="light"] .indicator::before { display: none; }
html[data-theme="light"] .dot-live { box-shadow: 0 0 0 2px #fff, 0 0 8px var(--ok); }
html[data-theme="light"] .badge { background: rgba(24,26,27,.06); color: var(--ink); }
html[data-theme="light"] .brand-mark { background: var(--ink); color: var(--lime); box-shadow: 0 8px 20px rgba(24,26,27,.2); }
html[data-theme="light"] .brand-name b { color: var(--muted); }
html[data-theme="light"] .promo { background: rgba(255,255,255,.7); border-color: rgba(24,26,27,.06); }
html[data-theme="light"] .promo p { color: var(--muted); }
html[data-theme="light"] .rail-link:hover { background: rgba(24,26,27,.05); }
html[data-theme="light"] .collapse { background: #fff; }
/* botones: principal negro, lima solo como detalle */
html[data-theme="light"] .btn-accent, html[data-theme="light"] .ai-form .btn { background: var(--ink); color: #fff; box-shadow: 0 12px 28px rgba(24,26,27,.22); }
html[data-theme="light"] .btn-accent svg { color: var(--lime); }
html[data-theme="light"] .btn-accent:hover { box-shadow: 0 16px 36px rgba(24,26,27,.3); }
html[data-theme="light"] .btn-glass { background: rgba(255,255,255,.55); color: var(--ink); border-color: rgba(255,255,255,.9); backdrop-filter: blur(14px); }
html[data-theme="light"] .btn-soft { background: rgba(255,255,255,.7); }
html[data-theme="light"] .link { color: var(--ink); }
html[data-theme="light"] .eyebrow { color: var(--muted); }
html[data-theme="light"] .grad { background: none; color: var(--muted); -webkit-text-fill-color: currentColor; }
html[data-theme="light"] .mini-stat b, html[data-theme="light"] .step b { background: none; color: var(--ink); -webkit-text-fill-color: currentColor; }
html[data-theme="light"] .q-title b, html[data-theme="light"] .steps3 .n { background: var(--ink) !important; color: #fff !important; }
html[data-theme="light"] .steps3 li:first-child .n { background: var(--lime) !important; color: var(--ink) !important; }
html[data-theme="light"] .ki { --c: var(--ink) !important; color: var(--ink); background: rgba(24,26,27,.06); }
html[data-theme="light"] .faq-list details[open] summary::after { background: var(--ink); color: #fff; }
html[data-theme="light"] .explain .ej, html[data-theme="light"] .term .ej, html[data-theme="light"] .det-explain .ej { border-left-color: var(--ink); }
html[data-theme="light"] .opt label::before { border-color: #c3c7cc; }
/* estadísticas: una negra, el resto vidrio blanco */
html[data-theme="light"] .kpis .kpi:nth-child(1) { background: var(--ink); color: #fff; }
html[data-theme="light"] .kpis .kpi:nth-child(1) .ki { background: rgba(255,255,255,.1); color: var(--lime); }
html[data-theme="light"] .kpis .kpi:nth-child(n+2) { background: rgba(255,255,255,.7); color: var(--ink); border: 1px solid rgba(255,255,255,.9); }
html[data-theme="light"] .kpis .kpi:nth-child(n+2) small { color: var(--muted); }
html[data-theme="light"] .kpis .kpi:nth-child(n+2) .ki { background: rgba(24,26,27,.06); color: var(--ink); }
/* hero claro con montañas brumosas */
html[data-theme="light"] .hero-card { background: linear-gradient(180deg, #f7f8f9 0%, #e9ecef 100%); color: var(--ink); box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.9); }
html[data-theme="light"] .hero-card .glow { background: radial-gradient(circle, rgba(255,255,255,.9), rgba(255,255,255,0) 60%); }
html[data-theme="light"] .hero-card .gridlines { background-image: linear-gradient(rgba(24,26,27,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(24,26,27,.04) 1px, transparent 1px); }
html[data-theme="light"] .hero-card p { color: var(--ink-2); text-shadow: none; }
html[data-theme="light"] .hero-card > h2 { text-shadow: none; }
html[data-theme="light"] .hero-card .pill { background: rgba(255,255,255,.7); border-color: rgba(255,255,255,.95); color: var(--ink); backdrop-filter: blur(10px); }
html[data-theme="light"] .sky { background: linear-gradient(180deg, #fbfbfc 0%, #eef0f2 45%, #dde1e5 75%, #f4f5f6 100%); }
html[data-theme="light"] .sun { background: radial-gradient(circle, rgba(255,255,255,.95), rgba(255,255,255,0) 62%); }
html[data-theme="light"] .stars { display: none; }
html[data-theme="light"] .mt1 { color: rgba(176,182,190,.55); }
html[data-theme="light"] .mt2 { color: rgba(140,147,156,.55); }
html[data-theme="light"] .mt3 { color: rgba(255,255,255,.85); }
html[data-theme="light"] .hero-giant { color: rgba(255,255,255,.75); -webkit-text-stroke: 1px rgba(24,26,27,.06); text-shadow: 0 10px 40px rgba(24,26,27,.08); }
html[data-theme="light"] .hero-filter { background: rgba(255,255,255,.7); border-color: rgba(255,255,255,.95); box-shadow: 0 20px 50px rgba(24,26,27,.1); }
html[data-theme="light"] .hero-filter small { color: var(--muted); }
html[data-theme="light"] .hero-filter select { color: var(--ink); }
html[data-theme="light"] .hero-filter label { border-right-color: rgba(24,26,27,.1); }
html[data-theme="light"] .glass-card { background: rgba(255,255,255,.6); border-color: rgba(255,255,255,.95); color: var(--ink); box-shadow: 0 24px 60px rgba(24,26,27,.12); }
html[data-theme="light"] .glass-card p, html[data-theme="light"] .gc-loc { color: var(--ink-2); }
html[data-theme="light"] .gc-left { background: rgba(255,255,255,.85); }
html[data-theme="light"] .gc-right .gc-go { background: var(--ink); color: var(--lime); }
html[data-theme="light"] .gc-meta span { background: rgba(24,26,27,.06); }
/* oscuros que quedan (contraste elegante): IA, modelo socio, banner, ROI */
html[data-theme="light"] .chat-demo .u { background: var(--ink); }
html[data-theme="light"] .opt input:checked + label { border-color: var(--ink); background: rgba(255,255,255,.95); }
html[data-theme="light"] .opt input:checked + label::before { border-color: var(--ink); background: var(--ink); }
html[data-theme="light"] .pcard { background: rgba(255,255,255,.75); }
html[data-theme="light"] .pcard.sel { border-color: var(--ink); }
html[data-theme="light"] .cat-banner { background: rgba(255,255,255,.6); }
html[data-theme="light"] .ban-tag { background: var(--ink); color: var(--lime); box-shadow: none; }
html[data-theme="light"] .det-wm { color: rgba(255,255,255,.6); -webkit-text-stroke: 2px rgba(24,26,27,.06); }
html[data-theme="light"] .swipe { background: var(--ink); }
html[data-theme="light"] .filters button.on, html[data-theme="light"] .roi-presets button.on { background: var(--ink); color: #fff; }
/* orbe de IA en grises con un toque lima */
.orb i, .ai-fab::before, .vz-orb, .avatar-xl::before { background: conic-gradient(from 0deg, #181A1B, #8d939a, #ffffff, #BCFF5E, #181A1B); }
.orb::before { background: radial-gradient(circle, rgba(188,255,94,.25), transparent 65%); }
/* barra inferior móvil de vidrio blanco */
@media (max-width: 900px) {
  html[data-theme="light"] .mtab { background: rgba(255,255,255,.72); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%); box-shadow: 0 16px 40px rgba(24,26,27,.14), inset 0 0 0 1px rgba(255,255,255,.9); }
  html[data-theme="light"] .mtab a, html[data-theme="light"] .mtab > button { color: #7d828a; }
  html[data-theme="light"] .mtab a.active { color: var(--ink); }
  html[data-theme="light"] .mtab a.active svg { color: var(--ink); }
  html[data-theme="light"] .mtab .mtab-ai { background: var(--ink); box-shadow: 0 10px 28px rgba(24,26,27,.3), 0 0 0 5px var(--bg); }
  html[data-theme="light"] .scrim { background: rgba(236,238,240,.5); }
  html[data-theme="light"] .price-dock { background: rgba(255,255,255,.82); backdrop-filter: blur(18px); }
}
@media (max-width: 1180px) {
  html[data-theme="light"] .hero-card .glow { opacity: .8; }
}
/* la tarjeta promo solo en pantallas altas, para que nunca tape el menú */
@media (min-width: 901px) and (max-height: 1000px) { .promo { display: none; } }
.stage { overflow-x: clip; }
/* ==================== CATÁLOGO EN CELULAR: detalle como pantalla aparte ==================== */
@media (max-width: 1100px) {
  .cat-detail { display: none; }
  .catalog.detail-open .cat-detail {
    display: flex; flex-direction: column; position: fixed; z-index: 80; inset: 0; border-radius: 0; margin: 0;
    padding: calc(16px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto;
    background: rgba(250,250,251,.92); backdrop-filter: blur(26px) saturate(160%); -webkit-backdrop-filter: blur(26px) saturate(160%);
    animation: detSlide .45s var(--ease) both;
  }
  [data-theme="dark"] .catalog.detail-open .cat-detail { background: rgba(15,16,17,.94); }
  .catalog.detail-open .det-back { visibility: visible; }
  .catalog.detail-open .det-stage { flex: 1; min-height: 340px; }
  .catalog.detail-open .det-bottom { margin-top: auto; }
  body:has(.catalog.detail-open) .mtab, body:has(.catalog.detail-open) .ai-fab { display: none; }
}
@keyframes detSlide { from { opacity: 0; transform: translateX(30px); } }
@media (max-width: 1100px) {
  .catalog.detail-open .cat-detail, html[data-theme="light"] .catalog.detail-open .cat-detail { background: #f6f7f8; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; border: 0; }
  [data-theme="dark"] .catalog.detail-open .cat-detail { background: #0f1011; }
  .catalog.detail-open .det-stage { grid-template-columns: 88px 1fr; min-height: 0; flex: none; }
  .catalog.detail-open .det-visual { height: 250px; }
  .catalog.detail-open .det-extras { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
  .catalog.detail-open .det-extras small { width: 100%; text-align: left; }
  .catalog.detail-open .det-extras button { padding: 9px 12px; border-radius: 99px; font-size: .82rem; }
  .catalog.detail-open .det-extras button span { display: inline !important; }
  .catalog.detail-open .det-sizes button { font-size: .82rem; padding: 11px 6px; }
  .catalog.detail-open .det-tier { text-align: left; margin-top: 6px; }
}

/* equivalente en pesos, chico y debajo del precio en USD */
.ars-mini { display: block; font-size: .72rem !important; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-top: 1px; }
.pfoot .ars-mini { font-size: .68rem !important; }
.ban-price { display: inline-flex; flex-direction: column; }
.price-dock .ars-mini { font-size: .68rem !important; }
.opt label .ars-mini { margin-top: 0; }

/* ==================== DESPLEGABLES ESTILO SHADCN ==================== */
.sel { position: relative; }
.sel-native { position: absolute !important; opacity: 0 !important; pointer-events: none !important; width: 1px !important; height: 1px !important; }
.sel-trigger { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 600; text-align: left; transition: border-color .2s, box-shadow .2s; }
.sel-trigger:hover { border-color: rgba(24,26,27,.2); }
.sel-trigger:focus-visible, .sel.open .sel-trigger { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(24,26,27,.08); }
.sel-val.ph { color: var(--muted); font-weight: 500; }
.sel-chev svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform .25s var(--ease); color: var(--muted); }
.sel.open .sel-chev svg { transform: rotate(180deg); }
.sel-list { position: absolute; z-index: 120; left: 0; top: calc(100% + 6px); min-width: 100%; width: max-content; max-width: 320px; max-height: 280px; overflow-y: auto; padding: 4px; border-radius: 14px; background: #fff; border: 1px solid rgba(24,26,27,.1); box-shadow: 0 16px 40px rgba(24,26,27,.16), 0 2px 6px rgba(24,26,27,.06); opacity: 0; transform: translateY(-4px) scale(.97); transform-origin: top; pointer-events: none; transition: opacity .15s, transform .18s var(--ease); }
.sel.up .sel-list { top: auto; bottom: calc(100% + 6px); transform-origin: bottom; }
.sel.open .sel-list { opacity: 1; transform: none; pointer-events: auto; }
[data-theme="dark"] .sel-list { background: #1d1f21; border-color: rgba(255,255,255,.08); }
.sel-opt { display: flex; align-items: center; gap: 8px; padding: 9px 10px 9px 6px; border-radius: 9px; font-size: .9rem; font-weight: 500; color: var(--ink); cursor: pointer; outline: none; white-space: nowrap; }
.sel-opt:hover, .sel-opt:focus { background: rgba(24,26,27,.06); }
[data-theme="dark"] .sel-opt:hover, [data-theme="dark"] .sel-opt:focus { background: rgba(255,255,255,.07); }
.sel-opt.on { font-weight: 700; }
.sel-check { width: 18px; height: 18px; display: grid; place-items: center; flex: none; }
.sel-check svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
/* dentro de la barra de filtros del hero: trigger sin borde, como texto */
.hero-filter .sel-trigger { min-height: 0; padding: 2px 0; border: 0; background: none; box-shadow: none !important; font-weight: 800; font-size: .95rem; gap: 6px; }
.hero-filter .sel-chev svg { color: currentColor; }
.hero-filter .sel-list { left: -14px; top: calc(100% + 14px); }
.fields .sel-trigger { background: var(--surface-2); }

/* ==================== BOTÓN FLOTANTE "TU PRESUPUESTO" ==================== */
.price-dock { display: none !important; }
.calc { position: fixed; z-index: 55; left: 50%; bottom: 22px; transform: translateX(-50%); width: min(440px, calc(100vw - 24px)); }
@media (min-width: 901px) { .calc { left: calc(var(--rail-w) + 28px + (100vw - var(--rail-w) - 28px) / 2); width: min(420px, 40vw); } }
@media (max-width: 900px) { .calc { bottom: calc(92px + env(safe-area-inset-bottom)); } }
.calc-bar { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px 10px 10px; border-radius: 20px; background: var(--ink-0); color: #fff; box-shadow: 0 18px 44px rgba(24,26,27,.32); text-align: left; transition: transform .25s var(--ease); }
.calc-bar:hover { transform: translateY(-2px); }
.calc-ico { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--lime); color: var(--ink-0); flex: none; }
.calc-ico svg { width: 20px; height: 20px; }
.calc-txt { flex: 1; min-width: 0; }
.calc-txt small { display: block; font-size: .7rem; font-weight: 700; color: #a3a8b0; }
.calc-txt b { display: block; font-size: 1.12rem; letter-spacing: -.02em; line-height: 1.2; }
.calc-txt .ars-mini { color: #a3a8b0; font-size: .7rem !important; }
.calc-chev svg { width: 20px; height: 20px; transform: rotate(90deg); transition: transform .3s var(--ease); color: #a3a8b0; }
.calc.open .calc-chev svg { transform: rotate(-90deg); }
.calc.bump .calc-bar { animation: bump .5s var(--ease); }
.calc.bump .calc-ico { animation: pulseLime .7s ease; }
@keyframes bump { 30% { transform: scale(1.03); } }
@keyframes pulseLime { 0% { box-shadow: 0 0 0 0 rgba(188,255,94,.7); } 100% { box-shadow: 0 0 0 14px rgba(188,255,94,0); } }
.calc-panel { position: absolute; left: 0; right: 0; bottom: calc(100% + 10px); padding: 16px; border-radius: 22px; background: rgba(255,255,255,.94); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%); border: 1px solid rgba(24,26,27,.08); box-shadow: 0 30px 70px rgba(24,26,27,.22); opacity: 0; transform: translateY(12px) scale(.97); transform-origin: bottom center; pointer-events: none; transition: opacity .2s, transform .3s var(--ease); max-height: min(60vh, 520px); overflow-y: auto; }
[data-theme="dark"] .calc-panel { background: rgba(24,26,27,.96); border-color: rgba(255,255,255,.08); }
.calc.open .calc-panel { opacity: 1; transform: none; pointer-events: auto; }
.calc-head b { display: block; font-size: 1rem; }
.calc-head small { color: var(--muted); font-size: .76rem; font-weight: 600; }
.calc-items { list-style: none; margin: 12px 0 8px; padding: 0; }
.calc-items li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .88rem; animation: rv .35s var(--ease) both; }
.calc-items li > span:last-child { text-align: right; white-space: nowrap; }
.calc-items li b { display: block; }
.calc-items li small { display: block; font-size: .7rem; color: var(--muted); font-weight: 600; }
.calc-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.calc-meta span { font-size: .76rem; font-weight: 700; padding: 6px 10px; border-radius: 99px; background: rgba(24,26,27,.06); }
.calc-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.calc-acts .btn { padding: 10px; font-size: .82rem; }
#v-cotizador .q-result { scroll-margin-top: 90px; }
@media (min-width: 1181px) { #v-cotizador .quote { padding-bottom: 90px; } }
@media (max-width: 900px) { #v-cotizador { padding-bottom: 80px; } }

/* ==================== VIDRIO REAL (tema claro) ====================
   Fondo con formas suaves para que el desenfoque se note + vidrio con borde de luz,
   brillo especular superior y grano fino de vidrio esmerilado. */
html[data-theme="light"] {
  --grain: 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='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --glass-fill: linear-gradient(135deg, rgba(255,255,255,.62) 0%, rgba(255,255,255,.34) 55%, rgba(255,255,255,.46) 100%);
  --glass-edge: linear-gradient(135deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.35) 35%, rgba(255,255,255,.12) 60%, rgba(255,255,255,.7) 100%);
  --glass-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(255,255,255,.25), inset 0 12px 24px -16px rgba(255,255,255,.9), 0 2px 6px rgba(24,26,27,.04), 0 18px 48px -12px rgba(24,26,27,.14);
}
/* escena de fondo que se ve a través del vidrio */
html[data-theme="light"] body::before {
  content: ""; position: fixed; inset: -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 32% at 18% 22%, rgba(255,255,255,1), transparent 70%),
    radial-gradient(30% 28% at 82% 14%, rgba(205,210,216,.75), transparent 70%),
    radial-gradient(34% 30% at 72% 78%, rgba(188,255,94,.18), transparent 70%),
    radial-gradient(28% 26% at 30% 85%, rgba(186,192,199,.6), transparent 70%),
    radial-gradient(22% 22% at 52% 48%, rgba(255,236,214,.35), transparent 70%);
  filter: blur(20px); animation: fondoVidrio 28s ease-in-out infinite alternate;
}
@keyframes fondoVidrio { to { transform: translate(-3%, 2%) rotate(3deg) scale(1.05); } }
/* superficie de vidrio */
html[data-theme="light"] .card, html[data-theme="light"] .topbar, html[data-theme="light"] .rail,
html[data-theme="light"] .glass-card, html[data-theme="light"] .hero-filter, html[data-theme="light"] .steps3, html[data-theme="light"] .how,
html[data-theme="light"] .kpis .kpi:nth-child(n+2), html[data-theme="light"] .cat-banner, html[data-theme="light"] .pcard, html[data-theme="light"] .calc-panel {
  border: 1px solid transparent;
  background: var(--grain) padding-box, var(--glass-fill) padding-box, var(--glass-edge) border-box;
  background-size: 160px 160px, auto, auto;
  backdrop-filter: blur(28px) saturate(185%) brightness(1.04); -webkit-backdrop-filter: blur(28px) saturate(185%) brightness(1.04);
  box-shadow: var(--glass-shadow);
}
/* el grano no debe verse "sucio": muy sutil */
html[data-theme="light"] .card, html[data-theme="light"] .topbar, html[data-theme="light"] .rail, html[data-theme="light"] .glass-card,
html[data-theme="light"] .hero-filter, html[data-theme="light"] .steps3, html[data-theme="light"] .pcard, html[data-theme="light"] .cat-banner { background-blend-mode: soft-light, normal, normal; }
html[data-theme="light"] .rail { --glass-fill: linear-gradient(160deg, rgba(255,255,255,.7), rgba(255,255,255,.42)); }
html[data-theme="light"] .topbar { --glass-fill: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.45)); }
/* tarjetas sobre el paisaje del hero: más transparentes para que se vea la montaña detrás */
html[data-theme="light"] .glass-card, html[data-theme="light"] .hero-filter { --glass-fill: linear-gradient(135deg, rgba(255,255,255,.5), rgba(255,255,255,.18) 60%, rgba(255,255,255,.32)); }
html[data-theme="light"] .gc-left { --glass-fill: linear-gradient(135deg, rgba(255,255,255,.78), rgba(255,255,255,.5)); }
html[data-theme="light"] .hero-card { background: linear-gradient(180deg, rgba(250,250,251,.9), rgba(233,236,239,.85)); }
/* hover: el vidrio "levanta" luz */
html[data-theme="light"] .card:hover, html[data-theme="light"] .pcard:hover, html[data-theme="light"] .glass-card:hover {
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(255,255,255,.35), inset 0 16px 30px -18px #fff, 0 4px 10px rgba(24,26,27,.05), 0 28px 60px -14px rgba(24,26,27,.2);
}
/* botones de vidrio */
html[data-theme="light"] .btn-glass, html[data-theme="light"] .btn-soft, html[data-theme="light"] .icon-btn, html[data-theme="light"] .chip-dolar, html[data-theme="light"] .hero-card .pill {
  border: 1px solid transparent; background: linear-gradient(135deg, rgba(255,255,255,.75), rgba(255,255,255,.4)) padding-box, var(--glass-edge) border-box;
  backdrop-filter: blur(16px) saturate(170%); -webkit-backdrop-filter: blur(16px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 6px 16px -6px rgba(24,26,27,.14);
}
/* los oscuros (botón principal, pastilla activa, KPI negro) también con reflejo */
html[data-theme="light"] .btn-accent, html[data-theme="light"] .btn-dark, html[data-theme="light"] .indicator, html[data-theme="light"] .kpis .kpi:nth-child(1), html[data-theme="light"] .calc-bar {
  background-image: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0) 45%); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 14px 30px -10px rgba(24,26,27,.45);
}
html[data-theme="light"] .kpis .kpi:nth-child(1) { background-color: var(--ink-0); }
html[data-theme="light"] .btn-accent, html[data-theme="light"] .btn-dark { background-color: var(--ink-0); }
html[data-theme="light"] .indicator { background-color: var(--ink-0); }
html[data-theme="light"] .calc-bar { background-color: var(--ink-0); }
@media (max-width: 900px) {
  html[data-theme="light"] .mtab { border: 1px solid transparent; background: var(--grain) padding-box, linear-gradient(135deg, rgba(255,255,255,.7), rgba(255,255,255,.4)) padding-box, var(--glass-edge) border-box; background-size: 160px 160px, auto, auto; background-blend-mode: soft-light, normal, normal; backdrop-filter: blur(26px) saturate(185%); -webkit-backdrop-filter: blur(26px) saturate(185%); box-shadow: var(--glass-shadow); }
}
@media (prefers-reduced-motion: reduce) { html[data-theme="light"] body::before { animation: none; } }

/* ==================== MÉTRICAS Y GRÁFICOS ==================== */
.svc .price-tag { flex-wrap: wrap; row-gap: 10px; }
.svc .price-tag b { white-space: nowrap; }
.metric { margin: 4px 0 6px; padding: 14px; border-radius: 18px; background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.9); box-shadow: inset 0 1px 0 #fff; }
[data-theme="dark"] .metric { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.06); box-shadow: none; }
.metric-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.metric-head b { font-size: .84rem; }
.delta { flex: none; font-size: .74rem; font-weight: 800; padding: 4px 9px; border-radius: 99px; background: var(--lime); color: var(--ink-0); }
.metric-chart { display: grid; place-items: center; min-height: 96px; }
.metric-ba { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1rem; margin-top: 4px; }
.metric-ba small { display: block; font-size: .66rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.metric-ba .arrow { color: var(--muted); }
.metric-ba .after { color: var(--ink); }
.metric-note { display: block; margin-top: 6px; font-size: .68rem; color: var(--muted); }
.mt-svg { width: 100%; height: auto; overflow: visible; }
.mt-grid { stroke: rgba(24,26,27,.07); stroke-dasharray: 3 4; }
.mt-before { fill: none; stroke: rgba(24,26,27,.28); stroke-width: 2; stroke-dasharray: 4 4; }
.mt-line { fill: none; stroke: #5f9a12; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.mt-fill { opacity: 1; }
.mt-drop { stroke: rgba(24,26,27,.25); stroke-dasharray: 3 3; }
.mt-dot { fill: var(--ink-0); stroke: var(--lime); stroke-width: 3; }
.mt-tag { fill: var(--ink-0); }
.mt-tagt { fill: #fff; font: 800 10px var(--font); }
.mt-axis { fill: var(--muted); font: 600 9.5px var(--font); }
.b-before { fill: rgba(24,26,27,.14); }
.b-after { fill: var(--ink-0); }
.mt-gauge { width: 150px; height: auto; }
.mt-gauge line { stroke-width: 5; stroke-linecap: round; }
.g-off { stroke: rgba(24,26,27,.1); }
.g-prev { stroke: #9aa0a6; }
.g-on { stroke: #7cc21e; }
.g-val { font: 800 20px var(--font); fill: var(--ink); }
.g-sub { font: 600 8.5px var(--font); fill: var(--muted); }
/* animación de entrada de los gráficos al mostrar la vista */
.view.enter .mt-line { animation: drawLine 1.4s var(--ease) both; }
@keyframes drawLine { from { stroke-dashoffset: 1; } }
.view.enter .b-after { animation: growBar .8s var(--ease) both; animation-delay: var(--d, 0ms); transform-box: fill-box; transform-origin: bottom; }
@keyframes growBar { from { transform: scaleY(0); } }
.view.enter .g-on, .view.enter .g-prev { animation: tick .4s ease both; animation-delay: var(--d, 0ms); }
@keyframes tick { from { opacity: 0; } }
/* proyección del ROI */
.roi-graphs { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 10px; }
.roi-graphs > div { padding: 12px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.roi-graphs small { display: block; font-size: .72rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.roi-svg { width: 100%; height: auto; }
.roi-zero { stroke: rgba(24,26,27,.35); stroke-width: 1.2; }
.roi-g2 { display: flex; flex-direction: column; align-items: center; }
@media (max-width: 560px) { .roi-graphs { grid-template-columns: 1fr; } }
/* los gráficos no heredan el trazo de los íconos */
.mt-svg, .mt-gauge, .roi-svg { stroke: none; stroke-width: 0; fill: none; flex: initial; }
.mt-svg text, .mt-gauge text, .roi-svg text { stroke: none; }
/* ==================== CELULAR: SIN ZOOM Y NADA FUERA DE PANTALLA ==================== */
html { overflow-x: clip; }
html, body { max-width: 100%; overscroll-behavior-x: none; touch-action: pan-x pan-y; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
img, video, svg, canvas, iframe { max-width: 100%; }
@media (max-width: 820px) {
  /* iPhone hace zoom solo al tocar un campo con letra menor a 16px */
  input, select, textarea { font-size: 16px !important; }
  button, a, input, select, textarea, label { touch-action: manipulation; }
}

/* consultoría: precio orientativo "desde ... en adelante" */
.price-tag b em { font-style: normal; font-size: .62em; font-weight: 700; color: var(--muted); margin-left: 2px; }
.price-tag .en-adelante { display: block; font-size: .68rem; color: var(--muted); margin-top: 2px; }
/* tarjeta destacada "Socio tecnológico": oscura también en el tema blanco, para que se lea */
html .card.model.featured { background: linear-gradient(160deg, #202325, #101213) !important; color: #fff; border-color: rgba(255,255,255,.08) !important; box-shadow: 0 30px 60px -20px rgba(16,18,19,.45) !important; }
html .card.model.featured::before { background: radial-gradient(circle, rgba(188,255,94,.22), transparent 62%); }
html .card.model.featured h3, html .card.model.featured li, html .card.model.featured b { color: #fff; }
html .card.model.featured p { color: #c3c8cf; }
html .card.model.featured .tagline { background: rgba(188,255,94,.14); color: var(--lime); }
html .card.model.featured .btn { background: var(--lime); color: #101213; box-shadow: none; }
/* WhatsApp en verde con letra blanca (barra lateral y botones) */
html .rail-link.rail-wa { background: #1DAA61; color: #fff; font-weight: 700; box-shadow: 0 8px 18px -8px rgba(29,170,97,.7); }
html .rail-link.rail-wa:hover, html .rail-link.rail-wa:focus-visible { background: #179652; color: #fff; }
html .rail-link.rail-wa svg { color: #fff; stroke: #fff; }
html .btn.btn-wa { background: #1DAA61; color: #fff; border-color: transparent; }
html .btn.btn-wa:hover { background: #179652; color: #fff; }
html .btn.btn-wa svg { stroke: #fff; }
html .card.model.featured li::before { color: var(--lime); border-color: var(--lime); }

/* cotizador: sugerencias que van apareciendo */
.q-sug { margin-top: 14px; }
.q-sug:empty { display: none; }
.q-sug-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.q-sug-head b { font-size: .9rem; }
.q-sug-head small { color: var(--muted); font-size: .74rem; }
.q-sug-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 14px; margin-bottom: 8px; border-radius: 16px; border: 1px dashed rgba(24,26,27,.22); background: rgba(188,255,94,.12); color: var(--ink); font: inherit; cursor: pointer; transition: transform .2s var(--ease), background .2s, border-color .2s; animation: sugIn .45s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
.q-sug-item:hover { background: rgba(188,255,94,.3); border-color: rgba(24,26,27,.4); transform: translateY(-1px); }
.q-sug-item .plus { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink-0); color: var(--lime); font-weight: 800; }
.q-sug-item .txt { flex: 1; min-width: 0; }
.q-sug-item .txt b { display: block; font-size: .86rem; line-height: 1.25; }
.q-sug-item .txt small { display: block; font-size: .74rem; color: var(--muted); }
.q-sug-item .pr { flex: none; text-align: right; font-weight: 800; font-size: .84rem; white-space: nowrap; }
.q-sug-item .pr .ars-mini { display: block; font-weight: 600; }
.q-sug-ok { margin: 0; padding: 10px 14px; border-radius: 14px; background: rgba(188,255,94,.18); font-size: .84rem; font-weight: 600; }
@keyframes sugIn { from { opacity: 0; transform: translateY(8px); } }
[data-theme="dark"] .q-sug-item { border-color: rgba(255,255,255,.2); }
/* ==================== MENÚ LATERAL EN CELULAR: completo y por encima de la barra inferior ==================== */
@media (max-width: 900px) {
  .rail { top: calc(10px + env(safe-area-inset-top)); bottom: calc(92px + env(safe-area-inset-bottom)); left: 10px; z-index: 60; padding-bottom: 10px; }
  .shell.drawer .rail { box-shadow: 0 30px 70px rgba(16,18,19,.28); }
  .rail .promo { display: none !important; }           /* la IA ya está en el botón central de abajo */
  .rail-nav { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding-bottom: 6px; }
  .rail-nav a { height: 46px; }
  .rail-link.rail-wa { margin-top: 6px; }
}

/* ==================== CHAT IA: entra en pantalla, ✕ visible y se cierra tocando afuera ==================== */
.ai-scrim { position: fixed; inset: 0; z-index: 69; background: rgba(16,18,19,.32); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade .2s; }
.ai-scrim[hidden] { display: none; }
.ai-head-btns { display: flex; gap: 6px; }
.ai-head-btns .ai-x { width: 40px; height: 40px; padding: 0; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.12); color: #fff; font-size: 1.05rem; font-weight: 700; }
.ai-panel { max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); }
@media (max-width: 900px) {
  .ai-panel { left: 8px; right: 8px; width: auto; top: calc(10px + env(safe-area-inset-top)); bottom: calc(92px + env(safe-area-inset-bottom)); height: auto; max-height: none; border-radius: 22px; }
  .ai-log { min-height: 0; }
  .ai-sug { max-height: 30%; overflow-y: auto; }
  html.ai-abierto, html.ai-abierto body { overflow: hidden; }
}

/* ==================== QUIÉN SOY: retrato profesional sin fondo ==================== */
.about-main { position: relative; overflow: hidden; isolation: isolate; }
.about-photo { margin: 0; pointer-events: none; }
.about-photo::before { content: ""; position: absolute; z-index: -1; left: 50%; bottom: 8%; width: 78%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 50% 45%, rgba(188,255,94,.55), rgba(188,255,94,.12) 55%, transparent 70%); filter: blur(6px); }
.about-photo img { display: block; width: 100%; height: auto; filter: drop-shadow(0 24px 30px rgba(16,18,19,.18)); -webkit-mask-image: linear-gradient(#000 84%, transparent); mask-image: linear-gradient(#000 84%, transparent); }
@media (min-width: 1101px) {
  .about-main { padding-right: min(36%, 360px); }
  .about-photo { position: absolute; z-index: 0; right: 0; bottom: 0; width: min(36%, 360px); }
  .about-main > :not(.about-photo) { position: relative; z-index: 1; }
}
@media (max-width: 1100px) {
  .about-photo { position: relative; width: min(260px, 70%); margin: -6px auto 14px; }
}
/* retrato de brazos cruzados: ocupa la columna derecha de la tarjeta, desde arriba */
@media (min-width: 1101px) {
  .about-main { padding-right: min(38%, 380px); min-height: 520px; }
  .about-photo { top: 18px; bottom: 0; width: min(38%, 380px); display: flex; align-items: flex-end; justify-content: center; }
  .about-photo img { width: auto; height: 100%; max-width: 100%; object-fit: contain; object-position: bottom center; }
}
@media (max-width: 1100px) { .about-photo { width: min(300px, 78%); } }
/* ajuste: el retrato va arriba a la derecha con alto fijo; la foto reemplaza al monograma "PI" */
.about-main .avatar-xl { display: none; }
@media (min-width: 1101px) {
  .about-main { min-height: 0; padding-right: min(36%, 340px); }
  .about-photo { top: 0; bottom: auto; height: 500px; width: min(36%, 340px); align-items: flex-end; }
  .about-photo img { height: 100%; width: auto; max-width: 100%; object-position: bottom center; }
  .about-photo::before { bottom: 14%; width: 86%; }
}

/* ==================== INMOBILIARIAS: producción visual y planes ==================== */
.inmo { margin-top: 18px; padding: 26px; }
.inmo-head h3 { font-size: 1.5rem; margin: 6px 0 6px; letter-spacing: -.02em; }
.inmo-head p { margin: 0; color: var(--muted); max-width: 680px; }
.inmo-servs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.inmo-serv { padding: 14px; border-radius: 16px; background: rgba(255,255,255,.6); border: 1px solid var(--line); }
.inmo-serv .ico { font-size: 1.4rem; display: block; margin-bottom: 6px; }
.inmo-serv b { display: block; font-size: .92rem; }
.inmo-serv small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.4; margin-top: 3px; }
.inmo-planes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.inmo-plan { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 18px; background: rgba(255,255,255,.7); border: 1px solid var(--line); }
.inmo-plan .tag { align-self: flex-start; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 4px 9px; border-radius: 99px; background: rgba(24,26,27,.07); }
.inmo-plan .tag.hot { background: var(--lime); color: #101213; }
.inmo-plan .pr { font-size: 1.35rem; letter-spacing: -.02em; white-space: nowrap; }
.inmo-plan .pr em { font-style: normal; font-size: .6em; color: var(--muted); margin-left: 2px; }
.inmo-plan .usd { color: var(--muted); font-size: .74rem; }
.inmo-plan p { margin: 2px 0 6px; font-size: .82rem; color: var(--muted); line-height: 1.45; flex: 1; }
.inmo-plan p b { color: var(--ink); }
.inmo-plan .btn { align-self: flex-start; }
.inmo-plan.hot { background: linear-gradient(160deg, #202325, #101213); color: #fff; border-color: transparent; }
.inmo-plan.hot .usd, .inmo-plan.hot p, .inmo-plan.hot .pr em { color: #c3c8cf; }
.inmo-plan.hot p b { color: #fff; }
.inmo-note { margin: 14px 0 0; font-size: .74rem; color: var(--muted); }
@media (max-width: 1280px) { .inmo-planes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .inmo { padding: 18px; } .inmo-servs { grid-template-columns: 1fr 1fr; } .inmo-planes { grid-template-columns: 1fr; } }

/* Quién soy: una sola tarjeta a todo el ancho, retrato grande */
.about-grid { grid-template-columns: 1fr !important; }
@media (min-width: 1101px) {
  .about-main { padding: 44px 48px; padding-right: min(44%, 520px); min-height: 600px; }
  .about-photo { height: 100%; top: 0; bottom: 0; width: min(44%, 520px); }
  .about-main h2 { font-size: clamp(2.2rem, 3.2vw, 3.2rem); }
}
@media (max-width: 1100px) { .about-photo { width: min(360px, 88%); } }
.inmo-plan.hot .btn { background: var(--lime); color: #101213; box-shadow: none; }

/* ==================== QUIÉN SOY: perfil senior ==================== */
.about-facts { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.about-facts li { padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.65); border: 1px solid var(--line); }
.about-facts b { display: block; font-size: 1.5rem; letter-spacing: -.02em; }
.about-facts span { font-size: .76rem; color: var(--muted); line-height: 1.3; display: block; }
.perfil-head { margin-top: 34px; }
.senior-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.senior { display: flex; flex-direction: column; gap: 8px; padding: 22px; }
.senior-top { display: flex; justify-content: space-between; align-items: center; }
.senior-ico { font-size: 1.6rem; }
.senior-badge { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 99px; background: var(--lime); color: #101213; }
.senior h3 { margin: 2px 0 0; font-size: 1.12rem; }
.senior-para { margin: 0; color: var(--muted); font-size: .86rem; }
.senior-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.senior-cols small { display: block; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 4px; }
.senior-cols ul { margin: 0; padding-left: 16px; font-size: .8rem; line-height: 1.45; }
.senior-cols li { margin-bottom: 4px; }
.senior-fuera { margin: auto 0 0; padding-top: 10px; border-top: 1px dashed var(--line); font-size: .78rem; color: var(--muted); }
.senior-fuera b { color: var(--ink); }
.perfil-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin: 14px 0 28px; }
.perfil-duo > .card { padding: 24px; }
.perfil-duo h3 { margin: 0 0 14px; }
.tray { list-style: none; margin: 0; padding: 0; position: relative; }
.tray::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tray li { position: relative; display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 0 0 16px 24px; }
.tray li::before { content: ""; position: absolute; left: 0; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(188,255,94,.25); }
.tr-when { font-size: .78rem; font-weight: 700; color: var(--muted); }
.tray p { margin: 3px 0 0; font-size: .82rem; color: var(--muted); }
.form-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.form-list li { padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.6); border: 1px solid var(--line); }
.form-list b { display: block; font-size: .8rem; line-height: 1.3; }
.form-list span { display: block; font-size: .72rem; color: var(--muted); margin-top: 2px; }
@media (max-width: 1280px) { .senior-grid { grid-template-columns: 1fr 1fr; } .perfil-duo { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .about-facts { grid-template-columns: 1fr 1fr; }
  .senior-grid { grid-template-columns: 1fr; } .senior-cols { grid-template-columns: 1fr; }
  .form-list { grid-template-columns: 1fr; } .tray li { grid-template-columns: 1fr; gap: 2px; }
}

/* ==================== CASOS DE ÉXITO ==================== */
.caso-body .eyebrow { display: block; margin-bottom: 6px; }
.caso-nota { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 600; }
.caso-body h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -.01em; }
.caso-mets { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.caso-mets > div { flex: 1 1 130px; padding: 12px 14px; border-radius: 16px; background: rgba(188,255,94,.18); border: 1px solid rgba(120,170,40,.25); }
.caso-mets b { display: block; font-size: 1.45rem; letter-spacing: -.02em; }
.caso-mets small { font-size: .74rem; color: var(--muted); line-height: 1.3; display: block; }
.caso .flow ul { margin: 4px 0 0; padding-left: 18px; font-size: .88rem; line-height: 1.5; }
.caso-ph { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, rgba(188,255,94,.35), transparent 55%), linear-gradient(160deg, #23272a, #0f1112); }
.caso-ph b { font-size: 4rem; color: #fff; letter-spacing: -.04em; opacity: .9; }
.caso-media.is-video { min-height: 260px; }
.caso-media iframe, .caso-media video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; background: #000; }
.caso-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; font-size: .88rem; }
.caso-link svg { width: 16px; height: 16px; }
.otros-casos { padding: 22px 24px; }
.oc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.oc-head h3 { margin: 0; }
.oc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.oc { padding: 14px; border-radius: 16px; background: rgba(255,255,255,.6); border: 1px solid var(--line); }
.oc b { display: block; }
.oc small { display: block; color: var(--muted); font-size: .74rem; margin: 2px 0 6px; }
.oc p { margin: 0; font-size: .82rem; line-height: 1.45; }
@media (max-width: 900px) { .oc-grid { grid-template-columns: 1fr; } }

/* ==================== ÍCONOS ILUSTRADOS + SENIOR SIMPLE ==================== */
.pt-ico { position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 17px; flex: none;
  background: radial-gradient(120% 120% at 20% 0%, rgba(188,255,94,.35), transparent 55%), linear-gradient(150deg, #262a2d, #0e1011);
  box-shadow: 0 12px 26px -10px rgba(16,18,19,.55), inset 0 1px 0 rgba(255,255,255,.14), inset 0 0 0 1px rgba(255,255,255,.06); overflow: hidden; }
.pt-ico::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 9px 9px; mask-image: radial-gradient(circle at 70% 80%, #000, transparent 70%); -webkit-mask-image: radial-gradient(circle at 70% 80%, #000, transparent 70%); }
.pt-ico svg { position: relative; z-index: 1; width: 30px; height: 30px; }
.pt-ico.sm { width: 44px; height: 44px; border-radius: 14px; margin-bottom: 8px; }
.pt-ico.sm svg { width: 25px; height: 25px; }
.senior { gap: 10px; padding: 22px 22px 24px; }
.senior h3 { font-size: 1.15rem; margin-top: 6px; }
.senior-por { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--muted); }
.senior-por b { color: var(--ink); }
.inmo-serv .ico { display: none; }
/* caso sin foto: tarjeta de marca con canales */
.caso-ph .ph-in { position: relative; text-align: center; padding: 24px; }
.caso-ph .ph-in b { display: block; font-size: 1.7rem; letter-spacing: -.02em; color: #fff; opacity: 1; }
.ph-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; max-width: 300px; }
.ph-chips span { font-size: .72rem; font-weight: 700; padding: 5px 10px; border-radius: 99px; background: rgba(255,255,255,.1); color: #e8ebe4; border: 1px solid rgba(255,255,255,.12); }
.ph-chips span:nth-child(-n+5) { background: rgba(188,255,94,.16); color: #dfffb0; border-color: rgba(188,255,94,.3); }
@media (min-width: 901px) { .caso { grid-template-columns: minmax(0, .75fr) minmax(0, 1.5fr); } }
.pt-ico { color: #fff; } .pt-ico svg { stroke: #fff; }

/* ==================== QUIÉN SOY: beneficios + ancho completo ==================== */
.senior-te { margin-top: 4px; padding: 14px 16px; border-radius: 16px; background: rgba(188,255,94,.14); border: 1px solid rgba(120,170,40,.22); }
.senior-te small { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #3f6b06; margin-bottom: 8px; }
.senior-te ul, .pillars-xl ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.senior-te li, .pillars-xl li { position: relative; padding-left: 22px; font-size: .88rem; line-height: 1.45; }
.senior-te li::before, .pillars-xl li::before { content: ""; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink-0) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.4 2.4L12 5' fill='none' stroke='%23BCFF5E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat; }
.senior { padding: 24px; }
.senior-por { font-size: .86rem; }
.pillars.pillars-xl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pillars-xl .pillar { padding: 24px; gap: 10px; }
.pillars-xl .pillar h3 { font-size: 1.3rem; }
.pillars-xl .pillar .link { margin-top: auto; align-self: flex-start; }
.pill-step { font-size: 1.6rem; font-weight: 800; color: rgba(24,26,27,.12); letter-spacing: -.03em; }
.skills-xl { padding: 26px; }
.skill-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 22px; }
.skill-groups small { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
@media (max-width: 1100px) { .pillars.pillars-xl, .skill-groups { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .pillars.pillars-xl, .skill-groups { grid-template-columns: 1fr; } }
/* banner de diagnóstico: oscuro también en el tema blanco, para que se lea */
html .card.banner { background: linear-gradient(150deg, #202325, #0f1112) !important; color: #fff; border-color: rgba(255,255,255,.06) !important; }
html .card.banner h3 { color: #fff; }
html .card.banner p { color: #c3c8cf; }
html .card.banner .eyebrow { color: var(--lime); }
html .card.banner::before { background: radial-gradient(circle, rgba(188,255,94,.25), transparent 62%); }
html .card.banner .btn { background: var(--lime); color: #101213; box-shadow: none; }
.oc-grid.solo { grid-template-columns: 1fr; }

.proj .media .estado { position: absolute; right: 12px; top: 12px; font-size: .7rem; font-weight: 800; padding: 6px 10px; border-radius: 99px; background: var(--lime); color: #101213; }
/* ==================== CELULAR Y TABLET: más compacto y prolijo ==================== */
@media (max-width: 900px) {
  /* "Te encuentran → Te eligen → ...": en columna, sin huecos (antes cada paso medía 170px de alto) */
  .how { gap: 4px; padding: 12px; }
  .how-step { flex: 0 0 auto; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; row-gap: 0; align-items: center; padding: 8px 6px; }
  .how-step .ki { grid-row: span 2; margin: 0; }
  .how-step b { font-size: .98rem; }
  .how-arrow { width: 16px; height: 16px; margin: 0 0 0 20px; }
  /* calculadora de ROI */
  .roi { padding: 18px; }
  .roi-presets { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 0 18px 4px; }
  .roi-presets::-webkit-scrollbar { display: none; }
  .roi-presets button { flex: none; }
  .roi-form { grid-template-columns: 1fr 1fr !important; gap: 8px; }
  .roi-field { padding: 10px 12px; gap: 2px; }
  .roi-field span { font-size: .7rem; line-height: 1.25; min-height: 2.5em; display: flex; align-items: flex-end; }
  .roi-field input { font-size: 16px; }
  .roi-kpis { gap: 8px; }
  /* tarjetas en general: un poco menos de aire en pantallas chicas */
  .card { border-radius: 22px; }
  .view-head h2 { font-size: clamp(1.7rem, 7vw, 2.3rem); }
}
@media (min-width: 600px) and (max-width: 1100px) {
  /* tablet: aprovechar el ancho con 2 columnas */
  .senior-grid, .svc-grid, .consult-grid, .sector-grid, .oc-grid:not(.solo) { grid-template-columns: 1fr 1fr; }
  .how { flex-direction: row; flex-wrap: wrap; }
  .how-step { flex: 1 1 40%; }
  .how-arrow { display: none; }
  .roi-body { grid-template-columns: 1fr; }
  .inmo-planes { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1100px) { *, *::before, *::after { touch-action: manipulation; } html, body { touch-action: pan-x pan-y; } }
.roi-big::before { background: radial-gradient(circle, rgba(188,255,94,.28), transparent 62%) !important; }

/* siempre modo claro, aunque el sistema esté en oscuro */
:root, html, html[data-theme] { color-scheme: only light; }

/* portada: el texto no queda debajo de las tarjetas de vidrio */
@media (min-width: 1181px) { .hero-card > h2, .hero-card > p { max-width: min(620px, 50%); } }

/* ==================== MARCA ANDINA LABS ==================== */
html .brand-mark.brand-iso { background: none !important; box-shadow: none !important; width: 44px; height: 40px; border-radius: 0; padding: 0; }
.brand-iso img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 4px 8px rgba(8,40,80,.18)); }
.brand-name { color: #0b2a4a; letter-spacing: -.01em; }
.brand-name b { color: #0a9fa3; font-weight: 800; }
/* selector de idioma */
.lang-switch { display: inline-flex; padding: 3px; gap: 2px; border-radius: 99px; background: rgba(255,255,255,.7); border: 1px solid var(--line); }
.lang-switch button { min-width: 34px; height: 30px; padding: 0 8px; border-radius: 99px; font: 800 .74rem var(--font); color: var(--muted); }
.lang-switch button.on { background: var(--ink-0); color: #fff; }
@media (max-width: 900px) { .lang-switch button { min-width: 30px; height: 28px; padding: 0 6px; } .chip-dolar .hide-sm { display: none; } }
/* idioma: en celular el selector reemplaza al chip del dólar (sigue visible en cada precio) */
@media (max-width: 600px) {
  .topbar .chip-dolar { display: none; }
  .topbar .crumbs h1 { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 34vw; }
}
@media (min-width: 1181px) { .hero-card > h2, .hero-card > p { max-width: min(700px, 60%); } }
/* ==================== ESCALA POR DEFECTO EN PC: 80% ==================== */
/* En pantallas de computadora el sitio se ve como con el zoom del navegador al 80%.
   En celular y tablet queda al 100% para que se lea cómodo. */
@media (min-width: 1100px) {
  html { zoom: .8; }
  .shell, .stage { min-height: 125vh; }           /* 100vh ÷ 0,8: ocupa todo el alto real */
}

/* ==================== DIAGNÓSTICO DIGITAL ==================== */
.badge.new { background: var(--lime); color: #101213; }
.diag-cta { margin-top: 10px; }
.diag { display: grid; gap: 16px; }
.dg-card { padding: clamp(20px, 3vw, 34px); max-width: 920px; }
.dg-top { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.dg-top small { flex: none; font-weight: 700; color: var(--muted); font-size: .8rem; }
.dg-bar { flex: 1; height: 8px; border-radius: 99px; background: rgba(24,26,27,.08); overflow: hidden; }
.dg-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7cc21e, var(--lime)); transition: width .5s var(--ease); }
.dg-area { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; padding: 5px 10px; border-radius: 99px; background: rgba(188,255,94,.22); color: #3f6b06; margin-bottom: 8px; }
.dg-q { font-size: clamp(1.35rem, 2.4vw, 1.9rem); letter-spacing: -.02em; margin: 0 0 6px; }
.dg-sub { margin: 0 0 18px; color: var(--muted); }
.dg-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.dg-perfiles { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.dg-opt { display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px; border-radius: 18px; background: rgba(255,255,255,.7); border: 1.5px solid var(--line); font: inherit; color: var(--ink); cursor: pointer; transition: transform .2s var(--ease), border-color .2s, background .2s, box-shadow .2s; animation: sugIn .4s var(--ease) both; }
.dg-opt:hover { transform: translateY(-2px); border-color: rgba(24,26,27,.25); box-shadow: 0 14px 30px -18px rgba(24,26,27,.35); }
.dg-opt.on { border-color: var(--ink-0); background: #fff; box-shadow: 0 0 0 3px rgba(188,255,94,.55); }
.dg-opt b { display: block; font-size: .95rem; line-height: 1.3; }
.dg-opt small { display: block; color: var(--muted); font-size: .8rem; margin-top: 3px; }
.dg-ico, .dg-n { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--ink-0); color: var(--lime); font-weight: 800; }
.dg-ico svg { width: 22px; height: 22px; stroke: var(--lime); }
.dg-opt.on .dg-n { background: var(--lime); color: #101213; }
.dg-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dg-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 24px; }
.dg-nav .btn[disabled] { opacity: .4; pointer-events: none; }
/* resultado */
.dg-res { display: grid; gap: 14px; }
.dg-head { padding: clamp(20px, 3vw, 30px); display: grid; gap: 18px; }
.dg-score { display: flex; align-items: center; gap: 22px; }
.dg-score h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 4px 0 6px; letter-spacing: -.02em; }
.dg-score h3 em { font-style: normal; background: var(--lime); padding: 0 8px; border-radius: 8px; }
.dg-score p { margin: 0; color: var(--muted); }
.dg-gauge { width: 180px; flex: none; }
.dg-gauge line { stroke-width: 6; stroke-linecap: round; }
.g-bad { stroke: #e5484d; } .g-mid { stroke: #f5a524; }
.dg-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dg-kpis > div { padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.7); border: 1px solid var(--line); }
.dg-kpis > div.bad { background: rgba(229,72,77,.08); border-color: rgba(229,72,77,.25); }
.dg-kpis small { display: block; font-size: .74rem; font-weight: 700; color: var(--muted); }
.dg-kpis b { display: block; font-size: 1.5rem; letter-spacing: -.02em; margin: 2px 0; }
.dg-kpis .bad b { color: #c9353a; }
.dg-kpis span { font-size: .74rem; color: var(--muted); }
.dg-block { padding: clamp(18px, 2.6vw, 26px); }
.dg-block h4 { font-size: 1.15rem; margin: 0 0 14px; }
.dg-areas { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.dg-area-top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.dg-area-top span { font-weight: 800; font-size: .85rem; }
.dg-area-top .bad, .dg-cost b.bad { color: #c9353a; } .dg-area-top .mid { color: #b7791f; } .dg-area-top .ok { color: #3f6b06; }
.dg-track { position: relative; height: 10px; border-radius: 99px; background: rgba(24,26,27,.07); }
.dg-track .hoy { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; animation: growW 1s var(--ease) both; }
.dg-track .hoy.bad { background: #e5484d; } .dg-track .hoy.mid { background: #f5a524; } .dg-track .hoy.ok { background: #7cc21e; }
.dg-track .meta { position: absolute; top: -4px; bottom: -4px; width: 3px; border-radius: 3px; background: var(--ink-0); }
@keyframes growW { from { width: 0; } }
.dg-area-row small { display: block; margin-top: 6px; font-size: .78rem; color: var(--muted); line-height: 1.4; }
.dg-legend { margin: 14px 0 0; font-size: .76rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.dg-legend .sw { display: inline-block; width: 14px; height: 8px; border-radius: 4px; margin-left: 8px; }
.dg-legend .sw.hoy { background: #f5a524; } .dg-legend .sw.meta { background: var(--ink-0); width: 4px; height: 14px; }
.dg-dolores { display: grid; gap: 10px; }
.dg-dolor { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.7); }
.dg-dolor.bad { border-color: rgba(229,72,77,.3); background: rgba(229,72,77,.06); }
.dg-dolor.mid { border-color: rgba(245,165,36,.35); background: rgba(245,165,36,.07); }
.dg-rank { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink-0); color: #fff; font-weight: 800; }
.dg-dolor p { margin: 2px 0 0; font-size: .86rem; color: var(--muted); }
.dg-cost { text-align: right; }
.dg-cost small { display: block; font-size: .7rem; color: var(--muted); font-weight: 700; }
.dg-cost b { display: block; font-size: 1.15rem; color: #c9353a; }
.dg-cost span { font-size: .72rem; color: var(--muted); }
.dg-plan { display: grid; gap: 8px; }
.dg-item { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; background: rgba(188,255,94,.12); border: 1px solid rgba(120,170,40,.22); }
.dg-item small { display: block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #3f6b06; }
.dg-item b { font-size: .95rem; }
.dg-price { flex: none; font-weight: 800; font-size: .9rem; white-space: nowrap; }
.dg-total { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.dg-total > div { padding: 12px 14px; border-radius: 14px; background: var(--ink-0); color: #fff; }
.dg-total small { display: block; font-size: .72rem; color: #c3c8cf; }
.dg-total b { display: block; font-size: 1.1rem; margin-top: 2px; }
.dg-total span { font-size: .72rem; color: #c3c8cf; }
.dg-note { margin: 10px 0 0; font-size: .88rem; color: var(--muted); }
.dg-cta { padding: 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: linear-gradient(150deg, #202325, #0f1112) !important; color: #fff; }
.dg-cta h4 { margin: 0 0 4px; font-size: 1.2rem; color: #fff; }
.dg-cta p { margin: 0; color: #c3c8cf; }
.dg-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.dg-cta .btn-soft { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.15); }
.dg-cta .btn-accent { background: var(--lime); color: #101213; }
.dg-disc { margin: 0; font-size: .74rem; color: var(--muted); }
@media (max-width: 760px) {
  .dg-opts, .dg-nums, .dg-areas, .dg-kpis, .dg-total { grid-template-columns: 1fr; }
  .dg-score { flex-direction: column; text-align: center; }
  .dg-dolor { grid-template-columns: auto 1fr; } .dg-cost { grid-column: 2; text-align: left; }
  .dg-item { flex-direction: column; align-items: flex-start; }
}
/* informe imprimible / PDF */
@media print {
  body * { visibility: hidden !important; }
  #diag .dg-res, #diag .dg-res * { visibility: visible !important; }
  #diag .dg-res { position: absolute; left: 0; top: 0; width: 100%; }
  .dg-acts, .gemelo, .ai-fab, .calc, .mtab { display: none !important; }
  html { zoom: 1 !important; }
}
.dg-etapa { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 10px; }
.dg-etapa.e2 { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); }
.dg-et { font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: var(--lime); color: #101213; }
.dg-etapa.e2 .dg-et { background: rgba(24,26,27,.08); color: var(--ink); }
.dg-etapa b { font-size: 1rem; } .dg-etapa small { flex-basis: 100%; color: var(--muted); font-size: .82rem; }
.dg-plan.e2 .dg-item { background: rgba(255,255,255,.6); border-color: var(--line); }
.dg-plan.e2 .dg-item small { color: var(--muted); }
/* diagnóstico: correcciones visuales */
.dg-gauge { width: 190px !important; height: auto !important; stroke: none; fill: none; }
.dg-gauge text { stroke: none; }
.dg-curva { display: block; max-width: 820px; margin: 0 auto; }
html .dg-cta .btn { box-shadow: none !important; }
html .dg-cta .btn-accent { background: var(--lime) !important; color: #101213 !important; }
html .dg-cta .btn-soft { background: rgba(255,255,255,.12) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.22) !important; }
html .dg-cta .btn-soft:hover { background: rgba(255,255,255,.2) !important; }

/* sin brillo al pasar el mouse sobre las tarjetas */
html .card::after { display: none !important; }
/* ==================== DIAGNÓSTICO v2: datos, IA e informe ==================== */
.dg-f select, .dg-f textarea { width: 100%; border: 0; outline: none; background: none; font: 700 1rem var(--font); color: var(--ink); padding: 2px 0; resize: vertical; }
.dg-f select { cursor: pointer; }
.dg-f small { font-size: .72rem; color: var(--muted); }
.dg-wide { grid-column: 1 / -1; }
.dg-priv { margin: 10px 0 0; font-size: .74rem; color: var(--muted); }
.dg-loading { display: flex; align-items: center; gap: 6px; padding: 18px 0; }
.dg-loading span { width: 9px; height: 9px; border-radius: 50%; background: #7cc21e; animation: dgPunto 1s infinite ease-in-out; }
.dg-loading span:nth-child(2) { animation-delay: .15s; } .dg-loading span:nth-child(3) { animation-delay: .3s; }
.dg-loading p { margin: 0 0 0 8px; color: var(--muted); font-weight: 600; }
@keyframes dgPunto { 0%, 80%, 100% { transform: scale(.6); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }
.dg-abiertas { display: grid; gap: 12px; }
.dg-ab { display: grid; gap: 8px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.7); border: 1px solid var(--line); }
.dg-ab span { font-weight: 700; line-height: 1.4; }
.dg-ab textarea { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: 16px/1.5 var(--font); color: var(--ink); background: #fff; resize: vertical; }
.dg-ab textarea:focus { outline: 2px solid rgba(188,255,94,.8); border-color: transparent; }
.dg-quien { margin: 2px 0 0; font-size: .85rem; font-weight: 700; color: var(--ink); }
.dg-ia { border: 1px solid rgba(120,170,40,.3) !important; background: linear-gradient(160deg, rgba(188,255,94,.14), rgba(255,255,255,.75)) !important; }
.dg-ia h4 { display: flex; align-items: center; gap: 8px; }
.dg-spark { width: 20px; height: 20px; stroke: #5f9a12; }
.dg-an { margin: 0; font-size: 1rem; line-height: 1.65; }
.dg-ia h5 { margin: 16px 0 8px; font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; color: #3f6b06; }
.dg-acc { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.dg-an-nota { display: block; margin-top: 10px; color: var(--muted); font-size: .72rem; }
/* ---------- informe imprimible (PDF) ---------- */
#dg-informe { display: none; }
@media print {
  html.imprimiendo-informe body * { visibility: hidden !important; }
  html.imprimiendo-informe #dg-informe, html.imprimiendo-informe #dg-informe * { visibility: visible !important; }
  html.imprimiendo-informe #dg-informe { display: block !important; position: absolute; inset: 0 0 auto 0; padding: 0; font: 11pt/1.5 "Plus Jakarta Sans", Arial, sans-serif; color: #101213; background: #fff; }
  @page { size: A4; margin: 14mm; }
  #dg-informe * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .inf-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 3px solid #0a9fa3; }
  .inf-logo { height: 44px; }
  .inf-meta { text-align: right; display: grid; font-size: 9pt; color: #555; }
  .inf-meta b { font-size: 12pt; color: #0b2a4a; }
  .inf-cliente { display: flex; justify-content: space-between; align-items: center; margin: 14px 0; padding: 12px 16px; border-radius: 12px; background: #f1f8e6; }
  .inf-cliente small { display: block; font-size: 8pt; text-transform: uppercase; letter-spacing: .06em; color: #3f6b06; }
  .inf-cliente b { display: block; font-size: 15pt; }
  .inf-cliente span { display: block; font-size: 9.5pt; color: #444; }
  .inf-score { text-align: center; }
  .inf-score b { display: inline; font-size: 28pt; color: #0b2a4a; } .inf-score span { font-size: 11pt; }
  #dg-informe section { break-inside: avoid; margin: 14px 0; }
  #dg-informe h2 { font-size: 12.5pt; margin: 0 0 6px; color: #0b2a4a; border-left: 4px solid #BCFF5E; padding-left: 8px; }
  #dg-informe h3 { font-size: 10.5pt; margin: 10px 0 4px; }
  #dg-informe p, #dg-informe li { font-size: 10pt; }
  #dg-informe table { width: 100%; border-collapse: collapse; font-size: 9pt; }
  #dg-informe th { text-align: left; background: #0b2a4a; color: #fff; padding: 5px 7px; }
  #dg-informe td { padding: 5px 7px; border-bottom: 1px solid #e3e6e8; vertical-align: top; }
  #dg-informe td.r { text-align: right; white-space: nowrap; font-weight: 700; }
  #dg-informe td.bad { color: #c9353a; font-weight: 700; } #dg-informe td.mid { color: #b7791f; font-weight: 700; } #dg-informe td.ok { color: #3f6b06; font-weight: 700; }
  .inf-tot { margin: 6px 0 0; }
  .inf-qa { margin: 0 0 6px; }
  .inf-pie { display: flex; gap: 14px; align-items: center; margin-top: 18px; padding: 12px 16px; border-radius: 12px; background: #0f1112; color: #fff; break-inside: avoid; }
  .inf-foto { width: 74px; height: 92px; object-fit: cover; object-position: top; border-radius: 10px; background: #e9eaec; }
  .inf-pie b { display: block; font-size: 12pt; } .inf-pie span { display: block; font-size: 9pt; color: #c3c8cf; }
  .inf-wa { display: inline-block; margin: 8px 0 6px; padding: 7px 14px; border-radius: 99px; background: #1DAA61; color: #fff !important; font-weight: 800; font-size: 10pt; text-decoration: none; }
  .inf-pie small { display: block; font-size: 7.5pt; color: #9aa0a6; }
}

/* diagnóstico: íconos y ejemplos */
.dg-area-chip { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.dg-area-chip .pt-ico.sm { margin: 0; }
.dg-area-chip .dg-area { margin: 0; }
.dg-ej { margin: 6px 0 4px; padding: 12px 14px; border-radius: 14px; background: rgba(10,159,163,.07); border-left: 3px solid #0a9fa3; font-size: .9rem; line-height: 1.5; color: var(--ink); }
.dg-ej b { color: #0b6b6e; }
.dg-ico.dg-ico-pt { width: auto; height: auto; background: none; }
.dg-ico-pt .pt-ico.sm { margin: 0; }
.dg-ab-t { display: inline-flex; align-items: center; gap: 10px; }
.dg-ab-t .pt-ico.sm { width: 34px; height: 34px; border-radius: 11px; margin: 0; }
.dg-ab-t .pt-ico.sm svg { width: 20px; height: 20px; }
.dg-item-i { display: flex; align-items: center; gap: 12px; }
.dg-item-i .pt-ico.sm { width: 38px; height: 38px; border-radius: 12px; margin: 0; }
.dg-item-i .pt-ico.sm svg { width: 22px; height: 22px; }

/* ==================== CHAT IA: ampliar, PDF y sin barras de desplazamiento ==================== */
.ai-log { min-height: 0; overscroll-behavior: contain; scrollbar-width: none; }
.ai-log::-webkit-scrollbar, .ai-sug::-webkit-scrollbar, .sel-list::-webkit-scrollbar, .rail-nav::-webkit-scrollbar { display: none; }
.ai-sug, .sel-list, .rail-nav { scrollbar-width: none; }
.ai-head-btns { align-items: center; }
.ai-head-btns .ai-ib { width: 36px; height: 36px; padding: 0; display: grid; place-items: center; border-radius: 11px; color: #c3c8d2; }
.ai-head-btns .ai-ib:hover { background: rgba(255,255,255,.12); color: #fff; }
.ai-head-btns .ai-ib svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ai-ib .i-min, .ai-panel.max .ai-ib .i-max { display: none; }
.ai-panel.max .ai-ib .i-min { display: block; }
.ai-panel { transition: width .25s var(--ease), height .25s var(--ease); }
.ai-panel.max { position: fixed; left: 50%; top: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%); width: min(980px, calc(100vw - 48px)); height: calc(100vh - 48px); height: calc(100dvh - 48px); max-height: none; z-index: 80; border-radius: 24px; }
.ai-panel.max .ai-log { padding: 24px clamp(16px, 5vw, 64px); gap: 14px; }
.ai-panel.max .ai-msg { max-width: min(720px, 82%); font-size: 1rem; }
.ai-panel.max .ai-form, .ai-panel.max .ai-legal, .ai-panel.max .ai-sug { padding-left: clamp(16px, 5vw, 64px); padding-right: clamp(16px, 5vw, 64px); }
@media (min-width: 1100px) { .ai-panel.max { width: min(1225px, calc(125vw - 60px)); height: calc(125vh - 60px); } }   /* compensa el zoom .8 */
@media (max-width: 900px) {
  .ai-panel.max { left: 0; top: 0; transform: none; width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; padding-top: env(safe-area-inset-top); }
  html.ai-max .ai-fab, html.ai-max .mtab { display: none !important; }
}
/* conversación en el PDF */
@media print {
  .inf-chat { display: grid; gap: 8px; margin: 14px 0; }
  .inf-msg { max-width: 82%; padding: 8px 12px; border-radius: 12px; break-inside: avoid; font-size: 10pt; }
  .inf-msg small { display: block; font-size: 7.5pt; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #6b7177; margin-bottom: 2px; }
  .inf-msg p { margin: 0 0 4px; } .inf-msg ul { margin: 2px 0 4px; padding-left: 18px; }
  .inf-msg a { display: none; }
  .inf-msg.ia { justify-self: start; background: #f2f4f5; border: 1px solid #e3e6e8; }
  .inf-msg.yo { justify-self: end; background: #e7f7cf; border: 1px solid #cdeb9f; }
}

/* ==================== DESPLEGABLES PROFESIONALES (todas las listas) ==================== */
.sel-trigger { font: 600 .95rem var(--font); color: var(--ink); }
.sel-trigger .sel-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel-list { max-height: 320px; padding: 6px; border-radius: 16px; box-shadow: 0 24px 60px -12px rgba(16,18,19,.28), 0 4px 12px rgba(16,18,19,.08); }
.sel-list.con-busca { padding-top: 0; }
.sel-search { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 8px; margin: 0 -6px 6px; padding: 10px 12px; background: #fff; border-bottom: 1px solid rgba(24,26,27,.08); }
.sel-search svg { width: 17px; height: 17px; flex: none; stroke: var(--muted); fill: none; stroke-width: 2; stroke-linecap: round; }
.sel-search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font: 500 16px var(--font); color: var(--ink); }
.sel-empty { padding: 14px 10px; color: var(--muted); font-size: .88rem; text-align: center; }
.sel-opt { padding: 10px 12px 10px 8px; border-radius: 10px; font-size: .93rem; transition: background .12s; }
.sel-opt[hidden] { display: none; }
.sel-opt:hover, .sel-opt:focus { background: rgba(24,26,27,.05); }
.sel-opt.on { background: rgba(188,255,94,.28); color: #101213; }
.sel-opt.on .sel-check { color: #3f6b06; }
/* dentro de los formularios del diagnóstico la lista ocupa el ancho del campo */
.dg-f .sel, .roi-field .sel { width: 100%; }
.dg-f .sel-trigger { min-height: 0; padding: 2px 0; border: 0; background: none; box-shadow: none !important; font: 700 1rem var(--font); }
.dg-f .sel-list, .q-grid .sel-list { width: 100%; max-width: none; left: -4px; right: -4px; min-width: calc(100% + 8px); top: calc(100% + 12px); }
.dg-f .sel.up .sel-list { top: auto; bottom: calc(100% + 12px); }
@media (max-width: 600px) { .sel-list { max-width: calc(100vw - 32px); } .sel-opt { padding: 12px 12px 12px 8px; white-space: normal; } }

/* insignia "Nuevo" visible también con el ítem activo */
html .rail-nav .badge.new { background: var(--lime) !important; color: #101213 !important; text-transform: none; letter-spacing: 0; font-size: .7rem; padding: 3px 9px; }
/* "Nuevo" como etiqueta flotante: mitad sobre el botón, mitad afuera (esquina superior derecha) */
.rail-nav a[data-go="diagnostico"] { position: relative; overflow: visible; }
html .rail-nav a[data-go="diagnostico"] .badge.new { position: absolute; top: -9px; right: -4px; margin: 0; padding: 3px 9px; font-size: .66rem; line-height: 1.2; border-radius: 99px; border: 2px solid #fff; box-shadow: 0 4px 12px rgba(16,18,19,.18); z-index: 2; white-space: nowrap; }
.rail-nav { overflow: visible; padding-top: 10px; }
@media (max-width: 1100px) { .rail-nav { overflow-y: auto; } }
/* ==================== Ejemplos y aclaraciones: estilo editorial (sin la barra de color al costado) ==================== */
html .dg-ej, html .explain .ej, html .term .ej, html .det-explain .ej {
  border: 1px solid rgba(24,26,27,.08) !important; border-left: 1px solid rgba(24,26,27,.08) !important;
  background: #F7F8F8 !important; border-radius: 10px; padding: 12px 14px 13px; color: #3c4146; font-size: .9rem; line-height: 1.55;
}
html .dg-ej b { display: block; margin-bottom: 4px; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8a9097; }
@media print { #dg-informe h2 { border-left: 0 !important; padding: 0 0 4px !important; border-bottom: 1px solid #d9dcdf; } }
/* ==================== Diagnóstico: cifras clave en fila editorial (sin cajitas) ==================== */
html .dg-kpis { gap: 0; padding: 20px 0 22px; border-top: 1px solid rgba(24,26,27,.1); border-bottom: 1px solid rgba(24,26,27,.1); }
html .dg-kpis > div, html .dg-kpis > div.bad { padding: 2px 28px; border: 0; border-radius: 0; background: none; border-left: 1px solid rgba(24,26,27,.1); }
html .dg-kpis > div:first-child { padding-left: 0; border-left: 0; }
html .dg-kpis small { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7d838a; line-height: 1.35; }
html .dg-kpis b { margin: 10px 0 4px; font-size: clamp(1.7rem, 2.6vw, 2.35rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
html .dg-kpis .bad b { color: #b42318; }
html .dg-kpis span { font-size: .8rem; color: var(--muted); }
@media (max-width: 760px) {
  html .dg-kpis { padding: 4px 0; }
  html .dg-kpis > div, html .dg-kpis > div.bad { padding: 16px 0; border-left: 0; border-top: 1px solid rgba(24,26,27,.1); }
  html .dg-kpis > div:first-child { border-top: 0; }
}

/* análisis de la IA: dos tonos (profesional / sin vueltas) */
.dg-tabs { display: flex; gap: 22px; margin: 2px 0 14px; border-bottom: 1px solid rgba(24,26,27,.1); }
.dg-tabs button { position: relative; padding: 8px 0 10px; font: 700 .9rem var(--font); color: #7d838a; }
.dg-tabs button.on { color: var(--ink); }
.dg-tabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); }
.dg-tono .dg-an + .dg-an { margin-top: 12px; }
.dg-tono[data-t="dir"] .dg-an { font-size: 1.02rem; }
.dg-ro { display: grid; grid-template-columns: 1fr 1fr; margin: 18px 0 4px; border-top: 1px solid rgba(24,26,27,.1); }
.dg-ro > div { padding: 14px 20px 2px 0; }
.dg-ro > div + div { padding-left: 20px; border-left: 1px solid rgba(24,26,27,.1); }
.dg-ro small { display: block; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7d838a; }
.dg-ro p { margin: 4px 0 0; font-size: .92rem; line-height: 1.5; }
@media (max-width: 760px) { .dg-ro { grid-template-columns: 1fr; } .dg-ro > div + div { padding-left: 0; border-left: 0; border-top: 1px solid rgba(24,26,27,.1); } }

.inmo-zona { margin-top: 6px; font-size: .9rem; }

/* diagnóstico: inversión en publicidad mes a mes (filas con líneas finas, sin cajitas) */
.dg-pt { margin-top: 12px; border-top: 1px solid rgba(24,26,27,.1); }
.dg-pt-r { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(24,26,27,.1); }
.dg-pt-r b { display: block; font-size: .98rem; }
.dg-pt-r small { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.dg-pt-v { text-align: right; flex: none; }
.dg-pt-v b { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dg-pt-v em { font-style: normal; font-size: .8rem; font-weight: 600; color: var(--muted); margin-left: 2px; }
.dg-pt-split { margin: 12px 0 0; font-size: .86rem; color: #3c4146; }
@media (max-width: 600px) { .dg-pt-r { flex-direction: column; align-items: flex-start; } .dg-pt-v { text-align: left; } }

/* estado del negocio: color según el nivel */
html .dg-score h3 em.nv-mal { background: #c9353a; color: #fff; }
html .dg-score h3 em.nv-medio { background: #f5b301; color: #101213; }
html .dg-score h3 em.nv-bien { background: var(--lime); color: #101213; }
.dg-nivel-txt { font-weight: 600; color: #3c4146 !important; }
/* ==================== HERO: fondo andino (imagen) en lugar de las montañas dibujadas ==================== */
html .hero-card .mt, html .hero-card .sun, html .hero-card .stars, html .hero-card .gridlines { display: none !important; }
html .hero-card .sky { background: #f6f7f9 url("img/marca/fondo-andina.webp") center 62% / cover no-repeat !important; }
@media (max-width: 760px) { html .hero-card .sky { background-image: url("img/marca/fondo-andina-movil.webp") !important; background-position: 70% 100% !important; } }
html .hero-card .glow { opacity: .55; }

/* ==================== Servicios especiales presenciales ==================== */
.sec-pres { margin: 34px 0 0; }
.sec-pres h2 { margin: 6px 0 6px; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.03em; }
.sec-pres p { margin: 0; max-width: 720px; color: var(--muted); }
.inmo-body { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; align-items: start; }
html .inmo-body .inmo-planes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.inmo-equipo { display: grid; gap: 10px; padding-left: 18px; border-left: 1px solid rgba(24,26,27,.1); }
.inmo-equipo > small { font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7d838a; }
.eq { display: flex; align-items: center; gap: 12px; margin: 0; }
.eq-foto { position: relative; flex: none; width: 64px; height: 64px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: #f1f2f3; }
.eq-foto .pt-ico { margin: 0; }
.eq-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4px; background: #f1f2f3; opacity: 0; transition: opacity .3s; }
.eq-foto.ok img { opacity: 1; }
.eq figcaption b { display: block; font-size: .9rem; }
.eq figcaption span { font-size: .78rem; color: var(--muted); }
@media (max-width: 1280px) { .inmo-body { grid-template-columns: 1fr; } .inmo-equipo { padding: 16px 0 0; border-left: 0; border-top: 1px solid rgba(24,26,27,.1); grid-template-columns: repeat(2, minmax(0, 1fr)); } .inmo-equipo > small { grid-column: 1 / -1; } html .inmo-body .inmo-planes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { html .inmo-body .inmo-planes { grid-template-columns: 1fr; } .inmo-equipo { grid-template-columns: 1fr; } }
/* botón del diagnóstico: que entre la frase completa */
html .steps3 .diag-cta { width: auto !important; max-width: 100%; min-width: 420px; overflow: visible; white-space: normal; text-align: center; height: auto; min-height: 46px; padding: 10px 24px; line-height: 1.3; }
@media (max-width: 760px) { html .steps3 .diag-cta { min-width: 0; width: 100% !important; } }

/* ==================== Diagnóstico: Pablo pensando al costado ==================== */
.diag { position: relative; }
.dg-pablo { display: none; }
@media (min-width: 1100px) {
  .dg-pablo { display: block; position: absolute; top: 40px; left: min(calc(100% - 250px), 950px); width: 240px; pointer-events: none; transition: opacity .35s, transform .35s; }
  .dg-pablo.fuera { opacity: 0; transform: translateY(14px); }
  .dg-pablo img { display: block; width: 100%; height: auto; filter: drop-shadow(0 24px 30px rgba(16,18,19,.18)); animation: pbRespira 4.5s ease-in-out infinite; transform-origin: 50% 100%; }
  .dg-pablo.piensa img { animation: pbPiensa 1.6s ease-in-out infinite; }
  .dg-pb-globo { position: relative; margin: 0 0 12px 18px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 18px; background: #fff; box-shadow: 0 14px 34px rgba(16,18,19,.14); font-weight: 700; font-size: .98rem; color: var(--ink); }
  .dg-pb-globo::after { content: ""; position: absolute; left: 34px; bottom: -7px; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); border-radius: 0 0 4px 0; }
  .dg-pb-dots { display: none; gap: 4px; }
  .dg-pb-dots i { width: 7px; height: 7px; border-radius: 50%; background: #9aa0a6; animation: dgPunto 1s infinite ease-in-out; }
  .dg-pb-dots i:nth-child(2) { animation-delay: .15s; } .dg-pb-dots i:nth-child(3) { animation-delay: .3s; }
  .dg-pablo.piensa .dg-pb-txt { display: none; }
  .dg-pablo.piensa .dg-pb-dots { display: inline-flex; }
  .dg-pablo.pop .dg-pb-globo { animation: pbPop .35s cubic-bezier(.34,1.5,.64,1); }
  html[data-zoom] .dg-pablo { left: auto; right: 0; }
}
@media (min-width: 1100px) and (max-width: 1360px) { .dg-pablo { width: 190px; left: auto; right: -10px; } }
@keyframes pbRespira { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(-.4deg); } }
@keyframes pbPiensa { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg) translateY(-2px); } }
@keyframes pbPop { from { transform: scale(.85); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dg-pablo img, .dg-pablo.piensa img { animation: none; } }
@media (min-width: 1100px) { .diag .dg-card { max-width: min(920px, calc(100% - 250px)); } }

/* ==================== Diagnóstico: barra flotante para contactar a Pablo ==================== */
.dg-barra { position: sticky; bottom: 18px; z-index: 30; display: flex; align-items: center; gap: 14px; margin: 18px 0; padding: 10px 12px 10px 10px; border-radius: 22px; background: rgba(16,18,19,.94); color: #fff; box-shadow: 0 24px 60px -16px rgba(16,18,19,.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.dg-barra-foto { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; object-position: top; background: #2a2d30; flex: none; }
.dg-barra-t { flex: 1; min-width: 0; }
.dg-barra-t b { display: block; font-size: .98rem; }
.dg-barra-t small { color: #a9afb6; font-size: .8rem; }
.dg-barra-b { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.dg-barra .btn.sm { height: 40px; padding: 0 16px; font-size: .86rem; box-shadow: none !important; }
html .dg-barra .btn-soft { background: rgba(255,255,255,.1) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.2) !important; }
html .dg-barra .btn-accent { background: var(--lime) !important; color: #101213 !important; }
.dg-barra .btn-wa svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.dg-pop { position: absolute; right: 12px; bottom: calc(100% + 10px); width: min(360px, calc(100vw - 40px)); display: grid; gap: 10px; padding: 18px; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 30px 80px -20px rgba(16,18,19,.45); }
.dg-pop[hidden] { display: none; }
.dg-pop-t { font-size: 1.02rem; }
.dg-pop label { display: grid; gap: 4px; }
.dg-pop label span { font-size: .74rem; font-weight: 700; color: var(--muted); }
.dg-pop input, .dg-pop textarea { width: 100%; border: 1px solid rgba(24,26,27,.14); border-radius: 12px; padding: 10px 12px; font: 16px/1.4 var(--font); color: var(--ink); background: #f7f8f8; resize: vertical; }
.dg-pop input:focus, .dg-pop textarea:focus { outline: 2px solid var(--ink); background: #fff; }
.dg-pop-b { display: flex; justify-content: flex-end; gap: 8px; }
.dg-pop-ok { margin: 0; font-size: .88rem; font-weight: 700; color: #136b3e; }
@media (max-width: 900px) {
  .dg-barra { bottom: calc(86px + env(safe-area-inset-bottom)); flex-wrap: wrap; }
  .dg-barra-b { width: 100%; justify-content: stretch; }
  .dg-barra-b .btn { flex: 1 1 auto; }
  .dg-pop { right: 0; left: 0; width: auto; }
}

/* cotizador: tamaño del contenido en palabras simples */
.q-tam { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.q-tam-o { position: relative; display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(24,26,27,.1); background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.q-tam-o input { position: absolute; opacity: 0; pointer-events: none; }
.q-tam-o b { font-size: .9rem; } .q-tam-o small { font-size: .76rem; color: var(--muted); line-height: 1.35; }
.q-tam-o:has(input:checked) { border-color: var(--ink); background: #f4f5f5; box-shadow: inset 0 0 0 1px var(--ink); }
.q-tam-o:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 900px) { .q-tam { grid-template-columns: 1fr 1fr; } }

/* buscador de ciudad tipo mapa */
.lugar { position: relative; }
.lugar > input { width: 100%; }
.lugar-list { position: absolute; z-index: 130; left: 0; right: 0; top: calc(100% + 6px); max-height: 320px; overflow-y: auto; padding: 6px; border-radius: 16px; background: #fff; border: 1px solid rgba(24,26,27,.1); box-shadow: 0 24px 60px -12px rgba(16,18,19,.28); scrollbar-width: none; }
.lugar-list[hidden] { display: none; }
.lugar-o { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
.lugar-o:hover, .lugar-o.on { background: rgba(24,26,27,.05); }
.lugar-o svg { width: 18px; height: 18px; flex: none; fill: none; stroke: #7d838a; stroke-width: 1.8; }
.lugar-o b { display: block; font-size: .92rem; font-weight: 600; color: var(--ink); }
.lugar-o small { display: block; font-size: .76rem; color: var(--muted); }
.lugar-vacio { padding: 12px; font-size: .86rem; color: var(--muted); }

/* íconos en lugar de emojis */
svg.ic { display: inline-block; width: 15px !important; height: 15px !important; vertical-align: -2px; margin-right: 6px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.chips-row span, .gc-meta span, .zone-list span { display: inline-flex; align-items: center; }
.chips-row span svg.ic { color: #4d7c0f; }
#ai-send svg.ic { width: 18px !important; height: 18px !important; margin: 0; }
.ai-fab svg.ic { width: 17px !important; height: 17px !important; }
svg.ic-x { width: 18px !important; height: 18px !important; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.gm-x svg.ic-x { width: 12px !important; height: 12px !important; }
.ai-ok svg.ic { color: #136b3e; }

/* ==================== Sectores: íconos ilustrados, dato clave y tarjeta destacada ==================== */
.sec-ico .pt-ico { margin: 0; }
.sector .sec-dato { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(24,26,27,.08); display: flex; align-items: baseline; gap: 10px; }
.sec-dato b { font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
.sec-dato span { font-size: .78rem; color: var(--muted); line-height: 1.3; }
.sector .sec-dato + .link { margin-top: 4px; }
html .card.sector.sector-dest { background: #101213 !important; color: #fff; border-color: #101213 !important; }
html .sector-dest h3 { color: #fff; }
html .sector-dest p, html .sector-dest .sec-dato span { color: #b8bec5 !important; }
html .sector-dest .sec-dato { border-top-color: rgba(255,255,255,.14); }
html .sector-dest .sec-dato b { color: var(--lime); }
html .sector-dest .link { color: var(--lime) !important; }
html .sector-dest .pt-ico { background: var(--lime) !important; } html .sector-dest .pt-ico svg { stroke: #101213 !important; }

/* cotizador: quitar ítems sumados */
.breakdown li > span:last-child, .q-mens { display: inline-flex; align-items: center; gap: 6px; }
.calc-items li { display: flex; align-items: center; gap: 8px; } .calc-items li > span:first-child { flex: 1; }
.q-quitar { flex: none; width: 24px; height: 24px; display: inline-grid; place-items: center; border-radius: 8px; color: #8a9097; transition: background .15s, color .15s; }
.q-quitar:hover { background: rgba(201,53,58,.1); color: #c9353a; }
.q-quitar svg { width: 14px !important; height: 14px !important; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.calc .q-quitar { color: #9aa1ae; } .calc .q-quitar:hover { background: rgba(255,255,255,.12); color: #fff; }
/* ==================== Presupuesto flotante: vidrio oscuro difuminado, sin barras de desplazamiento ==================== */
html .calc-panel, html[data-theme="light"] .calc-panel {
  background: linear-gradient(160deg, rgba(28,31,33,.86), rgba(16,18,19,.9)) !important;
  backdrop-filter: blur(26px) saturate(150%) !important; -webkit-backdrop-filter: blur(26px) saturate(150%) !important;
  border: 1px solid rgba(255,255,255,.1) !important; color: #fff;
  box-shadow: 0 34px 80px -20px rgba(16,18,19,.6) !important;
  scrollbar-width: none;
}
html .calc-panel::-webkit-scrollbar, html .calc-panel *::-webkit-scrollbar { display: none; }
html .calc-panel * { scrollbar-width: none; }
html .calc-panel .calc-head b { color: #fff; }
html .calc-panel .calc-head small, html .calc-panel .calc-items li small { color: #9ea5ad; }
html .calc-panel .calc-items li { border-bottom-color: rgba(255,255,255,.1); color: #e9ecef; }
html .calc-panel .calc-items li b { color: #fff; }
html .calc-panel .calc-meta span { background: rgba(255,255,255,.1); color: #e9ecef; }
html .calc-panel .calc-meta span svg.ic { color: var(--lime); }
html .calc-panel .btn-soft { background: rgba(255,255,255,.1) !important; color: #fff !important; border-color: rgba(255,255,255,.18) !important; }

/* chat: "escribiendo…" con tres puntitos */
html .ai-typing { font-style: normal; animation: none; padding: 14px 16px !important; }
.ai-dots { display: inline-flex; gap: 5px; align-items: center; height: 12px; }
.ai-dots i { width: 8px; height: 8px; border-radius: 50%; background: #9aa0a6; animation: aiDot 1.2s infinite ease-in-out; }
.ai-dots i:nth-child(2) { animation-delay: .18s; } .ai-dots i:nth-child(3) { animation-delay: .36s; }
@keyframes aiDot { 0%, 70%, 100% { transform: translateY(0); opacity: .45; } 35% { transform: translateY(-4px); opacity: 1; } }
.ai-online { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #3ddc84; vertical-align: 1px; box-shadow: 0 0 0 3px rgba(61,220,132,.18); }
.ai-msg .btn-wa { margin-top: 10px; }

.q-tam .q-tam-o { animation: rv .3s var(--ease) both; }

/* "Ver precios": resalta el detalle al llegar */
.det-flash { animation: detFlash 1.4s ease; }
@keyframes detFlash { 0% { box-shadow: 0 0 0 0 rgba(188,255,94,0); } 25% { box-shadow: 0 0 0 4px rgba(124,194,30,.55); } 100% { box-shadow: 0 0 0 0 rgba(188,255,94,0); } }

/* ==================== Logos de plataformas ==================== */
.logos { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.plogo { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 700; color: #5b6168; white-space: nowrap; transition: color .2s; }
.plogo i { width: 20px; height: 20px; flex: none; background: currentColor; -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; transition: background .2s; }
.plogo:hover { color: var(--ink); } .plogo:hover i { background: var(--c); }
.logos.sm { gap: 6px 12px; margin: 2px 0 4px; } .logos.sm .plogo { font-size: .72rem; color: #7d838a; } .logos.sm .plogo i { width: 15px; height: 15px; }
.plataformas { margin-top: 16px; padding: 18px 22px; display: grid; gap: 12px; }
.plataformas .eyebrow { margin: 0; }
@media (max-width: 760px) { .plataformas .logos { gap: 10px 14px; } .plogo { font-size: .76rem; } }

/* verificación de humano */
.al-humano { position: fixed; z-index: 200; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 6px; justify-items: center; padding: 10px 14px; border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: 0 20px 50px -14px rgba(16,18,19,.35); font-size: .8rem; color: var(--muted); }
.al-humano:not(.pide) .al-humano-w { height: 0; overflow: hidden; }

/* cotizador: valor recomendado + franja + mensual */
.reco-lbl { display: block; margin-top: 4px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #4d7c0f; }
.franja { margin-top: 6px; font-size: .88rem; color: #3c4146; }
.mes-total { margin-top: 4px; font-size: .86rem; color: #3c4146; }
.mes-total:empty { display: none; }
.q-bump { animation: qBump .5s ease; }
@keyframes qBump { 0% { transform: none; } 35% { transform: scale(1.015); box-shadow: 0 0 0 3px rgba(124,194,30,.35); } 100% { transform: none; } }

/* ==================== Logos: solo íconos (hero y barra lateral) ==================== */
.plogo.solo { gap: 0; }
.plogo.solo i { width: 22px; height: 22px; }
/* hero */
.hero-logos { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.hero-logos small { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #5b6168; white-space: nowrap; }
.hero-logos .logos { gap: 10px 16px; }
.hero-logos .plogo { color: #4a5057; }
.hero-logos .plogo i { width: 20px; height: 20px; }
@media (max-width: 760px) { .hero-logos { gap: 8px; margin-top: 18px; } .hero-logos small { width: 100%; } .hero-logos .logos { gap: 10px 14px; } .hero-logos .plogo i { width: 18px; height: 18px; } }
/* barra lateral */
.rail-logos { display: grid; gap: 8px; padding: 10px 12px 12px; margin: 0 2px 8px; border-radius: 14px; background: rgba(255,255,255,.55); border: 1px solid rgba(24,26,27,.06); }
.rail-logos small { font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7d838a; }
.rail-logos .logos { gap: 9px 11px; }
.rail-logos .plogo { color: #5b6168; } .rail-logos .plogo i { width: 17px; height: 17px; }
.shell.collapsed .rail-logos { display: none; }
@media (max-height: 760px) and (min-width: 901px) { .rail-logos { display: none; } }
/* hero: logos debajo de los botones, alineados a la izquierda, sobre vidrio para que se lean */
html .hero-card .hero-logos { align-self: flex-start; justify-content: flex-start; width: auto; max-width: min(640px, 100%); margin: 18px 0 0; padding: 8px 14px; border-radius: 99px; background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 10px 30px -14px rgba(16,18,19,.25); }
@media (max-width: 760px) { html .hero-card .hero-logos { border-radius: 16px; } }
@media (min-width: 1181px) {
  html .hero-card > .hero-logos { grid-column: 1; position: relative; z-index: 2; margin: 18px 0 34px 40px; }
  html .hero-card:has(> .hero-logos) > .cta { margin-bottom: 0; }
}

/* producción visual: ilustración del equipo en cada servicio */
.inmo-serv { position: relative; }
.inmo-eq { position: absolute; top: 10px; right: 12px; margin: 0; width: 112px; display: grid; justify-items: center; gap: 2px; pointer-events: none; }
.inmo-eq svg { width: 100%; height: auto; fill: none; stroke: #2a2e33; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.inmo-eq svg .f { fill: #f2f4f4; } .inmo-eq svg .f2 { fill: #e3e7ea; }
.inmo-eq svg .ac { fill: #9be22d; stroke: #4d7c0f; } .inmo-eq svg .ac0 { stroke: #7cc21e; stroke-width: 2.2; }
.inmo-eq figcaption { font-size: .62rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #8a9097; white-space: nowrap; }
.inmo-serv b, .inmo-serv small { position: relative; }
@media (max-width: 760px) { .inmo-eq { width: 84px; top: 8px; right: 8px; } .inmo-eq figcaption { font-size: .56rem; } }
html .inmo-planes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1280px) { html .inmo-planes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { html .inmo-planes { grid-template-columns: 1fr; } }
/* ilustración del equipo con su propio espacio (sin pisar el texto) */
html .inmo-serv { padding-right: 150px !important; min-height: 132px; }
html .inmo-eq { top: 50%; transform: translateY(-50%); right: 16px; width: 118px; }
@media (max-width: 1280px) { html .inmo-serv { padding-right: 128px !important; } html .inmo-eq { width: 100px; } }
@media (max-width: 760px) { html .inmo-serv { padding-right: 104px !important; min-height: 120px; } html .inmo-eq { width: 82px; right: 10px; } }

#ai-input:disabled { background: #f1f2f3; cursor: not-allowed; }

/* ==================== Diagnóstico: "Analizando tu información…" ==================== */
html.dg-bloqueo, html.dg-bloqueo body { overflow: hidden; }
.dg-anal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; background: rgba(244,245,246,.55); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); animation: fade .25s ease; transition: opacity .35s; }
.dg-anal.fuera { opacity: 0; }
.dg-anal-card { width: min(420px, 100%); display: grid; justify-items: center; gap: 10px; padding: 30px 28px 26px; border-radius: 26px; background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.95); box-shadow: 0 40px 100px -30px rgba(16,18,19,.45); text-align: center; }
.dg-anal-ring { position: relative; width: 120px; height: 120px; }
.dg-anal-ring svg { width: 120px !important; height: 120px !important; transform: rotate(-90deg); fill: none; }
.dg-anal-ring circle { stroke-width: 9; } .dg-anal-ring .bg { stroke: #eef0f2; } .dg-anal-ring .fg { stroke: #7cc21e; stroke-linecap: round; }
.dg-anal-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.dg-anal-card h3 { margin: 6px 0 0; font-size: 1.25rem; letter-spacing: -.02em; }
.dg-anal-paso { margin: 0; color: #3c4146; font-weight: 600; min-height: 1.4em; }
.dg-anal-bar { width: 100%; height: 6px; border-radius: 99px; background: #eef0f2; overflow: hidden; margin-top: 6px; }
.dg-anal-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #7cc21e, #bcff5e); }
.dg-anal-falta { color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }

.inmo-eq.foto img { width: 100%; height: 86px; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(16,18,19,.18)); }
@media (max-width: 760px) { .inmo-eq.foto img { height: 64px; } }
.inmo-cred { margin: 6px 0 0; font-size: .68rem; color: #9aa0a6; }
/* diagnóstico: Pablo grande, ocupando toda la columna derecha (detrás del botón de la IA) */
@media (min-width: 1100px) {
  html .dg-pablo { left: auto; right: -24px; top: -70px; bottom: -40px; width: clamp(260px, calc(100% - 940px), 440px); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; z-index: 1; }
  html .dg-pablo img { width: 100%; height: auto; max-height: calc(100% - 70px); object-fit: contain; object-position: center bottom; }
  html .dg-pablo .dg-pb-globo { align-self: center; margin: 0 0 10px; font-size: 1.05rem; }
  html .diag .dg-card { position: relative; z-index: 2; }
}
@media (min-width: 1100px) and (max-width: 1360px) { html .dg-pablo { width: 230px; right: -16px; } }

/* Pablo del diagnóstico: foto o video sin fondo */
.dg-pb-media { width: 100%; display: flex; justify-content: center; align-items: flex-end; min-height: 0; flex: 1 1 auto; }
.dg-pb-media img, .dg-pb-media video { width: 100%; height: auto; max-height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 24px 30px rgba(16,18,19,.18)); }
@media (min-width: 1100px) { html .dg-pablo .dg-pb-media { max-height: calc(100% - 70px); } html .dg-pablo .dg-pb-media img { max-height: none; } }
.dg-pablo.piensa video { animation: none !important; }
/* la foto o video entra debajo del globo, sin taparlo */
@media (min-width: 1100px) {
  html .dg-pablo .dg-pb-globo { position: relative; z-index: 2; flex: none; }
  html .dg-pablo .dg-pb-media { flex: 1 1 0; min-height: 0; max-height: none; }
  html .dg-pablo .dg-pb-media img, html .dg-pablo .dg-pb-media video { width: auto; max-width: 100%; height: 100%; max-height: 100%; }
}
/* globo de frases: siempre adelante y pegado arriba de la cabeza */
@media (min-width: 1100px) {
  html .dg-pablo { z-index: 3; }
  html .dg-pablo .dg-pb-globo { z-index: 5; margin-bottom: 6px; box-shadow: 0 14px 34px rgba(16,18,19,.18); }
  html .dg-pablo .dg-pb-media { flex: 0 1 auto; }
  html .dg-pablo .dg-pb-media img, html .dg-pablo .dg-pb-media video { width: 100%; height: auto; max-height: min(62vh, 640px); }
}

/* ==================== Embudos de venta ==================== */
.emb-intro { padding: 24px 26px; margin-bottom: 16px; }
.emb-intro h3 { margin: 6px 0 8px; font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.35; letter-spacing: -.02em; max-width: 900px; }
.emb-intro p { margin: 0; color: #3c4146; max-width: 860px; }
.emb-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; align-items: center; margin-bottom: 18px; }
.emb-funnel { display: grid; gap: 8px; justify-items: center; }
.emb-capa { width: var(--w); min-height: 62px; display: grid; place-items: center; align-content: center; gap: 2px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #22262a, #101213); clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 100%); transition: transform .2s, background .2s; cursor: pointer; }
.emb-capa span { font-weight: 800; font-size: 1rem; } .emb-capa small { font-size: .72rem; color: #a9afb6; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.emb-capa:hover { transform: scale(1.02); }
.emb-capa.on { background: linear-gradient(135deg, #bcff5e, #8fdc2f); color: #101213; } .emb-capa.on small { color: #3f6b06; }
.emb-det { padding: 22px 24px; min-height: 260px; }
.emb-det-h { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; } .emb-det-h .pt-ico { margin: 0; }
.emb-det-h small { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7d838a; } .emb-det-h h3 { margin: 2px 0 0; font-size: 1.4rem; }
.emb-que { font-size: 1.02rem; font-weight: 600; margin: 0 0 12px; }
.emb-det dl { margin: 0; display: grid; grid-template-columns: 140px 1fr; gap: 10px 14px; border-top: 1px solid rgba(24,26,27,.08); padding-top: 12px; }
.emb-det dt { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #7d838a; padding-top: 2px; } .emb-det dd { margin: 0; font-size: .93rem; color: #2a2e33; }
.emb-tipos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.emb-tipo { padding: 22px; } .emb-tipo .pt-ico { margin: 0 0 10px; } .emb-tipo h3 { margin: 0 0 4px; font-size: 1.12rem; } .emb-tipo > p { margin: 0 0 10px; color: var(--muted); font-size: .9rem; }
.emb-tipo ol { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 5px; font-size: .9rem; }
.emb-ej { margin: 0; padding: 10px 12px; border-radius: 10px; background: #f7f8f8; border: 1px solid rgba(24,26,27,.07); font-size: .86rem; color: #3c4146; }
.emb-ej b { display: block; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: #8a9097; margin-bottom: 2px; }
.emb-calc { padding: 24px 26px; margin-bottom: 18px; }
.emb-calc-t h3 { margin: 6px 0 4px; } .emb-calc-t p { margin: 0 0 14px; color: var(--muted); }
.emb-calc-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.emb-calc-g label { display: grid; gap: 5px; } .emb-calc-g span { font-size: .76rem; font-weight: 700; color: var(--muted); }
.emb-calc-g input, .emb-calc-g select { height: 44px; border-radius: 12px; border: 1px solid rgba(24,26,27,.12); background: #f7f8f8; padding: 0 12px; font: 600 16px var(--font); color: var(--ink); }
.emb-res { display: grid; grid-template-columns: 1fr 1fr auto; gap: 0; margin-top: 18px; border-top: 1px solid rgba(24,26,27,.1); border-bottom: 1px solid rgba(24,26,27,.1); }
.emb-r { padding: 16px 20px 16px 0; display: grid; grid-template-columns: auto auto; gap: 4px 22px; align-items: end; }
.emb-r + .emb-r { padding-left: 20px; border-left: 1px solid rgba(24,26,27,.1); }
.emb-r small { grid-column: 1 / -1; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7d838a; }
.emb-r span { display: block; font-size: .74rem; color: var(--muted); } .emb-r b { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.emb-r .mejor b { color: #3f7d0a; }
.emb-x { padding: 16px 0 16px 20px; border-left: 1px solid rgba(24,26,27,.1); display: grid; align-content: center; max-width: 220px; }
.emb-x b { font-size: 2.2rem; font-weight: 800; letter-spacing: -.04em; color: #101213; } .emb-x span { font-size: .8rem; color: var(--muted); }
.emb-nota { margin: 10px 0 0; font-size: .74rem; color: #9aa0a6; }
.emb-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 26px; background: #101213 !important; color: #fff; }
.emb-cta h3 { margin: 0 0 4px; color: #fff; } .emb-cta p { margin: 0; color: #b8bec5; max-width: 640px; }
.emb-cta-b { display: flex; gap: 8px; flex-wrap: wrap; } html .emb-cta .btn-dark { background: rgba(255,255,255,.12) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.2) !important; }
@media (max-width: 1100px) { .emb-wrap { grid-template-columns: 1fr; } .emb-tipos { grid-template-columns: 1fr; } .emb-calc-g { grid-template-columns: 1fr 1fr; } .emb-res { grid-template-columns: 1fr; } .emb-r + .emb-r, .emb-x { padding-left: 0; border-left: 0; border-top: 1px solid rgba(24,26,27,.1); } .emb-cta { flex-direction: column; align-items: flex-start; } }
@media (max-width: 600px) { .emb-calc-g { grid-template-columns: 1fr; } .emb-det dl { grid-template-columns: 1fr; gap: 2px; } .emb-det dd { margin-bottom: 8px; } }

/* franja de plataformas agrupada */
.plataformas { gap: 10px; }
.plat-g { display: grid; grid-template-columns: 170px 1fr; gap: 12px; align-items: center; padding-top: 10px; border-top: 1px solid rgba(24,26,27,.07); }
.plat-g small { font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8a9097; }
@media (max-width: 760px) { .plat-g { grid-template-columns: 1fr; gap: 6px; } }

/* ==================== Servicios: barra de pestañas con íconos animados ==================== */
.hub { position: sticky; top: 10px; z-index: 20; display: flex; gap: 4px; width: max-content; max-width: 100%; margin: 0 0 22px; padding: 5px; border-radius: 18px; overflow-x: auto; scrollbar-width: none;
  background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.95); box-shadow: 0 14px 40px -18px rgba(16,18,19,.35); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); }
.hub::-webkit-scrollbar { display: none; }
.hub-pill { position: absolute; left: 0; top: 5px; bottom: 5px; border-radius: 13px; background: #101213; transition: transform .38s cubic-bezier(.34,1.3,.64,1), width .38s cubic-bezier(.34,1.3,.64,1); z-index: 0; }
.hub-b { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 15px 0 10px; border-radius: 13px; color: #3c4146; font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap; transition: color .25s; }
.hub-b:hover { color: var(--ink); }
.hub-b.on { color: #fff; }
.hub-i { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: rgba(24,26,27,.06); transition: background .25s; }
.hub-b.on .hub-i { background: var(--lime); }
.hub-i svg { width: 16px !important; height: 16px !important; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hub-b.on .hub-i svg { color: #101213; }
/* animación de cada ícono: al pasar el mouse, y suave y continua en la pestaña activa */
@keyframes hubGira { 0%,100% { transform: rotate(0); } 50% { transform: rotate(90deg) scale(1.1); } }
@keyframes hubSalta { 0%,100% { transform: translateY(0); } 40% { transform: translateY(-4px); } 60% { transform: translateY(1px); } }
@keyframes hubGota { 0%,100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(2px) scaleY(.9); } }
@keyframes hubSube { 0%,100% { transform: translate(0,0); } 50% { transform: translate(2px,-3px); } }
@keyframes hubAbre { 0%,100% { transform: rotate(0); } 50% { transform: rotate(-10deg); } }
@keyframes hubCae { 0%,100% { transform: translateY(0); } 30% { transform: translateY(-5px); } 55% { transform: translateY(0); } 70% { transform: translateY(-2px); } }
.hub-b[data-anim="gira"]:hover svg, .hub-b.on[data-anim="gira"] svg { animation: hubGira 1.6s ease-in-out infinite; }
.hub-b[data-anim="salta"]:hover svg, .hub-b.on[data-anim="salta"] svg { animation: hubSalta 1.2s ease-in-out infinite; }
.hub-b[data-anim="gota"]:hover svg, .hub-b.on[data-anim="gota"] svg { animation: hubGota 1.1s ease-in-out infinite; }
.hub-b[data-anim="sube"]:hover svg, .hub-b.on[data-anim="sube"] svg { animation: hubSube 1.3s ease-in-out infinite; }
.hub-b[data-anim="abre"]:hover svg, .hub-b.on[data-anim="abre"] svg { animation: hubAbre 1.4s ease-in-out infinite; transform-origin: 20% 80%; }
.hub-b[data-anim="cae"]:hover svg, .hub-b.on[data-anim="cae"] svg { animation: hubCae 1.5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .hub-b svg { animation: none !important; } .hub-pill { transition: none; } }
@media (max-width: 900px) { .hub { top: 6px; width: auto; margin-bottom: 16px; } .hub-b { height: 40px; font-size: .84rem; } }

/* chat: cajita de detalle técnico debajo de la explicación simple */
.ai-tec { margin-top: 10px; padding: 11px 13px 6px; border-radius: 12px; background: #101213; color: #d9dee3; font-size: .84rem; line-height: 1.5; }
.ai-tec > b { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.ai-tec > b svg { width: 14px !important; height: 14px !important; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ai-tec ul { margin: 0 0 4px; padding-left: 16px; } .ai-tec li { margin: 3px 0; } .ai-tec p { margin: 0 0 6px; color: #d9dee3; } .ai-tec b:not(:first-child) { color: #fff; }
.source-card .fuente { display: block; margin-top: 6px; font-size: .78rem; color: #6b7177; }
