* {
  font-family: "Poppins", sans-serif;
  font-weight: normal;
  margin: 0;
  padding: 0;
  color: #111111;
}

.news-carousel-container {
  max-width: 1440px;
  width: 100%;
  margin: auto;
  margin-top: 60px;
  height: 500px;
  overflow: hidden;
  position: relative;
  border-radius: 8px;
}

.carousel-slides {
  display: flex;
  height: 100%;
  transition: transform 0.8s ease;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
}

.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;
  bottom: 0;
  left: 0;
  padding: 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  width: 100%;
}

.category-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: normal;
  margin-bottom: 8px;
  color: white;
}

.slide-title {
  font-size: 24px;
  font-weight: normal;
  margin-bottom: 8px;
  color: white;
}

.slide-description {
  font-size: 16px;
  margin-bottom: 8px;
  color: white;
  overflow: hidden;
  max-width: 85%;
}

.slide-date {
  font-size: 14px;
  color: white;
}

.media-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.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 (max-width: 1024px) {
  .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 {
    height: 400px;
  }
}

@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;
  }
}
