/* Vantrex — sitio público. Colores de la marca VantrexCRM. */
:root {
  --ink: #0F1222;
  --text: #2A2F45;
  --muted: #5E6480;
  --line: #E6E8F0;
  --bg: #FFFFFF;
  --soft: #F6F5FF;
  --brand: #6D5BFF;
  --brand-2: #9B5BFF;
  --brand-ink: #4B3BD9;
  --ok: #12B76A;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(28, 25, 80, .08);
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand-ink); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* Idioma: se muestra solo el bloque del idioma activo. */
html[data-lang="es"] [lang="en"]:not(html), html[data-lang="en"] [lang="es"]:not(html) { display: none !important; }

/* Cabecera */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); display: grid; place-items: center; color: #fff; font-weight: 800; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-weight: 550; font-size: .95rem; }
.nav a:hover { color: var(--brand-ink); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: transparent; padding: 5px 10px; border-radius: 999px; font: inherit; font-size: .8rem; font-weight: 700; color: var(--muted); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; transition: transform .15s, box-shadow .15s; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 8px 22px rgba(109, 91, 255, .35); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(109, 91, 255, .42); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); }
.top .btn { padding: 9px 16px; font-size: .9rem; }
.menu-btn { display: none; margin-left: auto; border: 1px solid var(--line); background: #fff; border-radius: 10px; width: 40px; height: 40px; font-size: 20px; cursor: pointer; }

/* Portada */
.hero { padding: 72px 0 56px; background: radial-gradient(900px 400px at 85% -10%, #ECE8FF 0%, transparent 60%), radial-gradient(600px 300px at -5% 20%, #F3EEFF 0%, transparent 60%); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .82rem; font-weight: 650; color: var(--brand-ink); margin-bottom: 18px; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(18,183,106,.15); }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.text-cta { font-size: .9rem; color: var(--muted); }
.text-cta b { color: var(--ink); }

/* Maqueta del chat */
.phone { background: #fff; border-radius: 28px; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 18px; max-width: 380px; margin-left: auto; }
.phone-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; display: grid; place-items: center; font-weight: 800; }
.phone-head b { display: block; color: var(--ink); font-size: .95rem; }
.phone-head div span { font-size: .78rem; color: var(--ok); font-weight: 600; }
.bubble { max-width: 85%; padding: 9px 13px; border-radius: 16px; font-size: .9rem; margin-bottom: 8px; line-height: 1.45; }
.bubble.in { background: #F2F4F7; color: var(--ink); border-bottom-left-radius: 5px; }
.bubble.out { background: var(--brand); color: #fff; margin-left: auto; border-bottom-right-radius: 5px; }
.booked { display: flex; gap: 10px; align-items: center; background: #ECFDF3; color: #067647; border-radius: 12px; padding: 10px 12px; font-size: .85rem; font-weight: 600; margin-top: 10px; }

/* Secciones */
section { padding: 80px 0; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.alt { background: var(--soft); }
.grid { display: grid; gap: 20px; }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); color: var(--brand-ink); display: grid; place-items: center; margin-bottom: 16px; }
.card p { color: var(--muted); margin: 0; }
.problems li { margin-bottom: 10px; }
.steps { counter-reset: s; }
.step { position: relative; padding-left: 58px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 800; display: grid; place-items: center; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: .92rem; color: var(--ink); }

/* Banda "Text DEMO" */
.demo-band { background: linear-gradient(135deg, #1B1640, #3A2A8C); color: #fff; border-radius: 24px; padding: 40px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; }
.demo-band h2 { color: #fff; }
.demo-band p { color: #D9D4FF; }
.keyword { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 18px; padding: 22px; text-align: center; }
.keyword .k { font-size: 2.2rem; font-weight: 800; letter-spacing: .06em; }
.keyword .n { font-size: 1.3rem; font-weight: 700; margin-top: 4px; }
.keyword .fine { font-size: .75rem; color: #C8C1FF; margin-top: 12px; line-height: 1.45; }

/* Formulario */
.form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 650; font-size: .9rem; color: var(--ink); }
.field input, .field select, .field textarea { font: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid #D0D5DD; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid rgba(109,91,255,.35); border-color: var(--brand); }
.consent { display: flex; gap: 10px; align-items: flex-start; background: var(--soft); border-radius: 12px; padding: 12px 14px; margin: 6px 0 16px; font-size: .82rem; color: var(--text); line-height: 1.5; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.form-ok { display: none; background: #ECFDF3; color: #067647; border-radius: 12px; padding: 14px; font-weight: 600; margin-top: 12px; }
.contact-list { list-style: none; padding: 0; margin: 20px 0 0; }
.contact-list li { display: flex; gap: 10px; margin-bottom: 12px; }

/* Páginas legales */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 820px; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal .box { background: var(--soft); border-left: 4px solid var(--brand); border-radius: 10px; padding: 14px 18px; margin: 1.2em 0; }

/* Pie */
footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: .9rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--brand-ink); }

/* Celular */
@media (max-width: 900px) {
  .hero .wrap, .demo-band, .g2 { grid-template-columns: 1fr; }
  .g3 { grid-template-columns: 1fr 1fr; }
  .phone { margin: 0 auto; }
  .nav, .top .btn-primary { display: none; }
  .menu-btn { display: block; }
  .top.open .nav { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .top.open .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .lang { margin-left: 0; }
}
@media (max-width: 600px) {
  section { padding: 56px 0; }
  .hero { padding: 44px 0 40px; }
  .g3 { grid-template-columns: 1fr; }
  .demo-band { padding: 26px; }
  .form { padding: 20px; }
}
