/* =============================================================================
   Banner de INOXCYL con la identidad de su landing (inoxcyl.com)
   =============================================================================
   Hoja autosuficiente: no depende de ningun otro css de la tienda y todas sus
   clases van con el prefijo "bnx" para no chocar con nada existente.

   Colores y tipografia tomados de la propia landing:
     panel   #2b3444 -> #202737 -> #1b2130      azul    #2a6bad
     naranja #fb8332                            titular Space Grotesk
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&display=swap');

.bnx {
    position: relative;
    display: block;
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    aspect-ratio: 128 / 45;
    min-height: 190px;
    overflow: hidden;
    background: linear-gradient(160deg, #2b3444 0%, #202737 55%, #1b2130 100%);
    border-radius: 10px;
    box-shadow: 0 18px 40px -26px rgba(16, 24, 40, .65);
    transition: transform .3s cubic-bezier(.2, .7, .3, 1), box-shadow .3s ease;
}

.bnx:hover {
    box-shadow: 0 30px 60px -30px rgba(42, 107, 173, .75);
    transform: translateY(-4px);
}

/* la foto ocupa su propia mitad derecha */
.bnx__foto {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 54%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}

.bnx:hover .bnx__foto {
    transform: scale(1.03);
}

/* funde la foto con el panel y anade la trama diagonal de la landing */
.bnx__velo {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background:
        linear-gradient(90deg, rgb(27, 33, 48) 0%, rgb(30, 37, 52) 44%, rgba(30, 37, 52, .72) 52%, rgba(30, 37, 52, .18) 62%, rgba(30, 37, 52, 0) 74%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .05) 1px, rgba(0, 0, 0, 0) 1px, rgba(0, 0, 0, 0) 10px);
}

.bnx__contenido {
    position: absolute;
    top: 50%;
    left: 34px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    max-width: 46%;
    transform: translateY(-50%);
}

.bnx__antetitulo {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #8fb4dd;
}

.bnx__logo {
    display: block;
    width: 190px;
    max-width: 100%;
    height: auto;
}

.bnx__reclamo {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .78);
}

.bnx__accion {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
    padding: 11px 20px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    background: #fb8332;
    border-radius: 10px;
    transition: background-color .2s ease;
}

.bnx:hover .bnx__accion {
    background: #e8701f;
}

/* el enlace cubre todo el banner */
.bnx__capa {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3;
    cursor: pointer;
}

.bnx__capa:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -5px;
}

/* texto solo para lectores de pantalla */
.bnx__oculto {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 767px) {
    /* no caben dos columnas: la foto ocupa el panel, el degradado pasa a
       vertical y el contenido baja al pie */
    .bnx {
        aspect-ratio: 16 / 10;
        min-height: 200px;
        border-radius: 10px;
    }

    .bnx__foto {
        width: 100%;
    }

    .bnx__velo {
        background:
            linear-gradient(180deg, rgba(27, 33, 48, .35) 0%, rgba(27, 33, 48, .80) 55%, rgba(27, 33, 48, .97) 100%),
            repeating-linear-gradient(45deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .05) 1px, rgba(0, 0, 0, 0) 1px, rgba(0, 0, 0, 0) 10px);
    }

    .bnx__contenido {
        top: auto;
        right: 14px;
        bottom: 14px;
        left: 14px;
        max-width: none;
        gap: 8px;
        transform: none;
    }

    .bnx__logo {
        width: 140px;
    }

    /* el reclamo sobra en 375px: compite con el logotipo y el boton */
    .bnx__reclamo {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bnx,
    .bnx__foto {
        transition: none;
    }

    .bnx:hover,
    .bnx:hover .bnx__foto {
        transform: none;
    }
}
