/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  height: 100%;
  font-family: 'Inter', sans-serif;
  background: #000000;
  overflow-x: hidden;
  color: #d9e4ea;
}

/* Navbar */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: #000000;
  /* fondo sólido */
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 3rem;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  /* sombra suave */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}


.navbar-left .logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: #ffffff;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tech-icon {
  width: 24px;
  height: 24px;
  color: #00f5d4;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  color: #c2e9f3;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 6px rgba(0, 245, 212, 0.2);
}

.social-link:hover {
  color: #ffffff;
  background: rgba(0, 245, 212, 0.1);
  box-shadow: 0 0 10px rgba(0, 245, 212, 0.35);
}

.social-link .icon {
  width: 20px;
  height: 20px;
  color: #00f5d4;
}

.menu-toggle {
  display: none; /* Oculto por defecto en escritorio */
}

/* Hero con fondo de imagen */
.hero-split {
  position: relative;
  width: 100%;
  height: 100svh;
  background: url("../assets/fondoIndex.jpg") center/cover no-repeat;
  overflow: hidden;
}

.overlay {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(6px);
  z-index: 2;
  flex-direction: row;
  /* for desktop */
}

.split {
  width: 50%;
  transition: width 0.6s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #ffffffcc;
  padding: 2rem;
  cursor: pointer;
}

.split.left {
  background: rgba(0, 245, 212, 0.10);
}

.split.right {
  background: rgba(255, 255, 255, 0.10);
}

.split h2 {
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

.split p {
  font-size: 1.2rem;
  font-weight: 400;
  max-width: 280px;
  text-align: center;
}

.hero-split.hover-left .left {
  width: 75%;
}

.hero-split.hover-left .right {
  width: 25%;
}

.hero-split.hover-right .left {
  width: 25%;
}

.hero-split.hover-right .right {
  width: 75%;
}

/* Sección Sobre Mí */
.about {
  background-color: #121212;
  padding: 6rem 2rem 4rem;
  max-width: 1200px;
  margin: 4rem auto 3rem;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 245, 212, 0.15);
  color: #ffffff;
  font-weight: 400;
}

.about h2 {
  font-size: 2.8rem;
  color: #00f5d4;
  margin-bottom: 2rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  border-bottom: 2px solid rgba(0, 245, 212, 0.4);
  padding-bottom: 0.6rem;
}

.profile-photo {
  flex: 0 0 200px;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-photo img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
  transition: transform 0.3s ease;
}

.profile-photo img:hover {
  transform: scale(1.05);
}

.about-content {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.about-text {
  flex: 1 1 600px;
  font-size: 1.15rem;
  line-height: 1.7;
  color: #ffffff;
}

.about-info {
  flex: 1 1 280px;
  color: #00f5d4;
  font-weight: 500;
}

/* Foto circular pequeña */
.photo-container {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 0 12px rgba(0, 245, 212, 0.3);
}

.photo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

/* Formación Académica */
.about-info ul {
  list-style-type: square;
  padding-left: 1.6rem;
  margin-bottom: 2rem;
  color: #ffffff;
}

.about-info ul li {
  margin-bottom: 0.8rem;
  font-weight: 600;
}

/* Apartados grado */
.grado {
  margin-top: 2rem;
  padding: 1.8rem 1.5rem;
  border-radius: 8px;
  background: rgba(0, 245, 212, 0.08);
  border-left: 3px solid #1ffadd;
  box-shadow: 0 2px 8px rgba(0, 245, 212, 0.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  color: #b3f0ff;
}

.grado h3 {
  font-size: 1.7rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
  color: #00e5c1;
}

.grado p {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.6;
  color: #c0f2e9;
}

/* Hover y scroll animation efecto subir */
.grado:hover,
.grado.visible {
  transform: translateY(-8px);
  box-shadow: 0 6px 20px rgba(0, 245, 212, 0.35);
  cursor: default;
}

/* Skills */
.skills {
  max-width: 1200px;
  margin: 3rem auto 5rem;
  padding: 0 2rem;
}

.skills h2 {
  font-size: 2.5rem;
  color: #f8f8f8;
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  border-bottom: 2px solid rgba(0, 245, 212, 0.4);
  padding-bottom: 0.6rem;
}

.skill-bar {
  margin-bottom: 1.2rem;
}

.skill-name {
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: #f8f8f8;
}

.bar {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  height: 20px;
  position: relative;
}

.progress_Java {
  height: 100%;
  background: #ff0202;
  border-radius: 20px 0 0 20px;
  transition: width 0.6s ease;
}

.progress_JavaScript {
  height: 100%;
  background: #ffdb0c;
  border-radius: 20px 0 0 20px;
  transition: width 0.6s ease;
}

.progress_MYSQL {
  height: 100%;
  background: #0094f7;
  border-radius: 20px 0 0 20px;
  transition: width 0.6s ease;
}

.progress_HTML {
  height: 100%;
  background: #fd6500;
  border-radius: 20px 0 0 20px;
  transition: width 0.6s ease;
}

.progress_CSS {
  height: 100%;
  background: #5600f7;
  border-radius: 20px 0 0 20px;
  transition: width 0.6s ease;
}

.progress_NODEJS {
  height: 100%;
  background: #036800;
  border-radius: 20px 0 0 20px;
  transition: width 0.6s ease;
}

.progress_MONGODB {
  height: 100%;
  background: #039b42;
  border-radius: 20px 0 0 20px;
  transition: width 0.6s ease;
}

.progress_REACT {
  height: 100%;
  background: #03e6ee;
  border-radius: 20px 0 0 20px;
  transition: width 0.6s ease;
}

.progress_GITHUB {
  height: 100%;
  background: #1f0255;
  border-radius: 20px 0 0 20px;
  transition: width 0.6s ease;
}

.bar span {
  position: absolute;
  right: 12px;
  top: 0;
  height: 100%;
  line-height: 20px;
  color: #000000;
  font-weight: 600;
}

/* Resumen Profesional */
.summary {
  max-width: 900px;
  margin: 0 auto 5rem;
  padding: 0 2rem;
  color: #b3f0ff;
  font-size: 1.2rem;
  line-height: 1.7;
  font-weight: 500;
}

.summary h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #00f5d4;
  font-weight: 800;
  border-bottom: 2px solid rgba(0, 245, 212, 0.4);
  padding-bottom: 0.6rem;
}


@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    margin-left: auto;
    background: none;
    border: none;
    color: #00f5d4;
    font-size: 1.8rem;
    cursor: pointer;
  }

  .hero-split {
    margin-top: 80px;
    min-height: calc(100dvh - 80px);
    height: 100svh;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .navbar-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
    gap: 1rem;
  }

  .navbar-menu.active {
    display: flex;
  }

  .navbar-left {
    margin-bottom: 1rem;
    width: 100%;
    justify-content: center;
    display: flex;
  }

  .navbar-right {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    width: 100%;
  }

  .social-link {
    width: 100%;
    justify-content: flex-start;
    padding: 0.6rem 0.8rem;
    padding: 0.6rem 1rem;
  }

  .overlay {
    flex-direction: column;
    height: 100%;
  }

  .split {
    width: 100%;
    height: 50%;
    /* ocuparán juntos todo el alto */
    padding: 3rem 1.5rem;
  }

  .split h2 {
    font-size: 2rem;
  }

  .split p {
    font-size: 1rem;
    max-width: 100%;
  }

  .hero-split.hover-left .left,
  .hero-split.hover-left .right,
  .hero-split.hover-right .left,
  .hero-split.hover-right .right {
    width: 100% !important;
  }
}