/* =============================================================================
   Banner Ads Control — Frontend CSS
   ============================================================================= */

/* Contenedor de posición */
.bac-posicion {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

/* Etiqueta "Publicidad" */
.bac-publicidad-label {
    display: block;
    font-size: 10px;
    color: #999;
    text-align: right;
    line-height: 1.4;
    margin-bottom: 4px;
    font-family: sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Wrapper de slides */
.bac-slides-wrapper {
    position: relative;
    width: 100%;
}

/* Slide individual */
.bac-slide {
    display: none;
    width: 100%;
}

.bac-slide.bac-slide-active {
    display: block;
    animation: bacFadeIn 0.5s ease;
}

@keyframes bacFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Modo "todos" — mostrar juntos en columna */
.bac-modo-todos .bac-slide {
    display: block;
    margin-bottom: 12px;
}

.bac-modo-todos .bac-slide:last-child {
    margin-bottom: 0;
}

/* Banner wrap */
.bac-banner-wrap {
    display: block;
    width: 100%;
    cursor: pointer;
}

/* Imagen */
.bac-img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* Video */
.bac-video {
    display: block;
    width: 100%;
    height: auto;
}

/* Link */
.bac-link {
    display: block;
    line-height: 0;
}

/* HTML personalizado */
.bac-banner-wrap.bac-html {
    line-height: normal;
}

/* Dots de navegación */
.bac-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 8px 0 4px;
    line-height: 1;
}

.bac-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s;
    display: inline-block;
}

.bac-dot.bac-dot-active {
    background: #555;
}

/* Placeholder en Elementor / Bricks (editor) */
.bac-elementor-placeholder,
.bac-bricks-placeholder {
    background: #f0f4ff;
    border: 2px dashed #99aacf;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    color: #667;
    font-size: 14px;
    font-family: sans-serif;
}

.bac-elementor-placeholder .dashicons {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
    color: #99aacf;
}
