:root {
  --bg: #06070d;
  --fg: #e9e9f3;
  --muted: #a0a6bf;
  --card: #141824;
  --accent: #5b8cff;
  --good: #21c16b;
  --warn: #ffb020;
  --bad: #ff4d4f;
  --radius: 18px;
  --progress-size: clamp(120px, 30vw, 180px);
}

/* === RESET === */
* {
  box-sizing: border-box;
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Sora', sans-serif !important;
  scroll-behavior: smooth;
  color: var(--fg);
}

/* === BACKGROUND GLOBAL === */
body {
  background: radial-gradient(circle at 50% 15%, #101428 0%, #080b17 60%, #040509 100%) fixed !important;
  background-size: cover !important;
  min-height: 100vh !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  padding: 100px 24px 80px !important;
  animation: bgShift 40s ease-in-out infinite;
}

@keyframes bgShift {
  0% { background-position: 0% 50%; filter: brightness(1); }
  50% { background-position: 100% 50%; filter: brightness(1.15); }
  100% { background-position: 0% 50%; filter: brightness(1); }
}

/* === CONTENEDOR PRINCIPAL === */
.shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 880px;
  min-height: 80vh;
  background: rgba(20, 24, 36, 0.65);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  box-shadow: 0 0 50px rgba(91, 140, 255, 0.15);
  padding: 25px 50px;
  margin: 0 auto;
  transition: all 0.3s ease-in-out;
}

.shell.hidden {
  display: none !important;
  opacity: 0;
}

/* === HERO HEADER === */
.hero {
  text-align: center;
  margin-bottom: 48px;
  margin-top: 20px;
}
.brand {
  font-size: clamp(34px, 6vw, 45px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 12px;
  background: linear-gradient(90deg, #4ef1b3, #5b8cff, #9b6eff);
  -webkit-background-clip: text;
  color: transparent;
}
.tagline {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 20px;
}

/* === FORMULARIO === */
.card-hero {
  background: rgba(18, 22, 36, 0.85);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}
.input-row {
  display: flex;
  gap: 14px;
}
.input-row input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(91, 140, 255, 0.35);
  background: rgba(20, 24, 36, 0.9);
  color: var(--fg);
  font-size: 1rem;
  transition: all 0.25s ease-in-out;
}
.input-row input::placeholder {
  color: var(--muted);
  opacity: 0.8;
}
.input-row input:focus {
  border-color: #4ef1b3;
  box-shadow: 0 0 10px rgba(78, 241, 179, 0.4);
  background: rgba(25, 28, 44, 0.95);
}

/* BOTÓN */
.btn {
  border: none;
  padding: 14px 22px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 600;
  background: linear-gradient(90deg, #5b8cff, #4ef1b3);
  color: white;
  box-shadow: 0 0 20px rgba(91, 140, 255, 0.4);
  transition: all 0.25s ease-in-out;
}
.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 35px rgba(91, 140, 255, 0.6);
}
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(91, 140, 255, 0.35);
}

.help {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 10px;
  text-align: left;
}

/* === TEXTOS ADICIONALES === */
.additional {
  text-align: center;
  color: var(--fg);
  margin-top: 36px;
  font-weight: 500;
}

/* === RESULTADOS === */
#result {
  text-align: center;
}

#result .hero {
  margin-top: 40px;
  margin-bottom: 32px;
}

.result-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.result-screenshot {
  flex: 1 1 45%;
  text-align: center;
}
.screenshot {
  max-width: 80%;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.result-info {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.score {
  font-size: clamp(40px, 8vw, 90px);
  font-weight: 800;
}
.score.good .score-value {
  color: var(--good);
}
.score.bad .score-value {
  color: var(--bad);
}
.score-unit {
  margin-left: 6px;
  color: var(--muted);
}
.warmup-value {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 10px;
}

/* === MARKETING === */
.marketing {
  background: linear-gradient(180deg, #141824, transparent);
  border: 1px solid #202639;
  border-radius: 14px;
  padding: 18px 20px;
  margin-top: 24px;
  color: #e9e9f3;
}

/* === ERROR === */
#error-content {
  text-align: center;
  color: var(--bad);
  padding: 12px;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
}
.error-message {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.error-text {
  font-weight: bold;
  color: var(--bad);
}
.retry {
  margin: 12px auto 0;
  background: var(--bad);
  transition: background-color 0.2s ease;
  display: block;
  max-width: 200px;
}
.retry:hover {
  background: var(--accent);
}

/* === INSIGHT CTA === */
.insight-cta {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
  margin: 16px 0;
  text-align: center;
}

.insight-cta .insight-btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 14px;
  background: linear-gradient(90deg, #5b8cff, #4ef1b3);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(91, 140, 255, 0.35);
  transition: all 0.25s ease-in-out;
  margin-bottom: 10px;
}

.insight-cta .insight-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 35px rgba(91, 140, 255, 0.6);
}

.insight-cta span {
  display: block;
  color: var(--fg);
  margin-top: 6px;
}


/* === INSIGHTS / RESULTADOS === */
.insight-box {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--fg);
  background: rgba(20, 24, 36, 0.8);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 16px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(91, 140, 255, 0.25);
  text-align: center;
  animation: fadeInUp 0.6s ease both;
}

.insight-box.success {
  color: var(--good);
  border-color: rgba(33, 193, 107, 0.4);
}

.insight-highlight {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--fg);
  background: rgba(20, 24, 36, 0.7);
  padding: 12px 16px;
  border-radius: 10px;
  margin: 12px 0;
  border: 1px solid rgba(91, 140, 255, 0.2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.insight-highlight.success {
  color: var(--good);
  border-color: rgba(33, 193, 107, 0.4);
}

.insight-list {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
  list-style: none;
  padding-left: 0;
  margin: 14px 0;
}

.insight-list li {
  background: rgba(20, 24, 36, 0.6);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 10px;
  border-left: 3px solid var(--accent);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.insight-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(91, 140, 255, 0.25);
}

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




/* === LEGIBILIDAD GENERAL === */
body, .tagline, .additional, label, p, span, a {
  color: var(--fg) !important;
}


/* === RESPONSIVE === */
@media (max-width: 640px) {
  .shell {
    padding: 24px 20px;
  }

  .hero {
    margin-bottom: 32px;
  }

  .brand {
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.2;
  }

  .tagline {
    font-size: 0.95rem;
    margin-bottom: 16px;
  }

  .card-hero {
    padding: 24px 20px;
  }

  .input-row {
    flex-direction: column;
    gap: 12px;
  }

  .input-row input,
  .btn {
    width: 100%;
    font-size: 1rem;
  }

  .btn {
    padding: 14px;
    border-radius: 12px;
    box-shadow: 0 0 18px rgba(91, 140, 255, 0.4);
    transform: none;
  }

  .help {
    text-align: center;
    font-size: 0.9rem;
  }

  .additional {
    font-size: 0.95rem;
    margin-top: 24px;
  }

  .result-row {
    flex-direction: column;
    gap: 20px;
  }

  .result-screenshot,
  .result-info {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .screenshot {
    max-width: 100%;
  }

  .marketing {
    padding: 16px;
    font-size: 0.95rem;
  }


  .insight-box,
  .insight-highlight {
    font-size: 0.95rem;
    padding: 12px;
  }

  .insight-list {
    font-size: 0.95rem;
  }

  .insight-list li {
    padding: 10px 12px;
  }

    .insight-cta {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .insight-cta .insight-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-size: 1rem;
  }

  .insight-cta span {
    margin-top: 10px;
    font-size: 0.9rem;
  }

}
