/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600&family=Poppins:wght@400;500&display=swap');

:root{
    --header-height: 3.5rem;


    /* -- COLORS -- */
    /* HSL color mode */
    --title-color: hsl(0, 0%, 95%);
    --text-color: hsl(0, 0%, 70%);
    --text-color-light: hsl(0, 0%, 60%);
    --body-color: hsl(0, 0%, 0%);
    --container-color: hsl(0, 0%, 8%);


    /* -- FONT AND TYPOGRAPHY -- */
    --body-font: 'Poppins', sans-serif;
    --second-font: 'Montserrat', sans-serif;

    /* .5rem = 8px, 1rem = 16px, 1.5rem = 24px ... */
    --biggest-font-size: 1rem;
    --h1-font-size: 2rem;
    --h2-font-size: 3rem;
    --h3-font-size: 1rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;
    --smaller-font-size: .75rem;

    /* font weight */
    --font-regular: 400;
    --font-medium: 500;
    --font-semi-bold: 600;

    /* -- z index -- */
    --z-tooltip: 10;
    --z-fixed: 100;
}

/* font size for large devices */
@media screen and (min-widht: 1152px) {
    :root{
        --biggest-font-size: 5.5rem; 
        --h1-font-size: 2.5rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
        --smaller-font-size: .813rem;
    }
}

    /* Efectos */

.ri-fire-line{
    /* Primer resplandor */
    text-shadow: 0px 0px 30px #FFF,
    /* Parte de luz */
    4px 4px 10px #ffd000,
    -4px 4px 10px #ffd000,
    /* Subida del fuego */
    0px -4px 10px #FF7A00,
    0px -8px 10px #FF6300,
    0px -8px 10px #FF4400,
    /* Azuleo de la llama */
    0px 0px 0px #0A7BFF;

    color: #FFF;
}

/* -- BASE -- */
*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html{
    scroll-behavior: smooth;
}

body,
button,
input{
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    color: var(--text-color);
}

body{
    background-color: var(--body-color);
}

button,
input{
    outline: none;
    border: none;
}


h1,h2,h3,h4{
    color: var(--title-color);
    font-size: var(--second-font);
    font-weight: var(--font-semi-bold);
}

ul{
    list-style: none;
}

a{
    text-decoration: none;
}

img{
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
}

/* -- REUSABLE CSS CLASSES -- */
.container{
    max-width: 1120px;
    margin-inline: 1.5rem;
}

.grid{
    display: grid;
    gap: 1.5rem;
}

.section{
    padding-block: 5rem 1rem;
}

.section__title{
    text-align: center;
    font-size: var(--h1-font-size);
    margin-bottom: 2.5rem;
}

.main{
    overflow: hidden; /* para animación ScrollReveal */
}

.button{
    margin-top: 3rem;
    margin-bottom: 1rem;
}


/* -- HEADER & NAV -- */
.header{
    position: fixed;
    width: 100%;
    background-color: transparent;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
}

.nav{
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo{
    color: var(--title-color);
    font-size: 1.25rem;
}

.nav__toggle,
.nav__close{
    display: flex;
    font-size: 1.23rem;
    color: var(--title-color);
    cursor: pointer;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1023px){
    .nav__menu{
        position: fixed;
        top: -100%;
        left: 0;
        background-color: hsla(0, 0%, 0%, .3);
        width: 100%;
        padding-block: 4rem;
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px); /* For safari */
        transition: top .4s;
    }
}

.nav__list{
    text-align: center;
    display: flex;
    flex-direction: column;
    row-gap: 2.5rem;
}

.nav__link{
    position: relative;
    color: var(--title-color);
    font-family: var(--second-font);
    font-weight: var(--font-medium);
}

.nav__link::after{
    content: '';
    width: 0%;
    height: 2px;
    background-color: var(--title-color);
    position: absolute;
    left: 0;
    bottom: -.5rem;
    transition: width .3s;
}

.nav__link:hover::after{
    width: 70%;
}

.nav__close{
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

/* Show manu */
.show-menu{
    top: 0;
}

/* Add blur to header */
.blur-header::after{
    content: '';
    position: absolute;
    width: 1000%;
    height: 100%;
    background-color: hsla(0, 0%, 0%, .3);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    top: 0;
    left: 0;
    z-index: -1;
}

/* Active link */
.active-link::after{
    width: 70%;   
}

/* -- HOME -- */
.home{
    position: relative;
}

.arg__logo{
    display: block;
    margin: auto;
    width: 10%;
    margin-bottom: .7rem;
}

.home__bg{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 750px;
    object-fit: cover;
    object-position: center;
    border-radius: 0px;
}

.home__shadow{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1000px;
    background: linear-gradient(180deg,
                hsla(0, 0%, 0%, 0) 50%,
                hsl(0, 0%, 0%) 80%);
}

.home__container{
    position: relative;
    padding-top: 3rem;
    row-gap: 3rem;
}

.home__data{
    text-align: center;
}

.home__subtitle{
    font-size: var(--h3-font-size);
    margin-bottom: .5rem;
}

.home__title{
    font-size: var(--biggest-font-size);
    font-weight: var(--font-semi-bold);
    margin-bottom: 1rem;
}

.home__description{
    margin-bottom: 2rem;
    color: var(--title-color);
    font-size: 1rem;
    font-weight: var(--font-regular);
}

.home__cards{
    grid-template-columns: 240px;
    justify-content: center;
}

.home__card{
    position: relative;
    overflow: hidden;
}

.home__card-img{
    transition: transform .4s;

}

.home__card-shadow{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(180deg,
                hsla(0, 0%, 0%, 0) 50%,
                hsl(0, 0%, 0%) 125%);
}

.home__card-title{
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    font-size: var(--h3-font-size);
    z-index: 1;
}

.home__card:hover .home__card-img{
    transform: scale(1.2);
}



/* -- BUTTON -- */
.button{
    background-color: transparent;
    padding: 1.25rem 1.5rem;
    color: var(--title-color);
    border: 1px solid #FFF;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    column-gap: .5rem;
    font-family: var(--second-font);
    font-weight: var(--font-medium);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px); /* for safari */
}

.button i{
    font-size: 1.25rem;
    transition: transform .4s;
    font-weight: initial;
}

.button:hover i{
    transform: translateX(.25rem);
}

/* -- ABOUT -- */
.about__container{
    row-gap: 3rem;
}

.about__data{
    text-align: center;
}

.about__description{
    margin-bottom: 2rem;
}

.about__image{
    position: relative;
    justify-self: center;
    overflow: hidden;
}

.about__img{
    width: 300px;
    transition: transform .4s;
}

.about__shadow{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
                hsla(0, 0%, 0%, 0) 50%,
                hsl(0, 0%, 0%) 125%);
}

.about__image:hover .about__img{
    transform: scale(1.2);
}

/* -- MENÚ -- */

.menu__data{
    text-align: center;
}

.menu__subtitle{
    text-align: center;
    font-weight: var(--font-medium);
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* cards */
.cards__container{
    display: grid;
    place-items: center;
    margin-inline: 1.5rem;
    padding-block: 5rem;
}

.card__container{
    display: grid;
    row-gap: 3.5rem;
}

.card__article{
    position: relative;
    overflow: hidden;
}

.card__img{
    width: 328px;
    border-radius: 1.5rem;
}

.card__data{
    width: 300px;
    background-color: #000000eb;
    border: 1px solid #FFF;
    padding: 1.5rem 2rem;
    box-shadow: 0 8px 24px hsla(0, 0%, 0%, .15);
    border-radius: 1rem;
    position: absolute;
    bottom: -9rem;
    left: 0;
    right: 0;
    margin-inline: auto;
    opacity: 0;
    transition: opacity 1s 1s;
}

.card__description{
    display: block;
    font-size: var(--small-font-size);
    margin-top: .25rem;
    text-align: center;
}

.card__title{
    margin-bottom: 1rem;
    font-size: var(--h3-font-size);
    font-weight: 500;
    color: #fff;
    text-align: center;
}

/* Naming animations in hover */
.card__article:hover .card__data{
    animation: show-data 1s forwards;
    opacity: 1;
    transition: opacity .3s;
}

.card__article:hover{
    animation: remove-overflow 2s forwards;
}

.card__article:not(:hover){
    animation: show-overflow 2s forwards;
}

.card__article:not(:hover) .card__data{
    animation: remove-data 1s forwards;
}

/* card animation */
@keyframes show-data{
    50%{
        transform: translateY(-10rem);
    }
    100%{
        transform: translateY(-7rem);
    }
}

@keyframes remove-overflow{
    to{
        overflow: initial;
    }
}

@keyframes remove-data{
    0%{
        transform: translateY(-7rem);
    }
    50%{
        transform: translateY(-10rem);
    }
    100%{
        transform: translateY(.5rem);
    }
}

@keyframes show-overflow{
    0%{
        overflow: initial;
        pointer-events: none;
    }
    50%{
        overflow: hidden;
    }
}

/* -- ANFITRION -- */
.anfitrion{
    position: relative;
    margin-top: -4rem;
    margin-bottom: 4rem;
}

.anfitrion__image{
    position: absolute;
    overflow: hidden;
}

.anfitrion__img{
    width: 100%;
    height: 333px;
    object-fit: cover;
    object-position: center;
}

.anfitrion__shadow{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
                hsl(0, 0%, 0%) 5%,
                hsla(0, 0%, 0%, 0) 40%,
                hsla(0, 0%, 0%, 0) 60%,
                hsl(0, 0%, 0%) 92%);
}

.anfitrion__content{
    position: relative;
    padding-top: 16rem;
    text-align: center;
    row-gap: 2.5rem;
}

.anfitrion__user{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    column-gap: .8rem;
}

.anfitrion__perfil{
    width: 50px;
    border-radius: 50%;
}

.anfitrion__name{
    font-size: var(--normal-font-size);
    color: var(--title-color);
    font-style: italic;
}

/* -- FOOTER -- */
.footer{
    background-color: rgb(34, 34, 34);
}

.footer__container{
    padding: 2rem 0 2rem;
}

.footer__link{
    color: #FFF;
    margin-bottom: 1rem;
}

.footer__img{
    margin: auto;
    display: block;
    width: 5rem;
    margin-bottom: 1rem;
}

.footer__list{
    display: flex;
    justify-content: center;
    column-gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer__social{
    display: flex;
    justify-content: center;
    column-gap: 1rem;
}

.footer__social-link{
    color: #FFF;
    padding: .25rem;
    font-size: 1.2rem;
    display: inline-flex;
}

.footer__copy{
    display: block;
    margin-top: 2rem;
    color: #FFF;
    text-align: center;
    font-size: var(--smaller-font-size);
    font-weight: 200;
}

/* -- scroll bar -- */
::-webkit-scrollbar{
    width: 0.6rem;
    border-radius: .5rem;
    background-color: hsl(0, 0%, 10%);
}

::-webkit-scrollbar-thumb{
    border-radius: .5rem;
    background-color: hsl(0, 0%, 20%);
}

::-webkit-scrollbar-thumb:hover{
    background-color: hsl(0, 0%, 30%);
}

/* -- SCROOL-UP -- */
.scrollup{
    position: fixed;
    right: 1rem;
    bottom: -50%;
    background-color: hsla(0, 0%, 100%, .1);
    padding: 6px;
    display: inline-flex;
    color: var(--title-color);
    font-size: 1.25rem;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px); /* for safari */
    border-radius: 5px;
    z-index: var(--z-tooltip);
    transition: bottom .4s, transform .4s;
}

.scrollup:hover{
    transform: translateY(-.25rem);
}

/* Show scrollup */
.show-scroll{
    bottom: 3rem;
}


/* -- BREAKPOINTS -- */
/* For small devices */
@media screen and (max-width: 500px){
    .container{
        margin-inline: 1rem;
    }

    .home__title{
        text-align: center;
        font-size: 2.5rem;
    }

    .card__detail h3{
        font-size: 1.2rem;
    }

    .menu__data{
        text-align: center;
        margin-bottom: -3rem;
    }
    .menu__click{
        text-align: center;
        font-weight: 10px;
        font-style: italic;
        margin: 1rem
    }
    
    .cards__container{
        margin-inline: 1rem;
    }
    .card__data{
        width: 95%;
        padding: 1rem;
    }
}

/* For medium devices */
@media screen and (min-width: 576px){
    .home__container,
    .about__container,
    .anfitrion__content,
    .menu__container,
    .join__container{
        grid-template-columns: 380px;
        justify-content: center;
    }

    .menu__data{
        margin-bottom: -3rem;
    }
    .menu__click{
        text-align: center;
        font-weight: 10px;
        font-style: italic;
        margin: 2rem
    }
}

@media screen and (min-width: 768px){
    .button{
        margin-top: 1rem;
    }

    .home__cards{
        grid-template-columns: repeat(2, 240px);
    }

    .about__container{
        grid-template-columns: repeat(2, 350px);
        align-items: center;
    }
    .about__data h2{
        font-size: 1.8rem;
    }
    .about__description{
        margin-bottom: 1rem;
        padding-left: 1rem;
    }

    .menu__data{
        margin-bottom: -3rem;
    }
    .menu__subtitle{
        font-size: 1rem;
    }
    .card__container{
        grid-template-columns: repeat(2, 1fr);
        column-gap: 2.5rem;
    }

    .anfitrion__img{
        width: 100vw;
    }
}

/* For large devices */
@media screen and (min-width: 1023px){
    .nav__close,
    .nav__toggle{
        display: none;
    }
    .nav__list{
        flex-direction: row;
        column-gap: 4rem;
    }

    .about__container{
        display: grid;
        gap: 9rem;
    }
    .about__img{
        width: 50rem;
    }

    .menu__subtitle{
        font-size: 1rem;
    }

    .anfitrion__description{
        font-size: 1.1rem;
    }
    .anfitrion__img{
        height: 440px;
    }

    .footer__social-link{
        font-size: 1.30rem;
    }
}

@media screen and (min-width: 1150px){
    .container{
        margin-inline: auto;
    }

    .section{
        padding-block: 7rem 2rem;
    }


    .nav{
        height: calc(var(--header-height) + 1.5rem);
        margin-left: 20rem;
    }
    .ri-fire-line{
        font-size: 1.4rem;
        margin-left: -10rem;
    }

    .blur-header::after{
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px); /* For safari */
    }

    .home__container{
        grid-template-columns: center;
        justify-content: center;
        row-gap: 4rem;
        padding-top: 6.5rem;
    }
    .home__shadow{
        height: 980px;
    }
    .home__data{
        text-align: center;
        width: 480px;
        margin-left: -2rem;
    }
    .home__title{
        font-size: var(--h2-font-size);
    }
    .home__description{
        margin-bottom: 2.5rem;
    }
    .home__cards{
        grid-template-columns: repeat(4, 300px);
    }

    .button{
        column-gap: 1rem;
    }

    .about__container{
        grid-template-columns: 400px 460px;
        column-gap: 8.5rem;
        padding-block: 1rem;
    }
    .about__description{
        margin-bottom: 3rem;
    }
    .about__img{
        width: 460px;
    }
    .about__reserv{
        font-size: 1.3rem;
        margin-bottom: 3rem;
    }

    .menu__section{
        margin-top: -30rem;
        margin-bottom: -50rem;
    }
    .cards__container{
        height: 100vh;
    }
    .menu__data{
        margin-bottom: -6rem;
    }
    .menu__subtitle{
        font-size: 1.2rem;
    }
    .menu__click{
        margin-bottom: 4rem;
    }
    .card__container{
        grid-template-columns: repeat(3, 1fr);
        column-gap: 3rem;
    }
    .card__img{
        width: 320px;
    }
    .card__data{
        width: 316px;
        padding-inline: 2.5rem;
    }

    .anfitrion__img{
        height: 600px;
    }
    .anfitrion__content{
        padding-top: 25rem;
    }
}







