/* =============================================================================
   TuMenú — Sitio de empresa (apex). Diseño independiente de la PWA.
   Self-contained: system fonts, sin CDNs (CSP: script-src 'self', img-src 'self').
   Para cambiar la marca: edita --brand / --brand-2 y el texto "TuMenú" en el HTML.
   ============================================================================= */
:root {
  --brand: #ff6b35;
  --brand-2: #ff9e2c;
  --brand-ink: #7a2e0e;
  --ink: #141420;
  --body: #3c4257;
  --muted: #6b7280;
  --line: #eceef2;
  --bg: #ffffff;
  --bg-alt: #f7f8fb;
  --dark: #15161c;
  --radius: 16px;
  --shadow-sm: 0 2px 8px rgba(20, 20, 32, .06);
  --shadow: 0 12px 34px rgba(20, 20, 32, .10);
  --shadow-lg: 0 30px 70px rgba(20, 20, 32, .18);
  --max: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--body); background: var(--bg); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; }
a { color: inherit; }
img { max-width: 100%; }

/* ---- Botones --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 12px; font-weight: 700; font-size: 15px;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 10px; }
.btn.full { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 10px 24px rgba(255, 107, 53, .32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(255, 107, 53, .40); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: var(--brand); }

/* ---- Header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { font-weight: 900; font-size: 21px; letter-spacing: -.03em; color: var(--ink); text-decoration: none; }
.logo span { color: var(--brand); }
.logo.light { color: #fff; }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--body); text-decoration: none; font-weight: 600; font-size: 15px; position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--brand); transition: width .2s ease; }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---- Hero ------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; padding: 72px 0 90px; background: radial-gradient(1200px 500px at 85% -10%, #fff3ec 0%, rgba(255,243,236,0) 60%), linear-gradient(180deg, #fffaf7, #fff); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.pill { display: inline-block; background: #fff; border: 1px solid var(--line); color: var(--brand-ink); font-weight: 700; font-size: 13px; padding: 7px 14px; border-radius: 999px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.hero h1 { font-size: 54px; font-weight: 900; margin-bottom: 18px; }
.grad { background: linear-gradient(120deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--muted); max-width: 540px; margin-bottom: 28px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-check { list-style: none; display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; font-weight: 600; color: var(--body); }
.hero-check.light { color: rgba(255,255,255,.92); }

/* Mockup: teléfono + tarjetas flotantes, todo en CSS */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone { position: relative; width: 290px; background: #0f1115; border-radius: 40px; padding: 12px; box-shadow: var(--shadow-lg); }
.phone-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 120px; height: 22px; background: #0f1115; border-radius: 0 0 16px 16px; z-index: 2; }
.phone-screen { background: linear-gradient(180deg, #1f232d, #15181f); border-radius: 30px; padding: 30px 18px 18px; color: #f5f5f7; }
.m-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.m-logo { font-size: 30px; }
.m-top strong { display: block; font-size: 15px; color: #fff; }
.m-top small { color: #a1a1aa; font-size: 12px; }
.m-promo { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 700; font-size: 13px; padding: 9px 12px; border-radius: 10px; margin-bottom: 12px; }
.m-item { display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,.06); border-radius: 10px; padding: 11px 12px; margin-bottom: 8px; font-size: 13px; }
.m-item b { color: var(--brand-2); }
.m-cart { margin-top: 12px; background: #fff; color: #15161c; text-align: center; font-weight: 800; padding: 13px; border-radius: 12px; font-size: 14px; }
.float-card { position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 14px 16px; font-size: 12px; animation: floaty 5s ease-in-out infinite; }
.fc-kitchen { top: 26px; left: -26px; width: 190px; }
.fc-sales { bottom: 20px; right: -20px; width: 170px; animation-delay: 1.5s; }
.fc-head { font-weight: 800; color: var(--ink); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.fc-head .dot { width: 8px; height: 8px; border-radius: 50%; background: #06d6a0; box-shadow: 0 0 0 4px rgba(6,214,160,.18); }
.fc-row { display: flex; justify-content: space-between; padding: 5px 0; border-top: 1px solid var(--line); color: var(--body); }
.fc-row span { color: var(--muted); }
.fc-row.ue b { color: #06862f; }
.fc-k { color: var(--muted); font-weight: 600; }
.fc-v { font-size: 24px; font-weight: 900; color: var(--ink); margin: 2px 0 8px; }
.fc-bars { display: flex; gap: 4px; align-items: flex-end; height: 34px; }
.fc-bars i { flex: 1; background: linear-gradient(var(--brand-2), var(--brand)); border-radius: 3px; }
.fc-bars i:nth-child(1){height:40%} .fc-bars i:nth-child(2){height:70%} .fc-bars i:nth-child(3){height:50%}
.fc-bars i:nth-child(4){height:90%} .fc-bars i:nth-child(5){height:65%} .fc-bars i:nth-child(6){height:100%}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---- Stats ----------------------------------------------------------------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 36px 24px; }
.stat { text-align: center; }
.stat b { display: block; font-size: 36px; font-weight: 900; color: var(--ink); letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: 14px; }

/* ---- Secciones genéricas --------------------------------------------------- */
.section { padding: 86px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.kicker { display: inline-block; color: var(--brand); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.section-head h2 { font-size: 36px; font-weight: 900; margin-bottom: 14px; }
.section-head p { font-size: 18px; color: var(--muted); }

/* ---- Features -------------------------------------------------------------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.feat:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feat-ic { width: 56px; height: 56px; display: grid; place-items: center; font-size: 28px; border-radius: 14px; background: linear-gradient(135deg, #fff2ea, #ffe7d6); margin-bottom: 18px; }
.feat h3 { font-size: 19px; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: 15px; }

/* ---- How it works ---------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; position: relative; }
.step-n { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; font-size: 18px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); margin-bottom: 16px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---- Showcase -------------------------------------------------------------- */
.show-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 42px 0; }
.show-row.reverse .show-copy { order: 2; }
.show-copy h3 { font-size: 28px; margin: 6px 0 12px; }
.show-copy p { color: var(--muted); font-size: 17px; margin-bottom: 18px; }
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--body); font-weight: 500; }
.ticks li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: #e8fbf3; color: #06a56e; font-size: 12px; font-weight: 900; display: grid; place-items: center; }
.show-visual { display: flex; justify-content: center; }

.mini-phone { width: 260px; background: linear-gradient(180deg, #1f232d, #15181f); border-radius: 26px; padding: 22px 16px; color: #f5f5f7; box-shadow: var(--shadow-lg); }
.mini-phone .m-item { font-size: 14px; }

.board-demo { display: grid; gap: 14px; width: 100%; max-width: 340px; }
.bd-card { background: #1b1f27; border-radius: 14px; border-left: 5px solid #ffd166; padding: 16px; color: #e8e8ea; box-shadow: var(--shadow); }
.bd-card.ue { border-left-color: #06C167; }
.bd-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.bd-head b { color: #ffd166; font-size: 16px; }
.bd-card.ue .bd-head b { color: #2fd27e; }
.bd-head small { color: #8b90a0; font-size: 11px; }
.bd-line { font-size: 14px; padding: 3px 0; border-bottom: 1px solid #262a33; }
.bd-btn { margin-top: 12px; width: 100%; border: none; border-radius: 10px; padding: 10px; font-weight: 800; background: #4cc9f0; color: #0f1115; cursor: pointer; }

.report-demo { width: 100%; max-width: 380px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.rd-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.rd-top span { color: var(--muted); font-size: 14px; }
.rd-top b { font-size: 26px; font-weight: 900; color: var(--ink); }
.rd-bars { display: flex; gap: 8px; align-items: flex-end; height: 100px; margin-bottom: 18px; }
.rd-bars i { flex: 1; height: var(--h); background: linear-gradient(var(--brand-2), var(--brand)); border-radius: 6px 6px 0 0; }
.rd-list { display: grid; gap: 8px; }
.rd-list div { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 0; border-top: 1px solid var(--line); }
.rd-list b { color: var(--ink); }

/* ---- Pricing --------------------------------------------------------------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px; display: flex; flex-direction: column; position: relative; }
.price.featured { border-color: transparent; box-shadow: var(--shadow-lg); transform: scale(1.03); background: linear-gradient(180deg, #fff, #fffaf7); }
.price .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 800; font-size: 12px; padding: 6px 14px; border-radius: 999px; box-shadow: 0 8px 18px rgba(255,107,53,.35); }
.price h3 { font-size: 18px; margin-bottom: 10px; }
.price-tag { font-size: 44px; font-weight: 900; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.price-tag span { font-size: 22px; vertical-align: top; margin-right: 2px; }
.price-tag small { font-size: 15px; font-weight: 600; color: var(--muted); }
.price-tag.custom { font-size: 30px; }
.price-note { color: var(--muted); font-size: 14px; margin: 8px 0 20px; }
.price .ticks { margin-bottom: 26px; }
.price .btn { margin-top: auto; }

/* ---- Testimonials ---------------------------------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.quote blockquote { font-size: 17px; color: var(--ink); font-weight: 500; margin-bottom: 18px; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote .av { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-alt); display: grid; place-items: center; font-size: 22px; }
.quote b { color: var(--ink); display: block; font-size: 15px; }
.quote small { color: var(--muted); }

/* ---- FAQ ------------------------------------------------------------------- */
.faq { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 20px 22px; font-size: 17px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-x { font-size: 24px; color: var(--brand); font-weight: 400; transition: transform .25s ease; line-height: 1; }
.faq-item.open .faq-x { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* ---- CTA band -------------------------------------------------------------- */
.cta-band { background: linear-gradient(135deg, #1a1c24, #241a14); color: #fff; padding: 80px 0; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(800px 400px at 80% 120%, rgba(255,107,53,.35), transparent 60%); }
.cta-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cta-copy h2 { color: #fff; font-size: 34px; margin-bottom: 14px; }
.cta-copy p { color: rgba(255,255,255,.78); font-size: 18px; margin-bottom: 22px; }
.cta-form { background: #fff; border-radius: 20px; padding: 28px; box-shadow: var(--shadow-lg); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,107,53,.15); }
.field textarea { resize: vertical; }
.form-hint { text-align: center; color: var(--muted); font-size: 13px; margin-top: 12px; }
.form-hint.ok { color: #06a56e; font-weight: 700; }

/* ---- Footer ---------------------------------------------------------------- */
.site-footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.foot-brand p { margin-top: 12px; font-size: 14px; max-width: 320px; }
.foot-col h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.foot-col a { display: block; color: rgba(255,255,255,.62); text-decoration: none; font-size: 14px; padding: 5px 0; }
.foot-col a:hover { color: var(--brand-2); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; font-size: 13px; flex-wrap: wrap; gap: 10px; }
.foot-legal a { color: rgba(255,255,255,.62); text-decoration: none; }
.foot-legal a:hover { color: var(--brand-2); }

/* ---- Reveal on scroll ------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- Responsive ------------------------------------------------------------ */
@media (max-width: 960px) {
  .hero h1 { font-size: 42px; }
  .feat-grid, .steps, .quotes, .price-grid { grid-template-columns: 1fr 1fr; }
  .price.featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav, .header-cta { display: none; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 16px 24px; gap: 4px; box-shadow: var(--shadow);
  }
  .nav.open a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav.open a::after { display: none; }
  .burger { display: flex; }
  .hero-grid, .show-row, .show-row.reverse, .cta-grid { grid-template-columns: 1fr; }
  .show-row.reverse .show-copy { order: 0; }
  .hero-visual { margin-top: 20px; }
  .section { padding: 60px 0; }
  .section-head h2, .cta-copy h2 { font-size: 28px; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 34px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .feat-grid, .steps, .quotes, .price-grid, .footer-grid { grid-template-columns: 1fr; }
  .float-card { display: none; }
}

/* Respeta usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
  html { scroll-behavior: auto; }
}
