/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #121018;
  color: #e0e0e0;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 2rem 3rem;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Navegación */
header {
  background-color: #1e1e2fdd;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(30,30,47,0.7);
}

.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 3rem;
  font-weight: 600;
}

.nav-list a {
  color: #cfd8dc;
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.25rem 0;
  position: relative;
  transition: color 0.25s ease;
}

.nav-list a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: linear-gradient(90deg, #8e44ad, #6a1b9a);
  transition: width 0.3s ease;
}

.nav-list a:hover,
.nav-list a:focus {
  color: #b39ddb;
}

.nav-list a:hover::after,
.nav-list a:focus::after {
  width: 100%;
}

/* Sección Inicio (Hero) */
.hero-section {
  margin-top: 5rem;
  text-align: center;
  animation: fadeIn 1s ease forwards;
  padding: 2rem;
  background: linear-gradient(135deg, #1a152a, #2e1b44);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(110, 39, 174, 0.6);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #d1c4e9;
  text-shadow: 0 3px 6px rgba(134, 96, 167, 0.85);
}

.hero-content .highlight {
  color: #9c27b0;
  position: relative;
}

.hero-content .highlight::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #8e44ad, #6a1b9a);
  bottom: -6px;
  left: 0;
  border-radius: 2px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.hero-content p {
  font-size: 1.25rem;
  color: #b3a1d6;
  margin-bottom: 3rem;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  font-style: italic;
  opacity: 0.85;
}

/* Botón principal */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #9c27b0, #6a1b9a);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 6px 15px rgba(156, 39, 176, 0.6);
  text-decoration: none;
  transition: background 0.4s ease, box-shadow 0.4s ease;
  user-select: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #af52bf, #7e57c2);
  box-shadow: 0 8px 20px rgba(175, 82, 191, 0.85);
  outline: none;
}

.btn-arrow {
  font-weight: 900;
  font-size: 1.4rem;
  transition: transform 0.3s ease;
  display: inline-block;
  transform: translateX(0);
}

.btn-primary:hover .btn-arrow,
.btn-primary:focus .btn-arrow {
  transform: translateX(6px);
}

/* Info Sections */
.info-section {
  margin: 6rem auto;
  max-width: 720px;
  text-align: center;
  animation: fadeIn 1.3s ease forwards;
}

.info-section h2 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  color: #b39ddb;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.info-section p {
  font-size: 1.3rem;
  color: #b3a1d6;
  margin-bottom: 3rem;
  line-height: 1.8;
}

.proyectos-list {
  list-style: none;
  padding-left: 0;
  text-align: left;
}

.proyectos-list li {
  margin-bottom: 2rem;
  padding: 1.2rem 1.5rem;
  background: #2a2351;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.6);
  transition: background 0.3s ease;
}

.proyectos-list li:hover {
  background: #7e57c2;
  box-shadow: 0 6px 15px rgba(126, 87, 194, 0.8);
}

.proyectos-list h3 {
  color: #d1c4e9;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.socials {
  margin-top: 1.2rem;
  font-size: 1.2rem;
}

.socials a {
  color: #9c27b0;
  text-decoration: none;
  font-weight: 600;
  margin: 0 0.6rem;
  transition: color 0.3s ease;
}

.socials a:hover,
.socials a:focus {
  color: #b39ddb;
  outline: none;
}

/* Footer */
footer {
  text-align: center;
  margin-top: auto;
  padding: 2.5rem 0 1rem;
  font-size: 0.9rem;
  color: #6a5495;
  user-select: none;
  letter-spacing: 0.03em;
}

/* Animación de fadeIn */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 650px) {
  body {
    padding: 1.5rem 1.5rem;
  }
  .nav-list {
    flex-direction: column;
    gap: 1.3rem;
  }
  .hero-content h1 {
    font-size: 2.8rem;
  }
  .info-section {
    margin: 3rem 1rem;
  }
  .btn-primary {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
  .proyectos-list li {
    padding: 1rem;
  }
}

