

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../images/fondo_2.jpg");
    background-position: bottom;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: -2;
    pointer-events: none;
    background-color: #fff;
}

.custom-select-sm {
  width: 10em !important;
  display: inline-block !important;
  }
  
  .form-control  {
      display: inline-block !important;
  }
  
  div.dataTables_wrapper div.dataTables_filter label {
      font-weight: normal !important;
      white-space: nowrap !important;
      text-align: left !important;
      display: inline-block !important;
      margin-bottom: 0.5rem !important;
  }
  
  .dataTables_filter input {
      margin: 0 0 0 10px !important;
  }
  .navbar {
      padding: 3px 0 0 20px !important;
  }
  
  .btn-custom {
      width: 150px; /* Tamaño específico del botón */
  }
  .btn {
    border-radius: 12px !important;
  }
  .alert-warning {
      width: 130px;
      height: 45px;
      padding: 10px !important;
  }
  
  .recuadro {
    position: fixed; /* Fijo para que permanezca visible */
    bottom: 0; /* Siempre en la parte inferior de la pantalla */
    width: 90%; /* Ajusta el ancho según necesidad */
    padding: 9px;
    z-index: 1000; /* Asegura que quede sobre otros elementos */
    background-color: #fbfbfb;
    border-radius: 15px;
    margin: 0; /* Elimina márgenes */
    box-shadow: 0 2px 9px #a199994d;
    border: 1px solid #fff2ca;
    margin-bottom: 20px;
}


  .titulo {
    background-color: #000;
    border-radius: 10px 10px 0px 0px;
    padding: 13px 17px 8px 14px;
    color: #fff;
    margin: 0 0 6px 0px;
    font-weight: bolder;
  }
  
  .container {
    padding-bottom: 30px;
  }
  .btn-enviar {
    background-color: #da5443;
    color: #fff;
  }
  body {
      margin: 0;
      padding: 0;
      background-color: #fff;
      
    }
  
    .header {
      display: flex;
      align-items: center;
      z-index: 2;
      width: 100%;
      max-height: 500px;
      margin-top: 40px;

    
    }
  
    .menu {
      width: 100%;
      z-index: 999;
      position: -webkit-sticky;
      position: sticky;
      top: 0;
      text-align: center;
      justify-content: center;
     
    }
  .categorias {
    padding: 8px;
  }
   a.category-button {

    background-color: #246e39;
    padding:5px 12px 5px 12px;
    color: #fff;
    border-radius: 13px;
    padding: 8px 20px 8px 20px;
  }
  a.category-button:hover {
    text-decoration: unset;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Sombra más prominente */
  }
  a.category-button.active {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2); /* Sombra más prominente */
    background-color: #5e8837;
    color: #fff;

}


  .top-10 
  {
    margin-top: 10px;
  }
  
    .contenido {
  padding: 20px;
  margin-bottom: 100px; /* Altura del pedido */
  transition: margin-top 0.3s ease-in-out;
  width: 100%;
  }
  
    .pedido {
      position: fixed;
      bottom: 0;
      width: 100%;
      background-color: #f1f1f1;
      padding: 20px;
    
      transform: translateY(100%); /* Mover el div hacia abajo */
      transition: transform 0.5s ease; /* Agregar una transición suave */
  
    }
  
  
  
    .pedido.mostrar {
      transform: translateY(0); /* Mostrar el div desplazándolo hacia arriba */
    }
  
   
  
    .fixed-menu {
      position:fixed;
      z-index:1000;
      top:0;
      /*max-width:1000px;*/
      left:0;
      width:100%;
      box-shadow:0px 4px 3px rgba(0,0,0,.5);
    }
  
    .products {
      display: grid;
      grid-template-columns: 1fr;
      grid-gap: 20px;
    }
  
    .producto {
      font-family: arial;
      display: grid;
      align-items: center;
      position: relative;
      border-radius: 22px;
      padding: 14px 15px 5px 21px;
      box-shadow: 0 4px 29px rgba(0, 0, 0, 0.2); /* Sombra más prominente */
      background-color: #fff;
      grid-template-columns: 1fr max-content;
      transition: box-shadow 0.3s ease; /* Transición para efecto hover */
  }
  
  .producto:hover {
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); /* Sombra más intensa al pasar el mouse */
  }
  
  .producto img {
    width: 130px;
    margin-left: 15px;
    border-radius: 999px;
    object-fit: cover;
  
  }
  
.producto img.img-thumbnail {

    border: 2px solid #e4d9d1 !important;

}

  /* Sombra de intensidad media para imágenes clickeables (product-image) */
  .product-image {
    box-shadow: 0 4px 17px rgba(0,0,0,0.18); /* sombra media */
    transition: box-shadow 180ms ease, transform 180ms ease;
  }
  .product-image:hover {
    box-shadow: 0 7px 20px rgba(0,0,0,0.22);
    transform: translateY(-2px);
  }

  .producto h4 {
  margin: 0;
  font-size: 20px;
  }
  .producto h3 {
    margin: 0;
    font-size: 21px;
    color: #525151;
    font-weight: 600;
    }

  .producto p {
  color: #757575;
    margin: 5px 0;
    overflow-wrap: anywhere;
    font-size: 16px;
    line-height: 1.3;
  }
  
  .producto .price {
  font-weight: bold;
  color: #000;
  font-size: 18px;
  }
  .producto .badge {
    display: flex;
    align-items: center;
    width: -moz-fit-content;
    width: fit-content;
  }
  .producto .badge img {
    width:14px;
    margin:0px;
  }
  .producto .badge span {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    line-height: 14px;
  }
  
  
  .badge {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
   width: fit-content;
    padding: 5px 10px;
    border-radius: 0.7em;
    white-space: nowrap;
    -webkit-user-select: none;
    user-select: none;
    margin: 0 10px 10px 0;
  }
  
  
  
    @media (min-width: 768px) {
      .products {
        grid-template-columns: 1fr 1fr;
      }

    
  }
    .jeYovW {
    display: flex;
    flex-direction: column;
    margin: auto 0px;
  }
  .jXbWjk {
    background: rgb(234, 227, 227);
    color: rgb(16, 4, 35);
    border-radius: 10px;
    display: flex;
    text-align: center;
    margin: 0px;
    overflow: hidden;
    -webkit-box-align: center;
    align-items: center;
    width: 97px;
    height: 35px;
    line-height: 16px;
    margin: 7px 20px 0 27px;
  }
  .jXbWjk span {
    flex: 3 1 0%;
  }
  .precio-cont {
  
      padding: 7px 0 0
  }
  .igZlUC {
    background: rgb(234, 227, 227);
    color: rgb(16, 4, 35);
    margin: 0px 12px;
    -webkit-box-align: center;
    align-items: center;
    display: flex;
    
  }
  .igZlUC > * {
    vertical-align: middle;
  }
  
  .fQtVcH {
    width: 16px;
    height: 16px;
  }
  .cpYJvL {
    width: 16px;
    height: 16px;
  }
  
  .cXsqly {
    font-family:  'Arial';
    font-size: 16px;
    font-weight: 700;
    margin: 0px 4px;
  }
  
  .badge--outline {
    color: #565247 !important;
    background: #fff;
    border: 1px solid #b3b3b3;
  }
  .producto .badge img {
    display: inline-block;
    height: 22px;
    width: auto;
    margin: 0 5px 1px 0;
    border:none;
    background-color:#fff;
  }
  .fade {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }
  
  .fade.show {
    opacity: 1;
  }
  
  .grow {
    animation: growAnimation 0.3s ease-in-out forwards;
    transform-origin: bottom center; /* Añadir esta línea para que el crecimiento se realice desde el centro */
  }
  
  @keyframes growAnimation {
    0% {
      transform: scaleY(0); /* Cambiar 'scale' a 'scaleY' para solo crecer verticalmente */
      opacity: 0;
    }
    100% {
      transform: scaleY(1); /* Cambiar 'scale' a 'scaleY' para solo crecer verticalmente */
      opacity: 1;
    }
  }
  
  #formulario-pedido {
      
    position: fixed;
      bottom: 0;
      /* transform: translate(16%, 35%); */
      background-color: #fff;
      padding: 15px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
      z-index: 9999;
      border-radius: 14px;
      margin-right: 18px;
      margin-bottom: 20px;
  
  }
  
  .side-in {
    animation-name: sideIn;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
  }
  
  .side-out {
    animation-name: sideOut;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
  }
  
  @keyframes sideIn {
    from {
      transform: translateX(-100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }

  /* Image modal styles */
  .image-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
  }
  .image-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(2px);
  }
  .image-modal-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    padding: 10px;
    border-radius: 25px;
    background: transparent;
    z-index: 20001;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .image-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 25px;
    object-fit: contain;
  }
  .image-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 20002;
  }
  body.image-modal-open {
    overflow: hidden;
  }

  /* WhatsApp floating button (top, pulsing) */
  .whatsapp-btn {
    position: fixed;
    bottom: 28px;
    right: 18px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg,#25D366,#20b358);
    color: #fff;
    box-shadow: 0 6px 18px rgba(37,211,102,0.25), 0 2px 6px rgba(0,0,0,0.15);
    z-index: 16000;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 120ms ease, box-shadow 120ms ease, opacity 180ms ease;
    animation: whatsappPulse 1.8s infinite ease-in-out;
  }
  .whatsapp-btn[aria-hidden="true"], .whatsapp-btn[href="#"] { opacity: 0.65; pointer-events: auto; }
  .whatsapp-btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 10px 26px rgba(37,211,102,0.28); }
  .whatsapp-icon svg { display:block; }

  @keyframes whatsappPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
  }

  /* Ajustes móviles: reducir tamaño y posición */
  @media (max-width: 576px) {
    .whatsapp-btn { width: 55px; height: 55px; bottom: 30px; right: 30px; border: 2px solid #62c777; }
  }


.category-buttons {
  display: flex;      
  flex-wrap: nowrap;                
  gap: 0.2rem;                     
  overflow-x: auto;                 
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0.25rem;         
  white-space: nowrap;      
  justify-content: center;        
}

.category-buttons::-webkit-scrollbar {
  height: 8px;
}
.category-buttons::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
  border-radius: 8px;
}
.category-buttons {
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: rgba(0,0,0,0.15) transparent;
}

/* Ocultar la scrollbar visual manteniendo scroll funcional */
.category-buttons {
  -ms-overflow-style: none; /* IE and Edge */
}
.category-buttons::-webkit-scrollbar {
  height: 0; /* oculta la scrollbar horizontal en webkit */
}
.category-buttons { /* Firefox: usar thin y transparent thumb para esconder visualmente */
  scrollbar-width: none;
  scrollbar-color: transparent transparent;
}

/* Asegura que cada botón mantenga su tamaño y no haga wrap */
.category-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

/* Opcional: ocultar scrollbar visual en desktop (descomentar si quieres)
   Para IE 10+: aplicar -ms-overflow-style: none; a .category-buttons
   Para Chrome/Safari/Opera: usar .category-buttons::-webkit-scrollbar { display: none; }
   (Las reglas están descritas abajo; copia/pega si deseas activarlas)

/* Ejemplo de reglas para ocultar scrollbar (descomenta manualmente si las necesitas):
.category-buttons { -ms-overflow-style: none; }
.category-buttons::-webkit-scrollbar { display: none; }
*/
  
  @keyframes sideOut {
    from {
      transform: translateX(0);
      opacity: 1;
    }
    to {
      transform: translateX(100%);
      opacity: 0;
    }
  }
  .cerrar-formulario {
    position: absolute;
    top: 20px;
    right: 26px;
    font-size: 18px;
    cursor: pointer;
    color: #fff;
  }
  /* Contenedor de productos seleccionados (definido más abajo como #productos-seleccionados) */
  
  
  
  .producto-seleccionado {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
    padding: 5px 10px 10px 10px;
    color:#717171;
  }
  .item {
    background-color: aliceblue;
    display: grid;
    align-items: center;
    grid-template-columns: auto auto;
  }
  
  .producto-seleccionado .nombre {
    flex-grow: 1;
    margin-right: 10px;
  }
  
  .cantidad-producto {
    padding: 0 10px 0 0px;
      text-align: right;
  }
  .producto-seleccionado .borrar {
    cursor: pointer;
    color: red;
    font-weight: bold;
  }
  .btn-eliminar {
    background-color: #ccc;
      border: none;
      color: #fff;
      border-radius: 6px;
      height: 23px;
  }
  .total {
    padding: 5px 10px 5px 10px;
    margin: 0 0 10px 0;
    color: #000;
    background-color: #f4f3f3;
  }

  .form-text {
    font-size: 1.875em !important;
  }

  #formulario-pedido textarea {
    background-color: #fff;
      border: none;
      color: #636363;
      font-size: 16px;
      max-height: 62px;
  }
  
  #pedido-form .form-group{
    padding: 0 12px 0 12px;
  }
  
  .img-responsive {
    display: block;
    max-width: 250px;
    max-height: 100%;
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;


  }
  
@media (max-width: 767px) {
    .img-responsive {
      max-width: 70%;
      max-height: none;
      height: auto;
      width: 100%;
      margin-top: 30px;
    }
    .header {
      margin-top: 0px;
    }
  }
  
  .menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .menu {
    padding:15px;
  
  }
  /* .category-buttons ya tiene reglas específicas más arriba */
  
  .menu li {
    margin: 10px;
    padding: 10px;
    background-color: #f1f1f1;
  
    text-align: center;
    width: calc(50% - 20px); /* Ajusta el ancho según sea necesario */
    box-sizing: border-box;
  }
  #formulario-pedido {
  @media (min-width: 768px) {
    li {
      width: calc(33.33% - 20px); /* Ajusta el ancho según sea necesario */
    }
  }
  }
  
  .success-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00d88d;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .success-content {
    text-align: center;
    color: white;
  }
  
  .success-content p { 
    font-size: 37px;
  }
  .success-content a { 
    font-size: 13px;
    color: #3c5144;
    background-color: #fff;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
  }
  
  #formulario-pedido label {
    display: inline-block;
      margin-bottom: 0.3rem;
      color: #5a5b5b;
  }
  .resumen-pedido {
    margin-top: 10px;
  }
  .check-icon {
    text-align: center;
    color: white;
    font-size: 50px;
    animation: fadeInUp 0.3s ease-in-out;
    animation-delay: 0.3s;
    animation-fill-mode: both;
  }
  
  @keyframes fadeInUp {
    0% {
      opacity: 0;
      transform: translateY(20px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .message {
    text-align: center;
    color: white;
    font-size: 24px;
    margin-top: 10px;
  }
  
  /* .success-container y .success-content ya están declarados con estilos reales arriba */
  .error-mensaje {
    color: #ff6054;
      font-size: 12px;
      margin: 5px;
  }
  
  #recuadro-seleccion {
    position: fixed; /* Fijo en la parte inferior */
    bottom: 0;
    transform: translateX(-50%);
    width: 90%; /* Ancho del recuadro */
    padding: 5px;
    z-index: 1000;
    background-color: #fbfbfb; /* Fondo blanco */
    border-radius: 15px;
    box-shadow: 0 2px 9px rgba(0, 0, 0, 0.2); /* Sombra */
    border: 1px solid #fff2ca; /* Borde claro */
}

#productos-seleccionados {
    max-height: 150px; /* Limita la altura del contenedor */
    overflow-y: auto; /* Habilita el scroll vertical */
    margin-bottom: 10px; /* Espaciado entre productos y el total */
    padding-right: 10px; /* Evita que el scroll tape contenido */
}

#productos-seleccionados::-webkit-scrollbar {
    width: 8px; /* Ancho del scrollbar */
}

#productos-seleccionados::-webkit-scrollbar-thumb {
    background-color: #ddd; /* Color del scrollbar */
    border-radius: 4px; /* Bordes redondeados */
}

#productos-seleccionados::-webkit-scrollbar-thumb:hover {
    background-color: #bbb; /* Color al pasar el mouse */
}
a.btn:hover {
  color:#fff;
  background-color: #1d8c7e;
}
a.btn:focus {
  color:#fff;

}
.footer {
  max-width: 300px;
  margin: auto;
  text-align: center;
  margin-bottom: 50px;
}
.footer span {
  color: #333;
}
.footer span a {
  color: #000 ;
  font-weight: 600;
}
.txt_bienvenida {
  max-width: 300px;
  margin: 15px auto;
  text-align: center;
  font-size: 16px;
  line-height: 10px;
  color: #333;
  line-height: 1.3;
 font-family: "Lato", sans-serif;
  font-weight: 400;
}

.category-button.todo {
    background-color: #24422c;
    color: #fff;
}