/* MOBILE HEADER-NAV*/
* {                        
    padding: 0;
    font-family: Lexend Deca;
}





/* GENERAL STYLES */

body {
    margin: 0;
    font-family: Lexend Deca
}

a{
    text-decoration: none;
    color: #fff;
}

p{
    line-height: 1.6em;
}

.btn {
    display: inline-block;
    background-color: #7F4CFB;
    color: #fff;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    margin-top: 20px;
}

.btn:hover {
    background-color: #61CE70;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.4);
}





/* GENERAL PAGE STYLES */

.headline{
    margin-bottom: 100px;
    text-align: center;
}

h1{
    color: #7F4CFB;
    font-size: 4em;
}

h2{
    width: 50%;
    color: #7F4CFB;
    font-size: 1.8em;
    padding: 10px 0px;
}

@media screen and (max-width: 1190px) {
    h1 {
        font-size: 2.5em;
    }
    
    h2 {
        font-size: 1.5em;
    }
}


@media (max-width: 999px){
    h1{
        font-size: 3.5em;
    }
    
    h2{
        font-size: 1.7em;
    }    
}


@media screen and (max-width: 605px) {
    h1 {
        font-size: 2.5em;
    }
    
    h2 {
        font-size: 1.5em;
    }
}









/*HEADER SETTINGS*/

header{
    display: flex;
    flex-direction: row-reverse;
    background-color: #7F4CFB;
    padding: 30px 15px;
}




/* LOGO */

.logo{
    display:flex;
    align-items: flex-start;
    max-width: 300px;
    transition: background-color 0.5s ease;
}

header .default-logo{
    display: none;
}


header:hover .default-logo {
    display: none; 
}

header:hover .hover-logo {
    display: block; 
    width: 60%
}

.logo img {
    width: 60%; 
    transition: width 0.5s ease; 
}

header:hover .logo img {
    width: 60%; 
    transition: width 0.5s ease; 
}




/* NAV SETTINGS*/

.menu-wrap {                             
    height: 3em;                       
    background-color: #7F4CFB;            
    width: 100%;  
    font-size: 1.15em;                    
}

.menu-icon {
    font-size: 2em;                    
    color: #fff;                       
}

nav {
    position: absolute;                
    background-color: #7F4CFB;            
    top: 5.5em;
    padding-bottom: 20px;                        
    left:0;                            
    width: 100%;                     
}

nav ul {          
    margin: 0%;
    max-height: 0em;                   
    overflow: hidden;                  
    transition: max-height 0.5s;     
}
nav ul li a {
    display: block;                    
    padding: .75em 1.75em;             
    color: #fff;                       
    text-decoration: none;             
}

#checkbox {
    display: none;       
}

#checkbox:checked ~ nav ul {
    max-height: 11em;                  
}




/*SUB-MENU*/

.sub-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 4px 7px rgba(0, 0, 0, 0.2);
    border-top: 2px solid rgba(0, 0, 0.2);
    font-size: 18px;
    padding: 20px 5px;
    border-radius: 10px;
}

.portfolio:hover .sub-menu {
    display: flex;
    flex-direction: column; 
}

.sub-menu li {
    margin: 5px 0;
    display: flex;
    flex-direction: column;
}

.sub-menu li a {
    color: black;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 400;
}

.sub-menu li a:hover {
    color: #7F4CFB;
}




/* MEDIA QUERY */

@media (min-width: 1160px) {
    
    header{
        padding: 30px 100px;
    }
}



@media (min-width: 1000px) {             
    header{
        flex-direction: row;
        padding: 30px 200px;
        align-items: center;
        justify-content: space-between;
        text-align: center;
        margin: 0%;
        transition: background-color 0.5s ease;
        background-color: #fff;
    }

    header:hover {
        background-color: #7F4CFB;
    }

    header .default-logo{
        display: block;
    }

    header .hover-logo{
        display: none;
    }
    
    header:hover nav ul li a {
        color: #fff;
    }
    
    header:hover .sub-menu li a {
        color: black;
        text-decoration: none;
        font-size: 0.9em;
        font-weight: 400;
    }
    
    header:hover .sub-menu li a:hover {
        color: #7F4CFB;
    }

    .menu-wrap {                                                   
        background-color: transparent;     
        width: auto;                     
    }
    
    .menu-icon {
         display: none;                
    }
    
    nav {
        position: relative;
        top: -1em;                    
        background-color: transparent; 
        transition: background-color 0.5 ease;
        padding-bottom: 0%;                                            
        }
    
    nav:hover{
        color: #fff;
    }

    nav ul {
        display: flex;
        list-style-type: none;  
        max-height: 9.5em;           
        padding: 15px 0;
        background-color: transparent;
        overflow: visible;
    }
    nav ul li {
        display: inline-block;       

    }

    nav ul li a{
        color: #7F4CFB;
    }

}






/* MAIN STYLES */


main{
    padding: 100px 200px;
    flex-direction: row;
}


@media screen and (max-width: 1500px) {
    main {
        padding: 100px 100px;
    }
}

@media screen and (max-width: 807px) {
    main {
        padding: 100px 100px;
    }
}

@media (max-width: 480px){
    main {
        padding: 100px 50px;
    }
}





/*BLOCK 1 STYLES*/

.block-1{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    align-content: center;
}

.block-1 p{
    color: black;
    padding: 20px 0px;
    width: 80%;
}

.work-together-text{
    width: 500px;
}


@media (max-width: 999px){
    .block-1{
        flex-direction: column;
    }

    .block-1 p{
        width: 100%;
        text-align: center;
        margin: 0%;
        margin-bottom: 50px;
    }

    .work-together-text{
        width: 100%;
        text-align: center;
    }
}


@media (min-width: 1550px){

    .block-1{
        justify-content: space-evenly;
    }

}





/*FORM STYLES*/

.contact-form{
    width: 45%;
}

.form-row {
    display: flex;
    justify-content: space-between; 
}

.form-group {
    flex: 1; /* El ancho de las casillas se ajustará automáticamente */
    margin-bottom: 20px;
}


@media (max-width: 999px){
    .contact-form{
        width: 90%;
    }
}


@media screen and (max-width: 515px){
    .form-row{
        display: flex;
        flex-direction: column;
    }
}




#nombre {
    width: 90%;
}

label[for="apellido"] {
    margin-left: 10%;
}

#apellido {
    width: 90%;
    margin-left: 10%;
}


@media screen and (max-width: 515px){
    label[for="apellido"] {
        margin-left: 0;
    }

    #apellido{
        margin-left: 0;
    }    
}




#email {
    width: 90%;
}

label[for="phone"] {
    margin-left: 10%;
}

#phone {
    width: 90%;
    margin-left: 10%;
}


@media screen and (max-width: 515px){
    label[for="phone"] {
        margin-left: 0;
    }

    #phone{
        margin-left: 0;
    }    
}






.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group label span {
    color: #FF0000; /* Color rojo para el asterisco */
    padding-left: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

textarea {
    height: 150px; /* Ajusta la altura según tu preferencia */
    font-family: Lexend Deca;
}





.white-space-portoflio{
    border-bottom: solid;
    border-bottom-color: #7F4CFB;
    margin-top: 100px;
}





/*CONTACT STYLES*/

.contact{
    padding: 100px 0px;
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: space-around;
}

@media (min-width: 1550px){

    .contact{
        justify-content: space-evenly;
    }

}

.contact h2{
    width: auto;
}

.contact p{
    line-height: 0.9em;
}


.find-me a{
    color: black;
}

.find-me a:hover{
    text-decoration: underline;
}


.email-me a{
    color: black;
}

.email-me a:hover{
    text-decoration: underline;
}

.white-space-contact{
    border-bottom: solid;
    border-bottom-color: #7F4CFB;
}


@media screen and (max-width: 999px) {
    .contact{
        flex-direction: column;
        align-items: center;
        text-align: center;
        font-size: 100%;
    }
}


@media screen and (max-width: 382px) {
    .contact{
        font-size: 90%;
    }
}



/* FOOTER STYLES */


footer {
    display: flex;
    flex-direction: column;
    background-color: #7F4CFB;
    color: #fff;
    text-align: center;
    padding: 0px 200px;
    font-weight: 300;
}

footer p{
    font-size: 0.9em;
    line-height: normal;
}

footer a:hover{
    text-decoration: underline;
}

footer .container{
    display: flex;
    flex-direction: row;
    padding: 20px;
    justify-content: space-between;
    text-align: left;
}

footer .copyright{
    padding: 10px;
    border-top: solid;
}





@media (max-width: 999px) {
    footer{
        padding: 0px 100px;
    }
    footer .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 517px) {
    footer{
        padding: 0px 50px;
    }
}
