/* =========================================================================
   Aola Delivery — sitio público (aola.cl)
   Estático, sin build. Tokens de marca tomados de delivery/lib/core/ui/app_colors.dart
   ========================================================================= */

:root {
  --brand: #e64a33;
  --brand-dark: #c53c27;
  --brand-2: #ff6a3d;
  --brand-tint: #fdeee9;
  --salmon: #f0a58d;
  --ink: #222222;
  --ink-soft: #4c4c4c;
  --muted: #7a7a7a;
  --line: #e6e6e6;
  --bg: #ffffff;
  --bg-soft: #f7f5f4;
  --dark: #1f1b1a;
  --dark-2: #2a2422;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.28);
  --shadow-sm: 0 8px 20px -12px rgba(0, 0, 0, 0.25);
  --container: 1120px;
  --header-h: 74px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.4em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
}
h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
}
h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img,
svg {
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding-block: clamp(56px, 9vw, 104px);
}

.section--soft {
  background: var(--bg-soft);
}

.section__head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto clamp(36px, 6vw, 56px);
}

.section__head p {
  color: var(--muted);
  font-size: 1.02rem;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 0.8rem;
}

.section__head .eyebrow {
  display: block;
}

.underline-accent {
  position: relative;
  display: inline-block;
}
.underline-accent::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -12px;
  width: 46px;
  height: 3px;
  border-radius: 3px;
  background: var(--brand);
}

/* ---------- Botones ---------- */
.btn {
  --_bg: var(--brand);
  --_fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  border: 2px solid transparent;
  background: var(--_bg);
  color: var(--_fg);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    color 0.15s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.btn--outline {
  --_bg: transparent;
  --_fg: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.btn--outline-ink {
  --_bg: transparent;
  --_fg: var(--brand);
  border-color: var(--brand);
}
.btn--ghost-ink {
  --_bg: transparent;
  --_fg: var(--ink);
  border-color: var(--line);
}
.btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

/* ---------- Store badges ---------- */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 12px;
  background: #101010;
  color: #fff;
  min-width: 190px;
}
.store-badge:hover {
  text-decoration: none;
  background: #000;
}
.store-badge svg {
  width: 26px;
  height: 26px;
  flex: none;
}
.store-badge__label {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.store-badge__label small {
  font-size: 0.66rem;
  opacity: 0.8;
}
.store-badge__label strong {
  font-size: 1rem;
  font-weight: 600;
}
.store-badge--light {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.store-badge--light:hover {
  background: #fff;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 50;
  display: flex;
  align-items: center;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header__logo {
  display: flex;
  align-items: center;
}
.site-header__logo img {
  height: 34px;
  width: auto;
  display: block;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.92;
}
.nav__links a:hover {
  opacity: 1;
  text-decoration: none;
}
.nav__social {
  display: flex;
  gap: 14px;
}
.nav__social a {
  color: #fff;
  display: grid;
  place-items: center;
  opacity: 0.9;
}
.nav__social a:hover {
  opacity: 1;
}
.nav__social svg {
  width: 17px;
  height: 17px;
}

.is-scrolled .nav__links a,
.is-scrolled .nav__social a {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  margin-inline: auto;
}
.nav-toggle span::before {
  transform: translateY(-7px);
}
.nav-toggle span::after {
  transform: translateY(5px);
}
.is-scrolled .nav-toggle span,
.is-scrolled .nav-toggle span::before,
.is-scrolled .nav-toggle span::after {
  background: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(40px, 8vw, 90px));
  padding-bottom: clamp(60px, 10vw, 120px);
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.hero::before {
  width: 460px;
  height: 460px;
  top: -180px;
  right: -120px;
}
.hero::after {
  width: 320px;
  height: 320px;
  bottom: -160px;
  left: -100px;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.85;
}
.hero h1 {
  color: #fff;
  margin: 0.3em 0 0.35em;
}
.hero__lead {
  font-size: 1.1rem;
  opacity: 0.94;
  max-width: 30ch;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* Mockup de teléfono en CSS */
.phone {
  position: relative;
  width: min(280px, 78vw);
  margin-inline: auto;
  aspect-ratio: 9 / 18.5;
  background: #12100f;
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.5),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06);
  transform: rotate(6deg);
}
.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #fff 58%, var(--brand-tint) 100%);
  display: flex;
  flex-direction: column;
}
.phone__shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
.phone__notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 16px;
  background: #12100f;
  border-radius: 0 0 12px 12px;
  z-index: 2;
}
.phone__top {
  background: var(--brand);
  color: #fff;
  padding: 30px 16px 16px;
}
.phone__top small {
  opacity: 0.85;
  font-size: 0.62rem;
}
.phone__top strong {
  display: block;
  font-size: 0.95rem;
}
.phone__search {
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  height: 26px;
}
.phone__list {
  padding: 12px;
  display: grid;
  gap: 10px;
}
.phone__card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
}
.phone__thumb {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--salmon), var(--brand-2));
}
.phone__lines {
  display: grid;
  gap: 5px;
}
.phone__lines i {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: #ececec;
}
.phone__lines i:first-child {
  width: 80%;
  background: #d9d9d9;
}
.phone__lines i:last-child {
  width: 45%;
}

/* ---------- Barra de descarga ---------- */
.downloadbar {
  background: var(--dark);
  color: #fff;
  padding-block: 30px;
}
.downloadbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.downloadbar p {
  margin: 0;
  font-size: 0.98rem;
}
.downloadbar strong {
  color: #fff;
}

/* ---------- Cómo funciona ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: center;
}
.step__icon {
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--brand);
  border: 2px solid var(--brand-tint);
  background: var(--brand-tint);
}
.step__icon svg {
  width: 40px;
  height: 40px;
}
.step h3 {
  color: var(--ink);
}
.how__layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}
.how__phone {
  display: flex;
  justify-content: center;
}
.how__phone .phone {
  transform: rotate(-5deg);
}

/* ---------- Métricas ---------- */
.metrics {
  background: var(--dark);
  color: #fff;
  padding-block: clamp(48px, 7vw, 76px);
}
.metrics__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: center;
}
.metric__num {
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 700;
  color: #fff;
}
.metric__label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  opacity: 0.75;
}

/* ---------- Beneficios ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 44px;
  max-width: 900px;
  margin-inline: auto;
}
.feature {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
}
.feature__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--brand-tint);
  color: var(--brand);
}
.feature__icon svg {
  width: 26px;
  height: 26px;
}
.feature h3 {
  margin-bottom: 0.3em;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Split (recomendar / negocio) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split--reverse .split__media {
  order: 2;
}
.split__media {
  display: flex;
  justify-content: center;
}
.split__card {
  width: min(360px, 80vw);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: linear-gradient(150deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: var(--shadow);
}
.split__card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
.split__card li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
}
.split__card li svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
}
.split__body h2 {
  margin-bottom: 0.5em;
}
.split__body p {
  color: var(--muted);
}
.split__body .btn {
  margin-top: 10px;
}

/* ---------- Testimonios ---------- */
.testimonials {
  background: var(--dark);
  color: #fff;
  position: relative;
}
.testimonials h2 {
  color: #fff;
}
.slider {
  position: relative;
  overflow: hidden;
}
.slider__track {
  display: flex;
  transition: transform 0.45s ease;
}
.slide {
  min-width: 100%;
  padding: 8px;
}
.slide__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.quote {
  background: var(--dark-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 24px;
}
.quote__stars {
  color: #ffc043;
  letter-spacing: 2px;
  font-size: 0.9rem;
}
.quote__name {
  font-weight: 600;
  color: #fff;
  margin: 6px 0 8px;
}
.quote p {
  margin: 0;
  font-size: 0.92rem;
  opacity: 0.85;
}
.slider__dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}
.slider__dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 0;
}
.slider__dots button[aria-current="true"] {
  background: var(--brand-2);
  width: 22px;
  border-radius: 5px;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 760px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--brand);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details > div {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- CTA final ---------- */
.cta-final {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  text-align: center;
}
.cta-final h2 {
  color: #fff;
}
.cta-final p {
  opacity: 0.94;
  max-width: 46ch;
  margin-inline: auto;
}
.cta-final .stores {
  justify-content: center;
  margin-top: 26px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.72);
  padding-block: clamp(48px, 7vw, 72px) 28px;
  font-size: 0.9rem;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.8);
}
.site-footer a:hover {
  color: #fff;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer__logo img {
  height: 32px;
  margin-bottom: 14px;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.site-footer__social {
  display: flex;
  gap: 14px;
  margin-top: 14px;
}
.site-footer__social a {
  display: grid;
  place-items: center;
}
.site-footer__social svg {
  width: 18px;
  height: 18px;
}
.site-footer__bottom {
  padding-top: 22px;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.7;
}

/* ---------- Página legal ---------- */
.legal {
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 80px;
}
.legal__inner {
  max-width: 760px;
  margin-inline: auto;
}
.legal h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}
.legal__meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}
.legal h2 {
  margin-top: 2.4rem;
  font-size: 1.3rem;
  padding-bottom: 0.3em;
  border-bottom: 2px solid var(--brand-tint);
}
.legal h3 {
  margin-top: 1.8rem;
  font-size: 1.05rem;
  color: var(--ink);
}
.legal p,
.legal li {
  font-size: 0.96rem;
}
.legal ul,
.legal ol {
  padding-left: 1.3rem;
}
.legal li {
  margin-bottom: 0.5rem;
}
.legal__contact {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 1.5rem 0;
}
.legal__contact p {
  margin: 0.2rem 0;
}
.legal .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2rem;
  font-weight: 600;
}

/* header sólido en páginas internas */
.site-header--solid {
  position: sticky;
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
}
.site-header--solid .nav__links a,
.site-header--solid .nav__social a {
  color: var(--ink);
}
.site-header--solid .nav-toggle span,
.site-header--solid .nav-toggle span::before,
.site-header--solid .nav-toggle span::after {
  background: var(--ink);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid,
  .how__layout,
  .split,
  .features {
    grid-template-columns: 1fr;
  }
  .hero__phone {
    display: none;
  }
  .split--reverse .split__media {
    order: 0;
  }
  .slide__grid {
    grid-template-columns: 1fr;
  }
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav__links,
  .nav__social {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .nav.is-open {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 18px 20px 24px;
  }
  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
  }
  .nav.is-open .nav__links a {
    color: var(--ink);
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav__social {
    display: flex;
    margin-top: 16px;
  }
  .nav.is-open .nav__social a {
    color: var(--ink);
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .metrics__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .downloadbar .container {
    justify-content: center;
    text-align: center;
  }
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .slider__track {
    transition: none;
  }
  .btn:hover {
    transform: none;
  }
}
