HTML,
body {
  padding: 0;
  margin: 0;
  height: 100%;
}

#general {
  display: flex;
  width: 70%;
  height: 80%;
  margin: 5% 15%;
}

#leftPart {
  background-color: #087e8b;
  width: 30%;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 15px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.5);

  h1 {
    text-align: center;
    color: white;
    font-size: clamp(5px, 3vw, 40px);
    font-family: "Montserrat", sans-serif;
    margin-bottom: 0;
  }

  h2 {
    text-align: center;
    color: white;
    font-size: clamp(5px, 3vw, 20px);
    font-family: "Montserrat", sans-serif;
  }
}

#isaacPhoto {
  margin-top: 20%;
  margin-left: 30%;
  margin-bottom: 10%;
  width: 40%;
  height: auto;
  border-radius: 100%;
  border: white 2px solid;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.5);
}

#iconSocialMedio {
  margin-top: 5%;
  margin-left: 25%;
  width: 50%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.iconSocial {
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.btn-descargar {
  display: inline-block;
  align-self: center;
  margin-top: 15%;
  padding: 15px 25px;
  background-color: #0077b6;
  color: white;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  text-align: center;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.5);
}

.btn-descargar:hover {
  background-color: #023e8a;
  transform: scale(1.05);
}

#copyright {
  margin-top: auto;
  text-align: center;
}

#rightPart {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: white;
  width: 100%;
  height: 100%; /* ocupa toda la altura de la pantalla */
  max-height: 100vh; /* evita que se desborde */
  overflow-y: auto; /* crea scrollbar si el contenido es más alto */
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  padding: 20px;
  box-sizing: border-box;
}

#menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 70%;
  height: 5vh;
  margin-top: 1vh;
  background-color: white;
  border-radius: 15px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.5);
}

#homeIcon {
  width: 20%;
  height: auto;
}

#userIcon {
  width: 20%;
  height: auto;
}

#cursoIcon {
  width: 20%;
  height: auto;
}

#formularioIcon {
  width: 20%;
  height: auto;
}

#divMenuIcons {
  text-align: center;

  img {
    padding: 0;
  }
}

.subrallado {
  border-bottom: 2px solid black;
  padding-bottom: 5px;
}

#rightPartContent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  gap: 40px;
  margin-top: 20px;

  h1,
  h2 {
    font-family: "Montserrat", sans-serif;
    text-align: center;
  }
}

#timeLineExperience {
  width: 40%;
  h2 {
    text-align: left;
    padding-left: 40px;
  }
}

.timeline {
  position: relative;
  margin: 0 auto;
  padding: 10px 0;
  width: 90%;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  width: 4px;
  height: 100%;
  background: #087e8b;
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 50px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 30px; /* Mueve la línea un poco a la derecha */
  width: 4px;
  height: 100%;
  background: #087e8b;
  border-radius: 2px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 20px; 
  background: #fff;
  border: 4px solid #087e8b;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  top: 5px;
  z-index: 1;
}

.timeline-content {
  background: #f9f9f9;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.timeline-content:hover {
  transform: scale(1.03);
}

.timeline-content h3 {
  margin: 0;
  font-size: 18px;
  color: #023e8a;
  
}

.timeline-content p {
  margin-top: 8px;
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

/*Habilidades de Programación*/
#HabilidadesDeProgramacion {
  width: 80%;
  margin: 50px auto;
  font-family: "Montserrat", sans-serif;
}

#HabilidadesDeProgramacion h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #087e8b;
}

.skill {
  margin-bottom: 20px;
}

.skill p {
  margin: 0 0 5px 0;
  font-weight: bold;
  color: #087E8B;
}

.progress-bar {
  background-color: #e0e0e0;
  border-radius: 25px;
  overflow: hidden;
  height: 20px;
}

.progress {
  background-color: #087e8b;
  height: 100%;
  border-radius: 25px 0 0 25px;
  width: 0;
  transition: width 1s ease-in-out;
}
#timeLineAndHabilities {
  display: flex;
  flex-direction: row;
}

#StudiesAndOtherHabilities {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  width: 100%;
  gap: 25px;
}

#divTitulaciones {
  width: 40%;
  h2 {
    text-align: left;
    padding-left: 40px;
  }
}

#divOtrasHabilidades {
  width: 60%;

  font-family: "Montserrat", sans-serif;
  h2 {
    text-align: left;
    margin-bottom: 30px;
    color: #087e8b;
  }
}
/* Responsive */
@media (max-width: 768px) {
  .timeline::before {
    left: 30px;
  }
  .timeline-item {
    padding-left: 45px;
  }
}


@media (max-width: 768px) {

     #iconSocialMedio {
    display: flex;
    flex-direction: column;
  }
  html,
  body {
    width: 100%;

    margin: 0;
    padding: 0;
  }

  #general {
    flex-direction: column;
    width: 100%;
    height: auto;
    margin: 0 auto;
    gap: 20px;
    padding: 10px;
    box-sizing: border-box;
  }

  #leftPart {
    width: auto;
    height: auto;
    padding: 15px;
    align-items: center;
    border-radius: 15px;
  }

  #isaacPhoto {
    margin: 10px auto;
    width: 40%;
  }

  #iconSocialMedio {
    flex-direction: row;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
  }

  .btn-descargar {
    margin-top: 0;
    width: 80%;
    text-align: center;
  }

  #rightPart {
    width: 100%;
    flex-grow: 1;
    padding: 20px;
    min-height: 65vh;
    border-radius: 15px;
    box-sizing: border-box;
    overflow-y: auto; /* scroll si el contenido se pasa */
  }

  #menu {
    width: 100%;
    height: auto;
    justify-content: space-around;
    padding: 10px;
  }

  #menu img {
    width: 28px;
    height: auto;
  }

  /* Textos escalados */
  #leftPart h1 {
    font-size: 20px;
  }

  #leftPart h2 {
    font-size: 14px;
  }

  #rightPart {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    padding: 20px;
    border-radius: 15px;
  }

  #rightPartContent {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 15px;
    margin-top: auto;
    margin-bottom: auto;
  }

  #rightPartContent h1 {
    font-size: 24px;
  }

  #rightPartContent h2 {
    font-size: 16px;
  }

  #lineaDivisoria {
    width: 70%;
  }

  #rightPartContent {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    text-align: left;
    gap: 25px;
    margin-top: 20px;
  }

  /* --- Timeline + habilidades en columna --- */
  #timeLineAndHabilities {
    flex-direction: column;
    gap: 25px;
    width: 100%;
  }

  #timeLineExperience {
    width: 100%;
  }

  #HabilidadesDeProgramacion,
  #HabilidadesDeBaseDeDatos {
    width: 100%;
  }

  /* Timeline adaptado */
  .timeline::before {
    left: 30px;
    width: 3px;
  }

  .timeline-item {
    padding-left: 50px;
    margin-bottom: 25px;
  }

  .timeline-content {
    font-size: 14px;
  }

  .timeline-content h3 {
    font-size: 16px;
  }

  /* --- Titulaciones y otras habilidades en columna --- */
  #StudiesAndOtherHabilities {
    flex-direction: column;
    gap: 30px;
    width: 100%;
  }

  #divTitulaciones,
  #divOtrasHabilidades {
    width: 100%;
  }

  /* --- Skills en móvil --- */
  .skill p {
    font-size: 14px;
  }

  .progress-bar {
    height: 16px;
  }

  .progress {
    font-size: 12px;
  }

  /* Ajustes tipografía general */
  #rightPartContent h2 {
    font-size: 18px;
    text-align: center;
  }

  #rightPartContent h3 {
    font-size: 14px;
  }
}
