/* ============================================================
   Atsys Elements – Photo Carousel
   v2.3.0 · Tipos: bullets · numbers · fraction · progressbar
   ============================================================ */

/* ── Estructura base ───────────────────────────────────────── */
.atsys-pc-outer      { position: relative; }
.atsys-pc-swiper-row { position: relative; overflow: hidden; }

/* Slide */
.atsys-pc-slide {
    overflow: hidden;
    width: 100%;
    flex-shrink: 0;
    display: block;
}

/* Imagen */
.atsys-pc-img-wrap {
    display: block;
    width: 100%;
    overflow: hidden;
}
.atsys-pc-img-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Placeholder */
.atsys-pc-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 13px;
}

/* Modo natural */
.atsys-pc-slide[style*="height:auto"] .atsys-pc-img-wrap img {
    height: auto;
    object-fit: initial;
}

/* ── Barras (top / bottom) con zonas left/center/right ────── */
.atsys-pc-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}
.atsys-pc-bar--top    { margin-bottom: 16px; }
.atsys-pc-bar--bottom { margin-top:    16px; }

.atsys-pc-zone {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    min-width: 0;
}
.atsys-pc-zone--left   { justify-content: flex-start; }
.atsys-pc-zone--center { justify-content: center;     }
.atsys-pc-zone--right  { justify-content: flex-end;   }
.atsys-pc-zone:empty   { pointer-events: none; }

/* ── Flechas ──────────────────────────────────────────────── */
.atsys-pc-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.atsys-pc-prev,
.atsys-pc-next {
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.4);
    border: 0 solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .2s ease, color .2s ease,
                transform .15s ease, border-color .2s ease,
                box-shadow .2s ease, opacity .2s ease;
    flex-shrink: 0;
}

.atsys-pc-prev:focus-visible,
.atsys-pc-next:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.atsys-pc-prev::after,
.atsys-pc-next::after {
    font-family: swiper-icons;
    font-size: 14px;
    color: #fff;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    text-variant: initial;
    line-height: 1;
}
.atsys-pc-prev::after { content: 'prev'; }
.atsys-pc-next::after { content: 'next'; }

/* Flecha flotante 'sides' */
.atsys-pc-nav-pos--sides .atsys-pc-swiper-row .atsys-pc-prev,
.atsys-pc-nav-pos--sides .atsys-pc-swiper-row .atsys-pc-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.atsys-pc-nav-pos--sides .atsys-pc-swiper-row .atsys-pc-prev { left: 12px; }
.atsys-pc-nav-pos--sides .atsys-pc-swiper-row .atsys-pc-next { right: 12px; }

.atsys-pc-prev.swiper-button-disabled,
.atsys-pc-next.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

/* ══════════════════════════════════════════════════════════
   RESET de Swiper para la paginación dentro de barras/zonas
   ══════════════════════════════════════════════════════════ */
.atsys-pc-zone .atsys-pc-pagination,
.atsys-pc-zone .atsys-pc-fraction,
.atsys-pc-zone .atsys-pc-progressbar {
    position: static !important;
    left:   auto !important;
    right:  auto !important;
    top:    auto !important;
    bottom: auto !important;
    transform: none !important;
    text-align: initial !important;
}
.atsys-pc-zone .atsys-pc-pagination,
.atsys-pc-zone .atsys-pc-fraction {
    width: auto !important;
}
.atsys-pc-zone .atsys-pc-progressbar {
    position: relative !important;
}

/* ══════════════════════════════════════════════════════════
   PAGINACIÓN · Tipo BULLETS
   ══════════════════════════════════════════════════════════ */
.atsys-pc-pagination {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.atsys-pc-bullet {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #cbd5e1;
    border: 0 solid transparent;
    transition: background-color .2s ease, border-color .2s ease,
                width .25s ease, height .25s ease,
                opacity .2s ease, transform .2s ease;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.atsys-pc-bullet--active {
    background-color: #1e293b;
    opacity: 1;
}

.atsys-pc-pagination--shape-circle  .atsys-pc-bullet { border-radius: 50%; }
.atsys-pc-pagination--shape-square  .atsys-pc-bullet { border-radius: 0;   }
.atsys-pc-pagination--shape-rounded .atsys-pc-bullet { border-radius: 4px; }

.atsys-pc-pagination.swiper-pagination-lock { display: none; }

/* ══════════════════════════════════════════════════════════
   PAGINACIÓN · Tipo NUMBERS
   ══════════════════════════════════════════════════════════ */
.atsys-pc-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    padding: 6px 12px;
    background-color: transparent;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    border: 0 solid transparent;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease,
                border-color .2s ease, transform .15s ease;
    user-select: none;
    text-align: center;
}

.atsys-pc-number--active {
    background-color: #1e293b;
    color: #fff;
}

.atsys-pc-pagination--nshape-pill    .atsys-pc-number { border-radius: 999px; }
.atsys-pc-pagination--nshape-square  .atsys-pc-number { border-radius: 0;     }
.atsys-pc-pagination--nshape-rounded .atsys-pc-number { border-radius: 6px;   }
.atsys-pc-pagination--nshape-circle  .atsys-pc-number { border-radius: 50%; padding: 0; min-width: 40px; min-height: 40px; }
.atsys-pc-pagination--nshape-none    .atsys-pc-number {
    background-color: transparent !important;
    padding: 4px 8px;
}

/* ══════════════════════════════════════════════════════════
   PAGINACIÓN · Tipo FRACTION
   ══════════════════════════════════════════════════════════ */
.atsys-pc-fraction {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    color: #64748b;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.atsys-pc-fraction .swiper-pagination-current {
    color: #1e293b;
    font-weight: 700;
}
.atsys-pc-fraction-sep { opacity: .6; }

/* ══════════════════════════════════════════════════════════
   PAGINACIÓN · Tipo PROGRESSBAR
   ══════════════════════════════════════════════════════════ */
.atsys-pc-progressbar {
    position: relative;
    display: block;
    width: 200px;
    height: 4px;
    background-color: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}
.atsys-pc-progressbar .swiper-pagination-progressbar-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1e293b;
    transform: scale(0);
    transform-origin: left top;
    border-radius: 2px;
}
