/* =========================================
   css/productos.css - E-commerce Universal
========================================= */
.hero-section {
    background: linear-gradient(135deg, #2c3e50 0%, #000000 100%);
    color: white;
    padding: 100px 0;
    clip-path: ellipse(150% 100% at 50% 0%);
}

.product-card {
    border-radius: 15px;
    transition: all 0.3s ease;
    background: white;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.card-img-container {
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.object-fit-contain {
    object-fit: contain;
}

/* Estilos para el Modal de Detalle */
#modalImg {
    max-height: 100%;
    transition: transform 0.4s ease;
}

.modal-content {
    background: white;
}

#searchInput:focus {
    background: white !important;
    border: 1px solid var(--primary) !important;
}

/* Transición suave para las tarjetas */
#productosContainer .col-md-4 {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* AJUSTES PARA EL MODAL XL */
.modal-xl {
    max-width: 90%; /* Se adapta mejor a laptops */
}

#modalImg {
    max-height: 550px !important;
    cursor: zoom-in;
}

#modalImg:hover {
    transform: scale(1.03); /* Un zoom sutil para ver detalles */
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

/* Mejorar el input de cantidad para que no parezca un campo de texto */
#modalCantidad::-webkit-inner-spin-button, 
#modalCantidad::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}

/* Efecto en los botones de +/- */
#btnRestarModal:active, #btnSumarModal:active {
    background-color: #f8f9fa !important;
}

@media (max-width: 991px) {
    #modalImg {
        max-height: 300px !important;
    }
}