/* ERPHome — web comercial. Estático a propósito (doc/plans/02 §web/): sin
   framework ni build, para iterar marketing sin tocar la app. Mobile-first.
   El morado es el mismo de las plantillas de email (#5A4EC8). */

:root {
  --brand: #5a4ec8;
  --brand-dark: #473da8;
  --ink: #1c1b22;
  --ink-soft: #55525e;
  --bg: #ffffff;
  --bg-alt: #f6f5fb;
  --line: #e6e4ef;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 720px; }
.center { text-align: center; }
.accent { color: var(--brand); }
.fine { font-size: 0.85rem; color: var(--ink-soft); }

/* --- Nav --------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { text-decoration: none; color: var(--ink); font-size: 1.05rem; }
.nav nav { display: flex; align-items: center; gap: 4px; }
.nav nav a { text-decoration: none; color: var(--ink-soft); padding: 8px 10px; border-radius: 8px; font-size: 0.95rem; }
.nav nav a:hover { color: var(--ink); background: var(--bg-alt); }

/* --- Botones ------------------------------------------------------------ */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 12px 22px; border-radius: 999px; font-size: 1rem;
  transition: transform 0.05s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--brand); color: #fff !important; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { color: var(--brand) !important; border: 1.5px solid var(--brand); }
.btn-ghost:hover { background: var(--bg-alt); }
.nav .btn-ghost { padding: 7px 16px; font-size: 0.9rem; }

/* --- Hero --------------------------------------------------------------- */
.hero { padding: 72px 0 64px; text-align: center; background:
  radial-gradient(1000px 400px at 50% -10%, #ece9fb 0%, transparent 70%); }
.hero h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); line-height: 1.15; margin: 0 0 18px; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 620px; margin: 0 auto 26px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }

/* --- Secciones y tarjetas ------------------------------------------------ */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section h2 { text-align: center; font-size: clamp(1.4rem, 3.5vw, 2rem); margin: 0 0 36px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px;
}
.card-icon { font-size: 2rem; margin-bottom: 10px; }
.card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

/* --- Precios ------------------------------------------------------------- */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; max-width: 760px; margin: 0 auto 20px; }
.plan {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; display: flex; flex-direction: column;
}
.plan-featured { border: 2px solid var(--brand); box-shadow: 0 8px 30px rgba(90, 78, 200, 0.12); }
.plan h3 { margin: 0; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.price { font-size: 2.4rem; font-weight: 800; margin: 6px 0 0; }
.price span { font-size: 1rem; font-weight: 500; color: var(--ink-soft); }
.plan-tag { color: var(--ink-soft); font-size: 0.9rem; margin: 2px 0 14px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.plan li { padding: 5px 0; font-size: 0.97rem; }
.plan .btn { text-align: center; }

/* --- FAQ ------------------------------------------------------------------ */
details {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 18px; margin-bottom: 10px;
}
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--ink-soft); margin: 10px 0 2px; }

/* --- CTA final y footer ---------------------------------------------------- */
.cta-final { padding-bottom: 90px; }
.footer { border-top: 1px solid var(--line); padding: 22px 0; font-size: 0.9rem; color: var(--ink-soft); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer nav { display: flex; gap: 16px; }
.footer a { color: var(--ink-soft); text-decoration: none; }
.footer a:hover { color: var(--ink); }

@media (max-width: 560px) {
  .nav nav > a:not(.btn) { display: none; } /* en móvil: solo marca + Entrar */
  /* Con siete idiomas la fila no cabe en un móvil: que envuelva y apriete. */
  .lang-switch { flex-wrap: wrap; justify-content: flex-end; max-width: 45vw; }
  .lang-switch a { padding: 4px; font-size: 0.75rem; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 44px 0; }
}

/* --- Selector de idioma ---------------------------------------------------- */
.lang-switch { display: inline-flex; flex-wrap: wrap; gap: 2px; margin-left: 6px; }
.lang-switch a {
  text-decoration: none; font: inherit;
  font-size: 0.8rem; color: var(--ink-soft); padding: 6px 6px; border-radius: 8px;
}
.lang-switch a:hover { background: var(--bg-alt); }
.lang-switch a.active { color: var(--brand); font-weight: 700; }
