/* ===========================
   FOCALIS — Funnel / Form
   =========================== */

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

:root {
  --dark:    #1C1C1C;
  --dark-2:  #111111;
  --orange:  #E8572A;
  --orange-dk: #C94A22;
  --white:   #FFFFFF;
  --mid:     #D0D0D0;
  --gray:    #7A7A7A;
  --light:   #F2F2F2;
  --border:  rgba(255,255,255,0.08);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  background: var(--dark);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* NAV */
.fnav {
  background: rgba(28,28,28,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.fnav__inner {
  max-width: 680px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fnav__logo { display: flex; align-items: center; text-decoration: none; }
.fnav__secure { font-size: 13px; color: var(--gray); }

/* PROGRESS */
.progress-wrap {
  height: 3px;
  background: rgba(255,255,255,0.06);
}
.progress-bar {
  height: 100%;
  background: var(--orange);
  transition: width 0.4s ease;
  width: 0%;
}

/* MAIN */
.funnel-main {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 28px 80px;
}

/* CARD */
.funnel-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 48px;
  min-height: 440px;
  position: relative;
  overflow: hidden;
}

/* STEPS */
.step {
  display: none;
  animation: fadeIn 0.3s ease;
}
.step.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.step__counter {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.step__title {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}
.step__desc {
  font-size: 16px;
  color: var(--mid);
  line-height: 1.65;
  margin-bottom: 32px;
}
.step__meta {
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 36px;
}

/* OPTIONS */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 12px;
}
.options-grid--2col { grid-template-columns: 1fr 1fr; }
.options-grid--col { grid-template-columns: 1fr; }

.opt-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}
.opt-card:hover {
  border-color: rgba(232,87,42,0.4);
  background: rgba(232,87,42,0.06);
}
.opt-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.opt-card.selected {
  border-color: var(--orange);
  background: rgba(232,87,42,0.12);
  box-shadow: 0 0 0 1px var(--orange);
}
.opt-card__icon { font-size: 22px; margin-bottom: 4px; line-height: 1; }
.opt-card__label { font-size: 15px; font-weight: 600; color: var(--white); line-height: 1.3; }
.opt-card__sub { font-size: 13px; color: var(--gray); line-height: 1.3; }
.opt-card--warning { border-color: rgba(255,200,0,0.2); }
.opt-card--warning.selected { border-color: #FFCC00; background: rgba(255,204,0,0.08); box-shadow: 0 0 0 1px #FFCC00; }

/* OPTIONS — layout col */
.options-grid--col .opt-card {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
}
.options-grid--col .opt-card__label { margin-bottom: 0; }
.options-grid--col .opt-card__sub { display: block; margin-top: 2px; }
.options-grid--col .opt-card__text { display: flex; flex-direction: column; }

/* CONTACT FORM */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-optional { color: var(--gray); font-weight: 400; text-transform: none; letter-spacing: 0; }
.form-field input,
.form-field textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--white);
  font-family: var(--font);
  transition: border-color 0.15s;
  outline: none;
  resize: vertical;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--gray); }
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--orange);
  background: rgba(232,87,42,0.06);
}
.form-field input.error { border-color: #FF5555; }
.form-privacy { font-size: 13px; color: var(--gray); text-align: center; }
.form-privacy-link {
  background: none; border: none; cursor: pointer;
  color: var(--gray); font-size: inherit; font-family: inherit;
  padding: 0; text-decoration: underline; text-underline-offset: 3px;
  transition: color 0.15s;
}
.form-privacy-link:hover { color: #fff; }

/* BUTTONS */
.btn-submit {
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 16px 28px;
  font-size: 17px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-submit:hover:not(:disabled) {
  background: var(--orange-dk);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(232,87,42,0.38);
}
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-next--start {
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 16px 32px;
  font-size: 17px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.18s;
  margin-top: 8px;
}
.btn-next--start:hover {
  background: var(--orange-dk);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(232,87,42,0.38);
}

/* FUNNEL NAV */
.funnel-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding: 0 4px;
}
.btn-back {
  background: transparent;
  border: none;
  color: var(--gray);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.15s;
}
.btn-back:hover { color: var(--white); }
.btn-back:disabled { opacity: 0.3; cursor: default; }
.btn-next {
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.18s;
}
.btn-next:hover:not(:disabled) {
  background: var(--orange-dk);
  transform: translateY(-1px);
}
.btn-next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

/* RESULTADO */
.result-icon {
  font-size: 52px;
  margin-bottom: 20px;
  line-height: 1;
}
.result-score-wrap {
  margin: 28px 0;
}
.result-score-bar {
  height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}
.result-score-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease;
  width: 0%;
}
.result-score-fill--hot    { background: #22C55E; }
.result-score-fill--warm   { background: #F59E0B; }
.result-score-fill--ok     { background: #3B82F6; }
.result-score-fill--low    { background: var(--gray); }
.result-score-label {
  font-size: 14px;
  color: var(--gray);
}
.result-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.result-actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s;
  border: 2px solid transparent;
}
.result-actions .btn-wa {
  background: #25D366;
  color: #fff;
}
.result-actions .btn-wa:hover {
  background: #1eba56;
  transform: translateY(-1px);
}
.result-actions .btn-email {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
}
.result-actions .btn-email:hover {
  border-color: var(--white);
}
.result-actions .btn-back-site {
  background: transparent;
  color: var(--gray);
  border-color: rgba(255,255,255,0.1);
  font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .funnel-card { padding: 32px 24px; }
  .options-grid { grid-template-columns: 1fr; }
  .options-grid--2col { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-field--full { grid-column: 1; }
  .btn-submit { width: 100%; }
}
@media (max-width: 480px) {
  .options-grid--2col { grid-template-columns: 1fr; }
  .result-actions { flex-direction: column; }
  .result-actions a { width: 100%; justify-content: center; }
}

/* SPRINTWEB CTA — resultado LOW */
.result-actions .btn-sw {
  background: #C8FF33;
  color: #0f0f0f;
  border-color: #C8FF33;
  font-size: 16px;
  font-weight: 800;
  padding: 18px 28px;
  border-radius: 10px;
  width: 100%;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 4px 24px rgba(200,255,51,0.25);
}
.result-actions .btn-sw:hover {
  background: #b8ef20;
  border-color: #b8ef20;
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(200,255,51,0.40);
}
.btn-sw__badge {
  display: inline-block;
  background: #0f0f0f;
  color: #C8FF33;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: 20px;
  flex-shrink: 0;
}

/* MODAL PRIVACIDAD */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal__panel {
  position: relative;
  background: #1e1e1e;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
}
.modal__close {
  position: absolute;
  top: 16px; right: 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
  z-index: 2;
}
.modal__close:hover { background: rgba(255,255,255,0.16); }
.modal__body {
  padding: 40px 36px 36px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal__body h2 { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.modal__updated { font-size: 13px; color: #7a7a7a; margin-bottom: 24px; }
.modal__body h3 { font-size: 14px; font-weight: 700; color: #E8572A; margin: 18px 0 6px; }
.modal__body p { font-size: 14px; color: #D0D0D0; line-height: 1.7; margin-bottom: 4px; }
