/* =====================================================================
   MENUQRFOOD — Landing SaaS · Tema oscuro premium
   ===================================================================== */

:root {
  --bg: #07080f;
  --bg-2: #0c0e1a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.1);
  --text: #ececf5;
  --muted: #9a9ab5;
  --brand: #34d399;   /* esmeralda */
  --brand-2: #22d3ee; /* cian */
  --warm: #fb923c;    /* acento cálido */
  --wa: #25d366;
  --grad: linear-gradient(120deg, var(--brand), var(--brand-2));
  --grad-warm: linear-gradient(120deg, var(--warm), #f472b6);
  --radius: 20px;
  --max: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand-name { font-family: "Space Grotesk", sans-serif; font-weight: 700; line-height: 1.08; letter-spacing: -.02em; }
a { text-decoration: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Fondo animado ---------- */
.bg-glow { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.blob-1 { width: 520px; height: 520px; background: #10b981; top: -160px; left: -120px; animation: float1 16s var(--ease) infinite; }
.blob-2 { width: 480px; height: 480px; background: #0891b2; top: 8%; right: -140px; animation: float2 20s var(--ease) infinite; }
.blob-3 { width: 420px; height: 420px; background: #7c3aed; bottom: -160px; left: 30%; opacity: .35; animation: float1 24s var(--ease) infinite reverse; }
@keyframes float1 { 50% { transform: translate(60px, 50px) scale(1.1); } }
@keyframes float2 { 50% { transform: translate(-50px, 40px) scale(1.05); } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 50px; cursor: pointer; border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn-sm { padding: 10px 20px; font-size: .9rem; }
.btn-primary { background: var(--grad); color: #04211a; box-shadow: 0 10px 30px rgba(52, 211, 153, .3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(52, 211, 153, .45); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.btn-light { background: #fff; color: #0a0a14; box-shadow: 0 12px 36px rgba(0,0,0,.3); }
.btn-light:hover { transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Navbar ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 16px 0; transition: padding .3s, background .3s; }
.nav.scrolled { background: rgba(7, 8, 15, .72); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); padding: 10px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--grad); color: #04211a; }
.brand-mark svg { width: 22px; height: 22px; }
.brand-name { font-size: 1.25rem; }
.brand-name span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--muted); font-size: .95rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.6rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: 160px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 500;
  color: var(--text); background: var(--surface); border: 1px solid var(--border);
  padding: 7px 16px; border-radius: 50px; margin-bottom: 22px; backdrop-filter: blur(10px);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px var(--brand); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .4; } }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); margin-bottom: 20px; }
.lead { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--muted); max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }

/* ---------- Mockup celular ---------- */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: 290px; height: 590px; border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #1b1d2b, #0c0d16); border: 1px solid var(--border);
  box-shadow: 0 40px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.08);
  animation: phoneFloat 6s ease-in-out infinite;
}
@keyframes phoneFloat { 50% { transform: translateY(-14px); } }
.phone-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 110px; height: 22px; background: #05060c; border-radius: 0 0 14px 14px; z-index: 3; }
.phone-screen { height: 100%; border-radius: 33px; background: #f4f5f8; overflow: hidden; color: #15151f; display: flex; flex-direction: column; }
.m-hero { background: var(--grad); padding: 40px 18px 16px; color: #04211a; }
.m-hero-title { font-family: "Space Grotesk"; font-weight: 700; font-size: 1.4rem; }
.m-hero-sub { font-size: .82rem; font-weight: 500; opacity: .8; }
.m-tabs { display: flex; gap: 6px; padding: 12px; overflow: hidden; }
.m-tabs span { font-size: .68rem; font-weight: 600; padding: 6px 10px; border-radius: 50px; background: #eceef2; color: #555; white-space: nowrap; }
.m-tabs .on { background: var(--brand); color: #04211a; }
.m-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
.m-thumb { width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0; background-size: cover; background-position: center; }
.m-thumb.t1 { background-image: url("../img/Burguer-Doble-Carne.png"); }
.m-thumb.t2 { background-image: url("../img/Burguer-Pollo-Crispy.png"); }
.m-thumb.t3 { background-image: url("../img/Burguer-Max-Deluxe.png"); }
.m-info { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.m-info b { font-size: .82rem; }
.m-info small { font-size: .66rem; color: #888; }
.m-price { font-size: .8rem; font-weight: 700; color: #e2231a; margin-top: 2px; }
.m-add { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #04211a; display: grid; place-items: center; font-weight: 700; }
.m-bar { margin-top: auto; background: #15151f; color: #fff; display: flex; justify-content: space-between; padding: 14px 16px; font-size: .8rem; font-weight: 600; }

.qr-float {
  position: absolute; top: 30px; right: -10px; background: #fff; color: #0a0a14; border-radius: 16px;
  padding: 12px; width: 110px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.45);
  animation: phoneFloat 6s ease-in-out infinite .8s;
}
.qr-float p { font-size: .72rem; font-weight: 700; margin-top: 6px; line-height: 1.1; }
.qr-mini { width: 86px; height: 86px; margin: 0 auto; background: #fff; border-radius: 6px; }
.qr-mini canvas, .qr-mini img { width: 100% !important; height: 100% !important; display: block; }
.wa-float {
  position: absolute; bottom: 60px; left: -24px; display: flex; align-items: center; gap: 8px;
  background: var(--wa); color: #fff; font-size: .8rem; font-weight: 600; padding: 10px 14px;
  border-radius: 50px; box-shadow: 0 16px 40px rgba(37,211,102,.4); animation: phoneFloat 6s ease-in-out infinite .4s;
}
.wa-float .wa-ico { width: 18px; height: 18px; }

/* QR decorativo generado con gradiente + máscara de puntos */
.qr-grid {
  width: 84px; height: 84px; margin: 0 auto; border-radius: 8px;
  background:
    linear-gradient(#0a0a14,#0a0a14) padding-box,
    conic-gradient(from 0deg, var(--brand), var(--brand-2), var(--brand)) border-box;
  border: 3px solid transparent;
  background-image:
    radial-gradient(circle, #0a0a14 38%, transparent 40%);
  background-size: 10px 10px; background-color: #fff;
  position: relative;
}
.qr-grid::before, .qr-grid::after {
  content: ""; position: absolute; width: 22px; height: 22px; border: 4px solid #0a0a14; border-radius: 5px; background: #fff;
}
.qr-grid::before { top: 5px; left: 5px; }
.qr-grid::after { top: 5px; right: 5px; }
.qr-grid.big { width: 150px; height: 150px; background-size: 14px 14px; }
.qr-grid.big::before, .qr-grid.big::after { width: 34px; height: 34px; }

/* ---------- Marquee ---------- */
.marquee-wrap { padding: 30px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255,255,255,.015); }
.marquee-label { text-align: center; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 16px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: scroll 28s linear infinite; }
.marquee-track span { font-family: "Space Grotesk"; font-weight: 600; font-size: 1.3rem; color: var(--muted); white-space: nowrap; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Rubros (galería visual) ---------- */
.rubros { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rubro { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; border: 1px solid var(--border); }
.rubro img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.rubro::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(7,8,15,.55) 70%, rgba(7,8,15,.9)); }
.rubro:hover img { transform: scale(1.07); }
.rubro:hover { border-color: rgba(52,211,153,.45); }
.rubro-label { position: absolute; left: 16px; bottom: 16px; z-index: 2; font-family: "Space Grotesk"; font-weight: 600; font-size: 1.02rem; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.5); }

/* ---------- Secciones ---------- */
.section { padding: 90px 0; }
.head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.eyebrow { display: inline-block; color: var(--brand); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 14px; }
.head h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin-bottom: 14px; }
.head p { color: var(--muted); font-size: 1.08rem; }

.glass { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); backdrop-filter: blur(12px); }

/* Cómo funciona */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { padding: 34px 28px; position: relative; overflow: hidden; transition: transform .3s var(--ease), border-color .3s; }
.step:hover { transform: translateY(-6px); border-color: rgba(52,211,153,.4); }
.step-num { font-family: "Space Grotesk"; font-size: 2.6rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 12px; }
.step h3 { font-size: 1.3rem; margin-bottom: 10px; }
.step p { color: var(--muted); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.b-card { padding: 30px; transition: transform .3s var(--ease), border-color .3s; }
.b-card:hover { transform: translateY(-6px); border-color: rgba(34,211,238,.4); }
.b-card.big { grid-column: span 1; }
.bento .big:first-child { grid-row: span 1; }
.b-ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 18px; color: var(--brand); }
.b-ico svg { width: 26px; height: 26px; }
.b-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.b-card p { color: var(--muted); }

/* Stats */
.stats-sec { padding: 50px 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; padding: 40px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.stat-num { font-family: "Space Grotesk"; font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; }
.stat p { color: var(--muted); font-size: .92rem; margin-top: 4px; }

/* Demo */
.demo-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.demo-grid h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 14px; }
.demo-url {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
  font-family: "Space Grotesk", monospace; font-size: .95rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 50px;
  padding: 10px 18px; backdrop-filter: blur(10px); transition: border-color .2s, transform .2s var(--ease);
}
.demo-url:hover { border-color: rgba(52,211,153,.5); transform: translateY(-2px); }
.demo-url .lock { color: var(--brand); font-size: .85rem; }
.demo-note { color: var(--muted); font-size: .9rem; margin-top: 14px; }
.demo-visual { display: flex; justify-content: center; }
.qr-card { padding: 40px; text-align: center; cursor: pointer; transition: transform .3s var(--ease); }
.qr-card:hover { transform: translateY(-6px) scale(1.02); }
.qr-card p { color: var(--muted); margin-top: 18px; max-width: 200px; }
.qr-real { width: 188px; height: 188px; margin: 0 auto; background: #fff; padding: 12px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.qr-real canvas, .qr-real img { width: 100% !important; height: 100% !important; display: block; }

/* Planes */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { padding: 34px 30px; display: flex; flex-direction: column; transition: transform .3s var(--ease); }
.plan:hover { transform: translateY(-6px); }
.plan.featured { border-color: rgba(52,211,153,.5); background: linear-gradient(180deg, rgba(52,211,153,.1), var(--surface)); position: relative; box-shadow: 0 20px 60px rgba(52,211,153,.15); }
.plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #04211a; font-size: .75rem; font-weight: 700; padding: 5px 16px; border-radius: 50px; }
.plan h3 { font-size: 1.5rem; }
.plan-desc { color: var(--muted); font-size: .92rem; margin: 6px 0 18px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.plan-price span { color: var(--muted); font-size: .85rem; }
.plan-price b { font-family: "Space Grotesk"; font-size: 2.4rem; }
.plan-renew { color: var(--muted); font-size: .82rem; margin-bottom: 18px; }
.plan > .plan-price:last-of-type { margin-bottom: 22px; }
.plan:not(:has(.plan-renew)) .plan-price { margin-bottom: 22px; }
.plan ul { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; flex: 1; }
.plan li { color: var(--text); font-size: .95rem; }
.plan-cta { margin-top: auto; }
.plan-demo-link { display: block; text-align: center; margin-top: 12px; color: var(--brand); font-weight: 600; font-size: .9rem; transition: opacity .2s; }
.plan-demo-link:hover { opacity: .75; }
.plans-note { text-align: center; color: var(--muted); margin-top: 28px; }
.plans-note a { color: var(--brand); font-weight: 600; }

/* FAQ */
.faq-wrap { max-width: 800px; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 22px; transition: border-color .3s; }
.faq details[open] { border-color: rgba(52,211,153,.4); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-family: "Space Grotesk"; font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq-x { font-size: 1.4rem; color: var(--brand); transition: transform .3s; flex-shrink: 0; }
.faq details[open] .faq-x { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 20px; }

/* CTA band */
.cta-band { text-align: center; padding: 64px 40px; border-radius: 28px; position: relative; overflow: hidden; background: var(--grad); color: #04211a; }
.cta-band .qr-grid { position: absolute; opacity: .18; top: -20px; right: -20px; transform: rotate(12deg); }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 12px; position: relative; }
.cta-band p { font-size: 1.1rem; margin-bottom: 28px; opacity: .85; position: relative; }
.cta-band .btn-light { position: relative; }
.cta-band .wa-ico { width: 22px; height: 22px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 60px 0 30px; background: var(--bg-2); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 40px; align-items: start; padding-bottom: 40px; }
.footer-tag { color: var(--muted); margin-top: 14px; max-width: 320px; font-size: .92rem; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-wa { display: inline-flex; align-items: center; gap: 10px; background: var(--wa); color: #fff; font-weight: 600; padding: 12px 22px; border-radius: 50px; transition: filter .2s; }
.footer-wa:hover { filter: brightness(.95); }
.footer-wa .wa-ico { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; text-align: center; color: var(--muted); font-size: .88rem; }
.wa-ico { width: 1.2em; height: 1.2em; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; }
  .hero-visual { order: 1; }
  .lead, .hero-trust { margin-left: auto; margin-right: auto; justify-content: center; }
  .hero-actions { justify-content: center; }
  .demo-grid { grid-template-columns: 1fr; text-align: center; }
  .steps, .bento, .plans { grid-template-columns: 1fr; }
  .rubros { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 700px) {
  .nav-links { position: fixed; inset: 0 0 0 auto; width: 76%; max-width: 320px; flex-direction: column; justify-content: center; align-items: center; gap: 26px; background: rgba(10,11,20,.96); backdrop-filter: blur(20px); transform: translateX(100%); transition: transform .35s var(--ease); border-left: 1px solid var(--border); }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.25rem; }
  .nav-toggle { display: block; z-index: 110; }
  .nav-cta .btn { display: none; }
  .hero { padding: 130px 0 60px; }
}
