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

    /*========== Colors ==========*/
    /*Color mode HSL(hue, saturation, lightness)*/
    --first-color: hsl(230, 75%, 56%);
    --title-color: hsl(230, 75%, 15%);
    --text-white: #fff;
    --text-color: hsl(230, 12%, 40%);
    --container-color: hsl(230, 100%, 97%);
    --border-color: hsl(230, 25%, 80%);

    /*========== Font and typography ==========*/
    /*.5rem = 8px | 1rem = 16px ...*/
    --body-font: "Syne", sans-serif;
    --h2-font-size: 1.25rem;
    --normal-font-size: .938rem;

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

    /*========== z index ==========*/
    --z-fixed: 100;
    --z-modal: 1000;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1023px) {
    :root {
        --h2-font-size: 1.5rem;
        --normal-font-size: 1rem;
    }
}


html {
    scroll-behavior: smooth;
}

/*=============== REUSABLE CSS CLASSES ===============*/

.main {
    position: relative;
    height: 100vh;
}

.main__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -1;
}

.search,
.login {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-modal);
    background-color: hsla(230, 75%, 15%, .1);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    /* For safari */
    padding: 8rem 1.5rem 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s;
}

.search__close,
.login__close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 1.5rem;
    color: var(--title-color);
    cursor: pointer;
}

/*=============== HEADER & NAV ===============*/
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-fixed);
}

.nav-navbar {
        height: calc(var(--header-height) + 1rem);
        /* height: var(--header-height); */
    display: flex;
    align-items: center;
}

.nav__logo {
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
    transition: color .4s;

    position: relative;
    width: 9rem;
    margin: 0 auto;
}

.nav__actions {
    display: flex;
    align-items: center;
    column-gap: 1rem;
    position: absolute;
}

.nav__toggle,
.nav__close {
    font-size: 2rem;
    color: #347438;
    cursor: pointer;
    transition: color .4s;
    margin-left: 0.5em;
}
.nav__close i{
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
}

/* :is(.nav__logo, .nav__search, .nav__login, .nav__toggle, .nav__link):hover {
    color: var(--first-color);
} */


.nav__list {
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
    margin-left: 23%;
    list-style: none;
    padding-left: 0px;
}

.nav__link {
    color: var(--text-white);
    transition: color .4s;
    font-family: "Cocogoose",serif;
    font-size: 1.2em;
}
.nav__link:hover, .nav__link:visited, .nav__link:active{
    color:#fff;
}

.nav__close {
    position: absolute;
    top: 1.15rem;
    right: 1.5rem;
}



/*=============== SEARCH ===============*/
.search__form {
    display: flex;
    align-items: center;
    column-gap: .5rem;
    background-color: var(--container-color);
    box-shadow: 0 8px 32px hsla(230, 75%, 15%, .2);
    padding-inline: 1rem;
    border-radius: .5rem;
    transform: translateY(-1rem);
    transition: transform .4s;
}

.search__icon {
    font-size: 1.25rem;
    color: var(--title-color);
}

.search__input {
    width: 100%;
    padding-block: 1rem;
    background-color: var(--container-color);
    color: var(--text-color);
}

.search__input::placeholder {
    color: var(--text-color);
}

/* Show search */
.show-search {
    opacity: 1;
    pointer-events: initial;
}

.show-search .search__form {
    transform: translateY(0);
}
.fondo-menu-transparente{
    background: rgba(30, 30, 30, 0.088);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 30, 30, 0.588);
    z-index: 2;
}

.item-hidden-sm{
    display: none;
}
.ml-20per{
    margin-left: 26%;
}

/*.link-social-network-header{
    cursor: pointer;
    color: #fff;
    text-decoration: none;
    border-radius: 70%;
    padding: 5px;
    font-size: 2em;
    position: relative;
}*/
.link-social-network-header{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    padding: 10px;
    border: 1px solid #fff;
    font-size: 2em;
}

.link-social-network-header:hover, .link-social-network-header:visited, .link-social-network-header:active{
    color: #fff;
}
.link-social-network-header.yt-icon-menu::after {
    left: -5px;
}

.link-social-network-footer{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    padding: 10px;
    border: 1px solid #fff;
    font-size: 1.5em;
}

.social-bottom-menu-sm{
    margin-top: 20vh;
}
/* Navigation for mobile devices */
@media screen and (max-width: 1023px) {
    .link-social-network-header{
        width: 30px;
        height: 30px;
    }
    .background-darling{
        background: #4c9b4b;
        background-image: linear-gradient(to bottom, #4c9b4b, #63a748, #7ab245, #92bd41, #acc73e);
    }
    .nav__menu {
        position: fixed;
        top: 0;
        right: 100%;
        box-shadow: 0 8px 16px hsla(230, 75%, 32%, .15);
        width: 100%;
        padding-block: 4.5rem 4rem;
        transition: right .4s;
        height: 100vh;
    }
    .nav__link::before{
        content: '-';
        color: #347438;
    }
}

/* Show menu */
.show-menu {
    right: 23%;
}

.initial-margin-element-body{
    padding-top: 6.5rem;
}

.nav__logo {
    width: 14rem;
}

/* For large devices */
@media screen and (min-width: 1023px) {
    .link-social-network-footer{
        width: 60px;
        height: 60px;
        font-size: 3.2em;
    }
    .nav-navbar {
        height: calc(var(--header-height) + rem);
        justify-content: space-between;
    }
    .initial-margin-element-body{
        padding-top: 6.5rem;
    }
    
    .item-hidden-sm{
        display: initial;
    }
    
    .nav__link {
        font-size: 1em;
    }

    .logo-menu-responsive{
        display: none;
    }
  
    .item-hidden-lg{
        display: none;
    }
    .fondo-menu-transparente{
        display: none;
    }
 

    .nav__menu {
        margin-left: auto;
    }

    .nav__list {
        flex-direction: row;
        column-gap: 1rem;
        margin-left: 0%;
    }

    .login__form {
        padding: 3rem 2rem 3.5rem;
    }

    .nav__logo {
        width: 18rem;
        margin-top: 0;
    }    
    .nav__link::after{        
        content: '|';
        margin-left: 7px;
    }


    .link-social-network-header{
        font-size: 1.2em;
        margin-right: 0.4em;
    }
    
    .link-social-network-header::after {
        top: 4px;
        left: -2px;
        width: 29px;
        height: 28px;
    }

    .link-social-network-header.yt-icon-menu::after {
        left: 1px;
    }
}
@media screen and (min-width: 1110px) {
    .nav__list{
        margin-left: 1.4rem;
    }
    .nav__link {
        font-size: 1em;
    }
}
@media screen and (min-width: 1110px) and (min-height: 924px){
    .nav__link {
        font-size: 1.1em;
    }
}
@media screen and (min-width: 1150px) {
    .container {
        margin-inline: auto;
    }
}
@media  (min-width: 1510px) {
    .nav__list{
        margin-left: 2rem;
    }
    .nav__link {
        font-size: 1.1em;
    }
    .nav__logo {
        width: 20rem;
    }
}


/* #back to top arrow
================================================== */

.scroll-to-top{
	position: fixed;
	bottom: 30px;
	right: 30px;
	opacity: 0;
	visibility: hidden;
	width: 10px;
	height: 40px;
	z-index: 251;
	background-repeat: no-repeat;
	background-position: top center;
	background-size: 10px 40px;
	cursor: pointer;
	background-image: url('http://www.ivang-design.com/svg-load/parallax/arrow-up.png');
	transform: translateY(-15px);
	-webkit-transition: all 250ms linear;
	transition: all 250ms linear; 
}
.scroll-to-top:hover{
	bottom: 32px;
}
.scroll-to-top.active-arrow{
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
