
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f7f7f7;
  color: #333;
  line-height: 1.6;
}

header {
  background: #111;
  color: white;
  padding: 1rem 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.nav-links a:hover {
  text-decoration: underline;
}

.hero {
  background: #282c34;
  color: white;
  padding: 6rem 2rem 4rem;
  text-align: center;
}

section {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: auto;
}

.grid-proyectos {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 1rem;
}

.card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card h4 {
  margin-bottom: 0.5rem;
}

.skills {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding: 0;
}

.skills li {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

/* Animaciones scroll */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

footer {
  background: #111;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}
.perfil-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.perfil-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 100px;
  border: 4px solid #111;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-cv {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.5rem;
  background: #111;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn-cv:hover {
  background: #333;
}
