:root {
  --bg: #000;
  --card: #0f0d14;
  --card2: #16131d;
  --brd: #24202e;
  --t: #f6f3fb;
  --t2: #b3abc2;
  --t3: #7d7590;
  --violet: #9823f4;
  --violet2: #b25cff;
  --deep: #560077;
  --p: #4361ee;
  --grn: #10e0a0;
  --org: #ff8a3d;
  --pnk: #ff4fa3;
  --acc: #ffb31a;
  --blu: #3b9bff;
  --milo: #b25cff;
  --r: 18px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--t);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, .btn, .pill, .kicker { font-family: "Nunito", -apple-system, BlinkMacSystemFont, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.c-pnk { --c: var(--pnk); } .c-p { --c: var(--p); } .c-grn { --c: var(--grn); } .c-acc { --c: var(--acc); }
.c-org { --c: var(--org); } .c-blu { --c: var(--blu); } .c-milo { --c: var(--milo); }

/* fondo con brillos morados */
body::before {
  content: ""; position: fixed; inset: -20vh -20vw auto; height: 120vh; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40vw 40vw at 75% 15%, rgba(152, 35, 244, 0.28), transparent 60%),
    radial-gradient(35vw 35vw at 10% 40%, rgba(67, 97, 238, 0.16), transparent 60%);
}

/* ---------- barra ---------- */
.nav {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px;
  padding: 14px max(20px, calc((100vw - 1140px) / 2));
  background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.brand img { height: 32px; width: auto; }
.nav nav { display: flex; gap: 22px; margin-left: 12px; }
.nav nav a { text-decoration: none; color: var(--t2); font-size: 15px; }
.nav nav a:hover { color: var(--t); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.nav-cta .link { white-space: nowrap; text-decoration: none; color: var(--t2); font-size: 15px; font-weight: 600; }
.nav-cta .link:hover { color: var(--t); }
@media (max-width: 760px) { .nav nav { display: none; } .nav { gap: 12px; } .nav-cta { gap: 10px; } }
@media (max-width: 460px) { .nav { padding-left: 12px; padding-right: 12px; gap: 8px; } .nav-cta { gap: 8px; } .nav-cta .link { font-size: 13px; } .brand img { height: 22px; } .btn.sm { padding: 8px 11px; font-size: 13px; } .nav-milo { width: 36px; height: 36px; } .nav-milo img { width: 26px; height: 26px; } }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  font-weight: 800; font-size: 17px; color: #fff; padding: 14px 26px; border-radius: 999px;
  background: linear-gradient(135deg, var(--violet2), var(--violet) 55%, #6a12c9);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 10px 34px -8px rgba(152, 35, 244, 0.75);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset, 0 16px 44px -8px rgba(152, 35, 244, 0.95); }
.btn.sm { font-size: 14px; padding: 9px 16px; }
.btn.ghost { background: transparent; box-shadow: 0 0 0 1.5px rgba(178, 92, 255, 0.55) inset; color: var(--t); }
.btn.ghost:hover { box-shadow: 0 0 0 1.5px var(--violet2) inset, 0 0 24px -4px rgba(178, 92, 255, 0.6); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--violet2); outline-offset: 3px; }

/* ---------- secciones ---------- */
main { overflow-x: clip; }
#como, #funciones, #pronto { scroll-margin-top: 90px; }
main > section { padding: 0 max(20px, calc((100vw - 1140px) / 2)); }
h1 { font-size: clamp(42px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -0.03em; margin: 18px 0 20px; font-weight: 900; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.1; letter-spacing: -0.02em; margin: 10px 0 16px; font-weight: 900; }
h3 { font-size: 20px; margin: 14px 0 6px; font-weight: 800; }
p { color: var(--t2); margin: 0 0 14px; }
.grad { background: linear-gradient(90deg, #d8a6ff, var(--violet2) 40%, #ff6ad5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c, var(--violet2)); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 38px; }

.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: #e7d4ff; padding: 7px 14px; border-radius: 999px; background: rgba(152, 35, 244, 0.14); border: 1px solid rgba(178, 92, 255, 0.45); box-shadow: 0 0 22px -6px rgba(178, 92, 255, 0.7); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grn); box-shadow: 0 0 10px var(--grn); }

/* portada de arriba (imagen de MILO en su escritorio) */
.top-hero { padding: 18px max(20px, calc((100vw - 1240px) / 2)) 0; }
.top-hero img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 28px; border: 1px solid rgba(178, 92, 255, 0.45); box-shadow: 0 0 0 6px rgba(152, 35, 244, 0.08), 0 40px 100px -30px rgba(152, 35, 244, 0.8); animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(0.985); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) { .top-hero { padding: 12px 12px 0; } .top-hero img { border-radius: 18px; } }
.nav-milo { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(180deg, #f3e8ff, #d8b8ff); box-shadow: 0 0 0 2px rgba(178, 92, 255, 0.5), 0 0 22px -4px rgba(178, 92, 255, 0.9); transition: transform 0.2s ease; }
.nav-milo img { width: 30px; height: 30px; object-fit: contain; }
.nav-milo:hover { transform: rotate(-8deg) scale(1.08); }

/* portada */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding-top: 40px !important; padding-bottom: 40px !important; }
.lead { font-size: 20px; max-width: 560px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 22px; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; gap: 20px; flex-wrap: wrap; color: var(--t2); font-size: 15px; }
.ticks li { display: flex; align-items: center; gap: 6px; }
.ticks svg { width: 18px; height: 18px; color: var(--grn); stroke-width: 2.4; }
.hero-art { position: relative; justify-self: center; width: min(420px, 100%); }
.hero-art .glow { position: absolute; inset: 10% -10%; background: radial-gradient(closest-side, rgba(152, 35, 244, 0.6), transparent); filter: blur(30px); z-index: -1; }
.hero-milo { width: 100%; height: auto; filter: drop-shadow(0 24px 50px rgba(152, 35, 244, 0.55)); animation: floaty 6s ease-in-out infinite; }
.float { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: rgba(15, 13, 20, 0.86); backdrop-filter: blur(10px); border: 1px solid color-mix(in srgb, var(--c, #fff) 45%, transparent); box-shadow: 0 0 24px -8px var(--c, #000), 0 12px 30px -10px #000; font-size: 14px; white-space: nowrap; }
.float b { display: block; font-size: 14.5px; }
.float small { color: var(--t2); font-size: 12.5px; }
.float.f1 { --c: var(--pnk); left: -18%; top: 14%; animation: floaty 5s ease-in-out infinite 0.4s; }
.float.f2 { --c: var(--grn); right: -14%; top: 46%; animation: floaty 5.5s ease-in-out infinite 1s; }
.float.f3 { --c: var(--acc); left: -10%; bottom: 10%; animation: floaty 6.5s ease-in-out infinite 0.2s; }
.ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); box-shadow: 0 0 18px -6px var(--c); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 1200px) { .float.f1 { left: -12%; } .float.f2 { right: -4%; } .float.f3 { left: -6%; } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; text-align: left; }
  .hero-art { width: min(320px, 78%); margin-top: 10px; }
  .float.f1 { left: -22%; } .float.f2 { right: -22%; } .float.f3 { left: -16%; }
}
@media (max-width: 480px) { .float { font-size: 12px; padding: 8px 10px; } .float b { font-size: 13px; } .float .ic { width: 30px; height: 30px; } .float.f2 { right: -12%; } .float.f1, .float.f3 { left: -10%; } }

/* banda del problema */
.band { text-align: center; margin: 70px auto; max-width: 980px; }
.band-title { font-family: "Nunito", sans-serif; font-size: 22px; font-weight: 800; color: var(--t); }
.scatter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 18px 0; }
.scatter span { padding: 8px 14px; border-radius: 999px; border: 1px dashed #3a3448; color: var(--t3); font-size: 15px; text-decoration: line-through; text-decoration-color: rgba(255, 79, 163, 0.6); }
.band-answer { font-size: 20px; color: #e7d4ff; font-weight: 600; }

/* resumen */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin: 120px 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; margin: 80px 0; } }
.list { padding: 0; margin: 18px 0 0; list-style: none; }
.list li { position: relative; padding-left: 28px; margin: 10px 0; color: var(--t2); }
.list li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--violet2); box-shadow: 0 0 10px var(--violet2); }
.list b { color: var(--t); }
.mock { background: var(--card); border: 1px solid rgba(178, 92, 255, 0.45); border-radius: 22px; padding: 18px; box-shadow: 0 0 0 1px rgba(178, 92, 255, 0.1), 0 0 60px -20px rgba(152, 35, 244, 0.8); }
.mock-head { display: flex; align-items: center; gap: 10px; font-family: "Nunito", sans-serif; font-size: 18px; margin-bottom: 8px; }
.mock-head img { background: linear-gradient(#f3e8ff, #d8b8ff); border-radius: 50%; padding: 3px; }
.mrow { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--brd); }
.mrow b { font-size: 15.5px; } .mrow small { display: block; color: var(--t2); font-size: 14px; line-height: 1.45; }
.mrow .ic { width: 34px; height: 34px; } .mrow .ic svg { width: 18px; height: 18px; }

/* funciones */
.features { margin: 120px 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.feat { background: var(--card); border: 1px solid var(--brd); border-radius: var(--r); padding: 24px; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.feat:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 70%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent), 0 0 40px -12px var(--c); }
.feat .ic { width: 46px; height: 46px; border-radius: 14px; }
.feat p { font-size: 16px; margin: 0; }

/* lo que viene */
.soon { margin: 120px 0; }
.soon-card { display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: start; padding: 40px; border-radius: 28px; background: linear-gradient(160deg, rgba(152, 35, 244, 0.18), rgba(15, 13, 20, 0.9) 55%); border: 1px solid rgba(178, 92, 255, 0.5); box-shadow: 0 0 70px -24px rgba(152, 35, 244, 0.9); }
.soon-milo { width: 120px; height: auto; filter: drop-shadow(0 10px 30px rgba(178, 92, 255, 0.6)); animation: floaty 5s ease-in-out infinite; }
@media (max-width: 700px) { .soon-card { grid-template-columns: 1fr; padding: 26px; } .soon-milo { width: 90px; } }
.chat { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 6px; max-width: 560px; }
.chat .b { padding: 11px 15px; border-radius: 18px; font-size: 15.5px; max-width: 88%; }
.chat .me { align-self: flex-end; background: var(--p); color: #fff; border-bottom-right-radius: 6px; }
.chat .milo { align-self: flex-start; background: var(--card2); border: 1px solid rgba(178, 92, 255, 0.4); border-bottom-left-radius: 6px; }

/* confianza */
.trust { margin: 120px 0; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) { .grid.three { grid-template-columns: 1fr; } }
.tcard { background: var(--card); border: 1px solid var(--brd); border-radius: var(--r); padding: 24px; }
.tcard svg { width: 30px; height: 30px; color: var(--grn); filter: drop-shadow(0 0 8px rgba(16, 224, 160, 0.5)); }
.tcard p { font-size: 16px; margin: 0; }

/* cierre */
.final { text-align: center; margin: 120px 0 90px; display: flex; flex-direction: column; align-items: center; }
.final h2 { max-width: 760px; }
.final img { width: 96px; height: auto; filter: drop-shadow(0 10px 30px rgba(178, 92, 255, 0.6)); }
.final .btn { margin-top: 8px; }
.bounce { animation: hop 2.6s ease-in-out infinite; }
@keyframes hop { 0%, 100% { transform: translateY(0) rotate(0); } 20% { transform: translateY(-14px) rotate(-6deg); } 40% { transform: translateY(0) rotate(0); } }

.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 26px max(20px, calc((100vw - 1140px) / 2)); border-top: 1px solid rgba(255, 255, 255, 0.07); color: var(--t3); font-size: 14px; }
.foot img { height: 26px; width: auto; }
.foot a { color: var(--t2); text-decoration: none; }
.foot .copy { margin-left: auto; }

/* aparición al bajar */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .top-hero img { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-milo, .float, .soon-milo, .bounce { animation: none !important; }
}
