* {
    box-sizing: border-box;
}

div, body, img, span, h1, h2, h3, h4, p, ul, li, a, html {
    margin: 0;
    padding: 0;
}

body {
    width: 100%;
    --bg-color: #2D2D2D;
    --text-color: #F5F5F5;
    background-color: var(--bg-color);
    font-family: 'Playfair Display';
    scroll-behavior: smooth;
}

body, html {
    overflow-x: hidden;
}


/* ----- HOME SECTION ----- */

.background {
    width: 100%;
    height: 115%;
    position: absolute;
    z-index: -10;
    background-position: center;
    background-size: cover;
    filter: blur(4px);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0));
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0));
}

.trago {
    width: 30%;
    position: absolute;
    bottom: -1rem;
    left: 10%;
    animation: aparecer-trago 2s .5s both;
    z-index: 10;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0));
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0));
    user-select: none;
}

.title_container {
    width: 100%;
    height: 90dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.h1__container {
    overflow: hidden;
}

h1 {
    color: ghostwhite;
    font-size: clamp(5rem, 10rem, 15rem);
    position: static;
    animation: aparecer-texto 2s both;
    position: relative;
    text-shadow: 0 0 15px black;
    user-select: none;
}

h1::before {
    content: 'Restobar';
    position: absolute;
    top: -10px;
    left: 0;
    font-size: 3.5rem;
}

.home__wrapper {
    overflow: hidden;
    height: 100dvh;
    width: 100%;
}

@keyframes aparecer-texto {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes aparecer-trago {
    from {
        transform: translateX(-150%) rotate(10deg);
        opacity: 0;
    }
    to {
        transform: translateX(0) rotate(10deg);
        opacity: 1;
    }
}

@keyframes aparecer {
    from {
        opacity: 0;
        scale: .8;
    }
    to {
        opacity: 1;
        scale: 1;
    }
}

@keyframes titilar {
    0% {
        filter: drop-shadow(none);
    }
    8% {
        filter: drop-shadow(0 0 3px white);
    }
    20% {
        filter: drop-shadow(0 0 8px white);
    }
    55% {
        filter: drop-shadow(0 0 14px white);
    }
    60% {
        filter: drop-shadow(0 0 18px white);
    }
    70% {
        filter: drop-shadow(0 0 15px white);
    }
    86% {
        filter: drop-shadow(0 0 10px white);
    }
    92% {
        filter: drop-shadow(0 0 6px white);
    }
    100% {
        filter: drop-shadow(0 0 15px white);
    }
}

.coctelera {
    position: absolute;
    right: 8%;
    width: 250px;
    bottom: 20%;
    z-index: 300;
    animation: 
    titilar 2.5s both infinite alternate,
    aparecer 1.2s .5s both
}


/* ----- ABOUT SECTION ----- */

.about__section {
    display: grid;
    grid-template-columns: .75fr 1.25fr;
    width: 100%;
    height: 100dvh;
    margin-top: 10%;
    place-content: center;
    background-color: #1A1A1A;
    z-index: -60;
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0));
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0));
}

p {
    line-height: 1.5;
    font-size: 1.2rem;
    margin: 2rem 1rem;
    color: var(--text-color);
    text-align: justify;
    letter-spacing: .06rem;
    z-index: 20;
}

.info-place {
    max-width: 80%;
    opacity: 0;
    z-index: 200;
    scale: .9;
}

.image-place__container {
    width: 100%;
    height: 100%;
    display: grid;
    place-content: center;
    z-index: -20;
}

.p1secret {
    display: none;
}


/* ----- ABOUT SECTION 2 ----- */

.about__section2 {
    width: 100%;
    height: 100dvh; 
    background-color: #3A1F1F;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

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

.info__about2 {
    align-items: end;
}

.about__section2__p {
    text-align: center;
    width: 80%;
    opacity: 0;
}

.trago2 {
    width: 400px;
    z-index: 900;
    animation: titilar 2.5s both infinite alternate
}


/* ----- VIDEO SECTION ----- */

.video__section {
    width: 100%;
    height: 110dvh;
    background-color: #18122B;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 20;
}

.video__container {
    width: 100%;
    height: 75%;
    background-color: #100c1b;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: .2rem 0;
    padding-left: 5%;
    overflow: hidden;
}

video {
    width: fit-content;
    height: 100%;
    opacity: .8;
}



/* ----- FOOD SECTION ----- */

.food__section {
    width: 100%;
    height: 110dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.food__info {
    width: 50%;
    margin-left: 1rem;
    position: absolute;
    left: -50%;
    opacity: 0;
    scale: .7;
}

.food__title h2, .food__description p {
    font-family: 'Montserrat', sans-serif;
    color: #F5F5F5;
}

.food__title h2 {
    font-size: 5rem;
}

.food__description p {
    font-size: 2rem;
    margin-top: 10%;
}

@keyframes rodar {
    from {
        transform: rotate(0);
    }
    to {
        transform: rotate(360deg);
    }
}

.pizza__container {
    width: 50%;
    position: absolute;
    right: -70%;
    opacity: 0;
    scale: .7;
    top: 5%;
}

.pizza {
    animation: rodar 16s both infinite linear;
    position: absolute;
    width: 100%;
    right: -70%;
    top: 5%;
}




/* ----- CONTACT SECTION ----- */

.contact__section {
    width: 100%;
    height: 40dvh;
    position: relative;
    background-color: #8D5323;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    overflow: hidden;
}

.contact__h2 {
    position: absolute;
    z-index: 10;
    font-size: 3.8rem;
    top: -80px;
}

.facebook-logo, .phone-logo {
    width: 5.5rem;
}

.facebook-logo {
    margin-right: 5rem;
}

.info__about1_phone, .info__about3_phone, .bartender, .licor, .cacao, .lluvia-cacao {
    display: none;
}

/* ----- FOOTER SECTION ----- */

footer {
    background-color: #71411b;
}

footer p {
    color: #100c1b;
    margin: 0;
}

/* ----- MEDIA QUERIES ----- */

@media screen and (max-width: 700px) {
    .coctelera {
        display: none;
    }

    h1 {
        font-size: 5rem;
    }
    
    h1::before {
        font-size: 2rem;
    }

    .trago {
        top: 55%;
        left: 10%;
        width: 60%;
    }

    p {
        line-height: 1.4;
        font-size: 1.2rem;
        margin: 2rem 1rem;
        color: var(--text-color);
        text-align: center;
        letter-spacing: .05rem;
        z-index: 20;
    }
    
    .info-place {
        max-width: 100%;
        opacity: 0;
        z-index: 200;
    }

    .about__section {
        display: flex;
        width: 100%;
        height: 100dvh;
        margin-top: 10%;
        justify-content: center;
        align-items: center;
        background-color: #1A1A1A;
        z-index: -60;
        mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0));
        -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0));
    }

    .p1, .image-place__container, .trago2, .p2, .info__about1, .info__about3 {
        display: none;
    }

    .p1secret, .info__about1_phone, .info__about3_phone, .cacao, .lluvia-cacao {
        display:block;
    }

    .info__about1_phone {
        margin-top: 3rem;
    }

    .about__section2 {
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: 1.35fr .30fr 1.35fr;
        place-content: center;
    }

    .info__about3_phone {
        place-content: center;
        margin: auto;
        margin-bottom: 30%;
    }

    .video__section {
        height: 100dvh;
    }

    .video__container {
        height: 70%;
        padding-left: 0;
    }
    
    video {
        width: 100%;
        height: 100%;
        opacity: .8;
    }

    .bartender {
        display: block;
        z-index: 200;
        position: absolute;
        bottom: -40px;
        width: 100dvw;
        height: 30dvh;
        animation: titilar 5s both infinite alternate;
        opacity: 0;
        scale: .85;
        mix-blend-mode:difference;

    }

    .about__section {
        position: relative;
        z-index: -190;
    }

    .info__about1_phone p, .info__about3_phone p {
        background-color: #2d1919;
        padding: .4rem;
        border-radius: 20px;
        box-shadow: 0 0 10px black;
        scale: .7;
        opacity: 0;
        z-index: 200;
    }

    .licor {
        display: block;
        width: 80%;
        max-width: 350px;
        position: absolute;
        bottom: -5%;
        z-index: 100;
        left: 10%;
        opacity: 0;
        scale: .7;
    }

    .info__about2 {
        position: relative;
    }

    .cacao {
        width: 6rem;
        position: absolute;
        filter: blur(.3px);
    }

    .cacao1 {
        left: 0;
        rotate: 50deg;
        scale: .6;
        bottom: -70%;
        opacity: 0;
    }

    .cacao2 {
        top: 100%;
        rotate: -25deg;
        scale: .65;
        opacity: 0;
    }

    .cacao3 {
        opacity: 0;
        rotate: 80deg;
        right: 15%;
        bottom: -70%;
        scale: .75;
        z-index: 2000;
    }

    .lluvia-cacao {
        position: absolute;
        width: 100%;
        top: -50%;
        scale: .6;
        opacity: 0;
    }

    .info__about3_phone {
        z-index: 900;
    }

    .pizza__container {
        width: 700px;
        top: 50%;
        right: -80%;
    }

    .pizza {
        top: 50%;
        right: -80%;
    }

    .food__title h2 {
        font-size: 3rem;
    }
    
    .food__description p {
        font-size: 1.3rem;
        margin-top: 10%;
        text-align: start;
    }

    .food__section {
        height: 100dvh;
        overflow: hidden;
    }

    .food__info {
        top: 15%;
        width: 80%;
    }

    .contact__h2 {
        font-size: 2.8rem;
    }

    .phone-logo, .facebook-logo {
        margin: .5rem;
        width: 60px;
    }


}

@media screen and (min-width: 500px) and (max-width: 800px) {
    .licor {
        left: 20%;
    }
}


@media screen and (max-width: 331px) {
    h1 {
        font-size: 4rem;
    }

    h1::before {
        font-size: 1.5rem
    }
}


@media screen and (max-height: 730px) {
    .p-phone {
        font-size: 1rem;
    }
}

@media screen and (max-height: 640px) {


    .cacao {
        width: 4rem;
    }

    .food__title h2 {
        font-size: 2.35rem;
    }

    p {
        font-size: .85rem;
    }

    .p-phone {
        font-size: .7rem;
    }

    .food__description p {
        font-size: 1rem;
    }
}

@media screen and (min-width:801px) and (max-width: 1000px) {
    .info-place {
        max-width: 95%;
    }

    .p1, .p2, .p3, .about__section2__p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 770px) {
    footer p {
        font-size: .6rem;
    }
}