/**
 * theme-base.css
 * Variables dinámicas y estilos limpios para los componentes de la tienda.
 */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

[id$="-section"] {
    scroll-margin-top: 80px;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
}

.store-root {
    --theme-bg: #000000;
    --theme-text: #ffffff;
    --theme-primary: #ffffff;
    --theme-muted: #888888;
    --theme-card-bg: #0a0a0a;
    --theme-border: #1a1a1a;
    --theme-font: 'Plus Jakarta Sans', sans-serif;
    
    background-color: var(--theme-bg);
    color: var(--theme-text);
    font-family: var(--theme-font);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.store-root h1, .store-root h2, .store-root h3 { margin: 0; font-weight: 800; letter-spacing: -1px; }
.store-root a { color: var(--theme-text); text-decoration: none; transition: opacity 0.2s; }
.store-root a:hover { opacity: 0.7; }

/* 1. NAVBAR */
/* 1. NAVBAR (PROF-NAV) */
.rendered-navbar-wrapper {
    box-sizing: border-box;
    width: 100%;
}

.rendered-navbar.prof-nav {
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 52px;
    background: transparent;
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), backdrop-filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rendered-navbar.prof-nav.scrolled {
    /* Background, border, blur and shadow are controlled by engine.js dynamic styles */
}

.nav-left-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 4px;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.mobile-hamburger-btn:hover {
    opacity: 0.8;
}

.user-nav-info {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #fff;
}

.user-nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: #222;
}

.user-nav-name {
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.5px;
    color: #fff;
    text-transform: none;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-link {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    opacity: 0.6;
    transition: opacity 0.2s;
    text-transform: none;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    opacity: 1;
}

.nav-right-extreme {
    display: flex;
    align-items: center;
}

.nav-cart-trigger {
    position: relative;
    color: #fff;
    font-size: 1.3rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s;
}

.nav-cart-trigger:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.05);
}

.cart-badge-circle {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff3300;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 1px solid #000;
}
.nav-cart-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    color: #000000;
    padding: 6px 14px;
    border-radius: 100px;
    font-weight: 800;
    font-size: 0.7rem;
    text-decoration: none;
    border: none;
    transition: all 0.2s ease;
    height: 36px;
    cursor: pointer;
    line-height: 1;
}

.nav-cart-trigger-btn:hover {
    opacity: 0.9;
    transform: scale(1.03);
}

.cart-badge-pill {
    background: #000000;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 99px;
    margin-left: 2px;
    line-height: 1;
    min-width: 18px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 900px) {
    .rendered-navbar.prof-nav {
        padding: 12px 10px;
    }
    .nav-links {
        display: none;
    }
    .mobile-hamburger-btn {
        display: flex;
    }
    .rendered-navbar .user-nav-name,
    .mobile-drawer .user-nav-name {
        font-size: 0.7rem !important;
    }
    .rendered-navbar .user-nav-avatar,
    .mobile-drawer .user-nav-avatar {
        width: 22px !important;
        height: 22px !important;
    }
    .rendered-navbar .logo img {
        width: 22px !important;
        height: 22px !important;
        margin-right: 6px !important;
    }
}

/* ==========================================================================
   X. MOBILE DRAWER
   ========================================================================== */
.mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 99999;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0.3s ease;
}
.mobile-drawer.active {
    visibility: visible;
    pointer-events: auto;
    transition: none;
}
.drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-drawer.active .drawer-backdrop {
    opacity: 1;
}
.drawer-content {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    background: #111111;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    z-index: 2;
}
.mobile-drawer.active .drawer-content {
    transform: translateX(0);
}
.mobile-drawer.drawer-no-animation {
    transition: none !important;
}
.mobile-drawer.drawer-no-animation .drawer-backdrop,
.mobile-drawer.drawer-no-animation .drawer-content {
    transition: none !important;
}
.drawer-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 32px;
    padding-bottom: 0;
}
.drawer-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.6rem;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.drawer-close:hover {
    color: #aaa;
}
.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.drawer-link {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 1rem; font-weight: 700; color: #fff;
    text-decoration: none;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: opacity 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.drawer-link i { font-size: 1.1rem; color: #666; }
.drawer-link:hover {
    opacity: 0.7;
}
.drawer-link:hover i { color: #fff; }

/* ==========================================================================
   2. FOOTER (PROF-FOOTER)
   ========================================================================== */
.rendered-footer.prof-footer {
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #000;
    border-top: 1px solid rgba(255,255,255,0.1);
    width: 100%;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
}

.footer-socials a:hover {
    opacity: 1;
    background: transparent;
    transform: none;
}

.footer-socials svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.8rem;
}

.footer-made-with {
    color: #fff;
    opacity: 1;
}

.footer-badge strong {
    color: #fff;
    letter-spacing: -0.5px;
}

.store-root .footer-cta,
.footer-cta {
    text-decoration: none !important;
    background: #ffffff !important;
    color: #000000 !important;
    padding: 8px 18px !important;
    border-radius: 100px !important;
    font-weight: 800 !important;
    font-size: 0.75rem !important;
    transition: all 0.2s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block !important;
}

.store-root .footer-cta:hover,
.footer-cta:hover {
    opacity: 0.9 !important;
    transform: scale(1.05) !important;
}

@media (max-width: 900px) {
    .rendered-footer.prof-footer {
        flex-direction: column;
        gap: 20px;
        padding: 24px 20px;
        text-align: center;
    }
    .footer-badge, .footer-brand {
        flex-direction: column;
        gap: 12px;
    }
}

/* 3. HERO */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
    background: radial-gradient(circle at center, var(--theme-card-bg) 0%, var(--theme-bg) 100%);
    overflow: hidden;
}
#particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-title {
    font-size: 6rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    margin-bottom: 16px;
    line-height: 0.9;
    text-transform: uppercase;
    color: var(--theme-primary);
}
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--theme-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* 3. LICENCIAS */
.premium-lic-section {
    padding: 100px 5%;
    background: var(--theme-bg);
}
.section-header h2 { font-size: 3rem; margin-bottom: 12px; letter-spacing: -0.04em; color: var(--theme-primary); }
.section-header p { color: var(--theme-muted); font-size: 1.1rem; }

.premium-lic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.lic-card-premium {
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-border);
    border-radius: 24px;
    padding: 32px 24px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}
.lic-card-premium.featured {
    background: var(--theme-primary);
    color: var(--theme-bg);
    transform: scale(1.05);
    z-index: 2;
}

.lic-name-label {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    opacity: 0.6;
}

.lic-price-tag {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 32px;
    letter-spacing: -0.04em;
    display: flex;
    align-items: flex-start;
}
.lic-price-tag span { font-size: 1.5rem; margin-top: 12px; margin-right: 4px; }

.lic-feature-list {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
    padding: 0;
}
.lic-feature-list li {
    margin-bottom: 16px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.lic-cta-btn {
    width: 100%;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: transparent;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}
.featured .lic-cta-btn {
    background: #000;
    color: #fff;
    border: none;
}

/* 4. FAQ */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 5%;
}
.faq-item {
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-border);
    border-radius: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}
.faq-question {
    width: 100%;
    padding: 24px 32px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    color: var(--theme-muted);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 32px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-top: 8px;
    padding-bottom: 32px;
}

.faq-item .bi-plus {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .bi-plus {
    transform: rotate(45deg);
}

/* 5. FOOTER */
.rendered-footer {
    padding: 30px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--theme-border);
}
.footer-social { display: flex; gap: 20px; font-size: 18px; }
.footer-brand { display: flex; align-items: center; gap: 16px; font-size: 11px; font-weight: 600; }

/* Scrollbar Premium para el Preview de la Tienda */
.store-root::-webkit-scrollbar,
.store-root *::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.store-root::-webkit-scrollbar-track,
.store-root *::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}
.store-root::-webkit-scrollbar-thumb,
.store-root *::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 99px;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: background 0.2s ease;
}
.store-root::-webkit-scrollbar-thumb:hover,
.store-root *::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 6. PRODUCTS TABS & SHELF (REAL PROFILE CLONE) */
.tabs-section {
    width: 100%;
    margin-bottom: 100px !important;
}

.tabs-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-bottom: 30px;
    position: relative;
    z-index: 10;
}

.tabs-inner {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-trigger {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    padding: 10px 24px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.tab-trigger:hover {
    color: rgba(255, 255, 255, 0.8);
}

.tab-trigger.active {
    background: #fff;
    color: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.products-container-modular {
    position: relative;
    padding: 0 5%;
}

.products-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.row-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.view-all {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 12px;
    transition: opacity 0.2s;
}

.view-all:hover {
    opacity: 0.8;
}

.btn-nav-mini {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-nav-mini:hover {
    background: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.2);
}

.products-shelf {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 8px 0 20px 0;
    scrollbar-width: none;
    margin: 0 auto;
    width: max-content;
    max-width: 1370px; /* Limits to ~6 products (215px each + 16px gap) */
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
}

.products-shelf::-webkit-scrollbar {
    display: none;
}

.premium-product-card {
    flex: 0 0 215px;
    width: 215px;
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    padding: 12px;
    transition: background 0.3s ease;
    scroll-snap-align: start;
    text-align: left;
}

.premium-product-card:hover {
    background: rgba(255, 255, 255, 0.04);
}

.explore-img-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.explore-main-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.explore-play-action {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
}

.premium-product-card:hover .explore-play-action {
    opacity: 1;
    transform: translateY(0);
}

.explore-heart-action {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.explore-product-info {
    padding: 10px 4px 0;
}

.explore-product-name {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.explore-product-author {
    font-size: 0.75rem;
    color: var(--theme-muted);
}

/* 7. SERVICIOS (REAL PROFILE CLONE) */
.explore-row {
    margin-bottom: 80px !important;
    padding: 0 5%;
    position: relative;
    text-align: center;
}

.row-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
}

.row-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--theme-primary);
}

.shelf-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0 20px 0;
    scrollbar-width: none;
    justify-content: center;
    flex-wrap: wrap;
}

.shelf-container::-webkit-scrollbar {
    display: none;
}

.shelf-card {
    flex: 0 0 200px;
    background: #111;
    border-radius: 20px;
    padding: 12px;
    transition: background 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
    text-align: left;
}

.shelf-card:hover {
    background: #181818;
    border-color: rgba(255, 255, 255, 0.05);
}

.shelf-card-img {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 16px;
    object-fit: cover;
    margin-bottom: 12px;
}

.shelf-card-info {
    padding: 0 4px;
}

.shelf-card-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shelf-card-sub {
    font-size: 0.8rem;
    color: var(--theme-muted);
}

/* ==========================================================================
   8. RESPONSIVE MOBILE STYLES (REAL PHONE & SIMULATOR)
   ========================================================================== */

/* Reglas compartidas para pantallas móviles reales y el simulador de celular del Builder */
@media (max-width: 768px) {
    .rendered-navbar {
        padding: 12px 10px;
    }
    .rendered-navbar .mobile-hamburger-btn {
        display: flex !important;
    }
    .rendered-navbar .nav-links {
        display: none !important;
    }
    .rendered-navbar .nav-text-btn {
        display: none !important;
    }
    .rendered-navbar .user-nav-name {
        font-size: 0.7rem !important;
    }
    .rendered-navbar .user-nav-avatar {
        width: 22px !important;
        height: 22px !important;
    }
    .rendered-navbar .logo img {
        width: 22px !important;
        height: 22px !important;
        margin-right: 6px !important;
    }
    /* Respect transparent or custom styling from engine.js dynamic styles */

    .hero {
        min-height: 80vh;
        padding-top: 100px;
        padding-bottom: 60px;
    }
    .hero-title {
        font-size: 2.8rem;
        letter-spacing: -0.03em;
        line-height: 1.0;
    }
    .hero-subtitle {
        font-size: 0.95rem;
        max-width: 90%;
    }

    .premium-lic-section {
        padding: 60px 5%;
    }
    .section-header h2 {
        font-size: 2.2rem;
    }
    .section-header p {
        font-size: 0.95rem;
    }
    .premium-lic-grid {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start !important;
        gap: 16px;
        padding: 0 20px 20px 20px;
        padding-bottom: 20px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .premium-lic-grid::-webkit-scrollbar {
        display: none;
    }
    .lic-card-premium {
        min-width: 280px;
        flex: 0 0 auto;
        scroll-snap-align: center;
        padding: 32px 24px;
        border-radius: 24px;
    }
    .lic-card-premium.featured {
        transform: none;
    }
    .lic-price-tag {
        font-size: 3rem;
        margin-bottom: 20px;
    }

    .faq-section {
        padding: 60px 5%;
    }
    .faq-question {
        padding: 16px 20px;
        font-size: 0.95rem;
    }
    .faq-answer {
        padding: 0 20px;
    }
    .faq-item.active .faq-answer {
        padding-bottom: 20px;
    }

    .products-container-modular {
        padding: 0 16px;
    }
    .tabs-header {
        gap: 16px;
        margin-bottom: 20px;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    .tabs-inner {
        max-width: 100%;
        width: max-content;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .tabs-inner::-webkit-scrollbar {
        display: none;
    }
    .tab-trigger {
        padding: 8px 16px;
        font-size: 0.75rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .products-shelf {
        justify-content: flex-start !important;
        gap: 12px;
        padding: 4px 4px 16px 4px;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        width: auto !important;
        max-width: 100% !important;
    }
    .products-shelf::-webkit-scrollbar {
        display: none !important;
    }
    .premium-product-card {
        flex: 0 0 140px;
        width: 140px;
        padding: 8px;
        border-radius: 12px;
    }
    .explore-play-action {
        opacity: 1 !important;
        transform: none !important;
        width: 32px;
        height: 32px;
    }
    .explore-play-action i {
        font-size: 1rem !important;
    }
    .explore-product-name {
        font-size: 0.75rem;
    }
    .explore-product-author {
        font-size: 0.65rem;
    }

    .explore-row {
        padding: 0 16px;
        margin-bottom: 60px !important;
    }
    .row-title {
        font-size: 1.6rem;
    }
    .shelf-container {
        justify-content: flex-start !important;
        gap: 12px;
        padding: 4px 4px 16px 4px;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .shelf-container::-webkit-scrollbar {
        display: none !important;
    }
    .shelf-card {
        flex: 0 0 140px;
        width: 140px;
        padding: 8px;
        border-radius: 16px;
    }
    .shelf-card-title {
        font-size: 0.8rem;
    }
    .shelf-card-sub {
        font-size: 0.7rem;
    }

    .rendered-footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 24px 16px;
    }
    .footer-brand, .footer-badge {
        flex-direction: column;
        gap: 8px;
    }

    .store-root::-webkit-scrollbar,
    .store-root *::-webkit-scrollbar {
        display: none !important;
    }
}

/* Aplicación idéntica y forzada para cuando se visualiza dentro del simulador celular del Builder */
.preview-device.mobile .store-root {
    .rendered-navbar {
        padding: 12px 10px;
    }
    .mobile-drawer .drawer-content {
        padding: 12px 10px !important;
    }
    .rendered-navbar .mobile-hamburger-btn {
        display: flex !important;
    }
    .rendered-navbar .nav-links {
        display: none !important;
    }
    .rendered-navbar .nav-text-btn {
        display: none !important;
    }
    .rendered-navbar .user-nav-name {
        font-size: 0.7rem !important;
    }
    .mobile-drawer .user-nav-name {
        font-size: 0.7rem !important;
    }
    .rendered-navbar .user-nav-avatar {
        width: 22px !important;
        height: 22px !important;
    }
    .mobile-drawer .user-nav-avatar {
        width: 22px !important;
        height: 22px !important;
    }
    .rendered-navbar .logo img {
        width: 22px !important;
        height: 22px !important;
        margin-right: 6px !important;
    }
    /* Respect transparent or custom styling from engine.js dynamic styles */

    .hero {
        min-height: 80vh;
        padding-top: 100px;
        padding-bottom: 60px;
    }
    .hero-title {
        font-size: 2.8rem;
        letter-spacing: -0.03em;
        line-height: 1.0;
    }
    .hero-subtitle {
        font-size: 0.95rem;
        max-width: 90%;
    }

    .premium-lic-section {
        padding: 60px 5%;
    }
    .section-header h2 {
        font-size: 2.2rem;
    }
    .section-header p {
        font-size: 0.95rem;
    }
    .premium-lic-grid {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start !important;
        gap: 16px;
        padding: 0 20px 20px 20px;
        padding-bottom: 20px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .lic-card-premium {
        min-width: 280px;
        flex: 0 0 auto;
        scroll-snap-align: center;
        padding: 32px 24px;
        border-radius: 24px;
    }
    .lic-card-premium.featured {
        transform: none;
    }
    .lic-price-tag {
        font-size: 3rem;
        margin-bottom: 20px;
    }

    .faq-section {
        padding: 60px 5%;
    }
    .faq-question {
        padding: 16px 20px;
        font-size: 0.95rem;
    }
    .faq-answer {
        padding: 0 20px;
    }
    .faq-item.active .faq-answer {
        padding-bottom: 20px;
    }

    .products-container-modular {
        padding: 0 16px;
    }
    .tabs-header {
        gap: 16px;
        margin-bottom: 20px;
    }
    .tab-trigger {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
    .products-shelf {
        justify-content: flex-start !important;
        gap: 12px;
        padding: 4px 4px 16px 4px;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        width: auto !important;
        max-width: 100% !important;
    }
    .products-shelf::-webkit-scrollbar {
        display: none !important;
    }
    .premium-product-card {
        flex: 0 0 140px;
        width: 140px;
        padding: 8px;
        border-radius: 12px;
    }
    .explore-play-action {
        opacity: 1 !important;
        transform: none !important;
        width: 32px;
        height: 32px;
    }
    .explore-play-action i {
        font-size: 1rem !important;
    }
    .explore-product-name {
        font-size: 0.75rem;
    }
    .explore-product-author {
        font-size: 0.65rem;
    }

    .explore-row {
        padding: 0 16px;
        margin-bottom: 60px !important;
    }
    .row-title {
        font-size: 1.6rem;
    }
    .shelf-container {
        justify-content: flex-start !important;
        gap: 12px;
        padding: 4px 4px 16px 4px;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .shelf-container::-webkit-scrollbar {
        display: none !important;
    }
    .shelf-card {
        flex: 0 0 140px;
        width: 140px;
        padding: 8px;
        border-radius: 16px;
    }
    .shelf-card-title {
        font-size: 0.8rem;
    }
    .shelf-card-sub {
        font-size: 0.7rem;
    }

    .rendered-footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 24px 16px;
    }
    .footer-brand, .footer-badge {
        flex-direction: column;
        gap: 8px;
    }

    /* Ocultar barra de scroll de forma absoluta en el simulador móvil */
    &::-webkit-scrollbar,
    *::-webkit-scrollbar {
        display: none !important;
    }
    scrollbar-width: none !important;
}

/* License Slider Arrows CSS */
@media (min-width: 900px) {
    .lic-slider-btn {
        display: none !important;
    }
}
@media (max-width: 900px) {
    .lic-next-btn {
        right: -10px !important;
    }
}

/* ============================================================
   SMART PROFILE SEARCH SECTION (PSS)
   ============================================================ */
.profile-search-section {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'Geist', sans-serif;
    padding-left: 5%;
    padding-right: 5%;
}

/* Header row */
.pss-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
}

.pss-title-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pss-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #444;
    text-transform: uppercase;
}

/* ---- Big Search Bar ---- */
.pss-search-bar {
    position: relative;
    display: flex;
    align-items: center;
    background: #080808;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 0 24px;
    height: 64px;
    gap: 16px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(255, 255, 255, 0.02);
}

.pss-search-bar:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: #0b0b0b;
}

.pss-search-bar:focus-within {
    border-color: #ffffff;
    background: #0d0d0d;
    box-shadow: 0 0 0 1px #ffffff, 0 10px 30px rgba(0, 0, 0, 0.8);
}

.pss-search-icon {
    font-size: 1.2rem;
    color: #555;
    flex-shrink: 0;
    transition: color 0.2s;
}

.pss-search-bar:focus-within .pss-search-icon {
    color: #ffffff;
}

.pss-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 500;
    font-family: 'Geist', sans-serif;
    caret-color: #8b5cf6;
}

.pss-input::placeholder {
    color: #333;
    font-weight: 400;
}

.pss-clear-btn {
    background: #1a1a1a;
    border: none;
    color: #666;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.pss-clear-btn:hover {
    background: #2a2a2a;
    color: #fff;
}

/* ---- Results Rows ---- */
.pss-results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.pss-row {
    display: grid;
    grid-template-columns: 50px minmax(120px, 1fr) 40px minmax(140px, 2fr) 48px 90px 36px;
    align-items: center;
    gap: 14px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.pss-row:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.pss-portada {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    background: #111;
    border: 1px solid rgba(255,255,255,0.05);
}

.pss-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-align: left;
}

.pss-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pss-artist {
    font-size: 0.75rem;
    color: #666;
    margin-top: 2px;
}

.pss-play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.pss-play-btn:hover {
    transform: scale(1.08);
    background: #fff;
}

.pss-wave-container {
    width: 100%;
    min-height: 36px;
    position: relative;
    cursor: pointer;
}

.pss-duration {
    font-size: 0.78rem;
    color: #888;
    font-weight: 700;
    text-align: center;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.pss-price-btn {
    background: #fff;
    color: #000;
    border: none;
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    text-align: center;
}

.pss-price-btn.free {
    background: transparent;
    border: 1px solid #333;
    color: #fff;
}

.pss-price-btn:hover {
    filter: brightness(1.15);
    transform: scale(1.04);
}

/* Share button */
.pss-share-btn {
    background: transparent;
    border: none;
    color: #555;
    font-size: 1rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.18s;
    flex-shrink: 0;
}

.pss-share-btn:hover,
.pss-row:hover .pss-share-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #eee;
    transform: scale(1.05);
}

/* ---- No-results / Suggest Banner ---- */
.pss-suggest-banner {
    padding: 40px 0;
    text-align: center;
}

.pss-suggest-inner {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.pss-suggest-icon {
    font-size: 2.2rem;
    color: #2a2a2a;
}

.pss-suggest-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.pss-suggest-sub {
    font-size: 0.75rem;
    color: #555;
    margin: 0;
}

/* ---- Animation ---- */
@keyframes pssRowIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pss-row {
    animation: pssRowIn 0.22s ease both;
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
    /* Search heading: break "Empieza tu" / "próximo hit" into 2 centered lines */
    .pss-section-title {
        font-size: 1.5rem !important;
        max-width: 200px;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 20px !important;
        line-height: 1.25;
        word-break: break-word;
        text-align: center !important;
    }

    .pss-search-bar {
        height: 52px;
        padding: 0 14px;
    }
    .pss-input {
        font-size: 1rem;
    }

    /* Mobile row order: portada | nombre | PLAY | COMPRAR | 3 puntos */
    .pss-row {
        grid-template-columns: 42px 1fr 38px minmax(72px, auto) 32px;
        gap: 8px;
        padding: 10px 12px;
    }
    .pss-wave-container,
    .pss-duration {
        display: none !important;
    }

    /* Play button – slightly smaller but still round & clear */
    .pss-play-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    /* Price/buy button – compact pill */
    .pss-price-btn {
        padding: 7px 10px;
        font-size: 0.78rem;
        font-weight: 800;
        border-radius: 50px;
        white-space: nowrap;
    }

    /* Share icon – tight */
    .pss-share-btn {
        width: 32px;
        height: 32px;
    }

    /* Cover image slightly smaller */
    .pss-portada {
        width: 42px;
        height: 42px;
    }
}
