/* ═══════════════════════════════════════════════════════════════
   business.css — Yumlist Business Panel · Rediseño v2
   Reemplazo directo: mismas clases, cero cambios funcionales.
   Dirección: "la sala vista desde la cocina" — cálido, con
   profundidad, el clay del logo por fin como protagonista.
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --ink:        #0E0D0C;
  --ink-2:      #131110;
  --cream:      #F5F0E8;
  --clay:       #C4622D;
  --ember:      #D9754A;          /* clay claro para hovers */
  --clay-deep:  #A34E1F;
  --charcoal:   #1A1816;
  --mid:        #2A2926;
  --sand:       #B89F87;
  --muted:      rgba(245,240,232,0.38);
  --serif:      'Cormorant Garamond', serif;
  --sans:       'DM Sans', sans-serif;
  --sidebar-w:  240px;

  --line:       rgba(245,240,232,.08);
  --line-soft:  rgba(245,240,232,.05);
  --card-bg:    linear-gradient(160deg, rgba(245,240,232,.045), rgba(245,240,232,.015));
  --clay-ring:  0 0 0 3px rgba(196,98,45,.16);
  --shadow-warm: 0 12px 32px -12px rgba(0,0,0,.55), 0 2px 8px rgba(0,0,0,.3);
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
}

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(196,98,45,.07), transparent 60%),
    radial-gradient(700px 500px at -10% 100%, rgba(184,159,135,.05), transparent 55%),
    var(--ink);
  background-attachment: fixed;
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection { background: rgba(196,98,45,.4); color: var(--cream); }

/* Grain */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1000;
}

/* Scrollbar discreto */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(245,240,232,.12); border-radius: 10px; border: 3px solid var(--ink); }
::-webkit-scrollbar-thumb:hover { background: rgba(245,240,232,.2); }

/* Focus accesible */
:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; border-radius: 4px; }

/* ─── Layout ─────────────────────────────────────────── */
.app-layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: linear-gradient(180deg, #191715, #151312 70%, #171412);
  border-right: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  overflow-y: auto;
  z-index: 50;
}

.sidebar-logo {
  padding: 24px 20px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 14px;
}

.sidebar-restaurant {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: .01em;
  padding: 0 20px;
  margin-bottom: 8px;
  line-height: 1.3;
}

.sidebar-status {
  padding: 0 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3.5px 10px;
  border-radius: 20px;
}
.badge-verified { background: rgba(80,180,120,.14); color: rgb(110,215,150); border: 1px solid rgba(80,180,120,.25); }
.badge-pending  { background: rgba(184,159,135,.12); color: var(--sand);        border: 1px solid rgba(184,159,135,.22); }
.badge-rejected { background: rgba(196,98,45,.14);   color: var(--ember);       border: 1px solid rgba(196,98,45,.25); }
.badge-plan     { background: rgba(196,98,45,.1);    color: rgba(217,117,74,.9); border: 1px solid rgba(196,98,45,.18); }

.sidebar-nav {
  flex: 1;
  padding: 4px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  text-decoration: none;
  color: rgba(245,240,232,.45);
  font-size: 13px;
  font-weight: 400;
  transition: background .18s, color .18s, transform .18s;
  letter-spacing: .01em;
}
.sidebar-link:hover  { background: rgba(245,240,232,.05); color: rgba(245,240,232,.9); transform: translateX(2px); }
.sidebar-link.active { background: linear-gradient(90deg, rgba(196,98,45,.14), rgba(196,98,45,.04)); color: var(--cream); }
.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 18px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--ember), var(--clay));
}
.sidebar-link svg        { flex-shrink: 0; opacity: .55; transition: opacity .18s; }
.sidebar-link.active svg { opacity: 1; color: var(--ember); }
.sidebar-link:hover svg  { opacity: 1; }

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--line-soft);
  margin-top: 10px;
}

.btn-signout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: none;
  border: none;
  color: rgba(245,240,232,.3);
  font-family: var(--sans);
  font-size: 13px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background .18s, color .18s;
}
.btn-signout:hover { background: rgba(196,98,45,.08); color: rgba(245,240,232,.7); }

.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  padding: 52px 56px 72px;
  min-height: 100vh;
  max-width: 1180px;
}

/* Entrada suave del contenido */
@keyframes riseIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.main-content > * { animation: riseIn .5s cubic-bezier(.2,.7,.2,1) both; }
.main-content > *:nth-child(2) { animation-delay: .05s; }
.main-content > *:nth-child(3) { animation-delay: .1s; }
.main-content > *:nth-child(4) { animation-delay: .15s; }
.main-content > *:nth-child(5) { animation-delay: .2s; }
.main-content > *:nth-child(n+6) { animation-delay: .25s; }

/* ─── Onboarding: barra superior en vez de sidebar lateral ──────── */
/* Mayor especificidad que .main-content (incluida la de la media query de
   móvil) a propósito: el modo onboarding gana siempre, en cualquier ancho. */
body.onboarding-mode .main-content { margin-left: 0; max-width: 720px; margin-inline: auto; padding-top: 96px; }
.onboarding-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  background: var(--charcoal); border-bottom: 0.5px solid rgba(245,240,232,.08);
  padding: 14px 24px;
}
.onboarding-topbar-inner { max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.onboarding-progress { flex: 1; min-width: 140px; }
.onboarding-progress-label { font-size: 11px; color: rgba(245,240,232,.4); margin-bottom: 6px; letter-spacing: .04em; }
.onboarding-progress-track { height: 4px; background: rgba(245,240,232,.08); border-radius: 4px; overflow: hidden; }
.onboarding-progress-fill { height: 100%; background: var(--clay); border-radius: 4px; transition: width .3s ease; }
.onboarding-topbar-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.onboarding-help-link { font-size: 12px; color: rgba(245,240,232,.5); text-decoration: none; white-space: nowrap; }
.onboarding-help-link:hover { color: var(--cream); }
.onboarding-signout { background: none; border: none; color: rgba(245,240,232,.3); font-size: 12px; cursor: pointer; font-family: var(--sans); white-space: nowrap; }
.onboarding-signout:hover { color: rgba(245,240,232,.6); }

/* ─── Auth pages ─────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  position: relative;
}
/* halo cálido detrás de la card */
.auth-page::before {
  content: '';
  position: absolute;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,98,45,.09), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}

.auth-card {
  width: 100%;
  max-width: 430px;
  position: relative;
  animation: riseIn .6s cubic-bezier(.2,.7,.2,1) both;
}

.auth-logo { margin-bottom: 44px; }

.auth-title {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 300;
  letter-spacing: -.5px;
  line-height: 1.08;
  margin-bottom: 10px;
}

.auth-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 34px;
  line-height: 1.65;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: rgba(245,240,232,.35);
}

.auth-link {
  font-size: 13px;
  color: rgba(217,117,74,.85);
  text-decoration: none;
  transition: color .2s;
  border-bottom: 1px solid transparent;
}
.auth-link:hover { color: var(--ember); border-bottom-color: rgba(217,117,74,.4); }

/* ─── Toggle switch (usado por carta.html y perfil.html) ─ */
.toggle { position: relative; display: inline-block; width: 36px; height: 21px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-slider {
  position: absolute; inset: 0; background: rgba(245,240,232,.15); border-radius: 20px;
  cursor: pointer; transition: background .2s;
}
.toggle-slider::before {
  content: ''; position: absolute; width: 15px; height: 15px; left: 3px; top: 3px;
  background: #F5F0E8; border-radius: 50%; transition: transform .2s;
}
.toggle input:checked + .toggle-slider { background: var(--clay); }
.toggle input:checked + .toggle-slider::before { transform: translateX(15px); }
.toggle-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(245,240,232,.5); }

.icon-btn {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: rgba(245,240,232,.35); cursor: pointer; border-radius: 6px;
  transition: all .15s; padding: 0;
}
.icon-btn:hover { background: rgba(245,240,232,.08); color: var(--cream); }
.icon-btn.danger:hover { background: rgba(196,98,45,.14); color: var(--ember); }

.add-row-btn {
  display: flex; align-items: center; gap: 6px; padding: 9px 4px; margin-top: 4px;
  background: none; border: none; color: rgba(245,240,232,.4); font-family: var(--sans);
  font-size: 13px; cursor: pointer; transition: color .15s;
}
.add-row-btn:hover { color: var(--cream); }

.section-card {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px 20px; margin-bottom: 16px;
}
.section-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }

/* ─── Forms ──────────────────────────────────────────── */
.form-group { margin-bottom: 15px; }

.form-label {
  display: block;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(245,240,232,.42);
  margin-bottom: 7px;
}

.form-input {
  width: 100%;
  padding: 12.5px 16px;
  background: rgba(245,240,232,.045);
  border: 1px solid rgba(245,240,232,.12);
  border-radius: var(--r-sm);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-input::placeholder { color: rgba(245,240,232,.22); }
.form-input:hover  { border-color: rgba(245,240,232,.2); }
.form-input:focus  { border-color: rgba(196,98,45,.6); box-shadow: var(--clay-ring); background: rgba(245,240,232,.06); }
.form-input.error  { border-color: rgba(196,98,45,.7); box-shadow: 0 0 0 3px rgba(196,98,45,.12); }

textarea.form-input { resize: vertical; min-height: 90px; }

.form-hint {
  font-size: 11px;
  color: rgba(245,240,232,.28);
  margin-top: 5px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.geocode-status  { font-size: 11px; margin-top: 5px; min-height: 16px; }
.geocode-ok      { color: rgb(110,215,150); }
.geocode-err     { color: rgba(217,117,74,.9); }
.geocode-loading { color: rgba(245,240,232,.3); }

/* ─── Buttons ────────────────────────────────────────── */
.btn-primary {
  width: 100%;
  padding: 13.5px;
  background: linear-gradient(135deg, var(--ember), var(--clay) 55%, var(--clay-deep));
  color: #FFF6EE;
  border: none;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, filter .2s;
  margin-top: 8px;
  box-shadow: 0 6px 18px -6px rgba(196,98,45,.5), inset 0 1px 0 rgba(255,255,255,.15);
}
.btn-primary:hover {
  transform: translateY(-1.5px);
  filter: brightness(1.07);
  box-shadow: 0 10px 24px -6px rgba(196,98,45,.55), inset 0 1px 0 rgba(255,255,255,.15);
}
.btn-primary:active   { transform: translateY(0); }
.btn-primary:disabled { opacity: .35; transform: none; cursor: not-allowed; box-shadow: none; }

.btn-ghost {
  padding: 10px 20px;
  background: rgba(245,240,232,.05);
  color: rgba(245,240,232,.75);
  border: 1px solid rgba(245,240,232,.14);
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-ghost:hover {
  background: rgba(196,98,45,.12);
  border-color: rgba(196,98,45,.35);
  color: var(--cream);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6.5px 14px;
  font-size: 12px;
  border-radius: 100px;
  border: 1px solid rgba(245,240,232,.15);
  background: rgba(245,240,232,.05);
  color: rgba(245,240,232,.7);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
  font-family: var(--sans);
  font-weight: 400;
}
.btn-sm:hover    { background: rgba(196,98,45,.12); border-color: rgba(196,98,45,.3); color: var(--cream); }
.btn-sm:disabled { opacity: .3; cursor: not-allowed; }
.btn-sm:disabled:hover { background: rgba(245,240,232,.05); border-color: rgba(245,240,232,.15); color: rgba(245,240,232,.7); }

.btn-approve {
  padding: 6.5px 14px;
  background: rgba(80,180,120,.12); color: rgb(110,215,150);
  border: 1px solid rgba(80,180,120,.25);
  border-radius: 100px; font-family: var(--sans); font-size: 12px; cursor: pointer; transition: all .2s;
}
.btn-approve:hover { background: rgba(80,180,120,.22); transform: translateY(-1px); }

.btn-reject {
  padding: 6.5px 14px;
  background: rgba(196,98,45,.1); color: var(--ember);
  border: 1px solid rgba(196,98,45,.22);
  border-radius: 100px; font-family: var(--sans); font-size: 12px; cursor: pointer; transition: all .2s;
}
.btn-reject:hover { background: rgba(196,98,45,.2); transform: translateY(-1px); }

/* ─── Alerts ─────────────────────────────────────────── */
.alert {
  padding: 13px 16px 13px 18px;
  border-radius: var(--r-sm);
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 16px;
  border-left-width: 3px;
  border-left-style: solid;
}
.alert-error   { background: rgba(196,98,45,.09);  border: 1px solid rgba(196,98,45,.2);  border-left: 3px solid var(--clay);           color: rgba(245,240,232,.82); }
.alert-success { background: rgba(80,180,120,.08); border: 1px solid rgba(80,180,120,.18); border-left: 3px solid rgb(80,180,120);       color: rgba(245,240,232,.82); }
.alert-warning { background: rgba(220,180,80,.07); border: 1px solid rgba(220,180,80,.16); border-left: 3px solid rgba(220,180,80,.8);   color: rgba(245,240,232,.78); }
.alert-info    { background: rgba(245,240,232,.04); border: 1px solid rgba(245,240,232,.1); border-left: 3px solid rgba(245,240,232,.25); color: rgba(245,240,232,.65); }

/* ─── Page header ────────────────────────────────────── */
.page-header { margin-bottom: 40px; }

.page-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(217,117,74,.75);
  margin-bottom: 10px;
}
/* los dos círculos del logo como marca de sección */
.page-label::before {
  content: '';
  width: 16px; height: 9px;
  flex-shrink: 0;
  background:
    radial-gradient(circle 4.5px at 4.5px 4.5px, var(--clay) 98%, transparent),
    radial-gradient(circle 4.5px at 11.5px 4.5px, rgba(245,240,232,.28) 98%, transparent);
}

.page-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 300;
  letter-spacing: -.5px;
  line-height: 1.1;
}

/* ─── Stats ──────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}

.stat-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px;
  overflow: hidden;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .25s, box-shadow .25s;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 22px; right: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196,98,45,.4), transparent);
  opacity: 0;
  transition: opacity .25s;
}
.stat-card:hover { transform: translateY(-3px); border-color: rgba(196,98,45,.25); box-shadow: var(--shadow-warm); }
.stat-card:hover::before { opacity: 1; }

.stat-label { font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.stat-value { font-family: var(--serif); font-size: 42px; font-weight: 300; letter-spacing: -1px; line-height: 1; }
.stat-sub   { font-size: 11px; color: rgba(245,240,232,.32); margin-top: 8px; }

/* ─── Section ────────────────────────────────────────── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--line), rgba(196,98,45,.18), var(--line));
  margin: 36px 0;
}

.section-title {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
  letter-spacing: -.3px;
  margin-bottom: 20px;
}

/* ─── Review cards ───────────────────────────────────── */
.reviews-list { display: flex; flex-direction: column; gap: 14px; }

.review-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 24px;
  transition: border-color .25s, transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s;
}
.review-card:hover { border-color: rgba(245,240,232,.16); transform: translateY(-2px); box-shadow: var(--shadow-warm); }

.review-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.review-user   { display: flex; align-items: center; gap: 11px; }

.review-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(196,98,45,.25), rgba(245,240,232,.08));
  flex-shrink: 0;
  border: 1px solid rgba(245,240,232,.1);
}
.review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-username   { font-size: 13px; font-weight: 500; letter-spacing: .01em; }
.review-date       { font-size: 11px; color: rgba(245,240,232,.35); margin-top: 1px; }

.review-photo {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: var(--r-sm);
  margin-bottom: 14px;
  border: 1px solid rgba(245,240,232,.06);
}

.review-ratings { display: flex; gap: 16px; margin-bottom: 10px; flex-wrap: wrap; }
.rating-item    { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(245,240,232,.55); }
.rating-dot     { width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, var(--ember), var(--clay)); }

.review-description { font-size: 13.5px; color: rgba(245,240,232,.62); line-height: 1.7; margin-bottom: 12px; }

.review-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tag {
  font-size: 10.5px;
  padding: 3.5px 10px;
  border-radius: 20px;
  background: rgba(196,98,45,.08);
  border: 1px solid rgba(196,98,45,.14);
  color: rgba(245,240,232,.55);
  letter-spacing: .04em;
  transition: background .2s, color .2s;
}
.tag:hover { background: rgba(196,98,45,.16); color: rgba(245,240,232,.8); }

.review-response {
  background: rgba(196,98,45,.05);
  border: 1px solid rgba(196,98,45,.12);
  border-left: 2px solid rgba(196,98,45,.5);
  border-radius: var(--r-sm);
  padding: 13px 15px;
  margin-top: 12px;
}
.review-response-label { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: rgba(217,117,74,.7); margin-bottom: 5px; }
.review-response-text  { font-size: 13px; color: rgba(245,240,232,.65); line-height: 1.65; }

.response-form      { margin-top: 10px; display: none; }
.response-form.open { display: block; animation: riseIn .3s ease both; }

/* ─── Plan cards ─────────────────────────────────────── */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  border: 1px solid rgba(245,240,232,.1);
  border-radius: var(--r-lg);
  padding: 32px 26px;
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .25s, box-shadow .25s;
}
.plan-card:hover { transform: translateY(-4px); border-color: rgba(245,240,232,.2); box-shadow: var(--shadow-warm); }

/* Pro (segunda card) destacado con borde cálido */
.plan-card:nth-child(2) {
  border-color: rgba(196,98,45,.4);
  background:
    linear-gradient(170deg, rgba(196,98,45,.09), rgba(196,98,45,.02) 45%),
    var(--card-bg);
  box-shadow: 0 16px 40px -18px rgba(196,98,45,.35);
}
.plan-card:nth-child(2):hover { border-color: rgba(196,98,45,.6); }

.plan-card.current { border-color: rgba(245,240,232,.3); background: rgba(245,240,232,.05); }

.plan-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 10px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--ember), var(--clay));
  color: #FFF6EE;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px -4px rgba(196,98,45,.5);
}
.plan-name  { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.plan-price { font-family: var(--serif); font-size: clamp(38px,4vw,52px); font-weight: 300; letter-spacing: -1px; line-height: 1; margin-bottom: 4px; }
.plan-price-note { font-size: 12px; color: rgba(245,240,232,.32); margin-bottom: 24px; }
.plan-divider    { height: 1px; background: linear-gradient(90deg, var(--line), rgba(196,98,45,.15), var(--line)); margin-bottom: 20px; }
.plan-features   { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 24px; flex: 1; }
.plan-feature    { font-size: 13px; color: rgba(245,240,232,.58); display: flex; align-items: flex-start; gap: 9px; line-height: 1.55; }
.plan-feature::before { content: '—'; color: rgba(196,98,45,.55); flex-shrink: 0; }
.plan-feature.highlight { color: rgba(245,240,232,.85); font-weight: 400; }
.plan-feature.highlight::before { content: '+'; color: var(--ember); }

/* ─── Analytics ──────────────────────────────────────── */
.analytics-section {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px 28px;
  margin-bottom: 14px;
  transition: border-color .25s;
}
.analytics-section:hover { border-color: rgba(245,240,232,.14); }
.analytics-section.collapsed .analytics-body { display: none; }

.analytics-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.analytics-section-title  { font-family: var(--serif); font-size: 19px; font-weight: 400; letter-spacing: -.2px; }

.locked-section  { position: relative; overflow: hidden; border-radius: var(--r-sm); }
.locked-content  { filter: blur(6px) saturate(.7); pointer-events: none; user-select: none; }
.locked-overlay  {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
  background: linear-gradient(160deg, rgba(14,13,12,.5), rgba(14,13,12,.72));
  backdrop-filter: blur(2px);
}
.locked-label {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(217,117,74,.85);
  display: flex;
  align-items: center;
  gap: 7px;
}
.locked-label::before {
  content: '';
  width: 10px; height: 12px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2a5 5 0 00-5 5v3H6a2 2 0 00-2 2v8a2 2 0 002 2h12a2 2 0 002-2v-8a2 2 0 00-2-2h-1V7a5 5 0 00-5-5zm-3 8V7a3 3 0 016 0v3H9z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2a5 5 0 00-5 5v3H6a2 2 0 00-2 2v8a2 2 0 002 2h12a2 2 0 002-2v-8a2 2 0 00-2-2h-1V7a5 5 0 00-5-5zm-3 8V7a3 3 0 016 0v3H9z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ─── Modal ──────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(8,7,6,.72);
  backdrop-filter: blur(6px);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-backdrop.hidden { display: none; }

.modal {
  background: linear-gradient(170deg, #201d1a, #171512);
  border: 1px solid rgba(245,240,232,.12);
  border-radius: var(--r-lg);
  padding: 38px 36px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.7);
  animation: riseIn .35s cubic-bezier(.2,.7,.2,1) both;
}
.modal-title { font-family: var(--serif); font-size: 25px; font-weight: 300; margin-bottom: 12px; }
.modal-body  { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 26px; }

/* ─── Tour guiado del panel ──────────────────────────── */
/* El "agujero" en el velo oscuro no se hace subiendo el z-index del elemento
   señalado — probamos eso primero y se rompe en cuanto el elemento (o
   cualquier antepasado suyo) tiene su propio contexto de apilamiento, como
   ya pasaba con .sidebar. En vez de eso, .tour-spot es un único recuadro
   fijo, posicionado con getBoundingClientRect() sobre el elemento real, cuyo
   box-shadow de 9999px hace de velo oscuro en todo lo demás. No depende de
   quién sea el padre del elemento señalado — funciona igual para un enlace
   del sidebar que para una tarjeta suelta del contenido.
   .tour-blocker es un capa transparente a pantalla completa que bloquea
   clics en el fondo (el box-shadow es solo visual, no intercepta clics). */
@keyframes tourFadeIn { from { opacity: 0; } to { opacity: 1; } }

.tour-blocker {
  position: fixed; inset: 0;
  z-index: 399;
  background: transparent;
  animation: tourFadeIn .2s ease both;
}

.tour-spot {
  position: fixed;
  z-index: 400;
  border-radius: var(--r-sm);
  box-shadow:
    0 0 0 9999px rgba(8,7,6,.72),
    0 0 0 3px rgba(196,98,45,.5),
    0 0 26px 4px rgba(196,98,45,.3);
  pointer-events: none;
}

.tour-tooltip {
  position: fixed;
  z-index: 402;
  width: 280px;
  max-width: calc(100vw - 28px);
  background: linear-gradient(170deg, #201d1a, #171512);
  border: 1px solid rgba(245,240,232,.14);
  border-radius: var(--r-md);
  padding: 20px 22px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.7);
  animation: riseIn .25s cubic-bezier(.2,.7,.2,1) both;
}
.tour-step-count {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 6px;
}
.tour-tooltip-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 21px;
  margin-bottom: 8px;
}
.tour-tooltip-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 18px;
}
.tour-tooltip-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tour-skip {
  background: none;
  border: none;
  color: rgba(245,240,232,.35);
  font-family: var(--sans);
  font-size: 12px;
  cursor: pointer;
  padding: 6px 0;
  transition: color .18s;
}
.tour-skip:hover { color: rgba(245,240,232,.7); }
.tour-tooltip-nav { display: flex; gap: 8px; }
.tour-tooltip-nav .btn-primary,
.tour-tooltip-nav .btn-ghost { padding: 8px 16px; font-size: 13px; }

.tour-relaunch-btn {
  position: fixed;
  top: 20px; right: 24px;
  z-index: 90;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(245,240,232,.06);
  border: 0.5px solid rgba(245,240,232,.18);
  border-radius: 50%;
  color: rgba(245,240,232,.55);
  cursor: pointer;
  transition: background .18s, color .18s;
}
.tour-relaunch-btn:hover { background: rgba(245,240,232,.12); color: var(--cream); }

@media (max-width: 900px) {
  .tour-relaunch-btn { top: 14px; right: 14px; }
}

/* ─── Admin ──────────────────────────────────────────── */
.verification-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 24px;
  margin-bottom: 12px;
  transition: border-color .25s;
}
.verification-card:hover { border-color: rgba(245,240,232,.16); }
.verification-name { font-family: var(--serif); font-size: 21px; font-weight: 400; margin-bottom: 4px; }
.verification-meta { font-size: 12px; color: rgba(245,240,232,.42); margin-bottom: 14px; display: flex; gap: 20px; flex-wrap: wrap; }
.verification-actions { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; margin-top: 14px; }

.reject-form      { margin-top: 10px; display: none; width: 100%; }
.reject-form.open { display: block; animation: riseIn .3s ease both; }

/* ─── Tooltip ────────────────────────────────────────── */
[data-tooltip] { position: relative; }
[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%; transform: translateX(-50%);
  background: #26221F;
  border: 1px solid rgba(245,240,232,.12);
  color: rgba(245,240,232,.75);
  font-size: 11px;
  white-space: nowrap;
  padding: 6px 11px;
  border-radius: 7px;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 8px 20px -8px rgba(0,0,0,.6);
}

/* ─── Loading y empty con la firma Yumlist ──────────── */
/* los dos círculos del logo, respirando */
@keyframes plates {
  0%, 100% { transform: translateX(0); opacity: .9; }
  50%       { transform: translateX(7px); opacity: .5; }
}
@keyframes platesB {
  0%, 100% { transform: translateX(0); opacity: .5; }
  50%       { transform: translateX(-7px); opacity: .9; }
}

.loading {
  text-align: center;
  padding: 90px 40px 80px;
  color: rgba(245,240,232,.35);
  font-size: 13px;
  letter-spacing: .06em;
  position: relative;
}
.loading::before, .loading::after {
  content: '';
  position: absolute;
  top: 48px;
  width: 22px; height: 22px;
  border-radius: 50%;
}
.loading::before { left: calc(50% - 18px); background: var(--clay);                 animation: plates 1.6s ease-in-out infinite; }
.loading::after  { left: calc(50% - 4px);  background: rgba(245,240,232,.2);        animation: platesB 1.6s ease-in-out infinite; }

.empty {
  text-align: center;
  padding: 90px 40px 70px;
  color: rgba(245,240,232,.35);
  font-size: 14px;
  position: relative;
}
.empty::before, .empty::after {
  content: '';
  position: absolute;
  top: 44px;
  width: 26px; height: 26px;
  border-radius: 50%;
}
.empty::before { left: calc(50% - 22px); background: rgba(196,98,45,.4); }
.empty::after  { left: calc(50% - 4px);  border: 1px solid rgba(245,240,232,.2); }

@keyframes up { to { opacity: 1; transform: translateY(0); } }

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
  /* La sidebar se convierte en tab bar inferior: navegación siempre visible */
  .sidebar {
    top: auto; bottom: 0;
    width: 100%;
    min-height: 0;
    height: 62px;
    flex-direction: row;
    align-items: center;
    background: rgba(19,17,16,.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-right: none;
    border-top: 1px solid rgba(245,240,232,.1);
    overflow-y: visible;
    z-index: 80;
  }
  .sidebar-logo, .sidebar-restaurant, .sidebar-status, .sidebar-footer { display: none; }
  .sidebar-nav {
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 0 6px;
    width: 100%;
    gap: 0;
  }
  .sidebar-link {
    flex-direction: column;
    gap: 3px;
    padding: 7px 12px;
    font-size: 9px;
    letter-spacing: .03em;
    border-radius: var(--r-sm);
  }
  .sidebar-link:hover { transform: none; }
  .sidebar-link.active::before {
    top: -1px; left: 50%;
    transform: translateX(-50%);
    width: 22px; height: 2px;
    border-radius: 0 0 3px 3px;
  }

  .main-content { margin-left: 0; padding: 32px 20px 100px; }
  .stats-grid   { grid-template-columns: 1fr 1fr; gap: 12px; }
  .plans-grid   { grid-template-columns: 1fr; }
  .plan-card:nth-child(2) { order: -1; }  /* Pro primero en móvil */

  .auth-page::before { width: 380px; height: 380px; }
}

@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-value { font-size: 34px; }
  .form-row   { grid-template-columns: 1fr; }
  .main-content { padding: 26px 16px 100px; }
  .analytics-section { padding: 20px; }
  .review-card { padding: 18px; }
}

/* ─── Accesibilidad: movimiento reducido ─────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}
