body {
      background: #012b3a;
      color: white;
      margin: 0;
      padding: 0;
      margin-top: 5rem;
    }

    .carreras-section {
      max-width: 1200px;
      margin: 0 auto;
      padding: 3rem 1rem;
      text-align: center;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    .carreras-section h1 {
      font-size: 2.5rem;
      margin-bottom: 0.5rem;
      color: #ffffff;
      margin-top: 3rem; /* Añade margen superior para separar del header */
      line-height: 1.2;
    }

    .carreras-section p {
      font-size: 1.1rem;
      margin-bottom: 2rem;
      color: #d0d0d0;
    }

    /* --- Barra de búsqueda y filtros --- */
    .filtros {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
      justify-content: center;
      margin-bottom: 3rem;
    }

.filtros input,
.filtros select {
  padding: 0.7rem 1rem;
  border-radius: 10px;
  border: none;
  outline: none;
  font-size: 1rem;
  transition: all 0.3s ease; /* transición suave */
  box-shadow: 0 0 0 rgba(0,0,0,0); /* sin sombra al inicio */
}

.filtros input:hover,
.filtros select:hover {
  transform: scale(1.03); /* efecto de “levantar” */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); /* sombra elegante */
}


    /* --- Grid de carreras --- */
    .cards {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 2rem;
    }

    .card {
      background: rgba(255, 255, 255, 0.1);
      border-radius: 20px;
      padding: 1.5rem;
      text-align: center;
      transition: transform 0.3s, box-shadow 0.3s;
      backdrop-filter: blur(8px);
      border: 1px solid rgba(255, 255, 255, 0.2);
      background-color: rgba(200, 200, 200, 0.3);
      border-color: white;
      
    }

    .card:hover {
      transform: translateY(-8px);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    }

    .card img {
      width: 60px;
      margin-bottom: 1rem;
    }

    .card h3 {
      font-size: 1.3rem;
      margin-bottom: 0.5rem;
      color: #ffffff;
    }

    .card p {
      font-size: 0.95rem;
      color: #e0e0e0;
      margin-bottom: 1rem;
    }

    .card button {
      background: #ff3366;
      color: white;
      border: none;
      padding: 0.6rem 1.2rem;
      border-radius: 10px;
      font-size: 0.9rem;
      cursor: pointer;
      transition: background 0.3s;
    }

    .card button:hover {
      background: #ff0044;
    }

    /* Responsive mejorado para sección de carreras */
@media (max-width: 1200px) {
  .carreras-section {
    padding: 2.5rem 1rem;
  }

  .carreras-section h1 {
    font-size: 2.2rem;
  }

  .carreras-section p {
    font-size: 1rem;
  }

  .filtros input,
  .filtros select {
    font-size: 0.95rem;
    padding: 0.65rem 0.9rem;
  }

  .card h3 {
    font-size: 1.2rem;
  }

  .card p {
    font-size: 0.9rem;
  }

  .card button {
    font-size: 0.85rem;
    padding: 0.55rem 1rem;
  }
}

@media (max-width: 768px) {
  .carreras-section {
    padding: 2rem 1rem;
     background: #012b3a
  }

  .carreras-section h1 {
    font-size: 1.9rem;
  }

  .carreras-section p {
    font-size: 0.7rem;
  }

.filtros {
  display: flex;          /* Los pone en línea */
  justify-content: center;/* Centra horizontalmente (opcional) */
  align-items: center;    /* Alinea verticalmente */
  gap: 0.8rem;              /* Espacio entre selects */
  flex-wrap: wrap;        /* Permite que bajen si no caben */
}

  .filtros input {
    width: 90%;
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
  }

.filtros select {
  width: 30%;
  font-size: 0.9rem;
}

  .card {
    width: 70%;
    margin: 0 auto;
    background-color: rgba(200, 200, 200, 0.3);
    border-color: white;
  }



  .card h3 {
    font-size: 1.1rem;
  }

  .card p {
    font-size: 0.85rem;
  }

  .card button {
    font-size: 0.8rem;
    padding: 0.5rem 0.9rem;
  }
}

