/* ---------- Reset & base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #0b0e1a;
  --ink-soft: #565b72;
  --bg: #ffffff;
  --bg-alt: #f7f6fd;
  --line: #e8e6f7;
  --brand-light: #cbb1f6;
  --brand: #7b57f0;
  --brand-dark: #4b2fe8;
  --brand-soft: #efe9fd;
  --accent: #4b2fe8;
  --dark: #0b0e1a;
  --dark-card: #171a2c;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 40px -20px rgba(11, 14, 26, 0.3);
  --container: 1140px;
  font-size: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  box-shadow: 0 12px 24px -10px rgba(75, 47, 232, 0.55);
}
.btn--primary:hover { filter: brightness(1.06); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn--light {
  background: #fff;
  color: var(--dark);
}
.btn--light:hover { background: var(--brand-soft); }

.btn--sm { padding: 10px 20px; font-size: 0.875rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo__mark {
  width: 22px;
  height: auto;
}
.logo__word { line-height: 1; }

.nav__links {
  display: flex;
  gap: 32px;
}
.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .15s ease;
}
.nav__links a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 72px;
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--brand-soft), transparent 60%),
    var(--bg);
}

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

.badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.hero__stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero__stats strong {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero__stats span {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ---------- Phone mock ---------- */
.hero__visual { display: flex; justify-content: center; }

.phone-mock {
  width: 300px;
  height: 400px;
  background: var(--dark);
  border-radius: 32px;
  padding: 14px;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.phone-mock__screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #f2f4ff 0%, #ffffff 60%);
  border-radius: 22px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.pm-card {
  width: 100%;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 18px;
  box-shadow: 0 16px 30px -14px rgba(16,19,26,0.25);
}
.pm-card__top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.pm-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-dark);
  box-shadow: 0 0 0 4px rgba(75,47,232,0.15);
}
.pm-status { font-size: 0.72rem; font-weight: 600; color: var(--ink-soft); }
.pm-card__store { font-weight: 800; font-size: 1.1rem; margin-bottom: 2px; }
.pm-card__eta { font-size: 0.85rem; color: var(--brand-dark); font-weight: 600; margin-bottom: 12px; }
.pm-progress {
  height: 6px;
  background: var(--bg-alt);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}
.pm-progress span {
  display: block;
  height: 100%;
  width: 65%;
  background: linear-gradient(90deg, var(--brand-light), var(--brand-dark));
  border-radius: 999px;
}
.pm-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.pm-card__note {
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* ---------- Rubros grid ---------- */
.rubros-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}
.rubro {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  transition: transform .15s ease, border-color .15s ease;
}
.rubro:hover { transform: translateY(-2px); border-color: var(--brand); }

.section--tight { padding: 72px 0; }
.section__lead {
  color: var(--ink-soft);
  font-size: 1.02rem;
  margin-top: 14px;
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--dark { background: var(--dark); color: #fff; }
.section--dark .split__text h2 { color: #fff; }

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.eyebrow--light { color: var(--brand-light); }

.section__head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.02em;
  font-weight: 800;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--line);
}
.step__num {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 14px;
}
.step h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.step p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }

.split__text h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 24px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 16px;
  color: var(--ink-soft);
  font-size: 1rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 2px var(--brand);
}
.check-list--light li { color: #c7cad6; }
.check-list--light li::before {
  background: rgba(203,177,246,0.18);
  box-shadow: inset 0 0 0 2px var(--brand-light);
}

.split__text .btn { margin-top: 8px; }

/* card stack visual */
.card-stack {
  position: relative;
  height: 320px;
}
.mini-card {
  position: absolute;
  width: 260px;
  padding: 22px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.mini-card__label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.mini-card p { font-weight: 600; font-size: 1rem; }
.mini-card--1 { top: 0; left: 10%; transform: rotate(-4deg); z-index: 2; }
.mini-card--2 { bottom: 0; right: 5%; transform: rotate(3deg); }
.mini-card--2 .mini-card__label { color: var(--brand-dark); background: var(--brand-soft); }

/* stat card (dark section visual) */
.stat-card {
  background: var(--dark-card);
  border: 1px solid #262a38;
  border-radius: var(--radius);
  padding: 28px;
}
.stat-card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid #262a38;
  color: #c7cad6;
  font-size: 0.9rem;
}
.stat-card__row:last-of-type { border-bottom: none; }
.stat-card__row strong { color: #fff; font-size: 1.2rem; }
.stat-card__bar {
  margin-top: 18px;
  height: 8px;
  background: #262a38;
  border-radius: 999px;
  overflow: hidden;
}
.stat-card__bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-light), var(--brand-dark));
  border-radius: 999px;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq__item {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}
.faq__item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq__item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--brand);
  font-weight: 400;
  margin-left: 12px;
}
.faq__item[open] summary::after { content: "–"; }
.faq__item p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- CTA ---------- */
.cta {
  padding: 96px 0;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  text-align: center;
}
.cta h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.cta p { color: rgba(255,255,255,0.85); margin-bottom: 32px; }

.cta__form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 560px;
  margin: 0 auto;
}
.cta__form input,
.cta__form select {
  padding: 14px 18px;
  border-radius: 999px;
  border: none;
  font-size: 0.95rem;
  font-family: inherit;
  min-width: 180px;
}
.cta__form input { flex: 1; min-width: 220px; }
.cta__form .btn { border: 2px solid #fff; }

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: #8b8fa3;
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.logo--footer { color: #fff; }
.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__links a { font-size: 0.85rem; }
.footer__links a:hover { color: #fff; }
.footer__copy { font-size: 0.8rem; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero__inner, .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse { direction: ltr; }
  .hero__visual { order: -1; }
  .steps { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .rubros-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .hero { padding: 56px 0 48px; }
  .section { padding: 64px 0; }
  .section--tight { padding: 48px 0; }
  .hero__stats { gap: 24px; }
  .cta__form { flex-direction: column; align-items: stretch; }
  .rubros-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .rubro { font-size: 0.82rem; padding: 12px 14px; }
}

/* ---------- Zyggo image system ---------- */
.hero__visual {
  position: relative;
  min-height: 430px;
  align-items: center;
}
.hero__image {
  width: min(720px, 125%);
  max-width: none;
  border-radius: 28px;
  box-shadow: 0 30px 70px -28px rgba(75, 47, 232, 0.38);
  transform: translateX(-2%);
}

.neighborhood-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 22px;
  margin: -12px auto 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.step {
  overflow: hidden;
  padding-top: 0;
}
.step__image {
  width: calc(100% + 56px);
  max-width: none;
  height: 170px;
  margin: 0 -28px 24px;
  object-fit: cover;
}

.delivery-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.delivery-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.delivery-card--wide { grid-column: 1 / -1; }
.delivery-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.delivery-card--wide img { height: 135px; }
.delivery-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 15px 18px 18px;
}
.delivery-card figcaption strong { color: var(--brand-dark); }
.delivery-card figcaption span { color: var(--ink-soft); font-size: .84rem; }

.merchant-visual {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 350px;
  background: var(--dark-card);
  border: 1px solid #262a38;
}
.merchant-visual img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}
.merchant-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11,14,26,.9));
}
.merchant-badge {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 2;
  display: flex;
  flex-direction: column;
}
.merchant-badge strong { color: #fff; font-size: 1.25rem; }
.merchant-badge span { color: #c7cad6; }

.cta {
  position: relative;
  overflow: hidden;
}
.cta::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 36%;
  height: 100%;
  background: url('assets/cta-familia.png') right bottom / cover no-repeat;
  opacity: .25;
  mix-blend-mode: screen;
}
.cta__inner { position: relative; z-index: 1; }

@media (max-width: 920px) {
  .hero__visual { min-height: auto; order: 0; }
  .hero__image { width: 100%; max-width: 760px; transform: none; }
  .neighborhood-image { height: 180px; }
  .merchant-visual, .merchant-visual img { min-height: 320px; height: 320px; }
}

@media (max-width: 560px) {
  .hero__image { border-radius: 18px; }
  .neighborhood-image { height: 150px; border-radius: 16px; }
  .step__image { height: 155px; }
  .delivery-gallery { grid-template-columns: 1fr; }
  .delivery-card--wide { grid-column: auto; }
  .delivery-card img, .delivery-card--wide img { height: 155px; }
  .cta::after { width: 70%; opacity: .16; }
}
