
/* Estilo de la galería */
#gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
  }

  

  #gallery h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(45deg, var(--azul-oscuro), var(--dorado));
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    margin-bottom: 2rem;
    
  }

  .portfolio-filters {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .filter-btn {
    background-color: var(--dorado);
    color: var(--azul-oscuro);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    font-size: 1rem;
    min-width: 120px; /* Tamaño mínimo para los botones */
  }

  .filter-btn:hover {
    background-color: var(--azul-oscuro);
    color: var(--blanco);
  }

  .gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    max-width: 1200px;
    margin-top: 1.5rem;
  }

  .gallery-grid .portfolio-item {
    display: block;
    width: 300px;
    transition: width 0.3s ease-in-out;
  }

  .gallery-grid img, .gallery-grid video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
  }

  .gallery-grid img:hover, .gallery-grid video:hover {
    transform: scale(1.05);
  }

   

  /* Responsividad */
  @media screen and (max-width: 1024px) {
    .gallery-grid .portfolio-item {
      width: 250px;
    }
  }

  @media screen and (max-width: 768px) {
    .gallery-grid .portfolio-item {
      width: 45%; /* Ajustamos a un 45% para que haya dos columnas */
    }

    .portfolio-filters {
      gap: 5px; /* Reducimos el espacio entre botones */
    }

    .filter-btn {
      font-size: 0.9rem; /* Reducimos el tamaño de la fuente en pantallas más pequeñas */
      min-width: 100px; /* Reducimos el tamaño mínimo de los botones */
    }
  }

  @media screen and (max-width: 480px) {
    .gallery-grid .portfolio-item {
      width: 45%; /* Para pantallas pequeñas, las imágenes ocupan todo el ancho */
    }

    .portfolio-filters {
      flex-direction: row; /* Los filtros siguen en fila, pero sin saltar a la columna */
      gap: 5px;
      justify-content: center; /* Alineamos los botones al centro */
    }

    .filter-btn {
      font-size: 0.8rem; /* Reducimos aún más el tamaño de la fuente */
      min-width: 80px; /* Reducimos el tamaño mínimo de los botones */
    }
  }