.newssiayec-section {
  padding: 80px 20px;
}

.newssiayec-container {
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.newssiayec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Cuatro columnas */
  grid-template-rows: auto auto; /* Dos filas */
  gap: 5px;
  justify-items: center;
  grid-template-areas:
    "item1 item2 item3"
    "item4 item5 item6"; /* Definición explícita de las áreas */
}

.newssiayec-header h2 {
  font-size: 40px;
  color: #005189;
  margin-bottom: 10px;
  font-weight: 650;
}

.newssiayec-header h3 {
  font-size: 20px;
  color: #475569;
  margin-bottom: 40px;
  font-weight: 400;
}

.newssiayec-card {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  animation: fadeInUp 1s ease;
  width: 60%;
  max-width: 390px;
}

.newssiayec-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.219);
}

.newssiayec-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.newssiayec-content {
  padding: 20px;
  text-align: center; /* ahora todo el contenido está centrado */
}

.newssiayec-content h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #0f172a;
}

.newssiayec-button {
  margin-top: 10px;
  display: inline-block;
  background-color: #005189;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 15px;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.3s ease;
  text-align: center;
}

.newssiayec-button:hover {
  background-color: #96c93f;
  color: #ffffff;
}

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

/* Media Queries para Responsividad */

/* Para pantallas de tabletas */
@media (max-width: 768px) {
  .newssiayec-grid {
    grid-template-columns: 1fr; /* Una columna en tabletas */
    grid-template-areas:
      "item1"
      "item2"
      "item3"
      "item4"; /* Organiza los elementos en una sola columna */
  }

  .newssiayec-header h2 {
    font-size: 30px; /* Reducir tamaño del título */
  }

  .newssiayec-header h3 {
    font-size: 16px; /* Reducir tamaño de subtítulo */
  }

  .newssiayec-card {
    width: 80%; /* Aumentar el tamaño de las tarjetas para que ocupen más espacio */
    max-width: none; /* Quitar el límite máximo de ancho */
  }
}

/* Para pantallas móviles */
@media (max-width: 480px) {
  .newssiayec-header h2 {
    font-size: 24px; /* Reducir más el tamaño del título */
  }

  .newssiayec-header h3 {
    font-size: 14px; /* Reducir el tamaño del subtítulo */
  }

  .newssiayec-card {
    width: 90%; /* Aumentar aún más el tamaño de las tarjetas */
  }

  .newssiayec-button {
    font-size: 14px; /* Reducir el tamaño del texto del botón */
    padding: 8px 16px; /* Ajustar el tamaño del botón */
  }
}
