/* Estilos para el contenedor del catálogo */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.intro-catalogo {
    text-align: center;
    margin-bottom: 50px;
}

.intro-catalogo h2 {
    font-size: 2.5rem;
    color: var(--color-primario); /* Usa tus variables actuales */
    margin-bottom: 10px;
}

/* Filtros */
.filtros {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--color-primario);
    background: transparent;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--color-primario);
    color: white;
}

/* Grid de Productos */
.grid-catalogo {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Tarjeta de Producto */
.card-producto {
    background: var(--bg-card, #ffffff); /* Color de fondo según tu tema */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid rgba(0,0,0,0.08);
}

.card-producto:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

/* Badge (Más vendido / Nuevo) */
.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff4757;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 10;
}

.img-container {
    width: 100%;
    height: 200px;
    background: #f1f2f6;
    overflow: hidden;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-producto:hover .img-container img {
    transform: scale(1.1);
}

.info-producto {
    padding: 25px;
}

.info-producto h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.info-producto p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Tags de tecnología */
.tech-stack {
    margin-bottom: 20px;
}

.tech-stack span {
    background: #e1e1e1;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: 5px;
    font-weight: 600;
}

/* Precio y Botón */
.precio-accion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.precio {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primario);
}

.btn-comprar {
    background: var(--color-primario);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.link-demo {
    display: block;
    margin-top: 15px;
    text-align: center;
    font-size: 0.9rem;
    color: #555;
    text-decoration: none;
}

.link-demo:hover {
    text-decoration: underline;
    color: var(--color-primario);
}