/* ============================================================
   Lili's Delivery — Landing Page
   Sistema: panal de hexágonos (colmena) + mascota Tiny
   ============================================================ */

:root {
  --purple:       #7209B7;
  --purple-dark:  #5A0892;
  --purple-deep:  #2E0053;
  --purple-deep-2:#210040;
  --gold:         #F5C200;
  --gold-dark:    #C99A00;
  --honey:        #FFF8E7;
  --ink:          #241033;
  --ink-soft:     #5B4A6B;
  --white:        #FFFFFF;

  --font-display: 'Fredoka', system-ui, sans-serif;
  --font-body:    'Manrope', system-ui, sans-serif;

  --container: 1180px;
  --radius-lg: 28px;
  --radius-md: 18px;

  --ease: cubic-bezier(.22,.8,.32,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 .5em;
  color: var(--ink);
}

h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.3rem; }

p { line-height: 1.6; color: var(--ink-soft); margin: 0 0 1em; }

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

.sr-only, .sr-only-img {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--gold); color: var(--purple-deep);
  padding: 10px 16px; border-radius: 0 0 10px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.section-inner, .nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 .9em;
}
.eyebrow-light { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  padding: 15px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: .88rem; }
.btn-lg { padding: 17px 32px; font-size: 1.05rem; }

.btn-gold { background: var(--gold); color: var(--purple-deep); box-shadow: 0 10px 24px -8px rgba(245,194,0,.55); }
.btn-gold:hover { background: var(--gold-dark); }

.btn-purple { background: var(--purple); color: var(--white); box-shadow: 0 10px 24px -8px rgba(114,9,183,.45); }
.btn-purple:hover { background: var(--purple-dark); }

.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 18px 0;
  transition: background .3s var(--ease), padding .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(46,0,83,.92);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 8px 30px -12px rgba(0,0,0,.4);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo-mark { width: 30px; height: 30px; object-fit: contain; }
.nav-logo-text { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--white); }
.nav-logo-text em { font-style: normal; color: var(--gold); }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: rgba(255,255,255,.85); font-weight: 700; font-size: .95rem;
  padding: 6px 2px; border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.nav-links a:hover { color: var(--gold); border-color: var(--gold); }
.nav-links-cta { display: none; }

.nav-actions { display: flex; align-items: center; gap: 16px; }

.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer;
}
.nav-burger span { display: block; width: 22px; height: 2.5px; background: var(--white); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   HEX BACKGROUND FIELD (signature motif)
   ============================================================ */
.hex-field {
  position: absolute; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='97' viewBox='0 0 84 97'%3E%3Cpath d='M42 0 L84 24.25 V72.75 L42 97 L0 72.75 V24.25 Z' fill='none' stroke='%23F5C200' stroke-opacity='0.14' stroke-width='1.4'/%3E%3C/svg%3E");
  background-size: 84px 97px;
  animation: hexDrift 60s linear infinite;
  opacity: .8;
}
.hex-field-dark { opacity: .5; }
@keyframes hexDrift {
  from { background-position: 0 0; }
  to   { background-position: 420px 485px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 140px 0 90px;
  background: radial-gradient(120% 100% at 85% 15%, var(--purple) 0%, var(--purple-dark) 42%, var(--purple-deep) 78%);
  overflow: hidden;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--container); margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
}

.hero-title {
  font-size: clamp(2.6rem, 5.4vw, 4.1rem);
  color: var(--white);
  margin-bottom: .4em;
}
.hero-title span { color: var(--gold); }
.hero-sub {
  color: rgba(255,255,255,.82); font-size: 1.15rem; max-width: 46ch; margin-bottom: 1.8em;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-art { position: relative; height: 440px; }
.hero-hex-frame {
  position: absolute; inset: 0; margin: auto; width: 360px; height: 360px;
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0% 50%);
  background: linear-gradient(155deg, var(--gold) 0%, #ffdf6b 100%);
  display: flex; align-items: center; justify-content: center;
  animation: floatY 6s ease-in-out infinite;
}
.hero-mascot { width: 72%; filter: drop-shadow(0 20px 30px rgba(0,0,0,.25)); }

@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

.chip {
  position: absolute; width: 56px; height: 56px; border-radius: 16px;
  background: rgba(255,255,255,.12); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.3rem;
  animation: floatY 5s ease-in-out infinite;
}
.chip-1 { top: 4%;  left: 2%;  animation-delay: .2s; }
.chip-2 { top: 12%; right: 0;  animation-delay: 1.1s; }
.chip-3 { bottom: 10%; left: -4%; animation-delay: .6s; }
.chip-4 { bottom: 0%; right: 8%; animation-delay: 1.6s; }

.route-line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.route-line path { fill: none; stroke: rgba(245,194,0,.55); stroke-width: 2; stroke-dasharray: 6 8; stroke-linecap: round; }

.route-pin {
  position: absolute; top: 26%; right: -2%;
  display: flex; align-items: center; gap: 6px;
  background: var(--white); color: var(--purple-deep);
  font-weight: 800; font-size: .78rem;
  padding: 7px 12px 7px 8px; border-radius: 999px;
  box-shadow: 0 10px 22px -8px rgba(0,0,0,.35);
}
.route-pin i { color: var(--purple); }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  background: var(--gold);
  overflow: hidden;
  padding: 16px 0;
  transform: skewY(-1.4deg);
  margin: -28px 0 0;
  position: relative; z-index: 2;
}
.marquee-track {
  display: flex; align-items: center; gap: 22px; width: max-content;
  animation: scrollX 26s linear infinite;
  transform: skewY(1.4deg);
}
.marquee-track span {
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
  color: var(--purple-deep); white-space: nowrap;
}
.marquee-track i { color: var(--purple); font-size: .55rem; }
@keyframes scrollX { from { transform: translateX(0) skewY(1.4deg); } to { transform: translateX(-50%) skewY(1.4deg); } }

/* ============================================================
   SECTIONS (generic)
   ============================================================ */
.section { padding: 120px 0; }
.section-honey { background: var(--honey); }
.section-lilac { background: #F7EFFF; }
.section-head { max-width: 640px; margin: 0 0 64px; }
.section-head h2 { color: var(--purple-deep); }

/* ============================================================
   ZONAS — zonas activas y comercios
   ============================================================ */
.zone-pills { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }
.zone-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 2px solid rgba(114,9,183,.18);
  background: var(--white); color: var(--purple); font-family: var(--font-body);
  font-weight: 700; font-size: .92rem; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.zone-pill i { color: var(--gold-dark); }
.zone-pill:hover { border-color: var(--purple); }
.zone-pill.is-active { background: var(--purple); color: var(--white); border-color: var(--purple); }
.zone-pill.is-active i { color: var(--gold); }

.zone-panel { display: none; }
.zone-panel.is-active { display: block; }

.zone-single-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 800; font-size: .85rem;
  letter-spacing: .04em; color: var(--purple);
  background: rgba(114,9,183,.08); border-radius: 999px;
  padding: 9px 18px; margin-bottom: 36px;
}
.zone-single-label i { color: var(--gold-dark); }

.biz-carousel { overflow: hidden; }
.biz-carousel-track {
  display: flex;
  transition: transform .45s var(--ease);
}
.biz-carousel-slide { flex: 0 0 100%; min-width: 0; }

.biz-carousel-nav {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin-top: 36px;
}
.biz-carousel-btn {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--white); border: 2px solid rgba(114,9,183,.18); color: var(--purple);
  display: flex; align-items: center; justify-content: center; font-size: .95rem; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, opacity .2s;
}
.biz-carousel-btn:hover:not(:disabled) { background: var(--purple); color: var(--white); border-color: var(--purple); }
.biz-carousel-btn:disabled { opacity: .35; cursor: default; }

.biz-carousel-dots { display: flex; align-items: center; gap: 9px; }
.biz-carousel-dot {
  width: 9px; height: 9px; border-radius: 50%; padding: 0;
  background: rgba(114,9,183,.22); border: none; cursor: pointer;
  transition: background .2s, transform .2s;
}
.biz-carousel-dot.is-active { background: var(--purple); transform: scale(1.3); }

.zone-count { margin: 20px 0 0; font-size: .88rem; color: var(--ink-soft); text-align: center; }

.biz-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px 20px;
}
.biz-card { text-align: center; min-width: 0; }
.biz-card-logo {
  aspect-ratio: 1 / 1; border-radius: var(--radius-md); overflow: hidden;
  background: var(--white); border: 1px solid rgba(114,9,183,.12);
  box-shadow: 0 12px 24px -14px rgba(46,0,83,.25);
  margin-bottom: 12px; transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.biz-card:hover .biz-card-logo { transform: translateY(-4px); box-shadow: 0 16px 30px -14px rgba(46,0,83,.35); }
.biz-card-logo img { width: 100%; height: 100%; object-fit: cover; }
.biz-card-name {
  font-family: var(--font-body); font-weight: 800; font-size: .85rem; color: var(--ink);
  margin: 0 0 .2em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.biz-card-category { font-size: .74rem; color: var(--ink-soft); margin: 0; text-transform: capitalize; }

.zone-empty {
  text-align: center; padding: 50px 20px; background: var(--white);
  border-radius: var(--radius-lg); border: 1px dashed rgba(114,9,183,.25);
}
.zone-empty-mascot { width: 76px; margin: 0 auto 16px; }
.zone-empty p { margin: 0; font-weight: 700; color: var(--purple-deep); }

/* ============================================================
   HIVE — category cards
   ============================================================ */
.hive {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 28px 20px;
}
.hex-card { text-align: center; padding: 0 6px; }
.hex-card-offset { margin-top: 46px; }
.hex-card-shape {
  width: 132px; height: 152px; margin: 0 auto 22px;
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0% 50%);
  background: linear-gradient(155deg, var(--purple) 0%, var(--purple-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s var(--ease);
}
.hex-card:hover .hex-card-shape { transform: translateY(-8px) rotate(-3deg); }
.hex-card-icon { color: var(--gold); font-size: 2.1rem; }
.hex-card h3 { color: var(--purple-deep); font-size: 1.15rem; margin-bottom: .35em; }
.hex-card p { font-size: .92rem; max-width: 24ch; margin: 0 auto; }

/* ============================================================
   STEPS — cómo funciona
   ============================================================ */
.steps {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
}
.step { position: relative; z-index: 1; padding-left: 4px; }
.step-hex {
  width: 60px; height: 68px; margin-bottom: 22px;
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0% 50%);
  background: var(--purple-deep);
  color: var(--gold); font-family: var(--font-display); font-weight: 600; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { color: var(--purple-deep); }
.step p { font-size: .95rem; }

/* ============================================================
   TRACKING CALLOUT
   ============================================================ */
.tracking {
  position: relative;
  background: linear-gradient(160deg, var(--purple-deep) 0%, var(--purple-deep-2) 100%);
  padding: 110px 0;
  overflow: hidden;
}
.tracking-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.tracking h2 { color: var(--white); }
.tracking-sub { color: rgba(255,255,255,.75); font-size: 1.05rem; max-width: 42ch; }

.tracking-art { display: flex; justify-content: center; }
.tracking-map {
  position: relative; width: 300px; height: 300px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: 32px;
}
.tracking-route { position: absolute; inset: 0; width: 100%; height: 100%; }
.tracking-route path { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-dasharray: 5 9; stroke-linecap: round; }
.tracking-dot {
  position: absolute; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.dot-start { top: 216px; left: 20px; background: var(--white); color: var(--purple-deep); }
.dot-end   { top: 32px; right: 26px; background: var(--white); color: var(--purple-deep); }
.dot-moving {
  top: 118px; left: 118px; background: var(--gold); color: var(--purple-deep);
  box-shadow: 0 0 0 8px rgba(245,194,0,.18);
  animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot { 0%,100% { box-shadow: 0 0 0 8px rgba(245,194,0,.18); } 50% { box-shadow: 0 0 0 14px rgba(245,194,0,.05); } }

/* ============================================================
   SPLIT — negocios / repartidores
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split-half { padding: 90px 48px; display: flex; }
.split-content { max-width: 420px; margin: 0 auto; }
.split-gold { background: var(--gold); }
.split-gold h3 { color: var(--purple-deep); }
.split-gold p { color: rgba(46,0,83,.72); }
.split-purple { background: var(--purple-deep); }
.split-purple h3 { color: var(--white); }
.split-purple p { color: rgba(255,255,255,.72); }

/* ============================================================
   DOWNLOAD
   ============================================================ */
.download {
  text-align: center;
  padding: 130px 0;
  background: radial-gradient(90% 120% at 50% 0%, var(--purple) 0%, var(--purple-deep) 70%);
  position: relative;
}
.download-inner { max-width: 560px; margin: 0 auto; padding: 0 24px; }
.download-mascot { width: 110px; margin: 0 auto 20px; }
.download h2 { color: var(--white); }
.download-sub { color: rgba(255,255,255,.78); }

.store-badges { display: flex; gap: 16px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.store-badge {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid rgba(255,255,255,.25); border-radius: 14px;
  padding: 10px 18px; color: var(--white);
  transition: border-color .2s, transform .2s, background .2s;
}
.store-badge:hover { border-color: var(--gold); background: rgba(255,255,255,.06); transform: translateY(-2px); }
.store-badge i { font-size: 1.6rem; }
.store-badge small { display: block; font-size: .65rem; opacity: .7; font-weight: 500; }
.store-badge span { font-family: var(--font-display); font-weight: 600; font-size: .92rem; text-align: left; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--purple-deep-2); padding: 70px 0 0; }
.footer-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
}
.footer-logo-lockup { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo { width: 32px; }
.footer-logo-text { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--white); }
.footer-logo-text em { font-style: normal; color: var(--gold); }
.footer-brand p { color: rgba(255,255,255,.55); font-size: .9rem; max-width: 28ch; }
.footer-social { display: flex; gap: 12px; margin-top: 14px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; color: var(--white);
  transition: background .2s, color .2s;
}
.footer-social a:hover { background: var(--gold); color: var(--purple-deep); }

.footer-col h4 { font-family: var(--font-body); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,.65); font-size: .92rem; margin-bottom: 12px; transition: color .2s; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  margin-top: 60px; padding: 22px 32px; text-align: center;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-bottom p { color: rgba(255,255,255,.45); font-size: .82rem; margin: 0; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-art { height: 340px; margin-top: 20px; }
  .hero-hex-frame { width: 280px; height: 280px; }

  .tracking-inner { grid-template-columns: 1fr; text-align: center; }
  .tracking-sub { margin-left: auto; margin-right: auto; }
  .tracking-art { margin-top: 20px; }

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

  .footer-inner { grid-template-columns: 1fr 1fr; }

  .biz-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav.is-menu-open .nav-links {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--purple-deep); padding: 18px 32px 26px;
  }
  .nav.is-menu-open .nav-links a { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav.is-menu-open .nav-links-cta { color: var(--gold); border-bottom-color: transparent; }

  .nav-actions .btn { display: none; }

  .hive { grid-template-columns: repeat(2, 1fr); }
  .hex-card-offset { margin-top: 0; }

  .steps { grid-template-columns: 1fr; gap: 32px; }

  .biz-grid { grid-template-columns: repeat(3, 1fr); }

  .section { padding: 80px 0; }
}

@media (max-width: 560px) {
  .hive { grid-template-columns: 1fr 1fr; gap: 22px 14px; }
  .hex-card-shape { width: 108px; height: 124px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .chip { width: 46px; height: 46px; font-size: 1.05rem; }
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hex-field, .hero-hex-frame, .chip, .marquee-track, .dot-moving { animation: none !important; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
