/* Contenedor del carrusel */
.product-carousel-container {
    padding: 20px 40px;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

/* Estilos para las cards de productos */
.product-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 10px;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.product-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(187, 45, 59, 0.85);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
 
}

.product-card:hover .overlay {
    opacity: 1;
}

.product-card .overlay-text {
    color: white;
    font-size: 1.1rem;
    border: 2px solid white;
    padding: 12px 30px;
    border-radius: 50px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.product-card:hover .overlay-text {
    opacity: 1;
    transform: translateY(0);
}

.product-card img {
    width: 100%;
    height: 225px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    position: relative;
}

.product-card h3 {
    font-size: 1.5rem;
    color: #332203;
    margin: 0 auto;
    padding: 15px 20px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    line-height: 1.2;
    font-weight: 600;
    width: 100%;
    max-width: 280px;
    font-weight: 800;

}

.product-card p {
    color: #666;
    margin: 0 auto;
    padding: 10px 20px;
    line-height: 1.4;
    text-align: left;
    flex-grow: 1;
    width: 100%;
    max-width: 280px;
    font-size: 1rem;
}

/* Quitar subrayados y estilos de enlaces */
.product-card a,
.product-card a:hover,
.product-card a:focus {
    text-decoration: none;
    color: inherit;
}

.product-card .img-container {
    position: relative;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

/* Navegación del carrusel */
.owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    left: 0;
    pointer-events: none;
}

.owl-nav button.owl-prev,
.owl-nav button.owl-next {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: #bb2d3b !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 20px !important;
    pointer-events: auto;
    outline: none !important;
    border: none !important;
}

.owl-nav button.owl-prev:hover,
.owl-nav button.owl-next:hover,
.owl-nav button.owl-prev:focus,
.owl-nav button.owl-next:focus,
.owl-nav button.owl-prev:active,
.owl-nav button.owl-next:active {
    background-color: #bb2d3b !important;
    color: white !important;
    outline: none !important;
    border: none !important;
}

.owl-nav button.owl-prev {
    left: -20px;
}

.owl-nav button.owl-next {
    right: -20px;
}

/* Dots del carrusel */
.owl-dots {
    margin-top: 20px;
    text-align: center;
}

.owl-dots .owl-dot span {
    width: 10px;
    height: 10px;
    margin: 5px;
    background: #D6D6D6;
    display: block;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.owl-dots .owl-dot.active span {
    background: #bb2d3b;
    width: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .product-carousel-container {
        padding: 20px;
    }

    .product-card {
        min-height: 350px;
        margin: 5px;
    }

    .product-card h3 {
        font-size: 1.2rem;
        min-height: 40px;
    }

    .product-card p {
        font-size: 0.9rem;
    }

    .owl-nav button.owl-prev {
        left: -15px;
    }

    .owl-nav button.owl-next {
        right: -15px;
    }
}

@media (max-width: 576px) {
    .product-carousel-container {
        padding: 10px;
    }

    .product-card {
        min-height: 300px;
    }

    .owl-nav button.owl-prev,
    .owl-nav button.owl-next {
        width: 35px;
        height: 35px;
        font-size: 16px !important;
    }

    .owl-nav button.owl-prev {
        left: -10px;
    }

    .owl-nav button.owl-next {
        right: -10px;
    }
}

/* Fondo decorativo detrás de las cards */
.bg-danger.opacity-25 {
    position: absolute;
    z-index: -1;
}

.product-card,
.card {
    position: relative;
    z-index: 10;
}
