/* ==========================================
 * GMoney Newsroom Widget Styles
 * Auto-generated / Compiled CSS
 * ========================================== */

.gmoney-newsroom-container {
  width: 100%;
  box-sizing: border-box;
  font-family: "Helvetica Now Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.gmoney-newsroom-container *,
.gmoney-newsroom-container *::before,
.gmoney-newsroom-container *::after {
  box-sizing: border-box;
}

/* ==========================================
 * BLOQUE 1: FILTRO DE CATEGORÍAS (HEADER)
 * ========================================== */
.gmoney-newsroom-filter {
  margin-bottom: 32px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.gmoney-newsroom-filter__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.gmoney-newsroom-filter__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px 40px;
  border-radius: 9999px;
  background-color: #ffffff;
  color: #182b39;
  font-family: "Helvetica Now Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.gmoney-newsroom-filter__btn:hover {
  background-color: #ffffff;
  color: #0075f4;
  transform: translateY(-2px);
}

.gmoney-newsroom-filter__btn.is-active {
  background-color: #182b39;
  color: #ffffff;
  cursor: default;
  transform: none;
}

.gmoney-newsroom-filter__btn.is-active:hover {
  background-color: #182b39;
  color: #ffffff;
}

/* ==========================================
 * BLOQUE 2: SLIDER DE NOTAS DESTACADAS (HERO)
 * ========================================== */
.gmoney-newsroom-hero {
  margin-bottom: 48px;
  position: relative;
}

.gmoney-newsroom-hero__swiper {
  width: 100%;
  padding-bottom: 44px;
}

.gmoney-newsroom-hero__slide {
  height: auto;
}

.gmoney-newsroom-hero__pagination {
  bottom: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.gmoney-newsroom-hero__pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background-color: #557996;
  opacity: 0.5;
  margin: 0 !important;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gmoney-newsroom-hero__pagination .swiper-pagination-bullet-active {
  width: 28px;
  height: 8px;
  border-radius: 4px;
  background-color: #0075f4;
  opacity: 1;
}

.gmoney-newsroom-hero-card {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 20px;
  overflow: hidden;
  background-color: #182b39;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gmoney-newsroom-hero-card__link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  position: relative;
  padding: 32px 28px;
}

.gmoney-newsroom-hero-card__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-color: #182b39;
  opacity: 0.2;
  transition: opacity 0.4s ease, transform 0.6s ease;
  z-index: 1;
}

.gmoney-newsroom-hero-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.65) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.gmoney-newsroom-hero-card__content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.gmoney-newsroom-hero-card__title {
  font-family: "Helvetica Now Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform 0.3s ease;
}

.gmoney-newsroom-hero-card:hover .gmoney-newsroom-hero-card__bg,
.gmoney-newsroom-hero-card.has-image:hover .gmoney-newsroom-hero-card__bg {
  opacity: 0.8;
  transform: scale(1.05);
}

.gmoney-newsroom-hero-card.has-image:hover .gmoney-newsroom-hero-card__overlay {
  opacity: 0.3;
}

.gmoney-newsroom-hero-card:hover .gmoney-newsroom-hero-card__title,
.gmoney-newsroom-hero-card.has-image:hover .gmoney-newsroom-hero-card__title {
  transform: translateY(-2px);
}

.gmoney-newsroom-hero-card--no-thumb {
  background-color: #182b39;
}

/* ==========================================
 * BLOQUE 3: GRID DE ENTRADAS & TARJETAS
 * ========================================== */
.gmoney-newsroom-grid-section {
  width: 100%;
}

.gmoney-newsroom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  transition: opacity 0.3s ease;
}

.gmoney-newsroom-grid--loading {
  opacity: 0.5;
  pointer-events: none;
}

.gmoney-newsroom-grid__empty {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 16px;
  color: #182b39;
  padding: 40px 0;
}

@media (max-width: 1023px) {
  .gmoney-newsroom-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .gmoney-newsroom-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.gmoney-newsroom-grid-card {
  background-color: transparent;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gmoney-newsroom-grid-card__link {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  text-decoration: none;
  padding: 16px;
}

.gmoney-newsroom-grid-card__image-wrapper {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
  background-color: #182b39;
}

.gmoney-newsroom-grid-card__image-wrapper img,
.gmoney-newsroom-grid-card__image {
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  transition: transform 0.4s ease;
}

.gmoney-newsroom-grid-card__fallback-img {
  width: 100%;
  height: 100%;
  background-color: #182b39;
}

.gmoney-newsroom-grid-card__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  position: relative;
  padding-bottom: 36px;
}

.gmoney-newsroom-grid-card__title {
  font-family: "Helvetica Now Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  color: #182b39;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gmoney-newsroom-grid-card__icon {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  font-size: 26px;
  color: #fdc309;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.gmoney-newsroom-grid-card__icon i,
.gmoney-newsroom-grid-card__icon svg {
  color: #fdc309;
  fill: #fdc309;
  width: 28px;
  height: 28px;
  display: block;
}

.gmoney-newsroom-grid-card__icon svg path {
  fill: #fdc309;
}

.gmoney-newsroom-grid-card:hover {
  background-color: #edf2f4;
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.gmoney-newsroom-grid-card:hover .gmoney-newsroom-grid-card__image {
  transform: scale(1.05);
}

.gmoney-newsroom-grid-card:hover .gmoney-newsroom-grid-card__icon {
  transform: translateX(3px);
}

/* ==========================================
 * BOTÓN "CARGAR MÁS" (PAGINACIÓN AJAX)
 * ========================================== */
.gmoney-newsroom-load-more-wrapper {
  margin-top: 48px;
  text-align: center;
  width: 100%;
}

.gmoney-newsroom-load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  border-radius: 9999px;
  border: 1px solid #182b39;
  background-color: #ffffff;
  color: #182b39;
  font-family: "Helvetica Now Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: none;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.gmoney-newsroom-load-more-btn .gmoney-newsroom-load-more-btn__text {
  color: inherit;
  text-transform: none;
}

.gmoney-newsroom-load-more-btn:hover {
  background-color: #182b39;
  border-color: #182b39;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(24, 43, 57, 0.25);
}

.gmoney-newsroom-load-more-btn:hover .gmoney-newsroom-load-more-btn__text {
  color: #ffffff;
}

.gmoney-newsroom-load-more-btn.is-loading {
  pointer-events: none;
  opacity: 0.8;
}

.gmoney-newsroom-load-more-btn.is-loading .gmoney-newsroom-load-more-btn__spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 10px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: gmoneySpin 0.75s linear infinite;
}

@keyframes gmoneySpin {
  to {
    transform: rotate(360deg);
  }
}
