:root {
    --main-color: #000000;
    --white-color: #ffffff;
    --layout-width: 1200px;
    --layout-space: 6em 0em;
    --min-width: 200px;

}


/*CSS RESET*/

main {
    overflow: hidden;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}


img {
    height: 100%;
    width: 100%;
}


.btn {

    background-color: #637077;
    text-decoration: none;
    color: #f8f2e6;

    padding: 1em;
    border-radius: 5px;
    border: none;
}


.btn:hover {
    background-color: #bb7c4c;
    color: #f4e0b7;
    text-decoration: none;
    padding: 1em;

    transition: color 0.3s ease;
}

a {
    text-decoration: none;
    color: #637077;
}

a:hover {
    text-decoration: none;
    color: #90a9b0;
}


h1 {
    font-size: 5rem;
}


button:hover {
    cursor: pointer;
}


/*/CSS RESET*/





/* Header */

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #637077;
    padding: 2em 4em;
}

.header__block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    width: 100%;
}


.header__logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header__logo img {
    max-width: 180px;
}


.header__nav {
    display: flex;
}


.header__nav ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;

    gap: 1em;
}

.header__nav li a {
    color: var(--white-color);
    text-decoration: none;

    transition: color 0.3s ease;
}

.header__nav li a:hover {
    color: #f4e0b7;
    transition: color 0.3s ease;
}


.header__menuPopup {
    background: none;
    border: none;
    display: none;
}

/* /Header */







/* Eslogan */

.index__slogan {
    display: flex;
    background: url('../IMG/design.jpg');
    background-position: center;
    background-size: cover;
    align-items: center;
    justify-content: center;
}

.index__slogan__block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    width: 100%;

    height: 100vh;
}

.index__slogan__content {
    display: flex;
    flex-direction: column;
    background-color: rgba(249, 246, 233, 0.9);

    padding: 4em;
    align-items: start;
    justify-content: center;
    border-radius: 10px;

    gap: 1em;
}


.slogan {
    display: flex;
    background: url('../IMG/wallpaper.jpg');
    background-repeat: no-repeat;
    background-size: cover;


    align-items: center;
    justify-content: center;


    height: 70vh;
}

.slogan__block {
    display: flex;

}

.slogan__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4em;

    justify-content: center;
}

/* /Eslogan */






/* Sobre mi index*/

.aboutme {

    display: flex;
    justify-content: center;
    background-color: #3a464d;
    flex-wrap: wrap;
    padding: 4em;
}

.aboutme__block {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;

    gap: 2em
}


.aboutme__content {
    display: flex;
    flex-direction: column;
    flex: 1;

    align-items: start; 
    gap: 2em;

    color:#f8f4ed
    
}

.aboutme__block img {
    max-width: 500px;
    border-radius: 10px;
}

/* /Sobre mi index */





/* Sobre mi*/

.about__diferent {
    display: flex;
    background: url('../IMG/sobremi.jpg');
    background-position: center;
    background-size: cover;
    align-items: center;
    justify-content: center;
}


.about__card__diferent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    width: 100%;

    height: 100vh;
}


.about__content__diferent {
    display: flex;
    flex-direction: column;
    background-color: rgba(249, 246, 233, 0.9);

    padding: 4em;
    align-items: start;
    justify-content: center;
    border-radius: 10px;

    gap: 1em;
}



/* Mis estudios*/
.about__studies {
    display: flex;
    justify-content: center;
    background-color: #3a464d;
    flex-wrap: wrap;
    padding: 4em;
}


.about__studies__block {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;

    gap: 2em
}

.about__studies__content {
    display: flex;
    flex-direction: column;
    flex: 1;

    align-items: start; 
    gap: 2em;

    color:#f8f4ed
}



.about__talk {
    display: flex;
    justify-content: center;
    background-color: #f4e0b7;

    padding: 4em;
}



.about__talk__block {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;

    gap: 2em
}


.about__talk__content {
    display: flex;
    flex-direction: column;
    flex: 1;

    align-items: start; 
    gap: 1em
}



.about__img {
    max-width: 500px;
    border-radius: 10px;
}

/* /Mis estudios*/
/* /Sobre mi*/




/* Servicios */


.services__block {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    background-color: #f4e0b7;
    padding: 4em;
}

.services__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--min-width), 1fr));

    gap: 4em;
}

.services__card {
    display: flex;
    flex-direction: column;

    justify-content: space-between;
    gap: 2em;
}

.services__card img {
    border-radius: 10px;

    width: 100%;
    height: auto;

    object-fit: cover;
}

.services__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;
    gap: 1em;
}

/* /Servicios */





/* Proyectos */


.portfolio {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #90a9b0;
    padding: 4em;
}

.portfolio__block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;


    padding: 4em;
    gap: 2em;
}

.portfolio__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--min-width), 1fr));

    gap: 2em;
}


.portfolio__card {
    flex-grow: 1;
    flex-basis: 0;

    display: flex;
    flex-direction: column;

    gap: 1em;
}

.portfolio__content {
    display: flex;
    flex-direction: column;
    align-items: center;

    flex-grow: 1;
    gap: 1em;
}

.portfolio__content img {

    object-fit: cover;

    border-radius: 10px;
}



.titulo {
    display: flex;
    align-items: center;
    justify-content: center;

    color: #f9fcfd;


    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio__content:hover .titulo {
    opacity: 1;
}



/* /Proyectos */









/* Contacto*/


.contact {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background-color: #c7ced1;
    padding: 4em;   


}


.contact__block.layoutBlock {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;

    gap: 2em;

    flex-grow: 1;
    flex-basis: 0;

}


.contact__form {

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1em;
    padding: 2em;

    flex-grow: 2; 
    flex-basis: 0;

    height: 100vh;
}



input {
    border: none;
    border-bottom: solid 2px #90a9b0;
    background-color: #c7ced1;
    width: 100%;
    padding: 1em;

    color: #3a464d;
}


form {
    display: flex;
    flex-direction: column;
    gap: 1em;
}


.form__row {
    display: flex;
    gap: 1em;
}

.form__row span {
    flex-grow: 1;
}


.form__row--checkbox input {
    width: 16px;
}

.contact img {
    max-width: 500px;
    border-radius: 10px;
}

/* /Contacto*/



/* Contacto indice*/

.index__iconos {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f4ed;

    padding: 4em;
}

.index__block {
    display: flex;
    flex-direction: column;

    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    width: 100%;

    gap: 1em;
}

.index__card {
    display: flex;

    align-items: center;
    gap: 1em;
}

.index__text {
    display: flex;
}

/* /Contacto*/





/* Footer */

.footer {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f4e0b7;
    padding: 2em 4em;
}


.footer__block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    width: 100%;
}

.footer__logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer__logo img {
    max-width: 180px;
}


.footer__nav ul {
    display: flex;
    align-items: center;
    list-style: none;

    gap: 1em;
}


.footer__nav li a {
    color: #3a464d;

    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer__nav li a:hover {
    color: #637077;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

/* /Footer */



/*Popup*/

.overlay {
    background-color: rgba(0, 0, 0, .4);
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;

    display: flex;
    justify-content: end;
}

.overlay.hidden {
    display: none;
}

.popup {
    background-color: #f8f4ed;
    height: 40%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.popup__close {
    position: absolute;
    top: 1em;
    right: 2em;
    background: none;
    border: none;
}


.popup__nav ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    align-items: center;

    gap: 1em;
}





@media (max-width: 800px) {
    h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 800px) {
    .index__slogan__block {
        display: flex;
        padding: 0;
        align-items: center;
    }
}

@media (max-width: 720px) {
    .header__nav {
        display: none;
    }

    .header__menuPopup {
        display: inline-block;
    }
}


@media (max-width: 800px) {
    .slogan {
        height: 30vh;
    }

}
