/* Tienda de productos digitales — reutiliza las variables :root de las páginas */

.shop-hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 7rem 1rem 3rem;
    text-align: center;
}

.shop-hero-inner {
    max-width: 760px;
    margin: 0 auto;
}

.shop-hero-eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}

.shop-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.shop-hero p {
    font-size: 1.05rem;
    opacity: 0.95;
    margin: 0 auto;
    max-width: 620px;
}

.shop-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem 4rem;
}

/* Filtros por tipo */
.shop-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.shop-filter {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--secondary);
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.shop-filter:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.shop-filter.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Grid de productos */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.5rem;
}

.shop-card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.shop-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.shop-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--white);
    flex-shrink: 0;
}

.shop-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
}

/* Colores por tipo de producto */
.type-template .shop-card-icon { background: #2563eb; }
.type-template .shop-badge { background: rgba(37, 99, 235, 0.12); color: #1d4ed8; }

.type-skill .shop-card-icon { background: #16a34a; }
.type-skill .shop-badge { background: rgba(22, 163, 74, 0.12); color: #15803d; }

.type-course .shop-card-icon { background: #d97706; }
.type-course .shop-badge { background: rgba(217, 119, 6, 0.12); color: #b45309; }

.type-service .shop-card-icon { background: #7c3aed; }
.type-service .shop-badge { background: rgba(124, 58, 237, 0.12); color: #6d28d9; }

.shop-card h2 {
    font-size: 1.15rem;
    line-height: 1.35;
    color: var(--dark, var(--text-primary));
    margin-bottom: 0.6rem;
}

.shop-card-desc {
    font-size: 0.95rem;
    color: var(--secondary);
    line-height: 1.55;
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

.shop-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.shop-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark, var(--text-primary));
}

.shop-price small {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--secondary);
}

.shop-buy {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.7rem 1.3rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.25s ease, transform 0.1s ease;
    white-space: nowrap;
}

.shop-buy:hover { background: var(--primary-dark); }
.shop-buy:active { transform: scale(0.97); }

.shop-buy.is-soon {
    background: var(--light);
    color: var(--secondary);
    cursor: not-allowed;
    pointer-events: none;
}

.shop-note {
    max-width: 760px;
    margin: 3rem auto 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--secondary);
    line-height: 1.6;
}

.shop-note a { color: var(--primary); }

.shop-empty,
.shop-loading {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--secondary);
    padding: 3rem 1rem;
}

@media (max-width: 600px) {
    .shop-hero { padding: 6rem 1rem 2.5rem; }
    .shop-grid { grid-template-columns: 1fr; }
}
