:root {
  --bg: #060709;
  --surface: #101318;
  --surface-soft: #141920;
  --line: #242a33;
  --text: #eef1f4;
  --muted: #abb1bb;
  --red: #e11428;
  --ok: #3ed598;
  --mid: #ffb547;
  --low: #ff5a67;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 70% -20%, #171d27, #060709 48%);
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

body {
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: radial-gradient(circle at 25% 15%, rgba(255, 255, 255, 0.28) 0.8px, transparent 0.8px);
  background-size: 5px 5px;
}

.lang-float-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  border: 1px solid #3b4250;
  background: rgba(10, 13, 18, 0.94);
  color: #f3f5f8;
  border-radius: 999px;
  min-width: 64px;
  height: 46px;
  padding: 0 16px;
  font: 800 12px "Manrope", sans-serif;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transition: transform 150ms ease, border-color 150ms ease;
}

.lang-float-btn:hover {
  transform: translateY(-2px);
  border-color: var(--red);
}

.sales-header,
.funnel-wrap {
  position: relative;
  z-index: 2; 
}

.sales-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(8, 11, 15, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sales-nav {
  width: min(1180px, calc(100% - 34px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand img {
  height: 40px;
  display: block;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid #2f3540;
  background: transparent;
  border-radius: 10px;
  margin-left: auto;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: #fff;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #d6dbe2;
  font-weight: 700;
}

.nav-links a:hover {
  color: #fff;
}

.back-link {
  margin-left: auto;
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.back-link:hover {
  border-color: var(--red);
}

.funnel-wrap {
  width: min(1180px, calc(100% - 34px));
  margin: 0 auto 40px;
}

.intro-reel {
  position: relative;
  margin: 18px auto 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  height: min(48vw, 460px);
  min-height: 260px;
  background: #0d1014;
}

.intro-reel img,
.intro-reel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: reelMotion 11s ease-in-out infinite alternate;
}

.intro-reel-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.4) 70%),
    linear-gradient(180deg, rgba(7, 10, 14, 0.2), rgba(7, 10, 14, 0.5));
}

.intro-down-arrow {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(8, 11, 15, 0.62);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 30px;
  line-height: 1;
  animation: arrowBounce 900ms ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes arrowBounce {
  0% {
    transform: translateX(-50%) translateY(0);
  }
  100% {
    transform: translateX(-50%) translateY(8px);
  }
}

.intro-reel-chip {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(9, 12, 18, 0.7);
  color: #ffffff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.intro-audio-btn {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(9, 12, 18, 0.7);
  color: #ffffff;
  border-radius: 999px;
  padding: 8px 14px;
  font: 800 11px "Manrope", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease;
}

.intro-audio-btn:hover {
  transform: translateY(-2px);
  border-color: #ffffff;
}

@keyframes reelMotion {
  0% {
    transform: scale(1.02);
    filter: saturate(0.92) brightness(0.9);
  }
  100% {
    transform: scale(1.08);
    filter: saturate(1) brightness(0.98);
  }
}

.funnel-hero {
  text-align: center;
  max-width: 840px;
  margin: 26px auto;
}

.tag {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--red);
  font-weight: 700;
}

.funnel-hero h1 {
  margin: 10px 0 14px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(42px, 5.2vw, 70px);
  line-height: 0.95;
  text-transform: uppercase;
}

.funnel-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.funnel-card,
.result-card {
  margin: 0 auto;
  width: min(860px, 100%);
  background: linear-gradient(160deg, #11151b, #163148);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
}

.funnel-top {
  display: grid;
  gap: 10px;
}

#questionCounter {
  font-size: 13px;
  color: #c2c8d0;
}

.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #8f8f8f; 
  margin: 2px 0 4px;
}

.progress-fill {
  width: 25%;
  height: 100%;
  border-radius: 999px;
    background: linear-gradient(90deg, #0a7239, #00ff5b);
  transition: width 180ms ease;
}

.funnel-card h2 {
  margin: 18px 0 10px;
  font-size: clamp(26px, 3.4vw, 38px);
  font-family: "Cormorant Garamond", serif;
}

.question-subtitle {
  margin: 0 0 20px;
  color: var(--muted);
}

.calculator-form {
  margin-top: 4px;
}

.question-list {
  display: grid;
  gap: 14px;
}

.question-block {
  display: grid;
  gap: 6px;
  transition: opacity 140ms ease;
} 

.question-block.animate-next {
  animation: nextQuestionReveal 450ms ease;
}

.question-block.animate-next select {
  border-color: #14e15d;
  box-shadow: 0 0 0 2px rgba(20, 225, 93, 0.2);
}

@keyframes nextQuestionReveal {
  0% {
    opacity: 0.35;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.question-block label {
    font-size: 30px;
    color: #02ff00;
}

.question-block select {
  width: 100%;
  border: 1px solid #2a303a;
  background: var(--surface);
  color: var(--text);
  border-radius: 14px;
  padding: 14px;
  font: 600 15px "Manrope", sans-serif;
  outline: none;
}

.question-block select:focus {
  border-color: var(--red);
}

.question-block.answered-question label {
  color: #9aa1ab;
}

.question-block.answered-question select {
  border-color: #3c424d;
  background: #171c24;
  color: #b4bbc6;
}

.hidden-question {
  display: none;
}

.funnel-actions {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.submit-hint {
  margin: 12px 2px 0;
  font-size: 13px;
  color: #b5bcc7;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.submit-hint.ready {
  color: #3ed598;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 12px 20px;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.btn.primary {
  background: var(--red);
  color: #fff;
}

.btn.primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: #d6dbe3;
}

.result-card {
  text-align: center;
}

.enroll-card {
  margin: 22px auto 0;
  width: min(860px, 100%);
  background: linear-gradient(160deg, #0f141b, #0c2537);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
}

.enroll-card.animate-in {
  animation: enrollReveal 520ms ease forwards;
}

@keyframes enrollReveal {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.enroll-card h2 {
  margin: 10px 0 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(30px, 4vw, 48px);
  text-transform: uppercase;
}

.contact-form {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.contact-form label {
  font-size: 14px;
  color: #d6dae1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #2a303a;
  background: var(--surface);
  color: var(--text);
  border-radius: 14px;
  padding: 14px;
  font: 600 15px "Manrope", sans-serif;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--red);
}

.contact-form .btn {
  margin-top: 6px;
}

.result-card h2 {
  margin: 10px 0 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(30px, 4vw, 50px);
  text-transform: uppercase;
}

.result-copy {
  margin: 0 auto;
  max-width: 640px;
  color: #c5cad2;
  line-height: 1.65;
}

.result-loading-hint {
  margin: 14px auto 6px;
  width: fit-content;
  color: #15ff00;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: preparingPulse 1s ease-in-out infinite;
}

@keyframes preparingPulse {
  0% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.45;
  }
}

.credit-chip {
  margin: 22px auto;
  width: fit-content;
  border: 4px solid;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 800;
}

.credit-chip.optimo {
    border-color: rgb(59 255 0);
    color: #00ff37;
}

.credit-chip.posible {
  border-color: rgba(255, 181, 71, 0.5);
  color: var(--mid);
}

.credit-chip.no-optimo {
  border-color: rgba(255, 90, 103, 0.5);
  color: var(--low);
}

.credit-chip.approval.excellent {
  border-color: rgba(62, 213, 152, 0.5);
  color: var(--ok);
}

.credit-chip.approval.good {
  border-color: rgba(133, 214, 255, 0.5);
  color: #85d6ff;
}

.credit-chip.approval.fair {
  border-color: rgba(255, 181, 71, 0.5);
  color: var(--mid);
}

.credit-chip.approval.limited {
  border-color: rgba(255, 90, 103, 0.5);
  color: var(--low);
}

.result-cta-wrap {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hidden {
  display: none;
}

.site-footer {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 34px));
  margin: 34px auto 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(155deg, #0f1319, #0a0d12);
  overflow: hidden;
}

.footer-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  padding: 24px;
}

.footer-brand img {
  height: 30px;
  display: block;
  margin-bottom: 10px;
}

.footer-brand p {
  margin: 0;
  color: #aeb4be;
  line-height: 1.6;
  font-size: 14px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.footer-links h3 {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #f0f2f5;
}

.footer-links a {
  display: block;
  margin-bottom: 8px;
  color: #b3b9c3;
  font-size: 14px;
  transition: color 140ms ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #202631;
  padding: 12px 24px;
}

.footer-bottom p {
  margin: 0;
  color: #8f96a1;
  font-size: 12px;
  text-align: center;
}

.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 74px;
  z-index: 55;
  display: grid;
  gap: 10px;
  animation: floatingCluster 3.8s ease-in-out infinite;
}

.floating-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 170px;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.floating-btn .btn-icon {
  font-size: 16px;
  line-height: 1;
}

.whatsapp-btn {
  background: linear-gradient(135deg, rgba(18, 175, 82, 0.94), rgba(13, 132, 63, 0.94));
  color: #ffffff;
  animation: whatsappPulse 2.2s ease-in-out infinite, floatingBtn 2.6s ease-in-out infinite;
}

.visit-btn {
  background: linear-gradient(135deg, rgba(20, 49, 72, 0.94), rgba(26, 66, 99, 0.94));
  color: #ffffff;
  animation: floatingBtn 2.6s ease-in-out infinite;
  animation-delay: 0.25s;
}

.floating-btn:hover {
  transform: translateY(-2px);
  border-color: var(--red);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

@keyframes whatsappPulse {
  0%,
  100% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32), 0 0 0 0 rgba(18, 175, 82, 0.35);
  }
  65% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32), 0 0 0 12px rgba(18, 175, 82, 0);
  }
}

@keyframes floatingCluster {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes floatingBtn {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-5px);
  }
}

@media (max-width: 680px) {
  .sales-nav {
    position: relative;
    justify-content: space-between;
    min-height: 60px;
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: 0;
    order: 1;
  }

  .nav-links {
    width: 100%;
    order: 10;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    border-top: 1px solid #252b35;
    padding: 12px 0 6px;
  }

  .nav-links.open {
    display: flex;
  }

  .back-link {
    margin-left: auto;
    padding: 8px 12px;
  }

  .funnel-card,
  .result-card,
  .enroll-card {
    padding: 20px;
    border-radius: 18px;
  }

  .intro-reel {
    border-radius: 18px;
    margin-top: 12px;
    margin-bottom: 22px;
    min-height: 220px;
  }

  .funnel-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .site-footer {
    border-radius: 18px;
  }

  .footer-shell {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .floating-actions {
    right: 10px;
    bottom: 66px;
    gap: 8px;
  }

  .floating-btn {
    min-width: 150px;
    min-height: 44px;
    font-size: 11px;
    padding: 9px 10px;
  }

  .floating-btn .btn-icon {
    font-size: 14px;
  }
}
