@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

.news-section {
  
  margin: 0 auto;
  padding: 20px 10rem;
}

.news-title {
  padding-top: 50px;
  font-size: 60px;
  margin-bottom: 40px;
  font-family: "Roboto";
  font-weight: 500;
}

.news-carousel-wrapper {
  position: relative;
  /* Removido overflow: hidden de aquí */
  width: 100%;
  display: flex;
  align-items: center;
}

/* Nuevo contenedor interno para manejar el overflow */
.news-carousel-container {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.news-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}

.news-card {
  flex: 0 0 calc(33.333% - 20px);
  margin: 0 10px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #f6f6f6;
}

.image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #f6f6f6;
}

.fondo {
  background-color: #f6f6f6;
}

.news-card-image {
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
  object-fit: cover;
  display: block;
}

.news-card-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.news-card-category {
  font-family: "Roboto";
  font-weight: 300;
  font-size: 12px;
  color: #666;
  margin: 0;
}

.news-card-title {
  font-size: 30px;
  font-family: "Roboto";
  font-weight: bold;
  margin: 0;
  line-height: 1.1;
}

.news-card-title-highlight {
  color: #b4cd00;
  margin-top: 5px;
  font-size: 28px;
}

.news-card-description {
  font-size: 14px;
  font-family: "Roboto";
  font-weight: 400;
  line-height: 1.5;
  color: #444;
  margin: 0;
}

.news-card-date {
  font-family: "Roboto";
  font-weight: 300;
  font-size: 12px;
  color: #666;
  padding-top: 10px;
  border-top: 1px solid #eee;
  margin: 0;
}

/* Modificar los estilos de los botones de navegación de la galería para que coincidan visualmente con los de video */
.news-carousel-button {
  position: absolute;
  top: 50%;
  width: 100px; /* Aumentado de 40px a 100px */
  height: 100px; /* Aumentado de 40px a 100px */
  background-color: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 48px; /* Aumentado de 24px a 48px */
  box-shadow: none;
  transform: translateY(-50%);
  z-index: 10;
  color: #888;
  transition: color 0.3s ease, transform 0.3s ease;
  border: none;
}

.news-carousel-button:hover {
  background-color: transparent; /* Mantener transparente en hover */
  color: #adcd00; /* Cambiar a verde en hover como los botones de video */
  transform: translateY(-50%) scale(1.1); /* Agregar efecto de escala en hover */
}

/* Modificar la posición específica para cada botón para separarlos más de las imágenes */
.news-carousel-button-prev {
  left: -100px; /* Ajustado para dar más espacio con 4 elementos */
}

.news-carousel-button-next {
  right: -100px; /* Ajustado para dar más espacio con 4 elementos */
}

@media (max-width: 768px) {
  .news-card {
    flex: 0 0 calc(50% - 20px);
  }

  .news-section {
    padding-right: 30px;
    padding-left: 0;
  }

  .news-title {
    font-size: 36px;
    padding-top: 20px;
    padding-left: 40px;
  }
  .news-carousel-wrapper {
    margin: 0 30px;
  }

  .news-carousel-button-prev {
    left: -60px; /* Ajustado para tablets */
  }

  .news-carousel-button-next {
    right: -60px; /* Ajustado para tablets */
  }
}

@media (max-width: 480px) {
  .news-section {
    padding: 20px; /* Reduce section padding */
  }

  .news-card {
    flex: 0 0 100%; /* Make card take full width */
    margin: 0; /* Remove margins */
    max-width: 100%; /* Full width */
    width: 100%; /* Ensure full width */
  }

  .news-carousel-wrapper {
    margin: 0;
    width: 100%;
    position: relative;
    padding: 0 30px; /* Space for buttons */
  }

  .news-carousel-container {
    overflow: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .news-carousel-track {
    width: 100%;
    display: flex;
    gap: 0; /* Remove any gap between cards */
  }

  .news-carousel-button-prev {
    margin-left: 15px; /* Position slightly outside */
  }

  .news-carousel-button-next {
    margin-right: 15px;
  }
  /* Maintain image aspect ratio */
  .image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%;
  }

  .news-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Ensure content is properly contained */
  .news-card-content {
    width: 100%;
    box-sizing: border-box;
  }
}

/* Add styles for the news button at the end of the file */
.news-button {
  display: inline-block;
  background-color: #b4cd00;
  color: #000;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-family: "Roboto";
  font-weight: 500;
  font-size: 14px;
  margin-top: 15px;
  width: 120px;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.news-button:hover {
  background-color: #adcd00;
  transform: translateY(-2px);
}

/* Add styles for the news modal */
/* Modificar el estilo del modal para agregar blur al fondo */
.news-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  overflow-y: auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  /* Add flexbox properties for vertical centering */
  display: none; /* Will be changed to flex when modal is shown */
  align-items: center;
  justify-content: center;
}

.news-modal-content {
  position: relative;
  background-color: white;
  width: 90%;
  max-width: 800px;
  margin: 0 auto; /* Changed from margin: 40px auto to center vertically */
  padding: 40px;
  border-radius: 8px;
}

.news-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.news-modal-category {
  color: #b4cd00;
  font-family: "Roboto";
  font-size: 14px;
  margin-bottom: 20px;
}

.news-modal-title {
  font-family: "Roboto";
  font-weight: bold;
  font-size: 36px;
  margin-bottom: 30px;
  line-height: 1.2;
  color: #333;
}

/* Remove the highlight color in the modal */
.news-modal-title .news-card-title-highlight {
  color: inherit;
}

.news-modal-text-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.news-modal-text {
  font-family: "Roboto";
  font-size: 14px;
  line-height: 1.6;
  color: #444;
}

.news-modal-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .news-modal-content {
    width: 95%;
    padding: 20px;
    margin: 0 auto; /* Ensure no vertical margin on mobile */
    max-height: 90vh; /* Prevent content from being too tall */
    overflow-y: auto; /* Allow scrolling within the modal if content is too tall */
  }

  .news-modal-text-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}






  
  
  
  
  
  