@import url('https://fonts.googleapis.com/css2?family=Righteous&family=Work+Sans:wght@100;300;400;600;800&display=swap');
*{
  box-sizing: border-box;
  font-family: 'Work Sans';
  margin: 0;
  padding: 0;
}
html{
  /* me permite deslizar cuando hago clic en los links del menu */
  scroll-behavior: smooth;
}
/* MENU */
.contenedor-header{
  background: #1e2326;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 99;
}
.contenedor-header header{
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}
.contenedor-header header .logo a{
  font-family: 'Righteous';
  font-size: 36px;
  color: #1CB698;
  text-decoration: none;
}
.contenedor-header header ul{
  display: flex;
  list-style: none;
}
.contenedor-header header nav ul li a{
  text-align: none;
  color: #fff;
  margin: 0 15px;
  padding: 3px;
  transition: .5s;
  text-decoration: none;
}
.contenedor-header header nav ul li a:hover{
  color: #1CB698;
}
.nav-responsive{
  background-color: #1CB698;
  color:#fff;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  display: none;
}
/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 20px;
  margin: 0 15px;
  padding: 3px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #1CB698;
}

input:checked + .slider:before {
  transform: translateX(14px);
}
/* SECCION I N I C I O */
.inicio{
  background: linear-gradient(to top, rgba(30,35,38,.8), rgba(30,35,38,1)),
  url(../img/fondo.jpg);
  background-size: cover;
  height: 100vh;
  color: #fff;
  display: flex;
  align-items: center;
}
.inicio .contenido-banner{
  padding: 20px;
  background-color: #1e2326;
  max-width: 350px;
  margin: auto;
  text-align: center;
  border-radius: 40px;
}
.inicio .contenido-banner img{
  margin-top: 40px;
  border: 10px solid #1CB698;
  display: block;
  width: 80%;
  margin: auto;
  border-radius: 100%;
}
.inicio .contenido-banner h1{
  margin-top: 40px;
  font-size: 42px;
  font-family: 'Righteous';
}
.inicio .contenido-banner h2{
  font-size: 15px;
  font-weight: normal;
}
.inicio .contenido-banner .redes a{
  color: #fff;
  display: inline-block;
  text-decoration: none;
  border: 1px solid #fff;
  border-radius: 100%;
  width: 42px;
  height: 42px;
  line-height: 42px;
  margin: 40px 5px;
  font-size: 20px;
  transition: .3s;
}
.inicio .contenido-banner .redes a:hover{
  background-color: #1CB698;
}
/* SECCION - SOBRE MI*/
.sobremi{
  background-color: #1e2326;
  color: #fff;
  padding: 50px 20px;
}
.sobremi .contenido-seccion{
  max-width: 1100px;
  margin: auto;
}
.sobremi h2{
  font-size: 48px;
  font-family: 'Righteous';
  text-align: center;
  padding: 20px 0;

}
.sobremi .contenido-seccion p{
  font: 18px;
  line-height: 22px;
  margin-bottom: 20px;
  text-align: justify;
}
.sobremi .contenido-seccion p span{
  color: #1CB698;
  font-weight: bold;
}
.sobremi .fila{
  display: flex;
}
.sobremi .fila .col
{
  width: 50%;
}
.sobremi .fila .col h3{
  font-size: 28px;
  font-family: 'Righteous';
  margin-bottom: 25px;
}
.sobremi .fila .col ul{
  list-style: none;
}
.sobremi .fila .col ul li{
  margin: 12px 0;
}
.sobremi .fila .col ul li strong{
  display: inline-block;
  color: #1CB698;
  width: 130px;
}
.sobremi .fila .col ul li span{
  background-color: #1CB698;
  padding: 3px;
  font-weight: bold;
  border-radius: 5px;
}
.sobremi .fila .col .contenedor-intereses{
  display: flex;
  flex-wrap: wrap;
}
.sobremi .fila .col .contenedor-intereses .interes{
  width: 100px;
  height: 100px;
  background-color: #252A2E;
  border-radius: 10px;
  margin: 0 15px 15px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: .3s;
}.sobremi .fila .col .contenedor-intereses .interes:hover{
  background-color: #1CB698;
}
.sobremi .fila .col .contenedor-intereses .interes i{
  font-size: 30px;
  margin-bottom: 10px;
}
.sobremi a{
  text-decoration: none;
  color: inherit;
}
.sobremi button{
  cursor: pointer;
  background-color: transparent;
  border: 2px solid #fff;
  width: fit-content;
  display: block;
  margin: 20px auto;
  padding: 10px 22px;
  font-size: 16px;
  color: #fff;
  position: relative;
  z-index: 10;
}
.sobremi button .overlay{
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: #1CB698;
  z-index: -1;
  transition: 1s;
}
.sobremi button:hover .overlay{
  width: 100%;
}
/* SECCION S K I L L S */
.skills{
  background-color: #252A2E;
  color: #fff;
  padding: 50px 20px;
}
.skills .contenido-seccion{
  max-width: 1100px;
  margin: auto;
}
.skills h2{
  font-size: 48px;
  font-family: 'Righteous';
  text-align: center;
  padding: 20px 0;

}
.skills .fila{
  display: flex;
}
.skills .fila .col{
  width: 50%;
  padding: 0 20px;
}
.skills .fila .col h3{
  font-size: 28px;
  font-family: 'Righteous';
  margin-bottom: 25px;
}
.skills .skill > span{
  font-weight: bold;
  display: block;
  margin-bottom: 10px;
}
.skills .skill .barra-skill{
  height: 8px;
  width: 80%;
  background-color: #131517;
  position: relative;
  margin-bottom: 30px;
}
.skills .skill .progreso{
  background-color: #1CB698;
  position: absolute;
  top: 0;
  left: 0;
  height: 8px;
}
.skills .skill .barra-skill span{
  position: absolute;
  height: 40px;
  width: 40px;
  background-color: #1CB698;
  border-radius: 50px;
  line-height: 40px;
  text-align: center;
  top: -17px;
  right: -15px;
  font-size: 14px;
}
/* Estas clases se agregaran dinamicamente mediante javascript */
.skills .skill .python{
  width: 0%;
  animation: 2s python forwards;
}
@keyframes python {
  0%{width: 0%;}
  100%{width: 78%;}
}

.skills .skill .cpp{
  width: 0%;
  animation: 2s cpp forwards;
}
@keyframes cpp {
  0%{width: 0%;}
  100%{width: 70%;}
}
.skills .skill .java{
  width: 0%;
  animation: 2s java forwards;
}
@keyframes java {
  0%{width: 0%;}
  100%{width: 99%;}
}

.skills .skill .nodejs{
  width: 0%;
  animation: 2s nodejs forwards;
}
@keyframes nodejs {
  0%{width: 0%;}
  100%{width: 80%;}
}

.skills .skill .mongodb{
  width: 0%;
  animation: 2s mongodb forwards;
}
@keyframes mongodb {
  0%{width: 0%;}
  100%{width: 75%;}
}

.skills .skill .comunicacion{
  width: 0%;
  animation: 2s comunicacion forwards;
}
@keyframes comunicacion {
  0%{width: 0%;}
  100%{width: 95%;}
}

.skills .skill .trabajo{
  width: 0%;
  animation: 2s trabajo forwards;
}
@keyframes trabajo {
  0%{width: 0%;}
  100%{width: 67%;}
}

.skills .skill .creatividad{
  width: 0%;
  animation: 2s creatividad forwards;
}
@keyframes creatividad {
  0%{width: 0%;}
  100%{width: 75%;}
}

.skills .skill .dedicacion{
  width: 0%;
  animation: 2s dedicacion forwards;
}
@keyframes dedicacion {
  0%{width: 0%;}
  100%{width: 82%;}
}

.skills .skill .project{
  width: 0%;
  animation: 2s project forwards;
}
@keyframes project {
  0%{width: 0%;}
  100%{width: 96%;}
}
/* SECCION CURRICULUM */
.curriculum{
  background-color: #1e2326;
  color: #fff;
  padding: 50px 20px;
}
.curriculum .contenido-seccion{
  max-width: 1100px;
  margin: auto;
}
.curriculum h2{
  font-size: 48px;
  font-family: 'Righteous';
  text-align: center;
  padding: 20px 0;

}
.curriculum .fila{
  display: flex;
  justify-content: space-between;
}
.curriculum .fila .col{
  width: 49%;
  padding: 0 20px;
}
.curriculum .fila .col h3{
  font-size: 28px;
  font-family: 'Righteous';
  margin-bottom: 25px;
}
.curriculum .fila .izquierda{
  border-right: 2px solid #252A2E;
}
.curriculum .fila .derecha{
  border-left: 2px solid #252A2E;
}
.curriculum .fila .item{
  padding: 25px;
  margin-bottom: 30px;
  background-color: #252A2E;
  position: relative;
}
.curriculum .fila .item h4{
  font-size: 20px;
  margin-bottom: 10px;
}
.curriculum .fila .item .casa{
  color: #1CB698;
  font-size: 22px;
  font-weight: bold;
  display: block;
}
.curriculum .fila .item .fecha{
  display: block;
  color: #1CB698;
  margin-bottom: 10px;
}
.curriculum .fila .item p{
  line-height: 24px;
  text-align: justify;
}
.curriculum .fila .izq{
  border-right: 2px solid #1CB698;
  margin-right: 20px;
}
.curriculum .fila .der{
  border-left: 2px solid #1CB698;
  margin-left: 20px;
}
.curriculum .fila .item .conectori{
  height: 2px;
  background-color: #1CB698;
  width: 47px;
  position: absolute;
  top: 50%;
  right: -47px;
  z-index: 5;
}
.curriculum .fila .item .conectori .circuloi{
  display: block;
  height: 10px;
  width: 10px;
  border-radius: 50%;
  background-color: #1CB698;
  float: right;
  position: relative;
  bottom: 4px;
}
  .curriculum .fila .item .conectord{
    height: 2px;
    background-color: #1CB698;
    width: 47px;
    position: absolute;
    top: 50%;
    left: -47px;
    z-index: 5;
  }
  .curriculum .fila .item .conectord .circulod{
    display: block;
    height: 10px;
    width: 10px;
    border-radius: 50%;
    background-color: #1CB698;
    float: left;
    position: relative;
    bottom: 4px;
  }
/* SECCION PORTFOLIO */
.portfolio {
  background-color: #252A2E;
  color: #fff;
  padding: 50px 20px;
}

.portfolio .contenido-seccion {
  max-width: 1100px;
  margin: auto;
}

.portfolio h2 {
  font-size: 48px;
  font-family: 'Righteous';
  text-align: center;
  padding: 20px 0;
}

.portfolio .subsection {
  margin-top: 30px;
}

.portfolio .subsection h3 {
  font-size: 36px;
  font-family: 'Righteous';
  text-align: center;
  margin-bottom: 20px;
}

.portfolio .divider {
  height: 4px;
  background: linear-gradient(to right, #1CB698, #1e2326);
  margin: 20px 0;
}

.portfolio .galeria {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.portfolio .proyecto {
  background-color: #1e2326;
  border-radius: 10px;
  overflow: hidden;
  margin: 10px;
  width: 300px;
  transition: transform 0.3s;
  text-decoration: none;
  color: inherit;
}

.portfolio .proyecto:hover {
  transform: scale(1.05);
  cursor: pointer;
}

.portfolio .proyecto img {
  width: 100%;
  display: block;
}

.portfolio .proyecto .info {
  padding: 20px;
  text-align: center;
}

.portfolio .proyecto .info h3 {
  margin-bottom: 10px;
  font-size: 24px;
  color: #1CB698;
}

.portfolio .proyecto .info p {
  margin: 5px 0;
  font-size: 16px;
}

.portfolio .proyecto:hover .info {
  background-color: rgba(28, 182, 152, 0.1);
}

/* Icono de descarga */
.portfolio .proyecto .download-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color:rgb(28, 182, 152);
  padding: 10px;
  border-radius: 50%;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s;
  cursor: pointer;
}

.portfolio .proyecto:hover .download-icon {
  opacity: 1;
}

/* SECCION CONTACTO */
.contacto{
  background-image: url(img/contact_bg.png);
  background-color: #1e2326;
  color: #fff;
  padding: 50px 0;
}
.contacto .contenido-seccion{
  max-width: 1100px;
  margin: auto;
}
.contacto h2{
  font-size: 48px;
  font-family: 'Righteous';
  text-align: center;
  padding: 20px 0;
}
.contacto .fila{
  display: flex;
}
.contacto .col{
  width: 50%;
  padding: 10px;
  position: relative;
}
.contacto .col input, .contacto .col textarea{
  display: block;
  width: 100%;
  padding: 18px;
  border: none;
  margin-bottom: 20px;
  background-color: #252A2E;
  color: #fff;
  font-size: 18px;
}
.contacto button{
  cursor: pointer;
  background-color: transparent;
  border: 2px solid #fff;
  width: fit-content;
  display: block;
  margin: 20px auto;
  padding: 10px 22px;
  font-size: 16px;
  color: #fff;
  position: relative;
  z-index: 10;
}
.contacto button .overlay{
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: #1CB698;
  z-index: -1;
  transition: 1s;
}
.contacto button:hover .overlay{
  width: 100%;
}
.contacto .col img{
  width: 100%;
}
.contacto .col .info{
  position: absolute;
  top: 40%;
  background-color: #252A2E;
  padding: 20px;
  max-width: 350px;
  left: 50%;
  transform: translate(-50%, -50%);
}
.contacto .col .info ul{
  list-style: none;
}
.contacto .col .info ul li{
  margin-bottom: 20px;
}
.contacto .col .info ul li i{
  color: #1CB698;
  display: inline-block;
  margin-right: 20px;
}
/* FOOTER */
footer{
  background-color: #252A2E;
  color: #fff;
  padding: 50px 0 30px 0;
  text-align: center;
  position: relative;
  width: 100%;
}
footer .redes{
  margin-bottom: 20px;
}
footer .redes a{
  color: #fff;
  display: inline-block;
  text-decoration: none;
  border: 1px solid #fff;
  border-radius: 100%;
  width: 42px;
  height: 42px;
  line-height: 42px;
  margin: 40px 5px;
  font-size: 20px;
  transition: .3s;
}
footer .arriba{
  display: block;
  width: 50px;
  height: 50px;
  background-color: #1CB698;
  color: #fff;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -25px;
  border-radius: 50%;
  line-height: 50px;
  font-size: 18px;
}

/* LIGHT THEME */
body.light-theme {
  background-color: #f4f4f4; 
  color: #2c3e50;
}

body.light-theme .contenedor-header {
  background: #f9f9f9;
}

body.light-theme .contenedor-header header .logo a {
  color: #1CB698;
}

body.light-theme .contenedor-header header nav ul li a {
  color: #2c3e50; 
}

body.light-theme .contenedor-header header nav ul li a:hover {
  color: #1CB698;
}

body.light-theme .nav-responsive {
  background-color: #1CB698;
  color: #fff;
}

/* LIGHT THEME for Responsive Menu */
body.light-theme nav.responsive {
  background-color: #f9f9f9; 
}

body.light-theme nav.responsive ul li {
  border-bottom: 1px solid #dcdcdc;
}

body.light-theme nav.responsive ul li a {
  color: #2c3e50; 
}

/* Light Theme for Inicio */
body.light-theme .inicio {
  background: linear-gradient(to top, rgba(244, 244, 244, 0.8), rgba(244, 244, 244, 0.95)),
  url('../img/fondo.jpg'); 
  background-size: cover; 
  background-position: center; 
  color: #2c3e50;
}

body.light-theme .inicio .contenido-banner {
  background-color: #f9f9f9;
}

body.light-theme .inicio .contenido-banner img {
  border: 10px solid #1CB698;
}

body.light-theme .inicio .contenido-banner h1 {
  color: #2c3e50;
}

body.light-theme .inicio .contenido-banner h2 {
  color: #546e7a; 
}

body.light-theme .inicio .contenido-banner .redes a {
  color: #2c3e50;
  border: 1px solid #2c3e50;
}

body.light-theme .inicio .contenido-banner .redes a:hover {
  background-color: #1CB698;
}

/* Light Theme for Sobre Mi */
body.light-theme .sobremi {
  background-color: #f9f9f9;
  color: #2c3e50;
}

body.light-theme .sobremi .contenido-seccion p span {
  color: #1CB698;
}

body.light-theme .sobremi .fila .col ul li strong {
  color: #1CB698;
}

body.light-theme .sobremi .fila .col ul li span {
  background-color: #1CB698;
}

body.light-theme .sobremi .fila .col .contenedor-intereses .interes {
  background-color: #e0e0e0; /* Un gris claro */
}

body.light-theme .sobremi .fila .col .contenedor-intereses .interes:hover {
  background-color: #1CB698;
}

/* Light Theme for Skills */
body.light-theme .skills {
  background-color: #f4f4f4;
  color: #2c3e50;
}

body.light-theme .skills .skill .barra-skill {
  background-color: #e0e0e0;
}

body.light-theme .skills .skill .progreso {
  background-color: #1CB698;
}

/* Light Theme for Curriculum */
body.light-theme .curriculum {
  background-color: #f9f9f9;
  color: #2c3e50;
}

body.light-theme .curriculum .fila .izquierda {
  border-right: 2px solid #e0e0e0;
}

body.light-theme .curriculum .fila .derecha {
  border-left: 2px solid #e0e0e0;
}

body.light-theme .curriculum .fila .item {
  background-color: #e0e0e0;
}

body.light-theme .curriculum .fila .item .casa,
body.light-theme .curriculum .fila .item .fecha {
  color: #1CB698;
}

body.light-theme .curriculum .fila .item .conectori,
body.light-theme .curriculum .fila .item .conectord {
  background-color: #1CB698;
}

body.light-theme .curriculum .fila .item .conectori .circuloi,
body.light-theme .curriculum .fila .item .conectord .circulod {
  background-color: #1CB698;
}

/* Light Theme for Portfolio */
body.light-theme .portfolio {
  background-color: #f4f4f4;
  color: #2c3e50;
}

body.light-theme .portfolio .proyecto {
  background-color: #f9f9f9;
}

body.light-theme .portfolio .proyecto .info h3 {
  color: #1CB698;
}

body.light-theme .portfolio .proyecto:hover .info {
  background-color: rgba(28, 182, 152, 0.1);
}

/* Light Theme for Contacto */
body.light-theme .contacto {
  background-image: url(img/contact_bg.png);
  background-color: #f9f9f9;
  color: #2c3e50;
}

body.light-theme .contacto .col input,
body.light-theme .contacto .col textarea {
  background-color: #e0e0e0;
  color: #2c3e50;
}

body.light-theme .contacto .col .info {
  background-color: #e0e0e0;
}

body.light-theme .contacto .col .info ul li i {
  color: #1CB698;
}

/* Light Theme for Footer */
body.light-theme footer {
  background-color: #e0e0e0;
  color: #2c3e50;
}

body.light-theme footer .redes a {
  color: #2c3e50;
  border: 1px solid #2c3e50;
}

body.light-theme footer .arriba {
  background-color: #1CB698;
  color: #fff;
}

/* Botones en Light Theme */
body.light-theme .contacto button,
body.light-theme .sobremi button {
  cursor: pointer;
  background-color: transparent;
  border: 2px solid #2c3e50; 
  width: fit-content;
  display: block;
  margin: 20px auto;
  padding: 10px 22px;
  font-size: 16px;
  color: #2c3e50; 
  position: relative;
  z-index: 10;
}

body.light-theme .contacto button .overlay,
body.light-theme .sobremi button .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: #1CB698;
  z-index: -1;
  transition: width 1s;
}

body.light-theme .contacto button:hover .overlay,
body.light-theme .sobremi button:hover .overlay {
  width: 100%;
}

/* SECCION RESPONSIVE */
@media screen and (max-width:980px){
  nav{
      display: none;
  }
  .nav-responsive{
      display: block;
  }
  nav.responsive{
      display: block;
      position: absolute;
      right: 0;
      top: 75px;
      background-color: #252A2E;
      width: 180px;
  }
  nav.responsive ul{
      display: block !important;
  }
  nav.responsive ul li{
      border-bottom: 1px solid #fff;
      padding: 10px 0;
  }
}

@media screen and (max-width:700px){
  .sobremi .fila{
      display: block;
  }
  .sobremi .fila .col{
      width: fit-content;
  }

  .skills .fila{
      display: block;
  }
  .skills .fila .col{
      width: 100%;
  }
  .skills .fila .col .barra-skill{
      width: 100%;
  }

  .curriculum .fila{
      display: block;
  }
  .curriculum .fila .col{
      width: 90%;
  }
  .curriculum .fila .derecha{
      margin-left: 20px;
  }

  .portfolio .galeria{
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
  }
  .portfolio .galeria .proyecto{
      max-width: 100%;
      width: 90%;
      margin-bottom: 20px;
  }
  .portfolio .proyecto .info {
      padding: 15px;
  }
  .portfolio .proyecto .info h3 {
      font-size: 20px;
  }
  .portfolio .proyecto .info p {
      font-size: 14px;
  }
  .contacto .fila{
      display: block;
  }
  .contacto .fila .col{
      width: 100%;
  }
}