/* ============================================
   CodeStream — Landing Pre-calificación
   Paleta: fondo #0f172a, índigo #6366f1,
   cian #06b6d4, rosa #f472b6. Fuente: Outfit.
   Mobile-first.
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark:       #0f172a;
  --dark-light: #1e293b;
  --dark-mid:   #334155;
  --primary:    #6366f1;
  --primary-d:  #4f46e5;
  --secondary:  #06b6d4;
  --accent:     #f472b6;
  --light:      #f8fafc;
  --text-muted: #94a3b8;
  --white:      #ffffff;
  --gradient:   linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 4px 24px rgba(0,0,0,.35);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.45);
}

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--white);
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.header {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--gradient);
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -.5px;
}
.logo-text {
  font-weight: 700;
  font-size: 18px;
}
.header-tagline {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 40px;
  text-align: center;
}
.badge {
  display: inline-block;
  background: rgba(99,102,241,.15);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(99,102,241,.25);
  margin-bottom: 20px;
  letter-spacing: .3px;
}
.hero h1 {
  font-size: clamp(26px, 6vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.highlight {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.subtitle {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto;
}

/* ---------- Form ---------- */
.form-section {
  padding: 0 0 48px;
}
.form-card {
  background: var(--dark-light);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
}
.form-card h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}
.form-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}
.field {
  margin-bottom: 20px;
}
.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--light);
}
.field input,
.field select {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--dark);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L1 4h14z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.field input::placeholder { color: var(--dark-mid); }
.field input:focus,
.field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,.2);
}
.field.error input,
.field.error select {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.15);
}
.error-msg {
  display: none;
  color: #ef4444;
  font-size: 12px;
  margin-top: 6px;
}
.field.error .error-msg {
  display: block;
}

/* ---------- Button ---------- */
.btn-submit {
  width: 100%;
  padding: 16px;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Outfit', system-ui, sans-serif;
  color: var(--white);
  background: var(--gradient);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, opacity .2s;
  box-shadow: 0 4px 16px rgba(99,102,241,.35);
  letter-spacing: .3px;
}
.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(99,102,241,.45);
}
.btn-submit:active {
  transform: translateY(0);
}
.btn-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Result ---------- */
.result-section {
  padding: 0 0 48px;
}
.result-card {
  background: var(--dark-light);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.result-card.result-priority {
  border-color: rgba(244,114,182,.3);
  background: linear-gradient(180deg, rgba(244,114,182,.06) 0%, var(--dark-light) 100%);
}
.result-icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.result-card h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}
.result-card p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 16px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}
.result-datos {
  background: rgba(255,255,255,.04);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-align: left;
  font-size: 14px;
  color: var(--light);
  margin-bottom: 24px !important;
}
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Outfit', system-ui, sans-serif;
  color: var(--white);
  background: #25d366;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: transform .15s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(37,211,102,.3);
}
.btn-whatsapp:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
}
.btn-whatsapp-priority {
  background: linear-gradient(135deg, #f472b6 0%, #6366f1 100%);
  box-shadow: 0 4px 16px rgba(244,114,182,.3);
}
.btn-whatsapp-priority:hover {
  box-shadow: 0 6px 24px rgba(244,114,182,.45);
}
.whatsapp-icon { flex-shrink: 0; }
.result-hint {
  margin-top: 18px !important;
  font-size: 13px !important;
  color: var(--text-muted) !important;
}

/* ---------- Social Proof ---------- */
.social-proof {
  padding: 48px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.proof-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
}
.proof-item {
  text-align: center;
}
.proof-number {
  display: block;
  font-size: 28px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.proof-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* ---------- Footer ---------- */
.footer {
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer p {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-wa {
  font-size: 13px;
  color: #25d366;
  text-decoration: none;
  font-weight: 600;
}
.footer-wa:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .hero { padding: 40px 0 28px; }
  .hero h1 { font-size: 24px; }
  .form-card { padding: 24px 18px; }
  .proof-grid { gap: 24px; }
  .proof-number { font-size: 22px; }
  .header-tagline { display: none; }
}