.news-section {
  width: 100%;
    height: 100vh;
  height: 100dvh; /* 🔥 moderno mobile fix */
  padding: 30px 15px;
  display: flex;
  justify-content: center;
  align-items: center; /* 🔥 evita que lo centre verticalmente */
}
/* CONTENEDOR SLIDER */
.news-slider {
  width: 100%;
  max-width: 980px;
  position: relative;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(5,42,81,.18);
    padding: 0 50px; /* 🔥 espacio para flechas */
}

.news-track {
  display: flex;
  width: 100%;
  will-change: transform; /* 🔥 suaviza animación */
}

.news-card {
  min-width: 100%;
  padding: 18px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .news-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .news-slider {
    padding: 0 40px;
  }
}


.news-card.active {
  display: block;
}

.news-img {
  width: 100%;
  max-height: 280px;
  height: auto;

  object-fit: contain; /* 🔥 clave */
 background: transparent;

  border-radius: 14px;
  margin-bottom: 14px;
}

.news-viewport {
  overflow: hidden;
  width: 100%;
  background: #fff; /* 🔥 evita flash blanco */
}

/* TITULO */
.news-title {
  font-size: 22px;
  font-weight: 800;
  color: #052a51;
  margin-bottom: 6px;
  text-align: center;
}

.news-subtitle {
    text-align: center;
  font-size: 14px;
  color: #374151;
  margin-bottom: 25px;
}

.news-content {
  font-size: 14px;
  line-height: 1.6;
  color: #111827;
  margin-bottom: 12px;

  word-break: break-word;
  overflow-wrap: break-word;

  max-height: 35vh;   /* 🔥 evita que rompa el slider */
  overflow-y: auto;   /* 🔥 scroll SOLO en texto */
  padding-right: 6px;
}

@media (max-width: 768px) {
  .news-card {
    padding: 14px;
  }

  .news-title {
    font-size: 18px;
  }

  .news-subtitle {
    font-size: 13px;
    margin-bottom: 15px;
  }
}

.news-content p {
  margin-bottom: 14px;
  white-space: normal;
}

/* LINKS */
.news-links a {
  display: inline-block;
  margin-right: 10px;
  margin-top: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #052a51;
  color: white;
  text-decoration: none;
  font-size: 13px;
}

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

  width: 44px;
  height: 44px;

  border: none;
  border-radius: 50%;

  background: rgba(5, 42, 81, 0.9);
  color: white;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;

  cursor: pointer;
  z-index: 10;

  transition: 0.25s ease;
  backdrop-filter: blur(6px);
}

.news-btn:hover {
  background: #0b3d6b;
  transform: translateY(-50%) scale(1.08);
}

.news-btn i {
  pointer-events: none;
}

.news-btn:hover {
  background: #0b3d6b;
}

.news-btn.left { left: 10px; }
.news-btn.right { right: 10px; }

.hidden {
  display: none;
}

@keyframes fadeNews {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}