.cursos{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 900px;
    width: 100%;
  }
  
  .grid-item {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    overflow: hidden;
    height: 250px;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeUp 0.6s forwards;
  }
  
  .grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
  }
  
  .grid-item:hover img {
    transform: scale(1.05);
  }
  
  .caption-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
    box-sizing: border-box;
  }
  
  .caption {
    font-size: 1rem;
    margin-bottom: 5px;
  }
  
  .button {
    display: inline-block;
    padding: 6px 12px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    text-decoration: none;
  }
  
  .button:hover {
    background-color: #357ab7;
    transform: translateY(-2px);
  }
  
  @keyframes fadeUp {
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
  
  @media (max-width: 600px) {
    .grid-container {
      grid-template-columns: repeat(2, 1fr);
    }
  }