:root {
  --bg: #f5f5fb;
  --white: #ffffff;
  --text: #1f2933;
  --muted: #6b7280;
  --primary: #ff6a3d; /* puedes cambiarlo a tu naranja */
  --primary-dark: #e55227;
  --border: #e5e7eb;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --max-width: 1100px;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background: #f9fafb;
  color: var(--text);
  line-height: 1.6;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(249, 250, 251, 0.98);
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
}
.logo span {
  color: var(--primary);
}
.logo {
  text-decoration: none !important;
  color: var(--text) !important;
}

.logo:hover {
  color: var(--text); /* que no cambie de color al pasar el mouse */
}

.logo:visited {
  color: var(--text) !important; /* evita el color morado de link visitado */
}

.logo {
  cursor: pointer;
}
.nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
}
.nav a:hover {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  border-color: #d1d5db;
  color: var(--text);
  background: #fff;
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}
.hero h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero p {
  color: var(--muted);
  max-width: 32rem;
}
.hero-actions {
  margin-top: 1.5rem;
}
.hero-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.4rem;
}
.hero-badges {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.hero-badges span {
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
}

/* Mockup card */
.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.mockup h2 {
  font-size: 1.1rem;
  margin-top: 0;
}
.mockup-metrics {
  list-style: none;
  margin: 0.8rem 0 0.6rem;
  padding: 0;
}
.mockup-metrics li {
  display: grid;
  grid-template-columns: 1.4fr 2fr auto;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  margin-bottom: 0.55rem;
}
.bar {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}
.bar span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--primary);
}
.mockup .value {
  font-weight: 600;
  font-size: 0.85rem;
}
.mockup-caption {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Sections */
.section {
  padding: 3rem 0;
}
.section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.6rem;
}
.section-alt {
  background: #f3f4f6;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1.8rem;
}

.step {
  position: relative;
}
.step-number {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bullet-list li {
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}
.bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* FAQ */
.faq details {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  margin-bottom: 0.7rem;
  border: 1px solid #e5e7eb;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
}
.faq p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, #1f2937, #111827);
  color: #f9fafb;
  text-align: center;
}
.cta-inner p {
  max-width: 32rem;
  margin: 0.4rem auto 1rem;
  color: #e5e7eb;
}
.cta-note {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Footer */
.footer {
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 1rem 0;
  font-size: 0.85rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-links {
  display: flex;
  gap: 1rem;
}
.footer a {
  color: var(--muted);
  text-decoration: none;
}
.footer a:hover {
  color: var(--text);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner,
  .grid-3,
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero {
    padding-top: 2.5rem;
  }
  .nav {
    display: none; /* si quieres luego hacemos menú móvil */
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.6rem;
  }
  .card {
    padding: 1.1rem 1.2rem;
  }
}
body {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.bar-fill {
  animation: growBar 1.2s ease forwards;
}

@keyframes growBar {
  from { width: 0%; }
  to { width: var(--final-width); }
}
.btn-primary, .btn-outline {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover, .btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}
#unlockBtn {
  animation: pulse 2.2s infinite ease-in-out;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 rgba(79,70,229,0.2); }
  50% { box-shadow: 0 0 16px rgba(79,70,229,0.4); }
  100% { box-shadow: 0 0 0 rgba(79,70,229,0.2); }
}
.fade {
  animation: fadeQuestion 0.4s ease;
}

@keyframes fadeQuestion {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
.header {
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.header.scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
/* ============================
   MOBILE OPTIMIZATION (<= 600px)
   ============================ */
@media (max-width: 600px) {

  body {
    padding: 0;
    margin: 0;
  }

  /* HEADER */
  .header-inner {
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem 0;
  }

  .nav {
    gap: 0.8rem;
  }

  .nav a {
    font-size: 0.9rem;
  }

  /* HERO */
  .hero-title {
    font-size: 1.8rem !important;
    line-height: 2.2rem !important;
  }

  .hero-subtitle {
    font-size: 1rem !important;
  }

  .hero-inner {
    padding: 1.8rem 1.2rem;
  }

  /* CTA BUTTONS */
  .btn-primary, .btn-outline {
    width: 100%;
    text-align: center;
    padding: 1rem;
    font-size: 1rem;
  }

  /* TEST PAGE */
  .test-container {
    margin: 1.5rem 1rem;
    padding: 1.5rem 1rem;
  }

  .option-btn {
    font-size: 1rem;
    padding: 0.9rem 1rem;
  }

  .question-text {
    font-size: 1.2rem;
  }

  /* RESULTS */
  .results-container {
    margin: 1.5rem 1rem;
    padding: 1.5rem 1rem;
  }

  .locked-box h2 {
    font-size: 1.3rem;
  }

  .locked-feature {
    font-size: 0.95rem;
  }

  #unlockBtn {
    width: 100%;
    padding: 1.1rem;
    font-size: 1rem;
  }

  /* FOOTER */
  .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    width: 100%;
  }
}
@media (max-width: 500px) {
  .option-btn {
    border-radius: 16px;
    font-size: 1rem;
    padding: 1.1rem;
  }

  .progress-bar {
    height: 12px;
  }

  .test-container {
    box-shadow: none;
    border-radius: 0;
    border: none;
  }
}
@media (max-width: 600px) {
  #unlockBtn {
    animation: pulseMobile 2.8s infinite ease-in-out;
  }

  @keyframes pulseMobile {
    0% { transform: scale(1); }
    50% { transform: scale(1.04); }
    100% { transform: scale(1); }
  }
}
.victory-illustration {
  max-width: 280px;
  margin: 0 auto 1.5rem;
  display: block;
  animation: floatUp 1.1s ease-out;
}

@keyframes floatUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


