/* ========================================
   INDEX-ALT.CSS - ElMenu.rest v2.0.0
   Diseño Alternativo Moderno y Minimalista
   Mobile-first, complementa temas.css y menu-public.css
   
   CARACTERÍSTICAS:
   - Diseño card-based con glassmorphism
   - Animaciones suaves y micro-interacciones
   - Espaciado generoso y tipografía moderna
   - Paleta de colores vibrantes
   - Sombras profundas y bordes redondeados
   ======================================== */

/* ========================================
   IMPORTS
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@400;600;700;800&display=swap');

/* ========================================
   VARIABLES CSS GLOBALES - DISEÑO ALTERNATIVO
   ======================================== */
:root {
  /* Colores generales se heredan desde temas.css */
  /* Las variables --color1, --color2, --color3, --colorText, --colorTextInv
     vienen de body[data-theme="..."] en temas.css */
  
  /* Radios de borde minimalistas */
  --radius-sm-alt: 5px;
  --radius-md-alt: 8px;
  --radius-lg-alt: 12px;
  --radius-xl-alt: 5px;
  
  /* Sombras profundas */
  --shadow-sm-alt: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-md-alt: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-lg-alt: 0 16px 48px rgba(0, 0, 0, 0.16);
  --shadow-xl-alt: 0 24px 64px rgba(0, 0, 0, 0.24);
  
  /* Tipografía moderna aumentada */
  --font-family-base-alt: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-family-heading-alt: 'Poppins', 'Inter', sans-serif;
  --font-size-base-alt: 1.125rem;
  --font-size-lg-alt: 1.25rem;
  --font-size-xl-alt: 1.5rem;
  --font-size-sm-alt: 1rem;
  --font-size-xs-alt: 0.875rem;
  --heading-weight-alt: 700;
  --heading-line-height-alt: 1.3;
  --body-line-height-alt: 1.7;

  /* Hero variables override base layout */
  --hero-padding: clamp(2.5rem, 5vw, 4rem) 1.5rem clamp(2rem, 4vw, 3rem);
  --hero-radius: 18px;
  --hero-shadow: var(--shadow-md-alt);
  --hero-content-gap: 1.25rem;
  --hero-content-max-width: 1100px;
  --hero-logo-size: clamp(130px, 18vw, 230px);
  --hero-logo-radius: 16px;
  --hero-logo-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  --hero-bg-skin: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(0,0,0,0.05));
  --hero-text-color: var(--text-invert, #fff);
  --hero-text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  --hero-heading-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);

  /* Transiciones suaves */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Gradiente configurable para el fondo */
  --body-gradient-stop1: 20%;  /* Color 1 predominante */
  --body-gradient-stop2: 60%;  /* Mezcla intermedia */
  --body-gradient-stop3: 80%;  /* Color 2 toma protagonismo */

  /* Colores fijos utilizados en acciones del resumen de pedido */
  --pedido-color-whatsapp: #25d366;
  --pedido-color-limpiar: #b6b6b6;
  --pedido-color-esconder: #c0bfbf;
  --pedido-color-text-dark: #212121;
}

/* ========================================
   RESET Y BASE
   ======================================== */
body {
  background: linear-gradient(
    to bottom,
    var(--color1) 0%,
    var(--color1) var(--body-gradient-stop1),
    color-mix(in srgb, var(--color1) 55%, var(--color2)) var(--body-gradient-stop2),
    var(--color2) var(--body-gradient-stop3),
    var(--color2) 100%
  );
  color: var(--colorText);
  font-family: var(--font-family-base-alt);
  margin: 0;
  padding: 0;
  font-size: var(--font-size-base-alt);
  line-height: var(--body-line-height-alt);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Tamaños de texto configurables */
body.text-size-grande {
  font-size: 1.3125rem; /* 21px */
}

body.text-size-mas-grande {
  font-size: 1.5rem; /* 24px */
}

/* ========================================
   CONTROL DE TAMAÑO DE TEXTO
   Agregar botones en el HTML para cambiar clases
   ======================================== */
body.text-normal {
  font-size: var(--font-size-base-alt);
}

body.text-large {
  font-size: calc(var(--font-size-base-alt) * 1.15);
}

body.text-xlarge {
  font-size: calc(var(--font-size-base-alt) * 1.3);
}

/* ========================================
   CONTROL DE TAMAÑO DE TEXTO - MINIMALISTA
   Arriba a la izquierda, poco intrusivo
   ======================================== */
.text-size-controls {
  position: fixed !important;
  top: 0.75rem !important;
  left: 0.75rem !important;
  z-index: 9999 !important;
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  background: transparent !important;
  padding: 0.5rem 0.75rem !important;
  border-radius: 2px;
  font-family: var(--font-family-base-alt);
}

.text-size-label {
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 0.875rem;
  margin-right: 0.25rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.02em;
}

.text-size-btn {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  border-radius: 2px;
  padding: 0.25rem 0.5rem !important;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700 !important;
  transition: all 0.2s ease;
  min-width: 28px;
  height: 28px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.text-size-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.8) !important;
  transform: scale(1.05);
}

.text-size-btn.active {
  background: rgba(255, 255, 255, 0.3) !important;
  border-color: #fff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

/* ========================================
   TIPOGRAFÍA MODERNA
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading-alt);
  font-weight: var(--heading-weight-alt);
  line-height: var(--heading-line-height-alt);
  color: var(--text-primary-alt);
  margin: 0 0 1rem 0;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff !important;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--colorText);
  margin: 2rem 0 0.5rem 1em;
  position: relative;
  padding-bottom: 0.45rem;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color1);
  border-radius: 2px;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--colorText);
}

h4 {
  font-size: var(--font-size-xl-alt);
  font-weight: 600;
  color: var(--colorText);
}

p {
  color: var(--colorText);
  opacity: 0.85;
  margin: 0 0 1rem 0;
}

/* Hero colors are controlled by menu-public.css via variables */

/* ========================================
   CATEGORÍAS - PILLS MODERNAS
   ======================================== */
.categorias-scroll {
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
}

.categoria {
  padding: 0.7rem 1.6rem;
  font-size: var(--font-size-base-alt);
  font-weight: 700;
  font-family: var(--font-family-heading-alt);
  background: var(--pill-bg);
  border: 1px solid color-mix(in srgb, var(--pill-bg) 70%, #ffffff);
  color: var(--pill-text) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.categoria:hover,
.categoria:focus-visible {
  background: var(--pill-hover-bg);
  color: var(--pill-hover-text) !important;
}

/* ========================================
   PLATOS - CARDS ELEVADAS
   ======================================== */
.platos, .platos.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  padding: 2rem 1.5rem;
  margin-bottom: 3rem;
}

/* Desktop: 4 columnas siempre */
@media (min-width: 1200px) {
  .platos, .platos.grid-3 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .platos, .platos.grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.plato {
  display: flex;
  flex-direction: column;
  background: var(--color2);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: visible;
  transition: all var(--transition-base);
  position: relative;
  min-height: 480px;
  max-height: 480px;
}

.plato:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.plato.plato-panel-open {
  z-index: 10;
}

.plato img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 2px;
  margin: 0;
  transition: transform var(--transition-base);
}

.plato:hover img {
  transform: scale(1.03);
}

.plato-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-height: 0;
}

.plato-info h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--colorText);
  line-height: 1.3;
}

.plato-info p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color3, var(--colorText));
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  opacity: 0.85;
  line-height: 1.5;
}

/* ========================================
   PRECIO Y CANTIDAD - DISEÑO MODERNO
   ======================================== */
.precio-cantidad {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
}

.plato-info .precio-cantidad {
  max-width: 100% !important;
}

.precio {
  font-weight: 800;
  font-size: 1.5rem;
  font-family: var(--font-family-heading-alt);
  /* Color definido en menu-public.css como fijo #212121 */
  margin: 0;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  min-width: 0;
}

.cantidad-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border-radius: 2px;
  padding: 0.1rem 0.2rem;
  height: auto;
  min-height: 36px;
  flex-shrink: 1;
  min-width: 0;
  max-width: 130px;
  box-sizing: border-box;
}

.cantidad-btn {
  width: 30px;
  height: 30px;
  aspect-ratio: 1;
  min-width: 26px;
  max-width: 32px;
  min-height: 26px;
  max-height: 32px;
  border-radius: 2px;
  /* Colores definidos en menu-public.css como fijos #212121 */
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  line-height: 1;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

.cantidad-btn:hover {
  transform: scale(1.03);
  /* Colores definidos en menu-public.css como fijos */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.24);
}

.cantidad-btn:active {
  transform: scale(0.95);
  /* Colores definidos en menu-public.css como fijos */
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.cantidad-num {
  width: 36px;
  min-width: 30px;
  max-width: 40px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--colorText);
  background: transparent;
  border: none;
  flex-shrink: 1;
  box-sizing: border-box;
  outline: none;
  padding: 0;
  margin: 0;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: textfield;
}

/* Eliminar flechas del input number */
.cantidad-num::-webkit-outer-spin-button,
.cantidad-num::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cantidad-num::-moz-outer-spin-button,
.cantidad-num::-moz-inner-spin-button {
  -moz-appearance: none;
  margin: 0;
}

/* ========================================
   FOOTER - IDÉNTICO A INDEX.CSS
   ======================================== */
footer {
  background: #2a2a2a;
  color: #e0e0e0;
  padding: 4rem 1.5rem 2.5rem;
  overflow-x: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--accent);
}

/* Footer Grid */
.footer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1.2fr 1fr;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
}

/* El cart-bar no debe participar en el grid */
.footer-grid .cart-bar {
  display: none;
  grid-column: 1 / -1;
}

/* Footer Mapa */
.footer-mapa {
  max-width: 320px;
  width: 100%;
  margin: 0 auto;
}

/* Contenedor responsive con aspect ratio 1:1 (cuadrado) */
.map-responsive-container {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* 1:1 aspect ratio - cuadrado */
  height: 0;
  overflow: hidden;
  border-radius: 2px;
  background: var(--bg-muted);
  box-shadow: var(--shadow-soft);
}

.map-responsive-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ===== Generic Footer Card ===== */
.footer-card {
  background: none;
  border-radius: 2px;
  padding: 0 1.5rem;
}

/* Excepción para el mapa: sin padding */
.footer-card.footer-mapa {
  padding: 0 !important;
  overflow: visible !important;
}

/* ===== Order Summary Card (Desktop en Footer) ===== */
.pedido-card {
  background: #ffffff !important;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  max-width: 360px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: visible;
}

/* Ocultar pedido-card en móvil */
@media (max-width: 768px) {
  .pedido-card {
    display: none !important;
  }
}

#pedido-resumen h4 { 
  font-family: 'Montserrat', sans-serif; 
  margin-bottom: .6rem; 
  font-size: 1.05rem; 
  color: #212121; 
}

#pedido-resumen ul { 
  list-style: none; 
  padding: 0; 
  margin: .4rem 0; 
}

#pedido-resumen li { 
  display: grid; 
  grid-template-columns: 1fr auto; 
  gap: .5rem; 
  margin-bottom: .25rem; 
  font-size: .9rem;
  color: #212121 !important;
}

#pedido-resumen li span {
  color: #212121 !important;
}

#pedido-resumen .total-row { 
  font-weight: 700; 
  border-top: 1px solid rgba(0,0,0,.15); 
  padding-top: .5rem; 
  margin-top: .4rem; 
  display: grid; 
  grid-template-columns: 1fr auto;
  color: #212121 !important;
}

#pedido-resumen .total-row span {
  color: #212121 !important;
}

/* ===== Contenedor de Botones Desktop - En Línea ===== */
#pedido-resumen-desktop .pedido-actions,
#pedido-resumen .pedido-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  width: 100%;
  align-items: center;
  justify-content: center;
}

/* ===== Botones de acciones (Desktop & Móvil) ===== */
.pedido-actions .pedido-action-btn {
  flex: 1;
  border: none;
  border-radius: 2px;
  padding: 0.5em 0.75em;
  font-size: 0.85em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Montserrat', Arial, sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  box-shadow: none;
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  line-height: 1;
  vertical-align: middle;
  margin: 0;
}

.pedido-actions .btn-compartir-whatsapp {
  background: var(--pedido-color-whatsapp) !important;
  color: #fff !important;
  margin: 0 !important;
}

.pedido-actions .btn-limpiar {
  background: var(--pedido-color-limpiar) !important;
  color: var(--pedido-color-text-dark) !important;
  margin: 0 !important;
}

.pedido-actions #close-bottom-sheet,
.pedido-actions .close-btn {
  background: var(--pedido-color-esconder) !important;
  color: var(--pedido-color-text-dark) !important;
}

.pedido-actions .btn-compartir-whatsapp:hover {
  background: #1fb855 !important;
}

.pedido-actions .btn-limpiar:hover {
  background: #a0a0a0 !important;
}

.pedido-actions #close-bottom-sheet:hover,
.pedido-actions .close-btn:hover {
  background: #a8a7a7 !important;
}

/* ===== Restaurant Info ===== */
.footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  padding: 0 1.5rem;
  gap: 0.75rem;
}

.info-logo {
  width: 140px;
  height: 140px;
  border-radius: 2px;
  object-fit: cover;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow-soft);
}

@media (max-width: 600px) {
  .info-logo {
    width: 120px;
    height: 120px;
  }
}

.footer-info h4 {
  font-family: var(--font-family-heading);
  font-size: 1.5rem;
  font-weight: var(--heading-weight);
  margin: 0.5rem 0;
  color: #ffffff;
  line-height: var(--heading-line-height);
}

.footer-info p {
  margin: 0.25rem 0;
  font-size: var(--font-size-base);
  color: #e0e0e0;
  line-height: var(--body-line-height);
}

.info-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.info-social svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
  opacity: 0.8;
  transition: all 0.25s ease;
}

.info-social svg:hover {
  opacity: 1;
  fill: var(--accent);
  transform: translateY(-2px);
}

/* ========================================
   ANIMACIONES
   ======================================== */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estilos para listas de pedido (desktop y mobile) */
#pedido-resumen-desktop ul,
.pedido-bottom-sheet ul {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

#pedido-resumen-desktop ul li,
.pedido-bottom-sheet ul li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.95em;
  color: #111;
}

#pedido-resumen-desktop ul li span:first-child,
.pedido-bottom-sheet ul li span:first-child {
  flex: 1;
  text-align: left;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  line-height: 1.3;
}

#pedido-resumen-desktop ul li span:last-child,
.pedido-bottom-sheet ul li span:last-child {
  flex-shrink: 0;
  text-align: right;
  font-weight: 600;
  font-size: 0.95em;
}

#pedido-resumen-desktop .total-row,
.pedido-bottom-sheet .total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.1em;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 2px solid var(--border-subtle);
  color: #111;
}

#pedido-resumen-desktop .pedido-vacio,
.pedido-bottom-sheet .pedido-vacio {
  color: var(--text-muted);
  text-align: center;
  margin: 1.5rem 0;
  font-style: italic;
}

.pedido-card h4, .resumen-pedido h4 {
  font-size: 1.6em !important;
  font-weight: 800 !important;
  color: #111 !important;
  margin-bottom: 1rem !important;
  font-family: 'Montserrat', sans-serif !important;
}

/* ========================================
   VISIBILIDAD DESKTOP/MÓVIL
   ======================================== */
/* Desktop: mostrar pedido-desktop, ocultar cart-bar y bottom-sheet */
@media (min-width: 900px) {
  .cart-bar, .pedido-bottom-sheet {
    display: none !important;
  }
  .pedido-desktop {
    display: block !important;
  }
}

/* Móvil: ocultar pedido-desktop, mostrar cart-bar y bottom-sheet */
@media (max-width: 899px) {
  .pedido-desktop {
    display: none !important;
  }
  
  /* Cart Bar - Barra inferior fija */
  .cart-bar {
    display: flex !important;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    max-width: 320px;
    margin: 0 auto;
    z-index: 1100;
    background:rgba(255, 255, 255, 0.5) ;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
    justify-content: center;
    align-items: center;
    padding: 0.7em 1.2em;
    border-radius: 2px 2px 0 0;
    gap: 0;
  }
  
  .cart-bar-btn {
    background: var(--colorButton);
    color: var(--colorTextInv) !important;
    font-size: 1.125rem;
    font-family: 'Montserrat', Arial, sans-serif;
    border: none;
    border-radius: 2px;
    display: flex;
    align-items: center;
    gap: 0.8em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-weight: 700;
    width: 100%;
    max-width: 420px;
    justify-content: space-between;
    transition: all 0.2s ease;
    text-align: center;
    height: 60px;
    max-height: 60px;
    cursor: pointer;
  }
  
  .cart-bar-btn span,
  .cart-bar-btn {
    color: #fff !important;
  }
  
  .cart-bar-btn:hover {
    background: var(--color3);
  }
  
  #cart-bar-count {
    background: none;
    color: #fff;
    border-radius: 2px;
    padding: 0.25em 0.7em;
    font-size: 1em;
    font-weight: bold;
    margin-right: 0.5em;
  }
  
  #cart-bar-total {
    font-weight: bold;
    font-size: 1.25rem;
    margin-left: 0.5em;
  }
  
  /* Bottom Sheet - Panel deslizante desde abajo */
  .pedido-bottom-sheet {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 30vh;
    max-height: 70vh;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    border-radius: 2px 2px 0 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    z-index: 1200;
    transform: translateY(100%);
    transition: transform 0.33s cubic-bezier(0.4, 1.2, 0.4, 1);
    padding: 1em 1.5em 0.5em 1.5em;
    overflow-y: auto;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.95rem;
    opacity: 0;
    pointer-events: none;
  }
  
  .pedido-bottom-sheet.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .pedido-bottom-sheet h4 {
    font-size: 1.2em !important;
    font-weight: 700 !important;
    color: #212121 !important;
    text-align: center !important;
    margin: 0 auto 1rem auto;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
  }
  
  .pedido-bottom-sheet .bottom-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }
  
  .pedido-bottom-sheet .bottom-sheet-header span {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #212121 !important;
    font-family: 'Montserrat', sans-serif;
    flex: 1;
    text-align: left;
  }
  .sheet-visibility-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.12);
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(8px);
    color: #222;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .sheet-visibility-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  }
  .sheet-visibility-toggle svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    transform: translate(-50%, -50%);
    display: block;
  }
  .sheet-visibility-toggle .icon-eye-closed {
    opacity: 0;
    transition: opacity 0.2s ease;
  }
  .sheet-visibility-toggle[aria-pressed="true"] .icon-eye-open {
    opacity: 0;
  }
  .sheet-visibility-toggle[aria-pressed="true"] .icon-eye-closed {
    opacity: 1;
  }
  
  .pedido-bottom-sheet ul {
    list-style: none;
    margin: 0;
    padding: 0 0.25rem;
    display: block;
  }
  
  .pedido-bottom-sheet li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.7em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.95rem;
    line-height: 1.4;
  }
  
  .pedido-bottom-sheet .total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.15rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1.5px solid rgba(0, 0, 0, 0.12);
  }
  
  /* ===== Contenedor de Botones Móvil - 3 en Línea ===== */
  .pedido-bottom-sheet .pedido-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    width: 100%;
  }
  
  /* ===== Botón Compartir WhatsApp - Móvil ===== */
  .pedido-bottom-sheet .btn-compartir-whatsapp {
    flex: 1;
    background: #25d366 !important;
    color: #fff !important;
    border: none;
    border-radius: 2px;
    padding: 0.65em 0.5em;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Montserrat', Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3em;
    box-shadow: none;
    height: 40px;

  }
  
  .pedido-bottom-sheet .btn-compartir-whatsapp:hover {
    background: #1fb855 !important;
  }
  
  /* ===== Botón Limpiar - Móvil ===== */
  .pedido-bottom-sheet .btn-limpiar {
    flex: 1;
    background: #b6b6b6 !important;
    color: #212121 !important;
    border: none;
    border-radius: 2px;
    padding: 0.65em 0.5em;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Montserrat', Arial, sans-serif;
    text-align: center;
    box-shadow: none;
    height: 40px;
  }
  
  .pedido-bottom-sheet .btn-limpiar:hover {
    background: #a0a0a0 !important;
  }
  .close-bottom-sheet {
    background: transparent;
  }
}

/* ========================================
   BOTONES GENERALES
   ======================================== */
button, .btn {
  border-radius: 2px !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08em;
  font-weight: 600;
  border: none;
  outline: none;
  padding: 0.6em 1.2em;
  background: var(--color1, #eee);
  color: #111 !important;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 4px #0001;
  margin: 0.2em 0.2em 0.2em 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button:hover, .btn:hover {
  background: var(--color3, #222);
  color: #000000 !important;
}

/* ========================================
   ACCESIBILIDAD Y UTILIDADES
   ======================================== */
::placeholder {
  color: var(--text-muted-alt);
  opacity: 0.6;
}

::selection {
  background: var(--color1);
  color: #fff;
  opacity: 0.3;
}

/* ========================================
   MEDIA QUERIES - RESPONSIVE
   ======================================== */

/* Tablet */
@media (max-width: 992px) {
  .platos, .platos.grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    padding: 1.5rem 1rem;
  }
  
  .resumen-pedido {
    left: 1rem;
    bottom: 1rem;
    min-width: 280px;
  }
  
  footer {
    padding: 3rem 1.25rem 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-info h4 {
    font-size: 1.35rem;
  }
}

/* Móvil: 2 cards verticales ocupando ancho completo */
@media (max-width: 768px) {
  section[id^="cat"] {
    scroll-margin-top: 100px;
  }
  
  .categorias-scroll {
    padding: 1.25rem 1rem;
    gap: 0.5rem;
  }
  
  .categoria {
    padding: 0.85rem 1.5rem;
    font-size: 1.125rem;
  }
  
  /* 1 columna vertical, ocupando todo el ancho */
  .platos, .platos.grid-3 {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1rem;
  }
  
  .plato {
    width: 100%;
    max-width: 100%;
  }
  
  .plato img {
    height: 220px;
  }
  
  .plato-info {
    padding: 0.7rem;
  }
  
  .plato-info h3 {
    font-size: 1.5rem;
    line-height: 1.4;
  }
  
  .plato-info p {
    font-size: 1.125rem;
    line-height: 1.6;
  }
  
  .precio {
    font-size: 1.75rem;
  }
  
  .cantidad-btn {
    width: 34px;
    height: 34px;
    font-size: 1.5rem;
    aspect-ratio: 1 / 1;
  }
  
  .cantidad-num {
    width: 44px;
    font-size: 1.25rem;
  }
  
  /* Ajustes adicionales para móvil */
  #pedido-resumen ul li { 
    font-size: 1.05rem; 
  }
  
  footer {
    padding: 3rem 1.5rem 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  /* En móvil: ocultar pedido-card del footer */
  .footer-grid > .pedido-card,
  .footer-grid .footer-card.pedido-card {
    display: none !important;
  }
  
  .footer-info h4 {
    font-size: 1.5rem;
  }
  
  footer {
    font-size: 1.125rem;
  }
  
  .text-size-controls {
    top: 0.5rem !important;
    left: 0.5rem !important;
    padding: 0.375rem 0.5rem !important;
  }
  
  .text-size-label {
    font-size: 0.75rem;
  }
  
  .text-size-btn {
    padding: 0.25rem 0.375rem !important;
    font-size: 0.875rem !important;
    min-width: 26px;
    height: 26px;
  }
  
  .footer-mapa {
    max-width: 100%;
  }
  
  .footer-card {
    padding: 0 1rem;
  }
}

/* ========================================
   ANIMACIONES SUAVES
   ======================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.plato {
  animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.plato:nth-child(1) { animation-delay: 0.03s; }
.plato:nth-child(2) { animation-delay: 0.06s; }
.plato:nth-child(3) { animation-delay: 0.09s; }
.plato:nth-child(4) { animation-delay: 0.12s; }
.plato:nth-child(5) { animation-delay: 0.15s; }
.plato:nth-child(6) { animation-delay: 0.18s; }

/* ========================================
   FIX CRÍTICO: BOTONES DENTRO DEL CONTENEDOR
   ======================================== */
.pedido-actions,
#pedido-resumen-desktop .pedido-actions,
.pedido-actions {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

.pedido-actions .pedido-action-btn,
.pedido-actions .btn-compartir-whatsapp,
.pedido-actions .btn-limpiar,
.pedido-actions .close-btn {
  box-sizing: border-box !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex-shrink: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* ========================================
   VARIANTES DE PLATOS v2 - Menú público colapsable (alt)
   ======================================== */
.plato-variantes-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.6rem;
  padding: 0.45rem 0.75rem;
  background: rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: var(--radius-sm-alt, 5px);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 800;
  user-select: none;
  transition: background 0.2s;
}
.plato-variantes-trigger:hover,
.plato-variantes-trigger[aria-expanded="true"] { background: rgba(0,0,0,0.1); }
.pvt-arrow {
  font-size: 0.75rem;
  transition: transform 0.2s;
  opacity: 0.6;
}
.plato-variantes-trigger[aria-expanded="true"] .pvt-arrow { transform: rotate(180deg); }

.plato-variantes-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin-top: 0;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: var(--radius-sm-alt, 5px);
  overflow: hidden;
  background: var(--color2, #fff);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  z-index: 30;
}
.plato-variantes-panel[hidden] { display: none; }

@media (max-width: 700px) {
  .plato {
    min-height: auto;
    max-height: none;
  }
  .plato-variantes-panel {
    position: static;
    top: auto;
    box-shadow: none;
    margin-top: 0.4rem;
  }
}

.pvp-grupo {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.pvp-grupo:last-child { border-bottom: none; }

.pvp-grupo-titulo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.65;
}

.pvp-tipo-tag {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  background: rgba(0,0,0,0.08);
  padding: 1px 6px;
  border-radius: 20px;
  opacity: 1;
}

.pvp-opciones { display: flex; flex-direction: column; gap: 0.3rem; }

.pvp-opcion {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.15s;
}
.pvp-opcion:hover { background: rgba(0,0,0,0.05); }
.pvp-opcion.selected { background: rgba(var(--color2-rgb,0,0,0),0.08); }

.pvp-opcion input[type="radio"],
.pvp-opcion input[type="checkbox"] {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid rgba(122,201,67,0.65);
  border-radius: 50%;
  background: rgba(0,0,0,0.35);
  position: relative;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.pvp-opcion input[type="radio"]:checked,
.pvp-opcion input[type="checkbox"]:checked {
  background: var(--accent, #7ac943);
  border-color: var(--accent, #7ac943);
  box-shadow: 0 0 0 3px rgba(122,201,67,0.22);
}
.pvp-opcion input[type="radio"]:checked::after,
.pvp-opcion input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #0b0b0b;
}
.pvp-opcion input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}
.pvp-opcion-nombre { flex: 1; }

@media (max-width: 700px) {
  .pvp-opcion-nombre { text-align: left; }
}
.pvp-opcion-precio {
  font-size: 0.8rem; font-weight: 700;
  color: var(--color2, var(--accent, #7ac943));
  white-space: nowrap;
}
.pvp-gratis { font-size: 0.75rem; font-weight: 400; opacity: 0.5; }

/* ========================================
   ACCORDION DE GRUPOS DE VARIANTES (MOBILE)
   ======================================== */

/* Accordion solo en mobile */
@media (max-width: 700px) {
  .pvp-grupo {
    border-bottom: 1px solid rgba(var(--color1-rgb, 0,0,0), 0.07);
    padding: 0;
  }
  .pvp-grupo:last-child {
    border-bottom: none;
  }

  .pvp-grupo-header {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    padding: 12px 0.75rem;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
  }
  
  .pvp-grupo-header:active {
    background: rgba(var(--color1-rgb, 0,0,0), 0.05);
  }

  .pvp-grupo-arrow {
    font-size: 14px;
    transition: transform 0.25s ease;
    opacity: 0.6;
    flex-shrink: 0;
  }

  .pvp-grupo-titulo {
    flex: 1;
    margin-bottom: 0 !important;
  }

  .pvp-grupo-status {
    display: none;
  }

  .pvp-grupo-panel {
    padding: 0 0.75rem 12px 0.75rem;
    overflow: hidden;
  }
  
  .pvp-grupo-panel[hidden] {
    display: none !important;
  }
}

/* Desktop: sin accordion, todo visible */
@media (min-width: 701px) {
  .pvp-grupo-arrow,
  .pvp-grupo-status {
    display: none;
  }
  
  .pvp-grupo-header {
    cursor: default;
  }
  
  .pvp-grupo-panel {
    display: block !important;
  }
}
