/* ==========================================================================
   Idearte Academy — Landing "Tienda" Layout 1:1 Pixel-Perfect
   Exact replica of the Official Tienda Mockup
   ========================================================================== */

:root {
    --shop-bg: #0b0b0c;
    --shop-surface: #141416;
    --shop-card: #161619;
    --shop-border: rgba(255, 255, 255, 0.08);
    --shop-orange: #EB5E28;
    --shop-orange-hover: #d84e1b;
    --shop-text-muted: #9e9ea7;
    --shop-white: #ffffff;
}

.idearte-shop-page {
    background-color: var(--shop-bg);
    color: var(--shop-white);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ─── Shared Utilities ─── */
.shop-section {
    padding: 5rem 0;
    position: relative;
}

.shop-eyebrow {
    color: var(--shop-orange);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.shop-title-lg {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--shop-white);
    margin-bottom: 1.25rem;
}

.shop-desc {
    color: var(--shop-text-muted);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 2rem;
}

.shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.85rem 1.85rem;
    border-radius: 9999px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.shop-btn--primary {
    background-color: var(--shop-orange);
    color: var(--shop-white);
    border: 1px solid var(--shop-orange);
    box-shadow: 0 4px 20px rgba(235, 94, 40, 0.3);
}

.shop-btn--primary:hover {
    background-color: var(--shop-orange-hover);
    border-color: var(--shop-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(235, 94, 40, 0.45);
    color: var(--shop-white);
}

.shop-btn--ghost {
    background-color: transparent;
    color: var(--shop-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.shop-btn--ghost:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    color: var(--shop-white);
}

.shop-btn .arrow-icon {
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.shop-btn:hover .arrow-icon {
    transform: translateX(3px);
}

/* ─── Header Cart Button & Active Navigation ─── */
.header-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(235, 94, 40, 0.12);
    border: 1px solid rgba(235, 94, 40, 0.4);
    border-radius: 9999px;
    padding: 5px 11px;
    color: var(--shop-white);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 700;
    transition: all 0.25s ease;
}

.header-cart-btn:hover {
    background: var(--shop-orange);
    color: var(--shop-white);
    border-color: var(--shop-orange);
}

.header-cart-btn svg {
    stroke: var(--shop-orange);
    transition: stroke 0.25s ease;
}

.header-cart-btn:hover svg {
    stroke: #ffffff;
}

.header-cart-count {
    color: var(--shop-white);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1;
}

.main-navigation li.active-tienda > a,
.main-navigation li.current-menu-item > a {
    color: var(--shop-orange) !important;
    position: relative;
}

.main-navigation li.active-tienda > a::after,
.main-navigation li.current-menu-item > a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--shop-orange);
    border-radius: 2px;
}

/* ─── 1. HERO TIENDA ─── */
.shop-hero-wrap {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-color: var(--shop-bg);
    overflow: hidden;
    padding: 7rem 0 5rem 0;
}

.shop-hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 60%;
    z-index: 1;
}

.shop-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Vignette overlay blending guitar image into dark canvas */
.shop-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, 
        var(--shop-bg) 0%, 
        rgba(11, 11, 12, 0.9) 20%, 
        rgba(11, 11, 12, 0.4) 60%, 
        rgba(11, 11, 12, 0.15) 100%
    );
    z-index: 2;
}

.shop-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        rgba(11, 11, 12, 0.6) 0%, 
        transparent 20%, 
        transparent 80%, 
        var(--shop-bg) 100%
    );
    z-index: 2;
}

.shop-hero-content {
    position: relative;
    z-index: 3;
    max-width: 580px;
}

.shop-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.8rem, 5.2vw, 4.3rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--shop-white);
    margin-bottom: 1.5rem;
}

.shop-hero-desc {
    color: var(--shop-text-muted);
    font-size: 1.125rem;
    line-height: 1.65;
    margin-bottom: 2.25rem;
    max-width: 500px;
}

@media (max-width: 991px) {
    .shop-hero-wrap {
        min-height: auto;
        padding: 5rem 0 4rem 0;
    }
    .shop-hero-bg {
        width: 100%;
        opacity: 0.35;
    }
    .shop-hero-bg::before {
        background: linear-gradient(90deg, 
            var(--shop-bg) 0%, 
            rgba(11, 11, 12, 0.95) 70%, 
            rgba(11, 11, 12, 0.8) 100%
        );
    }
}

/* ─── 2. CATEGORÍAS BAR (10 Cards) ─── */
.shop-categories-wrap {
    padding: 3rem 0;
    border-bottom: 1px solid var(--shop-border);
}

.shop-categories-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 0.85rem;
}

.shop-cat-card {
    background: var(--shop-card);
    border: 1px solid var(--shop-border);
    border-radius: 8px;
    padding: 1.15rem 0.4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 95px;
}

.shop-cat-card:hover {
    border-color: rgba(235, 94, 40, 0.5);
    background: rgba(235, 94, 40, 0.06);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.shop-cat-card.is-active {
    border-color: var(--shop-orange);
    background: rgba(235, 94, 40, 0.12);
}

.shop-cat-icon {
    width: 28px;
    height: 28px;
    color: var(--shop-orange);
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-cat-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--shop-orange);
    fill: none;
}

.shop-cat-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #e4e4e7;
    line-height: 1.25;
    text-transform: capitalize;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 1200px) {
    .shop-categories-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 640px) {
    .shop-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
}

/* ─── 3. PRODUCTOS DESTACADOS ─── */
.shop-featured-wrap {
    padding: 5rem 0 6rem 0;
}

.shop-featured-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.shop-featured-title-col {
    display: flex;
    flex-direction: column;
}

.shop-featured-link {
    color: var(--shop-orange);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
    padding-bottom: 0.5rem;
}

.shop-featured-link:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}

@media (max-width: 1200px) {
    .shop-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.15rem;
    }
}

@media (max-width: 768px) {
    .shop-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
    }
}

@media (max-width: 480px) {
    .shop-products-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── 4. TARJETA DE PRODUCTO CUSTOM ─── */
.shop-product-card {
    background: var(--shop-card);
    border: 1px solid var(--shop-border);
    border-radius: 10px;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-sizing: border-box;
}

.shop-product-card:hover {
    border-color: rgba(235, 94, 40, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.shop-product-thumb-wrap {
    background: #ffffff;
    border-radius: 8px;
    aspect-ratio: 1/1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.shop-product-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.shop-product-card:hover .shop-product-thumb-wrap img {
    transform: scale(1.04);
}

.shop-product-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--shop-white);
    margin: 0 0 0.5rem 0;
    line-height: 1.35;
    height: 2.7em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.shop-product-title a {
    color: var(--shop-white);
    text-decoration: none;
    transition: color 0.2s ease;
}

.shop-product-title a:hover {
    color: var(--shop-orange);
}

.shop-product-price-row {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--shop-orange);
    margin-bottom: 1rem;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.shop-product-price-row .woocommerce-Price-amount {
    color: var(--shop-orange);
}

.shop-product-price-row del {
    font-size: 0.85rem;
    color: #71717a;
    font-weight: 500;
}

.shop-product-price-row ins {
    text-decoration: none;
    color: var(--shop-orange);
}

.shop-product-price-row .woocommerce-price-suffix {
    font-size: 0.75rem;
    color: #71717a;
    font-weight: 400;
    margin-left: 2px;
}

.shop-product-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--shop-orange);
    color: var(--shop-white);
    border: 1px solid var(--shop-orange);
    border-radius: 9999px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    gap: 0.4rem;
    transition: all 0.25s ease;
    margin-top: auto;
    cursor: pointer;
    box-sizing: border-box;
}

.shop-product-btn:hover {
    background: var(--shop-orange-hover);
    border-color: var(--shop-orange-hover);
    color: var(--shop-white);
}

/* ─── 5. ASESORÍA MUSICAL ─── */
.shop-asesoria-wrap {
    padding: 6rem 0;
    background: linear-gradient(180deg, transparent 0%, rgba(20, 20, 22, 0.4) 100%);
}

.shop-asesoria-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4.5rem;
    align-items: center;
}

.shop-asesoria-left {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--shop-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    aspect-ratio: 16/9;
}

.shop-asesoria-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.shop-asesoria-left:hover img {
    transform: scale(1.02);
}

.shop-asesoria-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

@media (max-width: 991px) {
    .shop-asesoria-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ─── 6. BENEFICIOS ─── */
.shop-beneficios-wrap {
    padding: 4rem 0;
    border-top: 1px solid var(--shop-border);
    border-bottom: 1px solid var(--shop-border);
}

.shop-beneficios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.shop-beneficio-col {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.shop-beneficio-icon {
    width: 38px;
    height: 38px;
    color: var(--shop-orange);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-beneficio-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--shop-orange);
    fill: none;
}

.shop-beneficio-text {
    display: flex;
    flex-direction: column;
}

.shop-beneficio-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--shop-white);
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.shop-beneficio-sub {
    font-size: 0.8125rem;
    color: var(--shop-text-muted);
    margin: 0;
    line-height: 1.35;
}

@media (max-width: 991px) {
    .shop-beneficios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .shop-beneficios-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}

/* ─── 7. WOOCOMMERCE CATALOGO COMPLETO / ORDENAMIENTO / PAGINACIÓN ─── */
.shop-catalog-wrap {
    padding: 4rem 0 5rem 0;
    border-top: 1px solid var(--shop-border);
}

.shop-catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.shop-catalog-count {
    color: var(--shop-text-muted);
    font-size: 0.875rem;
}

.shop-catalog-ordering select {
    background: #18181b;
    border: 1px solid var(--shop-border);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    outline: none;
    cursor: pointer;
}

.shop-pagination {
    margin-top: 3.5rem;
    display: flex;
    justify-content: center;
}

.shop-pagination ul.page-numbers {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.shop-pagination ul.page-numbers li a,
.shop-pagination ul.page-numbers li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--shop-card);
    border: 1px solid var(--shop-border);
    color: var(--shop-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.shop-pagination ul.page-numbers li span.current {
    background: var(--shop-orange);
    border-color: var(--shop-orange);
    color: #ffffff;
}

.shop-pagination ul.page-numbers li a:hover {
    border-color: var(--shop-orange);
    color: var(--shop-orange);
}
