/* ============================
   RESTAURANTE SENA — styles.css
   GA7-220501096-AA2-EV02
   ============================ */

:root {
  --cream: #f5f0e8;
  --dark: #1a1a1a;
  --mid: #2d2d2d;
  --accent: #c8602a;
  --accent-light: #e8845a;
  --green: #3a7d44;
  --green-light: #4a9d57;
  --gold: #d4a843;
  --text: #3a3530;
  --text-muted: #7a7068;
  --border: #e0d8cc;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(26,26,26,.12);
  --shadow-lg: 0 12px 48px rgba(26,26,26,.18);
  --radius: 14px;
  --radius-sm: 8px;
  --transition: .22s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
em { font-style: italic; color: var(--accent); }

/* ===== UTILS ===== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.badge-tag {
  display: inline-block;
  background: rgba(200,96,42,.12);
  color: var(--accent);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid rgba(200,96,42,.2);
  margin-bottom: 16px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(200,96,42,.35);
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,96,42,.4); }
.btn-primary.full-width { width: 100%; justify-content: center; border-radius: var(--radius-sm); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--dark);
  font-size: .95rem;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 99px;
  border: 2px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dark);
  color: var(--white);
  font-size: .9rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}
.btn-secondary:hover { background: var(--mid); }

.btn-danger {
  background: #dc3545;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  transition: var(--transition);
}
.btn-danger:hover { background: #c82333; }

.btn-success {
  background: var(--green);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  transition: var(--transition);
}
.btn-success:hover { background: var(--green-light); }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,240,232,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--dark);
}
.logo-icon { font-size: 1.5rem; }
.logo-text { font-family: 'DM Sans', sans-serif; font-size: 1.05rem; }
.logo-text strong { font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-weight: 500; font-size: .9rem; transition: var(--transition); }
.nav-links a:hover { color: var(--accent); }
.btn-nav {
  background: var(--dark) !important;
  color: var(--white) !important;
  padding: 9px 20px !important;
  border-radius: 99px !important;
  font-size: .85rem !important;
}
.btn-nav:hover { background: var(--accent) !important; color: var(--white) !important; }

/* ===== HERO ===== */
.hero {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 24px;
  max-width: 1140px;
  margin: 0 auto;
  gap: 60px;
}
.hero-bg {
  position: fixed;
  top: -30%;
  right: -10%;
  width: 60vw;
  height: 80vh;
  background: radial-gradient(ellipse at center, rgba(200,96,42,.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-content { flex: 1; position: relative; z-index: 1; }
.hero-title { margin-bottom: 20px; color: var(--dark); }
.hero-sub { font-size: 1.1rem; color: var(--text-muted); max-width: 440px; margin-bottom: 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

.hero-visual { flex: 0 0 auto; position: relative; z-index: 1; }
.qr-card {
  background: var(--white);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border);
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.qr-label { font-weight: 700; font-size: 1.1rem; color: var(--dark); }
.qr-dots { display: flex; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: background .3s; }
.dot.active { background: var(--accent); }

/* ===== STEPS ===== */
.steps-section { padding: 100px 0; background: var(--white); }
.section-title { text-align: center; margin-bottom: 56px; color: var(--dark); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.step-card {
  padding: 36px 28px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  background: var(--cream);
  transition: var(--transition);
  animation: fadeUp .6s ease both;
  animation-delay: var(--delay);
}
.step-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.step-num {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .06em;
}
.step-icon { font-size: 2.4rem; margin-bottom: 16px; }
.step-card h3 { margin-bottom: 10px; color: var(--dark); }
.step-card p { color: var(--text-muted); font-size: .92rem; }

/* ===== FEATURES ===== */
.features-section { padding: 100px 0; }
.features-inner { display: flex; gap: 80px; align-items: center; flex-wrap: wrap; }
.features-text { flex: 1 1 340px; }
.features-text h2 { margin-bottom: 24px; }
.feat-list { list-style: none; margin-bottom: 36px; }
.feat-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
.feat-list li span { font-size: 1.2rem; }

.features-cards { flex: 0 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mini-stat {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  min-width: 140px;
  transition: var(--transition);
}
.mini-stat:hover { transform: scale(1.04); }
.mini-stat.accent { background: var(--accent); border-color: var(--accent); color: var(--white); }
.mini-stat.dark { background: var(--dark); border-color: var(--dark); color: var(--white); }
.mini-stat-num { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 900; }
.mini-stat-label { font-size: .78rem; font-weight: 500; opacity: .8; margin-top: 4px; }

/* ===== FOOTER ===== */
.footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 48px 24px 0; }
.footer .logo { color: white; }
.footer .logo-text { color: white; }
.footer-sub { font-size: .82rem; margin-top: 6px; }
.footer-inner { max-width: 1140px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: rgba(255,255,255,.6); text-decoration: none; font-size: .9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--accent-light); }
.footer-bottom { text-align: center; padding: 20px 24px; font-size: .8rem; opacity: .5; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,26,26,.6);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-box {
  background: var(--white);
  border-radius: 20px;
  padding: 44px 40px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalIn .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modalIn {
  from { transform: scale(.88) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--cream);
  border: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { background: var(--border); }
.modal-box h2 { margin-bottom: 8px; }
.modal-box p { color: var(--text-muted); font-size: .92rem; margin-bottom: 28px; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 8px; color: var(--text); }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  background: var(--cream);
  color: var(--text);
  transition: var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(200,96,42,.12);
}
.form-hint { font-size: .8rem; color: var(--text-muted); margin-top: 5px; display: block; }
.form-textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ===== TOAST ===== */
#toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--dark);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  min-width: 260px;
  box-shadow: var(--shadow-lg);
  animation: toastIn .3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid var(--accent);
}
.toast.success { border-color: var(--green); }
.toast.error { border-color: #dc3545; }
.toast.warning { border-color: var(--gold); }
@keyframes toastIn { from { transform: translateX(110%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { to { transform: translateX(110%); opacity: 0; } }

/* ===== MENU PAGE ===== */
.page-header {
  background: var(--dark);
  color: var(--white);
  padding: 48px 0 36px;
}
.page-header .container { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.page-header h1 { color: var(--white); font-size: clamp(1.8rem,4vw,2.4rem); }
.page-header p { color: rgba(255,255,255,.6); font-size: .9rem; }
.mesa-badge {
  background: var(--accent);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 99px;
  font-weight: 700;
  font-size: .95rem;
  white-space: nowrap;
}

.menu-controls {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: 68px;
  z-index: 50;
}
.menu-controls .container { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.search-wrap { position: relative; flex: 1; min-width: 200px; }
.search-wrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); opacity: .5; }
.search-wrap input { padding-left: 42px; }
.cats { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-btn {
  background: var(--cream);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 8px 18px;
  border-radius: 99px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.cat-btn:hover, .cat-btn.active { background: var(--accent); border-color: var(--accent); color: var(--white); }

.menu-layout { display: flex; gap: 32px; padding: 40px 0; }
.products-grid { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; align-content: start; }

.product-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.product-img {
  height: 160px;
  background: linear-gradient(135deg, #f5e6d3, #e8d5ba);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
}
.product-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--accent);
  color: white;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
}
.product-info { padding: 18px; }
.product-info h3 { font-size: 1rem; margin-bottom: 6px; }
.product-info p { font-size: .83rem; color: var(--text-muted); margin-bottom: 14px; line-height: 1.5; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: var(--accent); }
.btn-add {
  background: var(--dark);
  color: white;
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.btn-add:hover { background: var(--accent); transform: scale(1.1); }
.btn-add:disabled { background: var(--border); cursor: not-allowed; transform: none; }

/* ===== CART SIDEBAR ===== */
.cart-sidebar {
  width: 320px;
  flex-shrink: 0;
  position: sticky;
  top: 120px;
  height: fit-content;
}
.cart-box {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.cart-header {
  background: var(--dark);
  color: var(--white);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-count {
  background: var(--accent);
  color: white;
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
}
.cart-items { max-height: 300px; overflow-y: auto; }
.cart-empty { padding: 36px 20px; text-align: center; color: var(--text-muted); font-size: .9rem; }
.cart-item { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.cart-item-emoji { font-size: 1.8rem; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: .88rem; font-weight: 600; }
.cart-item-price { font-size: .82rem; color: var(--accent); font-weight: 700; }
.cart-qty-ctrl { display: flex; align-items: center; gap: 8px; }
.qty-btn { width: 26px; height: 26px; border: 1.5px solid var(--border); border-radius: 50%; background: none; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.qty-btn:hover { background: var(--accent); border-color: var(--accent); color: white; }
.cart-item-qty { font-size: .9rem; font-weight: 700; min-width: 20px; text-align: center; }

.cart-summary { padding: 18px; border-top: 1px solid var(--border); }
.cart-row { display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: 8px; }
.cart-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1rem; padding-top: 10px; border-top: 1.5px solid var(--border); margin-top: 8px; }
.cart-actions { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.notes-area { margin: 0 18px 18px; }

/* ===== LOGIN PAGE ===== */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}
.login-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(200,96,42,.15), transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(212,168,67,.08), transparent 50%);
}
.login-card {
  background: var(--white);
  border-radius: 24px;
  padding: 52px 48px;
  max-width: 440px;
  width: 100%;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-lg);
}
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo .logo-icon { font-size: 2.8rem; display: block; margin-bottom: 10px; }
.login-logo h2 { font-size: 1.5rem; }

/* ===== ADMIN PANEL ===== */
.admin-layout { display: flex; min-height: calc(100vh - 68px); }
.sidebar {
  width: 240px;
  background: var(--dark);
  color: var(--white);
  padding: 32px 0;
  flex-shrink: 0;
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  overflow-y: auto;
}
.sidebar-logo {
  padding: 0 24px 28px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 24px;
}
.sidebar-nav { list-style: none; }
.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}
.sidebar-nav li a:hover, .sidebar-nav li a.active {
  background: rgba(255,255,255,.06);
  color: var(--white);
  border-left: 3px solid var(--accent);
}

.admin-main { flex: 1; background: #f0ebe3; padding: 40px; overflow-x: hidden; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px; flex-wrap: wrap; gap: 16px; }
.admin-topbar h2 { color: var(--dark); }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 36px; }
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1.5px solid var(--border);
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card .stat-icon { font-size: 1.8rem; margin-bottom: 12px; }
.stat-card .stat-num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 900; color: var(--dark); }
.stat-card .stat-label { font-size: .82rem; color: var(--text-muted); margin-top: 4px; }
.stat-card.highlight { background: var(--accent); border-color: var(--accent); color: white; }
.stat-card.highlight .stat-num, .stat-card.highlight .stat-label { color: white; }

.panel {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  overflow: hidden;
  margin-bottom: 28px;
}
.panel-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.panel-header h3 { font-size: 1.05rem; color: var(--dark); }
.panel-body { padding: 24px; }

.orders-list { display: flex; flex-direction: column; gap: 14px; }
.order-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  transition: var(--transition);
}
.order-item:hover { border-color: var(--accent); }
.order-num { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: var(--dark); }
.order-table { font-size: .82rem; color: var(--text-muted); }
.order-time { font-size: .8rem; color: var(--text-muted); }
.order-actions { margin-left: auto; display: flex; gap: 10px; }

.badge-status {
  padding: 4px 12px;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge-pendiente { background: #fff3cd; color: #856404; }
.badge-preparacion { background: #cfe2ff; color: #0a58ca; }
.badge-listo { background: #d1e7dd; color: #0f5132; }
.badge-entregado { background: #e2e3e5; color: #41464b; }
.badge-cancelado { background: #f8d7da; color: #842029; }

/* ===== TABLE ===== */
.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.data-table th { padding: 12px 16px; text-align: left; background: var(--cream); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); border-bottom: 1.5px solid var(--border); }
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--cream); }
.table-actions { display: flex; gap: 8px; }

/* ===== PEDIDO / TRACKING ===== */
.tracking-section { max-width: 680px; margin: 0 auto; padding: 60px 20px; }
.timeline { display: flex; flex-direction: column; gap: 0; margin: 40px 0; }
.timeline-item { display: flex; gap: 20px; padding-bottom: 32px; position: relative; }
.timeline-item:last-child { padding-bottom: 0; }
.tl-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 2px solid var(--border);
  background: var(--white);
  transition: var(--transition);
  z-index: 1;
}
.tl-dot.done { background: var(--green); border-color: var(--green); }
.tl-dot.active { background: var(--accent); border-color: var(--accent); animation: pulse 1.5s ease-in-out infinite; }
.tl-line {
  position: absolute;
  left: 21px;
  top: 44px;
  width: 2px;
  height: calc(100% - 12px);
  background: var(--border);
  transition: var(--transition);
}
.tl-line.done { background: var(--green); }
.tl-content { padding-top: 10px; }
.tl-content h4 { font-size: .95rem; font-weight: 700; color: var(--dark); }
.tl-content p { font-size: .83rem; color: var(--text-muted); margin-top: 4px; }

@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(200,96,42,.4); }
  50% { box-shadow: 0 0 0 10px rgba(200,96,42,0); }
}

/* ===== FACTURA ===== */
.invoice-wrap { max-width: 680px; margin: 0 auto; padding: 60px 20px; }
.invoice-box {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
}
.invoice-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 40px; flex-wrap: wrap; gap: 20px; }
.invoice-title { font-size: 2rem; font-weight: 900; color: var(--dark); }
.invoice-num { font-size: .85rem; color: var(--text-muted); margin-top: 4px; }
.invoice-table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: .9rem; }
.invoice-table th { padding: 10px 12px; text-align: left; background: var(--cream); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.invoice-table td { padding: 12px; border-bottom: 1px solid var(--border); }
.invoice-totals { margin-left: auto; max-width: 280px; }
.inv-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: .9rem; border-bottom: 1px solid var(--border); }
.inv-total { display: flex; justify-content: space-between; padding: 14px 0 0; font-weight: 700; font-size: 1.1rem; color: var(--accent); }
.invoice-footer { text-align: center; margin-top: 36px; padding-top: 28px; border-top: 1px dashed var(--border); color: var(--text-muted); font-size: .85rem; }
.print-actions { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.fade-in { animation: fadeUp .5s ease both; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero { flex-direction: column; padding: 60px 24px; min-height: auto; text-align: center; }
  .hero-sub { margin: 0 auto 28px; }
  .hero-actions { justify-content: center; }
  .menu-layout { flex-direction: column; }
  .cart-sidebar { width: 100%; position: static; }
  .admin-layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; display: flex; align-items: center; padding: 0; }
  .sidebar-logo { display: none; }
  .sidebar-nav { display: flex; overflow-x: auto; white-space: nowrap; padding: 8px; }
  .sidebar-nav li a { padding: 10px 16px; border-left: none; border-bottom: 2px solid transparent; }
  .sidebar-nav li a.active, .sidebar-nav li a:hover { border-bottom-color: var(--accent); border-left: none; }
  .admin-main { padding: 24px 16px; }
  .login-card { padding: 36px 28px; }
  .invoice-box { padding: 28px 20px; }
  .features-inner { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 2.4rem; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .features-cards { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   ENTRADAS DE LA PANTALLA DE BIENVENIDA: "Entrar con QR" / "Entrar sin QR"
   ============================================================ */
.entradas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 1rem; max-width: 560px; }
.entradas.una { grid-template-columns: minmax(0, 1fr); max-width: 280px; }
.entrada {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left;
  min-height: 132px; padding: 18px 20px; border-radius: 18px; cursor: pointer; font-family: inherit;
  background: var(--g, #006633); color: #fff; border: 2px solid var(--g, #006633);
  box-shadow: 0 8px 24px rgba(0, 102, 51, .25); transition: transform .12s, box-shadow .2s, background .15s;
}
.entrada:hover, .entrada:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 102, 51, .32); outline: none; }
.entrada.secundaria { background: #fff; color: var(--g, #006633); }
.entrada i { font-size: 34px; }
.entrada strong { font-size: 18px; }
.entrada span { font-size: 13px; opacity: .85; line-height: 1.4; }
.entrada-nota { font-size: 13px; color: var(--tm, #3a5544); margin-bottom: 1.6rem; }
.entrada-nota a { color: var(--g, #006633); font-weight: 600; }
@media (max-width: 480px) { .entrada { min-height: 120px; padding: 14px; } .entrada strong { font-size: 16px; } }

/* Lector de QR con cámara */
.lector-video-caja { position: relative; background: #0e1c12; border-radius: 16px; overflow: hidden; aspect-ratio: 1 / 1; margin: .8rem 0; }
.lector-video-caja video { width: 100%; height: 100%; object-fit: cover; display: block; }
.lector-marco { position: absolute; inset: 18%; border: 3px solid var(--y, #FFD100); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); pointer-events: none; }
.lector-mensaje { font-size: 14px; color: var(--tm, #3a5544); margin: .4rem 0 .8rem; min-height: 1.4em; }
.lector-mensaje.error { color: #b3261e; background: #fdecea; border-radius: 10px; padding: .6rem .8rem; }
.lector-acciones { display: flex; gap: .6rem; flex-wrap: wrap; }
.lector-acciones > * { flex: 1 1 160px; justify-content: center; }

/* Selector de mesas */
.selector-mesas { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .6rem; max-height: 55vh; overflow-y: auto; padding: 2px; }
.selector-mesa {
  background: #fff; border: 2px solid var(--bd, #c0d9c8); border-radius: 16px; padding: .7rem .4rem; cursor: pointer;
  font-family: inherit; color: var(--tx, #0e1c12); display: flex; flex-direction: column; align-items: center; gap: .15rem;
  transition: border-color .15s, transform .1s;
}
.selector-mesa:hover, .selector-mesa:focus-visible { border-color: var(--g, #006633); outline: none; }
.selector-mesa:active { transform: scale(.97); }
.selector-mesa .num { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 900; color: var(--gd, #004d26); line-height: 1; }
.selector-mesa .etq { font-size: 11px; color: var(--tm, #3a5544); }
.selector-mesa .estado { font-size: 10.5px; font-weight: 700; border-radius: 10px; padding: 1px 7px; }
.selector-mesa .estado.disponible { background: #e6f7ec; color: #2e7d32; }
.selector-mesa .estado.ocupada { background: #fff4cc; color: #8a6500; }
.selector-mesa .estado.reservada { background: #e8f0fe; color: #1e6f9f; }
.selector-cargando, .selector-error { text-align: center; color: var(--tm, #3a5544); padding: 1.5rem .5rem; font-size: 14px; }
.selector-confirmar { text-align: center; padding: .5rem 0; }
.selector-confirmar .num { font-family: 'Playfair Display', serif; font-size: 3.4rem; font-weight: 900; color: var(--gd, #004d26); line-height: 1; margin: .3rem 0 .6rem; }
