/* ============================================================
   Telas Frescas · Arletex Design System v3.3
   --------------------------------------------------------------
   Lookbook seasonal — va debajo de intro-home (white · @manifest).
   Es el respiro editorial donde las imágenes son el contenido.

   Declaración:
     registro : @gallery
     apertura : Dossier minimizado (eyebrow stamp + h2 pequeño)
     marco    : Bleed-edge (sin marco visible)
     hover    : image-scale 1.06 + caption underline slide
                (excepción gallery: el card no se mueve, la
                 fotografía es la que reacciona)
   ============================================================ */

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

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

/* Bordes punteados top/bottom — simulan corte de tela (rueda de marcar /
   línea de costura). radial-gradient da dots crispos consistentes en
   todos los navegadores (mejor que border-style: dotted). La sección
   queda enmarcada como un trozo de tela perforada en ambos lados. */
.arl-tf::before,
.arl-tf::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 10px;
    background-image: radial-gradient(circle at center,
                        var(--tf-ink) 2px, transparent 2.4px);
    background-size: 16px 10px;
    background-repeat: repeat-x;
    background-position: 0 50%;
    pointer-events: none;
    z-index: 3;
}
.arl-tf::before { top: 0; }
.arl-tf::after  { bottom: 0; }

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

/* ---------- Header — Dossier minimizado --------------------- */
.arl-tf__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(20px, 3vw, 40px) clamp(28px, 4vw, 56px);
    align-items: end;
    margin-bottom: clamp(36px, 5vw, 64px);
    padding-bottom: clamp(20px, 2.5vw, 32px);
    border-bottom: 1px solid rgba(31, 37, 48, .14);
}

.arl-tf__eyebrow {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 10px;
    margin: 0 0 clamp(16px, 2vw, 24px);
    padding: 0;
    line-height: 1;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.arl-tf__eyebrow-stamp {
    display: inline-flex;
    align-items: center;
    background: var(--tf-ink);
    color: var(--tf-paper);
    padding: 7px 12px 6px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    line-height: 1;
    box-shadow: 3px 3px 0 var(--tf-orange);
}
.arl-tf__eyebrow-tx {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--tf-muted);
    line-height: 1;
    padding-left: 4px;
}

.arl-tf__header-body {
    grid-column: 1 / 2;
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 1.6vw, 22px);
}
.arl-tf__display {
    font-family: 'Anton', 'Arial Narrow', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(40px, 5.6vw, 72px) !important;
    line-height: .92;
    letter-spacing: -.012em;
    color: var(--tf-ink);
    margin: 0;
}
.arl-tf__sub {
    font-family: 'Lato', sans-serif;
    font-size: clamp(14px, 1.05vw, 16px);
    line-height: 1.6;
    color: var(--tf-muted);
    margin: 0;
    max-width: 56ch;
}
.arl-tf__sub em {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-weight: 500;
    color: var(--tf-ink);
    letter-spacing: -.005em;
}

/* CTA link — chip ink con flecha orange (side-shift hover) */
.arl-tf__link {
    grid-column: 2 / 3;
    justify-self: end;
    align-self: end;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--tf-ink);
    text-decoration: none;
    padding: 14px 18px 13px 20px;
    background: transparent;
    border: var(--tf-rule) solid var(--tf-ink);
    border-radius: 0;
    line-height: 1;
    transition: background .22s ease, color .22s ease, gap .22s ease;
    cursor: pointer;
}
.arl-tf__link i {
    color: var(--tf-orange);
    font-size: 12px;
    transition: transform .22s ease, color .22s ease;
}
.arl-tf__link:hover,
.arl-tf__link:focus-visible {
    background: var(--tf-ink);
    color: var(--tf-paper);
    outline: none;
    text-decoration: none;
    gap: 16px;
}
.arl-tf__link:hover i,
.arl-tf__link:focus-visible i {
    color: var(--tf-paper);
    transform: translateX(4px);
}

/* ---------- Hero banner — cover del lookbook ---------------- */
.arl-tf__hero {
    position: relative;
    display: block;
    width: 100%;
    margin: 0 0 clamp(40px, 5vw, 72px);
    overflow: hidden;
    background: var(--tf-cream);
    border: var(--tf-rule) solid var(--tf-ink);
    text-decoration: none;
    isolation: isolate;
}
.arl-tf__hero-media {
    display: block;
    width: 100%;
    aspect-ratio: 19 / 4;
    overflow: hidden;
}
.arl-tf__hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.22,.61,.36,1), filter .6s ease;
}
.arl-tf__hero:hover .arl-tf__hero-media img,
.arl-tf__hero:focus-visible .arl-tf__hero-media img {
    transform: scale(1.04);
    filter: brightness(.94);
}
.arl-tf__hero:focus-visible {
    outline: 3px solid var(--tf-orange);
    outline-offset: 4px;
}
.arl-tf__hero-cap {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 20px 18px;
    background: var(--tf-paper);
    border-right: var(--tf-rule) solid var(--tf-ink);
    border-top: var(--tf-rule) solid var(--tf-ink);
    max-width: 60ch;
}
.arl-tf__hero-cap-eb {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--tf-orange-dp);
    line-height: 1;
}
.arl-tf__hero-cap-tx {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(14px, 1.4vw, 18px);
    line-height: 1.25;
    color: var(--tf-ink);
}

/* ---------- Grid estático 3×2 (desktop/tablet) -------------- */
/* En móvil (<768px) slick reescribe esta capa — ver bloque slick abajo */
.arl-tf__grid {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(22px, 2.5vw, 32px) clamp(20px, 2.2vw, 28px);
}
.arl-tf__cell { margin: 0; padding: 0; }

/* Cuando slick toma control (móvil) — desactiva grid */
.arl-tf__grid.slick-initialized {
    display: block;
    margin: 0 -12px;
    gap: 0;
}
.arl-tf__grid.slick-initialized .arl-tf__cell {
    padding: 14px 12px 18px; /* aire para el sticker protruyente */
    outline: none;
}
/* Slick internals — overflow visible para sticker, alturas iguales */
.arl-tf__grid .slick-list { overflow: visible; padding: 4px 0; }
.arl-tf__grid .slick-track { display: flex; align-items: stretch; }
.arl-tf__grid .slick-slide { height: auto; }
.arl-tf__grid .slick-slide > div { height: 100%; }
.arl-tf__grid .slick-slide .arl-tf__card { height: 100%; }
.arl-tf__grid .slick-prev,
.arl-tf__grid .slick-next { display: none !important; }

/* ---------- Card — gallery hover (image-scale + cap slide) -- */
.arl-tf__card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: var(--tf-ink);
    background: transparent;
    isolation: isolate;
}
.arl-tf__card:focus-visible {
    outline: 3px solid var(--tf-orange);
    outline-offset: 4px;
}

/* Sticker — solo en primer card (regla @gallery) */
.arl-tf__sticker {
    position: absolute;
    top: -10px;
    right: -8px;
    z-index: 3;
    background: var(--tf-ink);
    color: var(--tf-paper);
    padding: 8px 16px 7px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
    border: 1.5px solid var(--tf-orange);
    box-shadow: 3px 3px 0 var(--tf-orange);
    transform: rotate(-6deg);
}
.arl-tf__sticker em {
    font-style: italic;
    text-transform: lowercase;
    color: var(--tf-paper);
}

/* Media — 4/5 portrait, image scales on hover (gallery exception) */
.arl-tf__media {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 241 / 170;
    overflow: hidden;
    background: var(--tf-cream);
    border: var(--tf-rule) solid var(--tf-ink);
}
.arl-tf__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.22,.61,.36,1), filter .55s ease;
}
.arl-tf__card:hover .arl-tf__media img,
.arl-tf__card:focus-visible .arl-tf__media img {
    transform: scale(1.06);
    filter: brightness(.92);
}

/* Caption — Fraunces italic + REF mono, gallery style */
.arl-tf__cap {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 2px 0;
}
.arl-tf__cap-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.arl-tf__cap-name {
    position: relative;
    align-self: flex-start;
    font-family: 'Anton', 'Arial Narrow', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(18px, 1.6vw, 22px);
    letter-spacing: .012em;
    line-height: 1;
    color: var(--tf-ink);
    padding-bottom: 4px;
    background-image: linear-gradient(var(--tf-orange), var(--tf-orange));
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: background-size .35s ease;
}
.arl-tf__card:hover .arl-tf__cap-name,
.arl-tf__card:focus-visible .arl-tf__cap-name {
    background-size: 100% 2px;
}
.arl-tf__cap-sub {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.3;
    color: var(--tf-muted);
}

/* ---------- Signoff editorial mono -------------------------- */
.arl-tf__signoff {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: clamp(40px, 5vw, 64px) 0 0;
    padding: 0;
}
.arl-tf__signoff-rule {
    flex: 0 0 56px;
    height: 2px;
    background: var(--tf-orange);
    display: inline-block;
}
.arl-tf__signoff-mark {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--tf-muted);
    line-height: 1;
}

/* ---------- Responsive -------------------------------------- */
@media (max-width: 991px) {
    .arl-tf__header {
        grid-template-columns: 1fr;
        align-items: start;
    }
    .arl-tf__link {
        grid-column: 1 / -1;
        justify-self: start;
        align-self: start;
    }
    .arl-tf__hero-media { aspect-ratio: 16 / 9; }
    /* En tablet (768-991px) grid sigue activo: baja a 2 cols */
    .arl-tf__grid:not(.slick-initialized) { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
    .arl-tf { padding: 56px 0 64px; }
    .arl-tf__display { font-size: clamp(36px, 11vw, 56px); }
    .arl-tf__eyebrow { flex-wrap: wrap; gap: 8px; }
    .arl-tf__eyebrow-tx { padding-left: 0; font-size: 10px; }
    .arl-tf__hero-media { aspect-ratio: 4 / 3; }
    .arl-tf__hero-cap {
        position: relative;
        max-width: none;
        border-right: 0;
        border-top: var(--tf-rule) solid var(--tf-ink);
    }
    /* Fallback CSS si slick no carga (<575px sin jQuery) */
    .arl-tf__grid:not(.slick-initialized) {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .arl-tf__sticker {
        font-size: 14px;
        padding: 6px 12px 5px;
        top: -8px;
        right: -6px;
    }
    .arl-tf__signoff-mark { font-size: 9.5px; letter-spacing: .18em; }
}

/* ---------- Slick dots (mobile-only, <768px) ----------------
   El carrusel solo se inicializa en <768px (ver init en blade).
   Override del global `style.css` que pone .slick-dots li{display:none}
   en <=512px, por eso forzamos display + width/height + colores. */
.arl-tf .slick-dots {
    position: relative;
    bottom: auto;
    margin: 24px 0 0;
    padding: 8px 0;
    display: flex !important;
    justify-content: center;
    gap: 12px;
    list-style: none;
}
.arl-tf .slick-dots li {
    display: inline-block !important;
    width: 28px !important;
    height: 6px !important;
    margin: 0;
}
.arl-tf .slick-dots li button {
    width: 100%;
    height: 100%;
    padding: 0;
    background: var(--tf-ink);
    border: 0;
    border-radius: 0;
    opacity: .3;
    transition: opacity .2s ease, background .2s ease, transform .2s ease;
    cursor: pointer;
}
.arl-tf .slick-dots li button::before { content: ""; }
.arl-tf .slick-dots li.slick-active button {
    background: var(--tf-orange);
    opacity: 1;
    transform: scaleX(1.4);
    transform-origin: center;
}

/* ---------- Reduced motion ---------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .arl-tf__hero-media img,
    .arl-tf__media img,
    .arl-tf__cap-name,
    .arl-tf__link,
    .arl-tf__link i {
        transition: none !important;
    }
    .arl-tf__hero:hover .arl-tf__hero-media img,
    .arl-tf__card:hover .arl-tf__media img,
    .arl-tf__link:hover i {
        transform: none !important;
    }
}
