/* ─── DANTI WEBSITE BUTTON SYSTEM ────────────────────────────────────────
   Same idea as UsersWeb `styles/buttons.css`: one stylesheet, classes by
   purpose, pages only add layout. The marketing design uses pill buttons, so
   radii differ from the dashboard (8px there).

   Purpose → class
     Main action (Comenzar prueba gratuita, Crear cuenta) .. .btn .btn-primary
     Secondary on light background (Agendar una demo) ...... .btn .btn-light
     Outlined pill (Iniciar sesión) ......................... .btn .btn-pill-outline
     Main action on the teal CTA card ....................... .btn .btn-white
     Secondary on the teal CTA card ......................... .btn .btn-ghost-white

   Sizes: .btn-sm 40px (top bar) · default 48px · .btn-xl 64px (hero / CTA)
   ───────────────────────────────────────────────────────────────────── */
@import url("../colours.css");

:root {
  --btn-height-sm: 40px;
  --btn-height: 48px;
  --btn-height-xl: 64px;
  --btn-radius: 999px;
  --btn-focus-ring: 0 0 0 3px rgba(51, 180, 220, 0.45);
}

/* ─── BASE ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--btn-height);
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: var(--btn-radius);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--btn-focus-ring); }

/* ─── SIZES ─── */
.btn-sm { height: var(--btn-height-sm); padding: 0 16px; font-size: 16px; }
.btn-xl {
  height: var(--btn-height-xl);
  padding: 0 clamp(18px, 2vw, 24px);
  font-size: clamp(16px, 1.55vw, 21px);
}

/* ─── PURPOSES ─── */
.btn-primary {
  background: var(--app-theme);
  color: var(--text-white);
  box-shadow: 0 8px 18px rgba(7, 106, 137, 0.25);
}
.btn-primary:hover { background: var(--app-theme-hover); }
.btn-primary:active { background: var(--app-theme-active); }

.btn-light {
  background: var(--white);
  color: var(--text-header-dark);
  border-color: var(--border-soft);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.10);
}
.btn-light:hover { border-color: var(--border-light-blue); }

.btn-pill-outline {
  background: var(--white);
  color: var(--text-step);
  border-color: var(--border-soft);
}
.btn-pill-outline:hover { border-color: var(--text-small-titles); }

.btn-white {
  background: var(--bg-soft-2);
  color: var(--text-header-dark);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
.btn-white:hover { background: var(--white); }

.btn-ghost-white {
  background: transparent;
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.75);
}
.btn-ghost-white:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }
