* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg1: #0b0c2a;
  --bg2: #12143d;
  --accent1: #7c5cff;
  --accent2: #00d4ff;
  --pink: #ff5c9d;
  --text: #eef0ff;
  --muted: #9aa0c7;
  --glass: rgba(255,255,255,0.06);
  --stroke: rgba(255,255,255,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 80% -10%, #241a5c 0%, transparent 60%),
              linear-gradient(160deg, var(--bg1), var(--bg2));
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.55;
}

/* ═══ Burbujas flotantes de fondo ═══ */
.bubbles { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bubbles span {
  position: absolute;
  bottom: -140px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  opacity: 0.14;
  animation: rise 18s infinite ease-in;
}
.bubbles span:nth-child(1)  { left: 10%; width: 34px;  height: 34px;  animation-duration: 16s; animation-delay: 0s; }
.bubbles span:nth-child(2)  { left: 20%; width: 22px;  height: 22px;  animation-duration: 12s; animation-delay: 2s; }
.bubbles span:nth-child(3)  { left: 30%; width: 56px;  height: 56px;  animation-duration: 22s; animation-delay: 4s; }
.bubbles span:nth-child(4)  { left: 42%; width: 28px;  height: 28px;  animation-duration: 15s; animation-delay: 1s; }
.bubbles span:nth-child(5)  { left: 55%; width: 46px;  height: 46px;  animation-duration: 20s; animation-delay: 6s; }
.bubbles span:nth-child(6)  { left: 65%; width: 20px;  height: 20px;  animation-duration: 11s; animation-delay: 3s; }
.bubbles span:nth-child(7)  { left: 74%; width: 64px;  height: 64px;  animation-duration: 25s; animation-delay: 5s; }
.bubbles span:nth-child(8)  { left: 83%; width: 30px;  height: 30px;  animation-duration: 17s; animation-delay: 0.5s; }
.bubbles span:nth-child(9)  { left: 90%; width: 24px;  height: 24px;  animation-duration: 13s; animation-delay: 7s; }
.bubbles span:nth-child(10) { left: 96%; width: 42px;  height: 42px;  animation-duration: 21s; animation-delay: 2.5s; }

@keyframes rise {
  0%   { transform: translateY(0) scale(1);   opacity: 0; }
  10%  { opacity: 0.16; }
  90%  { opacity: 0.16; }
  100% { transform: translateY(-115vh) scale(1.25); opacity: 0; }
}

/* ═══ Navbar ═══ */
.nav {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1160px; margin: 0 auto;
  padding: 22px 28px;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; letter-spacing: -0.3px; }
.logo-dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  box-shadow: 0 0 16px rgba(124,92,255,0.8);
}
.nav-cta {
  text-decoration: none; color: var(--text);
  padding: 9px 20px; border-radius: 999px;
  border: 1px solid var(--stroke); background: var(--glass);
  font-weight: 600; font-size: 15px;
  transition: all .25s ease;
  backdrop-filter: blur(8px);
}
.nav-cta:hover { border-color: var(--accent2); box-shadow: 0 0 18px rgba(0,212,255,0.25); transform: translateY(-1px); }

/* ═══ Hero ═══ */
.hero {
  position: relative; z-index: 1;
  max-width: 1160px; margin: 0 auto;
  padding: 60px 28px 80px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px;
  align-items: center;
}
.badge {
  display: inline-block;
  padding: 7px 16px; border-radius: 999px;
  background: rgba(124,92,255,0.14); border: 1px solid rgba(124,92,255,0.4);
  color: #cabfff; font-size: 13.5px; font-weight: 600; letter-spacing: 0.3px;
}
.hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(40px, 6vw, 66px);
  font-weight: 800; line-height: 1.05; letter-spacing: -1.5px;
}
.grad {
  background: linear-gradient(120deg, var(--accent1) 0%, var(--accent2) 55%, var(--pink) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.sub { color: var(--muted); font-size: 18px; max-width: 520px; }
.cta-row { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.btn-primary, .btn-ghost {
  text-decoration: none; font-weight: 700; font-size: 16px;
  padding: 14px 28px; border-radius: 14px; transition: all .25s ease;
}
.btn-primary {
  color: #0b0c2a;
  background: linear-gradient(120deg, var(--accent2), var(--accent1));
  box-shadow: 0 10px 30px rgba(124,92,255,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(124,92,255,0.5); }
.btn-ghost {
  color: var(--text); border: 1px solid var(--stroke); background: var(--glass);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--accent2); transform: translateY(-2px); }

/* ═══ Mockup de teléfono ═══ */
.phone {
  justify-self: center;
  width: 300px; max-width: 100%;
  background: rgba(15,17,48,0.75);
  border: 1px solid var(--stroke);
  border-radius: 30px;
  padding: 16px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.phone-top {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--muted);
  padding: 6px 8px 14px; border-bottom: 1px solid var(--stroke);
}
.dot-online { width: 9px; height: 9px; border-radius: 50%; background: #2ee6a0; box-shadow: 0 0 10px #2ee6a0; }
.phone-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 6px; }
.msg {
  max-width: 78%; padding: 10px 14px; font-size: 14.5px; line-height: 1.4;
  border-radius: 16px;
}
.msg.in  { align-self: flex-start; background: rgba(255,255,255,0.08); border-bottom-left-radius: 5px; }
.msg.out {
  align-self: flex-end; color: #0b0c2a; font-weight: 500;
  background: linear-gradient(120deg, var(--accent2), var(--accent1));
  border-bottom-right-radius: 5px;
}
.phone-input {
  margin-top: 6px; padding: 12px 16px;
  border-radius: 14px; border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.04); color: var(--muted); font-size: 14px;
}

/* ═══ Features ═══ */
.features {
  position: relative; z-index: 1;
  max-width: 1160px; margin: 0 auto;
  padding: 20px 28px 90px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.card {
  background: var(--glass); border: 1px solid var(--stroke);
  border-radius: 20px; padding: 30px 26px;
  backdrop-filter: blur(10px);
  transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(124,92,255,0.5); }
.card .icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center; font-size: 26px; margin-bottom: 16px;
  background: rgba(124,92,255,0.15); border: 1px solid rgba(124,92,255,0.3);
}
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; }

/* ═══ Footer ═══ */
.foot {
  position: relative; z-index: 1;
  text-align: center; padding: 40px 28px 56px;
  border-top: 1px solid var(--stroke); color: var(--muted);
}
.foot strong { color: var(--text); }
.foot .small { font-size: 13px; opacity: 0.7; margin-top: 6px; }

/* ═══ Responsivo ═══ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 30px; text-align: center; }
  .hero-text { display: flex; flex-direction: column; align-items: center; }
  .sub { margin: 0 auto; }
  .cta-row { justify-content: center; }
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .nav { padding: 18px; }
  .brand { font-size: 19px; }
  .hero { padding: 24px 18px 60px; }
  .btn-primary, .btn-ghost { width: 100%; text-align: center; }
  .features { padding: 10px 18px 70px; }
}

@media (prefers-reduced-motion: reduce) {
  .bubbles span, .phone { animation: none; }
}
