*{
  margin: 0;
  scroll-behavior: smooth;
  
  --transition-delay: 1s;
  transition: var(--transition-delay);
}
body {
  --text-color:#171717;
  --Hover-color: #7a7171d5;
  --background-color: #e4e4e4;
  --button-text-color: var(--background-color);

  background-color: var(--background-color);
  color: var(--text-color);
  /*keep content readable under fixed navbar by adding top padding equal to navbar height */
  --nav-height: 72px; /* adjust to navbar height */
}
body.dark {
  --text-color: #fafafa;
  --Hover-color: #e0e1dbf9;
  --background-color:#262626;
}
:root{
  --nav-height: 72px;   /* adjust to navbar height */
  --footer-height: 32px; /* adjust to footer height */
}

/*the real toggle in colors*/
.check {
  width: 2.6em;
  height: 1.3em;
  margin-top: 6px;
  position: relative;
}
/*  checkbox hidden*/
.check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
/* black bg */
.check label {
  width: 2.6em;
  height: 1.3em;
  background: #171717;
  display: block;
  border-radius: 1em;
  position: relative;
  cursor: pointer;
  transition: .35s;
}
/* bolita */
.check label::after {
  content: "";
  position: absolute;
  width: 1em;
  height: 1em;
  top: 0.1em;
  left: 0.1em;
  border-radius: 50%;
  background: linear-gradient(45deg, #dedede, #ffffff);
  box-shadow: 0 6px 7px rgba(0,0,0,0.3);
  transition: .35s;
}
/* al activar */
.check input:checked + label {
  background: linear-gradient(90deg, #f19af3, #f099b5);
}
.check input:checked + label::after {
  left: 1.3em;
}

.navbar {
  left: 0px;
  gap: 20px;
  right: 0px;
  padding: 20px;
  display: flex;
  z-index: 1001;
  position: fixed;
  font-size: 18px;
  justify-content: center;
  background-color: var(--background-color);
}
.header-logo {
  cursor: pointer;
  margin-top: 5px;
  font-size: 22px;
  font-weight: bold;
  margin-right: 450px;
  transition: 0.5s ease;
}
.header-logo:hover {
  transform: scale(1.1);
}
.navbar a {
  padding: 6px;
  transition: 0.4s;
  border-radius: 50px;
  text-decoration: none;
  color: var(--text-color);
}
.navbar a:hover {
  transform: scale(1.1);
  color: var(--button-text-color);
  background-color: var(--Hover-color);
}

select {
  border: none;
  height: 26px;
  margin-top: 4px;
  border-radius: 1rem;
  color: var(--text-color);
  background-color: var(--background-color);
}

#home {
  display: flex;
  align-items: center;
  flex-direction: column;
  color: var(--text-color);
}
.maintitle {
  font-size: 35px;
  font-weight: 900;
  margin-bottom: 10px;
}
.content {
  font-size: 20px;
  max-width: 455px;
  padding-top: 9px;
  margin-bottom: 5px;
  text-align: center;
}
#contact a {
  gap: 30px;
  width: 15px;
  height: 15px;
  padding: 11px;
  transition: 0.4s;
  margin-top: 10px;
  border-radius: 50%;
  align-items: center;
  display: inline-flex;
  text-decoration: none;
  justify-content: center;
  color: var(--text-color);
}
.fa-brands.fa-linkedin {
  font-size: 23px;
}
.fa-regular.fa-envelope {
  font-size: 23px;
}
.fa-brands.fa-github {
  font-size: 23px;
}
#contact a:hover {
  transform: scale(1.1);
  color: var(--button-text-color);
  background-color: var(--Hover-color);
}
.next-button {
  width: 32px;
  height: 32px;
  display: flex;
  padding: 10px;
  border-radius: 50%;
  position: absolute;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: solid var(--text-color);
  bottom: calc(var(--footer-height) + 24px); /* sit above fixed footer */
}
.fa-solid.fa-chevron-down {
  font-size: 12px;
  color: var(--text-color);
}
button :hover {
  cursor: pointer;
  transform: scale(1.1);
}

/*Make each page-full and reset existing per-section paddings */
.section {
  width: 100%;
  height: 100vh;
  display: flex;
  overflow: auto;
  padding-top: 0;
  min-height: 100vh;
  align-items: center;
  box-sizing: border-box;
  flex-direction: column;
  justify-content: center;
  padding-bottom: var(--footer-height); /* reserve space for footer */
}
.section-inner {
  padding-top: var(--nav-height);
}

#about {
  display: flex;
  align-items: center;
  flex-direction: column;
  background-color: var(--background-color);
}
.about-me {
  font-size: 55px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
  justify-content: center;
  color: var(--text-color);
}
.about-me-p {
  max-width: 750px;
  padding-top: 30px;
  text-align: center;
  padding-bottom: 40px;
  color: var(--text-color);
}
.fa-regular.fa-window-minimize {
  padding-top: 15px;
  padding-bottom: 3px;
  color: var(--text-color);
}

#education {
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-color: var(--background-color);
}
.maintitle-education {
  font-size: 45px;
  font-weight: 900;
  white-space: nowrap;
  color: var(--text-color);
}
.grade {
  max-width: 650px;
  padding-top: 20px;
  white-space: nowrap;
  padding-bottom: 40px;
  color: var(--text-color);
}
span a {
  text-decoration-line: underline;
  color: var(--text-color);
}
.maintitle-cert {
  font-size: 40px;
  font-weight: 900;
  white-space: nowrap;/*resuelve problema de cambio tipo cuando es mas de 1 palab*/
  color: var(--text-color);
}
.cert {
  max-width: 650px;
  padding-top: 20px;
  padding-bottom: 40px;
  color: var(--text-color);
}
ul {
  list-style: none;
  padding-left: 0%;
  padding-bottom: 40px;
}

footer{
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  position: fixed;
  font-size: 14px;
  font-weight: bold;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  color: var(--text-color);
  height: var(--footer-height);
  background-color: var(--background-color);
}
.border {
  padding-left: 500px;/*largor*/
  padding-right: 500px;
  border-top: solid var(--text-color) .3px;
  background-color: var(--background-color);
}
.fourth {
  padding-bottom: 20px;
}

/* 📱 RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .header-logo {
    margin-right: 150px;
  }
  .border {
    padding-left: 200px;
    padding-right: 200px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 20px;
    gap: 12px;
    font-size: 16px;
  }
  .header-logo {
    margin-right: 0;
  }
  #home {
    padding-top: 180px;
  }
  .maintitle {
    font-size: 28px;
  }
  .content {
    font-size: 18px;
    max-width: 90%;
  }
  .next-button {
    margin-top: 80px;
  }
  #about {
    padding-top: 140px;
    padding-bottom: 120px;
  }
  .about-me-p {
    max-width: 90%;
  }
  #education {
    padding-left: 15px;
    padding-right: 15px;
  }
  .grade,
  .cert {
    max-width: 100%;
  }
  /* Footer */
  .border {
    padding-left: 50px;
    padding-right: 50px;
  }
}

@media (max-width: 480px) {
  .navbar {
    flex-wrap: wrap;
    gap: 10px;
  }
  .maintitle { 
    font-size: 24px; /* Texts */
  }
  .maintitle-education {
    font-size: 18px;
  }
  .maintitle-cert {
    font-size: 14px;
  }
  .content,
  .about-me-p {
    font-size: 16px;
  }
  /* Buttons */
  .next-button {
    padding: 8px;
  }
  .border {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* 🍔 HAMBURGER MENU */
.hamburger {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
}
/* Links normales (desktop) */
.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}
/* 📱 Mobile */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    position: absolute;
    right: 20px;
  }
.nav-links {
  left: 0;
  right: 0;
  gap: 15px;
  top: 70px;
  z-index: 999;
  display: none;
  padding: 20px 0;
  position: absolute;
  flex-direction: column;
  background-color: var(--background-color);
  }
.nav-links.active {
  display: flex;
  }
}