/* Spectra · landing */
:root {
  --bg: #0b0a10;
  --bg-2: #111019;
  --card: #15141d;
  --card-2: #1b1a25;
  --line: #262432;
  --line-2: #353244;
  --text: #f5f4f8;
  --text-2: #b6b3c4;
  --text-3: #8b879c;
  --violet: #8b5cf6;
  --violet-2: #b18cff;
  --pink: #e0459b;
  --live: #ff4d6d;
  --ok: #34d399;
  --amber: #fbbf24;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 400 16px/1.6 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px;
  border-radius: 11px; border: 1px solid transparent; font-weight: 600; font-size: 15px; cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.btn-primary { background: var(--accent-fill); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 8px 24px rgba(139,92,246,.3); }
.btn-primary:hover { background: var(--accent-fill-hover); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-3); background: rgba(255,255,255,.03); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 9px; }

/* Navegación */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(11,10,16,.8); backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid rgba(255,255,255,.06); }
.nav .wrap { display: flex; align-items: center; gap: 32px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: 'Quicksand', 'Inter', system-ui, sans-serif; font-weight: 700; font-size: 22px; color: #b9a2ff; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--text-2); font-weight: 500; font-size: 14.5px; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* Hero */
.hero { position: relative; padding: 80px 0 72px; text-align: center; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; left: 50%; top: -260px; width: 1100px; height: 700px; transform: translateX(-50%); z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(139,92,246,.22), transparent 70%);
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-2); color: var(--text-2); font-size: 13.5px; font-weight: 500; }
.eyebrow b { background: rgba(139,92,246,.16); color: var(--violet-2); font-weight: 600; font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.hero h1 { margin: 22px auto 0; max-width: 860px; font-size: clamp(36px, 5.8vw, 64px); line-height: 1.06; letter-spacing: -2px; font-weight: 800; }
.hero h1 span { color: var(--violet-2); }
.hero .sub { margin: 20px auto 0; max-width: 680px; color: var(--text-2); font-size: clamp(16px, 1.9vw, 19px); }
.hero .ctas { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.trust { margin-top: 18px; display: flex; gap: 8px 22px; justify-content: center; flex-wrap: wrap; color: var(--text-3); font-size: 14px; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust .i { width: 16px; height: 16px; color: var(--ok); stroke-width: 2.4; }

/* Demo del producto: panel del mod → directo en OBS */
.demo { margin: 56px auto 0; display: grid; grid-template-columns: minmax(0, 5fr) 76px minmax(0, 7fr); align-items: center; text-align: left; }
.demo-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.demo-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.demo-label em { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--line-2); font-size: 12px; color: var(--text); }
.win { position: relative; border-radius: 14px; background: var(--card); border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0,0,0,.5); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: var(--card-2); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--text-3); }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3746; }
.win-bar span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-bar .live { white-space: nowrap; flex: none; margin-left: auto; font-weight: 700; color: #fff; background: var(--live-fill); font-size: 10.5px; letter-spacing: .5px; padding: 2px 7px; border-radius: 5px; }

.panel { padding: 14px; display: grid; gap: 10px; font-size: 13px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.panel-head b { font-size: 13.5px; }
.panel-head small { color: var(--text-3); display: block; font-size: 11.5px; }
.ok-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--ok); padding: 3px 8px; border-radius: 999px; background: rgba(52,211,153,.1); white-space: nowrap; }
.ok-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.plabel { font-size: 10.5px; font-weight: 700; letter-spacing: .8px; color: var(--text-3); margin-top: 2px; }
.prow { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line); }
.prow.hot { border-color: rgba(139,92,246,.6); box-shadow: 0 0 0 3px rgba(139,92,246,.14); }
.thumb { width: 34px; height: 34px; border-radius: 8px; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 11px; color: #3a1d00; }
.thumb.t1 { background: linear-gradient(135deg, #ffd27a, #ff8f4d); }
.thumb.t2 { background: linear-gradient(135deg, #6ee7ff, #7c4dff); color: #fff; }
.prow .t { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow .t small { display: block; font-weight: 400; color: var(--text-3); font-size: 11px; }
.pbtn { flex: none; position: relative; font-size: 11.5px; font-weight: 700; padding: 6px 10px; border-radius: 8px; background: var(--card); border: 1px solid var(--line-2); color: var(--text-2); }
.pbtn.go { background: var(--accent-fill); border-color: var(--accent-fill); color: #fff; }
.pbtn.out { color: #ff8fa3; border-color: rgba(255,77,109,.45); }
.cursor { position: absolute; right: -8px; bottom: -14px; width: 18px; height: 18px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.6)); }
.pads { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pad { padding: 9px 4px; border-radius: 9px; background: var(--card-2); border: 1px solid var(--line); text-align: center; font-size: 11px; font-weight: 600; color: var(--text-2); }
.pad.on { border-color: var(--violet); background: rgba(139,92,246,.14); color: var(--violet-2); }
.safety { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.safety span { padding: 9px; border-radius: 9px; text-align: center; font-size: 11.5px; font-weight: 700; border: 1px solid var(--line-2); color: var(--text-2); }
.safety span.em { border-color: rgba(255,77,109,.45); color: #ff8fa3; background: rgba(255,77,109,.08); }

.arrow { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--violet-2); font-size: 11.5px; font-weight: 600; }
.arrow svg { width: 52px; height: 20px; }

.scene { position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(110,231,255,.16), transparent 50%),
    radial-gradient(ellipse at 20% 90%, rgba(224,69,155,.14), transparent 50%),
    linear-gradient(170deg, #20294a 0%, #161b31 50%, #0f1223 100%); }
.scene::after { content: ''; position: absolute; left: -10%; right: -10%; bottom: 0; height: 42%;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 48px), linear-gradient(180deg, transparent, rgba(0,0,0,.35));
  transform: perspective(300px) rotateX(58deg); transform-origin: bottom; }
.hud-hp { position: absolute; left: 3%; bottom: 5%; z-index: 2; width: 22%; }
.hud-hp b { display: block; font-size: clamp(8px, 1vw, 11px); color: rgba(255,255,255,.7); margin-bottom: 3px; }
.hud-hp i { display: block; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #34d399 72%, rgba(255,255,255,.12) 72%); }
.hud-map { position: absolute; left: 3%; top: 5%; z-index: 2; width: 13%; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255,255,255,.18); background: rgba(0,0,0,.25); }
.cam { position: absolute; right: 3%; bottom: 5%; z-index: 2; width: 24%; aspect-ratio: 4/3; border-radius: 10px; border: 2px solid rgba(255,255,255,.16);
  background: radial-gradient(circle at 50% 40%, #7a6aa0 0 15%, transparent 16%), radial-gradient(ellipse at 50% 105%, #544673 0 40%, transparent 41%), linear-gradient(180deg, #2c2542, #1d1830); }
.ov-meme { position: absolute; left: 50%; top: 14%; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 3%; width: 58%; padding: 2.4% 3%; border-radius: 14px;
  background: rgba(14, 11, 24, .9); border: 1px solid rgba(177,140,255,.5); box-shadow: 0 16px 40px rgba(0,0,0,.45); animation: pop .6s .3s both; }
.ov-meme .face { width: 24%; aspect-ratio: 1; border-radius: 10px; background: linear-gradient(135deg, #ffd27a, #ff8f4d); display: grid; place-items: center; font-weight: 900; font-size: clamp(12px, 2.2vw, 26px); color: #3a1d00; flex: none; }
.ov-meme b { display: block; font-size: clamp(14px, 2.6vw, 30px); font-weight: 900; letter-spacing: .5px; line-height: 1; }
.ov-meme small { display: block; margin-top: 4px; color: var(--text-2); font-size: clamp(9px, 1.1vw, 13px); }
.ov-sound { position: absolute; left: 50%; top: 58%; transform: translateX(-50%); z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(14, 11, 24, .85); border: 1px solid rgba(255,255,255,.14); font-size: clamp(9px, 1vw, 12px); font-weight: 600; white-space: nowrap; animation: pop .5s .6s both; }
.ov-sound .i { width: 14px; height: 14px; color: #6ee7ff; }
.by { position: absolute; right: 10px; top: 44px; z-index: 4; font-size: 11px; font-weight: 600; color: var(--text-2); background: var(--card-2); border: 1px solid var(--line-2); padding: 3px 8px; border-radius: 999px; }
@keyframes pop { from { opacity: 0; transform: translateX(-50%) translateY(10px) scale(.92); } }

.works { margin-top: 44px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 28px; color: var(--text-3); font-size: 14px; }
.works b { color: var(--text-2); font-weight: 600; }

/* Secciones */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.05); }
.kicker { color: var(--violet-2); font-weight: 600; font-size: 13.5px; }
.section h2 { margin: 8px 0 0; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -1px; font-weight: 800; }
.section .lead { margin: 14px 0 0; color: var(--text-2); font-size: 17.5px; max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.features { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: rgba(139,92,246,.12); color: var(--violet-2); border: 1px solid rgba(139,92,246,.25); }
.ico .i { width: 21px; height: 21px; }
.ico.red { background: rgba(255,77,109,.1); border-color: rgba(255,77,109,.3); color: #ff8fa3; }
.feature h3 { margin: 16px 0 6px; font-size: 17px; font-weight: 700; }
.feature p { margin: 0; color: var(--text-2); font-size: 15px; }

/* Funciones agrupadas: en pantalla · widgets · equipo */
.fgroups { margin-top: 48px; display: grid; gap: 40px; }
.fgroup-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.fgroup-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: var(--violet-2); background: rgba(139,92,246,.12); border: 1px solid rgba(139,92,246,.3); margin-top: 2px; }
.fgroup-head h3 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.fgroup-head p { margin: 4px 0 0; color: var(--text-2); font-size: 15px; }
.fcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fcard { padding: 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.fcard .ico { width: 38px; height: 38px; }
.fcard h4 { margin: 14px 0 6px; font-size: 16px; font-weight: 700; }
.fcard p { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.5; }

.steps { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.step::before { counter-increment: s; content: 'Paso ' counter(s); display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--violet-2); margin-bottom: 10px; }
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--text-2); font-size: 15px; }
.step code, .checks code { font-size: 13px; background: var(--card-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; color: var(--text); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.checks { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.checks li { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; }
.checks strong { display: block; font-size: 16px; font-weight: 700; }
.checks span { color: var(--text-2); font-size: 15px; }

/* Móvil del mando */
.phone-show { display: flex; justify-content: center; }
.phone { width: 290px; padding: 11px; border-radius: 34px; background: #08070c; border: 1px solid var(--line-2); box-shadow: 0 40px 90px rgba(0,0,0,.55), inset 0 0 0 3px #17151f; }
.phone-in { border-radius: 25px; background: var(--card); padding: 16px 14px; display: grid; gap: 9px; font-size: 13px; }
.phone .tabs { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 10.5px; font-weight: 600; color: var(--text-3); text-align: center; }
.phone .tabs b { color: var(--violet-2); }

/* Flujo de control */
.flow { padding: 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 12px; }
.flow-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); }
.tag { font-size: 11px; font-weight: 700; letter-spacing: .5px; padding: 4px 8px; border-radius: 6px; flex: none; }
.tag.prep { background: rgba(251,191,36,.12); color: var(--amber); }
.tag.live { background: rgba(255,77,109,.14); color: #ff8fa3; }
.flow-row .t { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; }
.flow-row .t small { display: block; color: var(--text-3); font-weight: 400; font-size: 12.5px; }
.flow-row .act { font-size: 12.5px; font-weight: 700; padding: 7px 12px; border-radius: 8px; background: var(--violet); color: #fff; flex: none; }
.flow-row .act.ghost { background: transparent; border: 1px solid var(--line-2); color: var(--text-2); }
.flow-arrow { text-align: center; color: var(--text-3); font-size: 13px; }
.flow .emerg { justify-content: center; background: rgba(255,77,109,.08); border-color: rgba(255,77,109,.35); color: #ff8fa3; font-weight: 700; font-size: 14px; }

/* Chat (secundario) */
.chat-card { padding: 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 16px; }
.poll b { display: block; font-size: 15px; margin-bottom: 4px; }
.bar { position: relative; height: 34px; border-radius: 9px; background: var(--card-2); margin-top: 7px; overflow: hidden; display: flex; align-items: center; padding: 0 12px; font-size: 13.5px; font-weight: 600; }
.bar i { position: absolute; inset: 0 auto 0 0; background: rgba(139,92,246,.28); border-right: 2px solid var(--violet); }
.bar span { position: relative; display: flex; justify-content: space-between; width: 100%; }
.bar em { font-style: normal; }
.hl { padding: 14px 16px; border-radius: 12px; background: var(--card-2); border: 1px solid rgba(177,140,255,.35); }
.hl .who { font-weight: 700; color: var(--violet-2); font-size: 13.5px; }
.hl .msg { font-weight: 600; margin-top: 2px; }

/* Precios */
.demo-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 6px 14px; border-radius: 999px; background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.3); color: var(--amber); font-size: 13.5px; font-weight: 500; }
.pricing { margin: 44px auto 0; display: flex; justify-content: center; align-items: stretch; gap: 20px; flex-wrap: wrap; }
.price-card { position: relative; flex: 0 1 360px; display: flex; flex-direction: column; padding: 32px 30px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); text-align: left; }
.price-card.featured { border-color: rgba(139,92,246,.7); box-shadow: 0 0 0 1px rgba(139,92,246,.35), 0 30px 80px rgba(139,92,246,.16); }
.price-card .badge { position: absolute; top: -12px; left: 30px; background: var(--violet); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.price-card h3 { margin: 0; font-size: 19px; }
.price-card .tagline { margin: 6px 0 0; color: var(--text-2); font-size: 14.5px; min-height: 44px; }
.price-card .amount { margin: 22px 0 4px; display: flex; align-items: baseline; gap: 6px; }
.price-card .amount b { font-size: 46px; font-weight: 800; letter-spacing: -1.5px; line-height: 1; }
.price-card .amount span { color: var(--text-3); font-size: 15px; }
.price-card .note { color: var(--text-3); font-size: 13px; }
.price-card ul { margin: 22px 0 28px; padding: 0; list-style: none; display: grid; gap: 11px; flex: 1; }
.price-card li { display: flex; gap: 10px; font-size: 15px; }
.price-card li::before { content: ''; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: rgba(52,211,153,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.price-card li.off { color: var(--text-3); }
.price-card li.off::before { background: var(--card-2); }
.price-card .btn { width: 100%; }
.pricing-foot { margin-top: 22px; text-align: center; color: var(--text-3); font-size: 14px; }

/* Preguntas */
.faq { max-width: 800px; margin: 40px auto 0; display: grid; gap: 10px; }
.faq details { border-radius: 13px; background: var(--card); border: 1px solid var(--line); padding: 0 22px; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--violet-2); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 18px; color: var(--text-2); font-size: 15px; }

/* CTA final */
.final { margin: 0 auto; max-width: 1000px; padding: 60px 32px; border-radius: 22px; text-align: center; border: 1px solid rgba(139,92,246,.35);
  background: radial-gradient(520px 220px at 50% 0%, rgba(139,92,246,.28), transparent 70%), var(--card); }
.final h2 { margin: 0; font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -1px; }
.final p { margin: 14px auto 28px; max-width: 540px; color: var(--text-2); font-size: 17px; }

/* Pie */
.footer { margin-top: 96px; padding: 40px 0; border-top: 1px solid var(--line); color: var(--text-3); font-size: 14px; }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer .brand { font-size: 19px; }
.footer .brand img { width: 26px; height: 26px; }
.footer p { margin: 10px 0 0; max-width: 380px; }
.footer h4 { margin: 0 0 10px; color: var(--text-2); font-size: 13.5px; }
.footer nav { display: grid; gap: 6px; }
.footer nav a:hover { color: var(--text); }
.footer .copy { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); }

/* Responsive */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .fcards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .demo { grid-template-columns: minmax(0, 1fr); gap: 8px; max-width: 560px; }
  .arrow { flex-direction: row; padding: 4px 0; }
  .arrow svg { transform: rotate(90deg); width: 34px; }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
  .footer .wrap > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav .wrap { height: 60px; gap: 12px; }
  .nav-cta .btn-ghost { display: none; }
  .hero { padding: 52px 0 56px; }
  .hero h1 { letter-spacing: -1px; }
  .hero .ctas .btn { width: 100%; }
  .section { padding: 68px 0; }
  .features { grid-template-columns: 1fr; }
  .fcards { grid-template-columns: 1fr; gap: 10px; }
  .fcard { display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; padding: 16px; }
  .fcard .ico { width: 34px; height: 34px; grid-row: span 2; }
  .fcard h4 { margin: 4px 0 4px; }
  .hud-map { display: none; }
  .final { padding: 44px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  :where(*:not(.ld-stage, .ld-stage *)), :where(*:not(.ld-stage, .ld-stage *))::before, :where(*:not(.ld-stage, .ld-stage *))::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Pantallas anchas: más ancho útil y portada a dos columnas ---------- */
@media (min-width: 1280px) {
  .wrap { max-width: 1240px; }
  .hero-wrap, .nav .wrap { max-width: 1320px; }
}
@media (min-width: 1100px) {
  .hero { padding: clamp(40px, 6vh, 72px) 0 56px; text-align: left; }
  .hero::before { left: 72%; top: -200px; }
  .hero-grid { display: grid; grid-template-columns: minmax(380px, 0.82fr) minmax(0, 1.18fr); gap: clamp(36px, 4vw, 72px); align-items: center; }
  .hero h1 { margin: 14px 0 0; max-width: none; font-size: clamp(40px, 3.6vw, 56px); }
  .hero .ld-steps span:not(.on) { display: none; }
  .hero .sub { margin: 22px 0 0; max-width: 540px; }
  .hero .ctas, .trust { justify-content: flex-start; }
  .trust { flex-direction: column; gap: 8px; }
  .hero .live-demo { margin: 0; max-width: none; width: 100%; }
  .hero .works { margin-top: 44px; }
  .hero .eyebrow { margin: 0; }
}

/* Accesibilidad: foco visible */
:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 2px; }

/* Precios: estrellas que se acercan al cursor y entrada escalonada. */
.pricing-sec { position: relative; overflow: hidden; isolation: isolate; }
.pricing-sec .starfield { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.pricing-sec::after { content: ''; position: absolute; inset: 10% 15% auto; height: 70%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(139,92,246,.18), transparent); }
.js-reveal [data-reveal] { opacity: 0; transform: translateY(-14px); filter: blur(8px); transition: opacity .55s ease-out, transform .55s cubic-bezier(.2,.8,.2,1), filter .55s ease-out; transition-delay: calc(var(--i, 0) * 110ms); }
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; filter: blur(0); }
@media (min-width: 900px) { .js-reveal .price-card.featured[data-reveal].is-in { transform: translateY(-12px); } }
.price-card { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s; }
.price-card:hover { border-color: rgba(176,107,255,.55); }
.price-card .amount b { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .js-reveal [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; } }

/* Tarjetas con relieve: luz que sigue al cursor, inclinación 3D y sombra que crece. */
.fcard, .step, .feature {
  position: relative; isolation: isolate; transform-style: preserve-3d;
  background: linear-gradient(160deg, color-mix(in srgb, var(--card) 88%, #fff 6%), var(--card) 55%, color-mix(in srgb, var(--card) 85%, #000 15%));
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 10px 24px -12px rgba(0,0,0,.6), 0 2px 6px rgba(0,0,0,.25);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s cubic-bezier(.2,.8,.2,1), border-color .3s;
  will-change: transform;
}
.fcard::before, .step::before, .feature::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(176,107,255,.22), transparent 65%);
}
.fcard:hover, .step:hover, .feature:hover {
  --lift: -6px; border-color: rgba(176,107,255,.45);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 28px 50px -18px rgba(90,40,200,.55), 0 10px 22px -10px rgba(0,0,0,.6);
}
.fcard:hover::before, .step:hover::before, .feature:hover::before { opacity: 1; }
.fcard.tilting, .step.tilting, .feature.tilting { transition: transform .1s linear, box-shadow .45s, border-color .3s; }
.fcard .ico { transition: transform .45s cubic-bezier(.2,.8,.2,1); transform: translateZ(0); }
.fcard:hover .ico { transform: translateZ(30px) scale(1.08); }
.fcard h4, .fcard p { transform: translateZ(14px); }
/* Entrada escalonada de secciones y tarjetas. */
.js-reveal [data-reveal-auto] { opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity .6s ease-out, transform .6s cubic-bezier(.2,.8,.2,1), filter .6s ease-out; transition-delay: calc(var(--i, 0) * 70ms); }
.js-reveal [data-reveal-auto].is-in { opacity: 1; transform: none; filter: none; }
.js-reveal .fcard[data-reveal-auto].is-in, .js-reveal .step[data-reveal-auto].is-in, .js-reveal .feature[data-reveal-auto].is-in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px)); }
@media (prefers-reduced-motion: reduce) {
  .fcard, .step, .feature { transform: none !important; transition: border-color .3s; }
  .js-reveal [data-reveal-auto] { opacity: 1; transform: none; filter: none; transition: none; }
}
