/* ================== CAROUSEL STYLES ================== */
.carousel-container-reducido {
    max-width: 1700px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}
.owl-carousel-item img,
.owl-carousel .img-fluida {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    object-position: center center;
    display: block;
    margin-left: auto;
    margin-right: auto;
    background: #111;
}
.carousel-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background: rgba(0, 0, 0, 0.08);
}
.carousel-inner .container {
    max-width: 900px;
    margin: auto;
    text-align: center;
}
.carousel-inner h1,
.carousel-inner .display-3 {
    color: #fff;
    font-size: 3.5rem;
    font-weight: bold;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px #00000066;
}
.carousel-inner p,
.carousel-inner .fs-5 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 6px #00000066;
}
.carousel-inner .btn {
    font-size: 1.3rem;
    min-width: 180px;
    margin: 0 10px 0 10px;
    padding: 0.8rem 0.8rem;
    font-weight: 500;
}

/* Responsive carousel */
@media (max-width: 767.98px) {
    .owl-carousel-item img,
    .owl-carousel .img-fluida {
        height: auto;
        min-height: 160px;
        max-height: 290px;
    }
    .carousel-inner .container {
        max-width: 97vw;
        padding: 0.5rem 0.2rem;
    }
    .carousel-inner h1,
    .carousel-inner .display-3 {
        font-size: 1.15rem !important;
        line-height: 1.15 !important;
        margin-bottom: 0.4rem;
        word-break: break-word;
    }
    .carousel-inner p,
    .carousel-inner .fs-5 {
        font-size: 0.93rem !important;
        margin-bottom: 0.4rem;
        padding-bottom: 0 !important;
        word-break: break-word;
    }
    .carousel-inner .btn {
        font-size: 0.91rem !important;
        padding: 0.34rem 0.4rem !important;
        margin-bottom: 0.3rem;
        margin-top: 0.1rem;
        width: 92%;
        min-width: unset;
        max-width: 170px;
        display: inline-block;
    }
}

/* ================== PRODUCTOS STYLES ================== */
.productos-seccion {
    width: 100%;
    min-height: 100vh;
    padding: 12px 0 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f3f7fb;
}
.productos-caja {
    width: 95%;
    max-width: 1365px;
    margin: 0 auto 16px auto !important;
    background: #ffffff;
    border-radius: 5px;
    box-shadow: 0 2px 24px rgba(244, 107, 66, 0.1);
    padding: 20px 22px 18px 22px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 0;
}

/* ================== FILTROS EN UNA SOLA FILA ================== */
.filtros-servicios {
    width: 100%;
    margin-bottom: 18px;
    display: flex;
    justify-content: center;
}
.filtros-row-servicios {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    max-width: 1300px;
    justify-content: center;
    gap: 0;
    padding: 0;
    box-sizing: border-box;
    /* Variables para ancho relativo de cada filtro */
    --busqueda-width: 38%;
    --categoria-width: 18%;
    --marca-width: 18%;
    --precio-width: 26%;
}
.filtro-col-servicio {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    padding: 0 4px;
    box-sizing: border-box;
}
.filtro-busqueda-global  { flex: 0 0 var(--busqueda-width); min-width: 140px; max-width: 99vw; position: relative; }
.filtro-categoria        { flex: 0 0 var(--categoria-width); min-width: 110px; }
.filtro-marca            { flex: 0 0 var(--marca-width); min-width: 110px; }
.filtro-precio           { flex: 0 0 var(--precio-width); min-width: 150px; }

.busqueda-superior-container {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0;
    position: relative;
    margin-bottom: 0;
    padding: 0;
    box-sizing: border-box;
}
#busquedaGlobalInput {
    width: 100%;
    max-width: unset;
    border-radius: 7px 0 0 7px;
    border: 1.5px solid #d1d1d1;
    font-size: 1rem;
    padding: 8px 12px;
    transition: border-color 0.18s;
    outline: none;
}
#busquedaGlobalBtn {
    border-radius: 0 7px 7px 0;
    margin-left: -1px;
    background: #8fc73e;
    color: #232323;
    font-weight: 700;
    width: 39px;
    min-width: 39px;
    padding: 8px 2px 8px 2px;
    border: 1.5px solid #8fc73e;
    outline: none;
    transition: background 0.17s, color 0.17s;
}
#busquedaGlobalBtn:hover,
#busquedaGlobalBtn:focus {
    background: #6fa229;
    color: #fff;
}

/* Sugerencias justo debajo del input de búsqueda */
.autocomplete-suggestions {
    position: absolute;
    top: 44px;
    left: 0;
    width: 100%;
    z-index: 101;
    background: white;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 12px 30px 0 rgba(0,0,0,.14);
    border: 1px solid #eee;
    max-height: 330px;
    overflow-y: auto;
    padding: 0;
    display: none;
}
.autocomplete-suggestion {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 16px;
    border-bottom: 1px solid #f2f2f2;
    line-height: 1.3;
}
.autocomplete-suggestion.selected,
.autocomplete-suggestion:hover {
    background: #f5f8fa;
}
.autocomplete-suggestion .icon {
    margin-right: 13px;
    color: #4c8bf5;
    font-size: 18px;
    min-width: 20px;
}
.autocomplete-suggestion .suggestion-info {
    display: flex;
    flex-direction: column;
}
.autocomplete-suggestion .suggestion-title { font-weight: 500; }
.autocomplete-suggestion .suggestion-extra { font-size: 13px; color: #888; }

/* Ajusta select para que se vea similar al ejemplo */
.filtro-col-servicio select {
    background: #ebebeb;
    border: none;
    border-radius: 7px;
    font-size: 1rem;
    font-weight: 500;
    color: #8a8a8a;
    padding: 7px 12px;
    outline: none;
    transition: border-color 0.15s;
    box-shadow: none;
}
.filtro-col-servicio select:focus {
    border: 1.5px solid #8fc73e;
    background: #fff;
    color: #232323;
}

/* Filtro precio ajustado para la fila */
.price-filter-container-servicio {
    display: flex;
    flex-direction: row;   /* <-- asegúrate de que sea row */
    align-items: center;
    gap: 10px;
    width: 100%;
    padding-left: 10px;
    padding-bottom: 0px;
    margin-bottom: 0px;
    height: 39px;
    background-color: #ebebeb;
    border: #c0c0c0 1px solid;
    border-radius: 5px;
}

                .price-filter-side.no-label {
                    display: flex;
                    flex-direction: row;
                    align-items: center;
                    position: relative;
                    min-width: 110px;
                }

                .price-filter-side.no-label .simbolo {
                    position: absolute;
                    left: 8px;
                    top: 50%;
                    transform: translateY(-50%);
                    color: #19295b;
                    font-weight: 700;
                    font-size: 1.12rem;
                    pointer-events: none;
                    z-index: 2;
                    line-height: 1;
                }

                .price-filter-side.no-label input[type="number"] {
                    border: 2.5px solid #19295b;
                    border-radius: 7px;
                    font-size: 1.3rem;
                    color: #19295b;
                    background: #fff;
                    width: 100%;
                    height: 30px;
                    padding: 6px 0px 6px 27px;
                    font-weight: 700;
                    outline: none;
                    text-align: left;
                    box-sizing: border-box;
                    transition: border-color 0.18s;
                    margin-left: 0;
                    margin-right: 0;
                    display: inline-block;
                    
                    
                }

                .price-filter-side.no-label input[type="number"]:focus {
                    border-color: #2651b5;
                }

                .price-filter-center {
                    flex: 1 1 0%;
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    min-width: 120px;
                    max-width: 260px;
                    margin: 12px 12px;
                }

                .range-bar-group-servicio {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    justify-content: center;
                    width: 100%;
                    min-width: 120px;
                    max-width: 280px;
                    gap: 10px;
                    margin-bottom: 12px;
                    margin-top: 12px;
                }

                .range-bar-group-servicio input[type="range"] {
                    width: 90%;
                    margin-left: auto;
                    margin-right: auto;
                    display: block;
                    
                }

                .form-range-custom {
                    appearance: none;
                    width: 100%;
                    height: 20px;
                    border-radius: 8px;
                    outline: none;
                    margin-bottom: 0;
                    position: relative;
                    z-index: 1;
                }

                .form-range-custom::-webkit-slider-thumb {
                    position: relative;
                    left: 2px;
                    top: 1px;
                    width: 20px;
                    height: 20px;
                    border-radius: 50%;
                    box-shadow: 0 2px 4px rgb(255, 255, 255);
                    cursor: pointer;
                    z-index: 2;
                    transition: background .15s;
                }


                .form-range-custom::-webkit-slider-runnable-track {
                    height: 20px;
                    width: 1px;
                    border-radius: 8px;
                    background: rgba(82, 166, 245, 0.63);
                }


                .form-range-custom::-moz-range-thumb {
                    position: relative;
                    width: 200px;
                    height: 20px;
                    border-radius: 50%;
                    cursor: pointer;
                }

/* ================== GRID OPTIMIZADO PARA PRODUCTOS ================== */
.productos-lista-servicio {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 18px !important;
    width: 100%;
    margin: 0 auto 8px auto !important;
    align-items: stretch;
    justify-items: stretch;
    min-height: 340px !important;
}
@media (max-width: 899px) and (min-width: 768px) {
    .productos-lista-servicio {
        grid-template-columns: repeat(4, 1fr) !important;
        grid-template-rows: repeat(2, 1fr) !important;
    }
}
@media (max-width: 767px) and (min-width: 426px) {
    .productos-lista-servicio {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: repeat(4, 1fr) !important;
    }
}
@media (max-width: 425px) {
    .productos-lista-servicio {
        grid-template-columns: 1fr !important;
        grid-template-rows: repeat(4, 1fr) !important;
    }
}

/* ============== FIN GRID OPTIMIZADO ================== */

.producto-item-servicio {
    background: #fff;
    border: 1.5px solid #dde4e8;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(66, 133, 244, 0.10);
    padding: 10px 0 10px 0 !important;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 220px !important;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: box-shadow .18s, border-color .18s;
}
.producto-item-servicio .div_img {
    width: 90% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 170px !important;
    margin: 2px 2px 2px 2px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: hidden;
    position: relative;
}
.product-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: fill !important;
    display: block;
    margin: 0 auto !important;
    background: #fff !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    border: none !important;
}
.producto-item-servicio:hover {
    border-color: #1e88e5;
    box-shadow: 0 6px 30px rgba(66, 133, 244, 0.19);
}
.producto-item-servicio:hover .product-img {
    transform: none !important;
}
.producto-item-servicio .div_nom h5 {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 2px auto 2px auto;
    color: #000000;
    letter-spacing: 0.01em;
    width: 90%;
    line-height: 1.16;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    min-height: 2.32em
}
.producto-item-servicio .div_desc {
    font-size: 1.01rem;
    color: #878787;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    white-space: normal;
    min-height: 4.04em;
    width: 90%;
}
.producto-item-servicio .div_precio {
    color: #1e88e5;
    font-weight: 900;
    font-size: 1.18rem;
    margin-bottom: 1px;
    min-height: 20px;
    letter-spacing: 0.01em;
    width: 90%;
    border: #1e88e5 1px solid;
}
.producto-item-servicio .div_stock {
    font-size: 1.05rem;
    color: #16a34a;
    margin-bottom: 2px;
    font-weight: 600;
    width: 90%;
    border: #16a34a 1px solid;
}
.producto-item-servicio .div_codigo {
    font-size: 1.01rem;
    color: #555;
    width: 90%;
    margin-bottom: 5px;
}

/* =========== PAGINADOR ============= */
.pagination-servicio {
    text-align: center;
    margin: 8px 0 8px 0 !important;
    display: flex;
    justify-content: center;
    gap: 10px;
    background: #fff;
    padding: 10px 0 10px 0;
    border-radius: 9px;
}
.pagination-servicio button {
    background: #fff;
    border: 2px solid #c9e1f7;
    margin: 0 1.5px;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 1.14rem;
    cursor: pointer;
    font-weight: 700;
    color: #1e88e5;
    transition: background .15s, color .15s, border-color .15s;
    box-shadow: 0 2px 4px rgba(66, 133, 244, 0.05);
    outline: none;
}
.pagination-servicio button.active,
.pagination-servicio button:focus {
    background: #1e88e5;
    color: #fff;
    border-color: #1e88e5;
}
.pagination-servicio button:disabled {
    background: #e3eaf5;
    color: #b1b1b1;
    border-color: #e3eaf5;
    cursor: not-allowed;
}

/* ========== RESPONSIVE AJUSTES ========== */
@media (max-width: 1200px) {
    .productos-caja {
        max-width: 99vw;
    }
}
@media (max-width: 900px) {
    .filtros-row-servicios {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        max-width: 100vw;
    }
    .filtro-col-servicio,
    .filtro-busqueda-global,
    .filtro-categoria,
    .filtro-marca,
    .filtro-precio {
        flex: unset;
        width: 100%;
        min-width: unset;
        max-width: 100vw;
    }
    .busqueda-superior-container {
        width: 95vw !important;
        max-width: 95vw !important;
    }
    .autocomplete-suggestions {
        width: 100vw !important;
        min-width: unset;
        left: 0 !important;
    }
    .price-filter-center {
        max-width: 99vw;
    }
    .price-filter-side.no-label {
        width: 100%;
        min-width: unset;
    }
    .price-filter-side.no-label input[type="number"] {
        width: 100%;
    }
}
@media (max-width: 767px) and (min-width: 426px) {
    .productos-caja {
        padding: 10px 2px;
    }
}
@media (max-width: 425px) {
    .productos-caja {
        padding: 10px 2px;
    }
    .producto-item-servicio .div_desc {
        display: none !important;
    }
    .producto-item-servicio .div_img {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 170px !important;
        margin: 2px 2px 2px 2px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        overflow: hidden;
    }
    .producto-item-servicio {
        margin: 2px !important;
        min-height: 160px !important;
    }
    .filtros-servicios {
        margin-bottom: 13px;
    }
    .pagination-servicio {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        padding-bottom: 8px;
        border-radius: 9px;
        gap: 0;
        padding-left: 4px;
        padding-right: 4px;
        margin-bottom: 0;
    }
    .pagination-servicio button {
        min-width: 38px;
        font-size: 1rem;
        margin: 0 2px;
        padding: 7px 0;
        white-space: nowrap;
    }
    .price-filter-container-servicio {
        gap: 5px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        background: #ebebeb;
        border-radius: 4px;
    }
    .price-filter-side.no-label input[type="number"] {
        width: 100% !important;
        min-width: 60px;
        padding-left: 30px;
    }
}

/* ========== FIN RESPONSIVE ========== */

/* ============== MARCA LOGO ============= */
.marca-logo {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 75px;
    height: 25px;
    object-fit: contain;
    background: #fff;
    border-radius: 1px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10);
    z-index: 2;
    border: 1px solid #e3e3e3;
    padding: 2px;
}
@media (max-width: 600px) {
    .marca-logo {
        width: 60px;
        height: 24px;
        top: 2px;
        left: 2px;
        border-radius: 1px;
        padding: 1px;
    }
}
@media (max-width: 400px) {
    .marca-logo {
        width: 60px;
        height: 16px;
        top: 2px;
        left: 2px;
        border-radius: 1px;
        padding: 0;
    }
}

/* ================== SERVICIOS STYLES ================== */
.service-item img {
    width: 200px;
    height: 150px;
    object-fit: fill;
    border-radius: 8px;
    border: 1px solid #ddd;
    display: block;
    background-color: #f9f9f9;
}
.service-detalle {
    min-height: 20px;
    max-height: 100px;
}

/* ================== FIN DE OPTIMIZACIÓN ================== */

/* Footer estilo basado en img1 proporcionada */
.footer {
    background: #181818 !important;
    color: #bdbdbd;
    font-family: 'Segoe UI', Arial, sans-serif;
    border-top: 2px solid #fff;
    margin-top: 0;
    letter-spacing: 0.01em;
}
.footer h5,
.footer h5.text-light {
    color: #fff !important;
    font-size: 1.07rem;
    font-weight: bold;
    margin-bottom: 18px !important;
    letter-spacing: 0.03em;
}
.footer p,
.footer .btn-link {
    color: #bdbdbd !important;
    font-size: 1rem;
    text-decoration: none;
}
.footer .btn-link {
    display: block;
    text-align: left;
    padding: 0;
    margin-bottom: 9px;
    border: none;
    background: none;
    transition: color 0.2s;
}
.footer .btn-link:hover,
.footer .btn-link:focus {
    color: #8fc73e !important;
    text-decoration: none;
}
.footer .fa,
.footer .fab {
    color: #bdbdbd;
    margin-right: 7px;
    font-size: 1.07rem;
}
.footer .d-flex.pt-2 a {
    display: inline-block;
    margin-right: 10px;
    color: #bdbdbd;
    border: 1.5px solid #bdbdbd;
    border-radius: 50%;
    width: 33px;
    height: 33px;
    text-align: center;
    line-height: 31px;
    font-size: 1.15rem;
    transition: border-color 0.17s, color 0.17s;
    background: transparent;
}
.footer .d-flex.pt-2 a:last-child {
    margin-right: 0;
}
.footer .d-flex.pt-2 a:hover {
    border-color: #8fc73e;
    color: #8fc73e;
    background: transparent;
}
.footer .position-relative input[type="text"],
.footer .position-relative input[type="email"] {
    background: transparent;
    border: 1.4px solid #bdbdbd !important;
    color: #fff !important;
    border-radius: 4px 0 0 4px;
    outline: none;
    transition: border 0.17s;
    font-size: 1rem;
}
.footer .position-relative input:focus {
    border: 1.4px solid #8fc73e !important;
    color: #fff !important;
}
.footer .position-relative button,
.footer .position-relative .btn-primary {
    padding: 8.5px 20px;
    border: none;
    border-radius: 0 4px 4px 0;
    background: #8fc73e !important;
    color: #232323 !important;
    font-weight: bold;
    transition: background 0.18s, color 0.18s;
    box-shadow: none !important;
}
.footer .position-relative button:hover,
.footer .position-relative .btn-primary:hover {
    background: #6fa229 !important;
    color: #fff !important;
}
.footer .position-relative {
    margin-top: 8px;
}
.footer .container.py-5 {
    padding-top: 2.2rem !important;
    padding-bottom: 1.6rem !important;
}
.footer .row.g-5>div {
    min-width: 220px;
}
@media (max-width: 991px) {
    .footer .row.g-5 {
        flex-direction: column;
        gap: 32px;
    }
    .footer .row.g-5>div {
        width: 100%;
        min-width: 0;
        margin-bottom: 12px;
    }
}
@media (max-width: 600px) {
    .footer .container.py-5 {
        padding: 22px 8px !important;
    }
    .footer .row.g-5>div {
        margin-bottom: 22px;
    }
}
/* Centra los iconos sociales dentro del footer */
.btn-square {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 0 6px;
}
/* Efecto hover: cambia el color del borde y del icono */
.btn-square.btn-outline-secondary:hover,
.btn-square.btn-outline-secondary:focus {
    border-color: #007bff;
    color: #007bff;
    background: #e7f1ff;
}

/* Sugerencias estilo Chrome responsive */
@media (max-width: 600px) {
    .autocomplete-suggestions {
        width: 98vw;
        left: -10vw;
        min-width: 220px;
        max-width: 100vw;
        border-radius: 0 0 14px 14px;
        font-size: 0.92rem;
    }
    .busqueda-superior-container {
        width: 96vw !important;
        max-width: 100vw;
        margin: 0 auto;
        padding: 0 0.5vw;
        box-sizing: border-box;
    }
    .autocomplete-suggestions {
        width: 100% !important;
        min-width: unset;
        left: 0 !important;
    }
}

/* Parche para evitar desbordamientos en móvil */
@media (max-width: 600px) {
    .productos-caja {
        width: 100vw !important;
        max-width: 100vw !important;
        padding: 8px 0 8px 0 !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;
        margin: 0 auto 10px auto !important;
    }
    .busqueda-superior-container {
        width: 95vw !important;
        max-width: 100vw !important;
        padding: 0 2vw !important;
        margin: 0 auto 10px auto !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-wrap: nowrap !important;
    }
    .busqueda-superior-container input,
    .busqueda-superior-container button {
        min-width: 0;
        width: auto;
        flex: 1 1 0%;
        box-sizing: border-box;
    }
    .busqueda-superior-container button {
        flex: 0 0 auto;
        width: 40px;
        min-width: 36px;
        margin-right: 0;
        padding: 0;
    }
    .autocomplete-suggestions {
        width: 96vw !important;
        left: 2vw !important;
        min-width: 0 !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    .filtros-row-servicios {
        gap: 8px !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        align-items: stretch !important;
    }
    .filtro-col-servicio,
    .price-filter-container-servicio {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }
    .price-filter-container-servicio {
        gap: 5px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        background: #ebebeb;
        border-radius: 4px;
    }
    .price-filter-side.no-label input[type="number"] {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        padding-left: 30px !important;
        font-size: 1rem !important;
    }
    .pagination-servicio {
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }
}

/* Corrige posibles desbordes en el grid */
@media (max-width: 600px) {
    .productos-lista-servicio {
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }
    .producto-item-servicio {
        width: 98vw !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}
/* --- Responsive especial para 768px de ancho (ej. tablets verticales tipo iPad) --- */
@media (max-width: 824px) and (min-width: 750px) {
    /* Caja principal y paddings ajustados para centrar y aprovechar espacio */
    .productos-caja {
        max-width: 99vw;
        width: 98vw;
        padding: 10px 0px 10px 0px;
        margin: 0 auto 16px auto !important;
        box-sizing: border-box;
        border-radius: 8px;
    }

    /* Filtros alineados en columna y ocupando todo el ancho */
    .filtros-row-servicios {
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        align-items: stretch !important;
        border: none !important;
        padding: 0 6px 0 6px;
    }
    .filtro-col-servicio,
    .filtro-busqueda-global,
    .filtro-categoria,
    .filtro-marca {
        width: 100% !important;
        min-width: unset;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        margin-bottom: 0 !important;
    }
    .busqueda-superior-container {
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 auto;
        padding: 0 8px;
        box-sizing: border-box !important;
        display: flex !important;
        flex-wrap: nowrap !important;
    }
    .autocomplete-suggestions {
        width: 97vw !important;
        left: 6px !important;
        min-width: unset !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        border-radius: 0 0 12px 12px;
        font-size: 0.98rem;
    }

    /* Ajusta los selects para que sean más grandes y legibles */
    .filtro-col-servicio select {
        font-size: 1.09rem;
        padding: 9px 17px;
        border-radius: 7px;
    }
    

    /* Grid productos: 3 columnas x 2 filas */
    .productos-lista-servicio {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        grid-template-rows: repeat(2, 1fr) !important;
        gap: 16px !important;
        width: 100vw !important;
        max-width: 98vw !important;
        margin: 0 auto 8px auto !important;
        align-items: stretch;
        justify-items: stretch;
        min-height: 340px !important;
        box-sizing: border-box !important;
    }
    .producto-item-servicio {
        min-width: 0 !important;
        width: 99% !important;
        max-width: 99vw !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }
    /* Oculta descripción en productos si quieres más compacto */
    .producto-item-servicio .div_desc {
        font-size: 0.98rem;
        min-height: 2.2em;
        display: none !important;
    }

    /* Paginador ocupa ancho completo y botones compactos */
    .pagination-servicio {
        width: 98vw !important;
        max-width: 98vw !important;
        overflow-x: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
        gap: 3px;
        border: #68686879 1px solid;
    }
    .pagination-servicio button {
        min-width: 34px;
        font-size: 1rem;
        margin: 0 2px;
        padding: 7px 0;
        white-space: nowrap;
        border-radius: 8px !important;
    }
}
/* ==== Mejor visibilidad para íconos topbar/navbar ==== */

/* Topbar íconos: círculo verde sólido, ícono blanco */
.btn-sm-square {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #8fc73e !important; /* verde sólido */
    box-shadow: 0 2px 8px rgba(140, 199, 62, 0.13);
    margin-right: 8px;
    border: none !important;
    transition: box-shadow 0.18s, transform 0.18s;
    position: relative;
}
.btn-sm-square small.fa {
    font-size: 1.2rem;
    color: #fff !important;
    filter: drop-shadow(0 2px 2px rgba(50,50,50,0.18));
}
.btn-sm-square:hover, .btn-sm-square:focus {
    box-shadow: 0 4px 16px rgba(140, 199, 62, 0.25);
    transform: scale(1.09);
}

/* Navbar social íconos: círculo blanco, ícono verde (sin borde) */
.navbar .btn-square {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f3f3f3 !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    border: none !important;
    margin-right: 8px;
    transition: box-shadow 0.18s, transform 0.18s, background 0.18s;
}
.navbar .btn-square i {
    font-size: 1.5rem;
    color: #8fc73e !important;
    transition: transform 0.15s;
}
.navbar .btn-square:hover,
.navbar .btn-square:focus {
    box-shadow: 0 4px 18px rgba(140, 199, 62, 0.18);
    transform: scale(1.12);
    background: #e9f7e7 !important;
}

/* Responsive ajustes */
@media (max-width: 900px) {
    .btn-sm-square { width: 28px; height: 28px; font-size: 1rem; }
    .navbar .btn-square { width: 40px; height: 40px; font-size: 1.1rem; }
}
@media (max-width: 600px) {
    .btn-sm-square { width: 24px; height: 24px; font-size: 0.95rem; }
    .navbar .btn-square { width: 35px; height: 35px; font-size: 1rem; }
}

.service-item {
    width: 100%;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 18px;
    box-shadow: 0 1px 8px #e0e0e0;
    transition: transform 0.18s;
}
.service-item:hover {
    transform: translateY(-6px) scale(1.04);
}
.table-borderless td {
    border: none !important;
    padding: 8px 10px;
}
@media (max-width: 991px) {
    .row.align-items-center {
        flex-direction: column;
        text-align: center;
    }
}/* Resalta el producto más relevante de la búsqueda */
.producto-destacado {
    border: 2.5px solid #d9cc57ff !important;
    box-shadow: 0 0 15px #d0d95785;
    background: #ffffffff !important;
    z-index: 2;
    position: relative;
    transition: box-shadow 0.2s, border 0.2s;
}