/* assets/css/carrusel-pub.css
   Controles del carrusel de publicidad (flechas, puntos, arrastre).
   Compartido por el index principal y el portal de clientes.
   El contenedor de cada carrusel debe ser position:relative; overflow:hidden. */

.publicidad-track {
    cursor: grab;
    touch-action: pan-y;   /* el scroll vertical de la página sigue funcionando */
}
.publicidad-track:active { cursor: grabbing; }

.publicidad-slide img {
    -webkit-user-drag: none;
    user-select: none;
}

.carrusel-flecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.carrusel-flecha:hover { background: rgba(0, 0, 0, 0.72); }
.carrusel-prev { left: 10px; }
.carrusel-next { right: 10px; }

.carrusel-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 7px;
    z-index: 5;
}
.carrusel-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.carrusel-dot.activo {
    background: #fff;
    transform: scale(1.25);
}

@media (max-width: 768px) {
    .carrusel-flecha { width: 34px; height: 34px; font-size: 1.4rem; }
}
