/* ============================================
   ZONGA ELEMENTS — Landing
   Sistema de diseño + layout responsive
   ============================================ */

/* ---------- Tokens ---------- */
:root {
  --c-primary: #2563EB;
  --c-primary-dark: #1E40AF;
  --c-primary-soft: #DBEAFE;
  --c-primary-100: #60A5FA;

  --c-bg: #FFFFFF;
  --c-bg-alt: #F8FAFC;
  --c-text: #0F172A;
  --c-text-soft: #64748B;
  --c-border: #E2E8F0;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px -10px rgba(37, 99, 235, 0.18);
  --shadow-lg: 0 20px 50px -20px rgba(37, 99, 235, 0.3);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 200ms;

  --max-w: 1200px;
}

/* ---------- Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; font-weight: 700; line-height: 1.2; }
p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 80px 0; }
.section-alt { background: var(--c-bg-alt); }

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: 32px;
  margin-bottom: 12px;
}
.section-head p {
  color: var(--c-text-soft);
  font-size: 16px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease),
              color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: var(--radius-md); }

.btn-primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--c-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  background: transparent;
  color: var(--c-text);
  border: 1px solid var(--c-border);
}
.btn-ghost:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
  background: var(--c-primary-soft);
}

.btn:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.navbar.is-scrolled {
  border-bottom-color: var(--c-border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
}
.logo.small { font-size: 14px; }

.nav-links {
  display: none;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  color: var(--c-text-soft);
  font-weight: 500;
  transition: color var(--dur) var(--ease);
}
.nav-links a:hover { color: var(--c-text); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--c-text);
}
.nav-toggle:hover { background: var(--c-bg-alt); }

@media (min-width: 640px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

/* Menú móvil expandido */
.navbar.is-open .nav-links {
  display: flex;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 0;
  padding: 8px 20px 20px;
  background: #fff;
  border-bottom: 1px solid var(--c-border);
}
.navbar.is-open .nav-links a {
  padding: 12px 0;
  border-bottom: 1px solid var(--c-border);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
  background:
    radial-gradient(1200px 600px at 50% -200px, var(--c-primary-soft) 0%, transparent 60%),
    var(--c-bg);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(37, 99, 235, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, black 40%, transparent 90%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--c-text-soft);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.badge-dot {
  width: 8px; height: 8px;
  background: #22C55E;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
  50%      { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);   }
}

.hero-title {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(90deg, var(--c-primary) 0%, var(--c-primary-100) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--c-text-soft);
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 56px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 480px;
  margin: 0 auto;
}
.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-stats strong {
  font-size: 22px;
  color: var(--c-text);
  font-weight: 700;
}
.hero-stats span {
  font-size: 12px;
  color: var(--c-text-soft);
}

/* Blobs animados (CSS puro) */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
  animation: float 14s ease-in-out infinite;
}
.blob-1 {
  width: 380px; height: 380px;
  background: var(--c-primary);
  top: -120px; left: -80px;
}
.blob-2 {
  width: 440px; height: 440px;
  background: var(--c-primary-100);
  bottom: -180px; right: -100px;
  animation-delay: -7s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, -30px) scale(1.08); }
}

/* ---------- Tools grid ---------- */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .tools-grid { grid-template-columns: repeat(3, 1fr); }
}

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.tool-card:hover .tool-icon {
  background: var(--c-primary);
  color: #fff;
}
.tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--c-primary-soft);
  color: var(--c-primary);
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.tool-card h3 { font-size: 18px; }
.tool-card p  {
  color: var(--c-text-soft);
  font-size: 14px;
  flex-grow: 1;
}
.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--c-primary);
}
.tool-link span { transition: transform var(--dur) var(--ease); }
.tool-card:hover .tool-link span { transform: translateX(4px); }

/* Tarjetas "Próximamente" */
.tool-card.is-soon {
  background: transparent;
  border: 1.5px dashed var(--c-border);
  box-shadow: none;
}
.tool-card.is-soon:hover { transform: none; box-shadow: none; border-color: var(--c-primary-100); }
.tool-card.is-soon .tool-icon {
  background: var(--c-bg-alt);
  color: var(--c-text-soft);
}
.tool-card.is-soon h3 { color: var(--c-text-soft); }
.tool-card.is-soon .tool-link { color: var(--c-text-soft); }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  position: relative;
}
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .steps::before {
    content: "";
    position: absolute;
    top: 44px; left: 15%; right: 15%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--c-primary-soft), transparent);
    z-index: 0;
  }
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  z-index: 1;
}
.step-num {
  display: inline-block;
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-100) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p  { color: var(--c-text-soft); font-size: 14px; }

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
.feature {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--c-primary-soft);
  color: var(--c-primary);
}
.feature h3 { font-size: 16px; }
.feature p  { color: var(--c-text-soft); font-size: 14px; }

/* ---------- CTA final ---------- */
.cta-final {
  padding: 80px 0;
  background:
    radial-gradient(600px 300px at 50% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 70%),
    linear-gradient(135deg, var(--c-primary-soft) 0%, #fff 100%);
}
.cta-inner {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}
.cta-inner h2 {
  font-size: 32px;
  margin-bottom: 12px;
}
.cta-inner p {
  color: var(--c-text-soft);
  margin-bottom: 28px;
  font-size: 16px;
}

/* ---------- Footer ---------- */
.footer {
  padding: 48px 0 32px;
  background: #fff;
  border-top: 1px solid var(--c-border);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
@media (min-width: 640px) {
  .footer-inner { grid-template-columns: 1.3fr 1fr auto; }
}
.footer-note {
  font-size: 13px;
  color: var(--c-text-soft);
  margin-top: 10px;
  max-width: 320px;
}
.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  font-size: 13px;
  color: var(--c-text-soft);
  transition: color var(--dur) var(--ease);
}
.footer-links a:hover { color: var(--c-primary); }
.footer-copy {
  font-size: 12px;
  color: var(--c-text-soft);
  align-self: end;
}

/* ---------- Animaciones scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Focus accesibles globales ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Responsive tweaks ---------- */
@media (min-width: 1024px) {
  .section { padding: 120px 0; }
  .hero { padding: 120px 0 140px; }
  .section-head h2, .cta-inner h2 { font-size: 40px; }
}
