/* ============================================================
   Envíos recurrentes · Contenedor marítimo · Arletex DS v3.3
   --------------------------------------------------------------
   Sección de logística con estética de CONTENEDOR DE CARGA naranja:
   corrugado vertical (acero), rieles superior/inferior con tornillos,
   marco con esquineros y código stencil. Atrevido — registro @fanzine.

   Declaración:
     registro : @fanzine (atrevido, ruidoso)
     apertura : stencil mono (placa) + h2
     marco    : full-frame ink (panel del contenedor) + esquineros
     hover    : lift-orange/press en plates · scale en imagen
     fondo    : orange (acento dramático, como ink — usar 1 vez)

   Contraste: el cuerpo va en placas cream/paper (AA garantizado);
   el h2 grande va en ink directo sobre naranja (texto grande ≥3:1).
   ============================================================ */

.arl-er {
    --er-ink:        var(--ax-ink, #1F2530);
    --er-paper:      var(--ax-paper, #FAF6EE);
    --er-cream:      var(--ax-cream, #F2EDE4);
    --er-white:      var(--ax-white, #FFFFFF);
    --er-orange:     var(--ax-orange, #F15A29);
    --er-orange-dp:  var(--ax-orange-deep, #B0401A);
    --er-groove:     #A93C18;   /* surco recesado (más oscuro que orange-deep) */
    --er-face:       #F15A29;   /* cara del rib — naranja Arletex */
    --er-hi:         #F8743F;   /* brillo de la cara */
    --er-cast:       #5C2410;   /* esquineros / herrajes (casting) */
    --er-rule:       2px;

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

    /* Fondo: imagen del contenedor marítimo Arletex (marco, ribs,
       esquineros y herrajes ya vienen en la imagen) */
    background: var(--er-orange) url('/images/home/nuevo-home/fondo-contenedor.jpg') center center / 100% 100% no-repeat;
}

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

/* ============================================================
   Apertura · stencil + h2
   ============================================================ */
.arl-er__head {
    margin-bottom: clamp(28px, 4vw, 44px);
    max-width: 30ch;
}
.arl-er__stencil {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--er-ink);
    color: var(--er-paper);
    padding: 8px 14px 7px;
    margin: 0 0 clamp(14px, 2vw, 20px);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .26em;
    text-transform: uppercase;
    line-height: 1;
    box-shadow: 4px 4px 0 rgba(0,0,0,.28);
}
.arl-er__title {
    font-family: 'Anton', 'Arial Narrow', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(30px, 5vw, 58px) !important;
    line-height: .92;
    letter-spacing: -.005em;
    color: var(--er-white);
    margin: 0;
    /* stencil de carga: blanco con sombra sólida ink (sin blur) */
    text-shadow: 3px 3px 0 var(--er-ink);
}
.arl-er__title em {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    text-transform: lowercase;
    letter-spacing: -.025em;
    color: var(--er-white);
}

/* ============================================================
   Layout · features + copy (izq) · imagen (der)
   ============================================================ */
.arl-er__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 44px);
    align-items: center;
}
.arl-er__col {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 1.6vw, 18px);
}

/* Plates de features (placards de carga) */
.arl-er__feat {
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.8vw, 20px);
    background: var(--er-cream);
    border: var(--er-rule) solid var(--er-ink);
    box-shadow: 4px 4px 0 0 var(--er-ink);
    padding: clamp(12px, 1.6vw, 18px) clamp(14px, 1.8vw, 22px);
    transition: transform .2s ease, box-shadow .2s ease;
}
.arl-er__feat:hover {
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0 0 var(--er-ink);
}
.arl-er__feat-ico {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(48px, 5vw, 60px);
    height: clamp(48px, 5vw, 60px);
    background: var(--er-ink);
    color: var(--er-orange);
    font-size: clamp(20px, 2.4vw, 26px);
}
.arl-er__feat-tx {
    font-family: 'Anton', 'Arial Narrow', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(15px, 1.5vw, 19px);
    line-height: 1.02;
    letter-spacing: -.005em;
    color: var(--er-ink);
    margin: 0;
}

/* Copy card */
.arl-er__copy {
    background: var(--er-paper);
    border: var(--er-rule) solid var(--er-ink);
    border-left: 5px solid var(--er-ink);
    box-shadow: 4px 4px 0 0 rgba(0,0,0,.28);
    padding: clamp(16px, 2vw, 24px) clamp(18px, 2.2vw, 26px);
    font-size: clamp(13.5px, 1vw, 15px);
    line-height: 1.65;
    color: var(--er-ink);
    margin: 0;
}
.arl-er__copy a {
    color: var(--er-ink);
    text-decoration: none;
    background-image: linear-gradient(transparent 60%, rgba(241, 90, 41, .35) 60%);
    transition: color .2s ease, background-image .2s ease;
}
.arl-er__copy a:hover, .arl-er__copy a:focus-visible {
    color: var(--er-orange-dp);
    background-image: linear-gradient(transparent 60%, rgba(241, 90, 41, 0) 60%);
    outline: none;
}
.arl-er__copy strong { font-weight: 800; }

/* CTA → contacto · chunky press */
.arl-er__cta {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: clamp(2px, 1vw, 6px);
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--er-paper);
    background: var(--er-ink);
    border: var(--er-rule) solid var(--er-ink);
    padding: 16px 28px 15px;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 6px 0 0 rgba(0, 0, 0, .35);
    transition: transform .12s ease, box-shadow .12s ease;
}
.arl-er__cta i { color: var(--er-orange); transition: transform .22s ease; }
.arl-er__cta:hover,
.arl-er__cta:focus-visible {
    outline: none;
    text-decoration: none;
    color: var(--er-paper);
    transform: translateY(-2px);
    box-shadow: 0 8px 0 0 rgba(0, 0, 0, .35);
}
.arl-er__cta:hover i,
.arl-er__cta:focus-visible i { transform: translateX(4px); }
.arl-er__cta:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 0 rgba(0, 0, 0, .35);
}

/* Imagen — panel del contenedor */
.arl-er__media {
    display: block;
    border: 3px solid var(--er-ink);
    box-shadow: 10px 10px 0 0 var(--er-ink);
    overflow: hidden;
    line-height: 0;
    background: var(--er-cream);
    transition: transform .25s ease, box-shadow .25s ease;
}
.arl-er__media img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .7s cubic-bezier(.22,.61,.36,1);
}
.arl-er__media:hover { transform: translate(-4px, -4px); box-shadow: 14px 14px 0 0 var(--er-ink); }
.arl-er__media:hover img { transform: scale(1.04); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 859px) {
    .arl-er__grid { grid-template-columns: 1fr; }
    .arl-er__media { order: -1; }
}
@media (max-width: 575px) {
    .arl-er { padding: 64px 0; }
    .arl-er__frame { inset: clamp(14px, 2vw, 20px) 8px; }
    .arl-er__feat { box-shadow: 3px 3px 0 0 var(--er-ink); }
    .arl-er__media { box-shadow: 6px 6px 0 0 var(--er-ink); }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .arl-er__feat, .arl-er__media, .arl-er__media img, .arl-er__copy a,
    .arl-er__cta, .arl-er__cta i {
        transition: none !important;
    }
    .arl-er__feat:hover, .arl-er__media:hover,
    .arl-er__cta:hover, .arl-er__cta:focus-visible, .arl-er__cta:active { transform: none !important; }
    .arl-er__media:hover img { transform: none !important; }
}
