* {  
    margin: 0; 
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Arial', sans-serif;
    background-color: #f2f2f2;
    color: #333;
    padding-top: 60px;
    overflow-x: hidden;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2F4F4F;
    padding: 21px 20px;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.navbar h1 {
    font-size: 1.2rem;
    margin-left: 5px;
}

.navbar .cart {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.navbar .cart img {
    width: 22px;
    height: 28px;
    margin-right: 10px;
}
/* Añadir esto después de los estilos .order-text */
.cart {
position: relative; /* Asegurar posición para el badge */
}

.cart-badge {
position: absolute;
top: -8px;
right: -8px;
background-color: #ff4444;
color: white;
border-radius: 50%;
padding: 3px 8px;
font-size: 0.7rem;
font-weight: bold;
display: none; /* Oculto inicialmente */
box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.order-text {
background-color: #ffcc00; /* Fondo verde */
color: black; /* Texto blanco */
padding: 6px 10px; /* Espaciado interno alrededor del texto */
border-radius: 5px; /* Bordes redondeados */
user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
font-weight: bold; /* Texto en negrita */
font-size: 0.9rem; /* Tamaño de fuente */
position: relative; /* Añadir esto */
transition: all 0.3s ease;
}
.order-text.glow {
animation: cartGlow 1.5s infinite alternate;
}

@keyframes cartGlow {
from {
box-shadow: 0 0 5px #ffcc00;
}
to {
box-shadow: 0 0 15px #ffcc00;
}
}
/* Efecto al pasar el mouse */
.order-text:hover {
background-color: yellow; /* Cambia a un tono amarillo dorado */
color: black; /* Cambia el texto a blanco */
}

.logo-background {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  transition: background-image 1s ease-in-out;
  position: relative;
  overflow: hidden;
}

.logo-background .background-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra todo el espacio */
    z-index: -1; /* Coloca la imagen detrás del contenido */
}

/* Estilo para el botón de Horarios de Atención */
.attention-button {
    position: absolute;
    top: 90px;
    right: 20px;
    background-color: goldenrod;
    color: black;
    font-weight: bold;
    padding: 6px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
}
.attention-button:hover {
   background-color: #2F4F4F;
   color: white;
}
.attention-button .blinking-dot {
    background-color: red;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-left: 5px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Marco de información de horarios centrado */
.hours-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  border-radius: 8px;
  padding: 10px 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  width: 320px;
  text-align: center;
  display: none; /* se activa con JS */
  flex-direction: column;
  gap: 12px;
  margin-top: -110px;
}

.hours-modal h2 {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: bold;
}

.hours-modal p {
  margin: 5px 0;
  font-size: 16px;
}

.hours-modal .close-btn {
  margin-top: 15px;
  padding: 8px 16px;
  background-color: #ff4d4d;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.hours-modal .close-btn:hover {
    background-color: yellowgreen;
}

.logo-background {
    position: relative;
}

.hours-modal.show {
    display: block;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
/* Botón de Ver Tutorial */
.tutorial-button {
position: absolute;
top: 125px; /* Debajo del botón de horarios */
right: 20px;
background-color:#2F4F4F;
color: white;
padding: 6px 11.8px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 0.8rem;
display: flex;
align-items: center;
}

.tutorial-button .video-icon {
width: 10px;
height: 10px;
margin-left: 5px;
}

.tutorial-button:hover {
background-color: yellowgreen;
color: black;
}

/* Modal del Tutorial */
.tutorial-modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Fondo semi-transparente */
    justify-content: center;
    align-items: center;
    z-index: 10000; /* Asegura que el modal esté por encima de otros elementos */
}

.tutorial-modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 95%;
    width: 500px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.tutorial-modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.tutorial-modal-content iframe {
    width: 100%;
    height: 280px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: none;
}
.section-title {
    text-align: center;
    margin-bottom: 3px;
    padding: 12px;
    background-color: #2F4F4F;
    color: white;
    border: 1px solid #ddd;
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.section-title h2 {
    font-size: 1.5rem;
    font-weight: bold;
}
.catalog {
    padding: 0;
}
/* Estilo para el botón de cerrar en el modal del tutorial */
.tutorial-modal-content .close-btn {
    background-color:yellowgreen; /* Gris oscuro */
    color: white; /* Texto en blanco para buen contraste */
    border: 1px solid yellowgreen; /* Borde gris oscuro */
    padding: 12px 40px; /* Botón más ancho con mayor padding */
    border-radius: 5px; /* Borde redondeado */
    cursor: pointer;
    font-size: 1rem; /* Tamaño de la fuente */
    font-weight: bold; /* Negrita */
    text-transform: uppercase; /* Texto en mayúsculas */
    transition: background-color 0.3s ease, transform 0.3s ease; /* Transición suave para hover */
}

.tutorial-modal-content .close-btn:hover {
    background-color: #2F4F4F; /* Verde oscuro cuando se pasa el ratón */
    transform: scale(1.05); /* Aumento de tamaño en hover para hacerlo más interactivo */
}

.tutorial-modal-content .close-btn:focus {
    outline: none; /* Elimina el contorno de foco por defecto */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Añadir resplandor cuando esté enfocado */
}

.product {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 1px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
    width: 100%;
    max-width: 100%;
    
   
}
.recommended-badge {
position: absolute;
top: 10px;
right: 10px;
background: linear-gradient(145deg, #ffcc00, #ffd633);
color: #c00;
padding: 5px 12px;
border-radius: 4px;
font-size: 0.75rem;
font-weight: bold;
text-transform: none;
box-shadow: 0 3px 6px rgba(0,0,0,0.16);
z-index: 2;
border: 1px solid rgba(255,255,255,0.2);
letter-spacing: 0.5px;
text-shadow: 0 1px 1px rgba(255,255,255,0.3);
}
/* Ocultar en el modal */
.order-summary-modal .recommended-badge {
display: none !important;
}
/* Ocultar catálogo cuando el modal está abierto */
body.no-scroll .catalog {
visibility: hidden;
}

/* El contenedor padre necesita posición relativa */
.product {
position: relative;
}

/* Versión móvil */
@media (max-width: 480px) {
.recommended-badge {
font-size: 0.65rem;
padding: 4.2px 4px;
top: 8px;
right: 15px;
}
}      /* Ocultar en el modal */
.order-summary-modal .recommended-badge {
display: none !important;
}
     .delivery-time {
position: absolute;
bottom: 10px;
right: 10px;
font-size: 0.7rem;
color: #666;
font-style: italic;
opacity: 0.9;
letter-spacing: 0.3px;
}

/* Versión móvil */
@media (max-width: 480px) {
.delivery-time {
font-size: 0.65rem;
bottom: 8px;
right: 8px;
}
}
.product img {
    width: 100px;
    height: 100px;
    margin-right: 20px;
    border-radius: 8px;
    
}

.product-content {
    flex: 0.9;
    text-align: left;
    
}

.product h2 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.product p {
    margin-bottom: 10px;
    font-size: 0.8rem;
}

.product .price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #28a745;
}
   .product:last-child {
margin-bottom: 70px;
}
.add-btn {
background-color: #25D366 !important; /* Verde WhatsApp */
color: white !important;
border: none;
padding: 12px 25px;
border-radius: 8px;
cursor: pointer;
font-weight: bold;
transition: all 0.3s ease;
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.quantity-controls .quantity-wrapper {
display: none; /* Oculto por defecto */
align-items: center;
gap: 10px;
}

.quantity-controls .quantity-wrapper.active {
display: flex !important; /* Mostrar cuando está activo */
}

.quantity-controls .minus-btn,
.quantity-controls .plus-btn,
.quantity-controls .quantity {
display: inline-block !important; /* Forzar visibilidad */
margin: 0 5px;
margin-right: -5px !important;
}

.quantity-controls .add-btn {
display: block; /* Mostrar inicialmente */
}

.quantity-controls .add-btn.hidden {
display: none !important; /* Ocultar cuando hay cantidad */
}
.quantity-controls button {
    background-color: #2F4F4F;
    color: white;
    border: none;
    padding: 7px 12px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}
.fixed-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    border-top: 1px solid #ddd;
    padding: 10px 10px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    z-index: 1000;
    
}

.fixed-modal button {
    width: 100%;
    background-color: #2F4F4F;
    color: white;
    padding: 12px;
    font-size: 1.1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.fixed-modal button:hover {
    background-color: #20b959;
}





