/* ===================== BASE / TOKENS ===================== */
:root {
  --bg: #0e1822;          /* azul-noche, igual al fondo del logo */
  --bg-soft: #182433;     /* superficie de tarjetas */
  --ink: #eef1f6;
  --ink-soft: #a4adbb;
  --line: rgba(255, 255, 255, .10);
  --brand-1: #7b2ff7;   /* morado */
  --brand-2: #ec3fa0;   /* rosa   */
  --brand-3: #2f9bf7;   /* azul   */
  --brand-4: #2bd4a4;   /* verde  */
  --brand-5: #ffb02e;   /* amarillo/naranja */
  --grad: linear-gradient(100deg, var(--brand-1), var(--brand-2) 45%, var(--brand-3) 100%);
  --grad-soft: linear-gradient(100deg, #14202e, #1b1828 55%, #122231);
  --wa-bg: #e9e2db;
  --wa-bubble-bot: #ffffff;
  --wa-bubble-user: #d9fdd3;
  --shadow: 0 22px 55px -26px rgba(0, 0, 0, .7);
  --radius: 18px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 520px at 82% -6%, rgba(123,47,247,.12), transparent 60%),
    radial-gradient(820px 520px at 0% 8%, rgba(47,155,247,.10), transparent 55%);
  background-repeat: no-repeat;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 15px; padding: 13px 22px;
  border-radius: 999px; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 12px 26px -10px rgba(123,47,247,.6); }
.btn--ghost { background: rgba(255,255,255,.05); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.09); }
.btn--whatsapp { background: #25D366; color: #fff; box-shadow: 0 12px 26px -10px rgba(37,211,102,.6); }
.btn--sm { padding: 9px 16px; font-size: 14px; }

/* ===================== NAV ===================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,24,34,.72); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand__logo { height: 42px; width: auto; display: block; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a { font-weight: 600; color: var(--ink-soft); font-size: 15px; }
.nav__links a:hover { color: var(--ink); }
.nav__links .btn { color: var(--ink); }

/* ===================== HERO ===================== */
.hero { padding: 70px 0 40px; position: relative; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.badge {
  display: inline-block; font-size: 13px; font-weight: 700; color: #c6a8ff;
  background: rgba(123,47,247,.16); padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.badge--soft { background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--ink-soft); }
.hero h1 { font-size: clamp(33px, 5vw, 54px); font-weight: 800; }
.lead { font-size: 18px; color: var(--ink-soft); max-width: 33em; }
.hero__tagline { font-size: clamp(19px, 2.4vw, 25px); font-weight: 800; letter-spacing: -.02em; color: var(--ink); margin: 22px 0 0; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 16px 0 30px; }
.hero__stats { display: flex; gap: 34px; }
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats strong { font-size: 26px; font-weight: 800; }
.hero__stats span { font-size: 13px; color: var(--ink-soft); }

.hero__art { position: relative; min-height: 340px; display: flex; align-items: center; justify-content: center; }
.orb { position: absolute; border-radius: 50%; filter: blur(36px); opacity: .55; }
.orb--1 { width: 260px; height: 260px; background: var(--brand-2); top: -10px; right: 10px; }
.orb--2 { width: 230px; height: 230px; background: var(--brand-3); bottom: -10px; left: 0; }
.hero__card {
  position: relative; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 22px; box-shadow: var(--shadow); padding: 20px; width: 100%; max-width: 380px;
  display: flex; flex-direction: column; gap: 12px;
}
.hero__card-row {
  display: flex; align-items: center; gap: 10px; font-size: 14px;
  background: rgba(255,255,255,.05); padding: 11px 14px; border-radius: 14px; align-self: flex-start; max-width: 88%;
}
.hero__card-row--bot { align-self: flex-end; background: rgba(123,47,247,.20); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.dot--in { background: var(--brand-3); }
.dot--bot { background: var(--brand-2); }

/* ===================== SECTIONS ===================== */
.section { padding: 74px 0; }
.section__title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; text-align: center; }
.section__sub { text-align: center; color: var(--ink-soft); font-size: 18px; max-width: 40em; margin: 0 auto 44px; }

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.feature { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .15s, box-shadow .15s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__ic {
  width: 54px; height: 54px; border-radius: 15px; margin-bottom: 16px;
  background: var(--grad); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 22px -10px rgba(123,47,247,.55);
}
.feature__ic svg { width: 28px; height: 28px; }
.feature h3 { font-size: 20px; }
.feature p { color: var(--ink-soft); margin: 0; font-size: 15px; }

.benefit { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; transition: transform .15s, box-shadow .15s; }
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.benefit__ic {
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 6px;
  background: var(--grad); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 22px -12px rgba(123,47,247,.55);
}
.benefit__ic svg { width: 24px; height: 24px; }
.benefit strong { font-size: 17px; }
.benefit span { color: var(--ink-soft); font-size: 14.5px; }

/* ===================== RESULTADOS ===================== */
.result { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .15s, box-shadow .15s; }
.result:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.result__ic { width: 54px; height: 54px; border-radius: 15px; margin-bottom: 16px; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 22px -10px rgba(123,47,247,.55); }
.result__ic svg { width: 28px; height: 28px; }
.result h3 { font-size: 20px; }
.result p { color: var(--ink-soft); margin: 0; font-size: 15px; }

/* ===================== PÉRDIDA INVISIBLE ===================== */
.loss { padding: 64px 0; background: #121d2a; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.loss__inner { text-align: center; max-width: 38em; margin: 0 auto; }
.loss__eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 14px; }
.loss__line { font-size: clamp(24px, 3.6vw, 38px); font-weight: 800; line-height: 1.25; letter-spacing: -.02em; color: var(--ink); margin: 0; }

/* ===================== MIEDOS ===================== */
.section--fears { background: var(--grad-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fear { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.fear h3 { font-size: 18px; color: var(--ink); margin-bottom: 10px; line-height: 1.35; }
.fear p { color: var(--ink-soft); margin: 0; font-size: 15px; }

/* ===================== SUGERENCIAS DEL CHAT (clickeables) ===================== */
.starters__label { font-weight: 600; font-size: 14.5px; color: var(--ink); margin: 6px 0 10px; }
.starters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.starter-chip { font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ink); background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s, background .15s; }
.starter-chip:hover { transform: translateY(-2px); border-color: var(--brand-1); box-shadow: var(--shadow); }
.starter-chip:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ===================== DEMO ===================== */
.section--demo { background: var(--grad-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.demo { display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: center; }
.demo__intro h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; }
.demo__intro p { color: var(--ink-soft); font-size: 17px; }
.ticks { list-style: none; padding: 0; margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 11px 15px; font-size: 14.5px; color: var(--ink-soft); }
.ticks strong { color: var(--ink); }
.demo__note { font-size: 13.5px; color: var(--ink-soft); background: rgba(255,255,255,.05); border: 1px dashed rgba(255,255,255,.18); border-radius: 12px; padding: 12px 15px; }

/* ===================== CALCULADORA ===================== */
.section--calc { background: #0a1320; color: #fff; }
.section--calc .badge--soft { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #cfc9e6; }
.calc__intro { text-align: center; max-width: 44em; margin: 0 auto 36px; }
.calc__intro h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; }
.calc__intro p { color: #b3aecb; font-size: 17px; }
.calc__panel {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: stretch;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px; padding: 30px; max-width: 980px; margin: 0 auto;
}
.calc__controls { display: flex; flex-direction: column; gap: 26px; justify-content: center; }
.calc__field { display: flex; flex-direction: column; gap: 12px; }
.calc__field > label {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-size: 14.5px; font-weight: 600; color: #e9e6f6;
}
.calc__field output { font-size: 20px; font-weight: 800; color: #fff; background: var(--grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.calc__hint { font-size: 12px; color: #8e89a8; line-height: 1.4; }

/* Slider de rango (calculadora) */
.slider-range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px;
  background: rgba(255,255,255,.15); outline: none; cursor: pointer; }
.slider-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px;
  border-radius: 50%; background: #fff; border: 3px solid var(--brand-1);
  box-shadow: 0 4px 12px rgba(123,47,247,.6); cursor: pointer; }
.slider-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff;
  border: 3px solid var(--brand-1); box-shadow: 0 4px 12px rgba(123,47,247,.6); cursor: pointer; }

.calc__results { display: flex; flex-direction: column; gap: 14px; justify-content: center;
  background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 26px; }
.calc__metric { display: flex; flex-direction: column; gap: 2px; }
.calc__metric-num {
  font-size: clamp(30px, 5vw, 44px); font-weight: 800; line-height: 1;
  background: linear-gradient(95deg, #ffc24b 0%, #ff7a59 55%, #ff5e8a 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 3px 14px rgba(255,110,90,.22));
}
.calc__metric-label { font-size: 13px; color: #b3aecb; }
.calc__year { font-size: 15px; color: #e9e6f6; padding-top: 6px; border-top: 1px dashed rgba(255,255,255,.14); }
.calc__year strong { color: #ffb35c; font-size: 18px; }
.calc__disclaimer { font-size: 11.5px; color: #847fa0; margin: 4px 0 6px; line-height: 1.4; }
.calc__results .btn { justify-content: center; text-align: center; }

@media (max-width: 820px) {
  .calc__panel { grid-template-columns: 1fr; padding: 22px; }
}

/* ===================== CHAT (WhatsApp style) ===================== */
.chat {
  width: 100%; background: var(--bg-soft); border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column;
  height: 580px; max-height: 78vh;
}
.chat__header {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--grad); color: #fff;
}
.chat__avatar {
  width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.25);
  display: grid; place-items: center; font-weight: 800; font-size: 18px; flex: 0 0 auto;
}
.chat__meta { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.chat__meta strong { font-size: 15px; }
.chat__status { font-size: 12px; opacity: .9; display: flex; align-items: center; gap: 6px; }
.online { width: 8px; height: 8px; border-radius: 50%; background: #6ef58f; display: inline-block; box-shadow: 0 0 0 0 rgba(110,245,143,.7); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(110,245,143,.6)} 70%{box-shadow:0 0 0 7px rgba(110,245,143,0)} 100%{box-shadow:0 0 0 0 rgba(110,245,143,0)} }
.chat__brandtag { font-size: 11px; background: rgba(0,0,0,.18); padding: 4px 9px; border-radius: 999px; }

.chat__body {
  flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px;
  background-color: var(--wa-bg);
  background-image: radial-gradient(rgba(0,0,0,.03) 1px, transparent 1px);
  background-size: 18px 18px;
}
.msg { max-width: 80%; padding: 9px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; position: relative; color: #111b21; box-shadow: 0 1px 1px rgba(0,0,0,.06); white-space: pre-wrap; word-wrap: break-word; }
.msg strong { font-weight: 700; }
.msg--bot { align-self: flex-start; background: var(--wa-bubble-bot); border-top-left-radius: 4px; }
.msg--user { align-self: flex-end; background: var(--wa-bubble-user); border-top-right-radius: 4px; }
.msg__time { display: block; font-size: 10.5px; color: rgba(0,0,0,.4); text-align: right; margin-top: 3px; }

.typing { align-self: flex-start; background: var(--wa-bubble-bot); padding: 12px 15px; border-radius: 14px; border-top-left-radius: 4px; display: inline-flex; gap: 4px; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.typing span { width: 7px; height: 7px; background: #9a96a8; border-radius: 50%; animation: blink 1.4s infinite both; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,80%,100%{opacity:.3; transform: translateY(0)} 40%{opacity:1; transform: translateY(-3px)} }

.chat__input { display: flex; gap: 10px; padding: 12px; background: #f0f0f4; border-top: 1px solid #e3e3ea; }
.chat__input input {
  flex: 1; border: 1px solid #e3e3ea; border-radius: 999px; padding: 12px 18px;
  font-size: 15px; font-family: inherit; outline: none; background: #fff; color: #161427;
}
.chat__input input:focus { border-color: var(--brand-1); }
.chat__input button {
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer; flex: 0 0 auto;
  background: var(--grad); color: #fff; display: grid; place-items: center; transition: transform .15s;
}
.chat__input button:hover { transform: scale(1.06); }
.chat__input button:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ===================== CTA (cierre de marca) ===================== */
.cta { padding: 88px 0; text-align: center; }
.cta__wrap { max-width: 720px; margin: 0 auto; }
.cta__kicker { font-size: 16px; font-weight: 600; color: var(--ink-soft); margin: 0 0 12px; }
.cta__brandline { font-size: clamp(30px, 5vw, 50px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 16px; color: var(--ink); }
.cta__sub { font-size: 18px; color: var(--ink-soft); max-width: 34em; margin: 0 auto 28px; }
.cta__buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===================== WHATSAPP FLOTANTE ===================== */
.fab-wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.65);
  transition: transform .22s ease, box-shadow .18s ease, opacity .22s ease;
  animation: fabIn .4s ease both;
}
.fab-wa--hidden { opacity: 0; pointer-events: none; transform: scale(.5); }
.fab-wa::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(37,211,102,.55); animation: fabPulse 2.2s infinite;
}
.fab-wa:hover { transform: scale(1.08); box-shadow: 0 16px 36px -8px rgba(37,211,102,.8); }
.fab-wa__tip {
  position: absolute; right: 72px; white-space: nowrap;
  background: #161427; color: #fff; font-size: 13px; font-weight: 600;
  padding: 8px 13px; border-radius: 10px; opacity: 0; transform: translateX(8px);
  transition: opacity .18s, transform .18s; pointer-events: none;
  box-shadow: 0 8px 20px -8px rgba(0,0,0,.4);
}
.fab-wa__tip::after {
  content: ""; position: absolute; right: -5px; top: 50%; transform: translateY(-50%);
  border-left: 6px solid #161427; border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.fab-wa:hover .fab-wa__tip { opacity: 1; transform: translateX(0); }
@keyframes fabIn { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1); } }
@keyframes fabPulse { 0% { transform: scale(1); opacity: .8; } 70% { transform: scale(1.45); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 560px) { .fab-wa { width: 54px; height: 54px; right: 16px; bottom: 16px; } .fab-wa__tip { display: none; } }

/* ===================== FOOTER ===================== */
.footer { padding: 30px 0; border-top: 1px solid var(--line); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-soft); font-size: 14px; }
.footer__logo { height: 32px; width: auto; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { min-height: 240px; }            /* titular primero; arte debajo */
  .demo { grid-template-columns: 1fr; }
  .chat { max-width: 480px; margin: 0 auto; }
  .grid--3 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .hero { padding: 42px 0 28px; }
  .loss { padding: 48px 0; }
  .hero__stats { flex-wrap: wrap; gap: 18px 26px; }
  .calc__field > label { flex-wrap: wrap; gap: 4px 12px; }
  .calc__panel { padding: 20px; }
  .calc__results { padding: 20px; }
  .section__sub { font-size: 16.5px; margin-bottom: 32px; }
}
@media (max-width: 560px) {
  .nav__links a:not(.btn) { display: none; }
  .grid--4 { grid-template-columns: 1fr; }
  .cta { padding: 52px 0; }
}
