body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background: #f4f6f9;
  color: #333;
  transition: background 0.5s, color 0.5s;
}

.container {
  max-width: 900px;
  margin: auto;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border-radius: 12px;
  overflow: hidden;
}

header {
  background: linear-gradient(135deg, #3498db, #2ecc71);
  color: white;
  text-align: center;
  padding: 40px 20px;
  position: relative;
}

header img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid white;
  margin-bottom: 15px;
}

header button {
  background: #fff;
  color: #333;
  border: none;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  position: absolute;
  top: 15px;
  right: 20px;
  transition: background 0.3s;
}

header button:hover {
  background: #ddd;
}

section {
  padding: 30px 40px;
  border-bottom: 1px solid #eee;
}

section h2 {
  margin-bottom: 15px;
  font-size: 22px;
  color: #3498db;
  border-left: 5px solid #3498db;
  padding-left: 10px;
}

ul {
  list-style: none;
  padding: 0;
}

ul li {
  margin: 8px 0;
  line-height: 1.5;
}

ul li i {
  color: #7df1107c;
  margin-right: 8px;
}

/* Efectos */
.hover-scale {
  transition: transform 0.3s;
  cursor: pointer;
}
.hover-scale:hover {
  transform: scale(1.05);
  color: #2ecc71;
}

.fade-in {
  animation: fadeIn 2s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Barras de habilidades */
.skills {
  max-width: 400px;
  margin: 29px 0;
  font-family: Arial, sans-serif;
}

.skill-bar {
  margin-bottom: 15px;
}

.skill-bar span {
  display: block;
  font-weight: bold;
  margin-bottom: 1px;
}

.bar {
  width: 100%;
  background: #eee;
  border-radius: 10px;
  overflow: hidden;
  height: 28px;
  position: relative;
}

.fill {
  height: 100%;
  background: linear-gradient(90deg, #a4aec4, #4263f5);
  width: var(--percent);
  color: white;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 9px;
  box-sizing: border-box;
  border-radius: 10px 0 0 10px;
  transition: width 1s ease-in-out;
}

/* Tema oscuro */
body.dark {
  background: #1e1e1e;
  color: #eee;
}
body.dark .container {
  background: #2c2c2c;
}
body.dark header {
  background: linear-gradient(135deg, #2c3e50, #34495e);
}
body.dark section h2 {
  color: #2ecc71;
  border-left-color: #2ecc71;
}

/* Redes sociales */
.social-links {
  margin-top: 15px;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 22px;
  background-color: white;
  color: #333;
  margin: 5px;
  text-decoration: none;
  transition: transform 0.3s, background-color 0.3s;
}

.btn-social:hover {
  transform: scale(1.1);
}

/* Colores personalizados */
.btn-social .fa-facebook {
  color: #1877f2;
}

.btn-social .fa-instagram {
  background: radial-gradient(circle at 30% 30%, #feda75, #d62976, #962fbf, #4f5bd5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 25px;
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .container {
    max-width: 100%;
    margin: 10px;
    border-radius: 8px;
  }

  header {
    padding: 20px 10px;
  }

  header img {
    width: 100px;
    height: 100px;
  }

  section {
    padding: 20px;
  }

  section h2 {
    font-size: 18px;
  }

  .skills {
    max-width: 100%;
  }

  .btn-social {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}
