/* LexiGoAI: web de la app. Estilo «Índigo vivo»: el índigo de la app sobre un fondo claro */
:root {
  --bg: #F7F7FB;
  --surface: #FFFFFF;
  --surface-2: #F1F0FA;
  --ink: #15142B;
  --ink-2: #4A4866;
  --muted: #5B5976;
  --line: #E4E2F3;
  --accent: #4F46E5;
  --accent-ink: #3730A3;
  --accent-soft: #E9E7FF;
  --on-accent: #FFFFFF;
  --gold: #F5B83D;
  --warn-bg: #FFF4DB;
  --warn-ink: #7A4B00;
  --teal: #0F766E;
  --dark: #15142B;
  --radius: 22px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F0F1E;
    --surface: #1A1A30;
    --surface-2: #222240;
    --ink: #EEEDFB;
    --ink-2: #C3C1DE;
    --muted: #A9A7C7;
    --line: #2E2D52;
    --accent: #8B85FF;
    --accent-ink: #B9B5FF;
    --accent-soft: #2A2858;
    --on-accent: #10102A;
    --warn-bg: #3A2C0B;
    --warn-ink: #FFD98A;
    --teal: #5EEAD4;
    --dark: #08081A;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 "DM Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: "Plus Jakarta Sans", system-ui, sans-serif; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: var(--accent-ink); }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 10px 14px; border-radius: 10px; }
.muted { color: var(--muted); font-size: 15px; }
.tiny { color: var(--muted); font-size: 13px; text-align: center; }
.accent { color: var(--accent); }

/* Cabecera */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.top__in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 20px "Plus Jakarta Sans", sans-serif; }
.brand img { border-radius: 10px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 14px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; }
.btn--sm { min-height: 44px; padding: 10px 16px; font-size: 15px; }
.nav .btn--primary, .btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { filter: brightness(1.08); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn--light { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }

/* Portada */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-block: 48px 80px; }
.hero__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.pill { align-self: flex-start; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 13px; padding: 7px 12px; border-radius: 999px; }
.hero h1 { font-weight: 800; font-size: clamp(38px, 5.2vw, 62px); line-height: 1.04; letter-spacing: -0.025em; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 540px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.stores--center { justify-content: center; }
.store { display: inline-flex; align-items: center; gap: 10px; background: var(--dark); color: #FFFFFF; text-decoration: none; padding: 10px 20px; border-radius: 14px; min-height: 52px; }
.store svg { width: 24px; height: 24px; }
.store span { display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; font-size: 17px; }
.store small { font-weight: 400; font-size: 11px; opacity: .85; }
@media (prefers-color-scheme: dark) { .store { box-shadow: inset 0 0 0 1px #3A3966; } }

/* Teléfono con la demo de búsqueda */
.phone { flex: 1 1 360px; min-width: 0; max-width: 360px; margin-inline: auto; background: var(--surface); border-radius: 42px; padding: 14px; box-shadow: 0 30px 60px -22px rgba(49, 46, 129, .4), 0 0 0 1px var(--line); }
.phone__screen { background: var(--bg); border-radius: 30px; padding: 22px 18px; display: flex; flex-direction: column; gap: 14px; min-height: 520px; }
.demo-title { font: 800 21px "Plus Jakarta Sans", sans-serif; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 15px; cursor: pointer; background: var(--surface); color: var(--accent-ink); border: 1px solid var(--line); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.card { background: var(--surface); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 1px 0 var(--line); }
.card__word { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.card__word strong { font: 800 26px "Plus Jakarta Sans", sans-serif; }
.card__ipa { color: var(--muted); }
.card__meaning { font-weight: 700; font-size: 17px; color: var(--accent-ink); }
.card__warn { background: var(--warn-bg); color: var(--warn-ink); border-radius: 12px; padding: 10px 12px; font-size: 14px; line-height: 1.4; }
.card__ex { border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.card__ex i { font-size: 15px; }
.card__ex span { color: var(--muted); font-size: 14px; }

/* Secciones */
.section { padding-block: 88px; }
.band { background: var(--surface); padding-block: 88px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; margin-bottom: 40px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2, .faq h2, .cta h2 { font-weight: 800; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; }
.section-head p { font-size: 18px; color: var(--ink-2); }

/* Demos */
.demos { display: flex; flex-wrap: wrap; gap: 24px; }
.demo { flex: 999 1 520px; min-width: 0; background: var(--bg); border-radius: 28px; padding: clamp(22px, 3.5vw, 40px); display: flex; flex-direction: column; gap: 16px; }
.demo--daily { flex: 1 1 360px; }
.demo__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.demo h3 { font-size: 24px; font-weight: 800; }
.tag { background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 700; padding: 6px 11px; border-radius: 999px; }
.count { background: var(--surface); padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; box-shadow: 0 0 0 1px var(--line); }
.story { font-size: clamp(19px, 2.1vw, 24px); line-height: 1.9; }
.word { font: inherit; background: transparent; border: 0; border-bottom: 2px dashed var(--accent); border-radius: 6px; padding: 0 4px; margin-inline: 1px; cursor: pointer; color: var(--ink); }
.word[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-bottom-color: transparent; }
.gloss { background: var(--surface); border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 0 0 1px var(--line); }
.gloss__label { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.gloss__word { font: 800 24px "Plus Jakarta Sans", sans-serif; color: var(--accent-ink); }
.gloss__tr { font-weight: 700; font-size: 18px; }
.gloss__note { color: var(--ink-2); font-size: 15px; }

.flash { width: 100%; min-height: 300px; background: var(--surface); border: 0; border-radius: 26px; padding: 26px; display: flex; flex-direction: column; gap: 10px; justify-content: center; align-items: flex-start; text-align: left; cursor: pointer; box-shadow: 0 0 0 1px var(--line), 0 18px 34px -24px rgba(49, 46, 129, .45); }
.flash__kind { background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.flash__word { font: 800 38px/1.05 "Plus Jakarta Sans", sans-serif; }
.flash__meaning { font-weight: 700; font-size: 19px; color: var(--teal); }
.flash__hint { color: var(--muted); font-size: 15px; margin-top: 6px; }
.flash__ex { font-style: italic; }
.flash__ex-es { color: var(--muted); font-size: 15px; }
.actions { display: flex; gap: 10px; margin-top: 12px; }
.actions .btn { flex: 1; padding-inline: 8px; font-size: 15px; }
.btn--known { background: var(--teal); color: var(--on-accent); }
@media (prefers-color-scheme: dark) { .btn--known { color: #062B27; } }
.done { background: var(--accent); color: var(--on-accent); border-radius: 26px; padding: 30px; min-height: 300px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.done h4 { margin: 0; font: 800 30px "Plus Jakarta Sans", sans-serif; }
.done .btn { align-self: flex-start; background: var(--gold); color: #2A1A00; }

/* Por qué LexiGoAI */
.compare { border-radius: 24px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.compare__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.compare__row > span { padding: 16px 22px; font-size: 16px; }
.compare__row > span:first-child { background: var(--bg); color: var(--muted); }
.compare__row > span:last-child { background: var(--accent-soft); color: var(--ink); }
.compare__row + .compare__row > span { border-top: 1px solid var(--line); }
.compare__row--head > span { font: 800 15px "Plus Jakarta Sans", sans-serif; letter-spacing: .02em; }
.compare__row--head > span:last-child { background: var(--accent); color: var(--on-accent); }
@media (max-width: 560px) { .compare__row > span { padding: 12px 14px; font-size: 15px; } }

/* Funciones */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.feature { background: var(--surface); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 0 0 1px var(--line); }
.feature h3 { font-size: 19px; font-weight: 700; }
.feature p { color: var(--ink-2); font-size: 16px; }
.ico { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; }
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Capturas */
.gallery { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px max(24px, calc((100vw - 1180px) / 2 + 24px)) 24px; }
.gallery img { flex: 0 0 auto; width: clamp(200px, 22vw, 260px); height: auto; border-radius: 22px; scroll-snap-align: start; box-shadow: 0 16px 30px -20px rgba(21, 20, 43, .5); }

/* Precios */
.plans { display: flex; flex-wrap: wrap; gap: 20px; max-width: 980px; margin: 0 auto; }
.plan { flex: 1 1 320px; background: var(--surface); border-radius: 24px; padding: 30px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 0 0 1px var(--line); }
.plan h3 { font-size: 22px; font-weight: 800; }
.plan ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.price { font: 700 36px "Plus Jakarta Sans", sans-serif; }
.price small { font-size: 16px; font-weight: 500; }
.plan--premium { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.plan__title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.plan__note { font-size: 15px; opacity: .92; }
.badge { background: var(--gold); color: #2A1A00; font-weight: 700; font-size: 12px; padding: 4px 9px; border-radius: 999px; }

/* Preguntas */
.faq { max-width: 820px; display: flex; flex-direction: column; gap: 12px; }
.faq h2 { margin-bottom: 20px; }
.faq details { background: var(--bg); border-radius: 18px; padding: 4px 22px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; padding: 16px 0; min-height: 44px; }
.faq details p { padding-bottom: 18px; color: var(--ink-2); }

/* Llamada final y pie */
.cta { text-align: center; padding-block: 96px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.cta p { color: var(--ink-2); font-size: 19px; }
.foot { background: var(--dark); color: #C9C7E0; padding-block: 36px; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.brand--light { color: #FFFFFF; font-size: 18px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.foot a { color: #C9C7E0; }
.foot a:hover { color: #FFFFFF; }
