/* ============================================
   VARIABLES & RESET
============================================ */
:root {
  --c-bg: #f8f7f3;
  --c-surface: #ffffff;
  --c-dark: #0f0e0c;
  --c-dark-soft: #1e1c18;
  --c-accent: #2563eb;
  --c-accent-soft: #dbeafe;
  --c-green: #16a34a;
  --c-yellow: #eab308;
  --c-text: #2c2a26;
  --c-text-muted: #6b6760;
  --c-border: #e8e5df;

  --f-display: 'Syne', sans-serif;
  --f-body: 'DM Sans', sans-serif;

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --r-xl: 48px;
  --r-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.14);
  --shadow-phone: 0 40px 80px rgba(0,0,0,0.22), 0 0 0 1px rgba(0,0,0,0.08);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--f-body);
  background: var(--c-bg);
  color: var(--c-text);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   BUTTONS
============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-full);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

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

.btn--ghost {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-border);
}
.btn--ghost:hover { background: var(--c-surface); }

.btn--white {
  background: #fff;
  color: var(--c-dark);
  box-shadow: var(--shadow-md);
  font-size: 16px;
  padding: 16px 36px;
}
.btn--white:hover { box-shadow: var(--shadow-lg); }

/* ============================================
   SECTION HEADERS
============================================ */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header--light .section-title { color: #fff; }
.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--c-accent-soft);
  color: var(--c-accent);
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-tag--light {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.section-title {
  font-family: var(--f-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--c-dark);
}
.section-title--light { color: #fff; }

/* ============================================
   NAV
============================================ */
.nav {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: #0f172a; /* puedes cambiarlo */
  z-index: 1000;
}

.nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nav__logo-text {
  font-weight: 600;
  color: #fff;
}

.nav__cta {
  background: #22c55e;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
}

/* ============================================
   HERO
============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.hero__blob--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #bfdbfe, #93c5fd);
  top: -200px; right: -100px;
}
.hero__blob--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #bbf7d0, #6ee7b7);
  bottom: -100px; left: -100px;
}
.hero__blob--3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #fde68a, #fcd34d);
  top: 40%; left: 40%;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15,14,12,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,14,12,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-muted);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.hero__badge-dot {
  width: 8px; height: 8px;
  background: var(--c-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero__title {
  font-family: var(--f-display);
  font-size: clamp(44px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  color: var(--c-dark);
  margin-bottom: 24px;
}
.hero__title em {
  font-style: normal;
  color: var(--c-accent);
  position: relative;
}
.hero__title em::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--c-accent);
  border-radius: 2px;
  opacity: 0.3;
}

.hero__desc {
  font-size: 18px;
  color: var(--c-text-muted);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 24px;
}
.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero__stat strong {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--c-dark);
}
.hero__stat span {
  font-size: 12px;
  color: var(--c-text-muted);
  font-weight: 500;
}
.hero__stat-div {
  width: 1px;
  height: 36px;
  background: var(--c-border);
}

/* Phones */
.hero__phones {
  position: relative;
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__phone {
  position: absolute;
  background: var(--c-dark);
  border-radius: 44px;
  box-shadow: var(--shadow-phone);
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.1);
}
.hero__phone--front {
  width: 240px;
  height: 480px;
  z-index: 2;
  transform: rotate(-3deg) translateX(20px);
  animation: floatFront 4s ease-in-out infinite;
}
.hero__phone--back {
  width: 220px;
  height: 440px;
  z-index: 1;
  transform: rotate(6deg) translateX(-40px) translateY(20px);
  animation: floatBack 4s ease-in-out infinite;
  opacity: 0.85;
}
@keyframes floatFront {
  0%, 100% { transform: rotate(-3deg) translateX(20px) translateY(0); }
  50% { transform: rotate(-3deg) translateX(20px) translateY(-12px); }
}
@keyframes floatBack {
  0%, 100% { transform: rotate(6deg) translateX(-40px) translateY(20px); }
  50% { transform: rotate(6deg) translateX(-40px) translateY(8px); }
}
.hero__phone-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 40px;
}
.hero__phone-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Scroll hint */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--c-text-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--c-text-muted), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.5); }
}

/* ============================================
   FEATURES
============================================ */
.features {
  padding: 120px 0;
  background: var(--c-bg);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.feature-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(24px);
}
.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--c-accent);
}

.feature-card--large {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}
.feature-card__icon {
  font-size: 36px;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--c-dark);
  margin-bottom: 12px;
}
.feature-card p {
  color: var(--c-text-muted);
  line-height: 1.7;
}
.feature-card__screen {
  margin-top: 24px;
  flex: 1;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-bg);
  min-height: 200px;
}
.feature-card__screen img {
  width: 100%;
  height: 100%;
  max-height: 400px;
  object-fit: contain;
  object-position: center;
}

/* ============================================
   CATEGORIES
============================================ */
.categories {
  padding: 100px 0;
  background: var(--c-dark);
  overflow: hidden;
}

.categories__track {
  width: 100%;
  overflow: hidden;
  margin-top: 16px;
}
.categories__list {
  display: flex;
  gap: 16px;
  animation: scrollCats 28s linear infinite;
  width: max-content;
}
@keyframes scrollCats {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.cat-pill {
  padding: 14px 24px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-full);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.cat-pill:hover {
  background: rgba(255,255,255,0.15);
}

/* ============================================
   SCREENSHOTS
============================================ */
.screenshots {
  padding: 120px 0;
  background: var(--c-bg);
}

.screenshots__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
  align-items: start;
}

.screenshot-item {
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  opacity: 0;
  transform: translateY(24px);
  background: var(--c-dark);
  box-shadow: var(--shadow-md);
}
.screenshot-item.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.screenshot-item--tall {
  grid-row: span 2;
}
.screenshot-item--wide {
  grid-column: span 2;
}
.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}
.screenshot-item:hover img { transform: scale(1.02); }
.screenshot-item span {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

/* ============================================
   HOW IT WORKS
============================================ */
.how {
  padding: 120px 0;
  background: var(--c-surface);
}

.how__steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.how__step {
  flex: 1;
  padding: 32px;
  opacity: 0;
  transform: translateY(24px);
}
.how__step.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.how__step-num {
  font-family: var(--f-display);
  font-size: 56px;
  font-weight: 800;
  color: var(--c-accent-soft);
  line-height: 1;
  margin-bottom: 16px;
  -webkit-text-stroke: 2px var(--c-accent);
  color: transparent;
}
.how__step h3 {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--c-dark);
  margin-bottom: 10px;
}
.how__step p {
  color: var(--c-text-muted);
  line-height: 1.7;
  font-size: 15px;
}

.how__connector {
  width: 2px;
  height: 40px;
  background: var(--c-border);
  align-self: center;
  flex-shrink: 0;
}

/* ============================================
   DOWNLOAD
============================================ */
.download {
  padding: 120px 0;
  background: var(--c-dark);
  position: relative;
  overflow: hidden;
}

.download__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.download__blob {
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(37,99,235,0.3), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(60px);
}

.download__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  position: relative;
  z-index: 1;
}

.download__title {
  font-family: var(--f-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
  margin-top: 16px;
}

.download__desc {
  color: rgba(255,255,255,0.6);
  font-size: 17px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.download__note {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.download__phone {
  display: flex;
  justify-content: center;
}
.download__phone-wrap {
  width: 260px;
  border-radius: 44px;
  overflow: hidden;
  box-shadow: var(--shadow-phone);
  border: 3px solid rgba(255,255,255,0.1);
  animation: floatFront 4s ease-in-out infinite;
}
.download__phone-wrap img {
  width: 100%;
  display: block;
}

/* ============================================
   FOOTER
============================================ */
.footer {
  background: #0a0908;
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.footer__logo-text {
  font-weight: 600;
  color: #fff; /* ajusta según tu fondo */
}
.footer__links {
  display: flex;
  gap: 24px;
}
.footer__links a {
  color: rgba(255,255,255,0.45);
  font-size: 14px;
  transition: color 0.2s ease;
}
.footer__links a:hover { color: #fff; }
.footer__copy {
  color: rgba(255,255,255,0.3);
  font-size: 13px;
  width: 100%;
  text-align: center;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__desc { margin: 0 auto 36px; }
  .hero__actions { justify-content: center; }
  .hero__stats { justify-content: center; }
  .hero__phones { height: 360px; order: -1; }
  .hero__phone--front { width: 180px; height: 360px; }
  .hero__phone--back { width: 160px; height: 320px; }

  .features__grid {
    grid-template-columns: 1fr;
  }
  .feature-card--large { grid-column: span 1; grid-row: span 1; }

  .screenshots__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .screenshot-item--tall { grid-row: span 1; }
  .screenshot-item--wide { grid-column: span 2; }

  .how__steps {
    flex-direction: column;
  }
  .how__connector {
    width: 40px; height: 2px;
    transform: rotate(90deg);
  }

  .download__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .download__phone { order: -1; }

  .footer__inner { flex-direction: column; align-items: center; text-align: center; }
  .footer__links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 600px) {
  .screenshots__grid {
    grid-template-columns: 1fr 1fr;
  }
  .section-title { font-size: 28px; }
  .how__step { padding: 20px 16px; }
}
