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

body {
  padding: 0.5rem;
  font-family: 'Poppins', sans-serif;
  background-color: #1e3a5f;
  color: black;
  line-height: 1.6;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 110%;
  height: auto;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

main {
  padding-top: 50px;
}

/* Navbar */
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #1e3a5f;
  padding: 1.5rem;
}

#menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

.ul-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul li a {
  color: white;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #facc15;
}

#inicio, #experiencia, #proyectos, #habilidades, #sobremi {
  scroll-margin-top: 70px; 
}

/* Intro */
.intro {
  padding: 2rem;
  max-width: 800px;
  margin: auto;
  text-align: center;
}

.action-buttons {
  margin-top: 1rem;
  display: flex;
  justify-content: left;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.link-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-weight: 600;
  color: #1e3a5f;
  background-color: white;
  transition: background-color 0.3s ease;
}

.link-btn:hover {
  color: white;
  background-color: #1e6ded;
}

.link-card-btn{
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-weight: 600;
  color: white;
  background-color: #1e3a5f;
  transition: background-color 0.3s ease;
}

.link-card-btn:hover {
  color: white;
  background-color: #1e6ded;
}

/* Secciones */
section {
  padding: 0.1rem 0.1rem;
  max-width: 1100px;
  margin: auto;
}

section#inicio {
  padding: 2rem 0.1rem 0.1rem;
  max-width: 1100px;
  margin: auto;
  color: white;
  margin-bottom: 2rem;
}

.top-text .status {
  background-color: #f3aa19;
  color: black;
  /* background-color: #45912c;
  color: white; */
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.top-text h1 {
  font-size: 2rem;
  margin-bottom: 0.3rem;
  color: white;
}

h2 {
  font-size: 1.9rem;
  margin-bottom: 1rem;
  color: white;
}

/* Experiencia laboral */
.timeline-section {
  color: white;
  font-family: 'Poppins', sans-serif;
}

.timeline {
  border-left: 2px solid #FFD400;
  margin-left: 20px;
  padding-left: 20px;
  position: relative;
}

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

.timeline-dot {
  width: 12px;
  height: 12px;
  background-color: #FFD400;
  border-radius: 50%;
  position: absolute;
  left: -27px;
  top: 5px;
}

/* .timeline-content {
  max-width: 700px;
} */

.job-title {
  font-size: 1.2em;
  font-weight: 600;
  color: #FFD400;
  margin: 0;
}

.company {
  display: block;
  color: white;
  font-weight: 500;
  font-size: 1em;
}

.job-date {
  color: #aaa;
  font-size: 0.9em;
  margin: 5px 0 15px 0;
}

.job-description {
  color: whitesmoke;
  line-height: 1.6;
}

.job-link {
  color: #FFD400;
  text-decoration: none;
  font-weight: 500;
}

.job-link:hover {
  text-decoration: underline;
}

/* Proyectos */
.project {
  display: flex;
  flex-direction: column;
  background-color: whitesmoke;
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  font-size: 1.4rem;
  color: #1e3a5f;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.project-info p {
  margin: 0.5rem 0 1rem;
  color: #444;
}

.badges {
  display: flex;
  gap: 0.2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.badge {
  background-color: #f3aa19;
  color: black;
  padding: 0.3rem 0.7rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.project-info a:last-child {
  font-size: 0.95rem;
  color: white;
  font-weight: 500;
}

.project-info img {
  height: 35px;
}

.project-img-container {
  max-height: 200px;
  overflow: hidden;
}

.project-img {
  display: block;
  width: 100%;
  object-fit: cover;
  border: 3px solid white;
}

/* Habilidades técnicas*/
.project-habilidades {
  padding: 1rem;
}

.project-habilidades img {
  height: 32px;
}

#habilidades h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: #1e3a5f;
}

/* Sobre mí */
.about-project {
  align-items: center;
  text-align: left;
}

.about-project .profile-img {
  width: 150px;
  height: 100%;
  object-fit: cover;
  border-radius: 12%;
  border: 5px solid white;
  margin: 1rem 0;
}

/* Footer */
footer {
  padding: 0.3rem;
  max-width: 1100px;
  margin: auto;
  display: flex;
  color: whitesmoke;
  font-size: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer-right {
  display: flex;
  gap: 1rem;
}

.footer-item {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.footer-item img {
  height: 20px;
  vertical-align: middle;
}

footer a {
  transition: color 0.3s ease;
}

footer a:hover {
  color: #facc15;
}

/* Responsive móvil*/
@media (max-width: 768px) {
  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
  }

  #menu-toggle {
    display: none;
  }

  .menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 2rem;
    height: 1.5rem;
    cursor: pointer;
    z-index: 1100;
  }

  .menu-icon div {
    background-color: white;
    height: 2px;
    width: 100%;
    border-radius: 5px;
    transition: all 0.4s ease;
    transform-origin: left;
  }

  .ul-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #1e3a5f;
    overflow: hidden;
    height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    transition: height 0.4s ease;
  }

  #menu-toggle:checked ~ .ul-links {
    height: calc(100dvh - 4rem);
  }

  #menu-toggle:checked ~ .menu-icon div:nth-child(1) {
    transform: rotate(45deg);
  }

  #menu-toggle:checked ~ .menu-icon div:nth-child(2) {
    opacity: 0;
  }

  #menu-toggle:checked ~ .menu-icon div:nth-child(3) {
    transform: rotate(-45deg);
  }
}

/* Responsive */
@media (min-width: 768px) {
  .project {
    flex-direction: row;
  }
  
  .project-info,
  .project-img-container {
    flex: 1;
  }
  
  .project-img-container {
    max-height: 100%;
  }
  
  .project-img {
    height: 100%;
    object-fit: cover;
  }
  
  .about-project {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }
  
  .about-project .profile-img {
    margin: 1.5rem;
    flex-shrink: 0;
  }
}
