/* cdbanner/assets/slider.css
   CDBanner v1.0.0 - Estilos del slider y banners en el frontend */

/* ============================================================
   Wrapper general
   ============================================================ */

.cdbanner-wrapper {
    width: 100%;
}

/* ============================================================
   Banner estatico (modo Fijo)
   ============================================================ */

.cdbanner-static {
    width: 100%;
    display: block;
    margin-top: 12px;
    line-height: 0;
}

.cdbanner-static img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.cdbanner-static a {
    display: block;
    line-height: 0;
}

/* ============================================================
   Slider container (modo Rotativo)
   ============================================================ */

.cdbanner-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #111;
    line-height: 0;
}

.cdbanner-slider {
    position: relative;
    width: 100%;
}

/* ============================================================
   Slides
   ============================================================ */

.cdbanner-slide {
    display: none;
    width: 100%;
    line-height: 0;
}

.cdbanner-slide.is-active {
    display: block;
    animation: cdb-fade-in .55s ease;
}

@keyframes cdb-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.cdbanner-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.cdbanner-slide a {
    display: block;
    line-height: 0;
}

/* ============================================================
   Flechas de navegacion
   ============================================================ */

.cdbanner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    border: 1px solid rgba(255,255,255,.22);
    width: 46px;
    height: 46px;
    border-radius: 7px;
    font-size: 24px;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background .25s, transform .25s, opacity .25s;
    opacity: .8;
    line-height: 1;
}

.cdbanner-prev { left: 14px; }
.cdbanner-next { right: 14px; }

.cdbanner-nav:hover {
    background: rgba(255,255,255,.28);
    border-color: rgba(255,255,255,.4);
    opacity: 1;
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 3px 12px rgba(0,0,0,.2);
}

.cdbanner-nav:active {
    transform: translateY(-50%) scale(.97);
}

/* ============================================================
   Indicadores (dots)
   ============================================================ */

.cdbanner-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: center;
    z-index: 9;
}

.cdbanner-dot {
    width: 30px;
    height: 3px;
    border-radius: 2px;
    border: 0;
    background: rgba(255,255,255,.35);
    cursor: pointer;
    transition: background .3s, width .3s;
    padding: 0;
}

.cdbanner-dot:hover {
    background: rgba(255,255,255,.55);
}

.cdbanner-dot.is-active {
    background: #fff;
    width: 46px;
    box-shadow: 0 1px 6px rgba(255,255,255,.3);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 600px) {
    .cdbanner-nav {
        width: 36px;
        height: 36px;
        font-size: 20px;
        opacity: .75;
    }

    .cdbanner-prev { left: 8px; }
    .cdbanner-next { right: 8px; }

    .cdbanner-dots {
        bottom: 8px;
        gap: 4px;
    }

    .cdbanner-dot        { width: 22px; height: 2.5px; }
    .cdbanner-dot.is-active { width: 34px; }
}

@media (min-width: 601px) and (max-width: 1024px) {
    .cdbanner-nav { width: 40px; height: 40px; }
    .cdbanner-dot        { width: 26px; }
    .cdbanner-dot.is-active { width: 40px; }
}
