/********************custon propiets*****************************/
/*********************reset******************************************/
/*********************components***********************************************/


:root{
    --frist-color:#e72385d8;
    --text-color:#1f2937;
    --accent-bg: #fff;/*color de fondo de la pagina*/
    --comments-color:#1f2937;
    --white-alpha-color: rgba(240, 240, 240, 0.5);
    --second-color:#fff;
    --second-alpha-color: #30ccefd4;
    --third-alpha-color: rgba(60,179,113);
    --white-color: #fff;
    --font: Raleway, sans-serif;
    --link-color:rgb(174, 0, 255);
    --max-width:1200px;
    --header-height:4rem;
    
    
}



html{
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body{
    margin:0;
    background-color:var(--accent-bg);
    color: var(--text-color);
    overflow-x:hidden;/* ESTA PROPIEDAD ES PARA QUE NO SE MUESTRE LA BARRA DESPACIADORA*/
    font-size: 1.5em;
    font-family: 'Raleway', sans-serif;
}

a{
    color:var(--text-color);
    text-decoration:none;  
    
}

h4{
    color: #fff;
}

p{
    line-height: 1.5;
    
}
/*********************utilitis*********************************************************/
.bg-gray-light{
    background-color: var(--gray-light-color);
}
.box-shadow-1{
    box-shadow: 0.25rem 0.25rem 1rem rgba(0, 0, 0,0.25);
}
.section-title{
    border-top: thin solid var(--frist-color);
    border-bottom: thin solid var(--frist-color);
    margin: 2rem auto;
    padding: 5rem 1rem;
    width: 250px;
    text-align: center;
    color: var(--text-color);
}

.header{
    position: fixed;/*LA PRPIEDAD FIED ES PARA QUE SE QUEDE FIJA LA CABEZERA*/
    left:0;
    bottom: 0;
    z-index: 999; /*EL Z-INDEX ES PARA QUE SE POSICIONE POR ENSIMA DE TODO*/
    width: 100%;
    height:var(--header-height);
    background-color: var(--second-color);
}

.logo a{
    color:var(--white-color);
    font-weight: bold;
    font-size: 3rem;
    text-decoration: none;
   
}
.portfolio-car{
    position: relative;
    width: 90%;
    margin: 0 auto;
    display: block;
}
.portfolio-car-img{
    width: 90%;
    height: 90%;
    object-fit: cover;
}
.portfolio-car-info{
    position: absolute;
    top: 0;
    left: 0;
    width: 90%;
    height: 90%;
    padding: 1rem;
    background-color: var(--frist-color);
    color: var(--white-color);
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s ease-in-out;
}
.portfolio-car:hover .portfolio-car-info{
    opacity: 1;
    pointer-events: auto;

}
.portfolio-car-info > div{
    padding: 0.2rem;
    border: thin solid var(--white-color);
    width: 100%;
    height: 100%;
    
}
.portfolio-modal{
    padding: 1rem;
    display: flex;
    flex-direction: column;
    max-width: 350px;
    background-color: var(--white-color);
}
.portfolio-modal h3{
    padding: 5rem 0;
    margin: 1rem auto;
    color: var(--title-color);
    border-bottom: medium solid var(--frist-color);
}
.portfolio-details{
    display: grid;
    grid-template-columns: 40% 60%;
    grid-auto-rows: 2rem;

}
.portfolio-details b{
    color:var(--frist-color);

}
.service-card{
    margin: 1rem auto;
    padding: 1rem;
    text-align: center;

}
.service-card h3{
    color: var(--title-color);
}
.service-card svg{
    margin-bottom: 1.25rem;
    fill: var(--frist-color);
}
.social-midia a{
    padding: 0.4rem;
    text-decoration: none;
}
.social-midia svg {
    width: 1.5rem;
    height: 1.5rem;
}


@media screen and (min-width:768px){
    .contact-cards{
        display: grid;
        grid-template-columns: repeat(2,48%);
        justify-content: space-between;
    }

    .portfolio > .container{
        display: grid;
        grid-template-columns: repeat(2,50%);
    }
    .portfolio .section-title{
        grid-column: span 2;
    }
    .portfolio-modal{
        max-width: 800px;
        flex-direction: row;
    }
    .portfolio-info{
      margin-left: 1rem;
      align-self: center;
    }
    .services > .container{
        display: grid; 
        grid-template-columns: repeat(2,45%);
        justify-content: space-between;
        align-content: center;
    }
    .services .section-title{
        grid-column: span 2;
    }
    .footer{
        margin-bottom: var(--header-height);

    }

}

@media screen and (min-width:1024px){
    .about{
        display: grid;
        grid-template-columns:repeat(3,30%);
        justify-content: space-between;
        align-content: center;
        
    }
    .contact-cards{
        grid-template-columns: repeat(4,24%);
    }
    .footer{
        margin-bottom: 0;
    }
    .header{
        position:sticky;
        top:0;
        padding: 0.5rem;
        height: calc(var(--header-height)-0.5rem);
        
    }
    .portfolio > .container{
        
        grid-template-columns: repeat(3,1fr);
    }
    .portfolio .section-title{
        grid-column: span 3;
    }

    .services > .container{
        
        grid-template-columns:repeat(3,30%);
    
        
    }
    .services .section-title{
        grid-column: span 3;
    }
}

@media screen and (min-width:1024px){
    .blog{
        display: grid;
        grid-template-columns:repeat(2,40%);
        justify-content: space-between;
        align-content: center;

    }
}



/*galeria*/

.skills__list{
    padding: 0;
    padding: 0;
    list-style: none;

}
.skills__subtitle{
    display: flex;
    color: #000000;
    justify-content: space-between;

}
div.skills__bar{
    background-color: #999999;
    height: 4px;
}
.skills__bar::before{
    content: "";
    display: block;
    background-color: #000000;
    height: 100%;
}
.skills__bar__js::before{
    width: 70%;
}
.skills__bar__rs::before{
    width: 80%;
}
.skills__bar__db::before{
    width: 90%;
}
.skills__bar__cp::before{
    width: 45%;
}

.galeria svg{
    width: 100%;
    
    /*height: 150px;*/
    position: absolute;
    margin: auto;
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: center;


}

.galeria input[type=radio] {
    position: relative;
    bottom: calc(130px - 1.5em);
    top:47%;
    left:38%;
    cursor: pointer;
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: center;


    
  }
  
  .galeria input[type=radio]:nth-of-type(1):checked ~ svg:nth-of-type(1) {
    opacity: 1;
    animation: change-color 1.5s linear infinite;
    animation-duration: 5s;
    transform: translateX(0%);
    
  }
  .galeria input[type=radio]:nth-of-type(2):checked ~ svg:nth-of-type(2) {
    opacity: 1;
    animation: change 1.5s linear infinite;
    animation-duration: 5s;
    transform: translateX(0%);
    
  }
  .galeria input[type=radio]:nth-of-type(3):checked ~ svg:nth-of-type(3) {
    opacity: 1;
    animation: change 1.5s linear infinite;
    animation-duration: 5s;
  }
  .galeria input[type=radio]:nth-of-type(4):checked ~ svg:nth-of-type(4) {
    opacity: 1;
    animation: change-color 1.5s linear infinite;
    animation-duration: 5s;
  }

  

/*Utilites*/

.btn{
    border-radius: 5rem;
    padding: 1rem;
    display: inline;
    width: 200px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color:var(--second-color);
    background-color: var(--third-alpha-color);
}
.container{
    margin-left: auto;
    margin-right: auto;
    max-width: var(--max-width);
}
.grey-scale{
    filter: grayscale(1);
}
.text-left{
    text-align: left;
}
.text-center{
    text-align: center;
}
.text-right{
    text-align: right;
}
@media screen and (min-width:1024px){
    .full-lg-screen{
        width: 100%;
        min-height: 100vh;
    }
    .text-lg-centter{
        text-align: center;
    }
    .text-lg-left{
        text-align: left;

    }
    .text-lg-right{
        text-align: right;
    }
}
.avatar{
    border-radius: 50%;
    width: 150px;
    height: 150px;
}


/*Site styles*/
.about > article{
    margin-bottom: 1rem;
}
.contact-card{
    margin: 1rem auto;
    padding: 1rem;
    width: 100%;
    height: 144px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}
.contact-card >svg{
    width: 3rem;
    height: 3rem;
    fill: var(--frist-color);
}
.contact-card >small{
    margin-top: -3rem;
}

.footer{
   /* margin-bottom: var(--header-height);
    background-color: var(--third-alpha-color);*/
    padding: 0.5rem;
    color: var(--white-color);
     background-color: rgba(128, 30, 255, 0.877);
    text-align: center;
}

.header{
    height: var(--header-height);
    position: fixed;
    padding: 1rem;
    left: 0; /************Esta dos propiedades es para que la barrra de menu se posicione en la parte de abajo****************/
    bottom: 0;
    z-index: 999;
    width: 100%;
   color: var(--white-color);
    background-color: rgba(128, 30, 255, 0.877);

}

/************menu*******************/

.header >.container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

img{
    width: 100%;
    height: auto;
}


/*Components*/
/*******************Carrucel***********************/
@keyframes carrucelslides{
    0% {
        transform: translateX(-0%);
    }
    25% {
        transform: translateX(-25%);
    }
    50%{
        transform: translateX(-50%);
    }
    75%{
        transform: translateX(-75%);
    }
}

.carrucel{
    margin: 1rem auto;
    padding: 2rem 0;
    max-width: 700px;
    text-align: center;
    background-color: var(--carrucel-bg-color);
    overflow: hidden;
}
/*******************contact-form************************/
.contact-form{
    margin: 2rem auto;
    padding: 1rem;
    max-width: 800px;
}
.contact-form > *{
    padding: 0.5rem;
    margin: 1rem auto;
    display: block;
    width: 100%;
}
.contact-form input,.contact-form textarea{
    font-size: .85rem;
}
.contact-form input{
    border: 0;
    border-bottom: thin solid var(--second-color);
    padding-left: 0;
}
.contact-form textarea{
    padding-left: 0;
    border-bottom: thin solid var(--second-color);
    resize: none;
}
.contact-form input[type="submit"]{
    margin-top: 0;
    cursor: pointer;
    transition: all .5s ease-in-out;

}
  .contact-form input[type="submit"]:hover{
   /* opacity: .75%;*/
   color: var(--white-color);
    background-color: var(--frist-color);

}
.btn:hover{
    /* opacity: .75%;*/
    color: var(--white-color);
     background-color: var(--frist-color);
     cursor: pointer;
 
 }
.contact-form *::placeholder{
    color: var(--link-color);

}
.contact-form-response{
    padding: 1rem;
    width: 400px;
    text-align: center;
    background-color: var(--white-color);
}
.contact-form-response svg{
    margin-top: 2rem;
    width: 4rem;
    height: 4rem;
    fill:var(--frist-color);
}
.modal#gracias:target{
    opacity: 1;
    pointer-events: auto;
}
@media screen and (min-width:1024px) {
    .contact-form{
        display: grid;
        grid-template-columns: repeat(2,1fr);
        column-gap: 1rem;
    }
    .contact-form input.contact-form textarea{
        font-size: 1rem;
    }
    .contact-form textarea,.contact-form-loader{
        grid-column: span 2;
    }
    .contact-form input[type="submit"]{
        margin-left: 0;

    }
    
    
}

.carrucel .slides{
    padding-left: 0;
    width: 400%;
    display: flex;
    list-style: none;
    transition: transform 0.5s ease-in-out;
    animation: carrucel-slides 12s ease-in-out;
}
#slide-1:checked ~ .slides{
    transform: translateX(0%);
}
#slide-2:checked ~ .slides{
    transform: translateX(-25%);
}
#slide-3:checked ~ .slides{
    transform: translateX(-50%);
}
#slide-4:checked ~ .slides{
    transform: translateX(-75%);
}
#slide-1:checked ~ .slides-nav label#dot-1,
#slide-2:checked ~ .slides-nav label#dot-2,
#slide-3:checked ~ .slides-nav label#dot-3,
#slide-4:checked ~ .slides-nav label#dot-4{
background-color: var(--alpha-colr) ;   

}


.carrucel input{
    display: none;
}
.carrucel label{
    border:medium solid var(--frist-color);
    border-radius: 50%;
    margin: 0 0.25rem;
    display: inline-block;
    width: .75rem;
    height: .75rem;
    cursor: pointer;
}
/****************menu************************/
.menu-btn{
    outline: thin solid var(--frist-color);
    background-color: var(--second-color);
    border: 0;
    cursor: pointer;
    
}
.menu{
    position: fixed;
    bottom: var(--header-height);
    left: 0;  
    width: 100%;
   /* background-color: var(--second-alpha-color);*/
    pointer-events: none;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    bottom: 130px;
    opacity: 0;    
}



    .menu a{
     padding:1rem;
     font-size: 1.5rem;
     font-weight: bold;
     text-align: center;
     text-decoration: none;
     
 
    }
@media screen and (min-width:1024px){
    .menu-btn {
        display: none;
       
    }
    .menu {
        position:static;
        width: auto;
        flex-direction: row;
        opacity: 1;
        pointer-events: auto;
        
    }
    .menu a{
        padding: 0 1rem;
        
        
    }
    .menu a:last-child{
        padding-right: 0;
    }
    .menu a:hover{
        background-color: transparent;
    }
    
}
/***********************modal*********************/
.modal{

    position: fixed;
    z-index: 999;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: var(--black-alpha-color);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: all 1s;
}
.modal-content{
    position: relative;
}
.modal-close{
    position: absolute;
    top:1rem;
    right: 1rem;
}
.modal-close svg{
    width: 3rem;
    height: 3rem;
    fill: var(--frist-color);
}
.modal[id|="trabajo"]:target{
    opacity: 1;
    pointer-events: auto;

}


/**************homeImage****************/
.hero-image{
    background-image: var(--hero-image-home);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: var(--hero-attachment);
    width: 100%;
    margin-bottom: 3px;
   
}
.hero-image-opacity{
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
   /* color:var(--white-color);*/
    background-color: var(--hero-opacity-color);
    
}
.hero-image-title{
    font-size: 4.5vw;
    color:var(--hero-text-color);
}

.menu-btn svg{
    fill:var(--frist-color);
}



.menu.is-active{
    opacity: 1;
    pointer-events: auto;
}
.none{
    display: none;
}
.section{
    padding: 2rem 1rem;
}
.text-frist-color{
    color: var(--frist-color);
}


.menu a:hover{
    color:var(--white-color);
    background-color: var(--third-alpha-color);
}

/*****************************************blog css***************************************/

.flex-container{
    
    display: flex;
    width: 100%;
    margin-bottom: 5px;
    padding: 4px;
    

}
.flex-item {
margin-left: 7px;

}


@media screen and (min-width:1024px){
    .flex-container{
        display: flex;
        align-items: center;
        
    }
    .flex-item{
        flex:0 0 50%;
    }
    .flex-order-1{
        order: 1;
        flex-direction: column;
    }

}

/*************************************diseño grafico para redes sociales****************************************************/




#star1{
    
    transform:translate(15% ,5%);
    animation-name: mymove;
    animation-iteration-count: infinite;  
    animation-duration: 2s;
    
}


@keyframes mymove {
    0% { transform:translateY(17%);
    
    }  
    100% { transform: translateX(-1%); 
        opacity: 0;
    }  
    
    
  }



#Vector_19{
    transform:translate(90% , 12%);
    animation-name: move;
    animation-iteration-count: infinite;  
    animation-duration: 3s;

}

  @keyframes move {
    0% { transform:translateY(45%);
        
    } 

    
    100% { transform: translateX(12%);
        opacity: 0;
     }
    
    
  }

  #like1{
    transform:translate(22% , 23%);
    animation-name: movi;
    animation-iteration-count: infinite;  
    animation-duration: 3s;

  }

  @keyframes movi {
   100% { transform:translateY(-65%);
        
    } 

    
    0% { transform: translateX(-2%);
        
     }
    
    
  }


  #like2{
    transform:translate(22% , 23%);
    animation-name: movi;
    animation-iteration-count: infinite;  
    animation-duration: 3s;

  }

  @keyframes movi {
   100% { transform:translateY(-65%);
        
    } 

    
    0% { transform: translateX(-2%);
        
     }
    
    
  }







