.home-carousel {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background: var(--dark2);
}

.home-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
  will-change: transform;
}

.home-carousel-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  box-sizing: border-box;
  padding: var(--space);
}

.home-carousel-image,
.home-carousel-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-carousel-image {
  object-fit: cover;
  object-position: top center;
}

.home-carousel-overlay {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.76));
}

.home-carousel-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 70ch;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  color: #fff;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
}

.home-carousel-title {
  margin: 0;
  font-family: 'BebasNeue', sans-serif;
  font-size: clamp(var(--fs-h3), 3vw, var(--fs-h1));
  line-height: 1.15;
}

.home-carousel-description {
  width: 100%;
  max-width: 70ch;
  margin: 0;
  font-size: var(--fs-label);
  line-height: 1.5;
}

/* Botón de los anuncios: misma tipografía y forma que "Boletín Rainbow"
   (dash-btn normal, sin dash-btn-sm), con fondo highlight y texto dark2. */
.home-carousel .home-carousel-link {
  margin-top: 4px;
  text-shadow: none;
  background: var(--highlight) !important;
  color: var(--dark2) !important;
  border: 1px solid var(--highlight) !important;
  font-weight: normal !important;
}

.home-carousel .home-carousel-link:hover {
  color: var(--dark2) !important;
}

/* Flechas laterales (mismo lenguaje visual que el carrusel de avisos) */
.home-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  line-height: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.home-carousel-arrow svg {
  display: block;
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-carousel-arrow:hover {
  background: #fff;
  color: var(--dark2);
}

.home-carousel-arrow:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 2px;
}

.home-carousel-arrow--prev {
  left: 16px;
}

.home-carousel-arrow--next {
  right: 16px;
}

.home-carousel-dots {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 20px;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.home-carousel-dot {
  width: 16px;
  height: 16px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.home-carousel-dot.is-current {
  background: #fff;
}

@media (max-width: 767px) {
  .home-carousel {
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .home-carousel-slide {
    padding: var(--space);
  }

  .home-carousel-content {
    align-items: center;
    gap: 8px;
    margin-bottom: 56px;
    text-align: center;
  }

  .home-carousel-title {
    font-size: var(--fs-h3);
  }

  .home-carousel-description {
    width: 40ch;
    max-width: 100%;
    max-height: 6em;
    overflow: auto;
  }

  .home-carousel-dots {
    bottom: 16px;
  }

  .home-carousel-arrow {
    width: 1.8rem;
    height: 1.8rem;
  }

  .home-carousel-arrow--prev {
    left: 8px;
  }

  .home-carousel-arrow--next {
    right: 8px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .home-carousel-track {
    transition: none;
  }
}
