/* ====== ESTILOS BANNER SLIDER ====== */

/* Banner Slider Container */
.banner-carousel {
    width: 100%;
    position: relative;
}

/* Contenedor del slider con espacio para navbar */
.container-fluid .pt-5 {
    padding-top: 140px !important; /* Espacio para navbar en desktop */
}

/* Ajustes para diferentes tamaños de pantalla */
@media (max-width: 991px) {
    .container-fluid .pt-5 {
        padding-top: 100px !important; /* Espacio para navbar en tablet (sin topbar) */
    }
}

@media (max-width: 768px) {
    .container-fluid .pt-5 {
        padding-top: 90px !important; /* Espacio para navbar en móvil */
    }
}

/* Banner Items */
.banner-item {
    position: relative;
    width: 100%;
    display: block;
}

.banner-item img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    object-position: center center;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

/* Owl Carousel Dots Customization - Horizontal centered */
.banner-carousel .owl-dots {
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 20px 0 !important;
    margin: 20px 0 0 0 !important;
    width: 100% !important;
}

.banner-carousel .owl-dot {
    display: inline-block !important;
    height: 12px !important;
    width: 12px !important;
    margin: 0 8px !important;
    outline: none !important;
    border-radius: 50% !important;
    border: 2px solid #ffb524 !important;
    background-color: transparent !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.banner-carousel .owl-dot.active {
    background-color: #ffb524 !important;
    transform: scale(1.3) !important;
    box-shadow: 0 2px 8px rgba(255, 181, 36, 0.4) !important;
}

.banner-carousel .owl-dot:hover {
    background-color: #ffb524 !important;
    transform: scale(1.2) !important;
    box-shadow: 0 2px 6px rgba(255, 181, 36, 0.3) !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .banner-item img {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .banner-item img {
        max-height: 350px;
    }

    .banner-carousel .owl-dots {
        padding: 15px 0 !important;
        margin: 15px 0 0 0 !important;
    }
}

@media (max-width: 576px) {
    .banner-item img {
        max-height: 300px;
    }

    .banner-carousel .owl-dot {
        height: 10px !important;
        width: 10px !important;
        margin: 0 6px !important;
    }

    .banner-carousel .owl-dots {
        padding: 10px 0 !important;
        margin: 10px 0 0 0 !important;
    }
}

/* Fix para evitar cortes en la parte superior */
.banner-carousel .owl-stage-outer {
    overflow: visible !important;
}

.banner-carousel .owl-stage {
    display: flex !important;
    align-items: center !important;
}

/* ====== ESTILOS PARA TARJETAS DE CATEGORÍAS ====== */

/* Tarjetas de categorías con altura uniforme */
.vesitable-item {
    height: 450px !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Imagen de categoría con altura fija */
.vesitable-item .vesitable-img {
    height: 200px !important;
    overflow: hidden !important;
}

.vesitable-item .vesitable-img img {
    height: 200px !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
}

/* Contenido de la tarjeta con flexbox */
.vesitable-item .p-4.rounded-bottom {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 1.5rem !important;
}

/* Título de categoría */
.vesitable-item h4 {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.3 !important;
}

/* Descripción con altura limitada */
.vesitable-item p {
    flex: 1 !important;
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    margin-bottom: 1rem !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Botón siempre en la parte inferior */
.vesitable-item .d-flex.justify-content-between {
    margin-top: auto !important;
}

/* Badge de categoría */
.vesitable-item .position-absolute {
    z-index: 2 !important;
}

/* Ajustes responsive para tarjetas de categorías */
@media (max-width: 992px) {
    .vesitable-item {
        height: 380px !important;
    }

    .vesitable-item .vesitable-img {
        height: 160px !important;
    }

    .vesitable-item .vesitable-img img {
        height: 160px !important;
    }

    .vesitable-item .p-4.rounded-bottom {
        padding: 1.25rem !important;
    }
}

@media (max-width: 768px) {
    .vesitable-item {
        height: 340px !important;
        margin: 0 !important;
    }

    .vesitable-item .vesitable-img {
        height: 140px !important;
    }

    .vesitable-item .vesitable-img img {
        height: 140px !important;
    }

    .vesitable-item .p-4.rounded-bottom {
        padding: 1rem !important;
    }

    .vesitable-item h4 {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .vesitable-item p {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
        -webkit-line-clamp: 2 !important;
    }

    /* Badge más pequeño en móvil */
    .vesitable-item .position-absolute {
        font-size: 0.75rem !important;
        padding: 0.25rem 0.5rem !important;
    }
}

@media (max-width: 576px) {
    .vesitable-item {
        height: 320px !important;
        margin: 0 !important;
    }

    .vesitable-item .vesitable-img {
        height: 130px !important;
    }

    .vesitable-item .vesitable-img img {
        height: 130px !important;
    }

    .vesitable-item .p-4.rounded-bottom {
        padding: 0.875rem !important;
    }

    .vesitable-item h4 {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .vesitable-item p {
        font-size: 0.8rem !important;
        line-height: 1.25 !important;
        -webkit-line-clamp: 2 !important;
        margin-bottom: 0.75rem !important;
    }

    /* Botón más pequeño en móvil */
    .vesitable-item .btn {
        font-size: 0.8rem !important;
        padding: 0.375rem 0.75rem !important;
    }

    /* Badge aún más pequeño */
    .vesitable-item .position-absolute {
        font-size: 0.7rem !important;
        padding: 0.2rem 0.4rem !important;
        top: 5px !important;
        right: 5px !important;
    }
}

@media (max-width: 480px) {
    .vesitable-item {
        height: 300px !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: none !important;
    }

    .vesitable-item .vesitable-img {
        height: 120px !important;
    }

    .vesitable-item .vesitable-img img {
        height: 120px !important;
    }

    .vesitable-item .p-4.rounded-bottom {
        padding: 0.75rem !important;
    }

    .vesitable-item h4 {
        font-size: 0.95rem !important;
        margin-bottom: 0.4rem !important;
    }

    .vesitable-item p {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
        -webkit-line-clamp: 2 !important;
        margin-bottom: 0.5rem !important;
    }
}

/* Ajustes específicos para el owl carousel en móvil */
@media (max-width: 768px) {
    .vegetable-carousel .owl-stage {
        display: flex !important;
        align-items: stretch !important;
    }

    .vegetable-carousel .owl-item {
        display: flex !important;
        padding: 0 !important;
    }

    .vegetable-carousel .owl-item .vesitable-item {
        width: 100% !important;
        flex: 1 !important;
    }
}

/* Evitar scroll horizontal en móvil y mostrar bordes completos */
@media (max-width: 768px) {
    .container-fluid.vesitable {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .vegetable-carousel {
        margin: 0 !important;
        padding: 0 5px !important;
    }

    .vegetable-carousel .owl-stage-outer {
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    .vegetable-carousel .owl-stage {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .vegetable-carousel .owl-item {
        padding: 0 5px !important;
    }
}

@media (max-width: 576px) {
    .container-fluid.vesitable {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .vegetable-carousel {
        margin: 0 !important;
        padding: 0 3px !important;
    }

    .vegetable-carousel .owl-item {
        padding: 0 3px !important;
    }

    .vesitable-item {
        margin: 0 !important;
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .container-fluid.vesitable {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    .vegetable-carousel {
        padding: 0 2px !important;
    }

    .vegetable-carousel .owl-item {
        padding: 0 2px !important;
    }
}

/* ====== CONTROLES DE NAVEGACIÓN OWL CAROUSEL ====== */

/* Forzar reposición de controles de navegación */
.vegetable-carousel .owl-nav {
    position: relative !important;
    margin-top: 20px !important;
    text-align: center !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Resetear posición absoluta de botones */
.vegetable-carousel .owl-nav button.owl-prev,
.vegetable-carousel .owl-nav button.owl-next {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin: 0 10px !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background-color: #ffb524 !important;
    color: white !important;
    border: none !important;
    font-size: 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    z-index: 1 !important;
}

.vegetable-carousel .owl-nav button.owl-prev:hover,
.vegetable-carousel .owl-nav button.owl-next:hover {
    background-color: #81c408 !important;
    transform: scale(1.1) !important;
}

/* Asegurar que no haya posicionamiento absoluto */
.vegetable-carousel .owl-controls .owl-nav .owl-prev,
.vegetable-carousel .owl-controls .owl-nav .owl-next {
    position: relative !important;
}

/* Ajustes específicos para móvil */
@media (max-width: 768px) {
    .vegetable-carousel .owl-nav {
        margin-top: 15px !important;
    }

    .vegetable-carousel .owl-nav button.owl-prev,
    .vegetable-carousel .owl-nav button.owl-next {
        width: 40px !important;
        height: 40px !important;
        margin: 0 8px !important;
        font-size: 16px !important;
    }
}

@media (max-width: 576px) {
    .vegetable-carousel .owl-nav {
        margin-top: 10px !important;
    }

    .vegetable-carousel .owl-nav button.owl-prev,
    .vegetable-carousel .owl-nav button.owl-next {
        width: 35px !important;
        height: 35px !important;
        margin: 0 6px !important;
        font-size: 14px !important;
    }
}

/* Ocultar controles en móvil para mejor UX (swipe funciona mejor) */
@media (max-width: 768px) {
    .vegetable-carousel .owl-nav,
    .vegetable-carousel .owl-nav button.owl-prev,
    .vegetable-carousel .owl-nav button.owl-next {
        display: none !important;
    }
}

/* Si quieres mostrar los controles en móvil, comenta la regla anterior y descomenta esto:
@media (max-width: 768px) {
    .vegetable-carousel .owl-nav {
        margin-top: 15px !important;
    }

    .vegetable-carousel .owl-nav button.owl-prev,
    .vegetable-carousel .owl-nav button.owl-next {
        width: 40px !important;
        height: 40px !important;
        margin: 0 8px !important;
        font-size: 16px !important;
    }
}
*/

