/* =========================================
   CAROUSEL (Motowolf)
========================================= */

.mw-carousel-wrap{
    width: 100%;
    margin: 0;
}

/* HERO full width (se sale del container) */
.mw-carousel-wrap--hero{
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    /* compensa si tu container tiene padding-top:24px */
    margin-top: -24px;

    margin-bottom: 28px;
}

@media (max-width: 640px){
    .mw-carousel-wrap--hero{
        margin-top: 0; /* evita bugs en mobile */
    }

    /* solo mobile: quita aire arriba si tu #view es container */
    #view.container{
        padding-top: 0;
    }
}

/* Base carousel */
.mw-carousel{
    position: relative;
    overflow: hidden;
    background: #0b0b0b;
    border-radius: 0; /* hero sin bordes */
}

.mw-carousel__track{
    display: flex;
    transition: transform .5s ease;
    will-change: transform;
}

.mw-carousel__slide{
    min-width: 100%;
    position: relative;
    overflow: hidden;
}

/* alturas HERO */
.mw-carousel-wrap--hero .mw-carousel__slide{ height: 560px; }
@media (max-width: 1024px){ .mw-carousel-wrap--hero .mw-carousel__slide{ height: 420px; } }
@media (max-width: 640px){ .mw-carousel-wrap--hero .mw-carousel__slide{ height: 260px; } }
@media (max-width: 400px){ .mw-carousel-wrap--hero .mw-carousel__slide{ height: 220px; } }

/* link ocupa todo */
.mw-carousel__link{
    display: block;
    width: 100%;
    height: 100%;
}

/* =========================================
   MEDIA (img/video/iframe) + picture
   - El <img> lleva class="mw-carousel__media"
   - El <picture> NO lleva clase, pero debe llenar el slide
========================================= */

/* picture ocupa todo el slide */
.mw-carousel__slide picture{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* media siempre cubre (sin franjas negras) */
.mw-carousel__media{
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

/* iframe */
iframe.mw-carousel__media{
    border: 0;
}

/* video */
video.mw-carousel__media{
    object-fit: cover;
}

/* =========================================
   CAPTION
========================================= */

.mw-carousel__caption{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    z-index: 2;

    padding: 26px;

    background: linear-gradient(
            rgba(0,0,0,0),
            rgba(0,0,0,.78)
    );
}

@media (max-width: 640px){
    .mw-carousel__caption{
        padding: 18px;
    }
}

.mw-carousel__caption-inner{
    max-width: 1400px;
    margin: 0 auto;
}

.mw-carousel__caption h2{
    margin: 0;
    color: #fff;
    font-weight: 800;
    font-size: clamp(18px, 2.2vw, 36px);
    letter-spacing: -0.3px;
    text-shadow: 0 6px 18px rgba(0,0,0,.55);
}

/* =========================================
   BUTTONS
========================================= */

.mw-carousel__btn{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    z-index: 3;

    width: 46px;
    height: 46px;

    border-radius: 999px;
    border: none;

    background: rgba(0,0,0,.45);
    color: #fff;

    font-size: 26px;
    line-height: 1;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: background .18s ease, transform .18s ease;
}

.mw-carousel__btn:hover{
    background: rgba(0,0,0,.72);
}

.mw-carousel__btn:active{
    transform: translateY(-50%) scale(.98);
}

.mw-carousel__btn--prev{ left: 14px; }
.mw-carousel__btn--next{ right: 14px; }

@media (max-width: 640px){
    .mw-carousel__btn{
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .mw-carousel__btn--prev{ left: 10px; }
    .mw-carousel__btn--next{ right: 10px; }
}

/* =========================================
   DOTS (barras)
========================================= */

.mw-carousel__dots{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;

    z-index: 3;

    display: flex;
    justify-content: center;
    gap: 10px;
}

.mw-carousel__dot{
    width: 34px;
    height: 4px;

    border-radius: 999px;
    border: none;

    background: rgba(255,255,255,.35);
    cursor: pointer;

    transition: transform .18s ease, background .18s ease;
}

.mw-carousel__dot.is-active{
    background: rgba(255,255,255,.95);
    transform: scaleX(1.15);
}

/* accesibilidad */
.mw-carousel__btn:focus-visible,
.mw-carousel__dot:focus-visible{
    outline: 2px solid rgba(255,255,255,.85);
    outline-offset: 2px;
}
