/* ============================================================
   Más Vendidos · Arletex Design System v3.3
   --------------------------------------------------------------
   Va debajo del carousel-nuevos-productos (paper · @news). Crea
   contrapunto dramático: ink de fondo, número TOP·06 protagonista,
   burst rotado, cards paper que flotan con sombra chunky orange.

   Declaración:
     registro : @fanzine
     apertura : NumberProtagonist (TOP·06)
     marco    : Full-frame (border interior 1px paper translúcido)
                + telemetry strip orange en el masthead
     hover    : press-chunky (el card se hunde físicamente)
   ============================================================ */

.arl-mv {
    --mv-ink:        var(--ax-ink, #1F2530);
    --mv-paper:      var(--ax-paper, #FAF6EE);
    --mv-cream:      var(--ax-cream, #F2EDE4);
    --mv-white:      var(--ax-white, #FFFFFF);
    --mv-orange:     var(--ax-orange, #F15A29);
    --mv-orange-dp:  var(--ax-orange-deep, #B0401A);
    --mv-muted-dk:   var(--ax-muted-dark, #A8A39A);
    --mv-yellow:     var(--ax-yellow, #FFEB3B);
    --mv-rule:       2px;

    position: relative;
    background: var(--mv-ink);
    color: var(--mv-paper);
    padding: clamp(96px, 11vw, 148px) 0 clamp(80px, 10vw, 128px);
    font-family: 'Lato', system-ui, sans-serif;
    overflow: hidden;
    isolation: isolate;
}

/* Texture-dark — radial dots tenues, atmósfera nocturna editorial */
.arl-mv::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(250, 246, 238, .055) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
    z-index: 0;
}

/* Full-frame — marco interior paper translúcido (estilo periódico) */
.arl-mv::after {
    content: "";
    position: absolute;
    top: clamp(56px, 6vw, 78px);
    left:   clamp(16px, 2vw, 28px);
    right:  clamp(16px, 2vw, 28px);
    bottom: clamp(16px, 2vw, 28px);
    border: 1px solid rgba(250, 246, 238, .14);
    pointer-events: none;
    z-index: 0;
}

/* ---------- Telemetry strip --------------------------------- */
.arl-mv__telemetry {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    padding: 11px 24px 10px;
    background: var(--mv-orange);
    color: var(--mv-ink);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    line-height: 1;
    border-bottom: var(--mv-rule) solid var(--mv-ink);
}
.arl-mv__telemetry-dot {
    color: var(--mv-ink);
    font-size: 9px;
    line-height: 1;
    opacity: .55;
}

.arl-mv > .container {
    max-width: 1380px;
    padding-left:  clamp(20px, 4vw, 56px);
    padding-right: clamp(20px, 4vw, 56px);
    position: relative;
    z-index: 1;
}

/* ---------- Header — NumberProtagonist apertura ------------- */
.arl-mv__header {
    display: grid;
    grid-template-columns: minmax(0, .42fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 72px);
    align-items: end;
    padding-bottom: clamp(36px, 4vw, 56px);
    margin-bottom: clamp(40px, 5vw, 64px);
    border-bottom: var(--mv-rule) solid rgba(250, 246, 238, .14);
    position: relative;
}

/* Big TOP·06 number — el número es el titular */
.arl-mv__number {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: .8;
    padding-bottom: 6px;
}
.arl-mv__num-label {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: clamp(11px, .9vw, 13px);
    font-weight: 700;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--mv-orange);
    padding: 0 0 clamp(8px, 1vw, 14px) 4px;
    line-height: 1;
}
.arl-mv__num-figure {
    font-family: 'Anton', 'Arial Narrow', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(140px, 22vw, 280px);
    line-height: .78;
    letter-spacing: -.05em;
    color: var(--mv-paper);
    font-variant-numeric: tabular-nums;
    text-shadow: 7px 7px 0 var(--mv-orange);
}

/* Lede — eyebrow + display + intro */
.arl-mv__lede {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 1.5vw, 20px);
    padding-bottom: 4px;
}
.arl-mv__eyebrow {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--mv-ink);
    background: var(--mv-paper);
    padding: 7px 12px 6px;
    line-height: 1;
    margin: 0;
}
.arl-mv__eyebrow::before {
    content: "●";
    color: var(--mv-orange);
    font-size: 11px;
    line-height: 1;
}

.arl-mv__display {
    font-family: 'Anton', 'Arial Narrow', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(48px, 7vw, 96px) !important;
    line-height: .9;
    letter-spacing: -.012em;
    color: var(--mv-paper);
    margin: 0;
}
.arl-mv__display em {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    text-transform: lowercase;
    font-size: .96em;
    color: var(--mv-orange);
    letter-spacing: -.02em;
    display: inline-block;
}

.arl-mv__intro {
    font-family: 'Lato', sans-serif;
    font-size: clamp(14px, 1.05vw, 16px);
    line-height: 1.55;
    color: var(--mv-muted-dk);
    margin: 0;
    max-width: 56ch;
}
.arl-mv__intro b {
    color: var(--mv-paper);
    font-weight: 800;
}

/* ---------- Burst — sello rotado obligatorio @fanzine ------- */
.arl-mv__burst {
    position: absolute;
    top: clamp(40px, 5vw, 62px);
    right: clamp(16px, 3vw, 44px);
    z-index: 4;
    width: clamp(140px, 17vw, 250px);
    height: clamp(140px, 17vw, 250px);
    display: grid;
    place-items: center;
    background: var(--mv-yellow);
    color: var(--mv-ink);
    border-radius: 9999px;
    font-family: 'Anton', 'Arial Narrow', sans-serif;
    font-size: clamp(21px, 2.3vw, 38px);
    letter-spacing: .03em;
    text-transform: uppercase;
    text-align: center;
    line-height: .92;
    transform: rotate(-9deg);
    /* Contorno tipo stamp — ring naranja sólido, sin blur ni offset */
    box-shadow: 0 0 0 6px var(--mv-orange);
    pointer-events: none;
}
.arl-mv__burst span {
    display: block;
    padding: 2px 6px;
}

/* ---------- Rail -------------------------------------------- */
.arl-mv__rail {
    position: relative;
    margin: 0 -12px;
}
.arl-mv__cell {
    padding: 16px 14px 22px;
    outline: none;
}

/* ---------- Card — paper sobre ink, press-chunky hover ------ */
.arl-mv__card {
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--mv-ink);
    background: var(--mv-paper);
    border: var(--mv-rule) solid var(--mv-ink);
    border-radius: 0;
    isolation: isolate;
    box-shadow: 8px 8px 0 0 var(--mv-orange);
    transition: transform .22s ease, box-shadow .22s ease;
    will-change: transform;
}
.arl-mv__card:hover,
.arl-mv__card:focus-visible {
    transform: translate(4px, 4px);
    box-shadow: 2px 2px 0 0 var(--mv-orange);
    outline: none;
    text-decoration: none;
    color: var(--mv-ink);
}
.arl-mv__card:focus-visible {
    box-shadow: 2px 2px 0 0 var(--mv-orange), 0 0 0 3px var(--mv-paper);
}
.arl-mv__card:active {
    transform: translate(7px, 7px);
    box-shadow: 0 0 0 0 var(--mv-orange);
}

/* Rank badge — chunky Anton sello negro con borde orange */
.arl-mv__rank {
    position: absolute;
    top: -12px;
    left: -8px;
    z-index: 3;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    background: var(--mv-ink);
    color: var(--mv-paper);
    padding: 8px 14px 7px;
    box-shadow: 3px 3px 0 var(--mv-orange);
    border: 1.5px solid var(--mv-orange);
    line-height: 1;
}
.arl-mv__rank-pre {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: .12em;
    color: var(--mv-orange);
    text-transform: uppercase;
    font-weight: 700;
}
.arl-mv__rank-num {
    font-family: 'Anton', 'Arial Narrow', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 24px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

/* Media — 1/1 square (variación vs 4/5 portrait de nuevos) */
.arl-mv__media {
    display: block;
    position: relative;
    aspect-ratio: 241 / 170;
    overflow: hidden;
    background: var(--mv-cream);
    border-bottom: var(--mv-rule) solid var(--mv-ink);
}
.arl-mv__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .55s ease, filter .55s ease;
    filter: contrast(1.02) saturate(1.02);
}
.arl-mv__card:hover .arl-mv__media img {
    transform: scale(1.05);
}

/* Foot — nombre Anton + meta mono + CTA orange */
.arl-mv__foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 18px;
    background: var(--mv-paper);
}
.arl-mv__foot-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.arl-mv__name {
    font-family: 'Anton', 'Arial Narrow', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(20px, 1.8vw, 26px);
    letter-spacing: .012em;
    color: var(--mv-ink);
    line-height: 1;
}
.arl-mv__meta {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--mv-orange-dp);
    line-height: 1;
}
.arl-mv__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Lato', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--mv-orange);
    white-space: nowrap;
    padding-bottom: 2px;
}
.arl-mv__cta::after {
    content: "→";
    font-size: 14px;
    line-height: 1;
    transition: transform .2s ease;
}
.arl-mv__card:hover .arl-mv__cta::after {
    transform: translateX(4px);
}

/* ---------- Slick — flechas off, dots paper sobre ink ------- */
.arl-mv .slick-list  { overflow: visible; padding: 4px 0 14px; }
.arl-mv .slick-track { display: flex; align-items: stretch; }
.arl-mv .slick-slide { height: auto; }
.arl-mv .slick-slide > div { height: 100%; }
.arl-mv .slick-slide > div > .arl-mv__cell { height: 100%; }
.arl-mv .slick-slide .arl-mv__card { height: 100%; }

.arl-mv .slick-prev,
.arl-mv .slick-next { display: none !important; }

.arl-mv .slick-dots {
    position: relative;
    bottom: auto;
    margin: clamp(32px, 4vw, 48px) 0 0;
    padding: 0;
    display: flex !important;
    justify-content: center;
    gap: 10px;
    list-style: none;
}
.arl-mv .slick-dots li {
    width: 36px;
    height: 4px;
    margin: 0;
}
.arl-mv .slick-dots li button {
    width: 100%;
    height: 100%;
    padding: 0;
    background: var(--mv-paper);
    border: 0;
    opacity: .25;
    transition: opacity .2s ease, background .2s ease, transform .2s ease;
    cursor: pointer;
}
.arl-mv .slick-dots li button::before { content: ""; }
.arl-mv .slick-dots li.slick-active button {
    background: var(--mv-orange);
    opacity: 1;
    transform: scaleX(1.4);
    transform-origin: center;
}

/* ---------- Responsive -------------------------------------- */
@media (max-width: 991px) {
    .arl-mv__header {
        grid-template-columns: 1fr;
        gap: 20px;
        align-items: start;
    }
    .arl-mv__number {
        flex-direction: row;
        align-items: baseline;
        gap: 18px;
    }
    .arl-mv__num-label {
        padding: 0;
        align-self: flex-start;
        transform: translateY(6px);
    }
    .arl-mv__num-figure { font-size: clamp(120px, 28vw, 200px); }
    .arl-mv__intro { max-width: 64ch; }
    .arl-mv__burst {
        top: clamp(40px, 6vw, 58px);
        right: clamp(14px, 3vw, 32px);
    }
}

/* Dots — chunky en mobile/tablet para señalar carrusel claramente.
   Override del global `style.css` que pone .slick-dots li{display:none}
   en <=512px, por eso forzamos display + width/height. */
@media (max-width: 768px) {
    .arl-mv .slick-dots {
        margin-top: 28px;
        gap: 12px;
        padding: 8px 0;
    }
    .arl-mv .slick-dots li {
        display: inline-block !important;
        width: 28px !important;
        height: 6px !important;
        margin: 0;
    }
    .arl-mv .slick-dots li button {
        opacity: .35;
        background: var(--mv-paper);
        border-radius: 0;
    }
    .arl-mv .slick-dots li.slick-active button {
        background: var(--mv-orange);
        opacity: 1;
    }
}

@media (max-width: 575px) {
    .arl-mv { padding: 84px 0 72px; }
    .arl-mv__telemetry {
        font-size: 9.5px;
        padding: 9px 14px 8px;
        gap: 10px;
        letter-spacing: .1em;
    }
    .arl-mv::after {
        top: clamp(50px, 11vw, 64px);
    }
    .arl-mv__display { font-size: clamp(38px, 11vw, 64px); }
    .arl-mv__num-figure {
        font-size: clamp(100px, 32vw, 170px);
        text-shadow: 5px 5px 0 var(--mv-orange);
    }
    .arl-mv__burst {
        width: 120px; height: 120px;
        font-size: 18px;
        top: 40px;
        right: 8px;
        box-shadow: 0 0 0 4px var(--mv-orange);
    }
    .arl-mv__rank { top: -10px; left: -6px; padding: 6px 12px 5px; }
    .arl-mv__rank-num { font-size: 20px; }
    .arl-mv__foot { padding: 14px 16px 16px; }
}

/* ---------- Reduced motion ---------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .arl-mv__card,
    .arl-mv__media img,
    .arl-mv__cta::after {
        transition: none !important;
    }
    .arl-mv__card:hover,
    .arl-mv__card:hover .arl-mv__media img,
    .arl-mv__card:hover .arl-mv__cta::after,
    .arl-mv__card:active {
        transform: none !important;
    }
}
