body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f9f9f9;
  margin: 0;
  padding: 0;
  color: #333;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 0.2rem;
}

footer {
  text-align: center;
  background: #222;
  color: white;
  padding: 2rem;
}

footer a {
  color: #00aced;
  text-decoration: none;
}

footer a:hover {
  color: #6bd5fc;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  margin-top: 0.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  color: #fff;
  transition: background 0.3s ease;
}

.btn.ver {
  background: #4CAF50;
}

.btn.codigo {
  background: #1E88E5;
}

.btn:hover {
  filter: brightness(1.1);
}

.cv-btn {
  display: inline-block;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  margin-top: 20px;
}

.cv-btn:hover {
  background: linear-gradient(135deg, #2a5298, #1e3c72);
  transform: scale(1.05);
}

.foto-cv {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.foto-perfil {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.header {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #222, #444);
  color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.info {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.info-header {
  text-align: left;
}

.preview {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.proyectos {
  padding: 2rem;
  max-width: 900px;
  margin: auto;
}

.proyecto {
  background: #fff;
  margin: 2rem 0;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.proyecto h3 {
  margin-top: 0;
  font-size: 1.5rem;
}

.proyecto a {
  margin-right: 1rem;
  text-decoration: none;
}

.sobre-mi {
  max-width: 800px;
  margin: auto;
  padding: 1rem;
  text-align: center;
  margin-bottom: 22px;
}

@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }

  .proyectos {
    padding: 1rem;
  }

  .proyecto {
    padding: 1rem;
  }

  .btn {
    display: block;
    margin-bottom: 0.5rem;
  }

  .preview {
    width: 100%;
  }
}

@media screen and (max-width: 600px) {
  .info {
    flex-direction: column;
    text-align: center;
  }

  .textos {
    text-align: center;
  }
}