* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: #0d0d0d;
  color: #ffffff;
  font-family: "Segoe UI", sans-serif;
  line-height: 1.6;
}

span {
  color: #9b30ff;
}

/* ── HEADER ── */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(13, 13, 13, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid #1f1f1f;
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 1px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
}

nav ul a {
  color: #aaaaaa;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s;
}

nav ul a:hover {
  color: #9b30ff;
}

/* ── HERO ── */
#inicio {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 60px;
  background: radial-gradient(ellipse at 50% 50%, #1a0a2e 0%, #0d0d0d 65%);
}

.hero-content {
  max-width: 700px;
  animation: fadeInUp 1s ease forwards;
}

.saludo {
  font-size: 18px;
  color: #aaaaaa;
  margin-bottom: 12px;
}

#inicio h1 {
  font-size: 60px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #ffffff;
}

.subtitulo {
  font-size: 18px;
  color: #aaaaaa;
  max-width: 580px;
  margin: 0 auto 36px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, #9b30ff, #ff3060);
  color: #ffffff;
  padding: 14px 36px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(155, 48, 255, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  padding: 14px 36px;
  border-radius: 30px;
  border: 1px solid #9b30ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.3s, transform 0.3s;
}

.btn-secondary:hover {
  background: #9b30ff22;
  transform: translateY(-3px);
}

/* ── SECCIONES ── */
section {
  padding: 100px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

section h2 {
  font-size: 40px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  color: #ffffff;
}

section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, #9b30ff, #ff3060);
  margin: 14px auto 0;
  border-radius: 2px;
}

/* ── SOBRE MÍ ── */
.sobre-mi-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.sobre-mi-content p {
  font-size: 17px;
  color: #cccccc;
  margin-bottom: 16px;
  line-height: 1.8;
}

/* ── TECNOLOGÍAS ── */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.tech-card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  padding: 28px 36px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  cursor: default;
}

.tech-card:hover {
  transform: translateY(-6px);
  border-color: #9b30ff;
  box-shadow: 0 8px 24px rgba(155, 48, 255, 0.2);
}

.tech-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 10px;
}

.tech-card p {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

/* ── PROYECTOS ── */
.proyectos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
}

.proyecto-card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 20px;
  padding: 32px;
  max-width: 460px;
  width: 100%;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.proyecto-card:hover {
  transform: translateY(-8px);
  border-color: #9b30ff;
  box-shadow: 0 12px 32px rgba(155, 48, 255, 0.2);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.card-header span {
  font-size: 28px;
  color: unset;
}

.card-header h3 {
  font-size: 20px;
  color: #ffffff;
}

.proyecto-card p {
  font-size: 15px;
  color: #aaaaaa;
  line-height: 1.7;
  margin-bottom: 20px;
}

.card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.card-tags span {
  background: #9b30ff22;
  color: #9b30ff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.proyecto-card a {
  color: #9b30ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.3s;
}

.proyecto-card a:hover {
  color: #ff3060;
}

/* ── CONTACTO ── */
#contacto {
  text-align: center;
}

.contacto-sub {
  font-size: 18px;
  color: #aaaaaa;
  margin-bottom: 40px;
  margin-top: -40px;
}

.contacto-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.contacto-btn {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #ffffff;
  padding: 16px 36px;
  border-radius: 16px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.contacto-btn:hover {
  border-color: #9b30ff;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(155, 48, 255, 0.2);
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 30px;
  color: #555555;
  font-size: 14px;
  border-top: 1px solid #1f1f1f;
}

/* ── ANIMACIONES ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/*traductor de google*/
#google_translate_element {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background: #1a1a1a;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid #9b30ff;
}

/* ── RESPONSIVE (celular) ── */
@media (max-width: 768px) {

  /* HEADER */
  nav {
    padding: 16px 20px;
    flex-direction: column;
    gap: 12px;
  }

  nav ul {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* HERO */
  #inicio {
    padding: 140px 20px 60px;
  }

  #inicio h1 {
    font-size: 36px;
  }

  .subtitulo {
    font-size: 16px;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  /* SECCIONES */
  section {
    padding: 60px 20px;
  }

  section h2 {
    font-size: 28px;
  }

  /* TECNOLOGÍAS */
  .tech-grid {
    gap: 12px;
  }

  .tech-card {
    padding: 20px 24px;
  }

  /* PROYECTOS */
  .proyectos-grid {
    flex-direction: column;
    align-items: center;
  }

  .proyecto-card {
    max-width: 100%;
  }

  /* CONTACTO */
  .contacto-links {
    flex-direction: column;
    align-items: center;
  }

  .contacto-btn {
    width: 100%;
    text-align: center;
  }
}