.carrusel-ags-container {
  position: relative;
  background: transparent;
  font-family: 'Raleway', sans-serif;
}

.scroll_controls {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  z-index: 10;
  pointer-events: none; /* no bloquea clics en tarjetas */
}

.scroll_controls .arrow-btn {
  pointer-events: auto;
  font-size: 1.6rem;
  color: #000;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.scroll_controls .arrow-btn:hover {
  background-color: #203a73;
  color: #fff;
}

.scroll_wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  white-space: nowrap;
  scrollbar-width: none;
}
.scroll_wrapper::-webkit-scrollbar {
  display: none;
}

.card_scroll {
  display: inline-block;
  width: 280px;
  height: 420px;
  margin-right: 20px;
  position: relative;
  color: white;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}
.card_scroll:hover {
  transform: translateY(-5px);
}

.card_overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 30px 20px;
  text-align: center;
  z-index: 2;
}

.card_overlay h3 {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 10px;
  white-space: normal;
}

.card_overlay p {
  font-size: 14px;
  margin: 0;
  line-height: 1.4;
  white-space: normal;
  word-break: break-word;
  opacity: 0;
  max-height: 0;
  transition: opacity 0.4s ease, max-height 0.4s ease;
}

.card_scroll:hover .card_overlay p {
  opacity: 1;
  max-height: 200px;
}

.card_overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
  z-index: 1;
}

.card_overlay > * {
  position: relative;
  z-index: 2;
}

.icon_topright {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ffffffee;
  color: #000;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  z-index: 3;
  text-decoration: none;
}
.icon_topright i {
  transform: rotate(-45deg);
}
