.producto-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.producto-seleccionado {
    border: 2px solid #28a745 !important;
    background-color: #f8fff9;
}

.carrito-flotante {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 350px;
    display: none;
}

.carrito-contador {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.carousel-item img {
    height: 600px;
    object-fit: cover;
    filter: brightness(0.7);
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 20px;
}

.seccion1 {
    margin-bottom: 50px;
}

.seccion2 {
    padding: 50px 0;
    background: #f8f9fa;
}

.filtroProducto {
    margin-bottom: 30px;
}

.filtroProducto .nav-link {
    color: #495057;
    font-weight: 500;
    border-radius: 25px;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.filtroProducto .nav-link:hover,
.filtroProducto .nav-link.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.btn-carrito {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #007bff;
    border: none;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    z-index: 999;
}

.footer {
    width: 100%;
    background: #222;
    color: #fff;
    padding: 40px 0 20px 0;
    position: relative;
}
.footer .container {
    width: 100%;
    max-width: 100vw;
}

.stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.stock-low {
    background: #ffc107;
    color: #333;
}

.precio-destacado {
    font-size: 1.25em;
    font-weight: bold;
    color: #28a745;
}

.stock-out {
    background-color: #dc3545 !important; /* Rojo para productos agotados */
    color: white;
}

.card img[style*="opacity: 0.6"] {
    filter: grayscale(70%);
}

.btn[disabled] {
    cursor: not-allowed;
    opacity: 0.65;
}

.producto-card.disabled {
    position: relative;
}

.producto-card.disabled::after {
    content: "AGOTADO";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(220, 53, 69, 0.8);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    z-index: 2;
}

.producto-agotado {
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
}

.map{
    filter: grayscale(100%) invert(92%) contrast(92%) ;
}

/* Responsividad para el modal de detalle de producto */
@media (max-width: 576px) {
    #modalDetalleProducto .modal-dialog {
        max-width: 98vw;
        margin: 8px auto;
    }
    #modalDetalleProducto .modal-content {
        padding: 8px;
        border-radius: 12px;
    }
    #modalDetalleProducto .modal-header,
    #modalDetalleProducto .modal-footer {
        padding: 12px 8px;
    }
    #modalDetalleProducto .modal-body {
        padding: 8px;
    }
    #modalDetalleProducto .modal-body .row {
        flex-direction: column;
        gap: 12px;
    }
    #modalDetalleProducto .modal-body .col-md-6 {
        width: 100%;
        max-width: 100%;
        margin-bottom: 0;
    }
    #modalDetalleProducto img#modalProductoImagen {
        max-width: 100%;
        max-height: 220px;
        height: auto;
        border-radius: 10px;
        margin-bottom: 12px;
    }
    #modalDetalleProducto h4,
    #modalDetalleProducto p,
    #modalDetalleProducto .badge,
    #modalDetalleProducto .btn-lg {
        font-size: 1rem !important;
    }
    #modalDetalleProducto .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px;
    }
    #modalDetalleProducto .d-grid {
        gap: 8px;
    }
}

