: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;
    }

    html.electron-mode body::before {
      display: none;
    }

    html {
      width: 100%;
      max-width: 100%;
      overflow-x: hidden;
      box-sizing: border-box;
      scroll-padding-top: var(--menu-header-height, 148px);
    }

    * {
      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;
    }

    /* Reserva altura de cabecera fija (móvil y escritorio). */
    body:not(.welcome-active) {
      padding-top: var(--menu-header-height, 56px);
    }
    
    body.welcome-active {
      overflow: hidden;
      height: 100vh;
      position: fixed;
      width: 100%;
    }

    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 ===== */
    /* Primer paint = degradado (sin imagen). Con foto: .has-welcome-bg (sin capa oscura). */
    .welcome-screen {
      position: fixed;
      inset: 0;
      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;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10000;
      opacity: 1;
      visibility: visible;
      cursor: pointer;
      overflow: hidden;
      box-sizing: border-box;
    }

    .welcome-screen.has-welcome-bg {
      background: #0a0604;
      background-image: none;
    }

    /* Foto tal cual (sin capa oscura ni blur). Efectos = partículas encima. */
    .welcome-screen.has-welcome-bg::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image: var(--welcome-bg-image);
      background-size: cover;
      background-position: center center;
      background-repeat: no-repeat;
      z-index: 0;
    }

    .welcome-screen.has-welcome-bg .welcome-particles,
    .welcome-screen.has-welcome-bg .welcome-content,
    .welcome-screen.has-welcome-bg .welcome-copyright {
      z-index: 2;
    }

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

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

    /* Chispas / vapor de carbón: más cantidad, flujo continuo, trayectorias cruzadas */
    .particle {
      position: absolute;
      bottom: -8%;
      top: auto;
      width: 2.5px;
      height: 7px;
      border-radius: 40%;
      background: rgba(255, 190, 70, 0.98);
      box-shadow:
        0 0 5px rgba(255, 150, 40, 0.9),
        0 0 12px rgba(255, 80, 10, 0.55);
      opacity: 0;
      animation: ember-rise-a 4.2s linear infinite;
      will-change: transform, opacity;
    }

    /* Humo suave intercalado (cada 3.ª) */
    .particle:nth-child(3n) {
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(210, 210, 210, 0.42) 0%, rgba(110, 110, 110, 0.12) 48%, transparent 74%);
      box-shadow: none;
      filter: blur(2.5px);
    }

    /* Variantes de trayectoria (zigzag / cruzado, no una sola línea) */
    .particle:nth-child(3n+1) { animation-name: ember-rise-a; }
    .particle:nth-child(3n+2) { animation-name: ember-rise-b; }
    .particle:nth-child(3n)   { animation-name: smoke-rise; }
    .particle:nth-child(6n+4) { animation-name: ember-rise-c; }
    .particle:nth-child(6n+5) { animation-name: ember-rise-a; }

    .particle:nth-child(1)  { left: 6%;  animation-delay: 0s;    animation-duration: 3.6s; }
    .particle:nth-child(2)  { left: 14%; animation-delay: 0.35s; animation-duration: 4.4s; }
    .particle:nth-child(3)  { left: 22%; animation-delay: 0.7s;  animation-duration: 5.1s; }
    .particle:nth-child(4)  { left: 30%; animation-delay: 0.15s; animation-duration: 3.9s; }
    .particle:nth-child(5)  { left: 38%; animation-delay: 0.9s;  animation-duration: 4.7s; }
    .particle:nth-child(6)  { left: 46%; animation-delay: 0.45s; animation-duration: 5.0s; }
    .particle:nth-child(7)  { left: 54%; animation-delay: 1.1s;  animation-duration: 3.8s; }
    .particle:nth-child(8)  { left: 62%; animation-delay: 0.25s; animation-duration: 4.5s; }
    .particle:nth-child(9)  { left: 70%; animation-delay: 0.8s;  animation-duration: 5.2s; }
    .particle:nth-child(10) { left: 78%; animation-delay: 0.55s; animation-duration: 4.1s; }
    .particle:nth-child(11) { left: 86%; animation-delay: 1.25s; animation-duration: 4.8s; }
    .particle:nth-child(12) { left: 10%; animation-delay: 1.5s;  animation-duration: 3.7s; }
    .particle:nth-child(13) { left: 18%; animation-delay: 0.1s;  animation-duration: 4.3s; }
    .particle:nth-child(14) { left: 26%; animation-delay: 1.7s;  animation-duration: 5.0s; }
    .particle:nth-child(15) { left: 34%; animation-delay: 0.65s; animation-duration: 3.5s; }
    .particle:nth-child(16) { left: 42%; animation-delay: 1.35s; animation-duration: 4.6s; }
    .particle:nth-child(17) { left: 50%; animation-delay: 0.2s;  animation-duration: 4.0s; }
    .particle:nth-child(18) { left: 58%; animation-delay: 1.85s; animation-duration: 5.3s; }
    .particle:nth-child(19) { left: 66%; animation-delay: 0.95s; animation-duration: 3.8s; }
    .particle:nth-child(20) { left: 74%; animation-delay: 0.4s;  animation-duration: 4.9s; }
    .particle:nth-child(21) { left: 82%; animation-delay: 1.6s;  animation-duration: 4.2s; }
    .particle:nth-child(22) { left: 90%; animation-delay: 0.05s; animation-duration: 3.9s; }
    .particle:nth-child(23) { left: 48%; animation-delay: 2.0s;  animation-duration: 4.7s; }
    .particle:nth-child(24) { left: 12%; animation-delay: 1.05s; animation-duration: 5.1s; }

    @keyframes ember-rise-a {
      0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); opacity: 0; }
      5%   { opacity: 1; }
      22%  { transform: translate3d(22px, -22vh, 0) rotate(25deg) scale(1.2); }
      45%  { transform: translate3d(-16px, -48vh, 0) rotate(-18deg) scale(0.95); opacity: 0.85; }
      68%  { transform: translate3d(28px, -74vh, 0) rotate(42deg) scale(0.7); opacity: 0.5; }
      100% { transform: translate3d(-8px, -112vh, 0) rotate(60deg) scale(0.3); opacity: 0; }
    }

    @keyframes ember-rise-b {
      0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(0.9); opacity: 0; }
      5%   { opacity: 1; }
      18%  { transform: translate3d(-26px, -18vh, 0) rotate(-30deg) scale(1.15); }
      36%  { transform: translate3d(18px, -38vh, 0) rotate(20deg) scale(1); opacity: 0.9; }
      58%  { transform: translate3d(-32px, -62vh, 0) rotate(-40deg) scale(0.75); opacity: 0.55; }
      82%  { transform: translate3d(14px, -88vh, 0) rotate(35deg) scale(0.5); opacity: 0.3; }
      100% { transform: translate3d(-20px, -115vh, 0) rotate(-15deg) scale(0.25); opacity: 0; }
    }

    @keyframes ember-rise-c {
      0%   { transform: translate3d(0, 0, 0) rotate(10deg) scale(1.1); opacity: 0; }
      4%   { opacity: 1; }
      15%  { transform: translate3d(30px, -14vh, 0) rotate(40deg) scale(1.25); }
      32%  { transform: translate3d(-24px, -34vh, 0) rotate(-25deg) scale(1.05); opacity: 0.92; }
      50%  { transform: translate3d(36px, -55vh, 0) rotate(50deg) scale(0.85); opacity: 0.7; }
      72%  { transform: translate3d(-18px, -80vh, 0) rotate(-35deg) scale(0.55); opacity: 0.4; }
      100% { transform: translate3d(24px, -118vh, 0) rotate(70deg) scale(0.2); opacity: 0; }
    }

    @keyframes smoke-rise {
      0%   { transform: translate3d(0, 0, 0) scale(0.5); opacity: 0; }
      8%   { opacity: 0.4; }
      30%  { transform: translate3d(-28px, -32vh, 0) scale(1.05); }
      55%  { transform: translate3d(22px, -62vh, 0) scale(1.4); opacity: 0.25; }
      80%  { transform: translate3d(-18px, -92vh, 0) scale(1.7); opacity: 0.12; }
      100% { transform: translate3d(12px, -120vh, 0) scale(2); opacity: 0; }
    }

    .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;
      align-self: center;
      margin: 0 auto;
      width: 100%;
      max-width: 700px;
      padding: 20px;
      box-sizing: border-box;
      overflow: hidden;
      max-height: 100vh;
      flex: 0 1 auto;
    }

    @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(460px, 90vw);
      max-height: min(460px, 44vh);
      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;
      image-rendering: auto;
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
    }
    
    .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.fire-large {
      font-size: 4rem;
      animation: icon-bounce 2s ease-in-out infinite;
      margin: 0;
    }

    @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(390px, 88vw);
        max-height: min(390px, 42vh);
      }
      
      .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.fire-large {
        font-size: 3rem;
      }
    }

    /* ===== CABECERA + CHIPS ===== */
    header.header-wrap,
    .header-wrap {
      margin: 0;
      padding: max(6px, env(safe-area-inset-top, 0px)) 12px 4px;
      background:
        radial-gradient(ellipse 120% 100% at 50% 50%, #2a1810 0%, #1a0f0a 35%, #0d0806 60%, #050302 100%),
        radial-gradient(ellipse 80% 60% at 50% 45%, rgba(180, 80, 20, 0.18) 0%, transparent 70%);
      background-color: #0d0806;
      color: #fff;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
      width: 100%;
      box-sizing: border-box;
      overflow: hidden;
      display: block;
      min-height: 0;
      max-height: none;
    }
    .header-wrap::after {
      content: '';
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 2px;
      background: linear-gradient(90deg, #f97316, #fbbf24, #f97316);
      pointer-events: none;
    }
    .header-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      max-width: 1200px;
      margin: 0 auto;
      position: relative;
      z-index: 1;
    }
    .header-left {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
      flex: 1 1 auto;
    }
    .header-brand-name {
      margin: 0;
      font-size: clamp(1.05rem, 3vw, 1.4rem);
      font-weight: 700;
      color: #fbbf24;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      line-height: 1.15;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    #brand-logo { display: none; }
    .header-actions {
      display: flex;
      align-items: center;
      gap: 6px;
      flex: 0 0 auto;
      position: relative;
    }
    .search-toggle {
      width: 40px;
      height: 40px;
      border: 1px solid rgba(248, 181, 71, 0.55);
      background: rgba(50, 22, 7, 0.9);
      border-radius: 12px;
      color: #fefce8;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .search-toggle svg {
      width: 18px;
      height: 18px;
      fill: currentColor;
    }
    .search-box {
      position: absolute;
      top: calc(100% + 8px);
      right: 12px;
      z-index: 120;
      display: none;
      min-width: min(320px, calc(100vw - 24px));
      padding: 8px;
      border-radius: 12px;
      background: rgba(20, 12, 8, 0.96);
      border: 1px solid rgba(251, 191, 36, 0.35);
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    }
    .search-box.active { display: block; }
    .search-box input {
      width: 100%;
      box-sizing: border-box;
      border: 1px solid rgba(255, 240, 224, 0.2);
      border-radius: 10px;
      padding: 10px 12px;
      background: rgba(255, 255, 255, 0.06);
      color: #fff7ed;
      font-size: 0.95rem;
    }
    .menu-toggle {
      height: 40px;
      min-width: 40px;
      border: 1px solid rgba(248, 181, 71, 0.8);
      background: rgba(50, 22, 7, 0.94);
      border-radius: 12px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 0 11px;
      color: #fefce8;
    }
    .menu-toggle:hover {
      border-color: rgba(251, 191, 36, 0.95);
      background: rgba(62, 28, 9, 0.98);
    }
    .menu-toggle svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
    .menu-toggle-label { font-size: 0.82rem; font-weight: 600; white-space: nowrap; }
    @media (max-width: 640px) {
      .menu-toggle-label { display: none; }
    }

    .header-categories,
    .header-categories.category-tabs {
      display: flex;
      align-items: stretch;
      gap: 10px;
      overflow-x: auto;
      overflow-y: hidden;
      padding: 10px 12px 12px;
      margin: 0;
      max-width: none;
      width: 100%;
      box-sizing: border-box;
      scrollbar-width: none;
      scroll-behavior: smooth;
      position: relative;
      z-index: 99;
      height: auto;
      -webkit-overflow-scrolling: touch;
      cursor: grab;
      background:
        radial-gradient(ellipse 120% 100% at 50% 50%, #2a1810 0%, #1a0f0a 35%, #0d0806 60%, #050302 100%),
        radial-gradient(ellipse 80% 60% at 50% 45%, rgba(180, 80, 20, 0.18) 0%, transparent 70%);
      background-color: #0d0806;
    }
    .header-categories::-webkit-scrollbar { display: none; }
    .header-category-chip {
      flex: 0 0 112px;
      width: 112px;
      height: 100px;
      min-height: 100px;
      max-height: 100px;
      padding: 6px 6px 10px;
      border-radius: 16px;
      border: 1px solid rgba(255, 240, 224, 0.14);
      background: linear-gradient(180deg, rgba(40, 23, 15, 0.94), rgba(13, 8, 6, 0.98));
      color: rgba(255, 246, 237, 0.92);
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 4px;
      position: relative;
      overflow: hidden;
      cursor: pointer;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 10px 22px rgba(0,0,0,0.24);
      white-space: normal;
      font-size: 0.72rem;
      font-weight: 700;
      z-index: 1;
      box-sizing: border-box;
      transition: border-color 0.18s ease, box-shadow 0.18s ease;
    }
    .header-category-chip::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0) 38%);
      pointer-events: none;
    }
    .header-category-chip.active,
    .header-category-chip.no-schedule.active {
      background: linear-gradient(180deg, rgba(68, 38, 22, 0.96), rgba(22, 13, 8, 0.99));
      border-color: rgba(251, 146, 60, 0.82);
      color: #fffaf4;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 14px 28px rgba(0,0,0,0.32), 0 0 0 1px rgba(251,146,60,0.28);
    }
    /* Raya solo en la categoría elegida (nunca en active-schedule sola). */
    .header-category-chip.active::after {
      content: '';
      position: absolute;
      left: 10px;
      right: 10px;
      bottom: 7px;
      height: 4px;
      border-radius: 999px;
      background: linear-gradient(90deg, rgba(255,242,221,0.55), rgba(251,146,60,0.98));
      box-shadow: 0 0 10px rgba(251,146,60,0.35);
    }
    .header-category-chip.inactive {
      opacity: 0.72;
      filter: grayscale(12%) brightness(0.92);
    }
    .header-category-chip-icon {
      flex: 0 0 58px;
      width: 100%;
      height: 58px;
      border-radius: 10px;
      border: 1px solid rgba(255,243,230,0.15);
      overflow: hidden;
      background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(2,6,23,0.4));
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.15rem;
      line-height: 1;
      z-index: 1;
      position: relative;
    }
    .header-category-chip-icon img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      display: block;
    }
    .header-category-chip-text {
      flex: 0 0 22px;
      z-index: 1;
      position: relative;
      width: 100%;
      height: 22px;
      min-height: 22px;
      max-height: 22px;
      text-align: center;
      color: inherit;
      font-weight: 700;
      font-size: 0.6rem;
      line-height: 1.1;
      text-transform: uppercase;
      letter-spacing: 0.03em;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      white-space: normal;
      word-break: break-word;
    }
    .header-category-chip:hover:not(.active) {
      border-color: rgba(251, 146, 60, 0.45);
    }

    /* Móvil: cabecera más compacta (menos saltos / solapes) */
    @media (max-width: 768px) {
      header.header-wrap,
      .header-wrap {
        padding: max(4px, env(safe-area-inset-top, 0px)) 8px 2px;
      }
      .header-top {
        gap: 8px;
      }
      /* Nombre centrado entre los dos botones redondos. */
      .header-brand-name {
        font-size: clamp(0.82rem, 3.6vw, 1.05rem);
        letter-spacing: 0.04em;
        flex: 1 1 auto;
        text-align: center;
      }
      .menu-toggle,
      .search-toggle {
        width: 36px;
        height: 36px;
        min-width: 36px;
        padding: 0;
        border-radius: 999px;
        flex: 0 0 auto;
      }
      .search-box {
        right: 8px;
      }
      .header-categories,
      .header-categories.category-tabs {
        gap: 9px;
        padding: 8px 0 10px;
        margin-top: 2px;
      }
      .header-category-chip {
        flex: 0 0 100px;
        width: 100px;
        height: 92px;
        min-height: 92px;
        max-height: 92px;
        padding: 5px 5px 9px;
        gap: 3px;
      }
      .header-category-chip-icon {
        flex: 0 0 52px;
        height: 52px;
        border-radius: 9px;
      }
      .header-category-chip-text {
        flex: 0 0 20px;
        height: 20px;
        min-height: 20px;
        max-height: 20px;
        font-size: 0.56rem;
      }
    }

    /*
     * PC / horizontal: cabecera fina (carta + nombre + buscador abierto + lupa)
     * y categorías a la izquierda (mismo #header-categories; sin UI duplicada).
     */
    @media (min-width: 900px), (orientation: landscape) and (min-width: 700px) {
      body:not(.welcome-active) {
        --menu-cat-rail-width: 168px;
      }

      body:not(.welcome-active) .header-wrap {
        padding: 6px 14px 6px;
      }

      body:not(.welcome-active) .header-top {
        max-width: none;
        gap: 10px;
      }

      body:not(.welcome-active) .header-actions {
        display: inline-flex;
        align-items: center;
        order: 3;
        flex: 0 0 auto;
      }

      body:not(.welcome-active) .search-box {
        position: static;
        display: flex !important;
        order: 2;
        flex: 1 1 220px;
        min-width: 180px;
        max-width: 340px;
        margin: 0;
        padding: 0;
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
      }

      body:not(.welcome-active) .search-box input {
        border: 1px solid rgba(251, 191, 36, 0.4);
        border-radius: 10px;
        padding: 8px 12px;
        background: rgba(255, 255, 255, 0.08);
      }

      body:not(.welcome-active) .header-categories,
      body:not(.welcome-active) .header-categories.category-tabs {
        position: fixed;
        left: 0;
        top: var(--menu-header-height, 56px);
        bottom: 0;
        width: var(--menu-cat-rail-width);
        max-width: var(--menu-cat-rail-width);
        margin: 0;
        padding: 10px 8px 16px;
        flex-direction: column;
        align-items: stretch;
        overflow-x: hidden;
        overflow-y: auto;
        gap: 8px;
        z-index: 90;
        cursor: default;
        background:
          radial-gradient(ellipse 120% 100% at 50% 0%, #2a1810 0%, #1a0f0a 40%, #0d0806 100%);
        box-shadow: 4px 0 18px rgba(0, 0, 0, 0.28);
        -webkit-overflow-scrolling: touch;
        pointer-events: auto;
      }

      body:not(.welcome-active) .header-category-chip {
        flex: 0 0 auto;
        width: 100%;
        height: 100px;
        min-height: 100px;
        max-height: 100px;
        padding: 5px 5px 10px;
        gap: 4px;
      }

      body:not(.welcome-active) .header-category-chip-icon {
        flex: 0 0 60px;
        height: 60px;
      }

      body:not(.welcome-active) .header-category-chip-text {
        flex: 0 0 22px;
        height: 22px;
        min-height: 22px;
        max-height: 22px;
      }

      body:not(.welcome-active) main,
      body:not(.welcome-active) .public-footer-stack {
        margin-left: var(--menu-cat-rail-width);
      }
    }

    /* ===== 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;
      }
    }


    /* Marca "fuera de horario": punto discreto en la esquina del chip */
    .header-category-chip.inactive:not(.active)::after {
      content: '';
      position: absolute;
      top: 6px;
      right: 6px;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.45);
      border: 1px solid rgba(255, 255, 255, 0.6);
    }

    /* ===== LAYOUT PRINCIPAL OPTIMIZADO ===== */
    main {
      flex: 1 0 auto;
      display: flex;
      flex-direction: column;
      padding: 12px 12px 16px;
      position: relative;
      z-index: 1;
    }

    /* Con pedidos: espacio para el chip flotante (sin hueco extra). */
    body.cart-has-items main {
      padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    }

    .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);
    }

    /* Modal de producto compacto (misma estructura HTML) */
    .product-detail-modal {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.5);
      z-index: 700;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 16px;
      overflow: hidden;
      animation: fadeIn 0.2s ease;
    }

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

    /* ===== MODAL TIPO DE PEDIDO — chips premium + identity =====
       Escala de capas (SSOT UI pública):
       carta 600 < carrito 650 < detalle 700 < limpiar 750
       < tipo pedido 720 < enviando 770 < éxito 800 < destino 900
       < avisos/advertencias 950 < custom-alert 10000.
       Tipo pedido: encima del carrito; avisos siempre encima del tipo. */
    .order-type-modal {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.85);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      z-index: 720;
      align-items: center;
      justify-content: center;
      padding: 12px;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      scroll-behavior: smooth;
    }

    .order-type-content {
      background: var(--surface);
      border-radius: var(--radius-lg);
      max-width: 440px;
      width: 100%;
      max-height: calc(100dvh - 16px);
      min-height: auto;
      padding: 14px 14px 12px;
      position: relative;
      box-shadow: var(--shadow-card);
      display: flex;
      flex-direction: column;
      box-sizing: border-box;
      overflow: hidden;
    }

    .order-type-close {
      position: absolute;
      top: 8px;
      right: 8px;
      width: 32px;
      height: 32px;
      border: none;
      background: transparent;
      color: var(--text-main);
      font-size: 24px;
      cursor: pointer;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10;
      flex-shrink: 0;
    }

    .order-type-layout {
      display: flex;
      flex-direction: column;
      gap: 8px;
      min-width: 0;
      min-height: 0;
      flex: 1;
      overflow-x: hidden;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }

    .order-type-body {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      column-gap: 8px;
      row-gap: 4px;
      align-items: start;
      min-width: 0;
    }

    #delivery-address-field,
    #delivery-location-notes-field,
    #order-type-presencial-fields,
    #order-identity-row {
      grid-column: 1 / -1;
    }

    .order-type-extra,
    .order-type-body .field-block {
      margin: 0;
      min-width: 0;
    }

    .order-type-extra label,
    .order-type-body .field-block label {
      display: block;
      margin-bottom: 1px;
      font-weight: 600;
      font-size: 0.72rem;
      line-height: 1.2;
      color: var(--text-main);
    }

    .order-type-content input,
    .order-type-content textarea {
      width: 100%;
      height: 36px;
      min-height: 36px;
      max-height: 36px;
      padding: 4px 10px;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      font-family: inherit;
      font-size: 0.9rem;
      line-height: 1.2;
      color: var(--text-main);
      background: var(--surface);
      box-sizing: border-box;
      resize: none;
    }

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

    .order-gps-wrap {
      position: relative;
    }

    .order-gps-wrap textarea {
      padding-right: 40px;
    }

    #use-gps-location {
      position: absolute;
      top: 4px;
      right: 4px;
      width: 28px;
      height: 28px;
      padding: 0;
      background: var(--surface-alt);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
    }

    .order-receipt {
      min-width: 0;
      padding: 10px 12px 12px;
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      background: var(--surface-alt);
      box-shadow: var(--shadow-soft);
    }

    .order-receipt-head,
    .order-receipt-line {
      display: grid;
      grid-template-columns: 2.4rem minmax(0, 1fr) max-content max-content;
      column-gap: 8px;
      align-items: start;
      width: 100%;
    }

    .order-receipt-addon {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 8px;
      align-items: start;
    }

    .order-receipt-head {
      margin-bottom: 6px;
      padding-bottom: 8px;
      border-bottom: 1px dashed var(--border);
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0;
      text-transform: none;
      color: var(--text-main);
    }

    .order-receipt-head span {
      white-space: nowrap;
    }

    .order-receipt-head span:nth-child(1),
    .order-receipt-qty {
      text-align: center;
    }

    .order-receipt-head span:nth-child(3),
    .order-receipt-unit {
      text-align: right;
      padding-right: 8px;
    }

    .order-receipt-head span:nth-child(4),
    .order-receipt-amt {
      text-align: right;
      border-left: 1px solid var(--border);
      padding-left: 8px;
    }

    .order-receipt-line {
      margin-top: 6px;
      font-size: 0.92rem;
      font-weight: 400;
      color: var(--text-main);
    }

    .order-receipt-name,
    .order-receipt-addon span:first-child,
    .order-receipt-sum span:first-child {
      min-width: 0;
      overflow-wrap: anywhere;
    }

    .order-receipt-qty {
      white-space: nowrap;
      font-variant-numeric: tabular-nums;
      font-weight: 400;
    }

    .order-receipt-amt,
    .order-receipt-sum span:last-child {
      white-space: nowrap;
      font-variant-numeric: tabular-nums;
      text-align: right;
    }

    .order-receipt-unit {
      white-space: nowrap;
      font-variant-numeric: tabular-nums;
      font-weight: 400;
    }

    .order-receipt-note {
      margin: 1px 0 2px;
      padding-left: 3.1rem;
      font-size: 0.78rem;
      line-height: 1.3;
      color: var(--text-soft);
      overflow-wrap: anywhere;
    }

    .order-receipt-line--addon {
      margin-top: 2px;
      font-size: 0.8rem;
      color: var(--text-soft);
    }

    .order-receipt-sum {
      display: flex;
      justify-content: flex-end;
      align-items: baseline;
      width: 100%;
      margin-top: 4px;
      font-size: 0.88rem;
      font-weight: 500;
      color: var(--text-main);
    }

    .order-receipt-sum span:first-child {
      padding-right: 8px;
      white-space: nowrap;
      text-align: right;
    }

    .order-receipt-sum span:last-child {
      box-sizing: border-box;
      min-width: 4.6rem;
      border-left: 1px solid var(--border);
      padding-left: 8px;
    }

    .order-receipt-sum--sub {
      margin-top: 8px;
      padding-top: 8px;
      border-top: 1px dashed var(--border);
      font-weight: 700;
    }

    .order-receipt-sum--total {
      margin-top: 6px;
      padding-top: 8px;
      border-top: 1px solid var(--border);
      font-size: 1rem;
      font-weight: 800;
      color: var(--primary-dark);
    }

    .order-receipt-sum--total span:last-child {
      color: var(--primary);
      font-size: 1.15rem;
    }

    .order-type-actions {
      display: flex;
      gap: 10px;
      margin-top: 10px;
      padding-top: 10px;
      border-top: 1px solid var(--border);
      flex-shrink: 0;
    }

    .order-type-actions button {
      flex: 1;
      min-height: 44px;
      padding: 10px 12px;
      border-radius: var(--radius-sm);
      cursor: pointer;
      font-size: 0.95rem;
    }

    #order-type-cancel {
      background: var(--surface-alt);
      color: var(--text-main);
      border: 1px solid var(--border);
      font-weight: 600;
    }

    #order-type-confirm {
      background: linear-gradient(135deg, var(--primary), var(--accent));
      color: var(--text-on-dark);
      border: none;
      font-weight: 700;
      box-shadow: var(--shadow-card);
    }

    .order-type-title {
      margin: 0 0 6px;
      font-size: 1.05rem;
      color: var(--text-main);
      padding-right: 32px;
    }

    .order-type-chips {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 6px;
      width: 100%;
      max-width: 100%;
      margin: 0 0 6px;
      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: 2px;
      min-width: 0;
      width: 100%;
      max-width: 100%;
      min-height: 0;
      padding: 5px 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: 28px;
      height: 28px;
      border-radius: 8px;
      font-size: 1rem;
      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: 6px;
      margin-bottom: 0;
      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: 1px;
      font-weight: 600;
      font-size: 0.72rem;
      line-height: 1.2;
      color: var(--text-main);
    }

    .order-identity-row .field-block input {
      width: 100%;
      height: 36px;
      min-height: 36px;
      max-height: 36px;
      padding: 4px 10px;
      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;
        align-items: flex-end;
      }

      .order-type-content {
        max-height: calc(100dvh - 8px);
        padding: 12px 10px 10px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
      }

      .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-modal {
        align-items: center;
        padding: 20px;
      }

      .order-type-content {
        max-width: 800px;
        padding: 18px 18px 14px;
      }

      .order-type-chips {
        gap: 10px;
      }

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

      .order-type-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 16px;
        align-items: start;
      }

      .order-type-layout:has(#order-type-summary[hidden]) {
        grid-template-columns: minmax(0, 1fr);
      }

      .order-type-body,
      .order-receipt {
        max-height: min(62vh, 560px);
        overflow-y: auto;
      }
    }

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

    .product-detail-content {
      background: #fff;
      border-radius: 20px;
      max-width: min(720px, calc(100vw - 32px));
      width: min(720px, calc(100vw - 32px));
      max-height: 90vh;
      height: auto;
      overflow: hidden;
      position: relative;
      animation: slideUp 0.2s ease;
      box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
      display: flex;
      flex-direction: column;
    }

    /* Desktop: foto izquierda / formulario derecha (720 × ~380) */
    @media screen and (min-width: 641px) {
      .product-detail-content {
        max-width: min(720px, calc(100vw - 32px));
        width: min(720px, calc(100vw - 32px));
        height: min(380px, 86vh);
        max-height: min(380px, 86vh);
        min-height: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: minmax(0, 1fr) auto;
        gap: 0;
        overflow: hidden;
      }

      .product-detail-content.no-image {
        grid-template-columns: 1fr;
        max-width: min(420px, calc(100vw - 32px));
        height: auto;
        max-height: min(90vh, 480px);
        min-height: 0;
      }

      .product-detail-content.no-image .product-detail-image {
        display: none;
      }

      .product-detail-image {
        grid-column: 1;
        grid-row: 1 / -1;
        width: 100%;
        height: 100%;
        min-height: 0;
        max-height: none;
        object-fit: cover;
        object-position: center center;
        border-radius: 20px 0 0 20px;
        background: linear-gradient(145deg, #292524, #1c1917);
        align-self: stretch;
      }

      .product-detail-body {
        grid-column: 2;
        grid-row: 1;
        max-height: none;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 16px 18px 8px;
        gap: 8px;
        border-radius: 0;
      }

      .product-detail-actions {
        grid-column: 2;
        grid-row: 2;
        margin-top: 0;
        padding: 8px 18px 16px;
        border-radius: 0 0 20px 0;
        border-top: none;
      }

      .product-detail-content.no-image .product-detail-body {
        grid-column: 1;
        border-radius: 20px 20px 0 0;
      }

      .product-detail-content.no-image .product-detail-actions {
        grid-column: 1;
        border-radius: 0 0 20px 20px;
      }

      .product-detail-close {
        position: absolute;
        top: 12px;
        right: 12px;
        z-index: 10;
      }

      .product-detail-body::-webkit-scrollbar {
        width: 6px;
      }

      .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);
      }
    }

    /* Móvil: modal compacto */
    @media screen and (max-width: 640px) {
      .product-detail-modal {
        padding: 16px;
        align-items: center;
        justify-content: center;
        overflow: hidden;
      }

      .product-detail-content {
        max-width: calc(100vw - 32px);
        width: calc(100vw - 32px);
        max-height: 92vh;
        height: auto;
        min-height: 0;
        border-radius: 20px;
        margin: 0 auto;
        padding: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
      }

      .product-detail-content.no-image .product-detail-image {
        display: none;
      }

      .product-detail-image {
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: 34vh;
        object-fit: cover;
        flex-shrink: 0;
        border-radius: 20px 20px 0 0;
      }

      .product-detail-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 14px 16px;
      }

      .product-detail-actions {
        flex-shrink: 0;
        margin-top: 0;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.06);
        background: #fff;
        gap: 10px;
      }

      .product-detail-actions .quantity-row {
        min-width: 100px;
        max-width: 140px;
      }

      .product-detail-actions .quantity-label {
        display: none;
      }

      .product-detail-actions .add-btn {
        max-width: calc(100% - 120px);
        padding: 10px 12px;
        font-size: 0.85rem;
      }

      .product-detail-close {
        position: absolute;
        top: 12px;
        right: 12px;
        z-index: 350;
      }
    }

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

    /* Cierre claro: tamaño intermedio (no tapa la foto). */
    .product-detail-close {
      position: absolute;
      top: 10px;
      right: 10px;
      width: 34px;
      height: 34px;
      border: 1.5px solid rgba(255, 255, 255, 0.85);
      border-radius: 50%;
      background: rgba(17, 24, 39, 0.72);
      color: #ffffff;
      font-size: 1.25rem;
      line-height: 1;
      font-weight: 600;
      cursor: pointer;
      z-index: 350;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
      transition: background var(--transition), transform var(--transition), border-color var(--transition);
      text-shadow: none;
    }

    .product-detail-close:hover {
      background: rgba(17, 24, 39, 0.92);
      border-color: #ffffff;
      opacity: 1;
      transform: scale(1.04);
    }

    .product-detail-close:active {
      transform: scale(0.96);
    }

    .product-detail-image {
      width: 100%;
      max-width: 100%;
      height: 100%;
      min-height: 0;
      max-height: 100%;
      object-fit: cover;
      object-position: center center;
      display: block;
      background: linear-gradient(145deg, #292524, #1c1917);
      flex-shrink: 0;
    }

    .product-detail-body {
      padding: 12px 16px;
      display: flex;
      flex-direction: column;
      gap: 6px;
      flex: 1 1 auto;
      min-height: 0;
      overflow-y: auto;
      overflow-x: hidden;
    }

    .product-detail-body h2 {
      margin: 0;
      padding: 0;
      font-size: 1.25rem;
      color: var(--text-main);
      line-height: 1.3;
      font-weight: 700;
    }

    .product-detail-body .detail {
      margin: 0;
      padding: 0;
      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.35rem;
      font-weight: 700;
      color: var(--primary);
      margin: 0;
      padding: 0;
    }

    .product-detail-actions {
      display: flex;
      gap: 12px;
      flex-wrap: nowrap;
      align-items: center;
      justify-content: space-between;
      padding: 10px 16px 16px;
      border-top: none;
      width: 100%;
      box-sizing: border-box;
      background: #fff;
      flex-shrink: 0;
    }

    .product-detail-actions .quantity-label {
      font-size: 0.85rem;
      font-weight: 500;
      color: #6b7280;
    }

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

    .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;
    }

    /* 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;
    }

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

    .menu-card.out-of-day-availability {
      opacity: 0.92;
    }

    .menu-card.out-of-day-availability .meta-line[data-days] {
      display: block;
      color: #b45309;
      font-weight: 600;
      font-size: 0.78rem;
      margin-top: 4px;
    }

    .carta-item.out-of-day-availability {
      opacity: 0.92;
      border-style: dashed;
    }

    .carta-item.out-of-day-availability .carta-item-name::after {
      content: ' · día especial';
      font-size: 0.75rem;
      font-weight: 600;
      color: #b45309;
      font-style: italic;
    }

    .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;
    }

    /* 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;
    }

    /* 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 ===== */
    .cart-panel {
      position: fixed;
      right: 20px;
      bottom: 20px;
      width: min(400px, calc(100vw - 40px));
      max-width: min(400px, calc(100vw - 40px));
      background: #fff;
      border: 1px solid rgba(0, 0, 0, 0.08);
      border-radius: 16px;
      display: flex;
      flex-direction: column;
      height: auto;
      max-height: min(70vh, 560px);
      min-height: 0;
      overflow: hidden;
      z-index: 650;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
      cursor: default;
      transition: height 0.25s ease, max-height 0.25s ease;
      transform-origin: bottom right;
      transform: none;
    }

    /* ===== PANEL MINIMIZADO: solo el chip (barra del header), arrastrable ===== */
    .cart-panel.minimized {
      height: auto;
      min-height: 0;
      max-height: none;
      background: transparent;
      border: none;
      box-shadow: none;
      padding: 0;
      cursor: grab;
      transition: none;
      transform: none;
      transform-origin: center center;
    }

    .cart-panel.minimized:active,
    .cart-panel.minimized .cart-header:active {
      cursor: grabbing;
    }

    .cart-panel.minimized .cart-items,
    .cart-panel.minimized .cart-footer {
      display: none;
    }

    .cart-panel.dragging {
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    }

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


    .cart-header {
      padding: 14px 18px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-weight: 600;
      font-size: 1rem;
      background: linear-gradient(135deg, #ea580c, #fb923c);
      color: #fff;
      user-select: none;
      touch-action: none;
      cursor: grab;
      flex-shrink: 0;
      position: relative;
      border-radius: 16px 16px 0 0;
    }

    /* Chip: pastilla completa con la misma pinta que la cabecera del panel. */
    .cart-panel.minimized .cart-header {
      border-radius: 16px;
      cursor: grab;
      box-shadow: 0 8px 24px rgba(234, 88, 12, 0.28);
    }

    .cart-badge {
      background: #dc2626;
      color: #fff;
      border-radius: 50%;
      min-width: 28px;
      height: 28px;
      padding: 0 6px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 0.9rem;
    }
    
    /* 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-clear,
    #cart-clear-btn {
      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;
    }
    
    /* Móvil/horizontal corto: mismo panel flotante, márgenes y alto proporcionales. */
    @media (max-width: 640px), (orientation: landscape) and (max-height: 520px) {
      .cart-panel {
        right: 12px;
        bottom: 12px;
        width: min(340px, calc(100vw - 24px));
        max-width: min(340px, calc(100vw - 24px));
      }

      .cart-panel:not(.minimized) {
        max-height: min(72dvh, 520px);
      }

      .cart-header {
        padding: 10px 12px;
        font-size: 0.92rem;
      }

      .cart-items {
        padding: 10px 12px;
      }
    }

    /* Lista: crece con los productos. Si el panel llega a max-height, esta zona hace scroll. */
    .cart-items {
      flex: 1 1 auto;
      min-height: 0;
      overflow-y: auto;
      overflow-x: hidden;
      padding: 12px 16px;
      font-size: 0.85rem;
      color: var(--text-soft);
      background: var(--surface);
      -webkit-overflow-scrolling: touch;
      scroll-behavior: smooth;
      overscroll-behavior: contain;
      box-sizing: border-box;
    }

    .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;
    }

    /* Pie del carrito: total + enviar en una sola fila (sin altura fija). */
    .cart-footer {
      padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 8px;
      background: var(--surface);
      border-top: 1px solid rgba(0, 0, 0, 0.05);
      flex: 0 0 auto;
      position: relative;
      z-index: 10;
    }

    .cart-total {
      display: flex;
      align-items: baseline;
      gap: 6px;
      font-weight: 700;
      font-size: 1rem;
      color: var(--text-main);
      flex: 1 1 auto;
      min-width: 0;
    }

    .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: 10px 18px;
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      transition: background var(--transition), transform var(--transition);
      flex: 0 0 auto;
      white-space: nowrap;
      position: relative;
      z-index: 10;
      min-height: 40px;
    }

    .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 =====
       SSOT de avisos (showCustomAlert / showWarningPanel / “faltan datos”).
       Debe quedar por encima de tipo de pedido (720) y de enviando (770). */
    .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: 950;
      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: 770;
      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 =====
       Capas: carta 600 < carrito 650 < detalle 700 < tipo pedido 720 < avisos 950.
       Al “Enviar pedido” se cierra la carta y se minimiza el carrito (JS). */
    .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: #fff7ed;
      border-radius: 18px;
      max-width: min(720px, calc(100vw - 32px));
      width: 100%;
      max-height: min(92vh, 900px);
      padding: 0;
      box-shadow: 0 18px 40px rgba(97, 26, 21, 0.18);
      position: relative;
      animation: slideUp 0.3s ease;
      border: 1px solid #f59e0b;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      margin: 16px auto;
    }

    .carta-modal-header {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 12px 16px;
      padding-top: max(12px, env(safe-area-inset-top, 0px) + 12px);
      border-bottom: 1px solid rgba(252, 211, 77, 0.4);
      background: linear-gradient(120deg, #2d0b05, #5f1b0d);
      flex-shrink: 0;
      gap: 12px;
      min-height: auto;
    }

    .carta-modal-title {
      font-size: 1.5rem;
      font-weight: 700;
      color: #fef2f2;
      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: 10px;
      border: 1px solid rgba(252, 211, 77, 0.5);
      background: rgba(255, 255, 255, 0.08);
      color: #fef3c7;
      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;
      background: linear-gradient(180deg, #fff7ed 0%, #fef2e8 60%, #fff7ed 100%);
    }

    .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: transparent;
      border-radius: var(--radius);
      overflow: hidden;
      border: none;
      position: relative;
      margin-bottom: 18px;
      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; }

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

    .carta-category-header {
      background: linear-gradient(120deg, #f97316, #ea580c);
      color: #fff7ed;
      padding: 10px 12px;
      margin: 0 0 10px;
      font-size: 1.1rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      text-align: left;
      border-bottom: none;
      position: relative;
      overflow: hidden;
      border-radius: 10px;
    }

    .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: 0;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .carta-item {
      display: grid;
      grid-template-columns: auto 1fr auto;
      column-gap: 10px;
      align-items: center;
      padding: 12px 14px;
      border-radius: 14px;
      border: 1px solid #f2c7a5;
      background: #fffaf5;
      cursor: pointer;
    }

    .carta-item:hover {
      border-color: #f59e0b;
      background: #fff4e8;
    }

    .carta-item-thumb {
      width: 44px;
      height: 44px;
      border-radius: 10px;
      overflow: hidden;
      border: 1px solid #f2c7a5;
      background: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .carta-item-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .carta-item-header {
      display: contents;
    }

    .carta-item-name {
      font-size: 1rem;
      font-weight: 700;
      color: #1f2937;
      grid-column: 2;
      line-height: 1.3;
      cursor: pointer;
      user-select: none;
    }

    .carta-item-price {
      background: linear-gradient(135deg, #f59e0b, #ef4444);
      color: #fffdfa;
      padding: 6px 12px;
      border-radius: 999px;
      font-size: 0.95rem;
      font-weight: 700;
      white-space: nowrap;
      border: none;
    }

    .carta-item-prices {
      grid-column: 3;
      grid-row: 1 / span 2;
      align-self: center;
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
    }

    .carta-item-description {
      grid-column: 2;
      font-size: 0.9rem;
      color: #6b7280;
      line-height: 1.4;
    }

    /* 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: min(720px, calc(100vw - 24px));
        max-height: 92vh;
        border-radius: 18px;
        margin: 12px auto;
      }

      .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-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;
      }
    }

    /* Móvil: una sola ficha (nombre + detalle + precio). Gana por orden, no a la fuerza. */
    @media screen and (max-width: 768px) {
      main {
        padding: 8px 8px 12px;
        gap: 8px;
      }

      .menu-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        grid-auto-rows: 280px;
        gap: 12px;
        align-content: start;
      }

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

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

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

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

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

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

      .menu-card h3,
      .menu-card .card-header h3 {
        font-size: 0.85rem;
        line-height: 1.2;
        max-height: 2.4em;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }

      .menu-card .detail-wrapper {
        display: block;
        overflow: hidden;
        padding-top: 2px;
        flex-shrink: 0;
        min-height: 2.4em;
        max-height: 2.4em;
      }

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

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

    @media screen and (max-width: 768px) and (orientation: landscape) {
      .menu-grid {
        grid-auto-rows: 260px;
      }

      .menu-card {
        height: 260px;
        min-height: 260px;
        max-height: 260px;
      }

      .menu-card-media {
        height: 160px;
        min-height: 160px;
        max-height: 160px;
      }

      .menu-card .card-body {
        padding: 6px 10px 46px;
      }
    }

    @media screen and (max-width: 768px) and (orientation: portrait) {
      .menu-card .card-body {
        padding: 8px 10px 48px;
      }
    }

    /* ============================================
       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;
    }


    .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 sin pedidos; flotante con pedidos. */
    .cart-panel[hidden] {
      display: none !important;
    }

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


/* === Agregados cobrables (misma regla que caja / Garzón) === */
.product-detail-content .product-modifications-section,
.product-detail-content .product-addons-section {
  margin-top: 2px;
  padding-top: 6px;
}

.product-detail-content .product-modifications-section textarea {
  min-height: 52px;
  max-height: 72px;
}

.product-detail-content .product-addons-hint {
  margin: 2px 0 0;
}

.product-modifications-section {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.product-modifications-section label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.85rem;
  color: var(--text-soft);
  font-weight: 500;
}
.product-modifications-section textarea {
  width: 100%;
  min-height: 45px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.85rem;
  resize: vertical;
  line-height: 1.4;
  box-sizing: border-box;
}
.product-addons-section {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.product-addons-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.product-addons-label {
  font-size: 0.85rem;
  color: var(--text-soft);
  font-weight: 600;
}
.product-addons-add-btn {
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--text);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.product-addons-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 4px;
}
.product-addon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
  color: #047857;
  font-weight: 600;
  background: #ecfdf5;
  border-radius: 6px;
  padding: 4px 8px;
}
.product-addon-row button {
  border: none;
  background: transparent;
  color: #b91c1c;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0 2px;
}
.product-addons-picker {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 160px;
  overflow: auto;
  margin-top: 6px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.product-addons-picker[hidden] {
  display: none !important;
}
.product-addon-pick-btn {
  text-align: left;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.82rem;
  cursor: pointer;
}
.product-addon-pick-btn:hover {
  border-color: var(--primary, #f4511e);
}
.product-addons-hint {
  margin: 6px 0 0;
  font-size: 0.72rem;
  color: var(--text-soft);
  line-height: 1.3;
}
.product-addons-line-total {
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary, #f4511e);
}
.cart-item-addons {
  font-size: 0.75rem;
  color: #047857;
  font-weight: 600;
  margin-top: 2px;
}

/* ===== Pie público (mismos nodos HTML) ===== */
.public-footer-stack {
  margin-top: auto;
  width: 100%;
}

.public-contact-bar {
  padding: 18px 8px 10px;
}

.public-contact-bar__links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.public-contact-bar__link {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(242, 199, 165, 0.95);
  background: rgba(255, 250, 245, 0.72);
  color: #7c2d12;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.public-contact-bar__link:hover {
  color: #c2410c;
  border-color: rgba(251, 146, 60, 0.68);
}

.public-contact-bar__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.public-contact-bar__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.public-brand-seal {
  padding: 12px 8px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(242, 199, 165, 0.95);
  text-align: center;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.35;
}

.public-brand-seal__copyright,
.public-brand-seal__credit-row {
  display: block;
}

.public-brand-seal__credit-row {
  margin-top: 2px;
}

.public-brand-seal__separator {
  padding: 0 0.28rem;
  color: #94a3b8;
}

.public-brand-seal__link {
  color: #64748b;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.public-brand-seal__link--interactive::after {
  content: "";
  display: inline-block;
  width: 0.36rem;
  height: 0.36rem;
  margin-left: 0.38rem;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-0.04rem) rotate(45deg);
  opacity: 0.62;
}

/* Enlace del personal: solo el carrito, la carta no se muestra. */
body.wa-pedido-only .header-wrap,
body.wa-pedido-only .header-categories,
body.wa-pedido-only main,
body.wa-pedido-only .public-footer-stack,
body.wa-pedido-only .welcome-screen,
body.wa-pedido-only .store-closed-overlay {
  display: none !important;
}

body.wa-pedido-only {
  background: #111;
  overflow: hidden;
}

body.wa-pedido-only .cart-panel {
  position: fixed;
  inset: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  border-radius: 0;
  z-index: 20;
}

body.wa-pedido-only .cart-panel.minimized .cart-items {
  display: block;
}

body.wa-pedido-only .cart-panel.minimized .cart-footer,
body.wa-pedido-only .cart-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

body.wa-pedido-only #cart-minimize-header-btn,
body.wa-pedido-only #cart-clear-btn {
  display: none;
}

body.wa-pedido-only #cart-review-fields label {
  display: block;
  font-size: 0.85rem;
  margin: 0 0 4px;
}

body.wa-pedido-only #cart-review-fields input,
body.wa-pedido-only #cart-review-fields textarea {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 8px;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  font: inherit;
}

body.wa-pedido-only #cart-review-fields p {
  margin: 0 0 8px;
}
