@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  --bg: #05070d;
  --bg-2: #0a0f1c;
  --panel: rgba(255, 255, 255, .04);
  --panel-2: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .09);
  --text: #e6edf7;
  --muted: #94a3b8;
  --teal: #2dd4bf;
  --teal-d: #14b8a6;
  --violet: #8b5cf6;
  --amber: #f59e0b;
  --radius: 18px;
  --head: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
h1, h2, h3, h4 { font-family: var(--head); color: #fff; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 6.4vw, 5rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.025em; }
h3 { font-size: 1.22rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
::selection { background: rgba(45, 212, 191, .35); color: #fff; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; position: relative; }

.grad {
  background: linear-gradient(90deg, var(--teal), #a78bfa, var(--teal));
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: -200% 0; } }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 1rem;
}
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-glow::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 300px at 15% 10%, rgba(139, 92, 246, .10), transparent 70%),
              radial-gradient(600px 300px at 90% 90%, rgba(45, 212, 191, .08), transparent 70%);
}
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-lead { color: var(--muted); font-size: 1.12rem; max-width: 640px; }

/* Cursor glow (solo escritorio) */
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(45, 212, 191, .10), transparent 60%);
  transform: translate(-50%, -50%); opacity: 0; transition: opacity .4s;
}
body.has-pointer .cursor-glow { opacity: 1; }

/* Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--body); font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
  will-change: transform;
}
.btn-glow {
  color: #04121a; background: linear-gradient(135deg, var(--teal), #5eead4 45%, #a78bfa);
  box-shadow: 0 10px 30px -8px rgba(45, 212, 191, .55), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.btn-glow:hover { box-shadow: 0 16px 44px -8px rgba(45, 212, 191, .75), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .03); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--teal); background: rgba(45, 212, 191, .08); }
.btn-sm { padding: 9px 18px; font-size: .92rem; color: #04121a; background: var(--teal); }
.btn-sm:hover { background: #5eead4; }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid var(--amber); outline-offset: 3px;
}

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(5, 7, 13, .72); backdrop-filter: saturate(160%) blur(14px); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-family: var(--head); font-size: 1.35rem; font-weight: 500; }
.brand b { font-weight: 700; color: var(--teal); }
.menu { display: flex; align-items: center; gap: 30px; }
.menu a:not(.btn) { color: #cbd5e1; text-decoration: none; font-weight: 500; font-size: .95rem; position: relative; }
.menu a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.menu a:not(.btn):hover { color: #fff; }
.menu a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform .25s, opacity .25s; }

/* Hero */
.hero {
  position: relative; min-height: min(100svh, 920px); display: flex; align-items: center;
  padding: 120px 0 90px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(900px 500px at 78% 30%, rgba(45, 212, 191, .14), transparent 65%),
    radial-gradient(700px 500px at 60% 90%, rgba(139, 92, 246, .16), transparent 65%),
    var(--bg);
}
.hero::after { /* rejilla sutil */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
}
#scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-orb { /* respaldo si no hay WebGL */
  display: none; position: absolute; right: 6%; top: 50%; width: 440px; height: 440px; transform: translateY(-50%); border-radius: 50%; z-index: -1;
  background: radial-gradient(circle at 35% 35%, rgba(94, 234, 212, .9), rgba(139, 92, 246, .55) 45%, transparent 70%);
  filter: blur(10px); animation: float 8s ease-in-out infinite;
}
.no-webgl .hero-orb { display: block; }
@keyframes float { 50% { transform: translateY(-54%) scale(1.04); } }
.hero-content { max-width: 1180px; }
.hero-content > * { max-width: 680px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: #cbd5e1; font-size: .88rem; backdrop-filter: blur(8px);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.hero h1 { margin: 22px 0 22px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #b6c2d4; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 44px; }
.hero-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 14px 40px; }
.hero-trust li { display: grid; padding-left: 16px; border-left: 2px solid rgba(45, 212, 191, .5); }
.hero-trust strong { color: #fff; font-family: var(--head); font-weight: 600; }
.hero-trust span { color: var(--muted); font-size: .88rem; }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .3); border-radius: 14px; transform: translateX(-50%); }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--teal); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Marquee */
.marquee { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 22px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee ul { display: flex; gap: 56px; list-style: none; margin: 0; padding: 0 28px; }
.marquee li { font-family: var(--head); font-size: 1.15rem; color: #64748b; white-space: nowrap; display: flex; align-items: center; gap: 56px; }
.marquee li::after { content: "✦"; color: rgba(45, 212, 191, .5); font-size: .8rem; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Cards (glass + spotlight + tilt) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card, .plan, .project {
  --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg;
  position: relative; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
  transform-style: preserve-3d;
}
.card::before, .plan::before, .project::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(45, 212, 191, .14), transparent 45%);
}
.card:hover, .plan:hover, .project:hover { border-color: rgba(45, 212, 191, .35); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.card:hover::before, .plan:hover::before, .project:hover::before { opacity: 1; }
.card { padding: 30px; overflow: hidden; }
.card > * { transform: translateZ(30px); }
.card p { color: var(--muted); margin: 0; }
.card-num { position: absolute; right: 22px; top: 16px; font-family: var(--head); font-size: 3rem; font-weight: 700; color: rgba(255, 255, 255, .05); }
.icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(45, 212, 191, .2), rgba(139, 92, 246, .2)); border: 1px solid rgba(45, 212, 191, .25); }
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Portal */
.portal-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; margin-bottom: 110px; }
.checks { list-style: none; padding: 0; margin: 0 0 34px; display: grid; gap: 16px; }
.checks li { position: relative; padding-left: 38px; color: #b6c2d4; }
.checks b { color: #fff; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--violet)); color: #04121a; font-size: .78rem; font-weight: 800; display: grid; place-items: center;
}

.stage { perspective: 1400px; height: 470px; position: relative; }
.mock3d {
  --rx: 10deg; --ry: -18deg;
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease);
  animation: drift 9s ease-in-out infinite;
}
@keyframes drift { 50% { translate: 0 -10px; } }
.mock-window {
  position: absolute; left: 0; top: 30px; width: 88%; border-radius: 16px; overflow: hidden;
  background: #0d1526; border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 60px 100px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(45, 212, 191, .08), 0 0 80px -20px rgba(45, 212, 191, .35);
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.mock-bar i:nth-child(1) { background: #f87171; } .mock-bar i:nth-child(2) { background: #fbbf24; } .mock-bar i:nth-child(3) { background: #34d399; }
.mock-bar span { margin-left: 10px; font-size: .78rem; color: var(--muted); }
.mock-layout { display: grid; grid-template-columns: 54px 1fr; min-height: 300px; }
.mock-side { border-right: 1px solid var(--line); padding: 16px 12px; display: grid; gap: 14px; align-content: start; }
.mock-side b { display: block; height: 28px; border-radius: 8px; background: rgba(255, 255, 255, .06); }
.mock-side b:first-child { background: linear-gradient(135deg, var(--teal), var(--violet)); }
.mock-main { padding: 18px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpis div { background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.kpis small { display: block; font-size: .68rem; color: var(--muted); }
.kpis strong { font-family: var(--head); font-size: 1.4rem; color: #fff; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; margin: 18px 0; padding: 0 2px; border-bottom: 1px solid var(--line); }
.bars span { flex: 1; height: var(--h); border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #5eead4, rgba(139, 92, 246, .7)); transform-origin: bottom; transform: scaleY(0); transition: transform 1s var(--ease); }
.in .bars span, .bars.in span { transform: scaleY(1); }
.bars span:nth-child(2) { transition-delay: .05s; } .bars span:nth-child(3) { transition-delay: .1s; } .bars span:nth-child(4) { transition-delay: .15s; }
.bars span:nth-child(5) { transition-delay: .2s; } .bars span:nth-child(6) { transition-delay: .25s; } .bars span:nth-child(7) { transition-delay: .3s; } .bars span:nth-child(8) { transition-delay: .35s; }
.mock-rows p { height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .06); margin: 0 0 10px; }
.mock-rows p:nth-child(2) { width: 80%; } .mock-rows p:nth-child(3) { width: 60%; }

.float-chip {
  position: absolute; padding: 12px 16px; border-radius: 14px; font-size: .84rem; color: #e2e8f0; white-space: nowrap;
  background: rgba(15, 23, 42, .85); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(10px);
  box-shadow: 0 25px 50px -15px rgba(0, 0, 0, .8);
}
.float-chip b { color: #fff; font-family: var(--head); font-size: 1.05rem; margin-left: 4px; }
.float-chip em { font-style: normal; color: var(--teal); font-weight: 600; }
.chip-a { right: 2%; top: 0; transform: translateZ(90px); }
.chip-b { left: -4%; bottom: 40px; transform: translateZ(130px); display: flex; align-items: center; gap: 10px; }
.up { color: #4ade80; font-weight: 700; margin-right: 6px; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(245, 158, 11, .7); animation: ping 1.8s infinite; }
.phone {
  position: absolute; right: -2%; bottom: -10px; width: 168px; padding: 22px 16px 18px; border-radius: 28px; text-align: center;
  background: linear-gradient(180deg, #111b30, #0a1222); border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .9), 0 0 60px -20px rgba(139, 92, 246, .5);
  transform: translateZ(170px);
}
.phone-notch { width: 56px; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .15); margin: -8px auto 12px; }
.phone-title { font-family: var(--head); color: #fff; margin: 0 0 12px; font-size: .95rem; }
.ring { --p: 60; position: relative; width: 96px; height: 96px; margin: 0 auto 8px; display: grid; place-items: center; }
.ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--teal) calc(var(--p) * 1%), rgba(255, 255, 255, .08) 0);
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%); mask: radial-gradient(circle, transparent 60%, #000 61%);
}
.ring span { position: relative; font-family: var(--head); font-weight: 700; color: #fff; font-size: 1.3rem; }
.phone-sub { font-size: .72rem; color: var(--muted); margin: 0 0 12px; }
.phone-btn { font-size: .75rem; font-weight: 600; color: #04121a; background: var(--teal); border-radius: 999px; padding: 7px 10px; }
.mock-note { position: absolute; left: 2%; bottom: -16px; margin: 0; font-size: .7rem; color: #475569; transform: translateZ(20px); }

/* Plans */
.plans-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 40px; margin-bottom: 30px; }
.plans-head h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.plans-head p { color: var(--muted); margin: 0; max-width: 520px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { padding: 32px; display: flex; flex-direction: column; }
.plan > * { transform: translateZ(25px); }
.plan h4 { font-size: 1.2rem; margin-bottom: 10px; color: #cbd5e1; }
.price { font-family: var(--head); margin-bottom: 22px; }
.price span { font-size: 2.4rem; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.price small { font-family: var(--body); font-size: .85rem; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; flex: 1; }
.plan li { padding-left: 26px; position: relative; color: #b6c2d4; font-size: .95rem; }
.plan li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.plan-featured {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #0f1a2e, #0a1222) padding-box,
    conic-gradient(from var(--angle), var(--teal), var(--violet), var(--amber), var(--teal)) border-box;
  animation: spin-border 6s linear infinite;
  box-shadow: 0 0 80px -30px rgba(45, 212, 191, .6);
}
@keyframes spin-border { to { --angle: 360deg; } }
.tag { position: absolute; top: -14px; left: 32px; margin: 0; background: linear-gradient(135deg, var(--amber), #fbbf24); color: #1c1306; font-size: .75rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; transform: translateZ(40px); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; --p: 0; }
.steps::before, .steps::after { content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px; border-radius: 2px; }
.steps::before { background: var(--line); }
.steps::after { background: linear-gradient(90deg, var(--teal), var(--violet)); transform-origin: left; transform: scaleX(var(--p)); box-shadow: 0 0 14px rgba(45, 212, 191, .6); }
.steps li { position: relative; z-index: 1; }
.num {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; margin-bottom: 22px;
  font-family: var(--head); font-weight: 700; font-size: 1.3rem; color: #fff;
  background: #0d1526; border: 1px solid rgba(45, 212, 191, .4); box-shadow: 0 0 30px -8px rgba(45, 212, 191, .6);
}
.steps p { color: var(--muted); margin: 0; font-size: .96rem; }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project { padding: 30px; display: flex; flex-direction: column; }
.project > * { transform: translateZ(25px); }
.project p { color: var(--muted); }
.project-tag { font-size: .74rem; font-weight: 600; color: var(--teal) !important; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 10px; }
.stack { font-size: .8rem; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.project a { font-weight: 600; text-decoration: none; }

/* About */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
.about p { color: #b6c2d4; max-width: 620px; }
.about b { color: #fff; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.facts li { display: flex; align-items: center; gap: 20px; padding: 22px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.facts strong { font-family: var(--head); font-size: 2.8rem; min-width: 90px; line-height: 1; background: linear-gradient(135deg, var(--teal), #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.facts span { color: var(--muted); }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; padding: 0 24px; margin-bottom: 12px; background: var(--panel); transition: border-color .3s, background .3s; }
.faq details[open] { border-color: rgba(45, 212, 191, .35); background: var(--panel-2); }
.faq summary { cursor: pointer; padding: 20px 32px 20px 0; font-weight: 600; color: #fff; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.5rem; color: var(--teal); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* Contact */
.contact { background: radial-gradient(800px 400px at 20% 0%, rgba(45, 212, 191, .12), transparent 70%), radial-gradient(800px 400px at 100% 100%, rgba(139, 92, 246, .14), transparent 70%), var(--bg-2); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-grid > div p { color: #b6c2d4; }
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.contact-list li { display: grid; gap: 2px; color: #fff; }
.contact-list span { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.contact-list a { color: #fff; font-weight: 600; font-size: 1.1rem; text-decoration: none; }
.contact-list a:hover { color: var(--teal); }
.form { border-radius: 22px; padding: 32px; display: grid; gap: 18px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); backdrop-filter: blur(12px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.form label { display: grid; gap: 8px; font-weight: 600; font-size: .9rem; color: #cbd5e1; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; padding: 13px 15px; border-radius: 12px; color: #fff;
  background: rgba(5, 7, 13, .6); border: 1px solid rgba(255, 255, 255, .12); transition: border-color .2s, box-shadow .2s;
}
.form select option { background: #0a0f1c; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(45, 212, 191, .15); outline: none; }
.form textarea { resize: vertical; }
.form ::placeholder { color: #64748b; }
.form .btn { width: 100%; }
.form-note { margin: 0; font-size: .82rem; color: var(--muted); text-align: center; }
.form .error { border-color: #f87171; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 36px 0; font-size: .9rem; color: #64748b; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer p { margin: 0; }

/* WhatsApp */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37, 211, 102, .35); transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Tienda: barra de navegación ---------- */
.nav-actions { display: flex; align-items: center; gap: 10px; }
.account-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; color: #fff; text-decoration: none;
  font-weight: 600; font-size: .92rem; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .04);
}
.account-link:hover { border-color: var(--teal); }
.account-link svg, .cart-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-btn {
  position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; color: #04121a;
  background: linear-gradient(135deg, var(--teal), #a78bfa); border: 0; box-shadow: 0 8px 22px -8px rgba(45, 212, 191, .6);
}
.badge {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center;
  background: var(--amber); color: #1c1306; font-size: .72rem; font-weight: 800; border: 2px solid var(--bg);
}
.badge[hidden] { display: none; }

/* ---------- Tienda: portada ---------- */
.store-group { font-size: 1.35rem; margin: 10px 0 18px; color: #cbd5e1; }
.store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 40px; }
.product { padding: 30px; display: flex; flex-direction: column; }
.product > * { transform: translateZ(25px); }
.product-type { font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.product h4 { font-size: 1.15rem; }
.product-desc { color: var(--muted); font-size: .95rem; flex: 1; }
.product .price { margin: 6px 0 20px; }
.product .price span { font-size: 2rem; }
.product { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; position: relative; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015)); transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .35s var(--ease), border-color .35s; transform-style: preserve-3d; }
.product:hover { border-color: rgba(45, 212, 191, .35); }
.product-featured, .product-featured:hover {
  border: 1px solid transparent;
  background: linear-gradient(180deg, #0f1a2e, #0a1222) padding-box, conic-gradient(from var(--angle), var(--teal), var(--violet), var(--amber), var(--teal)) border-box;
  animation: spin-border 6s linear infinite; box-shadow: 0 0 80px -30px rgba(45, 212, 191, .6);
}
.product .tag { transform: translateZ(40px); }
.store-loading { color: var(--muted); }
.store-trust { display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: .9rem; }
.store-trust span::before { content: "✓"; color: var(--teal); font-weight: 700; margin-right: 8px; }
.plan-quote { display: block; text-align: center; margin-top: 12px; font-size: .88rem; color: var(--muted); }
.plan-quote:hover { color: var(--teal); }

/* ---------- Carrito (panel lateral) ---------- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(2, 4, 10, .6); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 91; width: min(440px, 100%); display: flex; flex-direction: column;
  background: #0b1120; border-left: 1px solid var(--line); box-shadow: -30px 0 60px rgba(0, 0, 0, .5);
  transform: translateX(105%); transition: transform .4s var(--ease); visibility: hidden;
}
.cart-open .drawer { transform: none; visibility: visible; }
.cart-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.4rem; margin: 0; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: #fff; cursor: pointer; font-size: 1rem; }
.icon-btn:hover { border-color: var(--teal); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line-info strong { display: block; color: #fff; font-weight: 600; }
.line-info span { color: var(--muted); font-size: .88rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; height: 36px; align-self: start; }
.qty button { width: 34px; height: 34px; border: 0; background: transparent; color: #fff; cursor: pointer; font-size: 1.1rem; }
.qty button:hover { color: var(--teal); }
.qty output { min-width: 22px; text-align: center; font-weight: 600; }
.link-btn { grid-column: 1; justify-self: start; border: 0; background: none; padding: 0; color: var(--muted); font-size: .85rem; cursor: pointer; text-decoration: underline; }
.link-btn:hover { color: #f87171; }
.drawer-foot { padding: 20px 24px 26px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.drawer-foot .btn { width: 100%; }
.drawer-foot .fine { margin: 0; color: var(--muted); font-size: .82rem; text-align: center; }
.totals { margin: 0; display: grid; gap: 6px; }
.totals div { display: flex; justify-content: space-between; color: var(--muted); }
.totals dd { margin: 0; color: #fff; font-variant-numeric: tabular-nums; }
.totals .grand { padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 1.15rem; }
.totals .grand dt { color: #fff; font-weight: 600; }
.totals .grand dd { font-family: var(--head); font-weight: 700; font-size: 1.4rem; }
.empty { text-align: center; padding: 60px 0; color: var(--muted); }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 20px; border-radius: 999px; background: #fff; color: #04121a; font-weight: 600; box-shadow: 0 20px 40px rgba(0, 0, 0, .4);
  transition: opacity .3s, transform .3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Páginas de cuenta, pago y términos ---------- */
.page { min-height: 100svh; padding: 120px 0 80px; background: radial-gradient(800px 400px at 80% 0%, rgba(45, 212, 191, .10), transparent 70%), radial-gradient(700px 400px at 0% 100%, rgba(139, 92, 246, .12), transparent 70%), var(--bg); }
.page h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.page-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: start; }
.panel { border-radius: 22px; padding: 30px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); backdrop-filter: blur(12px); }
.panel h2 { font-size: 1.35rem; margin-bottom: 14px; }
.panel + .panel { margin-top: 24px; }
.auth-box { max-width: 460px; margin: 0 auto; text-align: center; }
.auth-box p { color: var(--muted); }
.btn-google { width: 100%; color: #1f2937; background: #fff; border: 1px solid #e5e7eb; }
.btn-google:hover { box-shadow: 0 10px 30px -10px rgba(255, 255, 255, .4); }
.btn-google svg { width: 20px; height: 20px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: .85rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.inline-form { display: grid; gap: 12px; }
.inline-form input, .page .form input, .page .form select {
  font: inherit; padding: 13px 15px; border-radius: 12px; color: #fff; background: rgba(5, 7, 13, .6); border: 1px solid rgba(255, 255, 255, .12);
}
.inline-form input:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 4px rgba(45, 212, 191, .15); }
.page .form { background: transparent; border: 0; box-shadow: none; padding: 0; backdrop-filter: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check-line { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 400 !important; color: var(--muted) !important; }
.check-line input { margin-top: 4px; accent-color: var(--teal); }
.notice { border-radius: 14px; padding: 14px 18px; margin-bottom: 20px; font-size: .95rem; border: 1px solid; }
.notice-info { background: rgba(45, 212, 191, .08); border-color: rgba(45, 212, 191, .3); color: #ccfbf1; }
.notice-warn { background: rgba(245, 158, 11, .08); border-color: rgba(245, 158, 11, .35); color: #fde68a; }
.notice-error { background: rgba(248, 113, 113, .08); border-color: rgba(248, 113, 113, .35); color: #fecaca; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); color: #cbd5e1; }
.summary-line span:last-child { color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.user-chip { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.user-chip img, .avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, var(--teal), var(--violet)); display: grid; place-items: center; color: #04121a; font-weight: 800; }
.user-chip strong { display: block; color: #fff; }
.user-chip span { color: var(--muted); font-size: .88rem; }
.orders { width: 100%; border-collapse: collapse; font-size: .93rem; }
.orders th { text-align: left; color: var(--muted); font-weight: 500; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.orders td { padding: 14px 8px; border-bottom: 1px solid var(--line); color: #e2e8f0; vertical-align: top; }
.orders td small { display: block; color: var(--muted); }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.status-pagado { background: rgba(34, 197, 94, .15); color: #86efac; }
.status-pendiente { background: rgba(245, 158, 11, .15); color: #fcd34d; }
.status-rechazado, .status-error { background: rgba(248, 113, 113, .15); color: #fca5a5; }
.status-anulado { background: rgba(148, 163, 184, .15); color: #cbd5e1; }
.result { text-align: center; max-width: 620px; margin: 0 auto; }
.result-icon { width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; font-size: 2.4rem; font-weight: 800; }
.result-ok .result-icon { background: rgba(34, 197, 94, .15); color: #4ade80; box-shadow: 0 0 60px -10px rgba(34, 197, 94, .6); }
.result-bad .result-icon { background: rgba(248, 113, 113, .12); color: #f87171; }
.result p { color: #b6c2d4; }
.result .hero-cta { justify-content: center; }
.legal { max-width: 820px; }
.legal h2 { font-size: 1.4rem; margin-top: 36px; }
.legal p, .legal li { color: #b6c2d4; }
.simple-nav .nav-inner { justify-content: space-between; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.footer a { color: #94a3b8; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.card.reveal.in, .plan.reveal.in, .project.reveal.in { transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); }

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .bars span { transform: none; }
  .cursor-glow { display: none; }
}

/* Responsive */
@media (max-width: 1024px) {
  .portal-grid, .about, .contact-grid { grid-template-columns: 1fr; }
  .stage { max-width: 600px; width: 100%; margin: 0 auto; }
  .cards, .projects, .plans, .store-grid { grid-template-columns: repeat(2, 1fr); }
  .page-grid { grid-template-columns: 1fr; }
  .menu { gap: 22px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before, .steps::after { display: none; }
}
@media (max-width: 760px) {
  .nav { background: rgba(5, 7, 13, .8); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
  .nav-toggle { display: block; }
  .menu {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(5, 7, 13, .97); border-bottom: 1px solid var(--line); padding: 8px 16px 18px; display: none;
  }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .menu a:not(.btn)::after { display: none; }
  .menu .btn { margin-top: 14px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { padding-top: 110px; min-height: auto; }
  #scene { opacity: .6; }
  .hero-content::before { /* oscurece la escena detrás del texto */
    content: ""; position: absolute; inset: -40px -16px; z-index: -1;
    background: linear-gradient(180deg, rgba(5, 7, 13, .2), rgba(5, 7, 13, .55) 40%, rgba(5, 7, 13, .2));
  }
  .hero-cta .btn { width: 100%; }
  .scroll-hint { display: none; }
  .cards, .projects, .plans, .steps, .store-grid, .form-row { grid-template-columns: 1fr; }
  .account-link:not(.keep-label) span { display: none; }
  .account-link:not(.keep-label) { padding: 10px; border-radius: 50%; }
  .panel { padding: 22px; }
  .orders thead { display: none; }
  .orders tr { display: grid; grid-template-columns: 1fr auto; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .orders td { border: 0; padding: 4px 0; }
  .plan-featured { order: -1; }
  .stage { height: 400px; }
  .mock3d { --rx: 8deg; --ry: 4deg; }
  .mock-window { width: 96%; }
  .mock-layout { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .chip-a { right: 0; top: -6px; }
  .chip-b { left: 6%; bottom: 6px; font-size: .76rem; transform: translateZ(60px); }
  .chip-a { transform: translateZ(50px); }
  .phone { transform: translateZ(80px); }
  .phone { width: 132px; right: 3%; bottom: 40px; padding: 18px 12px 14px; }
  .ring { width: 76px; height: 76px; }
  .ring span { font-size: 1.1rem; }
  .card > *, .plan > *, .project > * { transform: none; }
}
