:root {
      color-scheme: light;
      --bg-main: #fff7f0;
      --bg-gradient: linear-gradient(180deg, rgba(255, 224, 178, 0.35), transparent 65%);
      --header-gradient: linear-gradient(180deg, 
        #000000 0%, 
        #000000 20%, 
        #0a0a0a 40%, 
        #1a1a1a 60%, 
        #2d1a0a 75%, 
        #4a2a0f 85%, 
        #6b3d1a 92%, 
        #ff7043 98%, 
        #ff9800 100%);
      --surface: #ffffff;
      --surface-alt: #fff0dd;
      --primary: #f4511e;
      --primary-dark: #bf360c;
      --accent: #ff9800;
      --accent-light: rgba(255, 152, 0, 0.15);
      --accent-soft: rgba(255, 152, 0, 0.08);
      --text-main: #1f1b16;
      --text-soft: #5f6368;
      /* Colores con contraste garantizado WCAG AA */
      --text-on-dark: #ffffff; /* Ratio: 21:1 sobre negro ✅ */
      --text-on-light: #1a1a1a; /* Ratio: 12.6:1 sobre blanco ✅ */
      --border: rgba(255, 152, 0, 0.28);
      --radius-lg: 18px;
      --radius-md: 14px;
      --radius-sm: 10px;
      --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.08);
      --shadow-card: 0 10px 26px rgba(244, 81, 30, 0.16);
      --shadow-hover: 0 15px 32px rgba(244, 81, 30, 0.22);
      --transition: 0.24s ease;
      --animation-state: running;
    }

    /* ⚡ OPTIMIZACIÓN: Pausar TODAS las animaciones cuando la ventana está oculta */
    body.window-hidden,
    body.window-hidden * {
      animation-play-state: paused !important;
      transition: none !important;
    }
    
    /* ⚡ OPTIMIZACIÓN ELECTRON: Desactivar TODAS las animaciones en la app de escritorio */
    /* La página web mantiene todas sus animaciones normalmente */
    html.electron-mode *,
    html.electron-mode *::before,
    html.electron-mode *::after {
      animation: none !important;
      animation-delay: 0s !important;
      animation-duration: 0s !important;
      transition-duration: 0s !important;
      transform: none !important;
      will-change: auto !important;
    }
    
    /* Desactivar partículas flotantes en Electron (consumen mucha GPU) */
    html.electron-mode .particles-container,
    html.electron-mode .welcome-particles {
      display: none !important;
    }
    
    /* Desactivar efectos de fondo pesados */
    html.electron-mode body::before {
      display: none !important;
    }

    html {
      width: 100%;
      max-width: 100%;
      overflow-x: hidden;
      box-sizing: border-box;
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
      background: var(--bg-main);
      background-image: var(--bg-gradient);
      min-height: 100vh;
      color: var(--text-main);
      display: flex;
      flex-direction: column;
      position: relative;
      overflow-x: hidden;
    }
    
    body.welcome-active {
      overflow: hidden !important;
      height: 100vh !important;
      position: fixed !important;
      width: 100% !important;
    }

    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background-image: var(--logo-pattern, none);
      background-size: 320px 320px;
      background-position: center;
      background-repeat: repeat;
      opacity: 0.05;
      pointer-events: none;
      z-index: 0;
    }

    /* ===== PANTALLA DE BIENVENIDA ===== */
    .welcome-screen {
      position: fixed;
      inset: 0;
      /* Gradiente vertical: Negro en la parte superior (zona del logo) → Naranja/Amarillo en la inferior */
      background: linear-gradient(180deg, 
        #000000 0%, 
        #1a1a1a 15%, 
        #2d1a0a 30%, 
        #4a2a0f 45%, 
        #6b3d1a 60%, 
        #ff7043 75%, 
        #ff9800 90%, 
        #ffc107 100%) !important;
      background-image: 
        /* Brillo sutil en la zona superior (complementa el logo) */
        radial-gradient(circle at 50% 20%, rgba(255, 193, 7, 0.15) 0%, transparent 40%),
        /* Acentos naranja en la zona media */
        radial-gradient(circle at 30% 60%, rgba(255, 112, 67, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 152, 0, 0.2) 0%, transparent 45%),
        /* Acentos amarillos en la zona inferior */
        radial-gradient(circle at 50% 85%, rgba(255, 193, 7, 0.18) 0%, transparent 55%) !important;
      background-color: #000000 !important;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10000;
      opacity: 1 !important;
      transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
      visibility: visible;
      cursor: pointer;
      overflow: hidden;
      box-sizing: border-box;
    }

    .welcome-screen.hidden {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }

    .welcome-particles {
      position: absolute;
      inset: 0;
      overflow: hidden;
      pointer-events: none;
    }

    .particle {
      position: absolute;
      width: 8px;
      height: 8px;
      background: rgba(255, 255, 255, 0.9);
      border-radius: 50%;
      box-shadow: 
        0 0 12px rgba(255, 255, 255, 0.8),
        0 0 24px rgba(255, 255, 255, 0.5),
        0 0 36px rgba(255, 255, 255, 0.3);
      animation: float-particle 10s infinite ease-in-out;
    }
    
    .particle::before {
      content: '';
      position: absolute;
      inset: -4px;
      background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
      border-radius: 50%;
      animation: particle-glow 2.5s ease-in-out infinite alternate;
    }
    
    .particle::after {
      content: '';
      position: absolute;
      inset: -6px;
      background: radial-gradient(circle, rgba(255, 193, 7, 0.3) 0%, transparent 80%);
      border-radius: 50%;
      animation: particle-glow 3s ease-in-out infinite alternate-reverse;
    }
    
    @keyframes particle-glow {
      0% { opacity: 0.5; transform: scale(0.85); }
      100% { opacity: 0.9; transform: scale(1.15); }
    }

    .particle:nth-child(1) {
      left: 10%;
      top: 20%;
      animation-delay: 0s;
      animation-duration: 6s;
    }

    .particle:nth-child(2) {
      left: 80%;
      top: 30%;
      animation-delay: 1s;
      animation-duration: 7s;
    }

    .particle:nth-child(3) {
      left: 20%;
      top: 70%;
      animation-delay: 2s;
      animation-duration: 8s;
    }

    .particle:nth-child(4) {
      left: 70%;
      top: 80%;
      animation-delay: 0.5s;
      animation-duration: 6.5s;
    }

    .particle:nth-child(5) {
      left: 50%;
      top: 10%;
      animation-delay: 1.5s;
      animation-duration: 7.5s;
    }

    .particle:nth-child(6) {
      left: 30%;
      top: 50%;
      animation-delay: 2.5s;
      animation-duration: 8.5s;
    }

    .particle:nth-child(7) {
      left: 90%;
      top: 60%;
      animation-delay: 0.8s;
      animation-duration: 6.8s;
    }

    .particle:nth-child(8) {
      left: 5%;
      top: 90%;
      animation-delay: 1.8s;
      animation-duration: 7.2s;
    }

    @keyframes float-particle {
      0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
      }
      25% {
        transform: translate(20px, -30px) scale(1.2);
        opacity: 0.8;
      }
      50% {
        transform: translate(-15px, -50px) scale(0.9);
        opacity: 0.7;
      }
      75% {
        transform: translate(30px, -20px) scale(1.1);
        opacity: 0.9;
      }
    }

    .welcome-content {
      position: relative;
      text-align: center;
      z-index: 1;
      animation: welcome-fade-in 1s ease-out;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 100%;
      max-width: 700px;
      padding: 20px;
      box-sizing: border-box;
      overflow: hidden;
      max-height: 100vh;
      flex-shrink: 1;
    }

    @keyframes welcome-fade-in {
      0% {
        opacity: 0;
        transform: translateY(20px);
      }
      100% {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .welcome-logo-container {
      position: relative;
      margin-bottom: 24px;
      animation: logo-scale-in 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100%;
      max-width: 100%;
      overflow: hidden;
      padding: 10px;
      box-sizing: border-box;
      z-index: 2;
      flex-shrink: 0;
    }

    @keyframes logo-scale-in {
      0% {
        opacity: 0;
        transform: scale(0.5);
      }
      50% {
        transform: scale(1.1);
      }
      100% {
        opacity: 1;
        transform: scale(1);
      }
    }

    .welcome-logo {
      width: auto;
      height: auto;
      max-width: min(380px, 92vw);
      max-height: min(380px, 40vh);
      object-fit: contain;
      object-position: center center;
      filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
      animation: logo-glow 2.5s ease-in-out infinite alternate;
      display: block;
      position: relative;
      z-index: 2;
      will-change: filter;
      margin: 0 auto;
      flex-shrink: 0;
    }
    
    .welcome-logo[src=""] {
      display: none;
    }

    @keyframes logo-glow {
      0% {
        filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
      }
      100% {
        filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
      }
    }
    
    /* Optimización de rendimiento - usar transform en lugar de filter cuando sea posible */
    @media (prefers-reduced-motion: no-preference) {
      .welcome-logo {
        animation: logo-glow 2.5s ease-in-out infinite alternate;
      }
    }
    
    @media (prefers-reduced-motion: reduce) {
      .welcome-logo {
        animation: none;
        filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
      }
    }

    .welcome-logo-glow {
      display: none;
    }

    .welcome-title {
      font-size: 2.2rem;
      font-weight: 700;
      color: #fff;
      margin: 0 0 20px 0;
      text-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.5),
        0 2px 6px rgba(0, 0, 0, 0.4);
      animation: title-slide-in 1.2s ease-out 0.3s both;
      letter-spacing: 2px;
      line-height: 1.2;
      text-align: center;
      flex-shrink: 0;
    }
    
    .brand-emphasis {
      color: #fff;
      font-weight: 700;
      letter-spacing: 2px;
      text-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.3);
    }
    
    .welcome-message {
      font-size: 0.95rem;
      font-weight: 400;
      color: rgba(255, 255, 255, 0.95);
      margin: 0 0 16px 0;
      text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.4),
        0 1px 4px rgba(0, 0, 0, 0.3);
      animation: message-fade-in 1.4s ease-out 0.6s both;
      letter-spacing: 0.2px;
      max-width: 92%;
      line-height: 1.45;
      flex-shrink: 0;
      text-align: center;
    }

    .welcome-line {
      margin: 0 0 8px 0;
      text-align: center;
      color: rgba(255, 255, 255, 0.95);
    }

    .welcome-line-lead {
      font-size: 1rem;
      opacity: 0.95;
    }

    .welcome-line-strong {
      font-size: 1.08rem;
      font-weight: 700;
      margin-bottom: 10px;
      color: #fff;
    }
    
    .warning-text {
      font-size: 0.98rem;
      font-weight: 500;
      margin: 0 0 12px 0;
      text-align: center;
      color: rgba(255, 255, 255, 0.98);
    }
    
    .warning-text .brand-emphasis {
      font-weight: 500;
      letter-spacing: 0.2px;
      text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.4),
        0 1px 4px rgba(0, 0, 0, 0.3);
    }
    
    .warning-list {
      list-style: none;
      padding: 0;
      margin: 0 auto 12px auto;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      width: 100%;
      max-width: 90%;
    }
    
    .warning-list li {
      margin: 4px 0;
      padding: 0;
      position: relative;
      font-size: 0.88rem;
      line-height: 1.4;
      text-align: left;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: flex-start;
    }
    
    .warning-list li::before {
      content: '•';
      margin-right: 10px;
      color: rgba(255, 255, 255, 0.9);
      font-weight: normal;
      flex-shrink: 0;
      width: 12px;
      text-align: center;
    }
    
    .warning-footer {
      font-size: 0.85rem;
      font-weight: 400;
      margin: 10px 0 4px 0;
      text-align: center;
      opacity: 0.92;
      line-height: 1.3;
      max-width: 100%;
      word-wrap: break-word;
      hyphens: auto;
      flex-shrink: 0;
    }
    
    .warning-footer-2 {
      font-size: 0.82rem;
      font-weight: 400;
      margin: 0;
      text-align: center;
      opacity: 0.88;
      line-height: 1.3;
      max-width: 100%;
      word-wrap: break-word;
      flex-shrink: 0;
    }
    
    @keyframes message-fade-in {
      0% {
        opacity: 0;
        transform: translateY(15px);
      }
      100% {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes title-slide-in {
      0% {
        opacity: 0;
        transform: translateY(30px);
      }
      100% {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .welcome-hint {
      font-size: 0.8rem;
      font-weight: 300;
      color: rgba(255, 255, 255, 0.85);
      margin: 16px 0 0 0;
      text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    }

    .welcome-copyright {
      position: absolute;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      font-size: 0.7rem;
      font-weight: 300;
      color: rgba(255, 255, 255, 0.7);
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
      text-align: center;
      width: auto;
      max-width: calc(100vw - 40px);
      padding: 0 20px;
      box-sizing: border-box;
      z-index: 10;
      pointer-events: none;
      white-space: nowrap;
      letter-spacing: 0.5px;
      opacity: 0.9;
      flex-shrink: 0;
    }
    
    @keyframes hint-pulse {
      0%, 100% {
        opacity: 0.7;
        transform: scale(1);
      }
      50% {
        opacity: 1;
        transform: scale(1.05);
      }
    }

    .welcome-culinary-elements {
      margin-top: 16px;
      display: flex;
      gap: 16px;
      justify-content: center;
      animation: elements-fade-in 1s ease-out 0.9s both;
      flex-shrink: 0;
    }

    @keyframes elements-fade-in {
      0% {
        opacity: 0;
        transform: scale(0.8);
      }
      100% {
        opacity: 1;
        transform: scale(1);
      }
    }

    .culinary-icon {
      display: inline-block;
      filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    }

    .culinary-icon.star-large {
      font-size: 2.5rem;
      animation: icon-bounce 2s ease-in-out infinite;
      animation-delay: 0s;
    }

    .culinary-icon.fire-large {
      font-size: 4rem;
      animation: icon-bounce 2s ease-in-out infinite;
      animation-delay: 0.3s;
      margin: 0 8px;
    }

    .culinary-icon.star-small {
      font-size: 1.5rem;
      animation: icon-bounce 2s ease-in-out infinite;
      animation-delay: 0.6s;
    }

    @keyframes icon-bounce {
      0%, 100% {
        transform: translateY(0) rotate(0deg);
      }
      50% {
        transform: translateY(-10px) rotate(5deg);
      }
    }

    /* Responsive para pantalla de bienvenida */
    @media screen and (max-width: 768px) {
      .welcome-logo {
        max-width: min(300px, 88vw);
        max-height: min(300px, 38vh);
      }
      
      .welcome-logo-container {
        padding: 8px;
        margin-bottom: 12px;
      }
      
      .welcome-content {
        padding: 10px;
        max-height: 100vh;
      }
      
      .welcome-title {
        font-size: 1.6rem;
        letter-spacing: 1.2px;
        margin-bottom: 10px;
        line-height: 1.1;
      }
      
      .welcome-message {
        font-size: 0.78rem;
        max-width: 92%;
        line-height: 1.35;
        margin-bottom: 8px;
      }

      .welcome-line-lead {
        font-size: 0.88rem;
      }

      .welcome-line-strong {
        font-size: 0.95rem;
        margin-bottom: 6px;
      }
      
      .warning-text {
        font-size: 0.82rem;
        margin-bottom: 5px;
      }
      
      .warning-list {
        margin-bottom: 6px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 92%;
      }
      
      .warning-list li {
        font-size: 0.72rem;
        margin: 3px 0;
        line-height: 1.25;
        text-align: left;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
      }
      
      .warning-list li::before {
        flex-shrink: 0;
        width: 10px;
        margin-right: 8px;
        text-align: center;
      }
      
      .warning-footer {
        font-size: 0.7rem;
        margin: 5px auto 2px auto;
        line-height: 1.15;
      }
      
      .warning-footer-2 {
        font-size: 0.7rem;
        margin: 2px auto 0 auto;
        line-height: 1.15;
      }
      
      .welcome-hint {
        font-size: 0.68rem;
        margin-top: 8px;

      }

      .welcome-copyright {
        font-size: 0.6rem;
        bottom: 15px;
        transform: translateX(-50%);
        padding: 0 15px;
        white-space: nowrap;
        max-width: calc(100vw - 30px);
        letter-spacing: 0.3px;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      
      .welcome-culinary-elements {
        margin-top: 8px;
        gap: 10px;
      }

      .culinary-icon.star-large {
        font-size: 2rem;
      }
      
      .culinary-icon.fire-large {
        font-size: 3rem;
      }
      
      .culinary-icon.star-small {
        font-size: 1.2rem;
      }
    }

    /* ===== CABECERA ULTRA COMPACTA ===== */
    header {
      background: linear-gradient(180deg, 
        #000000 0%, 
        #000000 20%, 
        #0a0a0a 40%, 
        #1a1a1a 60%, 
        #2d1a0a 75%, 
        #4a2a0f 85%, 
        #6b3d1a 92%, 
        #ff7043 98%, 
        #ff9800 100%) !important;
      background-image: 
        /* Brillo sutil en la zona superior (complementa el logo) */
        radial-gradient(circle at 50% 20%, rgba(255, 193, 7, 0.15) 0%, transparent 40%),
        /* Acentos naranja muy sutiles en la zona media */
        radial-gradient(circle at 30% 60%, rgba(255, 112, 67, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 152, 0, 0.2) 0%, transparent 45%),
        /* Acentos amarillos en la zona inferior */
        radial-gradient(circle at 50% 85%, rgba(255, 193, 7, 0.18) 0%, transparent 55%) !important;
      background-color: #000000 !important;
      color: #fff;
      padding: 4px 8px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      position: sticky;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
      min-height: 70px;
      max-height: 70px;
      width: 100%;
      max-width: 100%;
      min-width: 100%;
      box-sizing: border-box;
      overflow: visible;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 6px;
      flex: 0 0 auto;
      height: 100%;
      align-self: stretch;
    }

    .brand img {
      width: auto;
      height: 100%;
      max-height: 62px;
      min-height: 58px;
      object-fit: contain;
      border-radius: 4px;
      background: transparent;
      padding: 0;
      margin: 0;
      box-shadow: none;
      display: block;
    }

    .brand-details {
      display: flex;
      flex-direction: column;
      gap: 1px;
    }

    .brand-details h1 {
      margin: 0;
      font-size: 1.4rem;
      font-weight: 700;
      letter-spacing: 0.5px;
      line-height: 1.1;
      text-transform: uppercase;
      display: none; /* Ocultar texto de marca - el logo ya lo muestra */
    }

    .brand-details span {
      font-size: 0.65rem;
      opacity: 0.9;
      line-height: 1;
      display: none;
    }

    .header-actions {
      display: flex;
      align-items: center;
      gap: 6px;
      flex: 0 0 auto;
      justify-content: flex-end;
      position: relative;
      min-width: 40px;
    }

    /* Botón de Carta en esquina superior izquierda - Flotante en móvil */
    .menu-toggle {
      position: relative;
      top: auto;
      left: auto;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      border: 2px solid rgba(255, 255, 255, 0.3);
      background: rgba(255, 255, 255, 0.2);
      color: #fff;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all var(--transition);
      flex-shrink: 0;
      z-index: 102;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .menu-toggle:hover {
      background: rgba(255, 255, 255, 0.3);
      border-color: rgba(255, 255, 255, 0.5);
      transform: scale(1.05);
    }
    
    .menu-toggle svg {
      width: 16px;
      height: 16px;
      fill: currentColor;
    }

    /* Buscador en esquina superior derecha - Flotante en móvil */
    .search-toggle {
      position: relative;
      top: auto;
      right: auto;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      border: 2px solid rgba(255, 255, 255, 0.3);
      background: rgba(255, 255, 255, 0.2);
      color: #fff;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all var(--transition);
      flex-shrink: 0;
      z-index: 102;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    .search-toggle:hover {
      background: rgba(255, 255, 255, 0.3);
      border-color: rgba(255, 255, 255, 0.5);
      transform: scale(1.05);
    }
    
    /* Botones flotantes mejorados para móvil */
    @media screen and (max-width: 768px), screen and (max-device-width: 768px) {
      .menu-toggle {
        position: fixed !important;
        top: 10px !important;
        left: 10px !important;
        width: 36px !important;
        height: 36px !important;
        z-index: 1000 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
        background: rgba(255, 255, 255, 0.2) !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
      }
      
      .menu-toggle:hover {
        background: rgba(255, 255, 255, 0.3) !important;
        transform: scale(1.05) !important;
      }
      
      .menu-toggle:active {
        transform: scale(0.95) !important;
      }
      
      .menu-toggle svg {
        width: 16px !important;
        height: 16px !important;
        display: block !important;
        visibility: visible !important;
        fill: #fff !important;
      }
      
      .search-toggle {
        position: fixed !important;
        top: 10px !important;
        right: 10px !important;
        width: 36px !important;
        height: 36px !important;
        z-index: 1000 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
        background: rgba(255, 255, 255, 0.2) !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
      }
      
      .search-toggle:hover {
        background: rgba(255, 255, 255, 0.3) !important;
        transform: scale(1.05) !important;
      }
      
      .search-toggle:active {
        transform: scale(0.95) !important;
      }
      
      .search-toggle svg {
        width: 16px !important;
        height: 16px !important;
        display: block !important;
        visibility: visible !important;
        fill: #fff !important;
      }
    }

    .search-toggle svg {
      width: 16px;
      height: 16px;
      fill: currentColor;
    }

    .search-box {
      position: absolute;
      top: auto;
      bottom: 0;
      left: auto;
      right: 50px;
      width: auto;
      min-width: 300px;
      max-width: 450px;
      background: transparent;
      padding: 8px 0;
      z-index: 101;
      transform: translateY(100%) scale(0.95);
      opacity: 0;
      transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
      box-shadow: none;
      display: flex;
      align-items: center;
      justify-content: flex-end;
    }

    .search-box.active {
      transform: translateY(0) scale(1);
      opacity: 1;
    }

    .search-box input {
      width: 100%;
      padding: 10px 20px;
      border-radius: 24px;
      border: 2px solid rgba(255, 255, 255, 0.4);
      background: rgba(255, 255, 255, 0.95);
      color: var(--text-main);
      font-size: 0.9rem;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .search-box input:focus {
      border-color: rgba(255, 255, 255, 0.7);
      outline: none;
      background: rgba(255, 255, 255, 1);
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
      transform: scale(1.02);
    }

    /* ===== CARRUSEL DE CATEGORÍAS EN HEADER ===== */
    .header-categories {
      display: flex !important;
      align-items: center;
      gap: 6px;
      flex: 1 1 auto;
      overflow-x: auto;
      overflow-y: visible !important; /* Permite que el chip crezca sin cortarse */
      padding: 3px 8px;
      scrollbar-width: none;
      -ms-overflow-style: none;
      scroll-behavior: smooth;
      position: relative;
      min-width: 0;
      max-width: 100%;
      visibility: visible !important;
      opacity: 1 !important;
      height: 100% !important;
      -webkit-overflow-scrolling: touch;
      touch-action: pan-x pan-y;
      overscroll-behavior-x: contain;
      user-select: none;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      z-index: 100;
      pointer-events: auto !important;
      cursor: grab;
    }

    .header-categories::-webkit-scrollbar {
      display: none;
    }

    .header-category-chip {
      padding: 6px 12px;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.25);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(255, 255, 255, 0.3);
      color: #333;
      font-size: 0.75rem;
      font-weight: 600;
      white-space: nowrap;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      flex: 0 0 auto;
      min-width: fit-content;
      position: relative;
      text-transform: none;
      letter-spacing: 0.2px;
      box-shadow: none;
      user-select: none !important;
      -webkit-user-select: none !important;
      -moz-user-select: none !important;
      -ms-user-select: none !important;
      -webkit-tap-highlight-color: transparent;
      touch-action: pan-x pan-y;
      pointer-events: auto !important;
      z-index: 10000 !important;
      -webkit-touch-callout: none;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      height: 100%;
      box-sizing: border-box;
      transform-origin: center center; /* Permite crecimiento desde el centro */
    }
    
    .header-category-chip-icon {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      flex-shrink: 0;
      box-shadow: none;
      background: rgba(255, 255, 255, 0.2);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border: 2px solid rgba(255, 255, 255, 0.3);
      transition: all 0.3s ease;
    }
    
    .header-category-chip-text {
      flex: 1;
      min-width: 0;
      text-align: center;
      overflow: hidden;
      text-overflow: ellipsis;
      color: #1a1a1a;
      font-weight: 600;
    }

    .header-category-chip:hover:not(.active) {
      background: rgba(255, 255, 255, 0.35);
      border-color: rgba(255, 255, 255, 0.5);
      box-shadow: none;
    }
    
    .header-category-chip.active:hover {
      /* La animación de pulso ya maneja el efecto visual */
      opacity: 1;
    }
    
    .header-category-chip:active {
      background: rgba(255, 255, 255, 0.3);
      box-shadow: none;
    }

    /* Categoría activa por horario - Color más notorio */
    .header-category-chip.active-schedule {
      font-weight: 700 !important;
      backdrop-filter: blur(12px) !important;
      -webkit-backdrop-filter: blur(12px) !important;
      border-color: rgba(255, 255, 255, 0.4) !important;
      box-shadow: none !important;
    }
    
    .header-category-chip.active-schedule .header-category-chip-icon {
      box-shadow: none !important;
    }

    @keyframes slideDown {
      from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
      }
      to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
      }
    }

    @keyframes slideUp {
      from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
      }
      to {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
      }
    }

    @keyframes slideDownMobile {
      from {
        opacity: 0;
        transform: translateY(-20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes slideUpMobile {
      from {
        opacity: 1;
        transform: translateY(0);
      }
      to {
        opacity: 0;
        transform: translateY(-20px);
      }
    }

    /* Animación de trazo circulando alrededor de la ficha seleccionada */
    @keyframes border-glow {
      0% {
        background-position: 0% 50%;
      }
      25% {
        background-position: 100% 0%;
      }
      50% {
        background-position: 100% 100%;
      }
      75% {
        background-position: 0% 100%;
      }
      100% {
        background-position: 0% 50%;
      }
    }
    
    /* Animación de pulso/latido para el chip activo - más perceptible y dinámica */
    @keyframes chip-pulse {
      0%, 100% {
        transform: scale(1.05);
      }
      50% {
        transform: scale(1.12);
      }
    }
    
    /* Animación de zoom fluida para el texto del chip activo */
    @keyframes text-zoom-intense {
      0%, 100% {
        transform: scale(1);
      }
      50% {
        transform: scale(1.15);
      }
    }

    /* ===== BANNER GPS - DISEÑO PROFESIONAL Y RESPONSIVO ===== */
    .gps-request-banner {
      display: none;
      position: fixed;
      top: 20px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 10000;
      width: calc(100% - 40px);
      max-width: 420px;
      margin: 0 auto;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      border-radius: 16px;
      padding: 16px 20px;
      box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
      animation: slideDown 0.3s ease-out;
      box-sizing: border-box;
      overflow: hidden;
    }

    .gps-banner-content {
      display: flex;
      align-items: center;
      gap: 12px;
      color: white;
      flex-wrap: wrap;
    }

    .gps-banner-icon {
      font-size: 24px;
      flex-shrink: 0;
      line-height: 1;
    }

    .gps-banner-text {
      flex: 1;
      min-width: 0;
    }

    .gps-banner-title {
      font-weight: 600;
      font-size: 0.95rem;
      margin-bottom: 4px;
      line-height: 1.3;
    }

    .gps-banner-subtitle {
      font-size: 0.85rem;
      opacity: 0.9;
      line-height: 1.3;
    }

    .gps-banner-actions {
      display: flex;
      gap: 8px;
      flex-shrink: 0;
      width: 100%;
      margin-top: 12px;
    }

    .gps-banner-btn {
      flex: 1;
      padding: 10px 16px;
      border-radius: 8px;
      color: white;
      font-weight: 600;
      font-size: 0.85rem;
      cursor: pointer;
      transition: all 0.2s ease;
      border: none;
      white-space: nowrap;
      min-width: 0;
    }

    .gps-banner-btn-primary {
      background: rgba(255, 255, 255, 0.25);
      border: 1px solid rgba(255, 255, 255, 0.4);
      backdrop-filter: blur(10px);
    }

    .gps-banner-btn-primary:hover {
      background: rgba(255, 255, 255, 0.35);
      transform: scale(1.05);
    }

    .gps-banner-btn-primary:active {
      transform: scale(0.98);
    }

    .gps-banner-btn-secondary {
      background: transparent;
      border: 1px solid rgba(255, 255, 255, 0.3);
      font-weight: 500;
    }

    .gps-banner-btn-secondary:hover {
      background: rgba(255, 255, 255, 0.1);
      border-color: rgba(255, 255, 255, 0.5);
    }

    .gps-banner-btn-secondary:active {
      transform: scale(0.98);
    }

    /* Responsive para tablets */
    @media screen and (min-width: 481px) and (max-width: 768px) {
      .gps-request-banner {
        max-width: 400px;
        padding: 14px 18px;
      }

      .gps-banner-content {
        gap: 10px;
      }

      .gps-banner-actions {
        width: auto;
        margin-top: 0;
        flex: 0 0 auto;
      }

      .gps-banner-btn {
        flex: 0 1 auto;
        padding: 8px 14px;
      }
    }

    /* Responsive para escritorio */
    @media screen and (min-width: 769px) {
      .gps-request-banner {
        max-width: 450px;
        padding: 18px 24px;
      }

      .gps-banner-content {
        flex-wrap: nowrap;
      }

      .gps-banner-actions {
        width: auto;
        margin-top: 0;
        flex: 0 0 auto;
      }

      .gps-banner-btn {
        flex: 0 1 auto;
        padding: 8px 16px;
      }
    }

    /* Responsive para móviles pequeños */
    @media screen and (max-width: 480px) {
      .gps-request-banner {
        top: 12px;
        left: 10px;
        right: 10px;
        width: auto;
        max-width: none;
        padding: 14px 16px;
        border-radius: 12px;
        transform: none;
        margin: 0;
        animation: slideDownMobile 0.3s ease-out;
      }

      .gps-banner-content {
        gap: 10px;
      }

      .gps-banner-icon {
        font-size: 20px;
      }

      .gps-banner-title {
        font-size: 0.9rem;
      }

      .gps-banner-subtitle {
        font-size: 0.8rem;
      }

      .gps-banner-actions {
        width: 100%;
        margin-top: 12px;
        gap: 10px;
      }

      .gps-banner-btn {
        flex: 1;
        padding: 12px 16px;
        font-size: 0.9rem;
        min-width: 0;
      }
    }


    /* Categoría seleccionada por el usuario - Trazo animado sin sombras, mantiene color original */
    .header-category-chip.active {
      border: 3.5px solid transparent !important;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
      position: relative;
      z-index: 10001 !important;
      /* El fondo se mantiene con el color original de la categoría (se aplica via JavaScript) */
      backdrop-filter: blur(16px) !important;
      -webkit-backdrop-filter: blur(16px) !important;
      transform: scale(1.05) !important;
      transform-origin: center center !important; /* Crecimiento desde el centro */
      animation: chip-pulse 2s ease-in-out infinite !important;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
      margin: 0 !important;
      /* Permite que el chip crezca y empuje a los demás */
      flex-shrink: 0 !important;
      /* Padding adicional para acomodar el zoom del texto */
      padding: 6px 18px !important;
      /* Asegurar que el contenido no se salga */
      overflow: hidden !important;
      /* Optimización de rendimiento: aislar layout */
      contain: layout style;
    }
    
    .header-category-chip.active::before {
      content: '';
      position: absolute;
      top: -3.5px;
      left: -3.5px;
      right: -3.5px;
      bottom: -3.5px;
      border-radius: 16px;
      /* El color del trazo se aplica dinámicamente via JavaScript usando CSS variable */
      background: var(--active-border-color, linear-gradient(90deg, #ff6f00, #ff9800, #ffc107, #ff9800, #ff6f00, #ff6f00));
      background-size: 400% 100%;
      animation: border-glow 3s linear infinite;
      z-index: -1;
      padding: 3.5px;
      -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor;
      mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      mask-composite: exclude;
      box-sizing: border-box;
    }
    
    .header-category-chip.active .header-category-chip-text {
      color: #ffffff !important;
      font-weight: 800 !important;
      text-shadow: none !important;
      letter-spacing: 0.5px !important;
      animation: text-zoom-intense 1.5s cubic-bezier(0.42, 0, 0.58, 1) infinite !important;
      transform-origin: center center !important;
      display: inline-block !important;
      /* Asegurar que el texto no se salga del chip */
      max-width: 100% !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      /* Asegurar que el texto esté centrado */
      text-align: center !important;
    }
    
    .header-category-chip.active .header-category-chip-icon {
      box-shadow: none !important;
      /* El borde y fondo se mantienen con el color original (se aplica via JavaScript) */
      transform: scale(1.1) !important;
    }

    /* Categoría inactiva (fuera de horario) - Glassmorphism suave conservando color */
    .header-category-chip.inactive {
      opacity: 0.7 !important;
      filter: grayscale(20%) brightness(0.9) !important;
      font-weight: 500 !important;
      backdrop-filter: blur(12px) !important;
      -webkit-backdrop-filter: blur(12px) !important;
      border-color: rgba(255, 255, 255, 0.2) !important;
      box-shadow: none !important;
    }
    
    .header-category-chip.inactive .header-category-chip-icon {
      opacity: 0.7 !important;
      box-shadow: none !important;
    }

    .header-category-chip.inactive:hover {
      opacity: 0.8 !important;
      filter: grayscale(15%) brightness(0.95) !important;
      box-shadow: none !important;
    }

    /* Categoría sin horario (siempre disponible) - Glassmorphism con color */
    .header-category-chip.no-schedule {
      font-weight: 600 !important;
      backdrop-filter: blur(12px) !important;
      -webkit-backdrop-filter: blur(12px) !important;
      border-color: rgba(255, 255, 255, 0.4) !important;
      box-shadow: none !important;
    }
    
    .header-category-chip.no-schedule .header-category-chip-icon {
      box-shadow: none !important;
    }

    .header-category-chip.no-schedule:hover {
      box-shadow: none !important;
    }

    /* Indicador de "fuera de horario" - Estilo profesional */
    .header-category-chip.inactive {
      position: relative;
    }

    .header-category-chip.inactive::before {
      content: '';
      position: absolute;
      top: 2px;
      right: 2px;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.4);
      border: 1px solid rgba(255, 255, 255, 0.6);
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }

    /* ===== LAYOUT PRINCIPAL OPTIMIZADO ===== */
    main {
      flex: 1;
      display: flex;
      flex-direction: column;
      padding: 12px;
      position: relative;
      z-index: 1;
      /* Padding inferior para dejar espacio al panel de pedidos */
      padding-bottom: calc(50vh + 100px);
    }

    .categories-nav {
      display: none;
    }

    /* Modal de advertencia para categoría fuera de horario */
    .category-warning-modal {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.75);
      z-index: 300;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
      animation: fadeIn 0.3s ease;
    }

    .category-warning-modal.active {
      display: flex;
    }

    /* === SISTEMA DE TOAST ELEGANTE TIPO GLASS === */
    .toast-container {
      position: fixed;
      top: 20px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 10000;
      pointer-events: none;
    }

    .toast {
      background: linear-gradient(135deg, #5c05c0 0%, #2d1769 100%);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border: 1px solid rgba(74, 144, 226, 0.4);
      border-radius: 16px;
      padding: 12px 18px;
      box-shadow: 0 8px 32px rgba(74, 144, 226, 0.25),
                  0 2px 8px rgba(0, 0, 0, 0.08),
                  inset 0 1px 0 rgba(255, 255, 255, 0.3);
      color: #ffffff;
      font-size: 0.85rem;
      font-weight: 400;
      text-align: center;
      width: fit-content;
      max-width: 90vw;
      opacity: 0;
      transform: translateY(-20px) scale(0.95);
      transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
      pointer-events: auto;
      display: inline-block;
      white-space: nowrap;
      box-sizing: border-box;
    }

    .toast.show {
      opacity: 1;
      transform: translateY(0) scale(1);
    }

    .toast.confirm {
      background: rgba(220, 53, 69, 0.95);
      color: #ffffff;
      border-color: rgba(220, 53, 69, 0.4);
      box-shadow: 0 8px 32px rgba(220, 53, 69, 0.25),
                  0 2px 8px rgba(220, 53, 69, 0.15),
                  inset 0 1px 0 rgba(255, 255, 255, 0.2);
      width: fit-content;
      white-space: normal;
      padding: 14px 18px;
    }

    .toast.confirm .toast-message {
      display: block;
      margin-bottom: 10px;
      font-weight: 400;
      white-space: nowrap;
    }

    .toast.confirm .toast-actions {
      display: flex;
      gap: 10px;
      margin-top: 10px;
      justify-content: center;
      flex-wrap: nowrap;
    }

    .toast.confirm .toast-btn {
      padding: 8px 16px;
      border-radius: 8px;
      border: 1px solid rgba(255, 255, 255, 0.3);
      background: rgba(255, 255, 255, 0.2);
      color: #ffffff;
      font-weight: 500;
      font-size: 0.85rem;
      cursor: pointer;
      transition: all 0.2s ease;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      white-space: nowrap;
      flex-shrink: 0;
    }

    .toast.confirm .toast-btn:hover {
      background: rgba(255, 255, 255, 0.3);
      transform: translateY(-1px);
    }

    .toast.confirm .toast-btn.confirm-btn {
      background: rgba(255, 255, 255, 0.95);
      color: #dc3545;
      border-color: rgba(255, 255, 255, 0.5);
    }

    .toast.confirm .toast-btn.confirm-btn:hover {
      background: #ffffff;
      transform: translateY(-1px);
    }

    /* === ESTILOS PARA SWIPE EN CART ITEM === */
    .cart-item.swiping {
      transition: transform 0.2s ease-out;
    }

    .cart-item.swipe-delete {
      background: rgba(220, 53, 69, 0.1);
      border-color: rgba(220, 53, 69, 0.3);
    }

    .category-warning-content {
      background: var(--surface);
      border-radius: var(--radius-lg);
      max-width: 400px;
      width: 100%;
      padding: 24px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
      animation: slideUp 0.3s ease;
      text-align: center;
    }

    .category-warning-content h3 {
      margin: 0 0 12px 0;
      font-size: 1.3rem;
      color: var(--primary);
      font-weight: 700;
    }

    .category-warning-content p {
      margin: 0 0 20px 0;
      color: var(--text-main);
      line-height: 1.5;
      font-size: 0.95rem;
    }

    .category-warning-actions {
      display: flex;
      gap: 12px;
      justify-content: center;
    }

    .category-warning-btn {
      padding: 10px 20px;
      border-radius: 999px;
      border: none;
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      transition: all var(--transition);
    }

    .category-warning-btn.confirm {
      background: linear-gradient(120deg, #f4511e 0%, #ffb300 100%);
      color: #fff;
    }

    .category-warning-btn.confirm:hover {
      background: linear-gradient(120deg, #e64a19 0%, #ffa000 100%);
      transform: translateY(-1px);
    }

    /* Vista de detalle de producto en pantalla completa */
    .product-detail-modal {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.95);
      z-index: 300;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
      overflow: hidden;
      animation: fadeIn 0.3s ease;
    }

    .product-detail-modal.active {
      display: flex;
    }

    /* ===== MODAL TIPO DE PEDIDO — chips premium + identity ===== */
    .order-type-modal {
      overflow-y: auto !important;
      -webkit-overflow-scrolling: touch !important;
      scroll-behavior: smooth !important;
    }

    .order-type-content {
      min-height: auto !important;
    }

    .order-type-chips {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 6px;
      width: 100%;
      max-width: 100%;
      margin: 0 0 14px;
      box-sizing: border-box;
    }

    .order-type-chips[data-enabled-count="1"] {
      grid-template-columns: 1fr;
      max-width: 220px;
      margin-left: auto;
      margin-right: auto;
    }

    .order-type-chips[data-enabled-count="2"] {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .order-type-chip {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
      min-width: 0;
      width: 100%;
      max-width: 100%;
      min-height: 0;
      padding: 8px 4px;
      margin: 0;
      border: none;
      border-radius: 14px;
      cursor: pointer;
      text-align: center;
      box-sizing: border-box;
      background:
        linear-gradient(165deg, #ffffff 0%, #fff8f1 100%);
      box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 4px 12px rgba(31, 27, 22, 0.07);
      transition:
        box-shadow 0.18s ease,
        background 0.18s ease;
      -webkit-tap-highlight-color: transparent;
      user-select: none;
    }

    .order-type-chip input {
      position: absolute;
      opacity: 0;
      width: 0;
      height: 0;
      pointer-events: none;
    }

    .order-type-chip-icon {
      display: grid;
      place-items: center;
      width: 44px;
      height: 44px;
      border-radius: 14px;
      font-size: 1.45rem;
      line-height: 1;
      background: linear-gradient(145deg, var(--accent-light), rgba(244, 81, 30, 0.1));
      box-shadow: 0 4px 10px rgba(244, 81, 30, 0.12);
    }

    .order-type-chip-text {
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 0;
      max-width: 100%;
    }

    .order-type-chip strong {
      font-size: 0.92rem;
      font-weight: 700;
      letter-spacing: -0.01em;
      line-height: 1.2;
      color: var(--text-main);
    }

    .order-type-chip small {
      font-size: 0.7rem;
      line-height: 1.2;
      color: var(--text-soft);
      max-width: 100%;
    }

    .order-type-chip:hover {
      box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        var(--shadow-card);
    }

    .order-type-chip:active {
      box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 2px 8px rgba(31, 27, 22, 0.08);
    }

    .order-type-chip:has(input:checked),
    .order-type-chip.is-selected {
      background: linear-gradient(155deg, rgba(255, 152, 0, 0.22) 0%, rgba(244, 81, 30, 0.18) 100%);
      /* Anillo INSET: no se sale del marco ni lo recorta overflow:hidden */
      box-shadow:
        inset 0 0 0 2px var(--primary),
        0 6px 16px rgba(244, 81, 30, 0.22);
    }

    .order-type-chip:has(input:checked) .order-type-chip-icon,
    .order-type-chip.is-selected .order-type-chip-icon {
      background: linear-gradient(145deg, var(--primary), var(--accent));
      box-shadow: 0 6px 14px rgba(244, 81, 30, 0.35);
      filter: saturate(1.05);
    }

    .order-type-chip:has(input:checked) strong,
    .order-type-chip.is-selected strong {
      color: var(--primary-dark);
    }

    .order-identity-row {
      display: grid;
      grid-template-columns: 1fr;
      gap: 10px;
      margin-bottom: 12px;
      align-items: end;
    }

    .order-identity-row.has-table {
      grid-template-columns: minmax(0, 1fr) minmax(76px, 92px);
    }

    .order-identity-row .field-block {
      margin: 0;
      min-width: 0;
    }

    .order-identity-row .field-block label {
      display: block;
      margin-bottom: 6px;
      font-weight: 600;
      font-size: 0.88rem;
      color: var(--text-main);
    }

    .order-identity-row .field-block input {
      width: 100%;
      padding: 12px 12px;
      border: 1px solid var(--border);
      border-radius: 12px;
      font-size: 0.95rem;
      box-sizing: border-box;
      background: #fff;
      color: var(--text-main);
      box-shadow: 0 1px 2px rgba(31, 27, 22, 0.04);
    }

    .order-identity-row .field-block input:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(244, 81, 30, 0.18);
    }

    #order-type-mesa-fields input {
      text-align: center;
      font-weight: 700;
      font-variant-numeric: tabular-nums;
    }

    @media screen and (max-width: 480px) {
      .order-type-modal {
        padding: 8px !important;
        align-items: flex-start !important;
        padding-top: 20px !important;
      }

      .order-type-content {
        max-height: calc(100vh - 16px) !important;
        padding: 14px !important;
      }

      .order-type-chip {
        padding: 7px 3px;
        border-radius: 12px;
      }
    }

    @media screen and (max-width: 360px) {
      .order-type-chips {
        gap: 5px;
      }

      .order-type-chip small {
        display: none;
      }

      .order-type-chip {
        padding: 6px 2px;
      }
    }

    /* Landscape / tablets: chips más compactos en fila visual */
    @media screen and (orientation: landscape) and (max-height: 520px) {
      .order-type-chip {
        flex-direction: row;
        justify-content: flex-start;
        gap: 8px;
        padding: 6px 8px;
        text-align: left;
      }

      .order-type-chip-icon {
        flex-shrink: 0;
      }

      .order-type-chip-text {
        align-items: flex-start;
      }
    }

    @media screen and (min-width: 768px) {
      .order-type-chips {
        gap: 10px;
      }

      .order-type-chip {
        padding: 9px 8px;
      }
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    .product-detail-content {
      background: var(--surface);
      border-radius: var(--radius-lg);
      max-width: min(900px, 90vw);
      width: 90%;
      max-height: 90vh;
      height: auto;
      overflow: hidden;
      position: relative;
      animation: slideUp 0.3s ease;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
      display: flex;
      flex-direction: column;
    }
    
    /* En modo horizontal: layout más amplio y optimizado */
    @media screen and (min-width: 769px) {
      .product-detail-content {
        max-width: min(1000px, 85vw);
        max-height: 85vh;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto 1fr;
        gap: 0;
        overflow: hidden;
      }
      
      /* Layout sin imagen: una sola columna centrada */
      .product-detail-content.no-image {
        grid-template-columns: 1fr;
        max-width: 600px;
      }
      
      .product-detail-image {
        grid-column: 1;
        grid-row: 1 / -1;
        height: 100%;
        max-height: 85vh;
        min-height: auto;
        border-radius: var(--radius-lg) 0 0 var(--radius-lg);
      }
      
      .product-detail-body {
        grid-column: 2;
        grid-row: 1 / -1;
        max-height: 85vh;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 20px 24px;
        border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
      }
      
      /* Ajuste para layout sin imagen */
      .product-detail-content.no-image .product-detail-body {
        grid-column: 1;
        border-radius: var(--radius-lg);
      }
      
      .product-detail-close {
        position: absolute;
        top: 12px;
        right: 12px;
        z-index: 10;
      }
    }
    
    /* En móvil: todos los ítems (con o sin imagen) usan panel compacto con esquinas redondeadas */
    @media screen and (max-width: 768px) {
      .product-detail-modal {
        padding: 12px !important;
        align-items: center !important;
        justify-content: center !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
      }
      
      /* Panel más ancho para aprovechar mejor el espacio disponible */
      .product-detail-content {
        max-width: 95% !important;
        width: 95% !important;
        max-height: 85vh !important;
        min-height: auto !important;
        height: auto !important;
        border-radius: var(--radius-lg) !important;
        margin: 12px auto !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
        overflow: hidden !important;
      }
      
      /* Layout sin imagen: una sola columna */
      .product-detail-content.no-image {
        grid-template-columns: 1fr !important;
      }
      
      /* Layout con imagen: imagen arriba, contenido abajo */
      .product-detail-content:not(.no-image) {
        display: flex !important;
        flex-direction: column !important;
      }
      
      .product-detail-body {
        flex: 1 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 16px 20px !important;
        padding-bottom: 20px !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
      }
      
      /* Imagen más compacta para no ocupar tanto espacio vertical y evitar que tape botones */
      .product-detail-image {
        width: 100% !important;
        height: auto !important;
        max-height: 25vh !important;
        min-height: 150px !important;
        object-fit: cover !important;
        flex-shrink: 0 !important;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
      }
      
      .product-detail-close {
        top: 12px !important;
        right: 12px !important;
        z-index: 350 !important;
      }
    }

    @keyframes slideUp {
      from {
        transform: translateY(30px);
        opacity: 0;
      }
      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

    .product-detail-close {
      position: absolute;
      top: 12px;
      right: 12px;
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: rgba(0, 0, 0, 0.75);
      border: 2px solid rgba(255, 255, 255, 0.3);
      color: #fff;
      font-size: 1.8rem;
      font-weight: 700;
      cursor: pointer;
      z-index: 350;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all var(--transition);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    }
    
    /* En móvil: botón fijo para mejor accesibilidad */
    @media screen and (max-width: 768px) {
      .product-detail-close {
        position: fixed !important;
        top: 16px !important;
        right: 16px !important;
      }
    }

    .product-detail-close:hover {
      background: rgba(0, 0, 0, 0.9);
      border-color: rgba(255, 255, 255, 0.5);
      transform: scale(1.1);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    }
    
    .product-detail-close:active {
      transform: scale(0.95);
    }

    .product-detail-image {
      width: 100%;
      max-width: 100%;
      height: 50vh;
      min-height: 300px;
      max-height: 50vh;
      object-fit: cover;
      object-position: center center;
      display: block;
      background: linear-gradient(135deg, #ffffff 0%, #fff7f0 100%);
      flex-shrink: 0;
    }
    
    /* En móvil: imagen ocupa más espacio */
    @media screen and (max-width: 768px) {
      .product-detail-image {
        height: 45vh !important;
        min-height: 250px !important;
        max-height: 45vh !important;
        width: 100% !important;
        object-fit: cover !important;
      }
    }

    .product-detail-body {
      padding: 12px 16px 16px 16px;
      display: flex;
      flex-direction: column;
      gap: 6px;
      flex: 1;
      overflow-y: auto;
      overflow-x: hidden;
      min-height: 0;
    }
    
    /* Optimizar scrollbar y padding en desktop */
    @media screen and (min-width: 769px) {
      .product-detail-body {
        padding: 20px 24px;
        gap: 8px;
      }
      
      .product-detail-body::-webkit-scrollbar {
        width: 8px;
      }
      
      .product-detail-body::-webkit-scrollbar-track {
        background: transparent;
      }
      
      .product-detail-body::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 4px;
      }
      
      .product-detail-body::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 0, 0, 0.3);
      }
    }
    

    .product-detail-body h2 {
      margin: 0 !important;
      padding: 0 !important;
      font-size: 1.3rem;
      color: var(--text-main);
      line-height: 1.3;
      font-weight: 700;
      display: block !important;
      visibility: visible !important;
      opacity: 1 !important;
    }
    
    /* Asegurar que el nombre sea visible cuando no hay imagen */
    .product-detail-content.no-image .product-detail-body h2 {
      display: block !important;
      visibility: visible !important;
      opacity: 1 !important;
      height: auto !important;
      width: auto !important;
      overflow: visible !important;
      position: static !important;
    }

    /* Nombre del producto siempre visible cuando el modal está activo (evita parches en JS) */
    .product-detail-modal.active .product-detail-body h2 {
      display: block !important;
      visibility: visible !important;
      opacity: 1 !important;
      height: auto !important;
      width: auto !important;
      min-height: auto !important;
      max-height: none !important;
      overflow: visible !important;
      position: static !important;
      margin: 0 !important;
      padding: 0 !important;
    }

    .product-detail-body .detail {
      margin: 0 !important;
      padding: 0 !important;
      font-size: 0.9rem;
      color: var(--text-soft);
      line-height: 1.4;
    }

    /* Estilo para el placeholder del textarea de modificaciones */
    #product-custom-modifications::placeholder {
      color: #999;
      opacity: 0.7;
      font-style: italic;
    }

    #product-custom-modifications::-webkit-input-placeholder {
      color: #999;
      opacity: 0.7;
      font-style: italic;
    }

    #product-custom-modifications::-moz-placeholder {
      color: #999;
      opacity: 0.7;
      font-style: italic;
    }

    #product-custom-modifications:-ms-input-placeholder {
      color: #999;
      opacity: 0.7;
      font-style: italic;
    }

    /* Mayúsculas: nombre (mesa/presencial), teléfono, modificaciones del producto */
    #customer-name,
    #delivery-phone,
    #product-custom-modifications {
      text-transform: uppercase;
    }
    #customer-name::placeholder,
    #delivery-phone::placeholder,
    #product-custom-modifications::placeholder {
      text-transform: none;
    }
    /* Delivery: dirección y características en tipo oración (sin forzar mayúsculas en CSS; se aplica en JS) */

    .product-detail-price {
      font-size: 1.6rem;
      font-weight: 700;
      color: var(--primary);
      margin: 0 !important;
      padding: 0 !important;
    }

    .product-detail-actions {
      display: flex;
      gap: 12px;
      margin-top: 10px;
      flex-wrap: nowrap;
      align-items: center;
      justify-content: space-between;
      padding-top: 8px;
      border-top: 1px solid var(--border);
      width: 100%;
      box-sizing: border-box;
    }

    .product-detail-actions .quantity-row {
      flex: 0 0 auto;
      min-width: 110px;
      max-width: 110px;
      display: flex !important;
      visibility: visible !important;
      align-items: center;
      justify-content: center;
      gap: 8px;
      flex-shrink: 0;
    }

    .product-detail-actions .add-btn {
      flex: 1 1 auto;
      min-width: 0;
      max-width: calc(100% - 130px);
      padding: 8px 14px;
      font-size: 0.85rem;
      font-weight: 600;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .product-detail-actions .qty-btn {
      width: 36px;
      height: 36px;
      min-width: 36px;
      max-width: 36px;
      font-size: 1.1rem;
      flex-shrink: 0;
      box-sizing: border-box;
    }

    .product-detail-actions .quantity-display {
      min-width: 24px;
      max-width: 24px;
      font-size: 1rem;
      text-align: center;
      flex-shrink: 0;
      box-sizing: border-box;
    }
    
    /* Asegurar que en móvil también funcione correctamente */
    @media screen and (max-width: 768px) {
      .product-detail-actions {
        gap: 10px;
      }
      
      .product-detail-actions .quantity-row {
        min-width: 100px;
        max-width: 100px;
      }
      
      .product-detail-actions .add-btn {
        max-width: calc(100% - 120px);
        padding: 8px 12px;
        font-size: 0.8rem;
      }
    }

    /* Grid: altura de fila fija para que las tarjetas no se estiren; todo contenido dentro */
    .menu-grid {
      flex: 1;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      grid-auto-rows: 300px;
      gap: 18px;
      align-content: start;
    }

    /* Tarjeta: borde sutil (como antes), contenido contenido, sin desbordes */
    .menu-card {
      background: var(--surface);
      border-radius: var(--radius-lg);
      border: 1px solid rgba(244, 81, 30, 0.18);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      height: 300px;
      min-height: 300px;
      max-height: 300px;
      box-shadow: var(--shadow-soft);
      transition: transform var(--transition), box-shadow var(--transition);
      contain: layout style paint;
    }

    .menu-card:hover {
      transform: translateY(-6px);
      box-shadow: var(--shadow-hover);
    }

    /* Imagen: ~65% de la tarjeta, contenida */
    .menu-card-media {
      position: relative;
      overflow: hidden;
      background: linear-gradient(135deg, #ffffff 0%, #fff7f0 100%);
      height: 195px;
      min-height: 195px;
      max-height: 195px;
      flex-shrink: 0;
      border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
    }

    .menu-card-media img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center center;
    }

    .menu-card .card-body {
      flex: 1;
      min-height: 0;
      padding: 8px 10px 48px 10px;
      display: flex;
      flex-direction: column;
      gap: 0;
      position: relative;
      overflow: hidden;
      background: #fff;
    }

    .menu-card .card-body > *:not(:last-child) {
      margin-bottom: 0;
    }

    .card-header {
      display: block;
      flex-shrink: 0;
    }

    .card-header h3 {
      margin: 0;
      padding: 0;
      font-size: 0.9rem;
      line-height: 1.2;
      font-weight: 700;
      color: #333;
      text-transform: uppercase;
      letter-spacing: 0.02em;
      max-height: 2.4em;
      overflow: hidden;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      line-clamp: 2;
      -webkit-box-orient: vertical;
      word-wrap: break-word;
      word-break: break-word;
    }

    /* Precio: franja bajo línea separadora, centrado (sin botón Añadir ni +/-) */
    .menu-card .card-header .price,
    .menu-card .price {
      position: absolute;
      bottom: 0;
      left: 10px;
      right: 10px;
      padding: 10px 0;
      margin: 0;
      border-top: 1px solid rgba(244, 81, 30, 0.28);
      background: #fff;
      font-weight: 700;
      font-size: 1rem;
      color: var(--primary);
      text-align: center;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      box-sizing: border-box;
    }

    /* Ocultar botón Añadir y controles +/- en la tarjeta; el clic en la tarjeta abre el modal */
    .menu-card .card-footer {
      display: none !important;
    }

    .menu-card .meta-line[data-days] {
      display: none !important;
    }

    .meta-line {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 0.85rem;
      color: var(--text-soft);
      gap: 12px;
    }

    .menu-card .code {
      display: none !important;
    }

    /* Características visibles: 2 líneas, gris; con nombre = 3 líneas (referencia) */
    .menu-card .detail-wrapper {
      flex-shrink: 0;
      min-height: 0;
      overflow: hidden;
      padding-top: 2px;
    }

    .menu-card .detail {
      margin: 0;
      padding: 0;
      font-size: 0.75rem;
      line-height: 1.2;
      color: #7A7A7A;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      line-clamp: 2;
      -webkit-box-orient: vertical;
      word-wrap: break-word;
      word-break: break-word;
    }

    .menu-card .detail-toggle-btn,
    .menu-card .detail-fade {
      display: none !important;
    }

    /* Footer de tarjeta oculto: solo precio visible (clic en tarjeta abre modal) */

    .quantity-row {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 6px 10px;
      border-radius: var(--radius-sm);
      background: var(--accent-soft);
      flex: 1;
    }

    .qty-btn {
      width: 32px;
      height: 32px;
      border-radius: 999px;
      border: 2px solid var(--primary);
      background: #fff;
      color: var(--primary);
      font-weight: 600;
      font-size: 1rem;
      cursor: pointer;
      transition: var(--transition);
    }

    .qty-btn:disabled {
      opacity: 0.35;
      border-color: rgba(0, 0, 0, 0.08);
      cursor: default;
    }

    .qty-btn:hover:not(:disabled) {
      background: var(--primary);
      color: #fff;
    }

    .quantity-display {
      min-width: 28px;
      text-align: center;
      font-weight: 600;
      color: var(--primary-dark);
    }

    .add-btn {
      border-radius: 999px;
      border: none;
      padding: 8px 14px;
      background: linear-gradient(120deg, #f4511e 0%, #ffb300 100%);
      color: #fff;
      font-size: 0.85rem;
      font-weight: 600;
      cursor: pointer;
      white-space: nowrap;
      transition: background var(--transition), transform var(--transition);
    }

    .add-btn:hover:not(:disabled) {
      transform: translateY(-1px);
      background: linear-gradient(120deg, #e64a19 0%, #ffa000 100%);
    }

    /* ===== PANEL DE PEDIDO FLOTANTE Y MINIMIZABLE ===== */
    .cart-panel {
      position: fixed;
      right: 16px;
      bottom: 16px;
      width: min(320px, 90vw);
      max-width: 400px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      display: flex;
      flex-direction: column;
      /* Altura será ajustada dinámicamente por JavaScript según cantidad de items */
      /* Valores por defecto: se ajustarán automáticamente */
      height: auto;
      max-height: 90vh; /* Aumentar para dar más espacio, especialmente con propina */
      min-height: 185px;
      overflow: hidden; /* Ocultar overflow pero el footer siempre será visible dentro del panel */
      z-index: 200;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
      cursor: default;
      /* Optimización de rendimiento: aislar layout */
      contain: layout style;
      transition: height 0.3s ease, max-height 0.3s ease;
      transform-origin: bottom right;
      /* Asegurar que no haya transformaciones que muevan el panel */
      transform: none;
    }

    /* ===== PANEL MINIMIZADO - SOLO LA BARRA DEL HEADER ===== */
    .cart-panel.minimized {
      /* ALTURA EXACTA DEL HEADER - SIN ESPACIOS EXTRA */
      height: auto !important;
      min-height: 0 !important;
      max-height: none !important;
      
      /* ANCHO COMPACTO */
      width: min(320px, 90vw) !important;
      max-width: 400px !important;
      
      /* POSICIÓN FIJA EN LA PARTE INFERIOR - ABSOLUTA DEL VIEWPORT */
      position: fixed !important;
      right: 16px !important;
      bottom: 16px !important;
      left: auto !important;
      top: auto !important;
      z-index: 9999 !important;
      
      /* ANULAR TRANSFORM-ORIGIN DEL PANEL BASE */
      transform-origin: center center !important;
      
      /* SIN TRANSFORMACIONES O MARGINS QUE INTERFIERAN */
      transform: none !important;
      margin: 0 !important;
      
      /* ELIMINAR FONDO Y BORDE DEL PANEL BASE - SOLO EL HEADER SE VE */
      background: transparent !important;
      border: none !important;
      box-shadow: none !important;
      
      /* SIN PADDING */
      padding: 0 !important;
      
      /* OVERFLOW HIDDEN PARA QUE NO HAYA ELEMENTOS INVISIBLES */
      overflow: hidden !important;
      
      /* CURSOR PARA ARRASTRE */
      cursor: grab !important;
      
      /* DISPLAY FLEX - SOLO PARA CONTENER EL HEADER */
      display: flex !important;
      flex-direction: column !important;
      align-items: stretch !important;
      
      /* ANULAR TRANSICIONES QUE PUEDAN INTERFERIR */
      transition: none !important;
      
      /* ASEGURAR QUE NO HAYA ELEMENTOS INVISIBLES BLOQUEANDO */
      contain: layout style paint !important;
    }

    .cart-panel.minimized:active {
      cursor: grabbing !important;
    }

    /* ELIMINAR COMPLETAMENTE ITEMS Y FOOTER - NO DEBEN OCUPAR ESPACIO */
    .cart-panel.minimized .cart-items,
    .cart-panel.minimized .cart-footer {
      display: none !important;
      visibility: hidden !important;
      opacity: 0 !important;
      height: 0 !important;
      min-height: 0 !important;
      max-height: 0 !important;
      width: 0 !important;
      min-width: 0 !important;
      max-width: 0 !important;
      padding: 0 !important;
      margin: 0 !important;
      overflow: hidden !important;
      pointer-events: none !important;
      position: absolute !important;
      top: -9999px !important;
      left: -9999px !important;
      flex: 0 0 0 !important;
      flex-basis: 0 !important;
      flex-grow: 0 !important;
      flex-shrink: 0 !important;
    }

    /* HEADER MINIMIZADO - CHIP CON ESQUINAS REDONDEADAS - ÚNICO ELEMENTO VISIBLE */
    .cart-panel.minimized .cart-header {
      display: flex !important;
      flex-shrink: 0 !important;
      flex-grow: 0 !important;
      flex-basis: auto !important;
      margin: 0 !important;
      padding: 12px 14px !important;
      width: 100% !important;
      
      /* ESQUINAS REDONDEADAS PROFESIONALES */
      border-radius: 12px !important;
      
      /* MANTENER FONDO NARANJA Y ESTILOS */
      background: linear-gradient(120deg, #ff8a65 0%, #ffb74d 100%) !important;
      box-shadow: 0 4px 12px rgba(244, 81, 30, 0.3) !important;
      
      /* ASEGURAR QUE EL HEADER SEA ARRASTRABLE */
      cursor: grab !important;
      user-select: none !important;
      touch-action: none !important;
    }
    
    .cart-panel.minimized .cart-header:active {
      cursor: grabbing !important;
    }


    .cart-panel.dragging {
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
      transform: scale(1.02);
    }
    
    /* Cuando está minimizado, NO aplicar transformaciones de dragging */
    .cart-panel.minimized.dragging {
      transform: none !important;
    }
    

    .cart-header {
      padding: 12px 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-weight: 600;
      background: linear-gradient(120deg, #ff8a65 0%, #ffb74d 100%);
      color: #2b2117;
      user-select: none;
      touch-action: none;
      cursor: grab;
      flex-shrink: 0;
      position: relative;
    }
    
    /* Cuando NO está minimizado, el header es clickeable para minimizar */
    .cart-panel:not(.minimized) .cart-header {
      cursor: pointer;
    }
    
    .cart-panel:not(.minimized) .cart-header:hover {
      opacity: 0.95;
    }

    .cart-header-left {
      display: flex;
      align-items: center;
      gap: 8px;
      flex: 1;
    }

    .cart-badge {
      background: #f4511e; /* Naranja oscuro */
      color: #fff;
      border-radius: 50%;
      width: 24px;
      height: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.75rem;
      font-weight: 700;
      flex-shrink: 0;
    }

    .cart-header button {
      background: none;
      border: none;
      color: inherit;
      font-size: 0.8rem;
      cursor: pointer;
      text-decoration: underline;
      opacity: 0.8;
      transition: opacity var(--transition);
      padding: 4px 8px;
    }

    .cart-header button:hover {
      opacity: 1;
    }
    
    /* Ocultar botones "Limpiar" y minimizar cuando el modal de detalle está abierto en móvil */
    @media screen and (max-width: 768px) {
      body.product-detail-open .cart-panel .cart-header #cart-clear-btn,
      body.product-detail-open .cart-panel .cart-header #cart-minimize-header-btn {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
      }
      
      /* Reducir el ancho del panel del carrito para que solo ocupe el espacio necesario */
      body.product-detail-open .cart-panel,
      body.product-detail-open .cart-panel.minimized {
        width: auto !important;
        min-width: auto !important;
        max-width: fit-content !important;
      }
      
      /* Asegurar que el header se ajuste al contenido sin espacios vacíos */
      body.product-detail-open .cart-panel .cart-header,
      body.product-detail-open .cart-panel.minimized .cart-header {
        justify-content: flex-start !important;
        padding-right: 14px !important;
        width: auto !important;
        min-width: auto !important;
        max-width: fit-content !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        display: inline-flex !important;
      }
      
      body.product-detail-open .cart-panel .cart-header > div:last-child {
        display: none !important;
      }
      
      /* Ajustar el contenedor izquierdo para que no se extienda */
      body.product-detail-open .cart-panel .cart-header-left {
        flex: 0 0 auto !important;
        flex-grow: 0 !important;
        flex-shrink: 0 !important;
        width: auto !important;
        min-width: auto !important;
        max-width: none !important;
      }

      /* Ocultar barra del carrito cuando el modal de carta está abierto */
      body.carta-modal-open .cart-panel {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
      }
    }

    .cart-panel.dragging .cart-header {
      cursor: grabbing;
    }

    .cart-items {
      flex: 1 1 auto; /* Permitir que crezca pero también que se encoja */
      overflow-y: auto;
      overflow-x: hidden;
      padding: 12px 16px;
      font-size: 0.85rem;
      color: var(--text-soft);
      background: var(--surface);
      /* Scroll suave y eficiente */
      -webkit-overflow-scrolling: touch;
      scroll-behavior: smooth;
      /* Asegurar que el scroll funcione bien */
      min-height: 0;
      /* Altura será ajustada dinámicamente por JavaScript según cantidad de items */
      /* Valores por defecto: se ajustarán automáticamente */
      /* JavaScript sobrescribirá estos valores con !important */
      height: auto;
      min-height: 40px;
      max-height: calc(90vh - 300px); /* Dejar espacio para header (~50px) y footer (~250px con propina) */
      box-sizing: border-box;
      /* Asegurar que el scroll funcione correctamente */
      flex-basis: 0; /* Permitir que se encoja correctamente */
    }

    .cart-items::-webkit-scrollbar {
      width: 6px;
    }

    .cart-items::-webkit-scrollbar-thumb {
      background: rgba(244, 81, 30, 0.45);
      border-radius: 6px;
    }

    .cart-item {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      padding: 12px;
      border-radius: var(--radius-sm);
      cursor: pointer;
      user-select: none;
      position: relative;
      transition: transform 0.2s ease, background-color 0.2s ease;
      touch-action: pan-y;
      background: var(--surface-alt);
      margin-bottom: 10px;
      border: 1px solid rgba(244, 81, 30, 0.12);
    }

    .cart-item strong {
      display: block;
      color: var(--text-main);
      font-weight: 600;
    }

    .cart-footer {
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      background: var(--surface);
      border-top: 1px solid rgba(0, 0, 0, 0.05);
      flex-shrink: 0 !important; /* No permitir que el footer se encoja - FORZAR */
      flex-grow: 0 !important; /* No permitir que el footer crezca - FORZAR */
      flex-basis: auto !important; /* Mantener tamaño automático */
      position: relative; /* Asegurar posicionamiento relativo */
      z-index: 10; /* Asegurar que esté por encima de otros elementos */
      /* Asegurar visibilidad */
      visibility: visible !important;
      opacity: 1 !important;
      /* Asegurar que no se corte */
      min-height: 200px; /* Altura mínima para incluir propina, subtotal, total y botón */
    }

    .cart-total {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-weight: 700;
      font-size: 1.05rem;
      color: var(--text-main);
      flex-shrink: 0; /* No permitir que se encoja */
      visibility: visible !important;
      opacity: 1 !important;
    }

    .cart-total span:last-child {
      color: var(--primary);
      font-size: 1.2rem;
    }

    .cart-send {
      background: linear-gradient(120deg, #f4511e 0%, #ffb300 100%);
      color: #fff;
      border: none;
      border-radius: 999px;
      padding: 12px;
      font-size: 0.95rem;
      font-weight: 600;
      cursor: pointer;
      transition: background var(--transition), transform var(--transition);
      flex-shrink: 0 !important; /* No permitir que el botón se encoja - FORZAR */
      width: 100% !important; /* Asegurar que ocupe todo el ancho disponible - FORZAR */
      display: block !important; /* Forzar display block */
      visibility: visible !important; /* Forzar visibilidad */
      opacity: 1 !important; /* Forzar opacidad */
      position: relative; /* Asegurar posicionamiento */
      z-index: 10; /* Asegurar que esté por encima */
      margin-top: 0; /* Sin margen superior */
      min-height: 44px; /* Altura mínima para móviles */
    }

    .cart-send:hover:not(:disabled) {
      transform: translateY(-2px);
      background: linear-gradient(120deg, #e64a19 0%, #ffa000 100%);
    }

    .cart-send:disabled {
      opacity: 0.5;
      cursor: default;
    }

    .empty-state {
      text-align: center;
      padding: 60px 20px;
      color: var(--text-soft);
      border: 1px dashed rgba(244, 81, 30, 0.3);
      border-radius: var(--radius-lg);
      background: rgba(255, 255, 255, 0.92);
    }

    .alert-banner {
      background: rgba(255, 235, 59, 0.92);
      border: 1px solid rgba(255, 193, 7, 0.6);
      color: #6d4c41;
      font-size: 0.84rem;
      padding: 10px 16px;
      border-radius: var(--radius-sm);
      margin-top: 6px;
      display: none;
      box-shadow: var(--shadow-soft);
      font-weight: 600;
    }

    /* ===== PANEL FLOTANTE DE ADVERTENCIA MODERNO ===== */
    .warning-panel-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      z-index: 700;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
      animation: fadeIn 0.2s ease;
    }

    .warning-panel-overlay.active {
      display: flex;
    }

    .warning-panel {
      background: var(--surface);
      border-radius: var(--radius-lg);
      max-width: 400px;
      width: 100%;
      padding: 24px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
      position: relative;
      animation: slideUp 0.3s ease;
      border: 1px solid var(--border);
    }

    .warning-panel-header {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 16px;
    }

    .warning-panel-icon {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: rgba(255, 193, 7, 0.15);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      font-size: 1.5rem;
    }

    .warning-panel-title {
      font-size: 1.2rem;
      font-weight: 700;
      color: var(--text-main);
      margin: 0;
    }

    .warning-panel-message {
      color: var(--text-soft);
      font-size: 0.95rem;
      line-height: 1.5;
      margin-bottom: 20px;
    }

    .warning-panel-actions {
      display: flex;
      gap: 10px;
      justify-content: flex-end;
    }

    .warning-panel-btn {
      padding: 10px 20px;
      border-radius: var(--radius);
      border: none;
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      transition: all var(--transition);
    }

    .warning-panel-btn-cancel {
      background: rgba(0, 0, 0, 0.08);
      color: var(--text-main);
    }

    .warning-panel-btn-cancel:hover {
      background: rgba(0, 0, 0, 0.12);
    }

    .warning-panel-btn-confirm {
      background: linear-gradient(120deg, #f4511e 0%, #ffb300 100%);
      color: #fff;
    }

    .warning-panel-btn-confirm:hover {
      background: linear-gradient(120deg, #e64a19 0%, #ffa000 100%);
      transform: translateY(-1px);
    }

    /* ===== MODAL DE CONFIRMACIÓN PARA LIMPIAR CARRITO ===== */
    .clear-cart-confirm-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.65);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      z-index: 750;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
      animation: fadeIn 0.25s ease;
    }

    .clear-cart-confirm-overlay.active {
      display: flex;
    }

    .clear-cart-confirm-panel {
      background: var(--surface);
      border-radius: var(--radius-lg);
      max-width: 420px;
      width: 100%;
      padding: 28px 24px;
      box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
      position: relative;
      animation: slideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
      border: 1px solid var(--border);
      transform-origin: center;
    }

    .clear-cart-confirm-header {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
      margin-bottom: 20px;
      text-align: center;
    }

    .clear-cart-confirm-icon {
      width: 56px;
      height: 56px;
      border-radius: 50%;
      background: linear-gradient(135deg, rgba(244, 81, 30, 0.12) 0%, rgba(255, 179, 0, 0.12) 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      color: var(--primary);
      transition: transform 0.3s ease;
    }

    .clear-cart-confirm-overlay.active .clear-cart-confirm-icon {
      animation: iconPulse 0.6s ease;
    }

    @keyframes iconPulse {
      0%, 100% {
        transform: scale(1);
      }
      50% {
        transform: scale(1.1);
      }
    }

    .clear-cart-confirm-icon svg {
      width: 28px;
      height: 28px;
      stroke-width: 2.5;
    }

    .clear-cart-confirm-title {
      font-size: 1.35rem;
      font-weight: 700;
      color: var(--text-main);
      margin: 0;
      letter-spacing: -0.02em;
    }

    .clear-cart-confirm-message {
      color: var(--text-soft);
      font-size: 0.95rem;
      line-height: 1.6;
      margin: 0 0 24px 0;
      text-align: center;
      padding: 0 4px;
    }

    .clear-cart-confirm-actions {
      display: flex;
      gap: 12px;
      justify-content: center;
    }

    .clear-cart-confirm-btn {
      padding: 12px 24px;
      border-radius: var(--radius);
      border: none;
      font-size: 0.95rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
      min-width: 120px;
      letter-spacing: 0.01em;
    }

    .clear-cart-confirm-btn-cancel {
      background: rgba(0, 0, 0, 0.06);
      color: var(--text-main);
      border: 1px solid var(--border);
    }

    .clear-cart-confirm-btn-cancel:hover {
      background: rgba(0, 0, 0, 0.1);
      transform: translateY(-1px);
    }

    .clear-cart-confirm-btn-cancel:active {
      transform: translateY(0);
    }

    .clear-cart-confirm-btn-confirm {
      background: linear-gradient(120deg, #f4511e 0%, #ffb300 100%);
      color: #fff;
      box-shadow: 0 4px 12px rgba(244, 81, 30, 0.3);
    }

    .clear-cart-confirm-btn-confirm:hover {
      background: linear-gradient(120deg, #e64a19 0%, #ffa000 100%);
      transform: translateY(-1px);
      box-shadow: 0 6px 16px rgba(244, 81, 30, 0.4);
    }

    .clear-cart-confirm-btn-confirm:active {
      transform: translateY(0);
      box-shadow: 0 2px 8px rgba(244, 81, 30, 0.3);
    }

    /* Modal "Pedido recepcionado en caja" — overlay fijo, centrado, profesional */
    .order-success-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.65);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      z-index: 800;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
      animation: fadeIn 0.25s ease;
    }
    .order-success-overlay.active {
      display: flex;
    }
    /* Fase única de envío: tapa carta + modal tipo; evita pestañazo de chips */
    .order-sending-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.78);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      z-index: 750;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }
    .order-sending-overlay.active {
      display: flex;
    }
    .order-sending-panel {
      background: var(--surface);
      border-radius: var(--radius-lg);
      max-width: 360px;
      width: 100%;
      padding: 28px 24px;
      box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
      border: 1px solid var(--border);
      text-align: center;
    }
    .order-sending-spinner {
      width: 44px;
      height: 44px;
      margin: 0 auto 16px;
      border-radius: 50%;
      border: 3px solid rgba(255, 255, 255, 0.15);
      border-top-color: var(--primary, #e65100);
      animation: order-sending-spin 0.75s linear infinite;
    }
    @keyframes order-sending-spin {
      to { transform: rotate(360deg); }
    }
    .order-sending-title {
      margin: 0 0 8px;
      font-size: 1.15rem;
      font-weight: 700;
      color: var(--text-main);
    }
    .order-sending-sub {
      margin: 0;
      font-size: 0.9rem;
      color: var(--text-muted, #94a3b8);
      line-height: 1.4;
    }
    .order-success-panel {
      background: var(--surface);
      border-radius: var(--radius-lg);
      max-width: 420px;
      width: 100%;
      padding: 28px 24px;
      box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
      position: relative;
      animation: slideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
      border: 1px solid var(--border);
      text-align: center;
    }
    .order-success-icon {
      width: 56px;
      height: 56px;
      margin: 0 auto 16px;
      border-radius: 50%;
      background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
      color: #fff;
      font-size: 1.75rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
    }
    .order-success-title {
      font-size: 1.35rem;
      font-weight: 700;
      color: var(--text-main);
      margin: 0 0 12px;
    }
    .order-success-message {
      color: var(--text-soft);
      font-size: 0.95rem;
      line-height: 1.5;
      margin: 0 0 24px;
      text-align: center;
    }
    .order-success-message .order-success-line {
      display: block;
      margin: 0 0 0.4em;
      white-space: normal;
    }
    .order-success-message .order-success-line:last-child {
      margin-bottom: 0;
    }
    .order-success-message .order-success-envio {
      margin-top: 1.25em;
      margin-bottom: 0;
      font-weight: 500;
    }
    .order-success-btn {
      padding: 12px 28px;
      border-radius: var(--radius);
      border: none;
      background: #0d9488;
      color: #fff;
      font-size: 0.95rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    .order-success-btn:hover {
      background: #0f766e;
      transform: translateY(-1px);
    }
    .order-success-btn:active {
      transform: translateY(0);
    }

    /* ===== MODAL DESTINO (mesa / para llevar) — cara al cliente ===== */
    .pickup-dest-overlay {
      position: fixed;
      inset: 0;
      z-index: 900;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
      background:
        radial-gradient(ellipse 80% 55% at 50% -10%, var(--accent-light), transparent 60%),
        rgba(8, 6, 4, 0.8);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
    }
    .pickup-dest-overlay.active {
      display: flex;
      animation: fadeIn 0.28s ease;
    }
    .pickup-dest-panel {
      position: relative;
      width: 100%;
      max-width: 440px;
      padding: 28px 22px 22px;
      border-radius: calc(var(--radius-lg) + 4px);
      background: var(--surface);
      border: 1px solid var(--border);
      box-shadow:
        0 28px 64px rgba(0, 0, 0, 0.45),
        0 0 40px var(--accent-soft);
      text-align: center;
      overflow: hidden;
      animation: slideUp 0.38s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .pickup-dest-panel::before {
      content: '';
      position: absolute;
      inset: 0 0 auto 0;
      height: 3px;
      background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
      opacity: 0.95;
    }
    .pickup-dest-kicker {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin: 0 0 10px;
      padding: 5px 12px;
      border-radius: 999px;
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--primary-dark, var(--primary));
      background: var(--accent-light);
      border: 1px solid var(--border);
    }
    .pickup-dest-kicker svg {
      width: 14px;
      height: 14px;
      flex-shrink: 0;
    }
    .pickup-dest-title {
      margin: 0 0 8px;
      font-size: 1.45rem;
      font-weight: 800;
      letter-spacing: -0.02em;
      color: var(--text-main);
      line-height: 1.2;
    }
    .pickup-dest-sub {
      margin: 0 0 22px;
      font-size: 0.92rem;
      color: var(--text-soft);
      line-height: 1.45;
    }
    .pickup-dest-choices {
      display: grid;
      grid-template-columns: 1fr;
      gap: 12px;
    }
    .pickup-dest-btn {
      position: relative;
      display: flex;
      align-items: center;
      gap: 14px;
      width: 100%;
      padding: 16px 16px 16px 14px;
      border: 1.5px solid var(--border);
      border-radius: var(--radius-md);
      background: linear-gradient(145deg, var(--surface-alt) 0%, var(--surface) 100%);
      color: var(--text-main);
      cursor: pointer;
      text-align: left;
      transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
      -webkit-tap-highlight-color: transparent;
    }
    .pickup-dest-btn:hover,
    .pickup-dest-btn:focus-visible {
      outline: none;
      transform: translateY(-2px);
      border-color: var(--primary);
      box-shadow: var(--shadow-hover);
    }
    .pickup-dest-btn:active {
      transform: translateY(0) scale(0.985);
    }
    .pickup-dest-btn-icon {
      width: 44px;
      height: 44px;
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      background: linear-gradient(145deg, var(--primary), var(--accent));
      color: #fff;
      box-shadow: var(--shadow-card);
    }
    .pickup-dest-btn-icon svg {
      width: 22px;
      height: 22px;
    }
    .pickup-dest-btn-text {
      flex: 1;
      min-width: 0;
    }
    .pickup-dest-btn-label {
      display: block;
      font-size: 1.05rem;
      font-weight: 700;
      line-height: 1.25;
      color: var(--text-main);
      word-break: break-word;
    }
    .pickup-dest-btn-hint {
      display: block;
      margin-top: 3px;
      font-size: 0.78rem;
      font-weight: 500;
      color: var(--text-soft);
      letter-spacing: 0.02em;
    }
    .pickup-dest-btn-chevron {
      flex-shrink: 0;
      width: 20px;
      height: 20px;
      color: var(--primary);
      opacity: 0.75;
    }
    .pickup-dest-cancel {
      display: block;
      width: 100%;
      margin-top: 14px;
      padding: 10px;
      border: none;
      background: transparent;
      color: var(--text-soft);
      font-size: 0.88rem;
      font-weight: 600;
      cursor: pointer;
      border-radius: var(--radius-sm);
    }
    .pickup-dest-cancel:hover,
    .pickup-dest-cancel:focus-visible {
      color: var(--text-main);
      background: var(--accent-soft);
      outline: none;
    }
    @media (min-width: 480px) {
      .pickup-dest-choices {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
      }
      .pickup-dest-btn {
        flex-direction: column;
        align-items: flex-start;
        min-height: 148px;
        padding: 18px 16px;
      }
      .pickup-dest-btn-chevron {
        position: absolute;
        top: 14px;
        right: 12px;
      }
      .pickup-dest-btn-hint {
        margin-top: 6px;
      }
    }
    @media (max-width: 479px) {
      .pickup-dest-panel {
        padding: 24px 16px 18px;
      }
      .pickup-dest-title {
        font-size: 1.28rem;
      }
    }

    /* Responsive para móvil */
    @media (max-width: 480px) {
      .clear-cart-confirm-panel {
        max-width: 92%;
        padding: 24px 20px;
      }

      .clear-cart-confirm-icon {
        width: 48px;
        height: 48px;
      }

      .clear-cart-confirm-icon svg {
        width: 24px;
        height: 24px;
      }

      .clear-cart-confirm-title {
        font-size: 1.2rem;
      }

      .clear-cart-confirm-message {
        font-size: 0.9rem;
        margin-bottom: 20px;
      }

      .clear-cart-confirm-actions {
        flex-direction: column;
        gap: 10px;
      }

      .clear-cart-confirm-btn {
        width: 100%;
        min-width: auto;
      }
    }

    /* ===== MODAL DE ALERTA PERSONALIZADA (NO BLOQUEA FOCO) ===== */
    .custom-alert-modal {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.5);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 10000;
      backdrop-filter: blur(2px);
    }
    
    .custom-alert-modal.active {
      display: flex;
      animation: fadeIn 0.2s ease;
    }
    
    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }
    
    .custom-alert-content {
      background: white;
      border-radius: var(--radius-lg);
      width: 90%;
      max-width: 400px;
      box-shadow: 0 20px 40px rgba(0,0,0,0.3);
      overflow: hidden;
      animation: slideUp 0.3s ease;
    }
    
    @keyframes slideUp {
      from {
        transform: translateY(20px);
        opacity: 0;
      }
      to {
        transform: translateY(0);
        opacity: 1;
      }
    }
    
    .custom-alert-header {
      padding: var(--spacing-lg, 20px);
      text-align: center;
      border-bottom: 1px solid rgba(0,0,0,0.1);
    }
    
    .custom-alert-icon {
      font-size: 3rem;
      margin-bottom: 8px;
    }
    
    .custom-alert-title {
      font-size: 1.2rem;
      font-weight: 700;
      color: var(--text-main, #1f1b16);
    }
    
    .custom-alert-body {
      padding: var(--spacing-lg, 20px);
      text-align: center;
    }
    
    .custom-alert-message {
      font-size: 0.95rem;
      color: var(--text-soft, #5f6368);
      line-height: 1.5;
    }
    
    .custom-alert-footer {
      padding: 16px 20px;
      display: flex;
      gap: 8px;
      justify-content: center;
      border-top: 1px solid rgba(0,0,0,0.1);
    }
    
    .custom-alert-btn {
      padding: 10px 20px;
      border: none;
      border-radius: var(--radius-sm, 10px);
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
      font-size: 0.9rem;
    }
    
    .custom-alert-btn-primary {
      background: var(--primary, #f4511e);
      color: white;
    }
    
    .custom-alert-btn-primary:hover {
      background: var(--primary-dark, #bf360c);
      transform: scale(1.05);
    }
    
    .custom-alert-btn-secondary {
      background: var(--surface-alt, #fff0dd);
      color: var(--text-main, #1f1b16);
      border: 1px solid rgba(0,0,0,0.1);
    }
    
    .custom-alert-btn-secondary:hover {
      background: #ffe0b2;
    }
    
    /* ===== MODAL DE CARTA COMPLETA ===== */
    .carta-modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.85);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      z-index: 600;
      display: none;
      align-items: flex-start;
      justify-content: center;
      padding: 0;
      animation: fadeIn 0.3s ease;
      overflow-y: auto;
    }

    .carta-modal-overlay.active {
      display: flex;
    }

    .carta-modal {
      background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
      background-image: 
        repeating-linear-gradient(
          45deg,
          transparent,
          transparent 10px,
          rgba(0, 0, 0, 0.1) 10px,
          rgba(0, 0, 0, 0.1) 20px
        );
      border-radius: var(--radius-lg);
      max-width: 100vw;
      width: 100%;
      max-height: 100vh;
      padding: 0;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
      position: relative;
      animation: slideUp 0.3s ease;
      border: 2px solid rgba(244, 81, 30, 0.3);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      margin-top: 0;
      border-radius: 0;
    }

    .carta-modal::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(244, 81, 30, 0.5) 20%, 
        rgba(255, 179, 0, 0.8) 50%, 
        rgba(244, 81, 30, 0.5) 80%, 
        transparent 100%);
      animation: shimmer 3s linear infinite;
      z-index: 1;
    }

    @keyframes shimmer {
      0% {
        transform: translateX(-100%);
      }
      100% {
        transform: translateX(100%);
      }
    }

    .carta-modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 16px;
      padding-top: max(12px, env(safe-area-inset-top, 0px) + 12px);
      border-bottom: 2px solid rgba(244, 81, 30, 0.3);
      background: rgba(0, 0, 0, 0.3);
      flex-shrink: 0;
      gap: 12px;
      min-height: auto;
    }

    .carta-modal-title {
      font-size: 1.5rem;
      font-weight: 700;
      color: #fff;
      margin: 0;
      text-transform: uppercase;
      letter-spacing: 1px;
      flex: 1 1 auto;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      position: relative;
      text-shadow: 0 0 8px rgba(255, 179, 0, 0.4);
    }

    .carta-modal-close {
      width: 40px;
      height: 40px;
      min-width: 40px;
      min-height: 40px;
      border-radius: 50%;
      border: 2px solid rgba(255, 255, 255, 0.3);
      background: rgba(255, 255, 255, 0.1);
      color: #fff;
      font-size: 1.8rem;
      font-weight: 700;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all var(--transition);
      line-height: 1;
      flex-shrink: 0;
    }

    .carta-modal-close:hover {
      background: rgba(255, 255, 255, 0.2);
      border-color: rgba(255, 255, 255, 0.5);
      transform: scale(1.1);
    }

    .carta-modal-content {
      padding: 24px;
      overflow-y: auto;
      flex: 1 1 auto;
      min-height: 0;
      position: relative;
    }

    .carta-categories-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 24px;
      width: 100%;
      position: relative;
      z-index: 1;
    }

    .carta-category {
      display: flex;
      flex-direction: column;
      background: rgba(0, 0, 0, 0.2);
      border-radius: var(--radius);
      overflow: hidden;
      border: 1px solid rgba(244, 81, 30, 0.2);
      position: relative;
      transition: border-color 0.2s ease;
      opacity: 0;
      animation: categoryFadeIn 0.3s ease forwards;
    }

    .carta-category:nth-child(1) { animation-delay: 0.05s; }
    .carta-category:nth-child(2) { animation-delay: 0.1s; }
    .carta-category:nth-child(3) { animation-delay: 0.15s; }
    .carta-category:nth-child(4) { animation-delay: 0.2s; }
    .carta-category:nth-child(5) { animation-delay: 0.25s; }
    .carta-category:nth-child(6) { animation-delay: 0.3s; }
    .carta-category:nth-child(n+7) { animation-delay: 0.35s; }

    .carta-category::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(244, 81, 30, 0.6) 20%, 
        rgba(255, 152, 0, 0.8) 50%, 
        rgba(244, 81, 30, 0.6) 80%, 
        transparent 100%);
      opacity: 0.8;
      pointer-events: none;
    }

    .carta-category:hover {
      border-color: rgba(244, 81, 30, 0.5);
    }

    .carta-category:hover::after {
      opacity: 1;
    }

    @keyframes categoryFadeIn {
      from {
        opacity: 0;
      }
      to {
        opacity: 1;
      }
    }

    .carta-category-header {
      background: linear-gradient(120deg, #f4511e 0%, #e64a19 100%);
      color: #fff;
      padding: 12px 16px;
      font-size: 1.1rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      text-align: center;
      border-bottom: 2px solid rgba(255, 255, 255, 0.1);
      position: relative;
      overflow: hidden;
      border-radius: 8px 8px 0 0;
    }

    .carta-category-header.out-of-schedule {
      background: linear-gradient(120deg, #8d6e63 0%, #6d4c41 100%);
      opacity: 0.85;
    }

    .carta-category-header.out-of-schedule::after {
      content: ' (Fuera de horario)';
      font-size: 0.75rem;
      font-weight: 400;
      opacity: 0.9;
      font-style: italic;
    }

    .carta-category-items {
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .carta-item {
      display: flex;
      flex-direction: column;
      gap: 6px;
      padding-bottom: 16px;
      border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    }

    .carta-item:last-child {
      border-bottom: none;
      padding-bottom: 0;
    }

    .carta-item-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 12px;
    }

    .carta-item-name {
      font-size: 1rem;
      font-weight: 700;
      color: #ffb300;
      flex: 1 1 auto;
      line-height: 1.3;
      cursor: pointer;
      transition: color 0.2s ease;
      user-select: none;
      position: relative;
    }

    .carta-item-name:hover {
      color: #ffc107;
    }

    .carta-item-price {
      background: linear-gradient(120deg, #f4511e 0%, #e64a19 100%);
      color: #fff;
      padding: 6px 12px;
      border-radius: 6px;
      font-size: 0.95rem;
      font-weight: 700;
      white-space: nowrap;
      flex-shrink: 0;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
      transition: opacity 0.2s ease;
    }

    .carta-item:hover .carta-item-price {
      opacity: 0.9;
    }

    .carta-item-prices {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      flex-shrink: 0;
    }

    .carta-item-description {
      font-size: 0.85rem;
      color: rgba(255, 255, 255, 0.85);
      line-height: 1.4;
      margin-top: 4px;
    }

    /* Scrollbar personalizado para el modal */
    .carta-modal-content::-webkit-scrollbar {
      width: 8px;
    }

    .carta-modal-content::-webkit-scrollbar-track {
      background: rgba(0, 0, 0, 0.2);
      border-radius: 4px;
    }

    .carta-modal-content::-webkit-scrollbar-thumb {
      background: rgba(244, 81, 30, 0.5);
      border-radius: 4px;
    }

    .carta-modal-content::-webkit-scrollbar-thumb:hover {
      background: rgba(244, 81, 30, 0.7);
    }

    /* Responsive para móviles */
    @media screen and (max-width: 768px) {
      .carta-modal {
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
        padding: 0;
        margin-top: 0;
      }

      .carta-modal-overlay {
        padding: 0;
        align-items: flex-start;
      }

      .carta-modal-header {
        padding: 10px 16px;
        padding-top: max(10px, env(safe-area-inset-top, 0px) + 10px);
        min-height: auto;
        gap: 12px;
      }

      .carta-modal-title {
        font-size: 1.2rem;
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .carta-modal-close {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        font-size: 1.6rem;
      }

      .carta-modal-content {
        padding: 16px;
      }

      .carta-categories-grid {
        grid-template-columns: 1fr;
        gap: 16px;
      }

      .carta-category-header {
        font-size: 1rem;
        padding: 10px 12px;
      }

      .carta-category-items {
        padding: 12px;
        gap: 12px;
      }

      .carta-item {
        padding-bottom: 12px;
        gap: 4px;
      }

      .carta-item-name {
        font-size: 0.95rem;
      }

      .carta-item-price {
        font-size: 0.85rem;
        padding: 5px 10px;
      }

      .carta-item-description {
        font-size: 0.8rem;
      }
    }

    @media (max-width: 1024px) {
      main {
        flex-direction: column;
      }

      .categories-nav {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        max-height: none;
        padding-bottom: 6px;
      }

      .category-chip {
        min-width: 170px;
      }
    }

    /* Layout horizontal para móviles - DEBE IR DESPUÉS de 1024px */
    @media screen and (max-width: 768px), screen and (max-device-width: 768px) {
      header {
        background: linear-gradient(180deg, 
          #000000 0%, 
          #000000 20%, 
          #0a0a0a 40%, 
          #1a1a1a 60%, 
          #2d1a0a 75%, 
          #4a2a0f 85%, 
          #6b3d1a 92%, 
          #ff7043 98%, 
          #ff9800 100%) !important;
        background-image: 
          radial-gradient(circle at 50% 20%, rgba(255, 193, 7, 0.15) 0%, transparent 40%),
          radial-gradient(circle at 30% 60%, rgba(255, 112, 67, 0.25) 0%, transparent 50%),
          radial-gradient(circle at 70% 70%, rgba(255, 152, 0, 0.2) 0%, transparent 45%),
          radial-gradient(circle at 50% 85%, rgba(255, 193, 7, 0.18) 0%, transparent 55%) !important;
        background-color: #000000 !important;
        padding: 0 !important;
        min-height: 95px;
        max-height: 95px;
        flex-wrap: nowrap;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        overflow: visible;
        gap: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        box-sizing: border-box !important;
      }

      .brand {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        height: auto !important;
        min-height: 50px !important;
        max-height: 60px !important;
        padding: 4px 8px !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
        overflow: visible !important;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 15 !important;
        box-sizing: border-box !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
      }

      .brand img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: auto !important;
        height: auto !important;
        max-height: 55px !important;
        min-height: 45px !important;
        max-width: 90% !important;
        object-fit: contain !important;
        margin: 0 auto !important;
      }

      .brand-details {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
      }

      .brand-details h1 {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
      }

      .brand-details span {
        display: none !important;
      }

      .header-categories {
        display: flex !important;
        padding: 4px 6px !important;
        gap: 4px !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch;
        flex: 0 0 auto !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        margin: 0 !important;
        margin-top: 0 !important;
        align-self: stretch !important;
        align-items: center !important;
        scrollbar-width: none;
        -ms-overflow-style: none;
        box-sizing: border-box !important;
        z-index: 5 !important;
        position: relative !important;
      }

      .header-categories::-webkit-scrollbar {
        display: none;
      }

      .header-category-chip {
        padding: 0 8px !important;
        font-size: 0.7rem !important;
        font-weight: 600 !important;
        flex: 1 1 auto !important;
        min-width: fit-content !important;
        gap: 0 !important;
        height: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        /* El color de fondo se aplica dinámicamente via JavaScript - sin transparencia genérica */
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        box-shadow: none !important;
        transform-origin: center center !important; /* Permite crecimiento desde el centro */
      }
      
      .header-category-chip-icon {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        opacity: 0 !important;
      }
      
      .header-category-chip-text {
        font-size: 0.7rem !important;
        white-space: nowrap !important;
        flex: 1 1 auto !important;
        text-align: center !important;
        width: 100% !important;
        /* El color se aplica dinámicamente via JavaScript */
        font-weight: 600 !important;
        padding: 0 !important;
        margin: 0 !important;
      }
      
      .header-category-chip.active {
        border: 3.5px solid transparent !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
        position: relative;
        /* El fondo se mantiene con el color original de la categoría (se aplica via JavaScript) */
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transform: scale(1.05) !important;
        transform-origin: center center !important; /* Crecimiento desde el centro */
        animation: chip-pulse 2s ease-in-out infinite !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        height: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;
        justify-content: center !important;
        /* Permite que el chip crezca y empuje a los demás */
        flex-shrink: 0 !important;
        z-index: 10001 !important;
        /* Padding adicional para acomodar el zoom del texto */
        padding: 0 14px !important;
        /* Asegurar que el contenido no se salga */
        overflow: hidden !important;
      }
      
      .header-category-chip.active .header-category-chip-icon {
        display: none !important;
      }
      
      .header-category-chip.active::before {
        content: '';
        position: absolute;
        top: -3.5px;
        left: -3.5px;
        right: -3.5px;
        bottom: -3.5px;
        border-radius: 16px;
        /* El color del trazo se aplica dinámicamente via JavaScript usando CSS variable */
        background: var(--active-border-color, linear-gradient(90deg, #ff6f00, #ff9800, #ffc107, #ff9800, #ff6f00, #ff6f00));
        background-size: 400% 100%;
        animation: border-glow 3s linear infinite;
        z-index: -1;
        padding: 3.5px;
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: exclude;
      }
      
      .header-category-chip.active .header-category-chip-text {
        color: #ffffff !important;
        font-weight: 800 !important;
        text-shadow: none !important;
        letter-spacing: 0.5px !important;
        animation: text-zoom-intense 1.5s cubic-bezier(0.42, 0, 0.58, 1) infinite !important;
        transform-origin: center center !important;
        display: inline-block !important;
        /* Asegurar que el texto no se salga del chip */
        max-width: 100% !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        text-align: center !important;
      }
      
      .header-category-chip.active .header-category-chip-icon {
        box-shadow: none !important;
        /* El borde y fondo se mantienen con el color original (se aplica via JavaScript) */
        transform: scale(1.1) !important;
      }
      
      /* Hover para modo móvil - efecto sutil sin cambiar el color de fondo */
      .header-category-chip:hover:not(.active) {
        opacity: 0.9 !important;
        transform: scale(1.02) !important;
      }
      
      .header-category-chip.active:hover {
        opacity: 1 !important;
        /* La animación de pulso ya maneja el scale, no interferimos */
      }
      
      .header-category-chip.inactive:hover {
        opacity: 0.9 !important;
        filter: brightness(0.95) !important;
      }

      .header-actions {
        position: absolute !important;
        top: 4px !important;
        right: 6px !important;
        left: 6px !important;
        width: auto !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 1000 !important;
      }

      .menu-toggle {
        position: fixed !important;
        top: 10px !important;
        left: 10px !important;
        width: 36px !important;
        height: 36px !important;
        z-index: 1000 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
        background: rgba(255, 255, 255, 0.2) !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
      }

      .menu-toggle svg {
        width: 16px !important;
        height: 16px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        fill: #fff !important;
      }

      .search-toggle {
        position: fixed !important;
        top: 10px !important;
        right: 10px !important;
        width: 36px !important;
        height: 36px !important;
        z-index: 1000 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
        background: rgba(255, 255, 255, 0.2) !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
      }

      .search-toggle svg {
        width: 16px !important;
        height: 16px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        fill: #fff !important;
      }

      .search-box {
        position: absolute !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        padding: 8px 12px !important;
        z-index: 1002 !important;
        transform: translateY(100%) !important;
        margin: 0 !important;
        transition: transform 0.3s ease !important;
      }

      .search-box.active {
        transform: translateY(0) !important;
      }

      main {
        padding: 8px 8px calc(40vh + 100px);
        gap: 8px;
      }

      /* ============================================
         ESTILOS MÓVIL - COMPACTO: IMAGEN, NOMBRE, PRECIO Y BOTÓN
         Diseño minimalista y profesional
         NO afecta modo escritorio/horizontal
         ============================================ */
      
      .menu-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        grid-auto-rows: 280px !important;
        gap: 12px !important;
        align-content: start !important;
      }

      .menu-card {
        display: flex !important;
        flex-direction: column !important;
        height: 280px !important;
        min-height: 280px !important;
        max-height: 280px !important;
        overflow: hidden !important;
        border-radius: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border: 1px solid rgba(244, 81, 30, 0.18) !important;
      }

      .menu-card:hover {
        transform: none !important;
        box-shadow: var(--shadow-soft) !important;
      }

      .menu-card-media {
        width: 100% !important;
        height: 182px !important;
        min-height: 182px !important;
        max-height: 182px !important;
        flex-shrink: 0 !important;
        overflow: hidden !important;
        position: relative !important;
        background: linear-gradient(135deg, #ffffff 0%, #fff7f0 100%) !important;
        border-radius: 11px 11px 0 0 !important;
        display: block !important;
        padding: 0 !important;
        box-sizing: border-box !important;
      }

      .menu-card-media img {
        width: 100% !important;
        height: 100% !important;
        min-width: 100% !important;
        min-height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        display: block !important;
      }

      .menu-card .card-body {
        flex: 0 0 98px !important;
        height: 98px !important;
        min-height: 98px !important;
        padding: 6px 10px 48px 10px !important;
        overflow: visible !important;
        position: relative !important;
      }

      .menu-card .card-header {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
      }

      .menu-card h3 {
        font-size: 0.85rem !important;
        line-height: 1.2 !important;
        max-height: 2.4em !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
      }

      .menu-card .card-header .price,
      .menu-card .price {
        position: absolute !important;
        bottom: 0 !important;
        left: 10px !important;
        right: 10px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        text-align: center !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        z-index: 2 !important;
        background: #fff !important;
        color: #f4511e !important;
      }

      .menu-card .card-footer {
        display: none !important;
      }

      /* Características visibles en móvil: 2 líneas, como en la referencia */
      .menu-card .detail-wrapper {
        display: block !important;
        visibility: visible !important;
        overflow: hidden !important;
        padding-top: 2px !important;
        flex-shrink: 0 !important;
        min-height: 2.4em !important;
      }
      .menu-card .detail {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
        color: #7A7A7A !important;
        margin: 0 !important;
        padding: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
      }
      .menu-card .detail-toggle-btn,
      .menu-card .detail-fade,
      .menu-card .code,
      .menu-card .meta-line {
        display: none !important;
      }

      /* Modo horizontal (móvil/tablet): tarjeta ordenada, sin solapamientos */
      @media (max-width: 768px) and (orientation: landscape) {
        .menu-grid {
          grid-auto-rows: 260px !important;
        }
        .menu-card {
          height: 260px !important;
          min-height: 260px !important;
          max-height: 260px !important;
        }
        .menu-card-media {
          height: 160px !important;
          min-height: 160px !important;
          max-height: 160px !important;
        }
        .menu-card .card-body {
          padding: 6px 10px 46px 10px !important;
        }
        .menu-card .card-header h3 {
          max-height: 2.4em !important;
        }
        .menu-card .card-footer {
          display: none !important;
        }
      }

      /* Vertical: flotante abajo-derecha (como antes). No estirar a columna izquierda. */
      @media (orientation: portrait) {
        .cart-panel:not(.minimized) {
          left: auto !important;
          right: 12px !important;
          bottom: 12px !important;
          top: auto !important;
          width: min(320px, calc(100vw - 24px)) !important;
          max-width: 400px !important;
          max-height: 432px !important;
          min-height: 190px !important;
          height: auto !important;
        }

        .cart-panel:not(.minimized) .cart-items {
          max-height: 282px !important;
          min-height: 40px !important;
          height: auto !important;
        }
      }

      /* Panel minimizado en tablets - chip con esquinas redondeadas */
      .cart-panel.minimized {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        width: min(320px, 90vw) !important;
        max-width: 400px !important;
        position: fixed !important;
        right: 16px !important;
        bottom: 16px !important;
        left: auto !important;
        top: auto !important;
        z-index: 9999 !important;
        transform: none !important;
        margin: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        overflow: hidden !important;
        cursor: grab !important;
        contain: layout style paint !important;
      }

      .cart-panel.minimized .cart-items,
      .cart-panel.minimized .cart-footer {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        width: 0 !important;
        min-width: 0 !important;
        max-width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
        position: absolute !important;
        top: -9999px !important;
        left: -9999px !important;
        flex: 0 0 0 !important;
        flex-basis: 0 !important;
        flex-grow: 0 !important;
        flex-shrink: 0 !important;
      }

      .cart-panel.minimized .cart-header {
        display: flex !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        flex-basis: auto !important;
        margin: 0 !important;
        padding: 12px 14px !important;
        width: 100% !important;
        border-radius: 12px !important;
        background: linear-gradient(120deg, #ff8a65 0%, #ffb74d 100%) !important;
        box-shadow: 0 4px 12px rgba(244, 81, 30, 0.3) !important;
        cursor: grab !important;
        user-select: none !important;
        touch-action: none !important;
      }
      
      .cart-panel.minimized .cart-header:active {
        cursor: grabbing !important;
      }

      /* Asegurar que el contenido del main no quede tapado */
      main {
        padding-bottom: calc(40vh + 80px) !important;
      }
    }

    @media screen and (max-width: 480px) {
      header {
        background: linear-gradient(180deg, 
          #000000 0%, 
          #000000 20%, 
          #0a0a0a 40%, 
          #1a1a1a 60%, 
          #2d1a0a 75%, 
          #4a2a0f 85%, 
          #6b3d1a 92%, 
          #ff7043 98%, 
          #ff9800 100%) !important;
        background-image: 
          radial-gradient(circle at 50% 20%, rgba(255, 193, 7, 0.15) 0%, transparent 40%),
          radial-gradient(circle at 30% 60%, rgba(255, 112, 67, 0.25) 0%, transparent 50%),
          radial-gradient(circle at 70% 70%, rgba(255, 152, 0, 0.2) 0%, transparent 45%),
          radial-gradient(circle at 50% 85%, rgba(255, 193, 7, 0.18) 0%, transparent 55%) !important;
        background-color: #000000 !important;
        min-height: 88px !important;
        max-height: 88px !important;
        padding: 0 !important;
        overflow: visible !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        box-sizing: border-box !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
        align-items: stretch !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;
      }

      .brand {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
      }

      /* Logo centrado ocupando todo el espacio en modo vertical */
      .brand {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        height: auto !important;
        min-height: 45px !important;
        max-height: none !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 10 !important;
        box-sizing: border-box !important;
        align-items: center !important;
        justify-content: center !important;
      }

      .brand {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        height: auto !important;
        min-height: 45px !important;
        max-height: 55px !important;
        padding: 4px 8px !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
        overflow: visible !important;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 15 !important;
        box-sizing: border-box !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
      }

      .brand img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: auto !important;
        height: auto !important;
        max-height: 50px !important;
        min-height: 40px !important;
        max-width: 90% !important;
        object-fit: contain !important;
        margin: 0 auto !important;
      }

      .brand-details {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
      }

      .brand-details h1 {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        letter-spacing: 0px !important;
        line-height: 1.2 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        text-overflow: clip !important;
        text-transform: uppercase !important;
      }

      .header-categories {
        display: flex !important;
        padding: 4px 6px !important;
        gap: 4px !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch;
        flex: 0 0 auto !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        min-height: 40px !important;
        margin: 0 !important;
        margin-top: 0 !important;
        align-self: stretch !important;
        align-items: center !important;
        scrollbar-width: none;
        z-index: 5 !important;
        position: relative !important;
        -ms-overflow-style: none;
        box-sizing: border-box !important;
      }

      .header-category-chip {
        padding: 0 8px !important;
        font-size: 0.7rem !important;
        font-weight: 600 !important;
        flex: 1 1 auto !important;
        min-width: fit-content !important;
        gap: 0 !important;
        height: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
      }
      
      .header-category-chip-icon {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        opacity: 0 !important;
      }
      
      .header-category-chip-text {
        flex: 1 1 auto !important;
        text-align: center !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
      }
      
      /* Regla consolidada: height ya está definida en la regla principal de .header-category-chip.active en @media 768px */
      .header-category-chip.active .header-category-chip-icon {
        display: none !important;
      }

      .header-actions {
        position: absolute !important;
        top: 2px !important;
        right: 4px !important;
        left: 4px !important;
        width: auto !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 1000 !important;
      }

      .search-toggle svg {
        width: 16px !important;
        height: 16px !important;
        fill: #fff !important;
      }

      .search-box {
        position: absolute !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 8px 12px !important;
        z-index: 1002 !important;
        transform: translateY(100%) !important;
        margin: 0 !important;
      }

      .search-box.active {
        transform: translateY(0) !important;
      }
    }

    /* Dispositivos muy angostos - Asegurar que los chips estén siempre en la parte inferior */
    @media screen and (max-width: 360px) {
      header {
        background: linear-gradient(180deg, 
          #000000 0%, 
          #000000 20%, 
          #0a0a0a 40%, 
          #1a1a1a 60%, 
          #2d1a0a 75%, 
          #4a2a0f 85%, 
          #6b3d1a 92%, 
          #ff7043 98%, 
          #ff9800 100%) !important;
        background-image: 
          radial-gradient(circle at 50% 20%, rgba(255, 193, 7, 0.15) 0%, transparent 40%),
          radial-gradient(circle at 30% 60%, rgba(255, 112, 67, 0.25) 0%, transparent 50%),
          radial-gradient(circle at 70% 70%, rgba(255, 152, 0, 0.2) 0%, transparent 45%),
          radial-gradient(circle at 50% 85%, rgba(255, 193, 7, 0.18) 0%, transparent 55%) !important;
        background-color: #000000 !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        padding: 0 !important;
        gap: 0 !important;
        position: relative !important;
      }

      .brand {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        min-height: 40px !important;
        max-height: 50px !important;
        padding: 4px 8px !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 15 !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
      }

      .brand img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: auto !important;
        height: auto !important;
        max-height: 45px !important;
        min-height: 35px !important;
        max-width: 90% !important;
        object-fit: contain !important;
        margin: 0 auto !important;
      }

      .brand-details {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
      }

      .brand-details h1 {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        letter-spacing: 0px !important;
      }

      .header-categories {
        margin-top: auto !important;
        padding: 4px 6px !important;
        width: 100% !important;
        align-self: stretch !important;
      }

      /* Tarjeta en vertical: misma estructura que 768px (nombre, detalle, precio visibles) */
      .menu-card {
        height: 280px !important;
        min-height: 280px !important;
        max-height: 280px !important;
      }

      .menu-card-media {
        height: 182px !important;
        min-height: 182px !important;
        max-height: 182px !important;
      }

      .menu-card-media img {
        width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
        object-fit: cover !important;
      }

      .menu-card .card-body {
        flex: 0 0 98px !important;
        height: 98px !important;
        min-height: 98px !important;
        padding: 6px 10px 48px 10px !important;
        overflow: visible !important;
        position: relative !important;
      }

      .menu-card .detail-wrapper {
        display: block !important;
        visibility: visible !important;
        min-height: 2.4em !important;
      }

      .menu-card .detail {
        display: -webkit-box !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #7A7A7A !important;
      }

      .menu-card .card-header .price,
      .menu-card .price {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #f4511e !important;
      }

      /* Panel de pedidos en pantallas muy pequeñas */
      .cart-panel {
        max-height: 462px !important;
        min-height: 254px !important;
        height: auto !important;
      }

      .cart-items {
        /* En pantallas pequeñas: altura será ajustada dinámicamente por JavaScript */
        max-height: 282px !important;
        min-height: 40px !important;
        height: auto !important;
      }

      /* Chip minimizado: compacto abajo-derecha (arrastrable vía JS). */
      .cart-panel.minimized {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        width: min(320px, 90vw) !important;
        max-width: 400px !important;
        position: fixed !important;
        left: auto !important;
        right: 12px !important;
        bottom: 12px !important;
        top: auto !important;
        z-index: 9999 !important;
        transform: none !important;
        margin: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        overflow: hidden !important;
        cursor: grab !important;
        contain: layout style paint !important;
      }

      .cart-panel.minimized .cart-items,
      .cart-panel.minimized .cart-footer {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        width: 0 !important;
        min-width: 0 !important;
        max-width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
        position: absolute !important;
        top: -9999px !important;
        left: -9999px !important;
        flex: 0 0 0 !important;
        flex-basis: 0 !important;
        flex-grow: 0 !important;
        flex-shrink: 0 !important;
      }

      .cart-panel.minimized .cart-header {
        display: flex !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        flex-basis: auto !important;
        margin: 0 !important;
        padding: 12px 14px !important;
        width: 100% !important;
        border-radius: 12px !important;
        background: linear-gradient(120deg, #ff8a65 0%, #ffb74d 100%) !important;
        box-shadow: 0 4px 12px rgba(244, 81, 30, 0.3) !important;
        cursor: grab !important;
        user-select: none !important;
        touch-action: none !important;
      }
      
      .cart-panel.minimized .cart-header:active {
        cursor: grabbing !important;
      }

      .cart-minimize-btn {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
        min-height: 52px !important;
        max-width: 52px !important;
        max-height: 52px !important;
        border-radius: 50% !important;
        aspect-ratio: 1 / 1 !important;
        font-size: 1rem !important;
        position: relative !important;
        transform: none !important;
      }

      .cart-minimize-btn:hover {
        transform: scale(1.1) !important;
      }

      main {
        padding-bottom: calc(35vh + 100px) !important;
      }
    }

    /* OVERRIDE FINAL - móviles: mantener tamaño fijo (no estirar, todo contenido) */
    @media only screen and (max-width: 768px) {
      section.menu-grid,
      #menu-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        grid-auto-rows: 280px !important;
        gap: 12px !important;
        align-content: start !important;
      }

      article.menu-card,
      .menu-card {
        display: flex !important;
        flex-direction: column !important;
        height: 280px !important;
        min-height: 280px !important;
        max-height: 280px !important;
      }

      .menu-card-media {
        width: 100% !important;
        height: 182px !important;
        min-height: 182px !important;
        max-height: 182px !important;
      }

      .menu-card .card-body {
        width: 100% !important;
        flex: 0 0 98px !important;
        height: 98px !important;
        min-height: 98px !important;
        padding: 6px 10px 48px 10px !important;
        overflow: visible !important;
        position: relative !important;
      }

      .menu-card .card-header .price,
      .menu-card .price {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
      }

      .menu-card .detail-wrapper {
        display: block !important;
        visibility: visible !important;
        min-height: 2.4em !important;
      }

      .menu-card .detail {
        display: -webkit-box !important;
        visibility: visible !important;
        opacity: 1 !important;
      }
    }

    /* Modo vertical (portrait): asegurar nombre → características → precio visibles como referencia */
    @media only screen and (max-width: 768px) and (orientation: portrait) {
      .menu-card .card-body {
        flex: 0 0 98px !important;
        height: 98px !important;
        min-height: 98px !important;
        padding: 8px 10px 48px 10px !important;
        position: relative !important;
        overflow: visible !important;
      }

      .menu-card .card-header h3 {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        max-height: 2.4em !important;
      }

      .menu-card .detail-wrapper {
        display: block !important;
        visibility: visible !important;
        min-height: 2.4em !important;
        max-height: 2.4em !important;
        overflow: hidden !important;
      }

      .menu-card .detail {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
        color: #7A7A7A !important;
      }

      .menu-card .card-header .price,
      .menu-card .price {
        position: absolute !important;
        bottom: 0 !important;
        left: 10px !important;
        right: 10px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding: 10px 0 !important;
        border-top: 1px solid rgba(244, 81, 30, 0.28) !important;
        background: #fff !important;
        font-weight: 700 !important;
        font-size: 1rem !important;
        color: #f4511e !important;
        text-align: center !important;
        z-index: 2 !important;
      }
    }

    /* ============================================
       MENSAJE DE CIERRE DEL LOCAL (Modal Temporal)
       ============================================ */
    .store-closed-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      /* Mismo gradiente negro que la pantalla de bienvenida */
      background: linear-gradient(180deg, 
        #000000 0%, 
        #1a1a1a 15%, 
        #2d1a0a 30%, 
        #4a2a0f 45%, 
        #6b3d1a 60%, 
        #ff7043 75%, 
        #ff9800 90%, 
        #ffc107 100%);
      background-image: 
        radial-gradient(circle at 50% 20%, rgba(255, 193, 7, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 30% 60%, rgba(255, 112, 67, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 152, 0, 0.2) 0%, transparent 45%),
        radial-gradient(circle at 50% 85%, rgba(255, 193, 7, 0.18) 0%, transparent 55%);
      background-color: #000000;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      z-index: 10000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      animation: fadeIn 0.5s ease-out;
    }

    .store-closed-overlay[hidden] {
      display: none !important;
      pointer-events: none !important;
      visibility: hidden !important;
      opacity: 0 !important;
    }


    .store-closed-content {
      background: rgba(0, 0, 0, 0.75);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border: 1px solid rgba(255, 193, 7, 0.2);
      border-radius: 20px;
      padding: 32px 28px;
      max-width: 500px;
      width: 100%;
      text-align: center;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 193, 7, 0.1);
      animation: slideUp 0.6s ease-out;
      position: relative;
      overflow: hidden;
    }

    .store-closed-content::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: radial-gradient(circle, rgba(255, 193, 7, 0.1) 0%, transparent 70%);
      animation: rotateGradient 20s linear infinite;
      pointer-events: none;
    }


    @keyframes rotateGradient {
      from {
        transform: rotate(0deg);
      }
      to {
        transform: rotate(360deg);
      }
    }

    .store-closed-title {
      font-size: 2rem;
      font-weight: 700;
      color: #ffffff;
      margin: 0 0 12px 0;
      position: relative;
      z-index: 1;
      text-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
    }

    .store-closed-message {
      font-size: 1rem;
      line-height: 1.5;
      color: rgba(255, 255, 255, 0.9);
      margin: 0 0 16px 0;
      position: relative;
      z-index: 1;
      font-weight: 400;
    }

    .store-closed-icon {
      font-size: 3rem;
      margin: 0 0 16px 0;
      animation: pulseIcon 2s ease-in-out infinite;
      position: relative;
      z-index: 1;
      filter: drop-shadow(0 0 10px rgba(255, 193, 7, 0.5));
    }

    @keyframes pulseIcon {
      0%, 100% {
        transform: scale(1);
      }
      50% {
        transform: scale(1.1);
      }
    }

    .store-closed-subtitle {
      font-size: 0.9rem;
      line-height: 1.5;
      color: rgba(255, 255, 255, 0.85);
      margin: 0;
      position: relative;
      z-index: 1;
      font-weight: 300;
    }

    .store-closed-subtitle strong {
      color: rgba(255, 193, 7, 0.9);
      font-weight: 600;
    }

    .store-closed-close-btn {
      margin-top: 24px;
      padding: 10px 28px;
      background: rgba(255, 193, 7, 0.2);
      border: 1px solid rgba(255, 193, 7, 0.4);
      border-radius: 12px;
      color: #ffffff;
      font-size: 0.95rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.3s ease;
      position: relative;
      z-index: 1;
    }

    .store-closed-close-btn:hover {
      background: rgba(255, 193, 7, 0.3);
      border-color: rgba(255, 193, 7, 0.6);
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    }

    /* Responsive para móviles y resoluciones muy bajas */
    @media only screen and (max-width: 768px) {
      .store-closed-content {
        padding: 24px 20px;
        border-radius: 16px;
        max-width: 92%;
        margin: 0 4%;
      }

      .store-closed-title {
        font-size: 1.6rem;
        margin: 0 0 10px 0;
      }

      .store-closed-message {
        font-size: 0.9rem;
        line-height: 1.4;
        margin: 0 0 12px 0;
      }

      .store-closed-icon {
        font-size: 2.5rem;
        margin: 0 0 12px 0;
      }

      .store-closed-subtitle {
        font-size: 0.8rem;
        line-height: 1.4;
      }

      .store-closed-close-btn {
        margin-top: 20px;
        padding: 10px 24px;
        font-size: 0.9rem;
      }
    }

    /* Responsive para resoluciones muy bajas (menos de 360px) */
    @media only screen and (max-width: 360px) {
      .store-closed-content {
        padding: 20px 16px;
        border-radius: 14px;
        max-width: 94%;
        margin: 0 3%;
      }

      .store-closed-title {
        font-size: 1.4rem;
        margin: 0 0 8px 0;
      }

      .store-closed-message {
        font-size: 0.85rem;
        line-height: 1.3;
        margin: 0 0 10px 0;
      }

      .store-closed-icon {
        font-size: 2rem;
        margin: 0 0 10px 0;
      }

      .store-closed-subtitle {
        font-size: 0.75rem;
        line-height: 1.3;
      }

      .store-closed-close-btn {
        margin-top: 16px;
        padding: 8px 20px;
        font-size: 0.85rem;
      }
    }

    /* ===== Carrito: oculto / dock PC / flotante móvil ===== */
    .cart-panel[hidden] {
      display: none !important;
    }

    /* Vertical móvil: solo deja aire para el chip; no cambia el panel expandido. */
    body.cart-has-items:not(.cart-dock-right) main {
      padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }

    body.cart-has-items:not(.cart-dock-right) .cart-panel.minimized {
      z-index: 180 !important;
      cursor: grab !important;
    }

    body.cart-has-items:not(.cart-dock-right) .cart-panel.minimized.dragging {
      cursor: grabbing !important;
    }

    .header-categories.is-dragging-scroll {
      cursor: grabbing;
      scroll-behavior: auto;
    }

    /* Dock SOLO escritorio (≥1024px): tope = base de cabecera; ítems scroll; Enviar fijo. */
    @media (min-width: 1024px) {
      body.cart-dock-right {
        --cart-dock-width: min(340px, 32vw);
        --menu-header-height: 70px;
      }

      body.cart-dock-right header {
        position: sticky;
        top: 0;
        z-index: 320;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
      }

      body.cart-dock-right main {
        padding-right: calc(var(--cart-dock-width) + 12px);
        box-sizing: border-box;
      }

      body.cart-dock-right .cart-panel,
      body.cart-dock-right .cart-panel.minimized {
        position: fixed !important;
        top: var(--menu-header-height) !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        width: var(--cart-dock-width) !important;
        max-width: none !important;
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        border-left: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: -10px 0 28px rgba(0, 0, 0, 0.1) !important;
        background: var(--surface) !important;
        transform: none !important;
        cursor: default !important;
        z-index: 200 !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        contain: none !important;
      }

      body.cart-dock-right .cart-panel .cart-header,
      body.cart-dock-right .cart-panel.minimized .cart-header {
        flex: 0 0 auto !important;
        border-radius: 0 !important;
        cursor: default !important;
      }

      body.cart-dock-right .cart-panel .cart-items,
      body.cart-dock-right .cart-panel.minimized .cart-items {
        display: block !important;
        visibility: visible !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        flex: 1 1 auto !important;
        height: 0 !important; /* flex: fuerza scroll interno */
        max-height: none !important;
        min-height: 0 !important;
        width: auto !important;
        max-width: none !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
      }

      body.cart-dock-right .cart-panel .cart-footer,
      body.cart-dock-right .cart-panel.minimized .cart-footer {
        display: flex !important;
        flex-direction: column !important;
        visibility: visible !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        flex: 0 0 auto !important;
        width: auto !important;
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
        background: var(--surface) !important;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.06);
        opacity: 1 !important;
        pointer-events: auto !important;
      }

      body.cart-dock-right #cart-minimize-header-btn,
      body.cart-dock-right #cart-minimize-btn {
        display: none !important;
      }
    }

    /* Celular horizontal (altura ≤520px): panel compacto y proporcional a la altura.
       Crítico: .cart-footer tiene min-height:200px global → hay que anularlo o el cuerpo desaparece. */
    @media (orientation: landscape) and (max-height: 520px) {
      body.cart-phone-landscape .cart-panel:not(.minimized),
      body.cart-has-items:not(.cart-dock-right) .cart-panel:not(.minimized) {
        top: auto !important;
        left: auto !important;
        right: 8px !important;
        bottom: 6px !important;
        width: min(320px, calc(100vw - 16px)) !important;
        max-width: 340px !important;
        /* Usa la altura real de la pantalla; deja aire para la carta. */
        height: min(86dvh, calc(100dvh - 52px)) !important;
        max-height: min(86dvh, calc(100dvh - 52px)) !important;
        min-height: 0 !important;
        margin: 0 !important;
        border-radius: 10px !important;
        z-index: 250 !important;
        display: flex !important;
        flex-direction: column !important;
        contain: none !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28) !important;
        overflow: hidden !important;
        transform: none !important;
      }

      body.cart-phone-landscape .cart-panel:not(.minimized) .cart-header,
      body.cart-has-items:not(.cart-dock-right) .cart-panel:not(.minimized) .cart-header {
        flex: 0 0 auto !important;
        padding: 6px 8px !important;
        min-height: 0 !important;
        border-radius: 10px 10px 0 0 !important;
        font-size: 0.85rem !important;
        gap: 4px !important;
      }

      body.cart-phone-landscape .cart-panel:not(.minimized) .cart-badge,
      body.cart-has-items:not(.cart-dock-right) .cart-panel:not(.minimized) .cart-badge {
        width: 20px !important;
        height: 20px !important;
        font-size: 0.65rem !important;
      }

      body.cart-phone-landscape .cart-panel:not(.minimized) #cart-clear-btn,
      body.cart-phone-landscape .cart-panel:not(.minimized) #cart-minimize-header-btn,
      body.cart-has-items:not(.cart-dock-right) .cart-panel:not(.minimized) #cart-clear-btn,
      body.cart-has-items:not(.cart-dock-right) .cart-panel:not(.minimized) #cart-minimize-header-btn {
        font-size: 0.75rem !important;
        padding: 2px 6px !important;
        min-height: 0 !important;
      }

      /* Cuerpo: gana el espacio sobrante; aquí se listan los pedidos. */
      body.cart-phone-landscape .cart-panel:not(.minimized) .cart-items,
      body.cart-has-items:not(.cart-dock-right) .cart-panel:not(.minimized) .cart-items {
        display: block !important;
        visibility: visible !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        flex: 1 1 auto !important;
        height: 0 !important;
        min-height: 64px !important;
        max-height: none !important;
        width: auto !important;
        padding: 4px 6px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
      }

      body.cart-phone-landscape .cart-panel:not(.minimized) .cart-item,
      body.cart-has-items:not(.cart-dock-right) .cart-panel:not(.minimized) .cart-item {
        padding: 6px 8px !important;
        margin-bottom: 4px !important;
        font-size: 0.78rem !important;
      }

      body.cart-phone-landscape .cart-panel:not(.minimized) .cart-footer,
      body.cart-has-items:not(.cart-dock-right) .cart-panel:not(.minimized) .cart-footer {
        display: flex !important;
        flex-direction: column !important;
        visibility: visible !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        flex: 0 0 auto !important;
        flex-grow: 0 !important;
        flex-shrink: 0 !important;
        height: auto !important;
        min-height: 0 !important; /* anula min-height:200px global */
        max-height: none !important;
        width: auto !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        padding: 4px 8px calc(4px + env(safe-area-inset-bottom, 0px)) !important;
        gap: 4px !important;
        z-index: 10;
      }

      body.cart-phone-landscape .cart-panel:not(.minimized) .cart-total,
      body.cart-has-items:not(.cart-dock-right) .cart-panel:not(.minimized) .cart-total {
        font-size: 0.8rem !important;
        line-height: 1.2 !important;
      }

      body.cart-phone-landscape .cart-panel:not(.minimized) .cart-total span:last-child,
      body.cart-has-items:not(.cart-dock-right) .cart-panel:not(.minimized) .cart-total span:last-child {
        font-size: 0.95rem !important;
      }

      /* Enviar: misma escala que la cabecera, no más grande. */
      body.cart-phone-landscape .cart-panel:not(.minimized) .cart-send,
      body.cart-has-items:not(.cart-dock-right) .cart-panel:not(.minimized) .cart-send {
        padding: 6px 10px !important;
        min-height: 32px !important;
        max-height: 36px !important;
        font-size: 0.8rem !important;
        line-height: 1.2 !important;
        border-radius: 999px !important;
      }

      body.cart-phone-landscape .cart-panel.minimized {
        left: auto !important;
        right: 10px !important;
        bottom: 8px !important;
        width: min(280px, calc(100vw - 20px)) !important;
        z-index: 250 !important;
      }

      body.cart-phone-landscape main,
      body.cart-has-items:not(.cart-dock-right) main {
        padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
      }
    }
   