/* ============================================================
   Patodato Banners Rotativos — banners.css
   ============================================================ */

/* ── Wrapper exterior ─────────────────────────────────────── */
.pdb-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
    /* El aspect-ratio base es 2:1 (1774×887). En móvil lo dejamos crecer. */
    aspect-ratio: 2 / 1;
    max-height: 600px; /* tope en monitores muy grandes */
}

/* ── Contenedor de slides ────────────────────────────────── */
.pdb-slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: none; /* movemos slide a slide, no con transform */
}

/* ── Slide individual ────────────────────────────────────── */
.pdb-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.pdb-slide--active {
    opacity: 1;
    pointer-events: auto;
    position: relative; /* ocupa espacio solo el activo */
    z-index: 1;
}

/* ── Imagen ──────────────────────────────────────────────── */
.pdb-slide-link,
.pdb-slide-link--no-link {
    display: block;
    width: 100%;
    height: 100%;
}

.pdb-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.pdb-slide-link:hover .pdb-slide-img {
    transform: scale(1.01);
}

/* ── Botones prev / next ─────────────────────────────────── */
.pdb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.45);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s ease, opacity 0.2s ease;
    opacity: 0.7;
}

.pdb-nav:hover {
    background: rgba(0, 0, 0, 0.75);
    opacity: 1;
}

.pdb-nav svg {
    width: 22px;
    height: 22px;
    display: block;
}

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

/* ── Dots indicadores ────────────────────────────────────── */
.pdb-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
    align-items: center;
}

.pdb-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.pdb-dot--active {
    background: #fff;
    transform: scale(1.25);
    border-color: #fff;
}

.pdb-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* ── Responsive ──────────────────────────────────────────── */
@media ( max-width: 768px ) {
    .pdb-slider-wrapper {
        aspect-ratio: 16 / 9;
        max-height: none;
    }

    .pdb-nav {
        width: 36px;
        height: 36px;
    }

    .pdb-nav svg {
        width: 18px;
        height: 18px;
    }

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

@media ( max-width: 480px ) {
    .pdb-slider-wrapper {
        aspect-ratio: 4 / 3;
    }

    .pdb-nav {
        display: none; /* en móvil muy pequeño se navega solo con dots / autoplay */
    }

    .pdb-dot {
        width: 8px;
        height: 8px;
    }
}
