/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: #f4f4f4;
  color: #222;
  line-height: 1.6;
}

/* NAVBAR */
.navbar {
  width: 100%;
  padding: 20px 40px;
  background: #0a0a23;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 20;
}

.navbar nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #ddd;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar nav a:hover {
  color: #4fc3f7;
}

/* HERO */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
  gap: 50px;
}

.hero img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
}

.info h1 {
  font-size: 2.5rem;
}

.info h2 {
  font-size: 1.4rem;
  color: #666;
  margin-bottom: 10px;
}

.info p {
  max-width: 450px;
  margin-bottom: 15px;
}

.social img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
  transition: transform 0.3s;
}

.social img:hover {
  transform: scale(1.1);
}

/* PROYECTOS */
.proyectos {
  padding: 60px 20px;
}

.title {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 40px;
}

.grid-proyectos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
  padding: 0 40px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  text-align: center;

  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
}

.card img {
  width: 100%;
  border-radius: 10px;
}

.card .btn {
  margin-top: auto; /* Empuja el botón hacia el fondo */
}

.btn {
  display: inline-block;
  margin-top: 10px;
  background: #0077ff;
  padding: 10px 18px;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s;
}

.btn:hover {
  background: #005bd1;
}

/* SOFTWARE */
.skills {
  padding: 60px 20px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 30px;
  padding: 0 40px;
}

.skill {
  background: white;
  padding: 20px;
  text-align: center;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;

  justify-content: center;
}

.skill:hover {
  transform: translateY(-5px);
}

.skill img {
  width: 60px;
  margin-bottom: 10px;
}

/* FOOTER */
.footer {
  background: #0a0a23;
  color: white;
  text-align: center;
  padding: 40px;
  margin-top: 60px;
}

.footer p {
  opacity: 0.8;
  margin-top: 5px;
}
