/* RESET */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
a{
    text-decoration: none;
}

/* START GLOBAL */
body._lock{
  overflow: hidden;
}
.page{
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
small,
a,
label,
button{
    font-family: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
}
h1,
h2,
h3,
h4,
h5,
h6{
    font-family: 'Russo One', sans-serif;
}   
p,
span,
small,
a,
label,
button{
    font-family: 'Anton', sans-serif;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 15px;
  height: 15px;
}

::-webkit-scrollbar-track-piece {
  background-color: var(--white-color);
}

::-webkit-scrollbar-thumb:vertical {
  height: 30px;
  background-color: var(--black-color);
}
/* START ROOT */
:root {
  --main-color: #d40000;
  --black-color: #4D4D4D;
  --black-o-color: rgba(77, 77, 77,0);
  --white-color: #D8D8d8;
  --white-o-color: rgba(216, 216, 216, .5);
}

/* END ROOT */

*::-moz-selection { color: #4D4D4D;  background: #D8D8d8; }
*::selection      { color: #4D4D4D;  background: #D8D8d8; }
/* END GLOBAL */

/* start HEADER */

header.page__header{
    height: 100vh;
    width: 100%;

    position: relative;
    
    background-image: url('../media/header__bg.jpg');
    background-size: cover;
    background-position: center;

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

.header__title{
    text-transform: uppercase;
    font-size: 8rem;
    letter-spacing: 4px;
    font-weight: bolder;
    color: var(--white-color);

    margin-top: -5rem;

    text-shadow: 4px 4px 4px var(--main-color);
    z-index: 2;
}

 /* START ANIMATE SVG */
.header__social{
    width: 100%;
    display: flex;
    justify-content: center;
    
    padding: 2rem;
}
.header__social > .img__svg{
    padding: 0 1rem;
    position: relative;
    overflow: hidden;
}

.header__social  svg {
    width: 50px;
    height: 50px;
    stroke: var(--black-color);
    fill: var(--white-color);

    transition: all .5s ease;
}

.header__social  svg:hover {
    cursor: pointer;

    stroke: var(--white-color);
    fill: var(--black-color);
    transform: rotate(-25deg);

    transition: all .5s ease;
}

.img__svg::before{
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--main-color);
    left: -110%;
    top: 90%;
    transform:rotate(45deg);
}
.img__svg:hover::before{
  -webkit-animation: animation_svg 0.5s 1 forwards ease-in-out;
          animation: animation_svg  0.5s 1 forwards ease-in-out;
}
@-webkit-keyframes animation_svg  {
  0%{
    left: -10%;
    top: 90%;
  }50%{
    left: 15%;
    top: -30%;
  }100%{
    top: 10%;
    left: 10%;
  }
}
@keyframes animation_svg  {
  0%{
    left: -10%;
    top: 90%;
  }50%{
    left: 15%;
    top: -30%;
  }100%{
    top: 10%;
    left: 25%;
  }
}

 /* end ANIMATE SVG */

.header__subtitle{
    font-size: 4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    color: var(--white-color);

    text-shadow: 2px 2px 2px var(--main-color);    
}

/* NAVIGATION */

/* start MOBILE ICON */
.header__menu .menu__icon{
    display: none;

    transition: all 1s ease;
}
@media (max-width: 767px) {
    /* NAV */
    .menu__list {
        position: fixed;
        top: 0;
        bottom: 0;
        width: 100%;
        background-color: var(--black-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        visibility: hidden;
        opacity: 0;
        z-index: -1;
        transform: translateX(100%);
        transition: all .3s ease;
    }
    
    .header__menu._active .menu__list{
        position: fixed;
        top: 0;
        bottom: 0;
        width: 100%;
        background-color: var(--black-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        visibility: visible;
        opacity: 1;
        z-index: 4;

        transform: translateX(0%);
    }
    .header__menu.fixed .image__logo {
        width: 10%;
    }
    .header__menu .mobile__menu{
        display: block;
        color: var(--white-color);
        font-size: 2rem;
    } 
    .header__menu .menu__icon {

        display: block;
        position: relative;
        width: 30px;
        height: 20px;
        cursor: pointer;
    }
    
    
    

    .header__menu .menu__icon > span,
    .header__menu .menu__icon::before,
    .header__menu .menu__icon::after {
        left: 0;
        position: absolute;
        height: 10%;
        width: 100%;
        background-color: var(--white-color);
    }
    .header__menu .menu__icon::before,
    .header__menu .menu__icon::after {
        content: "";
    }
    .header__menu.menu__icon::before {
        top: 0;
    }
    .header__menu .menu__icon::after {
        bottom: 0;
    }
    .header__menu .menu__icon > span {
        top: 50%;
        transform: scale(1) translate(0, -50%);
    }

    
    .header__menu._active .menu__list .menu__item{
        padding: 1rem 0;
    }
    .menu__icon.item__icon{
        position: absolute;
        top: 5%;
        right: 20%;
    }
    .menu__icon.item__icon::before,
    .menu__icon.item__icon::after {
        content: "";
    }
    .menu__icon.item__icon::before {
        transform: rotate(45deg) translate(5px, 7px);
    }
    .menu__icon.item__icon::after {
        transform: rotate(-45deg) translate(5px, -7px);
    }
    .menu__icon.item__icon > span {
        opacity: 0;
    }


}

/* end MOBILE ICON */

/* start ANIMATION NAV */

@-webkit-keyframes navbar__down {
  0% { transform: translateY(-100%);}

  100% { transform: translateY(0);  }
}

@keyframes navbar__down {
  0% { transform: translateY(-100%);}

  100% { transform: translateY(0);  }
}
/* end ANIMATION NAV */

.header__menu{
    margin: 0 auto;
    display: flex;
    padding: 0 30px;
    align-items: center;
    justify-content: space-around;
    min-height: 70px;

    position: absolute;
    bottom: 0;

    transition: all .3s ease-in-out; 
}
.header__menu.fixed{
    position: fixed;
    top: 0;
    width: 100%;
    height: 10vh;
    z-index: 100;

    -webkit-animation-name: navbar__down;

            animation-name: navbar__down;
  -webkit-animation-duration: 1s;
          animation-duration: 1s;

    background: linear-gradient(150deg, #3D3D3D 50%,#424242 50% );
}

.header__menu.fixed .image__logo{
    width: 5%;
}

.image__logo{
    width: 10%;

    cursor: pointer;
}

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

    transition: transform .3s ease;
}

/* START NAV ITEM AND LINK TRANSITION */
.menu__item{
    padding: 0 1rem;
    text-transform: uppercase;
    text-align: center;
    position: relative;
    text-decoration: none;
    display:inline-block;
    z-index:1 ;
}
.menu__link{
    color: var(--white-color);
    font-size: 2rem;
    font-weight: bold;
    
    text-shadow: 2px 2px 2px rgba(0 0 0 / .6);
    transition: all .3s ease;
   
}
/* .menu__item:hover > .menu__link{
    text-shadow: 3px 3px 3px rgba(0 0 0 / 1);
    border-bottom: 5px solid var(--main-color);
} */
.menu__item::before {
  content: '';
  position: absolute;
  left: 0px;
  bottom:0px;
  z-index:-1;
  width: 100%;
  height:100%;
  background: transparent;
  box-shadow: inset 0px 0px 0px var(--main-color);
  display: block;
  transition: all .5s ease-in-out;
}

.menu__item:hover::before{
 box-shadow: inset 300px 0px 0px var(--main-color);
}
/* END NAV ITEM AND LINK TRANSITION */

/* end NAVIGATION */

/* end HEADER */

/*start  MAIN */
main.page__main{
    background-color: var(--white-color);
    position: relative;
}
    /* start HERO SECTION */
.hero__section{
    display: flex;
    align-items: center;
    justify-content: space-around;

    height: 110vh;
    width: 100%;

    background-image: url('../media/main__bg.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}
.hero__title{
    width: 30%;
    font-size: 3rem;
    font-weight: bold;
    line-height: 1.2;

    color: var(--white-color);

    text-shadow: 3px 3px 3px var(--black-color);
}

button.hero__btn {
    position: relative;
    display: inline-block;
    cursor: pointer;
    outline: none;
    border: 0;
    text-decoration: none;
    background: transparent;
    padding: 0;
    width: 12rem;
    height: auto;
}
button.hero__btn .circle {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: relative;
  display: block;
  margin: 0;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--main-color);
  border-radius: 1.625rem;
}
button.hero__btn .circle .icon {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  background-color: var(--white-color);
}
button.hero__btn .circle .icon.arrow {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  left: 0.7rem;
  width: 1.4rem;
  height: 0.2rem;
  background: none;
}
button.hero__btn .circle .icon.arrow::before {
  position: absolute;
  content: "";
  top: -0.3rem;
  right: 0;
  width: 0.625rem;
  height: 0.625rem;
  border-top: 0.2rem solid var(--white-color);
  border-right: 0.2rem solid var(--white-color);
  transform: rotate(45deg);
}
button.hero__btn .btn__text {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.5rem 0;
  margin: 0 0 0 4rem;
  color: var(--white-color);
  text-shadow: 2px 2px 2px var(--main-color);
  font-size: 3rem;
  font-weight: bold;
  line-height: .7;
  text-align: center;
  text-transform: uppercase;
}
button:hover .circle {
  width: 180%;
}
button:hover .circle .icon.arrow {
  background: var(--white-color);
  transform: translate(1rem, 0);
}
button:hover .btn__text {
  color: var(--white-color);
  text-shadow: 2px 2px 2px var(--black-color);
}

/* end HERO SECTION */

/* start BLOG SECTION */
.blog__section{
    width: 100%;
    display: flex;

    background-color: var(--white-color);
}

.blog__img{
    flex: 1;
    padding: 2rem;

}
.blog__img > img{
    width: 100%;
    border-radius: 20px;
}

.blog__wrapper{
    flex: 1;
    min-height: 300px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}
.blog__title{
    color: var(--main-color);
    font-size: 3rem;
    font-weight: bold;
}
.blog__text{
    color: var(--black-color);
    font-size: 1rem;
    line-height: 1.1;
}
.blog__btn{
    outline: none;
    border: 3px solid transparent;
    border-radius: 20px;
    background-color: var(--main-color);
    color: var(--white-color);
    padding: 1rem 2rem;

    font-size: 1.5rem;
    text-transform: uppercase;

    cursor: pointer;
    transition: all .3s ease;
}
.blog__btn:hover{
    border: 3px solid var(--main-color);
    border-radius: 20px;
    background-color: var(--white-color);
    color: var(--main-color);

    transform: translateY(2px);
    box-shadow: 2px 2px 5px rgba(0 0 0 / .6);
}

.blog__btn:active{
    border: 3px solid var(--main-color);
    border-radius: 20px;
    background-color: var(--white-color);
    color: var(--main-color);

    transform: translateY(-2px);
    box-shadow: inset -1px -1px 1px rgba(0 0 0 / 1);
}
/* end BLOG SECTION */

/*start GALLERYSECTION */
.gallery__section{
    width: 100%;
}
.gallery__title{
    margin-top: 2rem;
    text-align: center;
    font-size: 3rem;
    font-weight: bold;
    color: var(--main-color);
    text-transform: uppercase;
}
.box__1 { grid-area: box__1; }

.box__2 { grid-area: box__2; }

.box__3 { grid-area: box__3; }

.box__4 { grid-area: box__4; }

.box__5 { grid-area: box__5; }

.box__6 { grid-area: box__6; }
.gallery__container {
  display: grid; 
  grid-template-columns: 1fr 1fr 1fr; 
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    "box__1 box__2 box__3"
    "box__4 box__5 box__6";  
  gap: 0px 0px; 
  width: 100%; 
  height: 100%; 
}

.grid__box{
    cursor: pointer;

    transition: -webkit-filter .3s ease;

    transition: filter .3s ease;

    transition: filter .3s ease, -webkit-filter .3s ease;
}
.grid__box:hover{
    -webkit-filter:invert(10%);
            filter:invert(10%)
}
.grid__box > img{
    width: 100%;
}

/*end GALLERY SECTION */

/*start NOSOTROS SECTION */

.about__section{
    width: 100%;
    display: flex;

    background-color: var(--white-color);
}

.about__img{
    flex: 1;
    padding: 2rem;

}
.about__img > img{
    width: 100%;
    border-radius: 20px;
}

.about__wrapper{
    flex: 1;
    min-height: 300px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}
.about__title{
    color: var(--main-color);
    font-size: 3rem;
    font-weight: bold;
}
.about__text{
    color: var(--black-color);
    font-size: 1rem;
    line-height: 1.1;
}
.about__btn{
    outline: none;
    border: 3px solid transparent;
    border-radius: 20px;
    background-color: var(--main-color);
    color: var(--white-color);
    padding: 1rem 2rem;

    font-size: 1.5rem;
    text-transform: uppercase;

    cursor: pointer;
    transition: all .3s ease;
}
.about__btn:hover{
    border: 3px solid var(--main-color);
    border-radius: 20px;
    background-color: var(--white-color);
    color: var(--main-color);

    transform: translateY(2px);
    box-shadow: 2px 2px 5px rgba(0 0 0 / .6);
}

.about__btn:active{
    border: 3px solid var(--main-color);
    border-radius: 20px;
    background-color: var(--white-color);
    color: var(--main-color);

    transform: translateY(-2px);
    box-shadow: inset -1px -1px 1px rgba(0 0 0 / 1);
}
/* end NOSOTROS SECTION */

/* start CONTACT SECTION */
.contact__section{
    display: flex;
    align-items: center;
    justify-content: center;

    height: 100vh;
    width: 100%;

    background-image: url('../media/contact__bg.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.contact__title{
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--white-color);
    text-shadow: 2px 2px 2px var(--black-color);
}
.contact__btn{
    outline: none;
    border: 3px solid transparent;
    border-radius: 20px;
    background-color: var(--main-color);
    color: var(--white-color);
    padding: 1rem 2rem;

    font-size: 1.5rem;
    text-transform: uppercase;

    cursor: pointer;
    transition: all .3s ease;
}
.contact__btn:hover{
    border: 3px solid var(--main-color);
    border-radius: 20px;
    background-color: var(--white-color);
    color: var(--main-color);

    transform: translateY(2px);
    box-shadow: 2px 2px 5px rgba(0 0 0 / .6);
}

.contact__btn:active{
    border: 3px solid var(--main-color);
    border-radius: 20px;
    background-color: var(--white-color);
    color: var(--main-color);

    transform: translateY(-2px);
    box-shadow: inset -1px -1px 1px rgba(0 0 0 / 1);
}
/* end NOSOTROS SECTION */

/* end MAIN */

/* start FOOTER */
.page__footer{
    background-color: var(--black-color);
    width: 100%;
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;

}
.footer__container{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}
.footer__box{
    height: 300px;
    padding: 3rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: center;
    align-content: center;
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;

    transition: all 1s ease-in-out;
}
.footer__box-1.do__anim{
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
.footer__box-2.do__anim{
    transition-delay: .2s;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
.footer__box-3.do__anim{
    transition-delay: .4s;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.footer__menu{
    padding: 1rem;
}
.footer__item{
    padding: .2rem;
    cursor: pointer;
}

.footer__link{
    color: var(--white-color);
    font-size: 1rem;
    text-transform: uppercase; 

    transition: all .2s ease;
}
.footer__item:hover>.footer__link {
    border-bottom: 3px solid var(--main-color);
    text-shadow: 1px 1px 1px rgba(0 0 0 / .5);
}

.footer__social{
    padding: 2rem;
}
.footer__social > img{

    -webkit-filter: invert(100%);
            filter: invert(100%);
    cursor: pointer;

    transition: all .5s ease;
}

.footer__social > img:hover{
    -webkit-filter: invert(0);
            filter: invert(0);

    transform: rotate(25deg);
}

.footer__logo{
    width: 50%;
}
.footer__title{
    font-size: 2rem;
    color: var(--white-color);
    font-weight: bold;
    text-transform: uppercase;
}

.footer__copy{
    width: 100%;
    text-align: center;
    padding: 1rem;

    color: var(--white-color);
}

/* end FOOTER */

                /* MEDIA QUERY */
@media screen and (max-width: 1200px){
    /* HEADER */
    .header__title{
        font-size: 5rem;
        letter-spacing: 2px;

        margin-top: -8rem;
    }
    .header__subtitle{
        font-size: 3rem;
    }

    /* HERO */
    .hero__section{
        display: flex;
        align-items: center;
        justify-content: space-evenly;
    }
    .hero__title{
        width: 40%;
    }
}

@media screen and (max-width: 1024px){
    /* HEADER */
    .header__title{
        font-size: 4rem;
        letter-spacing: 2px;

        margin-top: -8rem;
    }
    .header__subtitle{
        font-size: 2rem;
    }
    /* NAV */
    .header__menu.fixed .image__logo {
        width: 7%;
    }
    .menu__item{
        padding: 0 .5rem;
    }
    .menu__link{

        font-size: 1.7rem;

    }
    .menu__item:hover > .menu__link{
        text-shadow: 2px 2px 2px rgba(0 0 0 / 1);
    }

    /* HERO */
    .hero__section{
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .hero__title{
        width: 50%;
    }
    /* FOOTER */
    .footer__container{
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .footer__box{
        padding: 1rem;
    }
    .footer__social{
        padding: 1rem;
        display: flex;
        flex-direction: column;
    }
    .footer__social > img{
        padding: .2rem;
    }
}


@media screen and (max-width: 768px){
    /* HEADER */
    .header__title{
        font-size: 3rem;
        letter-spacing: 2px;

        margin-top: -8rem;
    }
    .header__subtitle{
        font-size: 1.5rem;
    }
    

    /* HERO */
    .hero__section{
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .hero__title{
        width: 80%;
    }
    /* BLOG */
    .blog__section{
        display: flex;
        flex-direction: column;
    }
    .blog__wrapper{
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* GALLERY */
    .gallery__container {
        grid-template-columns: 1fr 1fr; 
        grid-template-rows: 1fr 1fr; 
        grid-template-areas:
        "box__1 box__2"
        "box__3 box__4"
        "box__5 box__6";  
    }
    /* NOSOTROS*/
    .about__section{
        display: flex;
        flex-direction: column;
    }
    .about__wrapper{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    /* FOOTER */
    .footer__container{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .footer__box{
        padding: 1rem;
    }
    .footer__box-1{
        display: none;
    }
    .footer__title{
        font-size: 1.2rem;

    }
}


@media screen and (max-width: 420px){
    /* NAV */
    .header__menu.fixed .image__logo {
        width: 20%;
    }
    /* HERO */
    .hero__title{
        width: 100%;
    }
    /* GALLERY */
    .gallery__container {
        grid-template-columns: 1fr; 
        grid-template-rows: 1fr; 
        grid-template-areas:
        "box__1"
        "box__2"
        "box__3"
        "box__4"
        "box__5"
        "box__6";  

    }
}