/* =========================================================
   PRODUCTOS DINÁMICOS, CATÁLOGO Y MODAL
   ========================================================= */

body.landing-ads-page.landing-modal-open {
    overflow: hidden;
}

.landing-products-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(280px, 310px)
    );
    justify-content: center;
    align-items: stretch;
    gap: 18px;
}

.landing-products-grid .landing-product-card--dynamic,
.landing-more-products__grid .landing-product-card--dynamic {
    min-height: 264px;
    height: 100%;
    display: grid;
    grid-template-columns:
        minmax(96px, 0.88fr)
        minmax(0, 1.12fr);
    grid-template-rows: minmax(0, 1fr) auto;
    column-gap: 13px;
    align-items: center;
    padding: 15px 14px 12px;

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.landing-products-grid .landing-product-card--dynamic:hover,
.landing-more-products__grid .landing-product-card--dynamic:hover {
    transform: translateY(-3px);
    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.28),
        0 0 20px var(--product-accent-bg);
}

.landing-product-card--dynamic .landing-product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    margin: 0;
}

.landing-product-card--dynamic .landing-product-card__media {
    min-width: 0;
    display: grid;
    place-items: center;
    align-self: stretch;
    padding-top: 24px;
}

.landing-product-card--dynamic .landing-product-card__tire {
    width: 100%;
    height: 170px;
    margin: 0;
    object-fit: contain;

    transition:
        transform 220ms ease,
        filter 220ms ease;
}

.landing-product-card--dynamic:hover .landing-product-card__tire {
    transform: translateY(-2px) scale(1.025);
    filter: drop-shadow(
        0 15px 18px rgba(0, 0, 0, 0.3)
    );
}

.landing-product-card--dynamic .landing-product-card__content {
    min-width: 0;
    align-self: center;
    text-align: left;
}

.landing-product-card--dynamic .landing-product-card__brand,
.landing-product-card--dynamic .landing-product-card__size,
.landing-product-card--dynamic .landing-product-card__model,
.landing-product-card--dynamic .landing-product-card__price,
.landing-product-card--dynamic .landing-product-card__old-price {
    text-align: left;
}

.landing-product-card--dynamic .landing-product-card__brand {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.landing-product-card--dynamic .landing-product-card__size {
    margin-top: 7px;
    font-size: 22px;
    line-height: 0.98;
    white-space: nowrap;
}

.landing-product-card--dynamic .landing-product-card__model {
    min-height: 30px;
    margin-top: 5px;
    overflow: hidden;
    line-height: 1.25;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.landing-product-card--dynamic .landing-product-card__price {
    margin-top: 11px;
    font-size: 32px;
    line-height: 1;
    letter-spacing: 0.01em;
}

.landing-product-card--dynamic .landing-product-card__footer {
    grid-column: 1 / -1;
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-top: 9px;
}

.landing-product-card--dynamic .landing-product-card__discount {
    min-width: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.landing-product-card__detail {
    flex: 1;
    min-height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 9px;
    background: transparent;
    color: var(--white);
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
}

.landing-product-card__detail:hover,
.landing-product-card__detail:focus-visible {
    border-color: rgba(255, 255, 255, 0.5);
}


/* =========================================================
   COLORES DINÁMICOS DE CADA FICHA
   ========================================================= */

.landing-product-card--dynamic.landing-product-card--pink {
    --product-accent: #ff1768;
    --product-accent-bg: rgba(255, 23, 104, 0.14);
    --product-accent-text: #ffffff;
}

.landing-product-card--dynamic.landing-product-card--orange {
    --product-accent: #ff941e;
    --product-accent-bg: rgba(255, 148, 30, 0.14);
    --product-accent-text: #061426;
}

.landing-product-card--dynamic.landing-product-card--blue {
    --product-accent: #08bcec;
    --product-accent-bg: rgba(8, 188, 236, 0.14);
    --product-accent-text: #061426;
}

.landing-product-card--dynamic.landing-product-card--yellow {
    --product-accent: #ffc400;
    --product-accent-bg: rgba(255, 196, 0, 0.14);
    --product-accent-text: #061426;
}

.landing-product-card--dynamic.landing-product-card--neon-yellow {
    --product-accent: #eaff00;
    --product-accent-bg: rgba(234, 255, 0, 0.14);
    --product-accent-text: #061426;
}

.landing-product-card--dynamic.landing-product-card--purple {
    --product-accent: #b44cff;
    --product-accent-bg: rgba(180, 76, 255, 0.14);
    --product-accent-text: #ffffff;
}

.landing-product-card--dynamic.landing-product-card--white {
    --product-accent: #f7fbff;
    --product-accent-bg: rgba(247, 251, 255, 0.13);
    --product-accent-text: #061426;
}

.landing-product-card--dynamic.landing-product-card--green {
    --product-accent: #39ff88;
    --product-accent-bg: rgba(57, 255, 136, 0.14);
    --product-accent-text: #061426;
}

.landing-product-card--dynamic.landing-product-card--red {
    --product-accent: #ff334f;
    --product-accent-bg: rgba(255, 51, 79, 0.14);
    --product-accent-text: #ffffff;
}

.landing-product-card.landing-product-card--dynamic {
    border-color: var(--product-accent);
}

.landing-product-card--dynamic .landing-product-card__badge {
    border: 1px solid var(--product-accent);
    background: var(--product-accent-bg);
    color: var(--product-accent);
}

.landing-product-card--dynamic .landing-product-card__discount {
    border: 1px solid var(--product-accent);
    background: var(--product-accent);
    color: var(--product-accent-text);
}

.landing-product-card--dynamic .landing-product-card__detail {
    border-color: var(--product-accent);
    color: var(--product-accent);

    transition:
        background-color 160ms ease,
        color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.landing-product-card--dynamic .landing-product-card__detail:hover,
.landing-product-card--dynamic .landing-product-card__detail:focus-visible {
    border-color: var(--product-accent);
    background: var(--product-accent);
    color: var(--product-accent-text);
    box-shadow: 0 0 18px var(--product-accent-bg);
    transform: translateY(-1px);
}


/* =========================================================
   INSIGNIAS PROMOCIONALES
   ========================================================= */

.landing-product-card--promo {
    --promo-badge-color: #ff6a1a;
    --promo-badge-bg: rgba(255, 73, 20, 0.18);
    --promo-badge-glow: rgba(255, 73, 20, 0.23);

    box-shadow:
        0 0 0 1px var(--promo-badge-color),
        0 12px 34px var(--promo-badge-glow);
}


.landing-product-card__promo-badge {
    position: absolute;
    top: 11px;
    right: 11px;
    z-index: 5;

    display: inline-flex;
    align-items: center;
    gap: 5px;

    max-width: 64%;
    min-height: 30px;
    padding: 5px 9px;

    border: 1px solid var(--promo-badge-color);
    border-radius: 999px;

    background:
        linear-gradient(
            180deg,
            var(--promo-badge-bg),
            rgba(3, 11, 24, 0.94)
        );

    color: var(--promo-badge-color);

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.045em;
    line-height: 1;
    text-transform: uppercase;

    box-shadow:
        0 0 17px var(--promo-badge-glow);

    white-space: nowrap;
}

.landing-product-card__promo-icon {
    flex: 0 0 auto;
    font-size: 14px;
    line-height: 1;
}

.landing-product-card__promo-badge > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.landing-product-card__promo-badge > span:last-child:empty {
    display: none;
}

.landing-product-modal__promo {
    display: inline-flex;
    align-items: center;
    width: fit-content;

    margin: 0 0 12px;
    padding: 7px 11px;

    border: 1px solid var(
        --promo-badge-color,
        #ff5a1f
    );
    border-radius: 999px;

    background: var(
        --promo-badge-bg,
        rgba(255, 90, 31, 0.14)
    );

    color: var(
        --promo-badge-color,
        #ff5a1f
    );

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;

    box-shadow:
        0 0 17px
        var(
            --promo-badge-glow,
            rgba(255, 90, 31, 0.22)
        );
}


@media (max-width: 640px) {

    .landing-product-card__promo-badge {
        top: 10px;
        right: 10px;

        max-width: 61%;
        min-height: 27px;
        padding: 4px 7px;

        font-size: 8px;
    }

    .landing-product-card__promo-icon {
        font-size: 12px;
    }
}


.landing-section-secondary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    cursor: pointer;

    transition:
        transform 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.landing-section-secondary-cta::after {
    content: "⌄";
    font-size: 17px;
    line-height: 1;
    transition: transform 160ms ease;
}

.landing-section-secondary-cta[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.landing-section-secondary-cta:hover,
.landing-section-secondary-cta:focus-visible {
    transform: translateY(-1px);
    border-color: var(--cyan);
    background: rgba(8, 188, 236, 0.1);
    box-shadow: 0 0 20px rgba(8, 188, 236, 0.14);
}

.landing-more-products {
    margin-top: 20px;
    padding: 24px;
    border: 1px solid rgba(8, 188, 236, 0.32);
    border-radius: 18px;
    background:
        radial-gradient(
            circle at 85% 0%,
            rgba(8, 188, 236, 0.07),
            transparent 34%
        ),
        rgba(4, 17, 32, 0.96);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.3);
}

.landing-more-products__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.landing-more-products__eyebrow {
    margin: 0 0 4px;
    color: var(--cyan);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.landing-more-products__header h3 {
    margin: 0;
    color: var(--white);
    font-size: 24px;
    text-transform: uppercase;
}

.landing-more-products__close {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    background: transparent;
    color: var(--white);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.landing-more-products__grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(260px, 300px)
    );
    justify-content: center;
    align-items: stretch;
    gap: 18px;
}

.landing-products-search {
    display: block;
    max-width: 520px;
    margin-bottom: 18px;
}

.landing-products-search span {
    display: block;
    margin-bottom: 7px;
    color: var(--text-soft);
    font-size: 12px;
}

.landing-products-search input {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid rgba(8, 188, 236, 0.42);
    border-radius: 10px;
    background: var(--navy-950);
    color: var(--white);
    font: inherit;
}

.landing-products-search-empty {
    margin: 18px 0 0;
    color: var(--text-soft);
    text-align: center;
}

.landing-product-modal[hidden],
.landing-more-products[hidden] {
    display: none !important;
}

.landing-product-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: grid;
    place-items: center;
    padding: 24px;
}

.landing-product-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 5, 15, 0.82);
    backdrop-filter: blur(8px);
}

.landing-product-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    display: grid;
    grid-template-columns: minmax(260px, 0.92fr) minmax(0, 1.08fr);
    overflow: auto;
    border: 1px solid rgba(8, 188, 236, 0.38);
    border-radius: 22px;
    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(236, 20, 88, 0.12),
            transparent 35%
        ),
        linear-gradient(145deg, #071b31, #030b18);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.62);
}

.landing-product-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: rgba(3, 11, 24, 0.88);
    color: var(--white);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.landing-product-modal__media {
    min-height: 500px;
    display: grid;
    place-items: center;
    padding: 44px 28px 30px;
    background:
        radial-gradient(
            circle at center,
            rgba(8, 188, 236, 0.13),
            transparent 56%
        );
}

.landing-product-modal__image {
    width: 100%;
    height: 390px;
    object-fit: contain;
    filter: drop-shadow(0 24px 32px rgba(0, 0, 0, 0.45));
}

.landing-product-modal__content {
    padding: 50px 44px 40px 20px;
}

.landing-product-modal__brand {
    margin: 0;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.landing-product-modal__content h2 {
    margin: 9px 0 0;
    color: var(--white);
    font-size: clamp(34px, 5vw, 54px);
    line-height: 0.95;
    text-transform: uppercase;
}

.landing-product-modal__model {
    margin: 10px 0 0;
    color: var(--text-soft);
    font-size: 18px;
    text-transform: uppercase;
}

.landing-product-modal__price-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
}

.landing-product-modal__price {
    color: var(--pink-bright);
    font-size: 42px;
    line-height: 1;
}

.landing-product-modal__discount {
    padding: 7px 10px;
    border-radius: 8px;
    background: var(--pink);
    color: var(--white);
    font-size: 13px;
    font-weight: 900;
}

.landing-product-modal__old-price {
    margin: 5px 0 0;
    color: var(--text-muted);
    font-size: 13px;
}

.landing-product-modal__summary,
.landing-product-modal__use {
    margin: 18px 0 0;
    color: var(--text-soft);
    line-height: 1.55;
}

.landing-product-modal__features {
    margin: 18px 0 0;
    padding-left: 20px;
    color: var(--text-soft);
}

.landing-product-modal__features li + li {
    margin-top: 7px;
}

.landing-product-modal__cta {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    padding: 12px 18px;
    border: 1px solid rgba(74, 255, 127, 0.62);
    border-radius: 13px;
    background: linear-gradient(180deg, #16c44d, #078e37);
    color: var(--white);
    font-size: 14px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

@media (max-width: 980px) {
    .landing-products-grid {
        grid-template-columns: repeat(
            auto-fit,
            minmax(270px, 310px)
        );
    }

    .landing-more-products__grid {
        grid-template-columns: repeat(
            auto-fit,
            minmax(260px, 300px)
        );
    }
}

@media (max-width: 640px) {
    .landing-products-grid {
        display: flex;
        justify-content: flex-start;
        gap: 12px;
        padding-bottom: 10px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .landing-products-grid::-webkit-scrollbar {
        display: none;
    }

    .landing-products-grid .landing-product-card--dynamic,
    .landing-more-products__grid .landing-product-card--dynamic {
        flex: 0 0 84%;
        min-height: 230px;
        grid-template-columns: 41% 59%;
        padding: 13px 12px 10px;
        scroll-snap-align: start;
    }

    .landing-product-card--dynamic .landing-product-card__tire {
        height: 142px !important;
    }

    .landing-product-card--dynamic .landing-product-card__size {
        font-size: 19px;
    }

    .landing-product-card--dynamic .landing-product-card__price {
        font-size: 29px;
    }

    .landing-more-products {
        margin-inline: -8px;
        padding: 17px 12px;
    }

    .landing-more-products__header h3 {
        font-size: 19px;
    }

    .landing-more-products__grid {
        display: flex;
        gap: 12px;
        padding-bottom: 10px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .landing-more-products__grid::-webkit-scrollbar {
        display: none;
    }

    .landing-more-products__grid .landing-product-card {
        scroll-snap-align: start;
    }

    .landing-product-modal {
        padding: 10px;
    }

    .landing-product-modal__dialog {
        max-height: calc(100vh - 20px);
        grid-template-columns: 1fr;
        border-radius: 18px;
    }

    .landing-product-modal__media {
        min-height: 260px;
        padding: 36px 20px 12px;
    }

    .landing-product-modal__image {
        height: 230px;
    }

    .landing-product-modal__content {
        padding: 18px 20px 28px;
    }

    .landing-product-modal__content h2 {
        font-size: 38px;
    }

    .landing-product-modal__price {
        font-size: 36px;
    }
}

/* =========================================================
   MODAL: COLOR DINÁMICO + AJUSTES MÓVILES
   ========================================================= */

.landing-product-modal {
    --modal-accent: #ff1768;
    --modal-accent-bg: rgba(255, 23, 104, 0.14);
    --modal-accent-text: #ffffff;
}

.landing-product-modal--pink {
    --modal-accent: #ff1768;
    --modal-accent-bg: rgba(255, 23, 104, 0.14);
    --modal-accent-text: #ffffff;
}

.landing-product-modal--orange {
    --modal-accent: #ff941e;
    --modal-accent-bg: rgba(255, 148, 30, 0.14);
    --modal-accent-text: #061426;
}

.landing-product-modal--blue {
    --modal-accent: #08bcec;
    --modal-accent-bg: rgba(8, 188, 236, 0.14);
    --modal-accent-text: #061426;
}

.landing-product-modal--yellow {
    --modal-accent: #ffc400;
    --modal-accent-bg: rgba(255, 196, 0, 0.14);
    --modal-accent-text: #061426;
}

.landing-product-modal--neon-yellow {
    --modal-accent: #eaff00;
    --modal-accent-bg: rgba(234, 255, 0, 0.14);
    --modal-accent-text: #061426;
}

.landing-product-modal--purple {
    --modal-accent: #b44cff;
    --modal-accent-bg: rgba(180, 76, 255, 0.14);
    --modal-accent-text: #ffffff;
}

.landing-product-modal--white {
    --modal-accent: #f7fbff;
    --modal-accent-bg: rgba(247, 251, 255, 0.13);
    --modal-accent-text: #061426;
}

.landing-product-modal--green {
    --modal-accent: #39ff88;
    --modal-accent-bg: rgba(57, 255, 136, 0.14);
    --modal-accent-text: #061426;
}

.landing-product-modal--red {
    --modal-accent: #ff334f;
    --modal-accent-bg: rgba(255, 51, 79, 0.14);
    --modal-accent-text: #ffffff;
}

.landing-product-modal .landing-product-modal__dialog {
    border-color: var(--modal-accent);
}

.landing-product-modal .landing-product-modal__brand,
.landing-product-modal .landing-product-modal__price {
    color: var(--modal-accent);
}

.landing-product-modal .landing-product-modal__discount {
    background: var(--modal-accent);
    color: var(--modal-accent-text);
}

body.landing-modal-open .landing-mobile-sticky-cta {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 640px) {
    .landing-product-modal {
        place-items: start center;
        overflow-y: auto;
        padding: 10px;
    }

    body.admin-bar .landing-product-modal {
        padding-top: 46px;
    }

    .landing-product-modal__dialog {
        width: 100%;
        max-height: none;
        margin: 0 auto 24px;
    }
}



/* =========================================================
   ACCESIBILIDAD DE MOVIMIENTO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .landing-product-card--dynamic,
    .landing-product-card--dynamic .landing-product-card__tire,
    .landing-product-card--dynamic .landing-product-card__detail,
    .landing-section-secondary-cta,
    .landing-section-secondary-cta::after {
        transition: none !important;
    }

    .landing-product-card--dynamic:hover,
    .landing-product-card--dynamic:hover .landing-product-card__tire,
    .landing-product-card--dynamic .landing-product-card__detail:hover,
    .landing-section-secondary-cta:hover {
        transform: none !important;
    }
}


/* =========================================================
   V1.0.9 - PRECIO A MESES Y CONTENIDO CONDICIONAL
   ========================================================= */

.landing-products-grid .landing-product-card--dynamic,
.landing-more-products__grid .landing-product-card--dynamic {
    min-height: 286px;
}

.landing-product-card--dynamic .landing-product-card__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.landing-product-card--dynamic .landing-product-card__brand,
.landing-product-card--dynamic .landing-product-card__size,
.landing-product-card--dynamic .landing-product-card__model,
.landing-product-card--dynamic .landing-product-card__old-price,
.landing-product-card--dynamic .landing-product-card__price,
.landing-product-card--dynamic .landing-product-card__installments {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

.landing-product-card--dynamic .landing-product-card__brand {
    margin-top: 0;
    margin-bottom: 2px;
}

.landing-product-card--dynamic .landing-product-card__size {
    margin-top: 3px;
    margin-bottom: 2px;
}

.landing-product-card--dynamic .landing-product-card__model {
    min-height: 0;
    margin-top: 2px;
    margin-bottom: 0;
}

.landing-product-card--dynamic .landing-product-card__old-price {
    margin-top: 10px;
    margin-bottom: 2px;
    color: rgba(211, 221, 235, 0.62);
    font-size: 11px;
    line-height: 1.2;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.landing-product-card--dynamic .landing-product-card__price {
    margin-top: 2px;
    margin-bottom: 0;
}

.landing-product-card__installments {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
    margin: 7px 0 0;
    color: rgba(232, 239, 248, 0.82);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
}

.landing-product-card__installments strong {
    color: var(--product-accent, #08bcec);
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}

.landing-product-card__brand:empty,
.landing-product-card__size:empty,
.landing-product-card__model:empty,
.landing-product-card__old-price:empty,
.landing-product-card__price:empty,
.landing-product-card__installments:empty,
.landing-product-modal__brand:empty,
.landing-product-modal__model:empty,
.landing-product-modal__old-price:empty,
.landing-product-modal__installments:empty,
.landing-product-modal__summary:empty,
.landing-product-modal__use:empty,
.landing-product-modal__features:empty {
    display: none !important;
}

.landing-product-modal__old-price {
    margin: 11px 0 2px;
    color: rgba(211, 221, 235, 0.62);
    font-size: 13px;
    text-decoration: line-through;
}

.landing-product-modal__price-row {
    margin-top: 2px;
}

.landing-product-modal__installments {
    margin: 8px 0 0;
    color: var(--product-accent, #08bcec);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
}

.landing-product-modal__installments[hidden] {
    display: none !important;
}

@media (max-width: 640px) {
    .landing-products-grid .landing-product-card--dynamic,
    .landing-more-products__grid .landing-product-card--dynamic {
        min-height: 276px;
    }

    .landing-product-card__installments {
        font-size: 9px;
    }

    .landing-product-card__installments strong {
        font-size: 13px;
    }
}


/* =========================================================
   V1.0.78 - GALERÍA Y AMPLIACIÓN DE IMAGEN DE PRODUCTO
   ========================================================= */

.landing-product-modal__media {
    align-content: center;
    gap: 14px;
}

.landing-product-modal__image-button {
    position: relative;
    width: 100%;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.landing-product-modal__image-button[hidden] {
    display: none !important;
}

.landing-product-modal__image-button:focus-visible {
    outline: 2px solid var(--modal-accent, #08bcec);
    outline-offset: 6px;
    border-radius: 16px;
}

.landing-product-modal__image-button::after {
    content: "Ampliar imagen";
    position: absolute;
    left: 24px;
    bottom: 22px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(3, 11, 24, 0.78);
    color: rgba(255, 255, 255, 0.86);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.88;
    pointer-events: none;
}

.landing-product-modal__gallery {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 9px;
    padding: 0 6px;
}

.landing-product-modal__gallery[hidden] {
    display: none !important;
}

.landing-product-modal__gallery-thumb {
    width: min(108px, 44%);
    min-height: 68px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(3, 11, 24, 0.58);
    color: rgba(255, 255, 255, 0.78);
    font: inherit;
    font-size: 9px;
    font-weight: 850;
    line-height: 1.1;
    text-align: left;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        color 160ms ease,
        transform 160ms ease;
}

.landing-product-modal__gallery-thumb img {
    width: 40px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 8px 9px rgba(0, 0, 0, 0.34));
}

.landing-product-modal__gallery-thumb.is-active,
.landing-product-modal__gallery-thumb:hover,
.landing-product-modal__gallery-thumb:focus-visible {
    border-color: var(--modal-accent, #08bcec);
    background: var(--modal-accent-bg, rgba(8, 188, 236, 0.14));
    color: var(--white);
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .landing-product-modal__media {
        gap: 10px;
    }

    .landing-product-modal__image-button::after {
        left: 14px;
        bottom: 10px;
        font-size: 8.5px;
    }

    .landing-product-modal__gallery {
        gap: 7px;
        padding: 0;
    }

    .landing-product-modal__gallery-thumb {
        width: min(118px, 48%);
        min-height: 58px;
        grid-template-columns: 34px minmax(0, 1fr);
        padding: 6px 7px;
        border-radius: 10px;
        font-size: 8px;
    }

    .landing-product-modal__gallery-thumb img {
        width: 34px;
        height: 36px;
    }
}

/* =========================================================
   V1.0.79 - AJUSTES UX DE FICHA, LUPA Y CARRUSEL DISCRETO
   ========================================================= */

.landing-product-modal__image-button {
    touch-action: pan-y;
}

.landing-product-modal__image-button::after {
    content: "🔍";
    left: auto;
    right: 22px;
    bottom: 20px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(3, 11, 24, 0.72);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    font-size: 15px;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.landing-product-modal__image-button.is-swipeable {
    cursor: grab;
}

.landing-product-modal__image-button.is-swipeable:active {
    cursor: grabbing;
}

.landing-product-modal__gallery-thumb {
    width: min(132px, 48%);
    min-height: 66px;
    grid-template-columns: 43px minmax(0, 1fr);
    overflow: hidden;
}

.landing-product-modal__gallery-thumb span {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    overflow-wrap: anywhere;
    white-space: normal;
    line-height: 1.03;
}

@media (max-width: 640px) {
    .landing-product-modal {
        place-items: center;
        overflow: auto;
        padding:
            max(18px, env(safe-area-inset-top))
            14px
            max(18px, env(safe-area-inset-bottom));
    }

    body.admin-bar .landing-product-modal {
        padding-top: max(46px, env(safe-area-inset-top));
    }

    .landing-product-modal__dialog {
        width: min(100%, 560px);
        max-height: calc(100vh - 42px);
        max-height: calc(100dvh - 42px);
        margin: auto;
        overflow: auto;
        border-radius: 18px;
        transform: translateZ(0);
    }

    .landing-product-modal__media {
        min-height: 236px;
        padding: 34px 18px 10px;
        gap: 8px;
    }

    .landing-product-modal__image {
        height: 208px;
    }

    .landing-product-modal__image-button::after {
        right: 13px;
        bottom: 9px;
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .landing-product-modal__gallery {
        gap: 7px;
    }

    .landing-product-modal__gallery-thumb {
        width: min(122px, 48%);
        min-height: 56px;
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 7px;
        padding: 6px 7px;
        font-size: 7.6px;
        line-height: 1.02;
    }

    .landing-product-modal__gallery-thumb img {
        width: 32px;
        height: 34px;
    }

    .landing-product-modal__content {
        padding: 16px 20px 28px;
    }
}

@media (max-width: 380px) {
    .landing-product-modal {
        padding-left: 12px;
        padding-right: 12px;
    }

    .landing-product-modal__media {
        min-height: 224px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .landing-product-modal__image {
        height: 196px;
    }

    .landing-product-modal__gallery-thumb {
        width: min(112px, 48%);
        font-size: 7.1px;
    }
}


/* v1.0.81 — corrección quirúrgica: centrar sin alejar, lupa única y simple */
.landing-product-modal__media {
    position: relative;
}

.landing-product-modal__image-open {
    position: absolute;
    right: 26px;
    bottom: 24px;
    z-index: 4;

    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    padding: 5px;

    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--modal-accent, #ffffff);
    box-shadow: none;

    font-size: 0;
    line-height: 1;
    cursor: pointer;
}

.landing-product-modal__image-open::before {
    content: "⌕";
    display: block;
    color: currentColor;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.42);
}

.landing-product-modal__image-open:hover,
.landing-product-modal__image-open:focus-visible {
    background: transparent;
    color: var(--modal-accent, #ffffff);
    box-shadow: none;
    transform: none;
}

/* Oculta cualquier duplicado de lupa heredado, dejando solo el botón inferior derecho */
.landing-product-modal__media > .landing-product-modal__image-open:not(:last-of-type) {
    display: none !important;
}

@media (max-width: 640px) {
    .landing-product-modal {
        justify-items: center;
        align-items: start;
        padding: 12px 10px 16px;
        overflow-x: hidden;
    }

    body.admin-bar .landing-product-modal {
        padding-top: 46px;
    }

    .landing-product-modal__dialog {
        width: min(100%, calc(100vw - 20px));
        max-width: calc(100vw - 20px);
        margin-left: auto;
        margin-right: auto;
        overflow-x: hidden;
        transform: translateX(0);
    }

    .landing-product-modal__media,
    .landing-product-modal__content {
        min-width: 0;
        max-width: 100%;
    }

    .landing-product-modal__image-open {
        right: 18px;
        bottom: 16px;
        padding: 4px;
    }

    .landing-product-modal__image-open::before {
        font-size: 25px;
    }
}


/* v1.0.82 — lupa simple de un solo color, sin círculo exterior extra */
.landing-product-modal__image-open {
    color: var(--modal-accent, #ffffff);
}

.landing-product-modal__image-open::before {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill%3D%27black%27%20d%3D%27M10.5%202a8.5%208.5%200%201%200%205.33%2015.12l4.53%204.52a1%201%200%200%200%201.41-1.41l-4.52-4.53A8.5%208.5%200%200%200%2010.5%202Zm0%202a6.5%206.5%200%201%201%200%2013a6.5%206.5%200%200%201%200-13Zm-1%202.75a1%201%200%200%201%201%201V9.5h1.75a1%201%200%201%201%200%202H10.5v1.75a1%201%200%201%201-2%200V11.5H6.75a1%201%200%201%201%200-2H8.5V7.75a1%201%200%200%201%201-1Z%27/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill%3D%27black%27%20d%3D%27M10.5%202a8.5%208.5%200%201%200%205.33%2015.12l4.53%204.52a1%201%200%200%200%201.41-1.41l-4.52-4.53A8.5%208.5%200%200%200%2010.5%202Zm0%202a6.5%206.5%200%201%201%200%2013a6.5%206.5%200%200%201%200-13Zm-1%202.75a1%201%200%200%201%201%201V9.5h1.75a1%201%200%201%201%200%202H10.5v1.75a1%201%200%201%201-2%200V11.5H6.75a1%201%200%201%201%200-2H8.5V7.75a1%201%200%200%201%201-1Z%27/%3E%3C/svg%3E") center / contain no-repeat;
    text-shadow: none;
}

@media (max-width: 640px) {
    .landing-product-modal__image-open::before {
        width: 22px;
        height: 22px;
    }
}


/* v1.0.83 — lupa correcta en el botón real de imagen del producto */
.landing-product-modal .landing-product-modal__image-button::after {
    content: "" !important;
    position: absolute !important;
    right: 22px !important;
    bottom: 20px !important;
    left: auto !important;

    width: 30px !important;
    height: 30px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    display: block !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;
    background-color: var(--modal-accent, #ffffff) !important;
    background-image: none !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;

    color: var(--modal-accent, #ffffff) !important;
    font-size: 0 !important;
    line-height: 0 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-shadow: none !important;

    -webkit-mask: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2064%2064%27%3E%3Cpath%20fill%3D%27black%27%20d%3D%27M27%204a23%2023%200%201%200%2014.16%2041.12l13.36%2013.36a5%205%200%200%200%207.07-7.07L48.24%2038.05A23%2023%200%200%200%2027%204Zm0%208a15%2015%200%201%201%200%2030a15%2015%200%200%201%200-30Zm-3%207a3%203%200%200%201%206%200v5h5a3%203%200%200%201%200%206h-5v5a3%203%200%200%201-6%200v-5h-5a3%203%200%200%201%200-6h5v-5Z%27/%3E%3C/svg%3E") center / contain no-repeat !important;
    mask: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2064%2064%27%3E%3Cpath%20fill%3D%27black%27%20d%3D%27M27%204a23%2023%200%201%200%2014.16%2041.12l13.36%2013.36a5%205%200%200%200%207.07-7.07L48.24%2038.05A23%2023%200%200%200%2027%204Zm0%208a15%2015%200%201%201%200%2030a15%2015%200%200%201%200-30Zm-3%207a3%203%200%200%201%206%200v5h5a3%203%200%200%201%200%206h-5v5a3%203%200%200%201-6%200v-5h-5a3%203%200%200%201%200-6h5v-5Z%27/%3E%3C/svg%3E") center / contain no-repeat !important;
}

@media (max-width: 640px) {
    .landing-product-modal .landing-product-modal__image-button::after {
        right: 18px !important;
        bottom: 16px !important;
        width: 27px !important;
        height: 27px !important;
    }
}
