/* 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);
}





/* HEADLINE STYLES */


.headline{
    margin-bottom: 50px;
    text-align: center;
    align-content: center;
}

h1 {
    font-size: 5em;
    color: black;
    font-weight: 600;
    margin: 0%;
}

h2 {
    font-size: 2em;
    color: black;
    font-weight: 400;
}


@media screen and (max-width: 1030px) {
    h1 {
        font-size: 3.5em;
    }
    
    h2 {
        font-size: 1.7em;
    }
}

@media screen and (max-width: 440px){
    h1 {
        font-size: 2.7em;
    }
}





/*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;
    }

}




/* HOME STYLES */


.home {
    padding: 120px 0px;
    background-image: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.9),
        rgba(0, 0, 0, 0.8)
    ), url(../Images/Ensana-_InstagramTemplates.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    align-content: center;
    justify-content: center;
}

.home-container{
    padding: 0px 200px;
    color: #fff;
    text-align: center;
}

.home-container h1{
    color: #fff;
    padding: 0px 0px 30px 0px;
}

.home-container p{
    font-size: 1.2em;
    border-top: solid;
    border-top-color: #7F4CFB;
    margin: 0px 200px;
    padding: 30px 0px 0px 0px;
}

.home .btn-container{
    padding-top: 30px;
}



@media (max-width: 1177px){
    .home-container{
        padding: 0px 100px;
    }

    .home-container h1{
        font-size: 4.5em;
    }
    
    .home-container p{
        margin: 0px 100px;
    }
}


@media (max-width: 999px){
    
    .home-container h1{
        font-size: 3.5em;
    }
    
    .home-container p{
        font-size: 1.1em;
        margin: 0px 0px;
    }
}

@media (max-width: 598px){

    .home-container{
        padding: 0px 50px;
    }
    
    .home-container h1{
        font-size: 2.5em;
    }

    .home-container p{
        font-size: 0.9em;
    }
}




/* ABOUT ME STYLES */


.about-me{
    background-color: #fff;
    text-align: left;
}

.about-me-container{
    padding: 100px 200px;
    display: flex;
    flex-direction: row;
}


@media screen and (max-width: 1245px) {
    .about-me-container {
        padding: 100px 100px;
    }
}


@media (max-width: 999px){

    .about-me{
        text-align: center;
    }

    .about-me-container{
        flex-direction: column;
    }
}

@media screen and (max-width: 480px) {
    .about-me-container{
        padding: 100px 50px;
    }
}




.about-me h1{
    color: #7F4CFB;
    font-size: 4em;
}

.about-me h2{
    width: 50%;
    color: #7F4CFB;
    font-size: 1.8em;
    padding: 10px 0px;
}

.about-me p{
    color: black;
    width: 70%;
    padding: 20px 0px;
}


@media screen and (max-width: 1300px){
    .about-me h1 {
        font-size: 3.5em;
    }

    .about-me h2 {
        font-size: 1.7em;
    }
}


@media (max-width: 999px){

    .about-me h2{
        width: 100%;
    }

    .about-me p{
        width: 100%;
    }
}

.about-me-text{
    align-items: center;
    align-content: center;
}


@media  (max-width: 999px){

    .about-me-text{
        margin-bottom: 50px;
    }

    .about-me-text .btn{
        margin-top: 50;
    }

    .about-me h1{
        font-size: 3.5em;
    }

    .about-me h2{
        font-size: 1.7em;
    }
}


@media (max-width: 548px){
    .about-me h1{
        font-size: 2.8em;
    }

    .about-me h2{
        font-size: 1.6em;
    }
}

@media (max-width: 416px){

    .about-me h2{
        font-size: 1.3em;
    }
}

@media (max-width: 399px){
    .about-me h1{
        font-size: 2.5em;
    }
}








.white-space{
    border-bottom: solid;
    border-bottom-color: #7F4CFB;
    max-width: 35%;
}


@media (max-width: 999px){

    .white-space{
        max-width: 100%;
    }
}



.about-me-img{
    align-items: center;
    align-content: center;
}

.about-me-img img{
    max-width: 400px;
    border-radius: 30px;

}

@media screen and (max-width: 1300px){

    .about-me-img img{
        max-width: 350px;
    }
}

@media (max-width: 549px){
    .about-me-img img{
        max-width: 200px;
    }
}

@media (max-width: 399px){
    .about-me-img img{
        max-width: 180px;
    }
}





/* WHITE SPACE STYLES */


.white-space-portoflio{
    border-bottom: solid;
    border-bottom-color: #7F4CFB;
    margin: 50px 200px 0px 200px;
}


@media (max-width: 999px){

    .white-space-portoflio{
        margin: 50px 100px 0px 100px;
    }
}




/* MAIN STYLES */


main {
    padding: 100px 200px 120px;
    align-content: center;
}


@media (max-width: 1030px) {
    main {
        padding: 100px 100px;
    }
}




/*GRID STYLES*/

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 20px;
}


@media screen and (max-width: 1030px) {

    .grid-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media screen and (max-width: 399px) {

    .grid-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}




.item img {
    width: 100%;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.4);
}

.item img:hover{
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.4);
    opacity: 0.7;
}


.item {
    position: relative;
}

.item:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,1), rgba(0,0,0,1));
    border-radius: 30px;
}

.item:hover h3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    font-size: 30px;
    opacity: 5; /* Mostrar el texto "Quiero comer" */
}

.item h3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    font-size: 30px;
    opacity: 0; /* Ocultar el texto "Quiero comer" por defecto */
}

.item:hover img {
    opacity: 0.4;
}




/* 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;
    }
}
