/* ==========================================================================
   components.css — Marca, navegación, botones, badge y título del hero.
   ========================================================================== */
/* ---------- Marca / logo ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  min-height: 2.75rem;
  text-decoration: none;
}

.brand__logo {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--grad-brand);
  color: #fff;
}

.brand__name {
  color: var(--text-main);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand__accent {
  color: var(--accent);
}

/* ---------- Botón hamburguesa y de icono ---------- */
.nav-toggle,
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  background: var(--bg-surface);
  color: var(--text-main);
  cursor: pointer;
}

.nav-toggle {
  display: none;
}

.js .nav-toggle {
  display: inline-grid;
}

.nav-toggle .icon--close,
.nav-toggle.is-open .icon--open {
  display: none;
}

.nav-toggle.is-open .icon--close {
  display: block;
}

@media (min-width: 48em) {
  .js .nav-toggle {
    display: none;
  }
}

.nav__link {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 var(--s2);
  border-radius: var(--r-md);
  color: var(--text-soft);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.nav__link--cta {
  justify-content: center;
  background: var(--grad-brand);
  color: #fff;
  border-radius: var(--r-pill);
  padding-inline: var(--s3);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  min-height: 3rem;
  padding: 0.75rem var(--s3);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--wa {
  background: var(--wa);
  color: var(--wa-ink);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.btn--primary {
  background: var(--grad-brand);
  color: #fff;
}

.btn--ghost {
  background: var(--bg-surface);
  border-color: var(--border-violet);
  color: var(--text-main);
}

.btn--outline {
  width: 100%;
  background: var(--bg-raised);
  border-color: var(--border-violet);
  color: var(--accent);
  font-weight: 700;
}

.link-btn {
  min-height: 2.75rem;
  padding: 0 var(--s1);
  border: 0;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Badge y etiquetas ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  margin-bottom: var(--s3);
  padding: 0.375rem var(--s2);
  border: 1px solid var(--border-violet);
  border-radius: var(--r-pill);
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--wa-hover);
}

.eyebrow {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Título del hero ---------- */
.hero__title {
  font-size: var(--fs-h1);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero__title-accent {
  display: block;
  color: var(--accent);
}

@media (min-width: 64em) {
  .hero__title {
    font-size: clamp(2.25rem, 3.4vw, 3.25rem);
  }
}
