* {
  font-family: "Poppins", sans-serif;
  font-weight: normal;
  margin: 0;
  padding: 0;
  color: #111111;
}

.news-carousel-container {
  max-width: 1440px;
  width: 100%;
  margin: 60px auto 0;
  overflow: hidden;
  position: relative;
  border-radius: 8px;
}

.carousel-slides {
  display: flex;
  transition: transform .8s ease;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  position: relative;
}

.carousel-slide .media-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  /* controla la altura del slide */
  overflow: hidden;
}

.carousel-slide .slide-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.8);
}

.carousel-slide .slide-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .65) 80%);
  color: #fff;
}

.category-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: normal;
  color: #fff;
}

.slide-title {
  color: #fff;
  margin-bottom: 8px;
  font-weight: normal;
  line-height: 1.2;
  font-size: clamp(16px, 4.5vw, 28px);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* no se desborda en phones */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slide-description {
  color: #fff;
  margin-bottom: 8px;
  font-size: clamp(12px, 3.5vw, 16px);
  max-width: 85%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* acota el texto en mobile */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slide-date {
  color: #fff;
  font-size: 12px;
  opacity: .9;
}

.media-background {
  position: absolute;
  /* para llenar el wrapper */
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(.9);
}

.h1Noticias {
  font-size: 24px;
  text-align: left;
  margin: 60px 0 20px 0;
}

.latest-news-section {
  max-width: 1440px;
  margin: auto;
}

.news-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 30px;
  height: 792px;
}

.main-news {
  position: relative;
  height: 792px;
  border-radius: 8px;
  overflow: hidden;
}

.main-news img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-news-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

.main-news-category {
  display: inline-block;
  width: 85%;
  padding: 3px 10px;
  color: white;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 8px;
}

.main-news-title {
  font-size: 24px;
  margin-bottom: 8px;
  color: white;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main-news-date {
  font-size: 14px;
  color: white;
}

.secondary-news {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 792px;
  overflow-y: auto;
}

.secondary-news-card {
  overflow: hidden;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

.secondary-news-image {
  width: 100%;
  height: 155px;
  overflow: hidden;
  flex-shrink: 0;
}

.secondary-news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.secondary-news-content {
  padding: 15px;
  background-color: white;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.secondary-news-category {
  display: inline-block;
  padding: 3px 10px;
  color: white;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 5px;
  align-self: flex-start;
}

.secondary-news-title {
  font-size: 14px;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

.secondary-news-date {
  font-size: 12px;
  margin-top: auto;
}

.random-news-section {
  max-width: 1440px;
  margin: auto;
}

.random-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.random-news-card {
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.random-news-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;
}

.random-news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.random-news-content {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background-color: white;
}

.random-news-category {
  padding: 3px 10px;
  color: white;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 8px;
  align-self: flex-start;
}

.random-news-title {
  font-size: 16px;
  margin-bottom: 8px;
  overflow: hidden;
}

.random-news-date {
  font-size: 14px;
  margin-top: auto;
}

.video-news-section {
  max-width: 1440px;
  margin: auto;
}

.video-news-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.video-news-card {
  border-radius: 8px;
  overflow: hidden;
  background-color: white;
  display: flex;
  flex-direction: column;
}

.video-thumbnail-container {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  flex-shrink: 0;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-news-content {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.video-news-category {
  display: inline-block;
  padding: 3px 10px;
  color: white;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 8px;
  align-self: flex-start;
}

.video-news-title {
  font-size: 20px;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-news-date {
  font-size: 14px;
  margin-top: auto;
}

.newsletter-section {
  display: none;
  background-color: white;
  border-radius: 8px;
  max-width: 1440px;
  margin: 60px auto;
  padding: 50px 0;
}

.newsletter-container {
  margin: auto;
  text-align: center;
}

.newsletter-container img {
  margin-bottom: 24px;
}

.newsletter-title {
  font-size: 20px;
  margin-bottom: 8px;
}

.newsletter-description {
  font-size: 14px;
  margin-bottom: 24px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.newsletter-input {
  width: 273px;
  padding: 10px 15px;
  border: 1px solid #111111;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s;
}

.newsletter-input:focus {
  outline: none;
  border-color: #177de1;
  box-shadow: 0 0 0 2px rgba(60, 77, 231, 0.2);
}

.newsletter-button {
  background-color: #b9dcff;
  color: #177de1;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-title-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 100px 0 20px 0;
  position: relative;
}

.section-title-bar h1 {
  white-space: nowrap;
  margin: 0;
  font-size: 24px;
}

.title-line {
  flex-grow: 1;
  height: 2px;
  margin-left: 20px;
  border-radius: 8px;
}

.barra-noticias .title-line {
  background-color: #da0016;
}

.barra-variadas .title-line {
  background-color: #1d2894;
}

.barra-destacadas .title-line {
  background-color: #177de1;
}

.section-title-bar .ver-mas-link {
  margin-left: 50px;
  font-size: 14px;
  text-decoration: none;
}

.ver-mas-link:hover {
  cursor: pointer;
}

@media (min-width: 1024px) {
  .carousel-slides{
    max-height: 60vh;
  }
}

@media (max-width: 1024px) {
  .carousel-slide .slide-content {
    padding: 14px 16px 18px;
  }

  .random-news-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
  }

  .news-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .main-news {
    height: 500px;
  }

  .secondary-news {
    height: auto;
    grid-template-columns: repeat(2, 1fr);
    display: grid;
  }

  .secondary-news-card {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .footer-contenido p {
    font-size: 12px;
  }

  .section-title-bar .ver-mas-link {
    margin-left: 0;
    font-size: 12px;
    text-decoration: none;
  }

  .random-news-grid {
    grid-template-columns: 1fr;
  }

  .video-news-container {
    grid-template-columns: 1fr;
  }

  .secondary-news {
    grid-template-columns: 1fr;
  }

  .news-carousel-container {
    margin-top: 50px;
  }

  .carousel-slide .media-container {
    aspect-ratio: 16 / 9;
  }

  .slide-description {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .footer-contenido p {
    font-size: 10px;
  }

  .section-title-bar .ver-mas-link {
    margin-left: 0;
    font-size: 10px;
    text-decoration: none;
  }

  .title-line {
    margin-left: 0;
  }

  .carousel-slide .slide-content {
    padding: 12px 14px 16px;
  }

  .category-tag {
    font-size: 11px;
    padding: 3px 8px;
  }

  .slide-date {
    font-size: 11px;
  }

  .section-title-bar{
    margin-top: 40px;
  }

  .main-news{
    display: none;
  }

  .slide-description{
    display: none;
  }
}

.news-carousel-container {
  height: auto;
}

.carousel-slides {
  height: auto;
}

.carousel-slide .slide-bg {
  display: none;
}