.news-slider {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 320px;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 1px solid rgba(215, 180, 106, 0.35);
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}

/* Orden de capas del slider */
.news-slide { 
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
  z-index: 1;                 /* base: media */
}
.news-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

/* La imagen/video va detrás del overlay */
.news-slide .news-media {
  position: absolute;
  inset: 0;
  z-index: 1;                 /* media al fondo dentro de la slide */
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay de texto por encima del media */
.news-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 12px 16px;
  background: rgba(0,0,0,0.55);
  color: #f5e7c5;
  z-index: 2;                 /* encima del media */
}

/* Flechas por encima del overlay */
/* Arrows default: hidden */
.news-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: 0;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
  z-index: 5;

  /* Show on hover behavior */
  opacity: 0;                 /* hidden by default */
  visibility: hidden;         /* remove from accessibility flow visually */
  pointer-events: none;       /* avoid accidental clicks when hidden */
  transition: opacity .25s ease;
}
.news-arrow.left  { left: 10px; }
.news-arrow.right { right: 10px; }
.news-arrow:hover { background: rgba(0,0,0,0.8); }

/* Reveal arrows when hovering the slider */
.news-slider:hover .news-arrow {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Keep arrows visible when focused (keyboard accessibility) */
.news-arrow:focus-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  outline: 2px solid #d6b06a; /* accessible focus ring */
  outline-offset: 2px;
}

/* On touch devices (no hover), keep arrows visible */
@media (hover: none) {
  .news-arrow {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}


/* Bolitas aún más arriba */
.news-dots {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 6;                 /* por sobre flechas/overlay/media */
  pointer-events: auto;       /* aseguran clics sobre el video */
}
.news-dots span {
  width: 10px; height: 10px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  cursor: pointer;
}
.news-dots span.active { background: #d6b06a; }


.news-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.news-slide.active {
  opacity: 1;
  z-index: 1;
}

.news-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 12px 16px;
  background: rgba(0,0,0,0.55);
  color: #f5e7c5;
}

.news-title {
  margin: 0;
  font-family: "Cinzel Decorative", serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.news-text {
  margin: 6px 0 0;
  font-size: 1.1rem;
  font-family: "Cormorant Garamond", serif;
}

/* Flechas */
.news-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 4px 8px;
  cursor: pointer;
  z-index: 2;
}
.news-arrow.left { left: 10px; }
.news-arrow.right { right: 10px; }
.news-arrow:hover { background: rgba(0,0,0,0.8); }

/* Puntos */
.news-dots {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.news-dots span {
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  cursor: pointer;
}
.news-dots span.active {
  background: #d6b06a; /* dorado activo */
}

.news-slide .news-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
