

/* Variables*/
:root{
   --color-primario: #1c1c1c;
   --color-secundario: #a71042;
}
* img{
    max-width: 100%;
}
/*Cabecera con el logotipo*/
html{
    scroll-behavior: smooth;
    scrollbar-color: #a71042 rgb(203, 202, 202);
    scrollbar-width: auto;
    
} 
body{
    max-width: 1440px;
    margin: auto;
}
body {
    margin: 0;
    height: 100vh;
   
    background: rgb(27, 27, 27);
}

.cursor {
    width: 20px;
    height: 20px;
    border: 1px solid white;
    border-radius: 50%;
    position: absolute;
    transition-duration: 200ms;
    transition-timing-function: ease-out;
    animation: cursorAnim .5s infinite alternate;
    pointer-events: none;
    z-index: 3;
}

.cursor::after {
    content: "";
    width: 20px;
    height: 20px;
    position: absolute;
    border: 8px solid #a71042;
    border-radius: 50%;
    opacity: .5;
    top: -8px;
    left: -8px;
    animation: cursorAnim2 .5s infinite alternate;
}

@keyframes cursorAnim {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(.7);
    }
}

@keyframes cursorAnim2 {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(.4);
    }
}

@keyframes cursorAnim3 {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(3);
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.expand {
    animation: cursorAnim3 .5s forwards;
    border: 2px solid #a71042;
}

 /*boton hacia arriba*/   
 .btn-arriba span{
    position: fixed;
    bottom: 20px;
    left: 85%;
    width: 50px;
    height: 50px;
    background:var(--color-secundario);
    opacity: 0.6;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: #FFF;
    z-index: 2;
    transition: all .5s;
}
.btn-arriba span:hover{
    opacity: 1;
}
/*header*/
.inicio {
    max-width: 1440px;
    height: 7vh;
    background-color: #010101;
    display: flex;
    justify-content: space-between;
}
#bdark {
    background-color:#dedede;
    color: #1c1c1c;
    margin: 15px 30px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px;
    cursor: pointer;
    border-radius: 7px;
    border-color: var(--color-secundario);
}
#bdark:hover {
    background: #8b1616;
    color: #FFF;
    
}
.inicio img{
    width: 180px;
    height: 80px;
    transition: all .8s;
}
/* Menú  y foto perfil*/
.menu-foto{
    max-width: 1440px;
    display: flex;
    justify-content:space-evenly;
    align-items: center;
    background:linear-gradient(180deg, #010101, #1C1C1C);
    height: 93vh;
}
.menu-principal{
    position: relative;
    width: 40vw;
}
.menu{
    position: relative;

    animation-name: showLeft;
    animation-duration: 1.9s;
}
@keyframes showLeft {
    0%{
        transform: translateX(-100%);
    }
    100%{
        transform: translateX(0%);
    }
}

ul{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
ul li{
    position: relative;
    list-style: none;
    margin: 5px;
}
ul li a{
    position: relative;
    height: 50px;
    display: block;
    text-decoration: none;
    padding: 3px 10px;
    margin: 30px 0 ;
    font-weight: 600;
    letter-spacing: 2px;
    overflow: hidden;
}
/*efectos en el menu*/
ul li a::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-secundario) ;
    border-radius: 8px;
    transform: scaleX(0);
    transition: transform .4s;
}
ul li a:hover::before{
    transform: scaleX(1);
    transform-origin: left ;
    transition-delay: .4s;
}
ul li a span{
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    padding-top: 13px;
    color: #c4bebe;
    text-align:center;
    font-size: 30px;
    transition: all 1.3s;
}
.imagen{
    position: relative;
    display: flex;
    justify-content:center;
    width: 60vw;
}
.imagen img{
    width: 550px;
    height: 550px;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.7s;

    animation-name: showRigth;
    animation-duration: 1.5s;
}
@keyframes showRigth {
    0%{
        transform: translateX(60%);
    }
    100%{
        transform: translateX(0%);
    }
}
.imagen img:hover {
   transform: scale(1.2);
}
/*Seccion servicios*/
.servicios{
    max-width: 1440px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    background-color:#1c1c1c;
}
 .grafico{
    position: relative;
    width: 45%;
    height: 350px;
    margin: 50px 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    transition: all .7s;
 
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 20% cover 30%;
 }
@keyframes reveal {
    from {
       opacity: 0;
       translate: 0 100px;
       scale: .5;
       
    }
    to{
       opacity: 1;
       translate: 0 0;
       scale: 1;
    }
}
.grafico:nth-child(1){
    background: linear-gradient(45deg, #22386f, #DA3DBE);
}
.grafico:nth-child(2){
    background: linear-gradient(45deg, #8e1c39, #7094ce);
}
.grafico:nth-child(3){
    background: linear-gradient(45deg, #0E2B2F, #f43737);
}
.grafico:nth-child(4){
    background: linear-gradient(45deg, #0a2225, #00FFFF ); 
}
.grafico img{
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    left: 50%;
    bottom: 0;
    transform: translate(-50%);
    z-index: 1;
    transition: all .7s;
}
.grafico:hover img{
    left: 75%;
    height: 350px;
    }
.grafico .contenido{
    position: relative;
    padding: 0px 10px;
    width: 50%;
    left: 0;
    color: #c4bebe;
    opacity: 0;
    transition: all .7s;
}
.grafico:hover .contenido{
    left: 0;
    opacity: 1;
}
.grafico .contenido h2{
    font-size: 28px;
}
.grafico .contenido p{
    display: flex;
    justify-content: start;
    align-items: start;
    margin-top: 10px;
    font-weight: 500;
    font-size: 18px;
}
/*Seccion sobre mi*/

.sobre-mi {
    
    max-width: 1440px;
    height: 60vh;
    background-color: #1c1c1c;
    color: #c4bebe;
    position: relative;
    display: flex;
    flex-direction: column;
}
.contenedor h2 {
    font-size: 70px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}
.contenedor h3{
    font-size: 40px;
    text-align: center;
    font-weight: 540;
}
 .contenedor p{
    text-align: center;
    margin: 25px 20px;
    font-size: 22px;
    font-weight: 500;
    word-spacing: 3px;
}
/*Seccion proyectos*/
.proyectos{
    max-width: 1440px;
    height: 20vh;
    background-color: #1c1c1c;
}
.proyectos h2{
    color: #c4bebe;
    font-size: 40px;
    font-weight: 600;
    margin: 0px 20px;
}
.proyectos div{
    display: flex;
    justify-content: center;
    align-items: center;
}
.boton .contact1 {
    position: relative;
    display: inline-block;
    margin: 30px 30px;
    padding: 15px 30px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    color: #aaa9a9;
    background: transparent;
    cursor: pointer;
    transition: ease-out 0.5s;
    border: 2px solid var(--color-secundario);
    border-radius: 10px;
    box-shadow: inset 0 0 0 0 var(--color-secundario);
  }
  
  .contact1:hover {
    color: #ffffff;
    box-shadow: inset 0 -100px 0 0 var(--color-secundario);
  }
  
  .contact1:active {
    transform: scale(0.9);
  } 
/*seccion contacto*/

.contacto{
    max-width: 1440px;
    height: 60vh;
    background-color: #1c1c1c;
    color: #c4bebe;
    
}
.contacto div{
    display: flex;
    justify-content: center;
    align-items: center;
}
.contacto .hablemos h2{
    font-size: 70px;
}
.contacto .cuentame p{
    text-align: center;
    font-size: 24px;
}
.boton .contact {
    position: relative;
    display: inline-block;
    margin: 35px 30px;
    padding: 15px 30px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    color: #aaa9a9;
    background: transparent;
    cursor: pointer;
    transition: ease-out 0.5s;
    border: 2px solid var(--color-secundario);
    border-radius: 10px;
    box-shadow: inset 0 0 0 0 var(--color-secundario);
  }
  
  .contact:hover {
    color: #ffffff;
    box-shadow: inset 0 -100px 0 0 var(--color-secundario);
  }
  
  .contact:active {
    transform: scale(0.9);
  } 
 footer {
    max-width: 1440px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 10px;
    background-color: #313131;
}
footer p{
    font-size: 16px;
    font-style: italic;
    color: #FFF;
    opacity: 0.7;
}
p:hover{
    opacity: 1;
}
/* dark mode*/
 .darkmode .btn-arriba span{
    color: #E8E5DE;
  }
 .darkmode .btn-arriba span:hover{
    opacity: 1;
  }
  
  .darkmode .menu-foto{
    background:#c2c2c2;
  }
  .darkmode span{
    color: #1c1c1c;
    font-size: 30px;
    
  }
  .darkmode span:hover{
    color: #FFF;
  }
  .darkmode ul li a::before{
    background-color: var(--color-secundario);
  }
  .darkmode .servicios{
    background-color:#c2c2c2;
 }
 .darkmode .sobre-mi{
    background-color:#c2c2c2;
    color: #040404;
 }
 .darkmode .proyectos{
    background-color:#c2c2c2;
    color: #040404;
}
 .darkmode .proyectos h2{
    color: #040404;
 }
.darkmode .contact1 {
    color: #464545;
 }
 .darkmode .contact1:hover {
    color: #ffffff;
    box-shadow: inset 0 -100px 0 0 var(--color-secundario);
  }
  .darkmode .cuentame p{
    color: #040404;
  }

.darkmode .contacto{
    background-color:#c2c2c2;
    color: #040404;
 }
 .darkmode .contact{
    color: #464545;
 }
 .darkmode .contact:hover {
    color: #ffffff;
    box-shadow: inset 0 -100px 0 0 var(--color-secundario);
  }
 /*Media querys*/
 @media screen and (min-width:1200px){
    .grafico{
       height: 350px;
       
        }
    .grafico img{
    height: 350px;
    }      
    .grafico:hover img{
     height: 350px;
    }
} 
 @media screen and (max-width: 1200px) and (min-width:960px){
    .imagen img:hover {
        transform: scale(1.1);
     }
    .grafico {
        height: 300px;
    }
    .grafico img{
        position: absolute;
        width: 300px;
        height: 300px;
        border-radius: 50%;
    }  
    .grafico:hover img{
        left: 75%;
        height: 300px;
        }
   .grafico .contenido h2{
        font-size: 26px;
    }
    .grafico .contenido p{
        margin-top: 10px;
        font-weight: 500;
        font-size: 20px;
    }
}
@media screen and (max-width:960px) and (min-width:769px) {
   .menu-foto{
        
        height: 73vh;
    }
    .imagen img{
        width: 530px;
        height: 530px;
        border-radius: 50%;
        object-fit: cover;
        transition: all 0.7s;
    }
    .sobre-mi {
        height: 40vh;
    }
    ul li a span{
       font-size: 20px;
    }
    .imagen img{
        width: 470px;
        height: 470px;
        border-radius: 50%;
    } 
    .contenedor h2 {
        font-size: 60px;
    }
    .contenedor h3{
        font-size: 40px;
    }
     .contenedor p{
       
        font-size: 22px;
    }
    .grafico {
        width: 70%;
        height: 300px;
    }
    .grafico img{
        position: absolute;
        width: 300px;
        height: 300px;
        border-radius: 50%;
    }  
    .grafico:hover img{
        left: 75%;
        height: 300px;
        }
   .grafico .contenido h2{
        font-size: 28px;
    }
    .sobre-mi{
        height: 50vh;
    }
    .proyectos h2{
        color: #c4bebe;
        font-size: 40px;
        font-weight: 500;
        margin: 0px 20px;
    }
    .contacto{
       height: 40vh;
    }
    .contacto .hablemos h2{
        font-size: 60px;
    }
    .cuentame p{
        color: #c4bebe;
        font-size: 28px;
    }
}
@media screen and (max-width:769px) and (min-width:480px) {
    .btn-arriba span{
      
        left: 88%;
        width: 30px;
        height: 30px;
    }
    .btn-arriba span:hover{
        opacity: 1;
    }
    .inicio{
        height: 7vh;
    }
    .inicio img{
        width: 160px;
        height: 60px;
        transition: all .8s;
    }
    .menu-foto{
        display: flex;
        flex-direction: column;
        height: 70vh;
      }
      ul{
        display: flex;
        padding-left: 0px; 
        margin: 2px;
    }
      ul li a{
        padding: 1px 8px;
        margin: 30px 1px;
        font-weight: 500;
      }
      ul li a span{
       font-size: 20px;
       font-weight: 600;
       padding-top: 8px;
    }
    .imagen img{
        width: 330px;
        height: 330px;
        border-radius: 50%;
        object-fit: cover;
        margin-top: 20px;
    }
    
    .grafico {
        width: 80%;
        height: 250px;
    }
    .grafico img{
        position: absolute;
        width: 250px;
        height: 250px;
        border-radius: 50%;
        left: 70%;
    }  
    .grafico:hover img{
        left: 75%;
        height: 250px;
        }
   .grafico .contenido{
    left: 27px;
    opacity: 1;
   }
   .grafico .contenido h2{
        font-size: 26px;
    }
    .grafico .contenido p{
        font-size: 22px;
    }
    .sobre-mi{
        height: 50vh;
    }
    .contenedor h2 {
        font-size: 60px;
    }
    .contenedor h3{
        font-size: 35px;
    }
     .contenedor p{
        font-size: 20px;
    }
    .proyectos{
        height: 20vh;
        
    }
    .proyectos h2{
        color: #c4bebe;
        font-size: 35px;
        font-weight: 500;
        margin: 0px 20px;
    }
    .boton .contact1 {
        position: relative;
        display: inline-block;
        margin: 15px;
        padding: 15px 20px;
        text-align: center;
        font-size: 16px;
        font-weight: 600;
        }
    .contacto{
        height: 45vh;
     }
     .contacto .hablemos h2{
        font-size: 50px;
     }
     .contacto .cuentame p{
        font-size: 18px;
     } 
     .boton .contact {
        position: relative;
        display: inline-block;
        margin: 15px;
        padding: 15px 20px;
        text-align: center;
        font-size: 16px;
        font-weight: 600;
        }
     .darkmode span{
        color: #1c1c1c;
        font-size: 20px;
      }
}
@media screen and (max-width:568px) and (min-width:480px){
    .grafico img{
        left: 76%;
    }
    .grafico .contenido{
        left: 0;
        opacity: 1;

    }
    .contenedor p{
        font-size: 18px;
    }
   
}

@media screen and (max-width: 480px) 
{
    html{
        scrollbar-width: thin;
    }
    .btn-arriba span{
      
        left: 88%;
        width: 30px;
        height: 30px;
    }
    .btn-arriba span:hover{
        opacity: 1;
    }
    .inicio{
    display: flex;
    justify-content: center;
    align-items: center;
    }
    .inicio img{
        
        width: 100px;
        height: 50px;
        margin: 20px 20px ;
    }
    .menu-foto{
        display: flex;
        flex-direction: column;
        height: 60vh;
       }
     ul{
       display: flex;
       padding-left: 0px; 
       margin: 2px;
       }
     ul li a{
       padding: 1px 15px;
       margin: 30px 0 ;
       font-weight: 400;
       }
      ul li a::before{
       
        width: 100%;
        height: 80%;
       }  
      ul li a span{
       font-size: 14px;
       font-weight: 600;
       padding-top: 8px;
       }
   .imagen img{
        width: 240px;
        height: 240px;
        border-radius: 50%;
        object-fit: cover;
       }
    .sobre-mi{
        height: 50vh;
       }
    .contenedor h2 {
        font-size: 40px;
       }  
    .contenedor h3{
        font-size: 25px;
       }
    .contenedor p{
        font-size: 14px;
       }
    .servicios{
      height: 85vh;
      display: flex;
      flex-wrap: wrap;
    }
    .grafico {
       width: 70%;
       height: 100px;
       margin: 10px 20px;
       }
    .grafico img{
       position: absolute;
       width: 100px;
       height: 100px;
       border-radius: 50%;
       left: 70%;
       }  
   .grafico:hover img{
      left: 75%;
      height: 100px;
       }
   .grafico .contenido{
    opacity: 1;
    left: 10px;
   }
   .grafico .contenido h2{
      font-size: 18px;
      margin: 4px 0px;
       }
   .grafico .contenido p{
      margin: 0px;
      font-weight: 300;
      font-size: 14px;
    }
    .proyectos h2{
        color: #c4bebe;
        font-size: 30px;
        font-weight: 500;
        margin: 0px 20px;
    }
   
    .boton .contact1 {
        position: relative;
        display: inline-block;
        margin: 15px;
        padding: 10px 15px;
        text-align: center;
        font-size: 14px;
        font-weight: 600;
        }
   .contacto{
      height: 50vh;
      }
   .contacto .hablemos h2{
      font-size: 35px;
      }
   .contacto p{
      font-size: 16px;
      }
   .boton .contact {
      position: relative;
      display: inline-block;
      margin: 15px;
      padding: 10px 15px;
      text-align: center;
      font-size: 14px;
      font-weight: 600;
      }
    .darkmode span{
      color: #1c1c1c;
      font-size: 12px;
      }
}
@media screen and (max-width: 370px){
  html{
        scrollbar-width: thin;
    }
   
    .inicio{
    display: flex;
    justify-content: center;
    align-items: center;
    }
    .inicio img{
        
        width: 100px;
        height:70px;
        margin: 20px 20px ;
    }
    .menu-foto{
        display: flex;
        flex-direction: column;
        height: 50vh;
       }
    ul li a span{
        font-size: 10px;
        font-weight: 900;
        padding-top: 6px;
        }
        .contacto{
            height: 50vh;
            }
         .contacto .hablemos h2{
            font-size: 35px;
            }
         .contacto p{
            font-size: 14px;
            }
    .darkmode span{
            color: #1c1c1c;
            font-size: 10px;
            }
}