/* ============================================================
   Comparativa Fibras · Arletex Design System v3.3
   --------------------------------------------------------------
   Algodón vs Poliéster — registro @technical (control panel).
   Va debajo de telas-frescas (white · @gallery). Cumple variación
   estricta: 6 registros únicos en el home.

   Declaración:
     registro : @technical
     apertura : LabelLateral (rail mono vertical + h2)
     marco    : Side-rule (3px orange a la izquierda del header) +
                divider dotted vertical entre fibras
     hover    : side-shift en specs · chunky-press en arrows ·
                image desat → saturate en carousel cards
   ============================================================ */

.arl-cf {
    --cf-ink:        var(--ax-ink, #1F2530);
    --cf-paper:      var(--ax-paper, #FAF6EE);
    --cf-cream:      var(--ax-cream, #F2EDE4);
    --cf-white:      var(--ax-white, #FFFFFF);
    --cf-orange:     var(--ax-orange, #F15A29);
    --cf-orange-dp:  var(--ax-orange-deep, #B0401A);
    --cf-muted:      var(--ax-muted, #6E6A60);
    --cf-rule:       2px;

    position: relative;
    background: var(--cf-white);
    color: var(--cf-ink);
    padding: clamp(72px, 9vw, 120px) 0 clamp(72px, 9vw, 120px);
    font-family: 'Lato', system-ui, sans-serif;
    overflow: hidden;
    isolation: isolate;
}

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

/* ---------- Side-rule orange — divider editorial ------------ */
.arl-cf__rule {
    height: 3px;
    background: var(--cf-orange);
    margin-bottom: clamp(40px, 5vw, 64px);
}

/* ---------- Grid de paneles --------------------------------- */
.arl-cf__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: clamp(32px, 4vw, 56px);
    align-items: stretch;
}

/* Divider dotted vertical — corte de tela entre fibras */
.arl-cf__divider {
    width: 10px;
    align-self: stretch;
    background-image: radial-gradient(circle at center,
                        var(--cf-ink) 2px, transparent 2.4px);
    background-size: 10px 16px;
    background-position: 50% 0;
    background-repeat: repeat-y;
    pointer-events: none;
}

/* ---------- Panel — ficha técnica completa ------------------ */
.arl-cf__panel {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 2.5vw, 32px);
    min-width: 0;
}

/* Panel head — número grande + body */
.arl-cf__panel-head {
    display: flex;
    align-items: flex-start;
    gap: clamp(14px, 1.8vw, 24px);
    padding-bottom: clamp(16px, 2vw, 24px);
    border-bottom: var(--cf-rule) solid var(--cf-ink);
}
.arl-cf__panel-num {
    font-family: 'Anton', 'Arial Narrow', sans-serif;
    font-weight: 400;
    font-size: clamp(56px, 7vw, 96px);
    line-height: .8;
    letter-spacing: -.04em;
    color: var(--cf-orange);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}
.arl-cf__panel-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    flex: 1;
}
.arl-cf__panel-mono {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--cf-muted);
    line-height: 1;
}
.arl-cf__panel-name {
    font-family: 'Anton', 'Arial Narrow', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(34px, 4.4vw, 56px);
    line-height: .92;
    letter-spacing: -.01em;
    color: var(--cf-ink);
    margin: 0;
}
.arl-cf__panel-lede {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(14px, 1.15vw, 17px);
    line-height: 1.4;
    color: var(--cf-muted);
    margin: 4px 0 0;
}

/* ---------- Viewer (carousel slick + controls) -------------- */
.arl-cf__viewer {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.arl-cf__rail-imgs {
    position: relative;
    border: var(--cf-rule) solid var(--cf-ink);
    background: var(--cf-cream);
    overflow: hidden;
}
.arl-cf__cell {
    outline: none;
}
.arl-cf__card {
    position: relative;
    display: block;
    text-decoration: none;
    color: var(--cf-ink);
    isolation: isolate;
}
.arl-cf__card:focus-visible {
    outline: 3px solid var(--cf-orange);
    outline-offset: -3px;
}
.arl-cf__media {
    display: block;
    width: 100%;
    aspect-ratio: 241 / 170;
    overflow: hidden;
    background: var(--cf-cream);
}
.arl-cf__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.85) brightness(.97);
    transition: filter .55s ease, transform .7s cubic-bezier(.22,.61,.36,1);
}
.arl-cf__card:hover .arl-cf__media img,
.arl-cf__card:focus-visible .arl-cf__media img {
    filter: saturate(1.05) brightness(1);
    transform: scale(1.03);
}

/* Caption sobre la imagen — banda inferior paper */
.arl-cf__caption {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 9px;
    background: var(--cf-paper);
    border-top: var(--cf-rule) solid var(--cf-ink);
}
.arl-cf__cap-name {
    font-family: 'Anton', 'Arial Narrow', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(15px, 1.4vw, 19px);
    letter-spacing: .012em;
    color: var(--cf-ink);
    line-height: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Slick internals — fade transitions, height auto */
.arl-cf__rail-imgs .slick-list,
.arl-cf__rail-imgs .slick-track,
.arl-cf__rail-imgs .slick-slide { height: 100%; }
.arl-cf__rail-imgs .slick-slide > div { height: 100%; }

/* ---------- Controls — arrows chunky + counter -------------- */
.arl-cf__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.arl-cf__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: var(--cf-white);
    color: var(--cf-ink);
    border: var(--cf-rule) solid var(--cf-ink);
    border-radius: 0;
    font-size: 14px;
    padding: 0;
    cursor: pointer;
    box-shadow: 4px 4px 0 0 var(--cf-orange);
    transition: transform .18s ease, box-shadow .18s ease,
                background .18s ease, color .18s ease;
}
.arl-cf__arrow:hover,
.arl-cf__arrow:focus-visible {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 0 var(--cf-orange);
    background: var(--cf-ink);
    color: var(--cf-paper);
    outline: none;
}
.arl-cf__arrow:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 0 var(--cf-orange);
}

.arl-cf__counter {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--cf-ink);
    line-height: 1;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}
.arl-cf__counter-cur { color: var(--cf-orange); font-size: 16px; }
.arl-cf__counter-sep { color: var(--cf-muted); }
.arl-cf__counter-tot { color: var(--cf-muted); }

/* ---------- Specs list — ficha técnica con side-shift ------- */
.arl-cf__specs {
    margin: 0;
    padding: 0;
    background: var(--cf-cream);
    border: var(--cf-rule) solid var(--cf-ink);
}
.arl-cf__spec {
    display: grid;
    grid-template-columns: minmax(0, .4fr) minmax(0, 1fr);
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px dashed rgba(31, 37, 48, .18);
    transition: background .2s ease, padding-left .2s ease;
    position: relative;
}
.arl-cf__spec:last-child { border-bottom: 0; }
.arl-cf__spec::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: var(--cf-orange);
    transition: width .2s ease;
}
.arl-cf__spec:hover {
    background: var(--cf-paper);
    padding-left: 22px;
}
.arl-cf__spec:hover::before {
    width: 4px;
}
.arl-cf__spec-k {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--cf-muted);
    line-height: 1.3;
    margin: 0;
    padding-top: 2px;
}
.arl-cf__spec-v {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--cf-ink);
    margin: 0;
}

/* ---------- CTA al pie del panel ---------------------------- */
.arl-cf__cta {
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--cf-paper);
    text-decoration: none;
    padding: 16px 22px 15px;
    background: var(--cf-ink);
    border: var(--cf-rule) solid var(--cf-ink);
    border-radius: 0;
    line-height: 1;
    box-shadow: 6px 6px 0 0 var(--cf-orange);
    transition: transform .22s ease, box-shadow .22s ease,
                background .22s ease, color .22s ease;
}
.arl-cf__cta i {
    font-size: 12px;
    transition: transform .22s ease;
}
.arl-cf__cta:hover,
.arl-cf__cta:focus-visible {
    background: var(--cf-orange);
    color: var(--cf-ink);
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0 0 var(--cf-ink);
    outline: none;
    text-decoration: none;
}
.arl-cf__cta:hover i,
.arl-cf__cta:focus-visible i {
    transform: translateX(4px);
}
.arl-cf__cta:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 0 var(--cf-ink);
}

/* ---------- Responsive -------------------------------------- */
@media (max-width: 991px) {
    .arl-cf__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    /* Divider vertical → horizontal en stacked */
    .arl-cf__divider {
        width: 100%;
        height: 10px;
        background-size: 16px 10px;
        background-position: 0 50%;
        background-repeat: repeat-x;
    }
}

@media (max-width: 575px) {
    .arl-cf { padding: 56px 0 64px; }
    .arl-cf__panel-num { font-size: clamp(48px, 14vw, 72px); }
    .arl-cf__panel-name { font-size: clamp(30px, 9vw, 44px); }
    .arl-cf__arrow { width: 42px; height: 42px; font-size: 12px; }
    .arl-cf__counter { font-size: 12px; }
    .arl-cf__counter-cur { font-size: 14px; }
    .arl-cf__cta {
        font-size: 11px;
        padding: 14px 18px 13px;
        letter-spacing: .16em;
    }
}

/* ---------- Reduced motion ---------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .arl-cf__media img,
    .arl-cf__arrow,
    .arl-cf__cta,
    .arl-cf__cta i,
    .arl-cf__spec {
        transition: none !important;
    }
    .arl-cf__card:hover .arl-cf__media img,
    .arl-cf__arrow:hover,
    .arl-cf__cta:hover,
    .arl-cf__cta:active,
    .arl-cf__spec:hover {
        transform: none !important;
    }
}
