/* ═══════════════════════════════════════════
   STORE PAGE — /tienda
   ═══════════════════════════════════════════ */

.tienda-section {
    max-width: 1000px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

/* ── Price legend ── */
.tienda-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 12px;
}

.tienda-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.tienda-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Category section with dark overlay ── */
.tienda-categories {
    position: relative;
    max-width: 100%;
    padding: 40px 20px 60px;
}

.tienda-categories::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
    pointer-events: none;
}

.tienda-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.tienda-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s;
    color: #fff;
    font-family: inherit;
    font-size: inherit;
    text-align: center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    line-height: 1.4;
}

.tienda-cat:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-3px);
}

.tienda-cat.active {
    background: rgba(255, 75, 92, 0.12);
    border-color: rgba(255, 75, 92, 0.4);
    box-shadow: 0 4px 20px rgba(255, 75, 92, 0.15);
}

.tienda-cat-icon {
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
}

.tienda-cat-name {
    font-size: 0.95rem;
    font-weight: 700;
}

.tienda-cat-sub {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
}


.tienda-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px 24px;
}

.tienda-panel-head {
    text-align: center;
    margin-bottom: 24px;
}

.tienda-panel-head h2 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.tienda-panel-head p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
}

.tienda-panel-cta {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Payment steps ── */
.tienda-panel-steps {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 24px;
}

.tp-step {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    flex: 1;
    min-width: 170px;
}

.tp-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4b5c, #d53f8c);
    color: #fff;
    font-weight: 800;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Section header (icon + title + desc) ── */
.tienda-section-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tienda-section-icon {
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
    flex-shrink: 0;
}

.tienda-section-header h2 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.tienda-section-header p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
}

.tienda-section-cta {
    text-align: center;
    margin-top: 18px;
}

/* ── Generic cards row ── */
.tienda-cards-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

/* ── Rank mini cards ── */
.tienda-item-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    text-decoration: none;
    color: #fff;
    text-align: center;
    transition: all 0.3s;
}

.tienda-item-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent, rgba(255, 255, 255, 0.2));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.tienda-item-badge {
    width: 56px;
    height: auto;
    image-rendering: pixelated;
}

.tienda-item-card h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--accent, #fff);
}

.tienda-item-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #55ff55;
}

.tienda-item-tag {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ── Vehicle cards ── */
.tienda-vehicles {
    grid-template-columns: repeat(3, 1fr);
}

.tienda-vehicle-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px 16px;
    text-align: center;
    transition: all 0.25s;
}

.tienda-vehicle-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.tienda-vehicle-img {
    width: 40px;
    height: 40px;
    image-rendering: pixelated;
    margin-bottom: 10px;
}

.tienda-vehicle-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.tienda-vehicle-card > p {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 12px;
}

.tienda-vehicle-card ul {
    list-style: none;
    padding: 0;
}

.tienda-vehicle-card li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.tienda-vehicle-card li:last-child { border-bottom: none; }

.tienda-vehicle-card li strong {
    font-size: 0.75rem;
}

/* ── Buy buttons inline ── */
.tienda-buy-sm {
    padding: 4px 10px;
    border: 1px solid rgba(85, 255, 85, 0.3);
    border-radius: 6px;
    background: rgba(85, 255, 85, 0.1);
    color: #55ff55;
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    -webkit-appearance: none;
    margin-left: 8px;
    flex-shrink: 0;
}

.tienda-buy-sm:hover {
    background: rgba(85, 255, 85, 0.2);
    border-color: #55ff55;
}

.tienda-buy-btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff4b5c, #d53f8c);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    -webkit-appearance: none;
}

.tienda-buy-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.tienda-panel-note {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
    line-height: 1.5;
}

/* ── Bolsas ── */
/* ── Bolsas grid (3 cols centered) ── */
.tienda-bolsas-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 680px;
    margin: 0 auto;
}

.tienda-bolsa-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.25s;
}

.tienda-bolsa-card:hover {
    border-color: var(--accent, rgba(255, 255, 255, 0.2));
    transform: translateY(-2px);
}

.tienda-bolsa-img {
    width: 40px;
    height: 40px;
    image-rendering: pixelated;
    margin-bottom: 10px;
}

.tienda-bolsa-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent, #fff);
    margin-bottom: 6px;
}

.tienda-bolsa-receive {
    font-size: 0.85rem;
    color: #ffaa00;
    font-weight: 700;
    margin-bottom: 6px;
}

.tienda-bolsa-price {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: #55ff55;
    margin-bottom: 6px;
}

.tienda-bolsa-bs {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #55ff55;
    margin-bottom: 6px;
}

.tienda-bolsa-tips {
    list-style: none;
    padding: 8px 10px;
    margin: 10px 0 0;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.tienda-bolsa-tips::before {
    content: 'Ideas para usar tu dinero:';
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.tienda-bolsa-tips li {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    padding: 2px 0;
    line-height: 1.4;
}

.tienda-bolsa-tips li::before {
    content: '+ ';
    color: var(--accent, #ffaa00);
    font-weight: 700;
}

.tienda-bolsa-disclaimer {
    text-align: center;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
    font-style: italic;
    margin-top: 14px;
}

/* ── BattlePass ── */
.tienda-bp-content {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.tienda-bp-price-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 28px 24px;
    text-align: center;
    flex-shrink: 0;
    min-width: 160px;
}

.tienda-bp-amount {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #55ff55;
}

.tienda-bp-price-box small {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
}

.tienda-bp-details {
    flex: 1;
}

.tienda-bp-details h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #d53f8c;
    margin-bottom: 10px;
}

.tienda-bp-details ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.tienda-bp-details li {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    padding: 3px 0;
}

.tienda-bp-details li::before {
    content: '+ ';
    color: #55ff55;
    font-weight: 700;
}

.tienda-bp-seasons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.tienda-bp-seasons-desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    margin-bottom: 12px;
}

.tienda-bp-seasons-desc strong {
    color: #fbbf24;
}

.tienda-bp-seasons span {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

/* ── Protecciones ── */
.tienda-prot-group {
    margin-bottom: 20px;
}

.tienda-prot-group h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tienda-prot-group .tienda-cards-row {
    grid-template-columns: repeat(3, 1fr);
}

.tienda-prot-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px 14px;
    text-align: center;
}

.tienda-prot-img {
    width: 36px;
    height: 36px;
    image-rendering: pixelated;
    margin-bottom: 8px;
}

.tienda-prot-card h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.tienda-prot-card p {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 8px;
}

.tienda-prot-card .tienda-buy-sm {
    margin-top: 8px;
    margin-left: 0;
}

/* ── Payment section ── */
.tienda-pagos {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tienda-pagos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 700px;
    margin: 0 auto;
}

.tienda-pago-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 20px 16px;
}

.tienda-pago-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffaa00;
    margin-bottom: 8px;
}

.tienda-pago-value {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.tienda-pago-sub {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 3px;
}

.tienda-pago-wa h4 { color: #25D366; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .tienda-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tienda-cards-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .tienda-vehicles {
        grid-template-columns: repeat(2, 1fr);
    }

    .tienda-section-header {
        flex-direction: column;
        text-align: center;
    }

    .tienda-bp-content {
        flex-direction: column;
    }

    .tienda-bp-price-box {
        width: 100%;
    }

    .tienda-bp-seasons {
        grid-template-columns: repeat(3, 1fr);
    }

    .tienda-bolsas-row {
        grid-template-columns: repeat(3, 1fr);
        max-width: 100%;
    }

    .tienda-pagos-grid {
        grid-template-columns: 1fr;
    }

    .tienda-prot-group .tienda-cards-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .tienda-panel-steps {
        flex-direction: column;
    }

    .tienda-panel {
        padding: 20px 16px;
    }
}

@media (max-width: 480px) {
    .tienda-cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .tienda-cat {
        padding: 18px 12px;
    }

    .tienda-cat-icon {
        width: 36px;
        height: 36px;
    }

    .tienda-cat-name {
        font-size: 0.82rem;
    }

    .tienda-cards-row,
    .tienda-vehicles {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }

    .tienda-bolsas-row {
        grid-template-columns: 1fr;
        max-width: 260px;
    }

    .tienda-prot-group .tienda-cards-row {
        grid-template-columns: 1fr;
        max-width: 260px;
        margin: 0 auto;
    }
}
