/* CONTENEDOR GENERAL */
.carousel-page{
  width: 100%;
  padding: 40px 0;
  text-align: center;
}

.carousel-page h1{
  font-family: 'Cinzel', serif;
  line-height: 1.15;
  font-size: clamp(30px, 8.5vw, 48px);
  color: #f5df25;
  margin-bottom: 10px;
}

.carousel-page p{
  font-size: 20px;
  font-size: clamp(16px, 4.6vw, 20px);
  color: #fff;         /* igual que el subtítulo de Swiper */
  margin-bottom: 40px;
  display: block;
}

/* CONTENEDOR DEL CARRUSEL */
.carousel-container{
  position: relative;
  width: 1260px;
  margin: auto;
  overflow: hidden;
  padding-top: 8px; /* evita corte del borde al hacer hover */
}

/* FILA DEL CARRUSEL */
.carousel{
  display: flex;
  gap: 20px;
  transition: transform 0.6s ease, opacity 0.4s ease;
}

/* TARJETAS */
.news-card{
  flex: 0 0 300px;
  width: 300px;
  height: 260px;
  padding: 20px;

  border-radius: 15px;
  border: 1px solid rgba(255,215,0,0.6);

  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  display: flex;
  flex-direction: column;

  text-align: center;
  box-sizing: border-box;

  transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

/* HOVER elegante sin cortar borde */
.news-card:hover{
  transform: translateY(-4px);
  border: 1px solid gold;
  box-shadow: 0 12px 25px rgba(255,215,0,0.18);
}

/* FECHA */
.news-date{
  font-size: 13px;
  color: #ccc;
  margin-bottom: 10px;
}

/* TITULO max 2 lineas */
.news-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;

  color: gold; /* aplicar color dorado al contenedor también */
}

.news-title a {
  color: inherit; /* hereda del contenedor */
  text-decoration: none;
}

.news-title a:hover{
  color: #f5df25;
}

/* LOGO + MEDIO */
.news-source{
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* LOGO */
.news-source img{
  max-height: 45px;
  width: auto;
  object-fit: contain;

  background: white;
  padding: 4px;
  border-radius: 6px;
}

/* NOMBRE MEDIO */
.news-source span{
  color: gold;
  font-size: 14px;
}

/* BOTONES */
.carousel-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  background: rgba(0,0,0,0.75);
  border: 2px solid gold;
  color: gold;

  font-size: 22px;

  width: 48px;
  height: 48px;

  border-radius: 50%;
  cursor: pointer;

  transition: all 0.25s ease;
  z-index: 50;
}

.carousel-btn.prev{
  left: 5px;
}

.carousel-btn.next{
  right: 5px;
}

.carousel-btn:hover{
  background: gold;
  color: black;
}

/* PUNTITOS */
.carousel-dots{
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.carousel-dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid gold;
  cursor: pointer;
  border-color: #f5df25 !important; /* dorado */
  background-color: #f5df25 !important; /* dorado */
  opacity: 0.4 !important; /* inactivo tenue */
  transition: 0.3s;
}

.carousel-dot.active{
  background-color: #f5df25 !important; /* dorado */
  opacity: 1 !important; /* activo totalmente visible */
}

/* RESPONSIVE
   Escritorio/tablet: el contenedor muestra un nº ENTERO de tarjetas (4, 3 o 2).
   Móvil: una tarjeta que ocupa todo el ancho; botones debajo. */
.carousel-page { padding-bottom: 130px; }              /* hueco para el pie fijo */
.carousel-container { max-width: 100%; }
@media (max-width:1300px){
  .carousel-container{ width:940px; }
}
@media (max-width:1000px){
  .carousel-container{ width:620px; }
}
@media (max-width:680px){
  .carousel-container{
    width: calc(100% - 24px);
    max-width: 460px;
    padding-bottom: 66px;                              /* sitio para los botones */
  }
  .news-card{ flex: 0 0 100%; width: 100%; height: auto; min-height: 250px; }
  .carousel-btn{
    top: auto; bottom: 4px; transform: none;
    width: 46px; height: 46px; font-size: 20px;
  }
  .carousel-btn.prev{ left: calc(50% - 56px); }
  .carousel-btn.next{ right: calc(50% - 56px); }
}
@media (hover: none){
  .news-card:hover{ transform: none; box-shadow: none; }
}
