
/* ============ SOCIALE.CL — 3D scroll experience ============ */
:root {
  --bg: #07070a;
  --bg-2: #0c0c12;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-2: rgba(255, 255, 255, 0.16);

  --blue: #9dcaff;
  --blue-deep: #4f8dff;
  --purple: #bd00ff;
  --purple-soft: #c75cff;

  --text: #f3f4f8;
  --text-2: #b9bcc8;
  --text-3: #71748a;

  --grad: linear-gradient(110deg, #9dcaff 0%, #bd00ff 100%);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ambient deep-space background, fixed behind everything */
#space {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(700px circle at 15% 8%, rgba(79,141,255,0.16), transparent 55%),
    radial-gradient(760px circle at 85% 0%, rgba(189,0,255,0.15), transparent 55%),
    radial-gradient(1100px circle at 50% 120%, rgba(157,202,255,0.06), transparent 60%),
    var(--bg);
}
#starfield { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .55; }

/* ---------- document-flow 3D world ---------- */
#page { position: relative; z-index: 2; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 30px; }

/* ---------- scenes ---------- */
.scene {
  position: relative;
  z-index: 1;
  padding: clamp(80px, 13vh, 165px) 0;
  display: flex; align-items: center;
  perspective: 1400px;
  perspective-origin: 50% 50%;
}
#hero.scene { min-height: 100vh; padding-top: 112px; }
.scene-inner {
  width: 100%;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}
.depth { will-change: transform; }

/* ---------- typography ---------- */
.eyebrow {
  font-family: var(--font-display); font-size: 13px; letter-spacing: .24em;
  text-transform: uppercase; color: var(--blue); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, var(--blue), transparent); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.04; letter-spacing: -0.02em; }
.scene-head { max-width: 660px; margin-bottom: 56px; }
.scene-head h2 { font-size: clamp(36px, 5.4vw, 60px); margin: 18px 0 16px; }
.scene-head p { color: var(--text-2); font-size: 18px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  padding: 15px 27px; border-radius: 100px; cursor: pointer;
  border: 1px solid transparent; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, background .35s;
  white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #06060a; box-shadow: 0 14px 44px -14px rgba(157,202,255,0.6); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 0 32px -2px rgba(189,0,255,0.55), 0 20px 54px -16px rgba(157,202,255,0.7); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--stroke-2); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-3px); }
.btn svg { width: 18px; height: 18px; }

/* ---------- nav (fixed above the 3D world) ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; transition: background .4s, backdrop-filter .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(7,7,10,0.7); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); border-bottom: 1px solid var(--stroke); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.03em; display: flex; align-items: center; gap: 11px; }
.logo .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 14px var(--purple-soft); }
.logo-mark { width: auto; height: 30px; display: block; filter: drop-shadow(0 3px 10px rgba(189,0,255,0.45)); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.logo:hover .logo-mark { transform: translateY(-2px) rotate(-3deg); }
.logo span { color: var(--text-3); font-weight: 500; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--text-2); font-size: 15px; font-weight: 500; transition: color .25s; cursor: pointer; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.menu-btn { display: none; background: none; border: none; color: var(--text); cursor: pointer; }

/* ---------- scroll progress + hint ---------- */
#progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 70; background: var(--grad); box-shadow: 0 0 12px var(--purple-soft); }
.scroll-hint { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 9px; color: var(--text-3); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; transition: opacity .5s; }
.scroll-hint .mouse { width: 24px; height: 38px; border: 1.5px solid var(--stroke-2); border-radius: 13px; position: relative; }
.scroll-hint .mouse::before { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; border-radius: 2px; background: var(--blue); transform: translateX(-50%); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- hero ---------- */
.hero-grid { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 44px; align-items: center; width: 100%; }
.hero-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 100px; background: var(--surface); border: 1px solid var(--stroke); font-size: 13.5px; color: var(--text-2); margin-bottom: 26px; }
.hero-pill b { color: var(--text); font-weight: 600; }
.hero-pill .tag { font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: .08em; background: var(--grad); color: #06060a; padding: 3px 9px; border-radius: 100px; }
.hero h1 { font-size: clamp(34px, 4vw, 56px); margin-bottom: 24px; }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--text-2); max-width: 520px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stat .num { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1; }
.hero-stat .lbl { font-size: 13px; color: var(--text-3); margin-top: 7px; }

.hero-visual { position: relative; height: 560px; border-radius: 28px; overflow: hidden; border: 1px solid var(--stroke); background: radial-gradient(120% 120% at 70% 10%, rgba(189,0,255,0.16), rgba(7,7,10,0) 55%), #08080c; box-shadow: 0 60px 120px -50px rgba(189,0,255,0.5); }
#neural-orb { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
#spline { position: absolute; inset: 0; width: 100% !important; height: 100% !important; z-index: 2; }
#spline::part(logo) { display: none; }
.hero-visual-tag { position: absolute; left: 18px; bottom: 18px; z-index: 4; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--text-2); background: rgba(7,7,10,0.55); backdrop-filter: blur(8px); border: 1px solid var(--stroke); padding: 7px 13px 7px 11px; border-radius: 100px; }
.hero-visual-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #38d39f; box-shadow: 0 0 10px #38d39f; animation: livepulse 1.8s ease-in-out infinite; }
@keyframes livepulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- floating 3D decor ---------- */
.decor { position: absolute; pointer-events: none; transform-style: preserve-3d; }
.cube { width: 70px; height: 70px; transform-style: preserve-3d; animation: floaty 9s ease-in-out infinite; }
.cube .face { position: absolute; width: 70px; height: 70px; border: 1px solid var(--stroke-2); background: linear-gradient(160deg, rgba(157,202,255,0.1), rgba(189,0,255,0.08)); backdrop-filter: blur(2px); }
.cube .f1 { transform: translateZ(35px); }
.cube .f2 { transform: rotateY(180deg) translateZ(35px); }
.cube .f3 { transform: rotateY(90deg) translateZ(35px); }
.cube .f4 { transform: rotateY(-90deg) translateZ(35px); }
.cube .f5 { transform: rotateX(90deg) translateZ(35px); }
.cube .f6 { transform: rotateX(-90deg) translateZ(35px); }
@keyframes floaty { 0%,100% { transform: rotateX(0) rotateY(0); } 50% { transform: rotateX(180deg) rotateY(180deg); } }
.glowring { border-radius: 50%; border: 1px solid var(--stroke-2); animation: floaty2 12s ease-in-out infinite; }
@keyframes floaty2 { 0%,100% { transform: rotate3d(1,1,0,0deg); } 50% { transform: rotate3d(1,1,0,40deg); } }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; transform-style: preserve-3d; }
.step { position: relative; padding: 30px 26px 34px; border-radius: 18px; background: var(--surface); border: 1px solid var(--stroke); overflow: hidden; transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .4s, background .4s, box-shadow .4s; }
.step:hover { transform: translateY(-8px) translateZ(40px); border-color: var(--stroke-2); background: var(--surface-2); box-shadow: 0 30px 60px -30px rgba(189,0,255,0.5); }
.step::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--grad); transition: width .5s; }
.step:hover::before { width: 100%; }
.step-num { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--blue); letter-spacing: .1em; }
.step-ico { width: 52px; height: 52px; border-radius: 14px; margin: 18px 0 20px; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, rgba(157,202,255,0.16), rgba(189,0,255,0.16)); border: 1px solid var(--stroke-2); }
.step-ico svg { width: 24px; height: 24px; stroke: var(--blue); }
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { color: var(--text-2); font-size: 15px; }

/* ---------- results ---------- */
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; transform-style: preserve-3d; }
.result-card { position: relative; padding: 36px 30px; border-radius: 18px; background: linear-gradient(165deg, var(--surface-2), var(--surface)); border: 1px solid var(--stroke); overflow: hidden; transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s; }
.result-card:hover { transform: translateZ(50px); box-shadow: 0 40px 70px -35px rgba(79,141,255,0.5); }
.result-card .glow { position: absolute; top: -60px; right: -60px; width: 180px; height: 180px; border-radius: 50%; filter: blur(50px); opacity: .35; }
.result-card .big { font-family: var(--font-display); font-size: clamp(44px, 6vw, 60px); font-weight: 700; line-height: 1; margin-bottom: 12px; }
.result-card .ctx { color: var(--text); font-weight: 600; font-size: 17px; margin-bottom: 6px; }
.result-card .sub { color: var(--text-3); font-size: 14.5px; }
.result-tag { position: absolute; top: 24px; right: 24px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); border: 1px solid var(--stroke); padding: 4px 10px; border-radius: 100px; }
.results-note { margin-top: 28px; font-size: 14px; color: var(--text-3); max-width: 620px; }

/* ---------- plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; transform-style: preserve-3d; }
.plan { display: flex; flex-direction: column; padding: 36px 30px; border-radius: 22px; background: var(--surface); border: 1px solid var(--stroke); transition: transform .45s cubic-bezier(.2,.8,.2,1), border-color .4s, box-shadow .4s; position: relative; overflow: hidden; }
.plan:hover { transform: translateY(-10px) translateZ(60px); border-color: var(--stroke-2); box-shadow: 0 50px 90px -40px rgba(189,0,255,0.55); }
.plan.featured { background: linear-gradient(175deg, rgba(189,0,255,0.12), rgba(79,141,255,0.06) 60%, var(--surface)); border-color: rgba(189,0,255,0.4); box-shadow: 0 30px 80px -40px rgba(189,0,255,0.6); }
.plan-flag { position: absolute; top: 22px; right: 22px; font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: .1em; background: var(--grad); color: #06060a; padding: 5px 12px; border-radius: 100px; }
.plan h3 { font-size: 22px; margin-bottom: 6px; }
.plan .desc { color: var(--text-3); font-size: 14.5px; min-height: 42px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin: 22px 0 6px; }
.plan .price .amt { font-family: var(--font-display); font-size: 48px; font-weight: 700; }
.plan .price .per { color: var(--text-3); font-size: 15px; }
.plan .divider { height: 1px; background: var(--stroke); margin: 26px 0; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 30px; flex: 1; }
.plan li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text-2); }
.plan li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; stroke: var(--blue); }
.plan .btn { width: 100%; justify-content: center; }

/* ---------- ventajas ---------- */
.adv-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; transform-style: preserve-3d; }
.adv-list { display: flex; flex-direction: column; gap: 14px; }
.adv-item { display: flex; gap: 20px; padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--stroke); transition: border-color .4s, transform .4s, background .4s; }
.adv-item:hover { border-color: var(--stroke-2); transform: translateX(8px) translateZ(30px); background: var(--surface-2); }
.adv-ico { width: 48px; height: 48px; flex-shrink: 0; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, rgba(157,202,255,0.16), rgba(189,0,255,0.16)); border: 1px solid var(--stroke-2); }
.adv-ico svg { width: 22px; height: 22px; stroke: var(--blue); }
.adv-item h3 { font-size: 19px; margin-bottom: 6px; }
.adv-item p { color: var(--text-2); font-size: 15px; }
.adv-visual { position: relative; border-radius: 22px; border: 1px solid var(--stroke); padding: 40px; background: radial-gradient(120% 120% at 80% 0%, rgba(189,0,255,0.14), rgba(7,7,10,0) 60%), var(--surface); overflow: hidden; min-height: 420px; display: flex; flex-direction: column; justify-content: center; transform-style: preserve-3d; }
.adv-orbit-wrap { position: relative; height: 280px; display: flex; align-items: center; justify-content: center; transform-style: preserve-3d; }
.adv-core { width: 110px; height: 110px; border-radius: 50%; z-index: 3; background: var(--grad); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; color: #06060a; font-size: 14px; text-align: center; line-height: 1.1; box-shadow: 0 0 50px -6px rgba(189,0,255,0.7); transform: translateZ(60px); }
.orbit { position: absolute; left: 50%; top: 50%; border: 1px dashed var(--stroke-2); border-radius: 50%; transform: translate(-50%,-50%); }
.orbit.o1 { width: 180px; height: 180px; animation: orbitspin 18s linear infinite; }
.orbit.o2 { width: 270px; height: 270px; animation: orbitspin 28s linear infinite reverse; }
@keyframes orbitspin { from { transform: translate(-50%,-50%) rotate(0deg); } to { transform: translate(-50%,-50%) rotate(360deg); } }
.orbit .node { position: absolute; width: 38px; height: 38px; border-radius: 11px; top: -19px; left: calc(50% - 19px); background: #0e0e16; border: 1px solid var(--stroke-2); display: flex; align-items: center; justify-content: center; }
.orbit .node svg { width: 18px; height: 18px; stroke: var(--blue); }
.orbit.o2 .node.n2 { top: auto; bottom: -19px; }

/* ---------- CTA ---------- */
.cta-box { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(54px, 8vw, 96px) clamp(30px, 6vw, 80px); background: linear-gradient(135deg, rgba(79,141,255,0.18), rgba(189,0,255,0.2)); border: 1px solid var(--stroke-2); text-align: center; transform-style: preserve-3d; box-shadow: 0 60px 120px -50px rgba(189,0,255,0.6); }
.cta-box::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px circle at 50% -20%, rgba(255,255,255,0.1), transparent 60%); pointer-events: none; }
.cta-box h2 { font-size: clamp(36px, 5.6vw, 64px); margin-bottom: 20px; }
.cta-box p { color: var(--text); opacity: .9; font-size: 19px; max-width: 560px; margin: 0 auto 36px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-note { margin-top: 24px; font-size: 14px; color: var(--text-2); display: inline-flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.cta-note span { display: inline-flex; gap: 7px; align-items: center; }
.cta-note svg { width: 15px; height: 15px; stroke: var(--blue); }

/* ---------- footer ---------- */
.footer { position: relative; padding: 72px 0 40px; margin-top: 30px; }
.footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(100deg, #9dcaff, #4f8dff, #bd00ff, #ff5cc8, #c75cff, #4fd0ff, #9dcaff);
  background-size: 300% 100%; animation: footerflow 7s linear infinite;
}
.footer::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(79,141,255,0.10), transparent 55%),
    radial-gradient(70% 120% at 50% 0%, rgba(255,92,200,0.07), transparent 55%),
    radial-gradient(80% 120% at 100% 0%, rgba(189,0,255,0.11), transparent 55%);
}
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer .logo { margin-bottom: 16px; }
.footer-col h4 {
  font-family: var(--font-display); font-size: 14px; letter-spacing: .04em; margin-bottom: 18px;
  background: linear-gradient(100deg, #9dcaff, #4f8dff, #bd00ff, #ff5cc8, #c75cff, #4fd0ff, #9dcaff);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: footerflow 7s linear infinite;
}
.footer-col a { display: block; color: var(--text-3); font-size: 14.5px; margin-bottom: 12px; transition: color .25s; }
.footer-col a:hover { color: var(--text); }
.footer-blurb { color: var(--text-3); font-size: 15px; max-width: 300px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--stroke); font-size: 13.5px; flex-wrap: wrap; gap: 14px; }
.footer-bottom a { transition: opacity .25s; }
.footer-bottom .grad-link { font-weight: 600;
  background: linear-gradient(100deg, #9dcaff, #4f8dff, #bd00ff, #ff5cc8, #c75cff, #4fd0ff, #9dcaff);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: footerflow 7s linear infinite; }
.footer-copy { font-weight: 600;
  background: linear-gradient(100deg, #9dcaff, #4f8dff, #bd00ff, #ff5cc8, #c75cff, #4fd0ff, #6f7bff, #9dcaff);
  background-size: 320% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: footerflow 6s linear infinite; }
@keyframes footerflow { to { background-position: 300% 0; } }

/* ---------- SOCIA — androide anfitrión ---------- */
#host-stage { position: fixed; inset: 0; z-index: 55; pointer-events: none; }
#robot-canvas { width: 100%; height: 100%; display: block; }
#host-bubble {
  position: fixed; z-index: 56; pointer-events: none;
  transform: translate(-50%, -100%);
  max-width: 270px; padding: 14px 18px; border-radius: 18px;
  background: rgba(14, 14, 22, 0.82); backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--stroke-2);
  box-shadow: 0 20px 50px -20px rgba(189, 0, 255, 0.5);
  color: var(--text); font-size: 14.5px; line-height: 1.45;
  opacity: 0;
}
#host-bubble.show { opacity: 1; }
#host-bubble::before {
  content: ""; position: absolute; bottom: -9px; left: var(--tail, 50%);
  width: 16px; height: 16px; transform: translateX(-50%) rotate(45deg);
  background: rgba(14, 14, 22, 0.82); border-right: 1px solid var(--stroke-2); border-bottom: 1px solid var(--stroke-2);
}
#host-bubble .who { display: block; font-family: var(--font-display); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 5px; }
#host-bubble.pop { animation: bubblepop .55s cubic-bezier(.2,1.3,.4,1); }
@keyframes bubblepop { 0% { transform: translate(-50%, -100%) scale(0.8); } 100% { transform: translate(-50%, -100%) scale(1); } }
@media (max-width: 560px) { #host-bubble { max-width: 200px; font-size: 13px; padding: 11px 14px; } }

/* ============ RESPONSIVE — mobile-first ============ */

/* --- 980px and below (tablets + large phones) --- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  #hero.scene { min-height: auto; align-items: flex-start; padding-top: 96px; padding-bottom: 50px; }
  .hero-visual { height: 320px; order: -1; }
  .hero h1 { font-size: clamp(32px, 7vw, 52px); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .results { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .adv-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .decor { display: none; }
  .solutions { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .scene { padding: clamp(60px, 9vw, 100px) 0; }
  .scene-head h2 { font-size: clamp(28px, 5.5vw, 44px); }
  .section-head h2 { font-size: clamp(28px, 5.5vw, 44px); }
  .cta-box { padding: 44px 32px; }
  .cta-box h2 { font-size: clamp(28px, 5.5vw, 44px); }
}

/* --- 720px and below (phones landscape / small tablets) --- */
@media (max-width: 720px) {
  .hero { padding-top: 80px; min-height: auto; }
  .hero-visual { height: 240px; order: -1; }
  .hero h1 { font-size: clamp(28px, 7.5vw, 40px); }
  .hero p.lead { font-size: 15.5px; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 24px; }
  .hero-stat .num { font-size: 26px; }
  #hero.scene { min-height: auto; align-items: flex-start; padding-top: 88px; padding-bottom: 44px; }
  .steps { grid-template-columns: 1fr; }
  .solutions { grid-template-columns: 1fr; }
  .results { grid-template-columns: 1fr; }
  .plans { max-width: 100%; }
  .adv-visual { min-height: 300px; }
  .adv-orbit-wrap { height: 220px; }
  .cta-box { padding: 36px 24px; border-radius: 20px; }
  .cta-box p { font-size: 15.5px; }
  .cta-actions { flex-direction: column; gap: 12px; align-items: stretch; }
  .cta-actions .btn { width: 100%; justify-content: center; }
  .cta-note { gap: 12px; font-size: 13px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer { padding: 48px 0 56px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 24px; padding-bottom: 8px; }
  .contact-grid { gap: 20px; }
  .cf-row { grid-template-columns: 1fr; }
  .contact-aside { gap: 10px; }
  .ca-card { padding: 14px 16px; }
  #host-bubble { max-width: 180px; font-size: 12.5px; padding: 10px 13px; }
  .scene-head { margin-bottom: 36px; }
  .scene-head p { font-size: 15.5px; }
  .scene { padding: clamp(48px, 8vw, 80px) 0; }
}

/* --- 900px and below — on mobile MAI stars ONLY in the hero; the speech bubble is hidden to keep text clean --- */
@media (max-width: 900px) {
  #host-bubble { display: none !important; }
  .scroll-hint { display: none !important; }
}

/* --- 480px and below (phones portrait) --- */
@media (max-width: 480px) {
  body { font-size: 15px; }
  .wrap { padding: 0 18px; }
  .scene { padding: 52px 0; }
  #hero.scene { padding-top: 70px; padding-bottom: 32px; }
  .hero-pill { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .hero h1 { font-size: clamp(26px, 8vw, 36px); margin-bottom: 16px; }
  .hero p.lead { font-size: 14.5px; margin-bottom: 22px; }
  .hero-visual { height: 160px; border-radius: 14px; }
  .hero-stats { gap: 18px; }
  .hero-stat .num { font-size: 22px; }
  .hero-stat .lbl { font-size: 12px; }
  .eyebrow { font-size: 11.5px; letter-spacing: .18em; }
  .scene-head h2 { font-size: clamp(24px, 7.5vw, 34px); }
  .step { padding: 22px 20px; }
  .step h3 { font-size: 19px; }
  .result-card { padding: 26px 22px; }
  .result-card .big { font-size: 42px; }
  .plan { padding: 28px 22px; }
  .plan .price .amt { font-size: 38px; }
  .adv-item { padding: 18px; gap: 14px; }
  .adv-item h3 { font-size: 17px; }
  .sol-card { padding: 22px 18px; }
  .sol-card h3 { font-size: 18px; }
  .sol-tags li { font-size: 11px; padding: 4px 9px; }
  .cta-box { padding: 30px 18px; }
  .cta-box h2 { font-size: clamp(24px, 7.5vw, 32px); }
  .cta-box p { font-size: 15px; }
  .footer-top { gap: 24px; }
  .footer-col h4 { font-size: 13px; }
  .footer-col a { font-size: 14px; }
  .footer-copy { font-size: 12.5px; }
  .logo { font-size: 19px; }
  .logo-mark { height: 26px; }
  .nav-inner { height: 64px; }
  .btn { padding: 13px 20px; font-size: 15px; }
  .plan-flag, .sol-flag { font-size: 10px; padding: 4px 9px; }
  .cf-field input, .cf-field textarea { font-size: 16px; } /* prevent iOS zoom */
  .contact-aside { gap: 8px; }
  /* last section extra breathing room */
  #contacto.scene { padding-bottom: 60px; }
  .footer { padding: 44px 0 48px; }
  .footer-bottom { padding-top: 22px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cube, .glowring, .orbit { animation: none !important; }
}

/* ---------- soluciones ---------- */
.solutions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; transform-style: preserve-3d; }
.sol-card {
  position: relative; display: flex; flex-direction: column; padding: 28px 26px 26px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--stroke); overflow: hidden;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .4s, background .4s, box-shadow .4s;
}
.sol-card:hover { transform: translateY(-7px) translateZ(40px); border-color: var(--stroke-2); background: var(--surface-2); box-shadow: 0 32px 64px -32px rgba(189,0,255,0.5); }
.sol-card::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--grad); transition: width .5s; }
.sol-card:hover::before { width: 100%; }
.sol-card.featured { background: linear-gradient(170deg, rgba(189,0,255,0.1), rgba(79,141,255,0.05) 60%, var(--surface)); border-color: rgba(189,0,255,0.32); }
.sol-flag { position: absolute; top: 22px; right: 22px; font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: .08em; background: var(--grad); color: #06060a; padding: 4px 10px; border-radius: 100px; }
.sol-ico { width: 50px; height: 50px; border-radius: 14px; margin-bottom: 18px; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, rgba(157,202,255,0.16), rgba(189,0,255,0.16)); border: 1px solid var(--stroke-2); }
.sol-ico svg { width: 24px; height: 24px; stroke: var(--blue); }
.sol-card h3 { font-size: 20px; margin-bottom: 10px; }
.sol-card p { color: var(--text-2); font-size: 14.5px; flex: 1; }
.sol-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; }
.sol-tags li { font-size: 12px; color: var(--text-2); background: rgba(255,255,255,0.04); border: 1px solid var(--stroke); padding: 5px 11px; border-radius: 100px; }
@media (max-width: 980px) { .solutions { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .solutions { grid-template-columns: 1fr; } }

/* ---------- contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1.25fr 0.85fr; gap: 30px; text-align: left; margin-top: 40px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf-field { display: flex; flex-direction: column; gap: 7px; }
.cf-field label { font-family: var(--font-display); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--text-2); }
.cf-field input, .cf-field textarea {
  width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--text);
  background: rgba(7,7,10,0.5); border: 1px solid var(--stroke-2); border-radius: 13px;
  padding: 13px 15px; transition: border-color .25s, box-shadow .25s, background .25s; resize: vertical;
}
.cf-field input::placeholder, .cf-field textarea::placeholder { color: var(--text-3); }
.cf-field input:focus, .cf-field textarea:focus {
  outline: none; border-color: var(--purple-soft); background: rgba(7,7,10,0.75);
  box-shadow: 0 0 0 3px rgba(189,0,255,0.18);
}
.cf-field.invalid input, .cf-field.invalid textarea { border-color: #ff5c7a; box-shadow: 0 0 0 3px rgba(255,92,122,0.16); }
.cf-submit { width: 100%; justify-content: center; margin-top: 4px; }
.cf-status { min-height: 20px; font-size: 14px; margin: 2px 2px 0; text-align: center; }
.cf-status.ok { color: #38d39f; }
.cf-status.err { color: #ff7a90; }

.contact-aside { display: flex; flex-direction: column; gap: 12px; }
.ca-card {
  display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 15px;
  background: var(--surface); border: 1px solid var(--stroke); transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s, background .35s;
}
.ca-card:hover { transform: translateY(-3px); border-color: var(--stroke-2); background: var(--surface-2); }
.ca-ico { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, rgba(157,202,255,0.16), rgba(189,0,255,0.16)); border: 1px solid var(--stroke-2); }
.ca-ico svg { width: 20px; height: 20px; stroke: var(--blue); }
.ca-card .lbl { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 3px; }
.ca-card .val { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; color: var(--text); }
.ca-card.wa .ca-ico { background: linear-gradient(160deg, rgba(56,211,159,0.2), rgba(56,211,159,0.08)); }
.ca-card.wa .ca-ico svg { stroke: #38d39f; }

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cf-row { grid-template-columns: 1fr; }
}



/* ---- */


/* ============ SOCIALE — immersive WebGL hero ============ */
.hero-immersive {
  position: relative;
  height: 100svh;
  min-height: 600px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
#gl-hero {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  z-index: 1;
}
/* readability scrim — keeps title legible over the shader */
.hero-scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(58% 46% at 50% 45%, rgba(7,7,10,0.66) 0%, rgba(7,7,10,0.32) 45%, rgba(7,7,10,0) 72%),
    linear-gradient(to bottom, rgba(7,7,10,0.62) 0%, rgba(7,7,10,0.12) 24%, rgba(7,7,10,0.12) 60%, rgba(7,7,10,0.99) 100%);
}
.hero-overlay {
  position: relative; z-index: 3;
  text-align: center;
  padding: 0 26px;
  max-width: 1150px;
  pointer-events: none;
}
.hero-overlay .btn { pointer-events: auto; }

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(11px, 1.4vw, 14px);
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--blue);
  padding: 9px 18px; margin-bottom: 30px;
  border: 1px solid var(--stroke-2);
  border-radius: 100px;
  background: rgba(7,7,10,0.35);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(14px);
  animation: heroFadeUp .9s cubic-bezier(.2,.8,.2,1) .15s forwards;
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(13px, 1.8vw, 19px);
  font-weight: 600; letter-spacing: .015em;
  color: #cdd6ea;
  margin: 0 0 20px;
  opacity: 0; transform: translateY(12px);
  animation: heroFadeUp .9s cubic-bezier(.2,.8,.2,1) .1s forwards;
}
.hero-h1 b { color: var(--blue); font-weight: 700; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: .96;
  font-size: clamp(34px, 8.2vw, 108px);
  display: flex; flex-wrap: wrap; gap: 0 .26em;
  justify-content: center;
  margin: 0 auto 26px;
  max-width: 100%;
  overflow-wrap: break-word;
}
.hero-title .w {
  display: inline-block;
  opacity: 0;
  padding: 0.08em 0.08em 0.14em;
  background: linear-gradient(180deg, #ffffff 0%, #cfe0ff 55%, #9dcaff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: blur(12px) drop-shadow(0 4px 26px rgba(7,7,10,0.9));
  transform: translateY(14px) scale(0.96);
  transition: opacity 1.15s cubic-bezier(.22,.85,.3,1), filter 1.15s cubic-bezier(.22,.85,.3,1), transform 1.3s cubic-bezier(.2,1,.34,1);
}
.hero-title .w.accent {
  background: linear-gradient(180deg, #e3b6ff 0%, #c75cff 50%, #bd00ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-title .w.reveal {
  opacity: 1;
  filter: blur(0px) drop-shadow(0 4px 26px rgba(7,7,10,0.9));
  transform: none;
}
.hero-title .w.accent.reveal { filter: blur(0px) drop-shadow(0 6px 34px rgba(189,0,255,0.45)); }
.hero-title .w.out {
  opacity: 0;
  filter: blur(14px) drop-shadow(0 4px 26px rgba(7,7,10,0.9));
  transform: translateY(-14px) scale(1.05);
  transition: opacity 1.05s cubic-bezier(.4,0,.65,.25), filter 1.05s ease, transform 1.15s cubic-bezier(.4,0,.65,.25);
}
@keyframes glitchIn {
  0%   { transform: translateY(24px) skewX(14deg) scaleY(1.25); }
  35%  { transform: translateY(0) skewX(-6deg) scaleY(.94); }
  55%  { transform: translateX(-4px) skewX(3deg); }
  70%  { transform: translateX(3px); }
  100% { transform: none; }
}

.hero-sub {
  font-size: clamp(15px, 2vw, 21px);
  color: var(--text-2);
  max-width: 620px; margin: 0 auto 36px;
  opacity: 0; transform: translateY(14px);
}
.hero-sub.show { opacity: 1; transform: none; animation: heroFadeUp .9s cubic-bezier(.2,.8,.2,1) forwards; }

.hero-cta { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap;
  opacity: 0; transform: translateY(14px); }
.hero-cta.show { opacity: 1; transform: none; animation: heroFadeUp .9s cubic-bezier(.2,.8,.2,1) .12s forwards; }

@keyframes heroFadeUp { to { opacity: 1; transform: none; } }

/* scroll-to-explore */
.explore-btn {
  position: absolute; left: 50%; bottom: 30px; z-index: 4;
  transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 9px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-display); font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-3);
  opacity: 0; animation: heroFadeUp .9s ease 2.1s forwards;
  transition: color .25s;
}
.explore-btn:hover { color: var(--text); }
.explore-arrow { display: inline-flex; color: var(--blue); animation: bob 1.7s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* fallback gradient if WebGL is unavailable */
.hero-immersive.no-gl #gl-hero { display: none; }
.hero-immersive.no-gl {
  background:
    radial-gradient(60% 50% at 58% 42%, rgba(189,0,255,0.32), transparent 60%),
    radial-gradient(70% 60% at 40% 60%, rgba(79,141,255,0.26), transparent 62%),
    #07070a;
}

/* safety: if animations are disabled/throttled, keep hero text visible */
@media (prefers-reduced-motion: reduce){
  .hero-eyebrow, .hero-h1, .hero-sub, .hero-cta { opacity: 1 !important; transform: none !important; }
  .hero-title .w { opacity: 1 !important; transform: none !important; filter: drop-shadow(0 4px 26px rgba(7,7,10,0.9)) !important; }
}

/* ---------- stats band ---------- */
.stats-band { position: relative; z-index: 2; padding: 8px 0 64px; }
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 36px clamp(20px, 4vw, 48px);
  border: 1px solid var(--stroke);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.stats-row .hero-stat { text-align: center; }
.stats-row .num { font-family: var(--font-display); font-size: clamp(30px, 4vw, 46px); font-weight: 700; line-height: 1; }
.stats-row .lbl { font-size: 13.5px; color: var(--text-3); margin-top: 10px; }

@media (max-width: 760px) {
  .hero-title { font-size: clamp(32px, 11vw, 60px); }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
  .explore-btn { bottom: 18px; }
}
@media (max-width: 420px) {
  .hero-title { gap: 0 .2em; }
}

