.adevly-cgs {
  --adevly-cgs-gap-desktop: 24px;
  --adevly-cgs-gap-tablet: 20px;
  --adevly-cgs-gap-mobile: 16px;
  --adevly-cgs-cols-desktop: 3;
  --adevly-cgs-cols-tablet: 2;
  --adevly-cgs-cols-mobile: 1;
  --adevly-cgs-bleed-start-desktop: 0px;
  --adevly-cgs-bleed-start-tablet: 0px;
  --adevly-cgs-bleed-start-mobile: 0px;
  --adevly-cgs-bleed-end-desktop: 0px;
  --adevly-cgs-bleed-end-tablet: 0px;
  --adevly-cgs-bleed-end-mobile: 0px;
}

.adevly-cgs-grid {
  display: grid;
  overflow: visible;
  grid-template-columns: repeat(var(--adevly-cgs-cols-desktop), minmax(0, 1fr));
  gap: var(--adevly-cgs-gap-desktop);
}

.adevly-cgs-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  color: inherit;
  padding: 24px;
  text-decoration: none;
  transition: background-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.adevly-cgs-card:hover,
.adevly-cgs-card:focus-visible {
  color: inherit;
  text-decoration: none;
}

.adevly-cgs-card__media {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.adevly-cgs-card__image {
  display: block;
  width: 100%;
  height: auto;
}

.adevly-cgs-card__content {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  text-align: center;
}

.adevly-cgs-card__svg-wrap {
  display: block;
  line-height: 0;
  text-align: center;
}

.adevly-cgs-card__svg {
  display: inline-block;
  width: 48px;
  height: 48px;
  background-color: currentColor;
  -webkit-mask: var(--adevly-cgs-svg-url) center / contain no-repeat;
  mask: var(--adevly-cgs-svg-url) center / contain no-repeat;
  transition: background-color 0.25s ease;
}

.adevly-cgs-card__text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.adevly-cgs-card__title {
  margin: 0;
}

.adevly-cgs-card__title {
  font-size: 24px;
  line-height: 1.05;
  color: #111;
}

.adevly-cgs-card__date {
  display: block;
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.65);
}

.adevly-cgs-card__icon-wrap {
  display: block;
  width: 100%;
  line-height: 0;
  text-align: left;
}

.adevly-cgs-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  color: currentColor;
  line-height: 1;
  transform: rotate(0deg);
  transform-origin: center;
  vertical-align: top;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.adevly-cgs-card__icon i,
.adevly-cgs-card__icon svg {
  display: block;
  flex: 0 0 auto;
  line-height: 1;
}

.adevly-cgs-card__icon i::before {
  display: block;
  line-height: 1;
}

.adevly-cgs-card__icon svg {
  width: 1em;
  height: 1em;
}

.adevly-cgs .swiper-slide {
  height: auto;
}

.adevly-cgs .swiper-slide > .adevly-cgs-card {
  height: 100%;
}

.adevly-cgs[data-layout="slider"] .adevly-cgs-swiper {
  box-sizing: border-box;
  overflow: visible;
  padding-left: var(--adevly-cgs-bleed-start-desktop);
  padding-right: var(--adevly-cgs-bleed-end-desktop);
}

.adevly-cgs .swiper-pagination {
  display: none;
}

.adevly-cgs-progress {
  width: 300px;
  height: 2px;
  margin: 20px auto 0;
  background: #d9d5cf;
  overflow: hidden;
}

.adevly-cgs-progress__fill {
  display: block;
  width: 0;
  height: 100%;
  background: #3f3f3f;
  transition: width .32s ease;
}

@media (max-width: 1024px) {
  .adevly-cgs-grid {
    grid-template-columns: repeat(var(--adevly-cgs-cols-tablet), minmax(0, 1fr));
    gap: var(--adevly-cgs-gap-tablet);
  }

  .adevly-cgs[data-layout="slider"] .adevly-cgs-swiper {
    padding-left: var(--adevly-cgs-bleed-start-tablet);
    padding-right: var(--adevly-cgs-bleed-end-tablet);
  }
}

@media (max-width: 767px) {
  .adevly-cgs-grid {
    grid-template-columns: repeat(var(--adevly-cgs-cols-mobile), minmax(0, 1fr));
    gap: var(--adevly-cgs-gap-mobile);
  }

  .adevly-cgs-progress {
    width: calc(100% - 32px);
  }

  .adevly-cgs[data-layout="slider"] .adevly-cgs-swiper {
    padding-left: var(--adevly-cgs-bleed-start-mobile);
    padding-right: var(--adevly-cgs-bleed-end-mobile);
  }
}

/* ── Paginación (modo archivo) ──────────────────────────────── */
.vs-blog-pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.vs-blog-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.vs-blog-pagination ul li a,
.vs-blog-pagination ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d0d0d0;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  color: #111;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  box-sizing: border-box;
}

.vs-blog-pagination ul li span.current {
  background: #111;
  color: #fff;
  border-color: #111;
}

.vs-blog-pagination ul li a:hover {
  background: #f0f0f0;
  text-decoration: none;
  color: #111;
}

.vs-blog-pagination ul li .dots {
  border-color: transparent;
  background: transparent;
  cursor: default;
}

.vs-blog-pagination ul li .vs-blog-pagination__disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}
