/* ============================================================
   Tipos de tela · Carrusel · Arletex Design System v3.3
   --------------------------------------------------------------
   Catálogo de tipos de tela en carrusel slick (clase compartida
   .carousel-slick2 → TODO el CSS va escopado bajo .arl-tt para no
   afectar popelina/rollos/colores que reutilizan el mismo slick).

   Declaración:
     registro : @dossier  (catálogo, listado de producto)
     apertura : Dossier (eyebrow stamp + h2 con border-bottom ink)
     marco    : Top-rule (3px orange en el borde superior)
     hover    : lift-orange en cards · scale en imagen
     fondo    : paper (respiro cálido entre dos sections white)
   ============================================================ */

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

    position: relative;
    background: var(--tt-paper);
    color: var(--tt-ink);
    padding: clamp(64px, 8vw, 96px) 0;
    font-family: 'Lato', system-ui, sans-serif;
    overflow: hidden;
    isolation: isolate;
}
/* Marco Top-rule orange */
.arl-tt::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--tt-orange);
}

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

/* ============================================================
   Apertura Dossier · eyebrow + h2 + ver-todos
   ============================================================ */
.arl-tt__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: clamp(12px, 2vw, 24px);
    margin-bottom: clamp(28px, 4vw, 48px);
    padding-bottom: clamp(14px, 2vw, 22px);
    border-bottom: var(--tt-rule) solid var(--tt-ink);
}
.arl-tt__head-l { min-width: 0; }
.arl-tt__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 clamp(8px, 1vw, 14px);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--tt-muted);
}
.arl-tt__eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;
    background: var(--tt-orange);
}
.arl-tt__title {
    font-family: 'Anton', 'Arial Narrow', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(32px, 5vw, 60px) !important;
    line-height: .92;
    letter-spacing: -.015em;
    margin: 0;
}
.arl-tt__title a,
.arl-tt__title a strong {
    color: var(--tt-ink);
    font-weight: 400;
    text-decoration: none;
    transition: color .22s ease;
}
.arl-tt__title a:hover,
.arl-tt__title a:focus-visible { color: var(--tt-orange); outline: none; }

.arl-tt__all {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: 'Lato', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--tt-ink);
    text-decoration: none;
    padding: 12px 18px 11px;
    border: var(--tt-rule) solid var(--tt-ink);
    background: var(--tt-white);
    line-height: 1;
    transition: background .2s ease, color .2s ease, transform .18s ease, box-shadow .18s ease;
}
.arl-tt__all i { color: var(--tt-orange); transition: transform .22s ease, color .2s ease; }
.arl-tt__all:hover,
.arl-tt__all:focus-visible {
    background: var(--tt-ink);
    color: var(--tt-paper);
    outline: none;
    text-decoration: none;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 0 var(--tt-orange);
}
.arl-tt__all:hover i,
.arl-tt__all:focus-visible i { color: var(--tt-paper); transform: translateX(3px); }

/* ============================================================
   Carrusel slick · escopado a .arl-tt
   Alturas uniformes vía dimensiones fijas (imagen cuadrada +
   título min-height + texto altura fija). NO se usa flex-stretch
   porque el slick compartido usa rows:1 y envuelve cada slide en
   divs extra que romperían la cadena flex.
   ============================================================ */
.arl-tt .carousel-slick2 { position: relative; }
.arl-tt .slick-list { padding: 8px 0 16px; }
.arl-tt__slide {
    padding: 0 clamp(7px, .8vw, 11px);
}

/* ---------- Card · lift-orange + top-rule interno ----------- */
.arl-tt__card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--tt-white);
    border: var(--tt-rule) solid var(--tt-ink);
    border-radius: 0;
    overflow: hidden;
    isolation: isolate;
    transition: transform .25s ease, box-shadow .25s ease;
}
.arl-tt__card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--tt-orange);
    z-index: 3;
    pointer-events: none;
}
.arl-tt__card:hover,
.arl-tt__card:focus-within {
    transform: translate(-3px, -3px);
    box-shadow: 5px 5px 0 0 var(--tt-orange);
}

/* ---------- Media · imagen cuadrada -------------------------
   aspect-ratio en el CONTENEDOR (no en el img) + imagen en
   posición absoluta rellenando: así el tamaño intrínseco de la
   imagen nunca influye en el layout, sea cual sea el estado del
   slick. Esto evita que los primeros slides salgan estirados.
   ------------------------------------------------------------ */
.arl-tt__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--tt-cream);
    border-bottom: var(--tt-rule) solid var(--tt-ink);
    line-height: 0;
}
.arl-tt__media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.22,.61,.36,1);
}
.arl-tt__card:hover .arl-tt__media img,
.arl-tt__card:focus-within .arl-tt__media img { transform: scale(1.05); }
.arl-tt__media:focus-visible {
    outline: 3px solid var(--tt-orange);
    outline-offset: -3px;
}

/* ---------- Body · título + texto scroll + CTA -------------- */
.arl-tt__body {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1vw, 12px);
    padding: clamp(14px, 1.6vw, 20px) clamp(14px, 1.6vw, 18px) clamp(16px, 1.6vw, 18px);
    flex: 1;
    min-width: 0;
}

.arl-tt__name {
    font-family: 'Anton', 'Arial Narrow', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(17px, 1.5vw, 22px);
    line-height: 1.05;
    letter-spacing: -.01em;
    margin: 0;
    /* reserva 2 líneas para alinear títulos cortos y largos */
    min-height: 2.1em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.arl-tt__name a {
    color: var(--tt-ink);
    text-decoration: none;
    transition: color .2s ease;
}
.arl-tt__name a:hover,
.arl-tt__name a:focus-visible { color: var(--tt-orange); outline: none; }

/* texto descriptivo — scroll vertical (SEO: links en el DOM) */
.arl-tt__text {
    font-family: 'Lato', sans-serif;
    font-size: clamp(12.5px, .92vw, 14px);
    line-height: 1.55;
    color: var(--tt-ink);
    margin: 0;
    height: 8em;            /* altura fija → cards uniformes */
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--tt-orange) transparent;
}
.arl-tt__text::-webkit-scrollbar { width: 5px; }
.arl-tt__text::-webkit-scrollbar-thumb { background: var(--tt-orange); }
.arl-tt__text strong { font-weight: 800; }
.arl-tt__text a {
    color: var(--tt-ink);
    text-decoration: none;
    background-image: linear-gradient(transparent 62%, rgba(241, 90, 41, .3) 62%);
    transition: color .2s ease, background-image .2s ease;
}
.arl-tt__text a:hover,
.arl-tt__text a:focus-visible {
    color: var(--tt-orange);
    background-image: linear-gradient(transparent 62%, rgba(241, 90, 41, 0) 62%);
    outline: none;
}

.arl-tt__more {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    font-family: 'Lato', sans-serif;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--tt-ink);
    text-decoration: none;
    padding-top: clamp(8px, 1vw, 12px);
    border-top: 1px solid rgba(31, 37, 48, .14);
    width: 100%;
    transition: color .2s ease;
}
.arl-tt__more i { color: var(--tt-orange); transition: transform .22s ease; }
.arl-tt__more:hover,
.arl-tt__more:focus-visible { color: var(--tt-orange); outline: none; text-decoration: none; }
.arl-tt__more:hover i,
.arl-tt__more:focus-visible i { transform: translateX(4px); }

/* ============================================================
   Flechas slick (escopadas) · cuadros ink chunky
   ============================================================ */
.arl-tt .slick-prev,
.arl-tt .slick-next {
    width: 46px;
    height: 46px;
    background: var(--tt-ink);
    border: var(--tt-rule) solid var(--tt-ink);
    border-radius: 0;                 /* cuadrado — sistema Arletex (radius 0) */
    z-index: 5;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);      /* posición estable, sin salto en hover */
    transition: background .2s ease, box-shadow .2s ease;
}
.arl-tt .slick-prev { left: -8px; }
.arl-tt .slick-next { right: -8px; }
.arl-tt .slick-prev:before,
.arl-tt .slick-next:before { display: none; }   /* mata la flecha por defecto del tema slick */
.arl-tt .slick-prev i,
.arl-tt .slick-next i { color: var(--tt-paper); font-size: 15px; }
.arl-tt .slick-prev:hover,
.arl-tt .slick-next:hover,
.arl-tt .slick-prev:focus,
.arl-tt .slick-next:focus {
    background: var(--tt-orange);
    box-shadow: 4px 4px 0 0 var(--tt-ink);   /* chunky sólido, mismo sitio */
    transform: translateY(-50%);             /* NO se mueve al hacer hover */
    outline: none;
}
.arl-tt .slick-prev:hover i,
.arl-tt .slick-next:hover i { color: var(--tt-ink); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 575px) {
    .arl-tt { padding: 56px 0; }
    .arl-tt__head { align-items: flex-start; }
    .arl-tt .slick-prev { left: 2px; }
    .arl-tt .slick-next { right: 2px; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .arl-tt__card,
    .arl-tt__media img,
    .arl-tt__all,
    .arl-tt__all i,
    .arl-tt__more i,
    .arl-tt .slick-prev,
    .arl-tt .slick-next {
        transition: none !important;
    }
    .arl-tt__card:hover,
    .arl-tt__card:focus-within,
    .arl-tt__card:hover .arl-tt__media img,
    .arl-tt__card:focus-within .arl-tt__media img,
    .arl-tt__all:hover {
        transform: none !important;
    }
}
