/* ==========================================================================
   THE PIÑON'S SNACKS — Light Gray Urban Doodle & Gastro Menu UI
   Fondo gris claro con patrón de contornos en gris oscuro:
   Sushis, Pescados, French Fries, Hamburguesas, Latas de Refresco, Alitas y Boneless
   ========================================================================== */

:root {
  /* Paleta Gris Claro con Contornos Gris Oscuro */
  --bg-primary: #e2e6ec;
  --bg-secondary: rgba(244, 246, 249, 0.94);
  --bg-card: rgba(255, 255, 255, 0.96);
  --bg-card-hover: #ffffff;
  --bg-elevated: #eaedf2;
  --bg-glass: rgba(235, 239, 245, 0.92);

  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #6b7280;

  --brand-primary: #ea580c;
  --brand-primary-hover: #c2410c;
  --brand-secondary: #d97706;
  --brand-gradient: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  --brand-glow: rgba(234, 88, 12, 0.25);

  --whatsapp-green: #16a34a;
  --whatsapp-hover: #15803d;
  --status-open: #059669;
  --status-closed: #dc2626;

  --border-color: rgba(17, 24, 39, 0.11);
  --border-strong: rgba(17, 24, 39, 0.22);

  --shadow-sm: 0 4px 14px rgba(17, 24, 39, 0.07);
  --shadow-md: 0 12px 28px rgba(17, 24, 39, 0.12);
  --shadow-lg: 0 24px 54px rgba(17, 24, 39, 0.22);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);

  /* Patrón SVG de Contornos de Comida en Gris Oscuro sobre Gris Claro:
     Incluye: Sushi Roll, Pescado, French Fries, Hamburguesa, Lata de Refresco, Alita y Boneless */
  --food-doodle-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360' viewBox='0 0 360 360'%3E%3Cg fill='none' stroke='%238c95a4' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' opacity='0.52'%3E%3C!-- 1. SUSHI ROLL (MAKI) --%3E%3Cellipse cx='58' cy='52' rx='28' ry='16'/%3E%3Cpath d='M30 52v22c0 9 12.5 16 28 16s28-7 28-16V52'/%3E%3Cellipse cx='58' cy='52' rx='18' ry='10'/%3E%3Ccircle cx='53' cy='50' r='3.5'/%3E%3Ccircle cx='63' cy='53' r='3'/%3E%3Cpath d='M56 56c3 0 5-2 5-4'/%3E%3C!-- 2. PESCADO (FISH) --%3E%3Cpath d='M165 48c22-16 52-14 70 4-18 18-48 20-70 4z'/%3E%3Cpath d='M165 52l-18-12v24l18-12z'/%3E%3Ccircle cx='220' cy='48' r='2.5' fill='%238c95a4'/%3E%3Cpath d='M206 41c-4 6-4 12 0 18'/%3E%3Cpath d='M186 45c3 3 3 7 0 10M195 44c3 4 3 8 0 12'/%3E%3C!-- 3. FRENCH FRIES (PAPAS A LA FRANCESA) --%3E%3Cpath d='M292 58l6 38h36l6-38c-10 5-20 5-24 5s-14 0-24-5z'/%3E%3Cpath d='M297 58v-22h8v24M307 59v-28h8v29M317 59v-25h8v25M327 58v-19h8v21'/%3E%3Cpath d='M304 74h24M306 84h20'/%3E%3C!-- 4. HAMBURGUESA (BURGER) --%3E%3Cpath d='M32 168c0-18 16-30 38-30s38 12 38 30H32z'/%3E%3Cpath d='M28 174c6-3 12 3 18 0s12-3 18 0 12 3 18 0 12-3 18 0 10 3 14 0'/%3E%3Crect x='31' y='180' width='78' height='10' rx='5'/%3E%3Cpath d='M34 190l12 8 14-8'/%3E%3Cpath d='M34 196h72c0 9-8 15-18 15H52c-10 0-18-6-18-15z'/%3E%3Cellipse cx='56' cy='150' rx='3' ry='1.5'/%3E%3Cellipse cx='72' cy='146' rx='3' ry='1.5'/%3E%3Cellipse cx='84' cy='153' rx='3' ry='1.5'/%3E%3C!-- 5. LATA DE REFRESCO (SODA CAN) --%3E%3Cellipse cx='195' cy='142' rx='22' ry='7'/%3E%3Cpath d='M173 142l-4 8v52c0 5 11 9 26 9s26-4 26-9v-52l-4-8'/%3E%3Cellipse cx='195' cy='142' rx='8' ry='3'/%3E%3Cpath d='M169 165c16-8 36 8 52 0M169 178c16-8 36 8 52 0'/%3E%3C!-- 6. ALITAS DE POLLO (CHICKEN WINGS) --%3E%3Cpath d='M282 172c-8-10 4-24 18-18 10 4 18 12 28 8 10-4 18 6 12 16-6 10-20 18-36 14-12-3-16-12-22-20z'/%3E%3Cpath d='M275 162l-10-6M272 168l-10-2'/%3E%3Ccircle cx='262' cy='155' r='3.5'/%3E%3Ccircle cx='260' cy='166' r='3.5'/%3E%3C!-- 7. BONELESS CRUJIETES + DIP --%3E%3Cpath d='M42 292c-6-8 2-18 12-16 6-6 18-4 22 4 8 2 10 14 2 20-6 6-18 6-26 2-6 0-8-4-10-10z'/%3E%3Cpath d='M92 302c-5-7 2-15 10-14 5-5 15-3 18 3 6 2 8 11 2 16-5 5-15 5-22 2-5 0-6-3-8-7z'/%3E%3Cpath d='M62 260c-4-6 2-13 9-12 4-4 13-3 16 3 5 1 7 10 1 14-4 4-13 4-19 1-4 0-5-2-7-6z'/%3E%3Ccircle cx='56' cy='286' r='1.5'/%3E%3Ccircle cx='68' cy='290' r='1.5'/%3E%3Ccircle cx='106' cy='298' r='1.5'/%3E%3C!-- 8. NIGIRI SUSHI Y PALILLOS --%3E%3Cpath d='M168 290c12-10 38-10 52 0 4 4 2 12-4 12h-44c-6 0-8-8-4-12z'/%3E%3Cpath d='M174 302v10c0 5 8 8 20 8s20-3 20-8v-10'/%3E%3Cpath d='M188 283v37M198 283v37'/%3E%3Cpath d='M155 268l78-18M158 276l76-12'/%3E%3C!-- 9. VASO DEBEBIDA / EXTRA SUSHI --%3E%3Cpath d='M286 276h42l-5 52h-32l-5-52z'/%3E%3Cpath d='M282 276h50'/%3E%3Cpath d='M307 276v-18l12-6'/%3E%3Cellipse cx='307' cy='302' rx='10' ry='6'/%3E%3C/g%3E%3C/svg%3E");
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  background-image: var(--food-doodle-bg);
  background-repeat: repeat;
  background-size: 340px 340px;
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  padding-bottom: 100px;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ==========================================================================
   BOTÓN DE INGRESO ADMINISTRADOR ESQUINADO ARRIBA A LA DERECHA
   ========================================================================== */
.admin-corner-btn {
  position: fixed;
  top: 10px;
  right: 12px;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: #1f2937;
  color: #f9fafb;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  transition: var(--transition);
}

.admin-corner-btn:hover {
  background: var(--brand-primary);
  transform: translateY(-1px);
}

/* ==========================================================================
   TOP BAR & HEADER (SOLO ESTADO AUTOMÁTICO Y ACCIONES)
   ========================================================================== */
.topbar {
  background: var(--bg-secondary);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  font-size: 0.85rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-right: 110px; /* Espacio para el botón Admin esquinado */
}

.store-status-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(5, 150, 105, 0.14);
  color: var(--status-open);
  border: 1px solid rgba(5, 150, 105, 0.35);
}

.status-badge.closed {
  background: rgba(220, 38, 38, 0.14);
  color: var(--status-closed);
  border-color: rgba(220, 38, 38, 0.35);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.65; }
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.icon-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-strong);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.icon-pill-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  transform: translateY(-1px);
}

/* ==========================================================================
   HERO SECTION (BENTO GASTRO HEADER COMPACTO)
   ========================================================================== */
.hero-section {
  padding: 12px 0 12px;
  position: relative;
}

.hero-bento {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.hero-main-card {
  background:
    radial-gradient(circle at 90% 10%, rgba(234, 88, 12, 0.12), transparent 55%),
    var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  box-shadow: 0 6px 16px var(--brand-glow);
  flex-shrink: 0;
  color: #fff;
}

.brand-kicker {
  display: block;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-primary);
  margin-bottom: 2px;
  line-height: 1.2;
}

.brand-title {
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--text-primary);
}

.brand-subtitle {
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.32;
  max-width: 560px;
  margin-top: 6px !important;
}

/* Selector de Modalidad de Pedido */
.service-mode-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: var(--bg-elevated);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.service-mode-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 6px;
  border-radius: 9px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition);
  white-space: nowrap;
}

.service-mode-btn.active {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 4px 12px var(--brand-glow);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.info-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.info-chip strong {
  color: var(--text-primary);
}

/* Promo Spotlight Card */
.hero-promo-card {
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  min-height: 225px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: #1f2937;
  isolation: isolate;
}

.hero-promo-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.6s ease;
}

.hero-promo-card:hover .hero-promo-bg {
  transform: scale(1.06);
}

.hero-promo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.95) 15%, rgba(17, 24, 39, 0.45) 65%, rgba(17, 24, 39, 0.15) 100%);
  z-index: -1;
}

.promo-badge {
  align-self: flex-start;
  background: #fbbf24;
  color: #111827;
  font-weight: 800;
  font-size: 0.76rem;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.promo-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.promo-desc {
  color: #e5e7eb;
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.promo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.promo-price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fbbf24;
}

.promo-cta-btn {
  background: var(--brand-gradient);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 11px 20px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 20px var(--brand-glow);
  transition: var(--transition);
}

.promo-cta-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

/* Barra de Sabores Rápida */
.flavors-showcase {
  margin-top: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  box-shadow: var(--shadow-sm);
}

.flavors-showcase::-webkit-scrollbar {
  display: none;
}

.flavors-label {
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-primary);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.flavor-tag {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--text-primary);
}

.flavor-tag.powder {
  border-color: rgba(147, 51, 234, 0.35);
  background: rgba(147, 51, 234, 0.1);
  color: #581c87;
}

/* ==========================================================================
   STICKY NAVIGATION & SEARCH BAR
   ========================================================================== */
.sticky-controls {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-strong);
  padding: 14px 0;
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.06);
}

.controls-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.search-box {
  flex: 1;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  padding: 12px 42px 12px 44px;
  font-size: 0.94rem;
  color: var(--text-primary);
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

.clear-search-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  display: none;
}

.filter-toggle-btn {
  padding: 11px 16px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-strong);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  transition: var(--transition);
}

.filter-toggle-btn.active {
  background: var(--brand-gradient);
  border-color: transparent;
  color: #ffffff;
}

/* Categorías Horizontales */
.category-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-strong);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: var(--transition);
}

.cat-pill:hover {
  color: var(--text-primary);
  border-color: var(--brand-primary);
}

.cat-pill.active {
  background: var(--brand-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 16px var(--brand-glow);
}

.cat-count {
  font-size: 0.74rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(17, 24, 39, 0.12);
}

.cat-pill.active .cat-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* ==========================================================================
   CATALOG SECTIONS & PRODUCT CARDS
   ========================================================================== */
.catalog-main {
  padding: 24px 0 40px;
}

.category-section {
  margin-bottom: 42px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 14px 18px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.section-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 18px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-md);
}

.product-card.sold-out {
  opacity: 0.58;
}

.product-media {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: #d1d5db;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img {
  transform: scale(1.06);
}

.card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge-pill {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-popular {
  background: #ea580c;
  color: #fff;
}

.badge-custom {
  background: rgba(17, 24, 39, 0.88);
  color: #fbbf24;
}

.badge-soldout {
  background: #dc2626;
  color: #fff;
}

.price-tag-floating {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(17, 24, 39, 0.92);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  padding: 5px 13px;
  border-radius: var(--radius-full);
}

.product-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 12px;
}

.product-title {
  font-size: 1.14rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.product-desc {
  color: var(--text-secondary);
  font-size: 0.86rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.modifier-hint {
  font-size: 0.76rem;
  color: var(--brand-primary);
  font-weight: 700;
}

.add-product-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: var(--radius-full);
  background: var(--brand-gradient);
  color: #fff;
  font-size: 0.83rem;
  font-weight: 700;
  transition: var(--transition);
  margin-left: auto;
}

.add-product-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 16px var(--brand-glow);
}

.add-product-btn:disabled {
  background: var(--bg-elevated);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ==========================================================================
   MODALS & DRAWERS (CUSTOMIZATION, MENU/PEDIDO, ADMIN, QR)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.65);
  backdrop-filter: blur(5px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: translateY(18px) scale(0.98);
  transition: var(--transition);
}

.modal-backdrop.open .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-header-img {
  position: relative;
  height: 195px;
  background: #d1d5db;
  flex-shrink: 0;
}

.modal-header-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.82);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.modal-body {
  padding: 22px;
  overflow-y: auto;
  flex: 1;
}

.modifier-group-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 15px;
  margin-top: 14px;
}

.modifier-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.modifier-req-tag {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.modifier-req-tag.required {
  background: rgba(234, 88, 12, 0.16);
  color: var(--brand-primary);
}

.modifier-req-tag.optional {
  background: #ffffff;
  color: var(--text-secondary);
}

.modifier-options-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.modifier-opt-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.modifier-opt-label:hover {
  border-color: var(--brand-primary);
}

.modifier-opt-label.selected {
  border-color: var(--brand-primary);
  background: rgba(234, 88, 12, 0.1);
}

.modifier-opt-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modifier-price-plus {
  font-weight: 800;
  color: var(--brand-primary);
  font-size: 0.8rem;
}

.modal-footer {
  padding: 16px 22px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 14px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  padding: 6px 12px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-elevated);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirm-add-btn {
  flex: 1;
  background: var(--brand-gradient);
  color: #fff;
  font-weight: 800;
  font-size: 0.96rem;
  padding: 14px 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 24px var(--brand-glow);
}

/* ==========================================================================
   FLOATING BOTTOM BAR & PEDIDO DRAWER
   ========================================================================== */
.floating-cart-bar {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  width: calc(100% - 32px);
  max-width: 620px;
  background: var(--brand-gradient);
  color: #fff;
  border-radius: var(--radius-full);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 16px 40px rgba(234, 88, 12, 0.45);
  z-index: 60;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.floating-cart-bar.visible {
  transform: translateX(-50%) translateY(0);
}

.cart-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-count-badge {
  background: #fff;
  color: var(--brand-primary);
  font-weight: 800;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* Slide-over Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.62);
  backdrop-filter: blur(4px);
  z-index: 110;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  background: #ffffff;
  border-left: 1px solid var(--border-strong);
  z-index: 120;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-backdrop.open .cart-drawer {
  transform: translateX(0);
}

.drawer-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-elevated);
}

.drawer-body {
  padding: 20px 22px;
  overflow-y: auto;
  flex: 1;
}

.cart-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.cart-item-mods {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.form-group {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
}

.whatsapp-checkout-btn {
  width: 100%;
  background: #25d366;
  color: #052e16;
  font-weight: 800;
  font-size: 0.98rem;
  padding: 15px 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
}

.whatsapp-checkout-btn:hover {
  background: #1ebe5d;
  color: #fff;
  transform: translateY(-1px);
}

/* ==========================================================================
   DISEÑO DE TICKET / RESUMEN DEL PEDIDO
   ========================================================================== */
.comanda-preview-card {
  background: #f8fafc;
  border: 1px dashed var(--border-strong);
  border-radius: 16px;
  padding: 15px;
  margin-top: 16px;
  font-family: 'Plus Jakarta Sans', monospace;
}

.comanda-header-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed var(--border-strong);
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.comanda-folio-badge {
  background: var(--brand-gradient);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 3px 10px;
  border-radius: 8px;
}

.comanda-ticket-paper {
  background: #fffdf9;
  color: #0f172a;
  border-radius: 18px;
  padding: 22px 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  border: 1px solid var(--border-strong);
  border-top: 6px solid var(--brand-primary);
  font-size: 0.86rem;
}

.comanda-ticket-paper .ticket-divider {
  border: none;
  border-top: 2px dashed #cbd5e1;
  margin: 12px 0;
}

/* ==========================================================================
   ADMIN PANEL MODAL
   ========================================================================== */
.admin-dialog {
  max-width: 920px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  padding: 0 22px;
  background: var(--bg-elevated);
}

.admin-tab-btn {
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 3px solid transparent;
}

.admin-tab-btn.active {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-table th, .admin-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.btn-secondary {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.btn-primary {
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  background: var(--brand-gradient);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
}

/* ==========================================================================
   TOAST NOTIFICATION & FOOTER
   ========================================================================== */
.toast-container {
  position: fixed;
  top: 56px;
  right: 16px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #111827;
  border-left: 4px solid var(--brand-primary);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  font-size: 0.86rem;
  font-weight: 600;
  animation: slideInRight 0.25s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.site-footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  padding: 28px 0;
  margin-top: 40px;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

/* ==========================================================================
   SIMULADOR VISTA MÓVIL (CUANDO SE ACTIVA DESDE PC) Y RESPONSIVE
   ========================================================================== */
body.mobile-simulator-active {
  max-width: 412px;
  margin: 18px auto;
  border: 10px solid #1f2937;
  border-radius: 44px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  min-height: 840px;
  position: relative;
}

body.mobile-simulator-active .topbar-inner {
  padding-right: 0;
}

body.mobile-simulator-active .admin-corner-btn {
  position: absolute;
  top: 10px;
  right: 10px;
}

body.mobile-simulator-active .hero-bento,
body.mobile-simulator-active .products-grid {
  grid-template-columns: 1fr !important;
}

body.mobile-simulator-active .product-card {
  flex-direction: row;
  align-items: stretch;
  min-height: 128px;
}

body.mobile-simulator-active .product-media {
  width: 118px;
  height: auto;
  flex-shrink: 0;
}

body.mobile-simulator-active .product-body {
  padding: 12px;
  gap: 6px;
}

body.mobile-simulator-active .product-title {
  font-size: 0.98rem;
}

body.mobile-simulator-active .product-desc {
  font-size: 0.76rem;
  -webkit-line-clamp: 2;
}

body.mobile-simulator-active .floating-cart-bar {
  max-width: 370px;
}

@media (max-width: 900px) {
  .hero-bento {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hero-main-card {
    padding: 12px 14px;
    gap: 8px;
  }
}

@media (max-width: 600px) {
  .topbar {
    padding: 7px 0;
  }
  .topbar-inner {
    padding-right: 84px;
    gap: 6px;
  }
  .status-badge {
    padding: 5px 10px;
    font-size: 0.72rem;
    gap: 5px;
  }
  .icon-pill-btn {
    padding: 5px 10px;
    font-size: 0.74rem;
    gap: 4px;
  }
  .admin-corner-btn {
    top: 7px;
    right: 8px;
    padding: 5px 10px;
    font-size: 0.72rem;
  }
  .service-mode-selector {
    grid-template-columns: repeat(3, 1fr);
    padding: 3px;
    gap: 4px;
  }
  .service-mode-btn {
    font-size: 0.72rem;
    padding: 6px 4px;
  }
  .products-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .product-card {
    flex-direction: row;
    align-items: stretch;
    min-height: 128px;
  }
  .product-media {
    width: 118px;
    height: auto;
    flex-shrink: 0;
  }
  .product-body {
    padding: 12px 14px;
    gap: 8px;
  }
  .product-title {
    font-size: 1rem;
  }
  .product-desc {
    font-size: 0.78rem;
    -webkit-line-clamp: 2;
  }
  .price-tag-floating {
    font-size: 0.92rem;
    padding: 3px 9px;
    bottom: 8px;
    right: 8px;
  }
  .brand-logo {
    width: 42px;
    height: 42px;
    font-size: 1.35rem;
    border-radius: 12px;
  }
  .hero-promo-card {
    min-height: 195px;
    padding: 16px;
  }
  .promo-title {
    font-size: 1.25rem;
  }
  .promo-desc {
    font-size: 0.8rem;
    margin-bottom: 10px;
  }
  .promo-price {
    font-size: 1.35rem;
  }
}
