/* Free Tacc */

@font-face {
    font-family: 'MontserratLight';
    src: url('../fonts/Montserrat-Light.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
  }
        .container {
            padding-top: 45px;
            padding-bottom: 25px;
            margin-bottom: 10px;
        
        }
        .items-wrapper {
            margin:0 30px 0 30px;
            margin-bottom: 20px;
        }
        .menu-nav::-webkit-scrollbar {
            display: none;
        }
        .menu-nav {
            font-size: 20px;
            font-weight: bold;
            padding: 30px 10px 0 10px;      
            display: flex;
            overflow-x: auto;
            gap: 0px;
            scrollbar-width: none;
            justify-content: center;
            align-items: center;
            bottom: -20px;
            scroll-behavior: smooth; /* <-- Scroll suave */
    -webkit-overflow-scrolling: touch; /* Mejora para iOS */
    white-space: nowrap; /* Evita que los elementos hagan salto de línea */
           
        }
        
        .menu-nav a {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            display: flex;
            align-items: center;
            justify-content: center;
        }
               


        .highlight  {
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
           
            flex: 0 0 auto;
            text-decoration: none;
            padding: 10px 22px 10px 22px;
            border:1px solid #a3c1a7;
            border-radius: 20px;
            margin: 0 2px;
            gap: 8px;
            position: relative;
            overflow: hidden;
        }

        /* Estilos para botones con imagen de fondo */
        .highlight[style*="background-image"],
        .highlight.with-bg-image {
            color: #fff !important;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
            border: 2px solid rgba(255, 255, 255, 0.3) !important;
            position: relative !important;
            overflow: hidden !important;
        }

        .highlight[style*="background-image"]:before,
        .highlight.with-bg-image:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.3);
            z-index: 1;
        }

        .highlight[style*="background-image"] .category-text,
        .highlight.with-bg-image .category-text {
            position: relative;
            z-index: 2;
        }

        /* Estilos para botones highlight-btn con imagen de fondo */
        .highlight-btn[style*="background-image"],
        .highlight-btn.with-bg-image {
            color: #fff !important;
                position: relative !important;
            overflow: hidden !important;
        }

        .highlight-btn[style*="background-image"]:before,
        .highlight-btn.with-bg-image:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 1;
        }

        .highlight-btn[style*="background-image"] .category-text,
        .highlight-btn.with-bg-image .category-text {
            position: relative;
            z-index: 2;
        }

        /* Estilos base para botones con imagen de fondo */
        .highlight.with-bg-image,
        .highlight-btn.with-bg-image {
            transition: none !important;
            color: #fff !important;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7) !important;
            position: relative !important;
            overflow: hidden !important;
            background-size: cover !important;
            background-position: center !important;
            background-repeat: no-repeat !important;
        }

        /* Aplicar estilos cuando se detecta background-image */
        .highlight[style*="background-image"],
        .highlight-btn[style*="background-image"] {
            transition: none !important;
            position: relative !important;
            overflow: hidden !important;
            background-size: cover !important;
            background-position: center !important;
            background-repeat: no-repeat !important;
        }

        /* Overlay inmediato para botones con clase with-bg-image */
        .highlight.with-bg-image:before,
        .highlight-btn.with-bg-image:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 1;
        }

        .highlight.with-bg-image .category-text,
        .highlight-btn.with-bg-image .category-text {
            position: relative;
            z-index: 2;
        }

        /* Prevenir parpadeo - aplicar estilos inmediatamente cuando se detecta background-image */
        .highlight[style*="background-image"]:before,
        .highlight-btn[style*="background-image"]:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 1;
        }

        .highlight[style*="background-image"] .category-text,
        .highlight-btn[style*="background-image"] .category-text {
            position: relative;
            z-index: 2;
        }
        .active2 {
            background-color: #faf8f2;
        }
        
        /* Centrado específico para enlaces con clase highlight */
        a.highlight {
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
        }
        
        

        .highlight-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            color: #8c7300;
            font-size: 16px;
            background: white;
            position: relative;
            letter-spacing: 2px;
            gap: 0.5rem;
            transition: background-color 0.2s;
        }

        .highlight-btn.titles {
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto;
            background-color: white;
            text-align: center;
            letter-spacing: 0px;
            cursor: pointer;
            transition: all 0.2s ease-in-out;
        }
        
        .highlight-btn.titles h1 {
            margin: 0;
        }

        .highlight-btn.titles:hover {
            transform: scale(1.03);
            box-shadow: 0 3px 8px rgba(0,0,0,0.08);
        }
        
        
        .product-rating-no-image {
            margin-bottom: 10px;
        }


        .highlight-btn .accordion-icon {
            transition: transform 0.3s ease;
        }
        
        .highlight-btn.active .accordion-icon {
            transform: rotate(90deg);
        }
        

        .ui-state-active .titles {
            color: #6e9f75;
            background: #d9f2dd;
            position: relative;
        }
        

        .bg-line {
            display: flex;
            justify-content: center;
            margin: 0 auto;
            width: 100%;
            background-size: auto 100%;
            background-position: left center;
            background-repeat: repeat-x;
        }
  
        .menu-item:last-of-type {
            border-bottom: unset !important;
 
        }
        div.menu-item:last-of-type {
            border-bottom: unset !important;
        
        }
        div.menu-item:last-child {
            border-bottom: unset !important;
        }
        ul {
            margin: 0px;
            padding: 0px;
        }
        ul li {
            list-style: none;
            border-bottom: 1px dotted #333;
        }
        ul li:last-child {
            list-style: none;
            border-bottom: 1px dotted #333;
        }
        ul li:last-of-type {
            border-bottom: unset !important;
        
        }
        .gap {
            padding-top: 20px;
        }
        .accordion-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease-out;
        }
        
        /* Centrar contenido del accordion */
        #accordion {
            max-width: 1200px;
            margin: 0 auto;
        }



        

        .menu-title {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
        }

        .menu-title .product-name {
            font-size: 17px;
            
            flex: 1;
        }

        .precio {
            font-weight: bold;
            white-space: nowrap;
            font-size: 17px;
            margin-top: 10px;
            font-weight: 600;
        }
        .menu-item.no-image .precio{
            margin-bottom: 10px;
        }
   
        .menu-item .menu-description {
            font-size: 14px;
            font-family: 'MontserratLight';
           
            font-weight: 100;
            padding-top: 3px;

        }
 
        .menu-item .menu-title {
            display: flex;
            justify-content: space-between;
            line-height: 19px;

            
        }

        
        .menu-item {
            max-width: 367px;
            margin: 20px 0px 20px 0px;
            text-align: left;
            padding: 20px 16px 5px 16px;
            display: flex;

            justify-content: space-between;
            gap: 1rem;
        }
        
        /* Cuando no hay imagen, centrar el contenido */
        .menu-item.no-image {
            justify-content: center;
            text-align: center;
        }
        
        .menu-item.no-image .menu-title {
            justify-content: center;
        }
        
        .menu-item img {
            width: 6rem;
            height: 6rem;
            border-radius: 9999px;
            object-fit: cover;
            border: 4px solid white;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }





        @media (max-width: 768px) {
            .menu-nav {
            justify-content: left;
            }
            
          } 
          .gap {
            height: var(--gap, 1rem); 
        }

        .pago-img {
            width: 150px;
            max-width: 90%;
            margin: 10px auto;
            display: block;
        }

        .pago-texto {
            font-size: 14px;
            margin-top: 10px;
            margin-bottom: 10px;
            font-weight: 500;
            color: #000;
            font-family: "Montserrat", sans-serif;
        }

        .redes-sociales {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 10px;
        }

        .redes-sociales img {
            width: 28px;
            height: 28px;
            transition: opacity 0.3s ease;
        }

        .redes-sociales a:hover img {
            opacity: 0.6;
        }

        /* Estilos para iconos SVG de redes sociales */
        .redes-sociales .icono-social {
            display: inline-block;
            width: 28px;
            height: 28px;
            transition: transform 0.3s ease, opacity 0.3s ease;
        }

        .redes-sociales .icono-social svg {
            width: 100%;
            height: 100%;
            display: block;
        }

        .redes-sociales .icono-social:hover {
            transform: scale(1.1);
            opacity: 0.8;
        }


        .solo-desktop-alert {
            display: none;
            text-align: center;
            font-size: 14px;
            padding: 2rem;
            color: #555;
        }
        .solo-desktop-alert p {
        
            text-align: center;
            font-size: 14px;
            padding: 2rem;
            color: #555;
        }
        
        @media (min-width: 992px) {
            .solo-desktop-alert {
                display: block;
            }
            .header img {
                width: 220px;
                transition: all 0.3s ease;
            }
        }
        
        #ver-todo-btn {
            background-color: #000;
            color: #fff;
            border: none;
            padding: 0.6rem 1.2rem;
            font-size: 12px;
            cursor: pointer;
            border-radius: 4px;
            transition: background-color 0.3s ease;
        }
        
        #ver-todo-btn:hover {
            background-color: #333;
        }
   

        .mensaje-promo {
            display: none;
            padding-top: 20px;
            padding-left: 20px;
            padding-right: 20px;
            padding-bottom: 10px;
            color: #000;
            border-radius: 0.5rem;
         
            font-weight: 600;
            text-align: center;
            font-size: 12px;
            line-height: 17px;
        }

        .txt-description1 {
            text-align: center;
            margin: 10px 0px 18px 0px
        }

        
        .txt-description1::after {
            content: '...';
            display: block;
            line-height: 1;
            margin-bottom: 2px; 
        }
        .txt-description2 {
            text-align: center;

        }

        
/* Animación de opacidad para el elemento de carga */
.trebol {
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
    0% {
        opacity: 0.2;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.2;
    }
}

/* Animación de fade-in para el contenido */
#categoria-dinamica {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

#categoria-dinamica.fade-in {
    opacity: 1;
}

/* Mensaje cuando no hay productos */
.no-products-message {
    text-align: center;
    padding: 40px 20px;
}

.no-products-message p {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin: 0;
    padding: 40px;
}

.calificacion-mensaje p {
    font-weight: 400;
}

/* ===== PLANTILLAS DE PRODUCTOS - ESTRUCTURA CSS ===== */

/* Plantilla 1 - Clásica (estructura actual) */
.plantilla-productos1 .menu-item {
    /* Estructura horizontal: contenido + imagen */
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
}

.plantilla-productos1 .menu-item .flex-1 {
    order: 1;
    flex: 1;
}

.plantilla-productos1 .menu-item .flex-shrink-0 {
    order: 2;
    margin-left: 16px;
}

/* Plantilla 2 - Moderna (nueva estructura) */
.plantilla-productos2 .menu-item {
    /* Estructura fija: título-precio en línea, descripción, precio, calificación, botón */
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
}

.plantilla-productos2 .menu-item .flex.justify-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 8px;
}

.plantilla-productos2 .menu-item .menu-title {
    flex: 1;
    margin: 0;
}

.plantilla-productos2 .menu-item .text-lg.font-bold {
    margin: 0;
    margin-left: 10px;
    font-weight: bold;
}

.plantilla-productos2 .menu-item .menu-description {
    margin-bottom: 8px;
    width: 100%;
}

.plantilla-productos2 .menu-item .precio {
    margin-bottom: 8px;
    width: 100%;
}

.plantilla-productos2 .menu-item .product-rating {
    margin-bottom: 8px;
    width: 100%;
}

.plantilla-productos2 .menu-item .btn-calificar {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.plantilla-productos2 .menu-item .btn-calificar:hover {
    background-color: #0056b3;
}

