/* Estilos generales */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Estilos del Carousel */
#mainCarousel {
    margin-bottom: 2rem;
    background-color: #f8f9fa;
}

.carousel-inner {
    aspect-ratio: 16/9;
    width: 100%;
    position: relative;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f8f9fa;
}

.carousel-control-prev,
.carousel-control-next {
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 0.9;
}

.carousel-indicators {
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.carousel-indicators:hover {
    opacity: 1;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: 8px;
    bottom: 20px;
}

.carousel-caption h5 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.carousel-caption p {
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Estilos para las tarjetas de productos */
.product-image-container {
    height: 200px;
    overflow: hidden;
    position: relative;
    background-color: #f8f9fa;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.card {
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card-body {
    display: flex;
    flex-direction: column;
}

.card-text {
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Grid de productos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Exactamente 4 columnas */
    gap: 1.5rem;
    padding: 1rem 0;
}

/* Responsive */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columnas en tablets */
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en móvil */
        gap: 1rem;
    }
    
    .product-image-container {
        height: 150px;
    }
}

/* Toast notifications */
.toast-container {
    z-index: 9999;
    position: fixed;
    top: 1rem;
    right: 1rem;
}
