/* Estilo General - Dark Elegante */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px;
    min-height: 100vh;
}

/* Tarjetas Cuadrangulares con Altura Controlada */
.producto-card {
    background: #131318;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    max-height: 500px;
    border: 1px solid #2d1a4a;
}

/* Contenedor de Imagen Destacada (Cuadrangular) */
.carrousel_tienda {
    width: 100%;
    height: 280px; /* Altura aumentada */
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid #6b46c1;
    aspect-ratio: 1/1;
}

/* Carrusel corregido - 1 imagen por slide */
.carrousel_tienda-imagenes {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carrousel_tienda-img {
    flex: 0 0 100%; /* Fuerza 100% de ancho por imagen */
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.05);
    transition: transform 0.3s ease;
}

.carrousel_tienda-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.05);
    transition: transform 0.3s ease;
}

/* Efecto Hover en Imagen */
.carrousel_tienda:hover .carrousel_tienda-img {
    transform: scale(0.98);
    filter: saturate(1.3) contrast(1.1);
}

/* Botones de Navegación Elegantes */
.carrousel_tienda-prev,
.carrousel_tienda-next {
    background: rgba(107, 70, 193, 0.9);
    color: #fff;
    border: none;
    padding: 12px;
    width: 40px;
    height: 40px;
    font-size: 22px;
    border-radius: 50%;
    backdrop-filter: blur(6px);
    opacity: 0;
    transform: translateY(-50%) scale(0.9);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carrousel_tienda:hover .carrousel_tienda-prev,
.carrousel_tienda:hover .carrousel_tienda-next {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

/* Contenido Estilizado */
.producto-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(19,19,24,0) 0%, #131318 100%);
}

.producto-info h2 {
    font-size: 1.3em;
    color: #d8c3ff;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.descripcion {
    font-size: 0.95em;
    color: #a3a3c2;
    line-height: 1.6;
    margin-bottom: auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.creditos {
    font-size: 1.1em;
    color: #8a63d2;
    margin-top: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.creditos span {
    color: #48bb78;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(72, 187, 120, 0.2);
}

/* Botones de Acción Mejorados */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 20px;
    gap: 10px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 25%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 75%);
    transform: rotate(45deg);
    animation: btnGlow 3s infinite linear;
    opacity: 0.3;
}

@keyframes btnGlow {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.comprar {
    background: linear-gradient(45deg, #6b46c1, #805ad5);
    color: white;
    box-shadow: 0 4px 20px rgba(107, 70, 193, 0.3);
}

.descargar {
    background: linear-gradient(45deg, #48bb78, #38a169);
    color: white;
    box-shadow: 0 4px 20px rgba(72, 187, 120, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(107, 70, 193, 0.4);
}

/* Efectos Especiales en Tarjeta */
.producto-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    box-shadow: inset 0 0 50px rgba(107, 70, 193, 0.05);
    pointer-events: none;
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(107, 70, 193, 0.2);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .productos-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .productos-grid {
        padding: 25px;
        gap: 25px;
    }
    
    .carrousel_tienda {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .producto-card {
        max-height: none;
    }
    
    .carrousel_tienda {
        height: 220px;
    }
}