/* ===== Menu Cost · Landing =====
   Mismo sistema de diseño que la app: neutros cálidos (piedra/tinta),
   un único acento azafrán y semáforo de food cost. Claro y oscuro. */

:root {
  --text: #211F1C;
  --text-2: #6E6860;
  --bg: #F4F2EE;
  --bg-el: #FBFAF7;
  --bg-sel: #ECE9E3;
  --line: #E4E0D9;
  --accent: #D9762F;
  --accent-ink: #FFFFFF;
  --good: #3E9B63;
  --warn: #CE9A1F;
  --bad: #D5563C;
  --radius: 28px;
  --shadow: 0 24px 60px -24px rgba(33, 31, 28, .28);
  --font: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #F4F1EC;
    --text-2: #A69F96;
    --bg: #131211;
    --bg-el: #1D1B19;
    --bg-sel: #2A2825;
    --line: #33302B;
    --accent: #EC9448;
    --accent-ink: #201911;
    --good: #5BBE81;
    --warn: #E0B24A;
    --bad: #E7715A;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, .6);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- tipografía ---------- */
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); line-height: 1.08; letter-spacing: -.02em; font-weight: 800; }
h1 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.15; letter-spacing: -.015em; font-weight: 800; max-width: 22ch; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
.lead { font-size: 1.12rem; color: var(--text-2); max-width: 46ch; }
.kicker {
  font-size: .8rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font); font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  box-shadow: 0 10px 26px -12px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px color-mix(in srgb, var(--accent) 75%, transparent); }
.btn:active { transform: translateY(0); opacity: .9; }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--line); box-shadow: none;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: none; }
.btn-small { padding: 10px 18px; font-size: .92rem; }
.btn-big { padding: 18px 34px; font-size: 1.1rem; }
.ic { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.ic-accent { fill: var(--accent); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; }
.brand-icon { width: 34px; height: 34px; border-radius: 9px; }
.brand-word { height: 56px; width: auto; display: block; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { font-size: .95rem; font-weight: 600; color: var(--text-2); transition: color .15s; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; height: 56px; gap: 12px; }
  .brand-word { height: 38px; }
  .lang-btn { padding: 6px 10px; }
  .nav .btn-small { padding: 8px 14px; font-size: .85rem; gap: 6px; }
}
@media (max-width: 400px) {
  .nav .btn-small span { display: none; }
  .nav .btn-small { padding: 8px; }
}

/* selector de idioma */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; color: var(--text);
  border: 1.5px solid var(--line); border-radius: 999px;
  font-family: var(--font); font-weight: 700; font-size: .88rem;
  padding: 9px 14px; cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.lang-btn:hover { border-color: var(--accent); color: var(--accent); }
.lang-btn .ic { width: 1.05em; height: 1.05em; fill: currentColor; }
.ic-chev { width: .85em !important; height: .85em !important; transition: transform .2s ease; }
.lang.open .ic-chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 160px;
  list-style: none; padding: 8px; margin: 0;
  background: var(--bg-el); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 20px 44px -18px rgba(33,31,28,.4);
  opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.lang.open .lang-menu { opacity: 1; transform: none; pointer-events: auto; }
.lang-menu li {
  padding: 10px 14px; border-radius: 12px;
  font-size: .93rem; font-weight: 600; color: var(--text-2);
  cursor: pointer; transition: background .12s ease, color .12s ease;
}
.lang-menu li:hover { background: var(--bg-sel); color: var(--text); }
.lang-menu li.on { color: var(--accent); font-weight: 800; }

/* ---------- hero ---------- */
.hero { padding: 140px 0 40px; position: relative; }
@media (max-width: 880px) { .hero { overflow-x: clip; } }
@media (max-width: 720px) { .hero { padding: 96px 0 32px; } }
.hero::before {
  /* halo azafrán suave */
  content: ""; position: absolute; top: -30%; right: -15%;
  width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: .9fr 1.1fr;
  gap: 44px; align-items: center; position: relative;
}
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-copy { display: flex; flex-direction: column; gap: 20px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* badges oficiales de las tiendas */
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 6px; }
.store-badge { display: inline-flex; border-radius: 12px; transition: transform .18s ease, box-shadow .18s ease; }
.store-badge:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -14px rgba(33,31,28,.45); }
.store-badge img { height: 52px; width: auto; display: block; }
.store-badges-big { justify-content: center; margin-top: 10px; }
.store-badges-big .store-badge img { height: 60px; }
@media (max-width: 480px) { .store-badge img { height: 46px; } .store-badges-big .store-badge img { height: 50px; } }
.hero-mini { display: flex; gap: 22px; list-style: none; margin-top: 4px; }
.hero-mini li { display: flex; align-items: center; gap: 7px; font-size: .92rem; font-weight: 600; color: var(--text-2); }

.hero-media { position: relative; }
.video-card {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-el);
  box-shadow: var(--shadow);
}
.video-card video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tilt { transform: rotate(1.6deg); }
@media (max-width: 720px) {
  /* en móvil el hero lleva el vídeo vertical */
  .hero-media .video-card { max-width: 300px; margin: 0 auto; }
  .hero-media .video-card video { aspect-ratio: 9 / 16; }
}

/* chips flotantes */
.chip {
  position: absolute; display: flex; align-items: center; gap: 8px;
  background: var(--bg-el); border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 16px;
  font-size: .9rem; font-weight: 600; color: var(--text-2);
  box-shadow: 0 14px 34px -16px rgba(33,31,28,.35);
}
.chip strong { color: var(--text); font-weight: 800; }
.chip-fc { top: -30px; left: -26px; }
.chip-ben { bottom: -42px; right: -14px; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-good { background: var(--good); }
.float-a { animation: float 5.2s ease-in-out infinite; }
.float-b { animation: floatSuave 6.4s ease-in-out .8s infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes floatSuave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@media (max-width: 880px) {
  .chip-fc { left: 6px; } .chip-ben { right: 6px; }
}

/* ---------- marquee ---------- */
.marquee { padding: 44px 0 10px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 20px; width: max-content; animation: slide 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee figure {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: var(--bg-el); border: 1px solid var(--line);
  border-radius: 22px; padding: 18px 22px 14px; min-width: 150px;
}
.marquee img { width: 84px; height: 84px; object-fit: contain; }
.marquee figcaption { font-size: .82rem; font-weight: 700; color: var(--text-2); white-space: nowrap; }
@media (max-width: 720px) {
  .marquee { padding: 32px 0 8px; }
  .marquee-track { gap: 12px; }
  .marquee figure { min-width: 108px; padding: 12px 14px 10px; border-radius: 18px; gap: 6px; }
  .marquee img { width: 56px; height: 56px; }
  .marquee figcaption { font-size: .74rem; }
}

/* ---------- secciones ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-el); border-block: 1px solid var(--line); }

/* funciones */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
@media (max-width: 880px) { .cards { grid-template-columns: 1fr; } }
.card {
  position: relative;
  background: var(--bg-el); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.section .card { background: var(--bg-el); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card p { color: var(--text-2); font-size: .98rem; }
.card-img {
  border-radius: 20px; overflow: hidden; background: var(--bg-sel);
  aspect-ratio: 4 / 3; display: grid; place-items: center; margin-bottom: 6px;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.tag-pro {
  position: absolute; top: 18px; right: 18px;
  background: var(--accent); color: var(--accent-ink);
  font-size: .68rem; font-weight: 800; letter-spacing: .08em;
  border-radius: 8px; padding: 4px 8px;
}

/* cómo funciona */
.como-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
@media (max-width: 880px) { .como-grid { grid-template-columns: 1fr; } }
.pasos { list-style: none; display: flex; flex-direction: column; gap: 26px; margin-top: 36px; }
.pasos li { display: flex; gap: 18px; align-items: flex-start; }
.pasos p { color: var(--text-2); font-size: .96rem; margin-top: 3px; }
.paso-n {
  flex: none; width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 800; font-size: 1.15rem;
}
.como-media { position: relative; }

/* donut */
.donut-card {
  position: absolute; bottom: -26px; left: -18px;
  background: var(--bg-el); border: 1px solid var(--line);
  border-radius: 24px; padding: 14px;
  display: flex; align-items: center; gap: 4px;
  box-shadow: 0 18px 40px -18px rgba(33,31,28,.4);
}
@media (max-width: 880px) { .donut-card { left: 8px; } }
.donut { width: 92px; height: 92px; transform: rotate(-90deg); }
.donut-track, .donut-arc { fill: none; stroke-width: 13; stroke-linecap: round; }
.donut-track { stroke: var(--bg-sel); }
.donut-arc {
  stroke: var(--good);
  stroke-dasharray: 301.6;           /* 2πr, r=48 */
  stroke-dashoffset: 301.6;
  transition: stroke-dashoffset 1.4s cubic-bezier(.22,.8,.28,1);
}
.donut-label { display: flex; flex-direction: column; align-items: center; padding: 0 12px 0 6px; line-height: 1.05; }
.donut-label strong { font-size: 1.7rem; font-weight: 800; }
.donut-label span { font-size: .85rem; font-weight: 700; color: var(--text-2); }
.donut-label small { font-size: .68rem; color: var(--text-2); margin-top: 3px; letter-spacing: .06em; text-transform: uppercase; }

/* rentabilidad */
.rent-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
@media (max-width: 880px) { .rent-grid { grid-template-columns: 1fr; } }
.rent-copy { display: flex; flex-direction: column; gap: 16px; }
.rent-chart {
  background: var(--bg-el); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px;
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: var(--shadow);
}
.bar-row { display: grid; grid-template-columns: 84px 1fr 64px; gap: 14px; align-items: center; }
.bar-name { font-size: .92rem; font-weight: 700; }
.bar { height: 16px; border-radius: 999px; background: var(--bg-sel); overflow: hidden; }
.bar-fill {
  display: block; height: 100%; border-radius: 999px; width: 0;
  transition: width 1.1s cubic-bezier(.22,.8,.28,1);
}
.chart-on .bar-fill { width: var(--w); }
.bar-fill.good { background: var(--good); }
.bar-fill.warn { background: var(--warn); }
.bar-fill.bad  { background: var(--bad); }
.bar-row:nth-child(2) .bar-fill { transition-delay: .12s; }
.bar-row:nth-child(3) .bar-fill { transition-delay: .24s; }
.bar-row:nth-child(4) .bar-fill { transition-delay: .36s; }
.bar-row:nth-child(5) .bar-fill { transition-delay: .48s; }
.bar-val { font-size: .9rem; font-weight: 800; text-align: right; color: var(--text-2); }

/* cifras */
.stats { padding: 30px 0 96px; }
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  background: var(--bg-el); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 40px 28px;
}
@media (max-width: 720px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.stat strong { font-size: 2.6rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat span { font-size: .88rem; font-weight: 600; color: var(--text-2); }

/* cta final */
.cta-final { padding: 20px 0 110px; }
.cta-box {
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 14%, var(--bg-el)), var(--bg-el) 55%);
  border: 1px solid var(--line); border-radius: 36px; padding: 70px 30px;
}
.cta-box .lead { margin: 0 auto; }
.cta-icon { width: 84px; height: 84px; border-radius: 20px; box-shadow: var(--shadow); }
.cta-nota { font-size: .85rem; color: var(--text-2); }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 44px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.footer-links a { font-size: .92rem; font-weight: 600; color: var(--text-2); transition: color .15s; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: .85rem; color: var(--text-2); }

/* ---------- páginas legales (privacy.html / terms.html) ---------- */
.legal-page { padding: 120px 0 80px; }
.legal-wrap { max-width: 720px; }
.legal-page h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 18px; }
.legal-page h4 { font-size: 1.02rem; font-weight: 800; margin: 26px 0 6px; }
.legal-page p { font-size: .97rem; color: var(--text-2); }
.legal-page p strong { color: var(--text); }
.legal-page a { color: var(--accent); font-weight: 600; }
.legal-date {
  font-size: .85rem !important; padding: 10px 14px; border-radius: 12px;
  background: var(--bg-sel); margin-bottom: 4px;
}

/* ---------- aviso de cookies ---------- */
.cookies {
  position: fixed; z-index: 90;
  left: 20px; right: 20px; bottom: 20px;
  margin: 0 auto; max-width: 620px;
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-el); border: 1px solid var(--line);
  border-radius: 20px; padding: 16px 18px;
  box-shadow: 0 22px 50px -20px rgba(33,31,28,.45);
  animation: cookieUp .5s cubic-bezier(.22,.8,.28,1);
}
.cookies[hidden] { display: none; }
@keyframes cookieUp { from { opacity: 0; transform: translateY(24px); } }
.cookies-ic { width: 26px; height: 26px; flex: none; }
.cookies-txt { font-size: .88rem; color: var(--text-2); line-height: 1.45; }
.cookies-txt a { color: var(--accent); font-weight: 700; }
.cookies .btn { flex: none; }
@media (max-width: 560px) {
  .cookies { flex-wrap: wrap; }
  .cookies .btn { margin-left: auto; }
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.8,.28,1); }
.reveal.in { opacity: 1; transform: none; }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }
.delay-3 { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-a, .float-b, .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}
