/* Reutiliza los recortes de la portada de referencia que compartió el usuario. */
.home-art-render {
    object-fit: contain;
    filter: none;
}

.home-art-mark,
.home-service-logo,
.home-plan-copy {
    display: none !important;
}

.home-plan-card {
    overflow: hidden;
    border: 1px solid #e7e3f2;
    border-radius: 15px;
    background: #fff;
}

.home-plan-art {
    position: relative;
    display: block;
    height: auto;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
    background-image: none !important;
}

.home-plan-art::after {
    display: none;
}

.home-reference-card {
    display: block;
    width: 100%;
    height: auto;
}

.home-plan-arrow {
    right: 13px;
    bottom: 7px;
    color: #fff;
    font-size: 24px;
    text-shadow: 0 1px 4px #0008;
}

.home-reference-price {
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 5px 14px;
    color: #6a6d82;
    font-size: 10px;
}

.home-reference-price strong {
    display: block;
    color: #11152f;
    font-size: 14px;
}

.page-catalog .plan-card .plan-art {
    height: auto;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
    background-image: none !important;
}

.page-catalog .reference-plan-card {
    display: block;
    width: 100%;
    height: auto;
}

.page-catalog .plan-art::after {
    display: none;
}

/* Mantiene el catálogo alineado aunque las imágenes originales tengan formatos distintos. */
.page-catalog #product-grid {
    align-items: start;
}

.page-catalog .plan-card {
    display: flex;
    flex-direction: column;
    align-self: start;
}

.page-catalog .plan-card[hidden] {
    display: none !important;
}

.page-catalog .plan-art {
    aspect-ratio: 1.82 / 1;
    height: auto;
    flex: none;
    background: #11142b;
}

.page-catalog .reference-plan-card {
    width: 100%;
    height: 100%;
    aspect-ratio: 1.82 / 1;
    object-fit: cover;
    object-position: center;
}

.page-catalog .plan-bottom {
    height: auto;
    min-height: 61px;
    flex: none;
}

.plan-art {
    background-image: none !important;
}

.plan-art .plan-visual {
    display: none;
}

.poster-reference-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
}

.page-product .product-poster:has(.poster-reference-image) {
    padding: 0;
    overflow: hidden;
}

.tutorial-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    padding: 6px 10px;
    border: 1px solid #e3d7ff;
    border-radius: 17px;
    background: #efe8ff;
    color: #6323d4;
    font: 700 9px 'DM Sans', sans-serif;
    vertical-align: 3px;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}

.tutorial-inline:hover {
    background: #e5d8ff;
    transform: translateY(-1px);
}

.tutorial-note {
    display: block;
    margin-top: -5px;
    color: #878aa0;
    font-size: 8px;
}

.home-community-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 7px;
}

.home-community-links a,
.home-community-links button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 27px;
    padding: 4px 9px;
    border: 1px solid #ffffff70;
    border-radius: 14px;
    color: #fff;
    background: #ffffff17;
    font: 700 8px 'DM Sans', sans-serif;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}

.home-community-links a:hover,
.home-community-links button:hover {
    background: #ffffff30;
    transform: translateY(-1px);
}

.home-referral .invite-link {
    margin-left: auto;
    flex: none;
}

.home-referral > div {
    min-width: 0;
}

.home-referral {
    gap: 11px;
}

@media (min-width: 1151px) {
    .nav-wrap {
        width: min(1570px, 82vw);
        height: 64px;
        gap: 22px;
    }

    .page-home .nav-wrap {
        width: min(1670px, 87vw);
        height: 64px;
        gap: 22px;
    }

    .brand,
    .page-home .brand {
        gap: 9px;
        font-size: 24px;
        letter-spacing: -.8px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

    .main-nav a {
        gap: 8px;
        padding: 10px 12px;
        font-size: 14px;
    }

    .main-nav a .ui-icon {
        width: 17px;
        height: 17px;
    }

    .page-home .home-page {
        width: min(1740px, calc(100% - 132px));
    }

    .container:not(.home-page) {
        width: min(1700px, 90vw);
    }
}

/* Catálogo: composición oscura y abierta según la referencia de categorías. */
.page-catalog {
    background:
        linear-gradient(180deg, #090d2d 0, #101345 185px, #7851e8 222px, #f2efff 295px, #f8f8fd 400px, #f8f8fd 100%);
    color: #11152f;
}

.page-catalog .hero-catalog {
    height: 195px;
    min-height: 195px;
    margin: 0;
    padding: 15px 74px 18px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.page-catalog .hero-catalog::before {
    display: none;
}

.page-catalog .hero-catalog .hero-copy {
    max-width: 790px;
}

.page-catalog .catalog-eyebrow {
    display: block;
    margin: 0 0 12px;
    color: #d0c2ff;
    font: 700 10px/1.2 'DM Sans', sans-serif;
    letter-spacing: 1.5px;
}

.page-catalog .catalog-eyebrow::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    margin: 0 9px 1px 0;
    border-radius: 50%;
    background: #44e6c1;
    box-shadow: 0 0 10px #44e6c1;
}

.page-catalog .hero-catalog h1 {
    margin: 0 0 8px;
    font-size: clamp(46px, 3vw, 56px);
    letter-spacing: -1.8px;
}

.page-catalog .hero-catalog p {
    margin: 0 0 17px;
    font-size: 16px;
}

.page-catalog .hero-catalog .search-box {
    width: min(780px, 100%);
    height: 48px;
    border-radius: 28px;
}

.page-catalog .hero-catalog .hero-art {
    top: -8px;
    right: 155px;
    width: 430px;
    height: 170px;
}

.page-catalog .hero-catalog .hero-foot {
    display: none;
}

.page-catalog .hero-catalog .hero-foot span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.page-catalog .hero-catalog .hero-foot .ui-icon {
    width: 13px;
    height: 13px;
    color: #bc74ff;
}

.page-catalog .hero-reference-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: screen;
}

.page-catalog .hero-reference-art {
    -webkit-mask-image: radial-gradient(ellipse at center, #000 50%, transparent 82%);
    mask-image: radial-gradient(ellipse at center, #000 50%, transparent 82%);
}

.page-catalog .category-row {
    position: relative;
    z-index: 2;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin: 16px auto 0;
    padding: 0 72px;
}

.page-catalog .category-chip {
    height: 60px;
    border-radius: 17px;
    font-size: 15px;
}

.page-catalog .featured-banner {
    height: 210px;
    width: 63%;
    margin: 20px auto 0;
}

body.page-catalog {
    overflow-x: clip;
}

.page-catalog .feature-n {
    top: 17px;
    right: 23%;
    width: 225px;
    height: 160px;
    padding: 22px 32px;
    object-fit: contain;
    font-size: 0;
    border: 1px solid #b64cff;
    border-radius: 20px;
    background: radial-gradient(ellipse at 35% 25%, #291438 0, #0b0b20 70%);
    box-shadow: 0 0 12px #e83cffb5, 0 0 27px #692aff82, 0 8px 12px #090a2740;
    transform: perspective(700px) rotateY(-8deg) rotateZ(7deg);
    filter: none;
}

.page-catalog .feature-side {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.page-catalog .feature-side img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.page-catalog .feature-side {
    z-index: 0;
    width: clamp(165px, 14vw, 250px);
}

.page-catalog .side-disney {
    left: clamp(-250px, -14vw, -165px);
    right: auto;
    transform: translateX(0) rotate(-3deg);
}

.page-catalog .side-spotify {
    right: clamp(-250px, -14vw, -165px);
    left: auto;
    transform: translateX(0) rotate(3deg);
}

.page-catalog .feature-n.feature-artwork {
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: transparent;
    box-shadow: none;
    mix-blend-mode: normal;
    clip-path: polygon(20% 5%, 91% 0, 100% 7%, 94% 88%, 86% 100%, 10% 95%, 1% 88%, 0 78%, 8% 22%);
    filter: drop-shadow(0 0 12px #ed39ffb5) drop-shadow(0 0 21px #472aff70);
    -webkit-mask-image: none;
    mask-image: none;
    transform: none;
}

.page-catalog .feature-side {
    transition: opacity 760ms ease, transform 820ms cubic-bezier(.22,.78,.24,1), filter 760ms ease;
}

.page-catalog .featured-banner.is-sliding-next,
.page-catalog .featured-banner.is-sliding-prev {
    pointer-events: none;
}

.page-catalog .featured-main {
    transition: transform 860ms cubic-bezier(.22,.78,.24,1);
    will-change: transform;
}

.page-catalog .featured-main.carousel-incoming {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    flex: none;
    transform: translateX(var(--carousel-start, 100%));
    pointer-events: none;
}

.page-catalog .featured-banner.is-sliding-next .featured-main:not(.carousel-incoming) {
    transform: translateX(-100%);
}

.page-catalog .featured-banner.is-sliding-prev .featured-main:not(.carousel-incoming) {
    transform: translateX(100%);
}

.page-catalog .featured-banner.is-sliding-next .featured-main.carousel-incoming,
.page-catalog .featured-banner.is-sliding-prev .featured-main.carousel-incoming {
    transform: translateX(0);
}

.page-catalog .featured-banner.is-sliding-next .side-disney,
.page-catalog .featured-banner.is-sliding-prev .side-spotify {
    transform: translateX(-34%) rotate(-5deg) scale(.84);
    opacity: .68;
}

.page-catalog .featured-banner.is-sliding-next .side-spotify,
.page-catalog .featured-banner.is-sliding-prev .side-disney {
    transform: translateX(34%) rotate(5deg) scale(.84);
    opacity: .68;
}

@media (prefers-reduced-motion: reduce) {
    .page-catalog .feature-side {
        animation: none !important;
        transition: none !important;
    }
    .page-catalog .featured-main { transition: none !important; }
}

.page-catalog .filter-bar h2,
.page-catalog .section-heading h2 {
    font-size: 25px;
}

.page-catalog .filter-bar {
    margin-bottom: 6px;
}

.page-catalog .filter-pills {
    flex-wrap: wrap;
}

.page-catalog .category-filter .ui-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    color: #7028ec;
    vertical-align: -3px;
}

.page-catalog .section-heading {
    margin: 10px 0 8px;
}

.page-catalog .trust-strip {
    margin: 12px 0 15px;
    padding: 6px 16px;
}

.page-catalog .filter-pill,
.page-catalog .sort-button,
.page-catalog .text-link {
    font-size: 14px;
}

.page-catalog .plan-bottom {
    height: 68px;
    padding: 8px 12px;
}

.page-catalog .plan-bottom strong {
    font-size: 17px;
}

.page-catalog .plan-bottom .btn {
    min-height: 37px;
    padding: 9px 13px;
    font-size: 11px;
}

/* La barra superior conserva la misma identidad en todas las rutas. */
.page-home .topbar {
    background: #090d2df2;
    color: #fff;
    border-bottom: 1px solid #ffffff19;
    box-shadow: none;
}

.page-home .brand {
    color: #fff;
}

.page-home .nav-divider {
    background: #ffffff34;
}

.page-home .main-nav a {
    color: #e4e5f8;
}

.page-home .main-nav a:hover,
.page-home .main-nav a.active {
    color: #fff;
    background: linear-gradient(120deg, #7125e8, #3c20ac);
}

.page-home .nav-login {
    color: #fff;
    border-color: #ffffff5c;
    background: #10153c;
}

.page-home .nav-search {
    border-color: #ffffff40;
    background: #10153c;
    color: #e4e5f8;
}

.page-home .nav-search input {
    color: #fff;
}

.page-home .nav-search input::placeholder {
    color: #c1c4dc;
}

.page-home .cart-button {
    border-color: #ffffff40;
    background: #111638;
    color: #fff;
}

.page-home .mobile-menu {
    border-color: #ffffff44;
    color: #fff;
}

@media (max-width: 1150px) {
    .page-catalog {
        background:
            linear-gradient(180deg, #090d2d 0, #101345 230px, #7851e8 270px, #f2efff 340px, #f8f8fd 440px, #f8f8fd 100%);
    }

    .page-catalog .hero-catalog {
        height: 240px;
        min-height: 240px;
        padding: 18px 28px;
    }

    .page-catalog .hero-catalog .hero-art {
        right: 12px;
        width: 330px;
        height: 150px;
        top: 76px;
        opacity: .85;
    }

    .page-catalog .category-row {
        padding: 0 12px;
    }

    .page-catalog .featured-banner {
        width: 75%;
        margin-right: auto;
        margin-left: auto;
    }
}

@media (min-width: 1151px) and (max-width: 1350px) {
    .page-catalog .hero-catalog .hero-copy {
        max-width: 610px;
    }

    .page-catalog .hero-catalog .search-box {
        width: min(600px, 58vw);
    }

    .page-catalog .hero-catalog .hero-art {
        top: -8px;
        right: -24px;
        width: 380px;
        height: 170px;
    }
}

@media (max-width: 600px) {
    .page-catalog {
        background:
            linear-gradient(180deg, #090d2d 0, #101345 390px, #7851e8 455px, #f2efff 520px, #f8f8fd 600px, #f8f8fd 100%);
    }

    .page-catalog .hero-catalog {
        height: auto;
        min-height: 320px;
        padding: 20px 18px 18px;
    }

    .page-catalog .hero-catalog h1 {
        font-size: 34px;
    }

    .page-catalog .hero-catalog p {
        max-width: 80%;
        font-size: 13px;
    }

    .page-catalog .hero-catalog .search-box {
        width: 100%;
    }

    .page-catalog .hero-catalog .hero-art {
        top: 148px;
        right: -18px;
        width: 220px;
        height: 125px;
        opacity: .72;
    }

    .page-catalog .category-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: 0;
        gap: 7px;
        margin-bottom: 14px;
    }

    .page-catalog .category-chip {
        height: 48px;
        font-size: 11px;
    }

    .page-catalog .featured-banner {
        width: calc(100% - 16px);
        height: 170px;
        margin: 14px 8px 0;
    }

    .page-catalog .feature-side {
        display: none;
    }

    .page-catalog .feature-n {
        right: 10%;
        width: 130px;
        height: 120px;
    }

    .page-catalog .plan-bottom {
        height: 57px;
        padding: 6px 8px;
    }
}

/* Las páginas de categoría usan un título largo y necesitan espacio para la búsqueda. */
.page-catalog.page-category {
    background: linear-gradient(180deg, #090d2d 0, #101345 270px, #7851e8 315px, #f2efff 380px, #f8f8fd 485px, #f8f8fd 100%);
}

.page-catalog .hero-category {
    height: auto;
    min-height: 300px;
    padding-bottom: 26px;
}

.page-catalog .hero-category .hero-copy {
    max-width: 850px;
}

.page-catalog .hero-category p {
    max-width: 790px;
    line-height: 1.45;
}

.page-catalog .hero-category .search-box {
    position: relative;
    z-index: 2;
}

.page-catalog .hero-category .hero-art {
    opacity: .55;
    pointer-events: none;
}

@media (max-width: 1150px) {
    .page-catalog .hero-category {
        min-height: 310px;
        padding-bottom: 26px;
    }
}

@media (max-width: 600px) {
    .page-catalog .hero-category {
        min-height: 370px;
        padding-bottom: 22px;
    }

    .page-catalog .hero-category p {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .home-plan-art {
        height: auto;
        padding: 0;
    }

    .tutorial-inline {
        margin-left: 2px;
        padding: 5px 7px;
        font-size: 8px;
    }

    .tutorial-note {
        margin-top: 2px;
    }

    .home-community-links {
        margin-top: 5px;
    }

    .home-community-links a,
    .home-community-links button {
        font-size: 7px;
        padding: 3px 5px;
    }

    .home-referral .invite-link {
        padding: 7px 8px;
        font-size: 8px;
    }
}
.search-suggestions {
    position: fixed;
    z-index: 70;
    max-height: min(390px, calc(100vh - 24px));
    overflow-y: auto;
    padding: 7px;
    border: 1px solid #e5def7;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 42px #17113c30;
}

.search-suggestions[hidden] {
    display: none;
}

.search-suggestion {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 62px;
    padding: 8px 10px;
    border-radius: 11px;
    color: #171a39;
    text-decoration: none;
}

.search-suggestion:hover,
.search-suggestion:focus-visible {
    outline: none;
    background: #f3efff;
}

.search-suggestion img {
    flex: 0 0 48px;
    width: 48px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
    background: #101438;
}

.search-suggestion-copy {
    display: grid;
    flex: 1;
    min-width: 0;
    gap: 3px;
}

.search-suggestion-copy strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-suggestion-copy small {
    overflow: hidden;
    color: #747895;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-suggestion>b {
    flex: none;
    color: #6124d5;
    font-size: 12px;
    white-space: nowrap;
}

.search-suggestions-empty {
    padding: 16px 12px;
    color: #737792;
    font-size: 13px;
}

.catalog-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 20px 0 8px;
}

.catalog-pagination[hidden],
.catalog-empty[hidden] {
    display: none;
}

.pagination-count {
    color: #737792;
    font-size: 13px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-page {
    display: grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #e2dcf4;
    border-radius: 11px;
    background: #fff;
    color: #252443;
    font-size: 13px;
    font-weight: 700;
}

.pagination-page:hover:not(:disabled),
.pagination-page.active {
    border-color: #7028ec;
    background: #7028ec;
    color: #fff;
}

.pagination-page:disabled {
    cursor: default;
    opacity: .45;
}

.pagination-ellipsis {
    padding: 0 3px;
    color: #777b96;
}

.catalog-empty {
    padding: 28px;
    border: 1px dashed #d9d0f0;
    border-radius: 15px;
    color: #737792;
    text-align: center;
}

.home-post-image {
    position: relative;
}

.store-card-badge {
    position: absolute;
    z-index: 8;
    top: 9px;
    right: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 26px;
    max-width: calc(100% - 18px);
    padding: 4px 10px;
    overflow: hidden;
    border: 1px solid #ffffffd9;
    border-radius: 999px;
    background: linear-gradient(100deg, #fff8cf, #ffe8f7);
    color: #211a34;
    box-shadow: 0 2px 8px #08091f40;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-card-badge .ui-icon {
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    color: #6922dd;
    stroke-width: 2.2;
}

.store-card-badge.is-bestseller .ui-icon {
    color: #ef4a18;
}

.home-post-image .store-card-badge {
    top: 9px;
    right: 9px;
}

@media (max-width: 600px) {
    .store-card-badge {
        top: 6px;
        right: 6px;
        gap: 4px;
        min-height: 23px;
        padding: 3px 7px;
        font-size: 9px;
    }

    .store-card-badge .ui-icon {
        flex-basis: 13px;
        width: 13px;
        height: 13px;
    }
}

@media (max-width: 600px) {
    .catalog-pagination {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .pagination-controls {
        max-width: 100%;
        flex-wrap: wrap;
    }
}
