.habilidad {
  width: 30rem;
  height: auto;
  border-radius: 1rem;
  align-self: center;
  justify-self: center;
}

.habilidad {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.habilidad:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.header_habilidad {
  width: 100%;
  height: auto;
  background-color: var(--violet);
  display: flex;
  justify-content: start;
  align-items: center;
  border-radius: 1rem 1rem 0 0;
  padding: 1rem;
  gap: 1rem;
}

.container_circulos {
  width: 5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 0.5rem;
}

.circulo1 {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: var(--red);
}

.circulo2 {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: var(--yellow);
}

.circulo3 {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: var(--green);
}

.titulo_habilidad {
  font-size: var(--subtitle);
  color: var(--white);
  margin-left: 5rem;
}

.herramientas {
  width: 100%;
  height: auto;
  display: flex;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 1rem;
  background-color: var(--beige);
  padding: 2rem;
  border-radius: 1rem;
  border-top-right-radius: 1rem;
  border-top-left-radius: 1rem;
}

.herramienta_modulo {
  width: 100%;
  height: 6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 1rem;
  background-color: var(--violet-light);
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.herramienta_imagen {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  margin-bottom: 0.5rem;
}

.herramienta_imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.herramienta_nombre {
  font-size: var(--text);
  color: var(--white);
  text-align: center;
  font-weight: bold;
}

/* Estilos base (desktop) ya los tienes, solo se agregan ajustes para responsividad) */

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
  .habilidad {
    width: 25rem;
  }

  .titulo_habilidad {
    margin-left: 2rem;
    font-size: 1.2rem;
  }

  .herramientas {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    padding: 1.5rem;
  }

  .herramienta_modulo {
    height: 5.5rem;
  }

  .herramienta_imagen {
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* Móviles (menos de 768px) */
@media (max-width: 767px) {
  .habilidad {
    width: 90%;
    margin: 0 auto;
  }

  .titulo_habilidad {
    margin-left: 1rem;
    font-size: 1rem;
  }

  .herramientas {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1rem;
  }

  .herramienta_modulo {
    height: 5rem;
  }

  .herramienta_imagen {
    width: 2rem;
    height: 2rem;
  }
}
