/* ===================================================
   landing.css — Pesalo Landing Page
   Inspirado en fu.do: limpio, moderno, SaaS
   =================================================== */

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

:root {
  --green:        #16a34a;
  --green-dark:   #15803d;
  --green-light:  #dcfce7;
  --green-xlight: #f0fdf4;
  --text-dark:    #111827;
  --text-mid:     #4b5563;
  --text-light:   #9ca3af;
  --border:       #e5e7eb;
  --bg-alt:       #f9fafb;
  --white:        #ffffff;
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08);
  --shadow-md:    0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Utils ─────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navbar ────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo img {
  height: 36px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}

.nav__link:hover { color: var(--text-dark); background: var(--bg-alt); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform .15s, box-shadow .15s, background .2s;
}

.btn:hover { transform: translateY(-1px); }

.btn--outline {
  color: var(--text-dark);
  background: transparent;
  border: 1.5px solid var(--border);
}
.btn--outline:hover { border-color: var(--text-mid); background: var(--bg-alt); }

.btn--primary {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 2px 8px rgba(22,163,74,.30);
}
.btn--primary:hover { background: var(--green-dark); box-shadow: 0 4px 14px rgba(22,163,74,.40); }

.btn--lg {
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
}

/* ── Hero ──────────────────────────────────────── */
.hero {
  padding: 52px 0 48px;
  background: linear-gradient(160deg, var(--white) 0%, var(--green-xlight) 100%);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero__badge span { font-size: 1rem; }

.hero__title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.hero__title em {
  font-style: normal;
  color: var(--green);
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 440px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__note {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}


.hero__visual {
  position: relative;
}

/* Mockup tarjeta de tienda */
.mockup {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.mockup__header {
  background: var(--green);
  padding: 20px 24px 16px;
  color: white;
}

.mockup__store-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.mockup__store-sub {
  font-size: 0.8rem;
  opacity: .8;
}

.mockup__body { padding: 20px 24px; }

.mockup__section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-light);
  margin-bottom: 12px;
}

.mockup__products { display: flex; flex-direction: column; gap: 10px; }

.mockup__product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
}

.mockup__product-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
}

.mockup__product-unit {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 1px;
}

.mockup__product-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-dark);
}

.mockup__footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mockup__footer-label {
  font-size: 0.8rem;
  color: var(--text-mid);
}

.mockup__cart-btn {
  background: var(--green);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

/* Floating notification */
.mockup__notif {
  position: absolute;
  top: -16px;
  right: -16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
}

.notif__icon {
  width: 34px;
  height: 34px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.notif__text-main {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
}

.notif__text-sub {
  font-size: 0.72rem;
  color: var(--text-light);
}

/* Floating QR badge */
.mockup__qr {
  position: absolute;
  bottom: -14px;
  left: -20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
}

.qr__icon {
  width: 34px;
  height: 34px;
  background: var(--text-dark);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.qr__text-main {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dark);
}

.qr__text-sub {
  font-size: 0.7rem;
  color: var(--text-light);
}

/* ── Dolores carousel ──────────────────────────── */
.dolores {
  padding: 52px 0 48px;
  background: var(--bg-alt);
}

.dolores__header {
  text-align: center;
  margin-bottom: 48px;
}

.dolores__carousel {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.dolores__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,.14);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: box-shadow .2s, transform .15s;
  padding: 0;
}

.dolores__arrow:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  transform: translateY(-50%) scale(1.1);
}

.dolores__arrow svg {
  width: 18px;
  height: 18px;
}

.dolores__arrow--prev { left: -19px; }
.dolores__arrow--next { right: -19px; }

.dolores__track {
  display: flex;
  transition: transform 0.45s cubic-bezier(.4,0,.2,1);
}

.dolor-card {
  flex: 0 0 100%;
  min-width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  user-select: none;
}

.dolor-card__pregunta {
  padding: 22px 24px 18px;
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
}

.dolor-card__pregunta p {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.5;
  margin: 0;
}

.dolor-card__solucion {
  padding: 18px 24px 22px;
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.65;
}

.dolor-card__solucion strong:not(.brand-name) {
  color: var(--green-dark);
}

.dolor-card__solucion--cta {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text-dark);
}

.dolor-card__solucion--cta .btn {
  flex-shrink: 0;
  font-size: 0.85rem;
  padding: 10px 18px;
}

.dolor-card--cta { cursor: default; }

.dolores__storybox {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}

.dolores__bars {
  display: flex;
  gap: 5px;
  margin-bottom: 8px;
}

.dolores__bar {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.dolores__bar-fill {
  height: 100%;
  width: 0%;
  background: var(--green);
  border-radius: 2px;
}

/* ── Tipos de comercio ─────────────────────────── */
.tipos {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.tipos__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tipos__label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  margin-right: 4px;
}

.tipos__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-mid);
}

/* ── Features ──────────────────────────────────── */
.features {
  padding: 52px 0;
  background: var(--white);
}

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--green);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 520px;
  line-height: 1.7;
}

.section-sub strong {
  color: var(--green-dark);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.02em;
}
.brand-pesa { color: #374151; }
.brand-lo   { color: var(--green); }

.features__header { margin-bottom: 56px; }

.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow .2s, transform .2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-card__icons {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.feature-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.feature-card__text {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ── How it works ──────────────────────────────── */
.how {
  padding: 52px 0;
  background: var(--bg-alt);
}

.how__header { text-align: center; margin-bottom: 56px; }
.how__header .section-sub { margin: 0 auto; }

.how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

/* Línea conectora */
.how__steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.66% + 12px);
  right: calc(16.66% + 12px);
  height: 2px;
  background: var(--green-light);
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 0 6px var(--bg-alt), 0 0 0 8px var(--green-light);
}

.step__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.step__text {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.65;
  max-width: 240px;
  margin: 0 auto;
}

/* ── CTA Final ─────────────────────────────────── */
.cta-final {
  padding: 52px 0;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  text-align: center;
}

.cta-final__title {
  font-size: 2.5rem;
  font-weight: 900;
  color: white;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.cta-final__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 36px;
  line-height: 1.6;
}

.btn--white {
  color: var(--green-dark);
  background: white;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.btn--white:hover { background: var(--green-xlight); }

.cta-final__note {
  font-size: 0.82rem;
  color: rgba(255,255,255,.6);
  margin-top: 14px;
}

/* ── Footer ────────────────────────────────────── */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__logo img { height: 30px; }

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__link {
  font-size: 0.85rem;
  color: var(--text-light);
  text-decoration: none;
  transition: color .2s;
}

.footer__link:hover { color: var(--text-dark); }

.footer__copy {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__title { font-size: 2.3rem; }

  .hero__visual {
    max-width: 440px;
    margin: 0 auto;
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .how__steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .how__steps::before { display: none; }

  .step__number {
    box-shadow: 0 0 0 6px var(--bg-alt), 0 0 0 8px var(--green-light);
  }
}

@media (max-width: 640px) {
  .hero { padding: 28px 0 32px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .hero__title { font-size: 1.85rem; }
  .hero__subtitle { font-size: 1rem; margin-bottom: 20px; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { text-align: center; justify-content: center; }
  .nav__inner { height: 56px; }
  .nav__links .nav__link { display: none; }
  .nav__links {
    gap: 6px;
  }
  .nav__links .btn {
    font-size: 0.82rem;
    padding: 8px 14px;
  }

  .dolores { padding: 28px 0 36px; }

  .dolor-card__solucion--cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .features { padding: 40px 0; }
  .features__header { margin-bottom: 36px; }
  .feature-card { padding: 24px; }
  .feature-card__icon { width: 44px; height: 44px; font-size: 1.3rem; }

  .section-title { font-size: 1.7rem; }
  .section-sub { font-size: 0.93rem; }

  .how { padding: 40px 0; }
  .how__header { margin-bottom: 40px; }

  .cta-final { padding: 40px 0; }
  .cta-final__title { font-size: 1.8rem; }

  .footer__inner { flex-direction: column; align-items: center; text-align: center; }
  .footer__links { justify-content: center; }
  .footer { padding: 24px 0; }

  .tipos__inner { gap: 8px; }
  .tipos__chip { font-size: 0.8rem; padding: 5px 12px; }
}

@media (max-width: 380px) {
  .hero__title { font-size: 1.65rem; }
  .container { padding: 0 16px; }
  .nav__links .btn--outline { display: none; }
}
