/* ============================================================
   Webs para comercios locales — design system (landing de servicio)
   Paleta: servicios profesionales (base gris claro, azul, acento naranja)
   Mobile-first · sin dependencias externas
   ============================================================ */

:root {
  --color-bg: #F7F8FA;
  --color-ink: #0F172A;
  --color-muted: #475569;
  --color-primary: #1D4ED8;
  --color-primary-dark: #1E3A8A;
  --color-accent: #FF6B35;
  --color-dark: #0B1220;
  --color-card: #FFFFFF;
  --color-line: #E2E8F0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --font-display: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* ---------- Tipografía ---------- */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.02em; }

.lead { font-size: 1.25rem; color: var(--color-ink); }
.lead strong { color: var(--color-primary-dark); }

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: .75rem;
}
.section__sub {
  color: var(--color-muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 60ch;
}
.center .section__sub { margin-inline: auto; }

/* ---------- Botones (≥44px táctiles) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 44px; padding: .55rem 1.1rem; font-size: .95rem; }

.btn--accent { background: var(--color-accent); color: #1A0E06; box-shadow: 0 8px 20px rgba(255, 107, 53, .35); }
.btn--accent:hover { background: #FF7F50; }

.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-dark); }

.btn--ghost { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .5); }
.btn--ghost:hover { border-color: #fff; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 250, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line);
}
.nav__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; }
.nav__brand { font-weight: 800; text-decoration: none; color: var(--color-ink); letter-spacing: -.01em; }
.nav__links { display: none; gap: 1.5rem; margin-left: auto; }
.nav__links a { text-decoration: none; color: var(--color-muted); font-weight: 600; font-size: .95rem; }
.nav__links a:hover { color: var(--color-primary); }
.nav__cta { margin-left: auto; }
@media (min-width: 860px) {
  .nav__links { display: flex; }
  .nav__cta { margin-left: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-dark);
  color: #fff;
  padding: 5rem 0 4.5rem;
}
.hero__blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.hero__blob--1 { width: 420px; height: 420px; background: #2563EB; top: -120px; left: -100px; }
.hero__blob--2 { width: 380px; height: 380px; background: var(--color-accent); bottom: -140px; right: -80px; opacity: .35; }
.hero__inner { position: relative; }
.hero__eyebrow {
  display: inline-block;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}
.hero__title {
  font-size: clamp(2.1rem, 6vw, 3.8rem);
  font-weight: 900;
  margin-bottom: 1.25rem;
  max-width: 16ch;
}
.hero__title em { font-style: normal; color: var(--color-accent); }
.hero__sub {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: #CBD5E1;
  max-width: 52ch;
  margin-bottom: 2rem;
}
.hero__sub strong { color: #fff; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.75rem; }
.hero__trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  color: #94A3B8;
  font-size: .95rem;
  font-weight: 600;
}
.hero__trust li::before { content: "✓ "; color: var(--color-accent); }

/* ---------- Secciones ---------- */
.section { padding: 4.5rem 0; }
.section--tight { padding: 3rem 0; }
.section--dark { background: var(--color-dark); color: #fff; }
.section--dark .section__sub { color: #94A3B8; }
.section--tint { background: #EEF2FF; }

/* ---------- Tarjetas ---------- */
.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.cards--demos { max-width: 820px; }
@media (min-width: 640px) { .cards--demos { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.card p { color: var(--color-muted); font-size: .98rem; }
.card__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: #EEF2FF;
  color: var(--color-primary);
  border-radius: 10px;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.card--link { text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.card--link:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(15, 23, 42, .14); }
.card--muted { background: rgba(255, 255, 255, .6); border-style: dashed; box-shadow: none; }
.card__badge {
  display: inline-block;
  background: var(--color-accent);
  color: #1A0E06;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: .3rem .75rem;
  margin-bottom: 1rem;
}
.card__badge--soft { background: #E2E8F0; color: var(--color-muted); }
.card__go { display: inline-block; margin-top: 1rem; font-weight: 700; color: var(--color-primary); }
.card--muted .card__go { color: var(--color-muted); }

/* ---------- Pasos ---------- */
.steps { list-style: none; display: grid; gap: 1.5rem; max-width: 760px; }
.step {
  display: flex;
  gap: 1.25rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.step__num {
  flex: 0 0 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--color-accent);
  color: #1A0E06;
  font-weight: 900;
  font-size: 1.3rem;
  border-radius: 50%;
}
.step__body h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.step__body p { color: #CBD5E1; font-size: 1rem; }
.step__body strong { color: #fff; }
.steps__cta { margin-top: 2.5rem; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; display: grid; gap: 1rem; }
.checklist li {
  position: relative;
  padding-left: 2.2rem;
  color: var(--color-muted);
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  background: #DCFCE7;
  color: #166534;
  border-radius: 50%;
  font-size: .85rem;
  font-weight: 900;
}
.checklist strong { color: var(--color-ink); }

/* ---------- FAQ ---------- */
.faq {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-card);
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.faq p { color: var(--color-muted); padding-top: .6rem; }

/* ---------- Contacto ---------- */
.contact__mail { font-size: 1.35rem; font-weight: 800; margin-bottom: .5rem; }
.contact__note { color: #94A3B8; }
.pendiente {
  background: #FEF3C7;
  color: #92400E;
  border: 2px dashed #F59E0B;
  border-radius: 8px;
  padding: .35rem .8rem;
  font-size: 1rem;
}

/* ---------- Footer ---------- */
.footer { background: var(--color-dark); color: #64748B; padding: 2rem 0 5.5rem; border-top: 1px solid rgba(255,255,255,.08); }
.footer__inner { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; font-size: .9rem; }

/* ---------- Barra CTA fija (móvil) ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: flex;
  gap: .75rem;
  padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(11, 18, 32, .95);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.sticky-cta .btn { flex: 1; }
@media (min-width: 860px) {
  .sticky-cta { display: none; }
  .footer { padding-bottom: 2rem; }
}
