/* Paleta tomada del tema de la app (lib/core/theme/app_theme.dart). */
:root {
  --accent: #0066cc;
  --accent-soft: #d6e8fc;
  --accent-ink: #00315f;
  --text: #1d1d1f;
  --muted: #5e5e63;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --card: #ffffff;
  --card-alt: #efeff2;
  --border: #d1d1d6;
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #2997ff;
    --accent-soft: #0a3b6b;
    --accent-ink: #d6e8fc;
    --text: #f2f2f7;
    --muted: #aeaeb2;
    --bg: #1c1c1e;
    --bg-alt: #161618;
    --card: #242426;
    --card-alt: #2a2a2d;
    --border: #48484a;
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.center { text-align: center; }

/* Botones */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border: 2px solid var(--accent);
  border-radius: 14px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity .2s;
}
.btn:hover { opacity: .85; text-decoration: none; }
.btn-sm { padding: 6px 14px; font-size: .9rem; border-radius: 10px; }
.btn-ghost { background: transparent; color: var(--accent); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav nav { display: flex; align-items: center; gap: 20px; }
.nav nav a:not(.btn) { color: var(--text); font-weight: 500; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo img { width: 36px; height: 36px; border-radius: 9px; }
.logo-sm { font-size: 1.1rem; }
.logo-sm img { width: 28px; height: 28px; border-radius: 7px; }

/* Hero */
.hero {
  padding: 72px 0 88px;
  background:
    radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 55%),
    var(--bg);
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin-bottom: 12px; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -.02em; margin-bottom: 20px; }
.hero h1 span { color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin-bottom: 28px; }
.lead strong { color: var(--text); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .95rem; }
.hero-badges li::before { content: "✓ "; color: var(--accent); font-weight: 700; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.mascot { display: block; height: auto; }
.mascot-hero { position: absolute; width: 150px; left: -10px; bottom: -30px; z-index: 2; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .18)); }

/* Teléfono simulado con la pantalla "Hoy" */
.phone {
  width: 300px;
  border-radius: 44px;
  padding: 12px;
  background: #1d1d1f;
  box-shadow: 0 30px 60px -20px rgba(0, 40, 90, .35), inset 0 0 0 2px #3a3a3c;
}
.phone-screen {
  border-radius: 34px;
  background: #f5f5f7;
  color: #1d1d1f;
  padding: 36px 20px 22px;
  min-height: 560px;
  display: flex;
  flex-direction: column;
}
@media (prefers-color-scheme: dark) {
  .phone-screen { background: #1c1c1e; color: #f2f2f7; }
}
.app-top { display: flex; justify-content: space-between; font-weight: 600; font-size: .85rem; margin-bottom: 18px; }
.app-top .muted, .phone-screen .app-es, .app-example .es { color: var(--muted); }
.app-verb { font-size: 2.3rem; font-weight: 800; color: var(--accent); line-height: 1.1; }
.app-meaning { font-size: 1.05rem; margin: 4px 0 12px; }
.app-en { font-size: .88rem; line-height: 1.45; }
.app-es { font-size: .78rem; margin: 4px 0 14px; }
.app-example { background: var(--card-alt); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; }
.app-example .en { font-style: italic; font-size: .85rem; }
.app-example .es { font-size: .78rem; }
.app-btn { margin-top: auto; background: var(--accent); color: #fff; text-align: center; border-radius: 14px; padding: 12px; font-weight: 600; }
.app-link { text-align: center; color: var(--accent); font-weight: 500; padding-top: 10px; font-size: .9rem; }

/* Cifras */
.stats { background: var(--accent); color: #fff; padding: 32px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.stats strong { display: block; font-size: 1.9rem; line-height: 1.2; }
.stats span { opacity: .9; font-size: .95rem; }
@media (prefers-color-scheme: dark) {
  .stats { background: #0a3b6b; }
}

/* Secciones */
.section { padding: 88px 0; }
.alt { background: var(--bg-alt); }
.section-title { text-align: center; font-size: clamp(1.8rem, 3.5vw, 2.4rem); letter-spacing: -.01em; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 48px; font-size: 1.1rem; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); line-height: 1.2; letter-spacing: -.01em; }

/* Pasos */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--bg-alt); border-radius: var(--radius); padding: 28px; }
.step-num {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 14px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--muted); }
.step p strong { color: var(--text); }

.notif { margin-top: 20px; background: var(--card); border-radius: 18px; padding: 12px 14px; box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .25); font-size: .9rem; }
.notif-head { display: flex; align-items: center; gap: 8px; font-size: .72rem; letter-spacing: .04em; color: var(--muted); margin-bottom: 4px; }
.notif-head img { border-radius: 5px; }
.notif-head span { margin-left: auto; letter-spacing: 0; }
.notif-title { font-weight: 700; }
.notif-body { color: var(--muted); }
.notif-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.notif-actions span { background: var(--card-alt); border-radius: 8px; padding: 4px 10px; font-size: .78rem; font-weight: 600; color: var(--accent); }

/* Por qué uno */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { margin-bottom: 16px; }
.split p { color: var(--muted); margin-bottom: 14px; font-size: 1.05rem; }
.split p strong { color: var(--text); }
.verb-stack { display: grid; gap: 14px; }
.verb-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.verb-card header { display: flex; align-items: center; justify-content: space-between; }
.verb-card h3 { color: var(--accent); font-size: 1.4rem; }
.level { background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: .75rem; border-radius: 999px; padding: 2px 10px; }
.verb-card .meaning { margin: 2px 0 8px; }
.verb-card .en { font-style: italic; }
.verb-card .es { color: var(--muted); font-size: .92rem; }

/* Funciones */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; background: var(--card); }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 16px; }
.feature-icon svg { width: 26px; height: 26px; fill: var(--accent); }
.feature h3 { font-size: 1.15rem; margin-bottom: 6px; }
.feature p { color: var(--muted); }

/* Mascota */
.mascot-band { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; max-width: 900px; }
.mascot-band .mascot { width: 220px; }
.mascot-band h2 { margin-bottom: 12px; }
.mascot-band p { color: var(--muted); font-size: 1.1rem; }

/* Privacidad */
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.privacy-item { border-top: 3px solid var(--accent); padding-top: 16px; }
.privacy-item h3 { font-size: 1.1rem; margin-bottom: 6px; }
.privacy-item p { color: var(--muted); }
.link-arrow { font-weight: 600; }
.link-arrow::after { content: " →"; }

/* Preguntas */
.faq { display: grid; gap: 12px; margin-top: 32px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin-top: 10px; }

/* Descargar */
.cta { background: linear-gradient(135deg, #0066cc, #2997ff); color: #fff; padding: 80px 0; text-align: center; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta .mascot { width: 140px; margin-bottom: 8px; }
.cta h2 { margin-bottom: 10px; }
.cta p { opacity: .92; font-size: 1.1rem; margin-bottom: 28px; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; border-radius: 12px; padding: 10px 20px;
  text-align: left; font-weight: 600; font-size: 1.15rem; line-height: 1.15;
}
.store:hover { text-decoration: none; opacity: .88; }
.store svg { width: 26px; height: 26px; fill: currentColor; }
.store small { display: block; font-size: .7rem; font-weight: 400; opacity: .85; }

/* Footer */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 28px 0; font-size: .92rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer nav { display: flex; gap: 20px; }

/* Aviso de privacidad */
.legal { padding: 56px 0 88px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -.01em; margin-bottom: 4px; }
.legal .updated { color: var(--muted); margin-bottom: 28px; }
.legal .summary { background: var(--accent-soft); color: var(--accent-ink); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 36px; }
.legal .summary strong { display: block; margin-bottom: 4px; }
.legal h2 { font-size: 1.35rem; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 10px; }
.legal strong { color: var(--text); }
.legal .summary strong { color: inherit; }
.legal ul { padding-left: 22px; margin-top: 8px; display: grid; gap: 6px; }
.back { display: inline-block; margin-bottom: 28px; font-weight: 600; }
.back::before { content: "← "; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner, .split { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 64px; }
  .hero-visual { margin-top: 16px; }
  .steps, .features { grid-template-columns: 1fr; }
  .privacy-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav nav a:not(.btn) { display: none; }
  .mascot-band { grid-template-columns: 1fr; text-align: center; gap: 16px; }
  .mascot-band .mascot { width: 160px; margin: 0 auto; }
  .mascot-hero { width: 110px; left: 0; }
  .phone { width: 270px; }
  .phone-screen { min-height: 520px; }
  .privacy-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
