/* CertifiedIQ - Lead/Checkout + Landing */

/* Variables heredadas de head_common */
:root {
  --radius: 0.75rem;
  --muted: #f1f5f9;
}

/* Landing: badges mejorados */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
}

/* Landing: cards con radio 16px y sombra suave */
.landing-card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border);
}

/* Layout lead */
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.w-full { width: 100%; }
.max-w-md { max-width: 28rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.pt-24 { padding-top: 6rem; }
.pt-28 { padding-top: 7rem; }
.mt-6 { margin-top: 1.5rem; }
.gap-3 { gap: 0.75rem; }
.block { display: block; }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-xs { font-size: 0.75rem; }
.font-medium { font-weight: 500; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.p-6 { padding: 1.5rem; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1); }
.border { border: 1px solid var(--border); }
.bg-card { background: var(--card); }
.bg-background { background: var(--background); }
.text-foreground { color: var(--foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-destructive { color: #dc2626; }
.relative { position: relative; }
.absolute { position: absolute; }
.z-50 { z-index: 50; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.line-through { text-decoration: line-through; }

/* Lead form inputs */
.lead-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--foreground);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.lead-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);
}

/* CTA button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1.125rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  font-family: inherit;
}
.btn-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px color-mix(in srgb, var(--primary) 40%, transparent);
}

/* Progress bar (assessment, PTER-style) */
.quiz-progress-fill {
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 70%, #93c5fd));
}

/* Trust badges */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: var(--card);
}

/* Checkmark animated */
@keyframes check-circle-fill {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
.check-circle-animated { animation: check-circle-fill 0.4s ease-out forwards; }
@keyframes check-draw { from { stroke-dashoffset: 50; } to { stroke-dashoffset: 0; } }
.check-animated path { stroke-dasharray: 50; animation: check-draw 0.6s ease-out 0.2s forwards; stroke-dashoffset: 50; }

@media (min-width: 640px) {
  .sm\:p-8 { padding: 2rem; }
}

/* Landing responsive: más aire entre secciones */
@media (min-width: 768px) {
  .landing-card { padding: 1.5rem; }
}
@media (min-width: 1024px) {
  .landing-card { padding: 2rem; }
}

/* Footer: soporte 24/7 (mailto vía JS, sin email en claro) — protagonismo venta */
a.pt-support-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 100%;
  padding: 0.9rem 1.5rem;
  border-radius: 9999px;
  background: #0f172a;
  border: 2px solid #fff;
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9375rem;
  line-height: 1.25;
  text-align: left;
  box-sizing: border-box;
  vertical-align: middle;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
a.pt-support-pill:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.pt-support-pill__lines {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}
.pt-support-pill__title {
  display: block;
  letter-spacing: 0.02em;
}
.pt-support-pill__sub {
  display: block;
  font-size: 0.8125rem;
  font-weight: 800;
  opacity: 1;
  letter-spacing: 0.04em;
}
.pt-support-pill svg {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
}
