/* ═══════════════════════════════════════════════════════
   Banner Responsive v3 — Frontend CSS
   Desarrollado por Christopher Junior Cuadros Matta
   christopherc.contacto@gmail.com
   ═══════════════════════════════════════════════════════ */

.mbr-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #111;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Track: sin altura propia, la toma del slide activo */
.mbr-track {
    position: relative;
    width: 100%;
}

/* Todos los slides apilados */
.mbr-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    pointer-events: none;
    /* transition se inyecta inline desde PHP */
}

/* El slide activo es el que ocupa espacio y define la altura */
.mbr-slide.active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
    /* height se inyecta inline desde PHP según breakpoint */
}

/* Cobertura completa para el link */
.mbr-slide-link {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 2;
}

/* ── Flechas ─────────────────────────────────────────── */
.mbr-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,.45);
    color: #fff;
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s, border-color .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.mbr-arrow:hover,
.mbr-arrow:focus  { background: rgba(0,0,0,.75); border-color: rgba(255,255,255,.8); outline: none; }
.mbr-prev { left: 16px; }
.mbr-next { right: 16px; }

/* ── Puntos ──────────────────────────────────────────── */
.mbr-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.mbr-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .2s, transform .2s;
}
.mbr-dot.active,
.mbr-dot:hover,
.mbr-dot:focus  { background: #fff; transform: scale(1.3); outline: none; }

/* ── Móvil: flechas más compactas ────────────────────── */
@media (max-width: 480px) {
    .mbr-arrow { width: 38px; height: 38px; font-size: 24px; }
    .mbr-prev  { left: 8px; }
    .mbr-next  { right: 8px; }
    .mbr-dots  { bottom: 10px; }
}
