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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #050505;
  color: #f8fafc;
}

/* NAVBAR */
.navbar {
  width: 100%;
  padding: 18px 6%;
  background: rgba(5, 5, 5, 0.96);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #171717;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo span {
  color: #38bdf8;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 42px;
}

.nav-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: #ffffff;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.contact-menu {
  position: relative;
}

.contact-btn {
  background: transparent;
  color: #ffffff;
  border: 1px solid #2563eb;
  padding: 13px 28px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
}

.contact-dropdown {
  display: none;
  position: absolute;
  top: 52px;
  right: 0;
  width: 210px;
  background: rgba(10, 10, 10, 0.98);
  border: 1px solid #242424;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  z-index: 3000;
}

.contact-dropdown.active {
  display: block;
}

.contact-dropdown a {
  color: #cbd5e1;
  text-decoration: none;
  padding: 13px 12px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-dropdown a:hover {
  color: #ffffff;
  background: rgba(37, 99, 235, 0.16);
  border-radius: 10px;
}

.contact-dropdown i {
  width: 18px;
  font-size: 16px;
}

.language {
  background: #111;
  border: 1px solid #27272a;
  border-radius: 999px;
  padding: 5px;
  display: flex;
  gap: 4px;
}

.language span {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: #94a3b8;
  cursor: pointer;
}

.language .active {
  background: #2563eb;
  color: #ffffff;
}

/* HERO */
.hero {
  min-height: 90vh;
  padding: 90px 8% 60px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 70px;
  background:
    radial-gradient(
      circle at top right,
      rgba(37, 99, 235, 0.18),
      transparent 35%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(14, 165, 233, 0.14),
      transparent 35%
    ),
    #050505;
}

.small-title,
.section-label {
  color: #38bdf8;
  letter-spacing: 8px;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 82px;
  line-height: 0.95;
  color: #93c5fd;
  margin-bottom: 28px;
}

.hero-description {
  max-width: 620px;
  color: #94a3b8;
  font-size: 20px;
  line-height: 1.8;
}

.hero-buttons {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.btn {
  text-decoration: none;
  padding: 17px 34px;
  border-radius: 14px;
  font-weight: 900;
  letter-spacing: 1px;
  transition: 0.3s;
}

.btn:hover {
  transform: translateY(-4px);
}

.btn-primary {
  background: #ffffff;
  color: #050505;
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
  border: 1px solid #27272a;
  color: #ffffff;
  background: #050505;
}

.hero-contact {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid #171717;
  display: flex;
  gap: 80px;
  flex-wrap: wrap;
}

.hero-contact span {
  display: block;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 10px;
}

.hero-contact p {
  color: #cbd5e1;
  font-size: 16px;
}

.social-links {
  margin-top: 24px;
  display: flex;
  gap: 24px;
}

.social-links a {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 900;
  font-size: 18px;
}

.social-links a:hover {
  color: #60a5fa;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-image {
  width: 100%;
  max-width: 420px;
  height: 520px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid #27272a;
  box-shadow: 0 25px 60px rgba(37, 99, 235, 0.18);
}

.image-placeholder {
  width: 100%;
  max-width: 390px;
  height: 470px;
  border-radius: 18px;
  background:
    linear-gradient(
      135deg,
      rgba(37, 99, 235, 0.25),
      rgba(255, 255, 255, 0.04)
    ),
    #111;
  border: 1px solid #27272a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  box-shadow: 0 25px 60px rgba(37, 99, 235, 0.18);
}

/* SECCIONES */
.section {
  padding: 90px 8%;
  border-top: 1px solid #111;
}

.section h2 {
  font-size: 42px;
  margin-bottom: 30px;
}

/* PERFIL PROFESIONAL */
.perfil {
  text-align: center;
  padding: 120px 8%;
}

.perfil .section-label {
  color: #60a5fa;
  letter-spacing: 8px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 35px;
}

.perfil p {
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: #94a3b8;
  font-size: 19px;
  line-height: 1.9;
}

/* INFORMACIÓN ACADÉMICA */
.academic-strip {
  padding: 20px 2%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid #111;
  border-bottom: 1px solid #111;
  background: #050505;
  margin-bottom: 10px;
}

.academic-item {
  text-align: center;
  padding: 10px 30px;
  border-right: 1px solid #1f1f1f;
}

.academic-item:last-child {
  border-right: none;
}

.academic-item h3 {
  font-size: 38px;
  color: #ffffff;
  margin-bottom: 8px;
}

.academic-item p {
  color: #38bdf8;
  letter-spacing: 6px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
}

/* STACK */
.stack-grid,
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.stack-card,
.project-card {
  background: #0b0b0b;
  border: 1px solid #242424;
  border-radius: 26px;
  padding: 34px;
  transition: 0.3s;
}

.stack-card:hover,
.project-card:hover {
  transform: translateY(-7px);
  border-color: #2563eb;
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.14);
}

.stack-card h3 {
  font-size: 26px;
  margin-bottom: 25px;
  color: #ffffff;
  position: relative;
}

.stack-card h3::before {
  content: "";
  display: block;
  width: 50px;
  height: 4px;
  background: #2563eb;
  border-radius: 999px;
  margin-bottom: 16px;
}

.chips,
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chips span,
.project-tags span {
  background: #151515;
  border: 1px solid #2b2b2b;
  color: #bfdbfe;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
}

/* PROYECTOS */
.project-card {
  position: relative;
  min-height: 350px;
}

.project-line {
  width: 58px;
  height: 5px;
  background: #2563eb;
  border-radius: 999px;
  margin-bottom: 30px;
}

.badge {
  position: absolute;
  top: 32px;
  right: 32px;
  border: 1px solid #2563eb;
  color: #93c5fd;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.project-card h3 {
  font-size: 26px;
  margin-bottom: 20px;
  color: #ffffff;
}

.project-card p {
  color: #cbd5e1;
  line-height: 1.8;
  margin-bottom: 28px;
}

/* FOOTER */
.footer {
  padding: 70px 8%;
  border-top: 1px solid #171717;
  text-align: center;
}

.footer h2 {
  margin-bottom: 12px;
}

.footer p {
  color: #cbd5e1;
  margin-bottom: 25px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 800;
}

.footer-links a:hover {
  color: #ffffff;
}

.copyright {
  margin-top: 50px;
  color: #94a3b8;
  font-size: 11px;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .navbar {
    flex-direction: column;
    gap: 18px;
  }

  .navbar nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero-contact {
    gap: 30px;
  }

  .stack-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .perfil h2 {
    font-size: 36px;
  }
}

@media (max-width: 700px) {
  .academic-strip {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .academic-item {
    border-right: none;
    border-bottom: 1px solid #1f1f1f;
  }

  .academic-item:last-child {
    border-bottom: none;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-description {
    font-size: 17px;
  }

  .section h2 {
    font-size: 34px;
  }
}