/* ================================================
   TomaPedidos Landing — Identidad Noravi
   ================================================ */

:root {
  --primary:       #ffa726;
  --primary-dark:  #f57c00;
  --primary-light: #fff8e1;
  --primary-xlt:   #fffbf0;

  --text:          #0f172a;
  --text-mid:      #334155;
  --text-light:    #64748b;
  --text-muted:    #94a3b8;

  --bg:            #ffffff;
  --bg-alt:        #f8fafc;
  --bg-dark:       #0f172a;

  --border:        #e2e8f0;
  --border-lt:     #f1f5f9;

  --r:             8px;
  --r-lg:          16px;

  --sh-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --sh:    0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -1px rgba(0,0,0,.05);
  --sh-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.04);
  --sh-xl: 0 20px 25px -5px rgba(0,0,0,.10), 0 10px 10px -5px rgba(0,0,0,.04);

  --font: -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mw: 1200px;
  --px: clamp(1rem, 5vw, 2rem);
  --t: 200ms cubic-bezier(.4,0,.2,1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
address { font-style: normal; }

/* ---- Container ---- */
.container { width: 100%; max-width: var(--mw); margin: 0 auto; padding: 0 var(--px); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .625rem 1.25rem; border-radius: var(--r);
  font-size: .9375rem; font-weight: 600; line-height: 1.4;
  white-space: nowrap; text-decoration: none;
  transition: background var(--t), color var(--t), border-color var(--t), box-shadow var(--t), transform var(--t);
}
.btn svg { width: 1.1em; height: 1.1em; flex-shrink: 0; }
.btn--lg { padding: .875rem 1.75rem; font-size: 1rem; }
.btn--block { display: flex; justify-content: center; }

.btn--primary { background: var(--primary); color: var(--text); }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--sh); }

.btn--secondary { background: transparent; color: var(--text); border: 2px solid var(--primary); }
.btn--secondary:hover { background: var(--primary-light); }

.btn--white { background: #fff; color: var(--text); }
.btn--white:hover { background: #f8fafc; transform: translateY(-1px); }

.btn--outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.btn--outline-white:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* ---- Google Play badge ---- */
.gplay-badge { display: inline-block; line-height: 0; transition: opacity var(--t), transform var(--t); }
.gplay-badge:hover { opacity: .88; transform: translateY(-1px); }
.gplay-badge img { display: block; width: auto; }

/* ---- Section commons ---- */
section { padding: 5rem 0; }

.section-label {
  display: inline-block; font-size: .8125rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--primary-dark); background: var(--primary-light);
  padding: .25rem .75rem; border-radius: 999px; margin-bottom: 1.25rem;
}
.section-label--dark { color: var(--primary); background: rgba(255,167,38,.15); }

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800; line-height: 1.2; letter-spacing: -.02em;
  margin-bottom: 1rem;
}
.section-title--light { color: #fff; }

.section-desc { font-size: 1.0625rem; color: var(--text-mid); max-width: 600px; margin-bottom: 3rem; }

.badge {
  display: inline-block; font-size: .8125rem; font-weight: 600;
  color: var(--primary-dark); background: var(--primary-light);
  padding: .375rem 1rem; border-radius: 999px; margin-bottom: 1.5rem;
}
.highlight { color: var(--primary); }

/* ---- Fade-in animation ---- */
.js-fade { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.js-fade.visible { opacity: 1; transform: none; }

/* ================================================
   HEADER
   ================================================ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-lt);
  transition: box-shadow var(--t);
}
.header.scrolled { box-shadow: var(--sh); }

.nav { display: flex; align-items: center; gap: 1.5rem; height: 64px; }

.nav__logo { display: flex; align-items: center; gap: .375rem; font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.nav__brand { color: var(--primary-dark); }
.nav__sep { color: var(--text-muted); font-weight: 300; }
.nav__product { color: var(--text); }

.nav__links { display: flex; gap: .125rem; margin-left: auto; }
.nav__links a { padding: .5rem .75rem; border-radius: var(--r); font-size: .9375rem; color: var(--text-mid); transition: color var(--t), background var(--t); }
.nav__links a:hover { color: var(--text); background: var(--bg-alt); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: .5rem; border-radius: var(--r); margin-left: auto; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--t), opacity var(--t); }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile { display: none; background: var(--bg); border-bottom: 1px solid var(--border); padding: 1rem var(--px) 1.5rem; }
.nav__mobile.open { display: block; }
.nav__mobile ul { display: flex; flex-direction: column; gap: .5rem; }
.nav__mobile a { display: block; padding: .625rem .75rem; border-radius: var(--r); font-size: 1rem; color: var(--text-mid); transition: color var(--t), background var(--t); }
.nav__mobile a:hover { color: var(--text); background: var(--bg-alt); }
.nav__mobile .btn { margin-top: .5rem; }

/* ================================================
   HERO
   ================================================ */
.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(155deg, var(--bg) 55%, var(--primary-xlt) 100%);
  overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

.hero__title { font-size: clamp(2rem, 4.5vw, 3.125rem); font-weight: 900; line-height: 1.1; letter-spacing: -.03em; margin-bottom: 1.25rem; }
.hero__desc { font-size: 1.125rem; color: var(--text-mid); line-height: 1.7; margin-bottom: 2rem; max-width: 500px; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.hero__meta { font-size: .875rem; color: var(--text-muted); }

/* Phone hero */
.hero__visual { display: flex; justify-content: center; }
.phone-hero { position: relative; display: inline-block; }
.phone-hero__frame {
  width: 260px;
  background: var(--bg-dark);
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 32px 64px rgba(15,23,42,.28), 0 0 0 1px rgba(255,255,255,.08);
  position: relative; z-index: 1;
}
.phone-hero__bar { width: 72px; height: 5px; background: rgba(255,255,255,.12); border-radius: 3px; margin: 0 auto 10px; }
.phone-hero__screen { border-radius: 26px; overflow: hidden; line-height: 0; }
.phone-hero__screen img { width: 100%; height: auto; }
.phone-hero__glow {
  position: absolute; bottom: -32px; left: 50%; transform: translateX(-50%);
  width: 180px; height: 80px;
  background: var(--primary); opacity: .2; filter: blur(36px); border-radius: 50%;
}

/* ================================================
   PROBLEMS
   ================================================ */
.problems { background: var(--bg-alt); }
.problems__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }

.problem-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.75rem; transition: box-shadow var(--t), transform var(--t); }
.problem-card:hover { box-shadow: var(--sh-lg); transform: translateY(-2px); }
.problem-card__icon { width: 48px; height: 48px; background: #fee2e2; border-radius: var(--r); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: #dc2626; }
.problem-card__icon svg { width: 22px; height: 22px; }
.problem-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.problem-card p { font-size: .9375rem; color: var(--text-mid); line-height: 1.6; }

/* ================================================
   FEATURES
   ================================================ */
.features__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; }

.feature-card { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.75rem; transition: box-shadow var(--t), transform var(--t), border-color var(--t); }
.feature-card:hover { box-shadow: var(--sh-lg); transform: translateY(-2px); border-color: var(--primary); }
.feature-card__icon { width: 48px; height: 48px; background: var(--primary-light); border-radius: var(--r); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: var(--primary-dark); }
.feature-card__icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.feature-card p { font-size: .9375rem; color: var(--text-mid); line-height: 1.6; }

/* ================================================
   OFFLINE
   ================================================ */
.offline { background: var(--bg-dark); color: #fff; }
.offline__inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: 5rem; align-items: center; }

/* Flow diagram */
.offline__flow { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.offline__node {
  display: flex; align-items: center; gap: 1rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg); padding: 1rem 1.25rem; width: 100%; max-width: 280px;
}
.offline__node--warn { border-color: rgba(239,68,68,.3); }
.offline__node--saved { background: rgba(255,167,38,.1); border-color: rgba(255,167,38,.3); }
.offline__node--sync { background: rgba(34,197,94,.08); border-color: rgba(34,197,94,.25); }

.offline__node-icon { width: 36px; height: 36px; background: rgba(255,255,255,.08); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.offline__node--warn .offline__node-icon { color: #fca5a5; }
.offline__node--saved .offline__node-icon { background: rgba(255,167,38,.15); color: var(--primary); }
.offline__node--sync .offline__node-icon { background: rgba(34,197,94,.12); color: #86efac; }
.offline__node-icon svg { width: 18px; height: 18px; }

.offline__node-text { display: flex; flex-direction: column; }
.offline__node-text strong { font-size: .9375rem; font-weight: 600; color: rgba(255,255,255,.9); }
.offline__node-text span { font-size: .8125rem; color: rgba(255,255,255,.5); }

.offline__connector { width: 2px; height: 24px; background: rgba(255,255,255,.12); margin-left: 30px; }

/* Offline text */
.offline__text .section-desc { color: rgba(255,255,255,.65); }
.offline__text p { font-size: .9375rem; color: rgba(255,255,255,.6); line-height: 1.75; margin-bottom: 1rem; }

.offline__checklist { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.75rem; }
.offline__checklist li { display: flex; align-items: center; gap: .625rem; font-size: .9375rem; font-weight: 500; color: rgba(255,255,255,.85); }
.offline__checklist svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }

/* ================================================
   HOW IT WORKS
   ================================================ */
.how { background: var(--bg-alt); }
.steps { display: flex; flex-direction: column; gap: 4rem; }

.step { display: grid; grid-template-columns: auto 1fr; gap: 3rem; align-items: center; }
.step:nth-child(even) { direction: rtl; }
.step:nth-child(even) > * { direction: ltr; }

.step__phone { display: flex; justify-content: center; }
.step__phone-frame {
  width: 180px;
  background: var(--bg-dark);
  border-radius: 28px;
  padding: 8px;
  box-shadow: var(--sh-xl);
}
.step__phone-frame img { border-radius: 22px; width: 100%; height: auto; }

.step__content { max-width: 480px; }
.step__num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: var(--text);
  font-size: 1.125rem; font-weight: 900;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 0 0 8px var(--primary-light);
}
.step__content h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .625rem; }
.step__content p { font-size: .9375rem; color: var(--text-mid); line-height: 1.7; }

/* ================================================
   BENEFITS
   ================================================ */
.benefits__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; }

.benefit { display: flex; gap: 1rem; padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--r-lg); transition: box-shadow var(--t), border-color var(--t); }
.benefit:hover { box-shadow: var(--sh); border-color: var(--primary); }
.benefit__icon { width: 44px; height: 44px; background: var(--primary-light); border-radius: var(--r); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--primary-dark); }
.benefit__icon svg { width: 20px; height: 20px; }
.benefit h3 { font-size: .9375rem; font-weight: 700; margin-bottom: .375rem; }
.benefit p { font-size: .9rem; color: var(--text-mid); line-height: 1.6; }

/* ================================================
   INDUSTRIES
   ================================================ */
.industries { background: var(--bg-alt); }
.industries__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; }

.industry-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.5rem; transition: box-shadow var(--t), transform var(--t), border-color var(--t); }
.industry-card:hover { box-shadow: var(--sh-lg); transform: translateY(-2px); border-color: var(--primary); }
.industry-card__icon { width: 44px; height: 44px; background: var(--primary-light); border-radius: var(--r); display: flex; align-items: center; justify-content: center; margin-bottom: .875rem; color: var(--primary-dark); }
.industry-card__icon svg { width: 20px; height: 20px; }
.industry-card h3 { font-size: .9375rem; font-weight: 700; margin-bottom: .375rem; }
.industry-card p { font-size: .875rem; color: var(--text-mid); line-height: 1.6; }

/* ================================================
   FAQ
   ================================================ */
.faq__list { max-width: 760px; display: flex; flex-direction: column; gap: .75rem; margin-bottom: 2rem; }

.faq__item { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: border-color var(--t); }
.faq__item[open] { border-color: var(--primary); }

.faq__q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; font-size: 1rem; font-weight: 600;
  color: var(--text); gap: 1rem; user-select: none;
}
.faq__q::after { content: '+'; font-size: 1.375rem; font-weight: 300; color: var(--text-muted); flex-shrink: 0; transition: transform var(--t); }
details[open] .faq__q::after { content: '−'; }

.faq__a { padding: 0 1.5rem 1.25rem; border-top: 1px solid var(--border-lt); }
.faq__a p { font-size: .9375rem; color: var(--text-mid); line-height: 1.7; padding-top: 1rem; }
.faq__a a { color: var(--primary-dark); text-decoration: underline; }

.faq__more { font-size: .9375rem; color: var(--text-mid); }
.faq__more a { color: var(--primary-dark); text-decoration: underline; }

/* ================================================
   CTA FINAL
   ================================================ */
.cta-final {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 5rem 0; text-align: center;
}
.cta-final__title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 900; color: #fff; margin-bottom: 1rem; letter-spacing: -.02em; }
.cta-final__desc { font-size: 1.0625rem; color: rgba(255,255,255,.85); margin-bottom: 2.5rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-final__actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.cta-final__email {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .9375rem; color: rgba(255,255,255,.7); transition: color var(--t);
}
.cta-final__email:hover { color: #fff; }

/* ================================================
   FOOTER
   ================================================ */
.footer { background: var(--bg-dark); color: rgba(255,255,255,.6); padding: 4rem 0 2rem; }

.footer__top { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 2rem; }

.footer__logo { display: inline-flex; align-items: center; gap: .375rem; font-weight: 700; font-size: 1.0625rem; margin-bottom: 1rem; }
.footer__logo-n { color: var(--primary); }
.footer__logo-s { color: rgba(255,255,255,.25); }
.footer__logo-p { color: rgba(255,255,255,.9); }

.footer__brand p { font-size: .875rem; line-height: 1.65; margin-bottom: .75rem; max-width: 300px; }
.footer__brand address { font-size: .8125rem; color: rgba(255,255,255,.35); }

.footer__nav { display: contents; }
.footer__col h4 { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.9); margin-bottom: 1rem; }
.footer__col ul { display: flex; flex-direction: column; gap: .625rem; }
.footer__col a { font-size: .875rem; color: rgba(255,255,255,.5); transition: color var(--t); }
.footer__col a:hover { color: rgba(255,255,255,.9); }

.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: .8125rem; }
.footer__bottom a { color: var(--primary); }
.footer__bottom a:hover { text-decoration: underline; }

/* ================================================
   WHATSAPP FAB
   ================================================ */
.wa-fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 56px; height: 56px;
  background: #25d366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 4px 16px rgba(37,211,102,.4);
  z-index: 50; transition: transform var(--t), box-shadow var(--t);
}
.wa-fab:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(37,211,102,.55); }
.wa-fab svg { width: 28px; height: 28px; }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .offline__inner { gap: 3rem; }
}

@media (max-width: 768px) {
  section { padding: 3.5rem 0; }

  /* Nav */
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }

  /* Hero */
  .hero { padding: 3rem 0 2.5rem; }
  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__visual { order: -1; }
  .phone-hero__frame { width: 200px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { justify-content: center; }

  /* Offline */
  .offline__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .offline__node { max-width: 100%; }

  /* Steps */
  .step { grid-template-columns: 1fr; gap: 1.5rem; direction: ltr !important; }
  .step__phone { order: -1; }
  .step__phone-frame { width: 140px; }

  /* Footer */
  .footer__top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; text-align: center; }

  /* CTA */
  .cta-final__actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .footer__top { grid-template-columns: 1fr; }
  .problems__grid,
  .features__grid,
  .benefits__grid,
  .industries__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .js-fade { opacity: 1; transform: none; }
}
