/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;900&display=swap');

/*=============== VARIABLES CSS ===============*/
:root {
    --header-height: 3.5rem;

    /*========== Colors ==========*/
    --title-color: hsl(250, 8%, 15%);
    --text-color: #545260;
    --body-color: #f8f7fd;
    --container-color: #ffffff;
    --shadow: hsla(0, 0%, 15%, .1);
    --scroll-bar-color: hsl(250, 12%, 90%);
    --scroll-thumb-color: hsl(250, 12%, 80%);
    --first-color: #c79142;
    --first-color-alt: #d99938;

    /*========== Font and typography ==========*/
    --body-font: 'Poppins', sans-serif;
    --biggest-font-size: 4rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;

    /*========== Font weight ==========*/
    --font-medium: 500;
    --font-bold: 600;

    /*========== Margenes Bottom ==========*/
    --mb-0-5: .5rem;
    --mb-0-75: .75rem;
    --mb-1: 1rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;
    --mb-2-5: 2.5rem;
    --mb-3: 3rem;

    /*========== z index ==========*/
    --z-tooltip: 10;
    --z-fixed: 100;
}

/* Responsive typography */
@media screen and (max-width: 992px) {
    :root {
        --biggest-font-size: 2rem;
        --h1-font-size: 1.5rem;
        --h2-font-size: 1.25rem;
        --h3-font-size: 1rem;
        --normal-font-size: .938rem;
        --small-font-size: .813rem;
        --smaller-font-size: .75rem;
    }
}

/*=============== BASE ===============*/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body,
button,
input {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
}

body {
    background-color: var(--body-color);
    color: var(--text-color);
}

h1, h2, h3, h4 {
    color: var(--title-color);
    font-weight: var(--font-medium);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
}

button,
input {
    border: none;
    outline: none;
}

/*=============== LAYOUT ===============*/
.container {
    max-width: 968px; /* ANCHO DEL CONTEENEDOR */
}

.grid {
    display: grid;
}

/*=============== HEADER SECTION ===============*/
.header{
    width: 100%;
    background: var(--container-color);
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    height: calc(var(--header-height) + 1.5rem);/* se tiene que dejar espacios para la suma*/
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    box-shadow: 0px 1px 10px var(--shadow);

}
/* Boton de Nav, aparece cuando la pantalla es pequeña*/
.header .header__button__nav i{
    display: none;
}

.nav__logo{
    font-weight: var(--font-bold);
    letter-spacing: 1px;
    display: flex;
    column-gap: .25rem;
    align-items: center;
    justify-items: center;
    color: var(--title-color);
}

.nav__logo .nav__logo__icon{
    margin-top: 0.7rem;
    font-size: 2.25rem;
}

.nav__logo .nav__logo__txt{
    display: inline;
    font-size: 1.25rem;
}

.nav__menu .nav__list{
    display: flex;
    align-items: center;
    column-gap: 3rem;
}

.nav__link{
    color: var(--title-color);
    font-weight: var(--font-medium);
    font-size: var(--normal-font-size);
    transition: .3s;
}

.nav__link:hover{
    color: var(--first-color);
}
/* Active link - Circulo que aparece debajo de cada titulo en el header*/
.active-link{
    position: relative;
}
.active-link::before{
    content: '';
    position: absolute;
    bottom: -.75rem;
    left: 45%;
    width: 5px;
    height: 5px;
    background: var(--title-color);
    border-radius: 50%;
}
.nav__close{
    color: var(--title-color);
    font-size: 2rem;
    position: absolute;
    top: .9rem;
    right: 1.25rem;
    cursor: pointer;
    display: none;
}
/*=============== MAIN ===============*/
/*========== HOME SECTION ==========*/

.home__cabecera{
	text-align: center;
    background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top:calc(var(--header-height) + 1.5rem);
}
 .contenido__cabecera{
    width: 100%;
    background-color: #00000080;
    padding: 300px 300px;
}
/*=============== FOOTER ===============*/
.footer{
    position:relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer__copy{
    display: flex;
    text-align: center;
    font-size: var(--smaller-font-size);
    margin-top: 1rem;
}
/*=============== SCROLL UP ===============*/
.scrollup{
    position: fixed;
    right: 1rem;
    bottom: -30%;
    background: var(--first-color);
    border-radius: .4rem;
    display: inline-flex;
    padding: .25rem;
    z-index: var(--z-tooltip);
    opacity: .8;
    transition: .4s;
}
.scrollup:hover{
    opacity: 1;
}
.scrollup__icon{
    font-size: 1.5rem;
    color: #fff;
}

/* Show Scroll Up*/
.show-scroll{
    bottom: 3rem;
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar{
    width: .6rem;
    background: var(--scroll-bar-color);
    border-radius: .5rem;
}
::-webkit-scrollbar-thumb{
    background: var(--scroll-thumb-color);
    border-radius: .5rem;
}
/*=============== BREAKPOINTS ===============*/

/* For medium devices */
@media screen and (max-width: 1090px) {
    .header .nav__menu .nav__list{
        column-gap: 1rem;
    }
}
@media screen and (max-width: 767px) {
    body{
        margin: var(--header-height) 0 0 0;
    }

    .nav__menu{
        position: fixed;
        background-color: var(--body-color);
        top: 0;
        right: -100%;
        width: 100%;
        height: 100%;
        padding: 6rem 2rem 3.5rem;
        transition: .3s;
    }
    .header .header__button__nav i{
        background: var(--first-color);
        padding-right: 0rem;
        margin-right: 0;
        height: 40px;
        width: 40px;
        border-radius: 50%;
        font-size: 1rem;
        cursor: pointer;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .nav__list{
        flex-direction: column;
        row-gap: 2rem;
    }
    .nav__toggle,
    .nav__close{
        display: block;
    }
    /*Show menu*/
    .show-menu{
        right: 0;
    }

    .footer__copy{
        margin-top: 4.5rem;
    }
}
