/* ==========================================================================
   LuminIA — Sitio de marketing (SEO/GEO) · Tema: Negro + Violeta
   CSS estático, sin dependencias. Mobile-first. Accesible.
   ========================================================================== */

:root {
  --bg: #0a0a0f;
  --bg-elev: #12121a;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --violet: #8b5cf6;
  --violet-light: #a78bfa;
  --violet-deep: #7c3aed;
  --violet-glow: rgba(139, 92, 246, 0.35);

  --text: #f5f5f7;
  --text-2: #b9b9c6;
  --text-3: #8a8a99;

  --success: #34d399;
  --wa: #25d366;

  --maxw: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-full: 9999px;

  --font-head: 'Outfit', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }

img, svg { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.muted { color: var(--text-2); }
.text-violet { color: var(--violet-light); }
.nowrap { white-space: nowrap; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 15px 26px; border-radius: var(--radius-full); border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-align: center; line-height: 1.1;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-deep) 100%);
  color: #fff; box-shadow: 0 8px 30px var(--violet-glow);
}
.btn--primary:hover { box-shadow: 0 10px 40px var(--violet-glow); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { background: rgba(255,255,255,.05); border-color: var(--violet-light); }
.btn--wa { background: var(--wa); color: #06281a; font-weight: 700; }
.btn--wa:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(37,211,102,.3); }
.btn--lg { padding: 17px 32px; font-size: 1.06rem; }
.btn--block { width: 100%; }

/* ---------- Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,15,.72); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; }
.logo__mark { color: var(--violet-light); font-size: 1.35rem; filter: drop-shadow(0 0 10px var(--violet-glow)); }
.logo__mark--brand { color: var(--violet-light); }
.nav__links { display: none; align-items: center; gap: 30px; }
.nav__link { color: var(--text-2); font-size: .96rem; font-weight: 500; transition: color .15s; }
.nav__link:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__cta { display: none; }

/* Menú móvil con <details> (sin JS) */
.nav__mobile { position: relative; }
.nav__mobile > summary {
  list-style: none; cursor: pointer; width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong); border-radius: 10px; color: var(--text);
}
.nav__mobile > summary::-webkit-details-marker { display: none; }
.nav__mobile[open] > summary { background: rgba(255,255,255,.06); }
.nav__menu {
  position: absolute; right: 0; top: 52px; width: 240px;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 14px;
  padding: 10px; display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.nav__menu a { padding: 11px 14px; border-radius: 9px; color: var(--text-2); font-weight: 500; }
.nav__menu a:hover { background: rgba(255,255,255,.05); color: var(--text); }

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__mobile { display: none; }
}

/* ---------- Secciones genéricas ---------- */
section { position: relative; }
.section { padding: 84px 0; }
.section--tight { padding: 60px 0; }
.section__head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--violet-light); margin-bottom: 14px;
}
.section__title { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 16px; }
.section__desc { color: var(--text-2); font-size: 1.08rem; }

.divider { height: 1px; background: var(--border); border: 0; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 84px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% 0 auto 0; height: 620px; z-index: 0;
  background: radial-gradient(60% 60% at 50% 0%, rgba(139,92,246,.28) 0%, rgba(139,92,246,0) 70%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; }
.badge {
  display: inline-flex; align-items: center; gap: 9px; font-size: .86rem; font-weight: 500;
  color: var(--text-2); background: rgba(255,255,255,.04); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: var(--radius-full); margin-bottom: 26px;
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); }
.hero__title { font-size: clamp(2.1rem, 5.6vw, 3.6rem); margin-bottom: 22px; }
.hero__title .text-violet { background: linear-gradient(120deg, var(--violet-light), var(--violet)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__sub { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--text-2); max-width: 660px; margin: 0 auto 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero__trust { margin-top: 30px; color: var(--text-3); font-size: .92rem; }

/* ---------- Grids de tarjetas ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: 1fr; }
.grid--2 { grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 920px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; transition: border-color .2s, transform .2s, background .2s;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-3px); background: var(--bg-card-hover); }
.card__icon {
  width: 52px; height: 52px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(139,92,246,.22), rgba(124,58,237,.12));
  border: 1px solid var(--border-strong); margin-bottom: 18px; font-size: 1.5rem;
}
.card__title { font-size: 1.22rem; margin-bottom: 10px; }
.card__text { color: var(--text-2); font-size: 1rem; }

/* Problema (acento) */
.problem { background: var(--bg-elev); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.problem .card { background: rgba(255,255,255,.02); }
.problem__quote {
  max-width: 760px; margin: 0 auto 40px; text-align: center;
  font-family: var(--font-head); font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 600; line-height: 1.35;
}
.problem__quote span { color: var(--violet-light); }

/* ---------- Pasos (cómo funciona) ---------- */
.step { position: relative; }
.step__num {
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--violet-deep)); margin-bottom: 16px;
  box-shadow: 0 6px 20px var(--violet-glow);
}

/* ---------- Por qué (lista con check) ---------- */
.checklist { list-style: none; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.checklist li::before {
  content: "✓"; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(52,211,153,.15); color: var(--success); display: inline-flex;
  align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; margin-top: 2px;
}
.checklist li strong { color: var(--text); font-weight: 600; }

/* ---------- Prueba / credibilidad ---------- */
.proof__ask {
  max-width: 760px; margin: 0 auto 48px; text-align: center;
  background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 30px;
}
.proof__ask code {
  display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(139,92,246,.12); color: var(--violet-light); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 8px; margin-top: 10px; font-size: .95rem;
}
.cred__card .tag {
  display: inline-block; font-size: .76rem; color: var(--text-3); font-family: ui-monospace, monospace;
  border: 1px solid var(--border); border-radius: 6px; padding: 4px 9px; margin-bottom: 12px;
}
.placeholder {
  border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 22px;
  color: var(--text-3); font-size: .95rem; text-align: center;
}
.placeholder strong { color: var(--violet-light); }

/* ---------- Planes ---------- */
.plans__grid { display: grid; gap: 22px; grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
.plan {
  background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 34px 30px; text-align: center;
}
.plan--featured { border-color: var(--violet); box-shadow: 0 10px 50px var(--violet-glow); }
.plan__name { font-size: 1.1rem; color: var(--violet-light); margin-bottom: 8px; }
.plan__price { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; }
.plan__price small { font-size: 1rem; color: var(--text-3); font-weight: 500; }
.plan__note { color: var(--text-2); margin: 8px 0 22px; }
.plan .checklist { text-align: left; margin-bottom: 26px; }

/* ---------- FAQ (details/summary, sin JS) ---------- */
.faq__list { max-width: 800px; margin: 0 auto; display: grid; gap: 14px; }
.faq__item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq__item[open] { border-color: var(--border-strong); }
.faq__item > summary {
  list-style: none; cursor: pointer; padding: 20px 22px; font-family: var(--font-head);
  font-weight: 600; font-size: 1.08rem; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq__item > summary::-webkit-details-marker { display: none; }
.faq__item > summary::after { content: "+"; color: var(--violet-light); font-size: 1.5rem; line-height: 1; flex: 0 0 auto; transition: transform .2s; }
.faq__item[open] > summary::after { content: "−"; }
.faq__answer { padding: 0 22px 22px; color: var(--text-2); }

/* ---------- Formulario / lead ---------- */
.lead { background: var(--bg-elev); border-top: 1px solid var(--border); }
.lead__wrap { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 920px) { .lead__wrap { grid-template-columns: 1.1fr .9fr; } }
.lead__form {
  background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 30px;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.field input, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 13px 15px; color: var(--text); font-family: var(--font-body); font-size: 1rem;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139,92,246,.18); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.lead__aside h3 { font-size: 1.4rem; margin-bottom: 14px; }
.lead__contact { display: grid; gap: 12px; margin-top: 22px; }
.lead__contact a { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); font-weight: 500; }
.lead__contact a:hover { color: var(--text); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 30px; background: var(--bg-elev); }
.footer__grid { display: grid; gap: 36px; grid-template-columns: 1fr; margin-bottom: 40px; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer__tagline { color: var(--text-2); margin-top: 14px; max-width: 320px; }
.footer__col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-bottom: 16px; }
.footer__col ul { list-style: none; display: grid; gap: 10px; }
.footer__col a { color: var(--text-2); font-size: .96rem; }
.footer__col a:hover { color: var(--text); }
.footer__bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--text-3); font-size: .88rem; }
.footer__bottom a { color: var(--text-3); }
.footer__bottom a:hover { color: var(--text-2); }

/* ---------- Accesibilidad / utilidades ---------- */
:focus-visible { outline: 2px solid var(--violet-light); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--violet); color: #fff; padding: 10px 16px; border-radius: 8px; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* Página simple (legales / 404) */
.doc { max-width: 760px; margin: 0 auto; padding: 60px 0; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 10px; }
.doc h2 { font-size: 1.3rem; margin: 32px 0 12px; }
.doc p, .doc li { color: var(--text-2); margin-bottom: 12px; }
.doc ul { padding-left: 22px; }
.doc .updated { color: var(--text-3); font-size: .9rem; margin-bottom: 30px; }
