*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    font-family: 'nunito';
    font-weight: 900;
    line-height: 1;
}

nav a,p,span, li{
    font-weight: 500;
    color: black;
}

h1,h2{
    text-transform: uppercase;
}


h1{
    font-size: 0;
    width: 6rem;
    height: 4rem;
    background-image: url(/img/logo-laplaza.svg);
    background-size: 6rem;
    background-position: center;
    background-repeat: no-repeat;
}


:root{
    --amarillo: #fbe05b;
    --negro: rgb(30, 30, 28);
    --gris: #e6e6e6;
}

body{
    background-image: url(/img/teclado-cafe.png);
    background-position: 100% 50px;
    background-repeat: no-repeat;
    background-size: 270px;
}

section .container{
    padding: 4rem 2rem;
}

#contacto .container{
    padding-bottom: 0;
}

.link-box{
    display: flex;
}

.body-link{
    padding: .7rem 2.2rem;
    background-color: var(--negro);
    color: white;
    border-radius: 25px;
}

.body-link:hover{
    box-shadow: 0 0 20px -7px rgba(0, 0, 0, 0.644);
}

#paquetes .container> ul.in >li:last-of-type .body-link:hover,
#contacto .body-link:hover{
    box-shadow: 0 0 20px -2px rgba(124, 124, 124, 0.644);
}


/* CONTAINER */
.container{
    padding: 0 2rem;
    margin: auto;
}
@media screen and (min-width: 576px) {
    .container{
        max-width: 560px;
    }    
}
@media screen and (min-width: 768px) {
    .container{
        max-width: 820px;
    }    
}
@media screen and (min-width: 992px) {
    .container{
        max-width: 1200px;
    }    
}

/* HEADER - NAV */
header{
    position: sticky;
    background-color: white;
    padding: .5rem 0;
    top: 0;
    z-index: 9;
}

header .container{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav{
    position: fixed;
    transform: translateX(-250%);
    background-color: white;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 3;
    transition: 300ms;
}
nav.expand{
    transform: translateX(0);
    transition: 300ms;
}

.logo-nav{
    display: block;
    margin-bottom: 2rem;
}

.logo-nav img{
    width: 100px;
}

nav{
    padding: 2rem;
}
nav ul li{
    margin: 1rem 0;
}

nav a{
    font-size: 1.2rem;
}

.modal{
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.295);
    position: fixed;
    right: 0;
    top: 0;
    z-index: 2;
}

.burger-box{
    display: flex;
    align-items: center;
}

.burger-box button{
    outline: 0;
    border: 0;
    background-color: transparent;
    padding: .2rem;
    cursor: pointer;

}

.burger-box span{
    background-color: var(--negro);
    display: block;
    width: 2rem;
    margin: .3rem 0;
    height: .2rem;
}


/* HERO SECTION */

#hero{
    position: relative;
}

#hero h2{
    font-size: 1.7rem;
}

#hero p{
    font-size: 1rem;
}

#hero .inner{
    padding: 3rem 2rem;
    width: 290px;
    position: relative;
}

#hero .content{
    opacity: 0;
}
#hero .inner.in .content{
    opacity: 1;
    transition: 300ms 950ms;
}

#hero .inner::after{
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background-color: var(--amarillo);
    z-index: -1;
}

#hero .inner.in::after{
    width: 100%;
    transition: 500ms 300ms;
}


#hero .body-link{
    margin-top: 1rem;
    font-size: 1.5rem;
}

#hero p{
    margin-top: 1rem;
}

/* SERVICIOS SECTION */

#servicios{
    padding-top: 0;
}

#servicios h2{
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 3rem;
}



#servicios svg{
    width: 80px;
    height: 80px;
    filter: drop-shadow(1px 1px 3px rgb(199, 199, 199));
}

#servicios h3{
    font-size: 1.5rem;
    padding-bottom: 1rem;
}

#servicios p{
    padding-bottom: 1rem;
}

#servicios h3, #servicios figure{
    text-align: center;
}

#servicios figure{
    order: 0;
    padding-bottom: 1rem;
    align-self: center;
}

#servicios button{
    border: 0;
    display: block;
    text-align: center;
    font-size: .8rem;
    padding: .2rem inherit;
    letter-spacing: 0;
    cursor: pointer;
    margin: auto;
    width: 100%;
    order: 4;
}

#servicios ul{
    display: grid;
    gap: 3.5rem;
    align-items: baseline;
}

.servicio-card{
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    text-align: center;
    transition: 300ms;
    opacity: 0;
    padding: 2rem;
    background-color: var(--gris);
}

.servicio-card.in, #equipo li.in{
    opacity: 1;
    transition: 400ms;
    align-items: flex-start;
}

.servicio-card:first-of-type h3{
    max-width: 9ch;
    margin: auto;
}

.servicio-card:nth-child(2) h3{
    max-width: 9ch;
    margin: auto;
}

.servicio-card:nth-child(3) h3{
    max-width: 9ch;
    margin: auto;
}

.servicio-card:last-of-type h3{
   max-width: 168px;
   margin: auto;
}

.servicio-card p > span{
    display: block;
    max-height: 0;
    transition: 200ms;

    overflow: hidden;
}

.servicio-card p > span.show{
    max-height: 200px;
    transition: 500ms;
}

.servicio-card > div{
    order: 2;
}

/* PORFOLIO SECTION */

#porfolio{
    background-attachment: fixed;
}

#porfolio,footer{
    background-image: url(/img/fondo-negro-porfolio-footer.svg);
    background-position: center;
    background-size: 5000px;
    background-repeat: no-repeat;
    position: relative;
}

#porfolio h2{
    font-size: 2.3rem;
    color: white;
    text-align: center;
    margin-bottom: 3rem ;
}

/* #porfolio ul{
    display: grid;
    gap: 2rem;
} */

#porfolio img{
    width: 100%;
    height: auto;
}

#porfolio img:hover{
    filter: saturate(.4);
    transition: 150ms;
}

.swiper-button-prev::after,
.swiper-button-next::after{
    content: ''!important;
    width: 100px;
    height: 60px;
    background-repeat: no-repeat;
    background-size: 150%;
    background-position: center ;
}

.swiper-button-prev::after{
    background-image: url(../img/arrow-slider-left.svg);
}

.swiper-button-next::after {
    background-image: url(../img/arrow-slider-right.svg);
}

.swiper-pagination{
    bottom: 1.5rem!important;
    color: white;
}

.swiper-pagination-bullet{
    background: white!important;
}

.swiper-pagination-bullet-active{
    background: white!important;
}

/* PAQUETES SECTION */
#paquetes{
    overflow: hidden;
}

#paquetes h2{
    font-size: 2.3rem;
    text-align: center;
    margin-bottom: 4rem;
}

#paquetes h3{
    font-size: 2.3rem;
    text-align: center;
}

#paquetes  button{
    font-family: 'roboto slab';
    font-size: 2rem;
    color: white;
}

#paquetes .body-link{
    display: block;
    font-size: 1.3rem;
    text-align: center;
    padding: .5rem 0;
}

#paquetes .container> ul{
    display: grid;
    gap: 1.5rem;
}

#paquetes .container> ul >li{
    display: grid;
    padding: 3rem 2rem;
    gap: 3rem;
    text-align: center;
    box-shadow: 0px 0px 11px -2px rgba(0,0,0,0.75);
    -webkit-box-shadow: 0px 0px 11px -2px rgba(0,0,0,0.75);
    -moz-box-shadow: 0px 0px 11px -2px rgba(0,0,0,0.75);
}

#paquetes .container> ul >li:first-of-type{
    background-color: var(--amarillo);
    position: relative;
}
#paquetes .container> ul >li:first-of-type h3{
    color: var(--negro);
}
#paquetes .container> ul >li:first-of-type li>button{
    color: black;
}

#paquetes .container> ul >li:last-of-type{
    background-color: var(--negro);
    position: relative;
}
#paquetes .container> ul >li:last-of-type h3,
#paquetes .container> ul >li:last-of-type p,
#paquetes .container> ul >li:last-of-type h4{
    color: white;
}

#paquetes .container> ul >li:last-of-type .body-link{
    background-color: var(--amarillo);
    color: black;
}

#paquetes li > ul,
.ul-paquete li >ul{
    display: grid;
    gap: .5rem;
}

#paquetes p{
    font-size: 1.2rem;
}

#paquetes .container> ul >li:first-of-type::before{
    content: url(/img/lampara-oscura.png);
    position: absolute;
    left: -6rem;
    top: -6rem;
}
#paquetes .container> ul >li:last-of-type::before{
    content: url(/img/lampara-blanca.png);
    position: absolute;
    display: flex;
    right: -6rem;
    bottom: -6rem;
    z-index: 0;
}

/* CONTACTO SECTION */
#contacto{
    background-color: var(--negro);
    padding-bottom: 0;
    position: relative;
}

#contacto .container{
    display: grid;
    gap: 2.5rem;
    position: relative;
}

#contacto h2{
    font-size: 2.3rem;
    color: white;
    text-align: center;
    margin-bottom: 1rem;
}

#contacto p{
    color: white;
    text-align: center;
    margin-bottom: 2rem;
}

#contacto input[type="text"], #contacto textarea{
    border-radius: 35px;
    padding: 1rem;
    border: none;
    outline: none;
}

#contacto form{
    display: grid;
    gap: 1rem;    
}

::placeholder{
    font-size: 1rem;
    font-family: 'roboto slab';
    font-weight: 300;
}

#contacto ul{
    margin-top: 3rem;
    gap: 2rem;
}

#contacto span{
    color: white;
    font-size: .8;
    margin-left: .3rem;
    text-align: center;
}

#contacto li,
#contacto li > a{
    display: flex;
    align-items: center;
    flex-direction: column;
}

#contacto ul li:first-of-type{
    margin-bottom: 2rem;
}

#contacto ul li:first-of-type img{
    width: 2rem;
}

#contacto ul li:last-of-type img{
    width: 2rem;
}

#contacto .link-box{
    display: flex;
    justify-content: center;
    margin-top: .5rem;
}

#contacto .body-link{
    padding: .4rem 5rem;
    font-size: 1.5rem!important;
}

#contacto input[type="submit"] {
    font-family: 'nunito', sans-serif!important;
    font-weight: 900;
    border: 0;
    color: var(--negro);
    background-color: var(--amarillo);
    cursor: pointer;
    font-size: 2rem;
}

#contacto figure{
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

#contacto figure img{
    width: 100%;
    max-width: 370px;
}

/* FOOTER */

footer{
    padding: 4rem 0;
}

footer .container{
    display: flex;
    align-items: center;
    flex-direction: column;
}

footer picture{
    display: flex;
    justify-content: center;
}

footer span{
    color: white;
    font-size: 1.3rem;
    display: block;
    text-align: center;
    max-width: 40ch;
    margin: auto;
    margin-top: 2rem;
}

footer span:last-of-type{
    margin-top: 2px;
}

footer picture img{
    width: 200px;
}

footer ul{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2.5rem;
}

footer ul li:first-of-type{
    margin-right: 1.5rem;
}
footer ul li:last-of-type{
    margin-left: 1.5rem;
}

footer ul img{
    width: 45px;
}


/* MEDIA QUERIES */

@media screen and (min-width: 576px) {
    #hero h2{
        font-size: 2rem;
    }

    .container{
        max-width: 560px;
    }
    
    #hero .inner{
        width: 500px;
    }

    .servicio-card{
        text-align: left;
    }

    #servicios a{
        margin: 0;
        margin-top: auto;
    }

    #paquetes h3{
        font-size: 3rem;
    }

    #porfolio ul{
        grid-template-columns: 1fr 1fr 1fr;
    }

    #contacto ul{
        display: flex;
        justify-content: center;
    }
}
@media screen and (min-width: 768px) {
    .container{
        max-width: 820px;
    }

    main{
        background-image: url(/img/main-background.svg);
        background-position: left bottom;
        background-repeat: no-repeat;
        background-size: 300px;
    }

    #hero .inner{
        width: 700px;
    }
    
    #servicios ul{
        grid-template-columns: 1fr 1fr;
        position: relative;
    }

    .servicio-card.in:first-of-type,
    #equipo li.in{
    transition-delay: 100ms;
}
    .servicio-card.in:nth-of-type(2),
    #equipo li.in{
    transition-delay: 250ms;
}
    .servicio-card.in:nth-of-type(3){
    transition-delay: 400ms;
}
    .servicio-card.in:nth-of-type(4){
    transition-delay: 550ms;
}

    #paquetes .container{
        padding-bottom: 10rem;
        background-image: url(/img/fondo-paquetes.svg);
        background-position: 40px;
        background-size: 150px;
        background-repeat: no-repeat;
    }

    #paquetes .container>ul{
        grid-template-columns: 1fr 1fr;
        position: relative;
    }

    #paquetes h2{
        margin-bottom: 5rem!important;
    }

    #paquetes .container> ul.in >li:first-of-type{
        transform: rotate(-5deg);
        transition: 300ms 200ms; 
    }
    #paquetes .container> ul >li:last-of-type{
        gap: 70px;
    }
    #paquetes .container> ul.in >li:last-of-type{
        transform: rotate(10deg);
        transition: 200ms 200ms;
    }

    #contacto form{
        grid-template-columns: 1fr 1fr;
    }

    #contacto #nombre{
        grid-column: 1/2;
    }
    #contacto #telefono{
        grid-column: 2/3;
    }

    #contacto #descripcion{
        grid-column: 1/3;
    }
    #contacto textarea{
        grid-column: 1/3;
    }
    #contacto .link-box{
        grid-column: 1/3;
    }

}
@media screen and (min-width: 1100px) {
    

    .container{
        max-width: 1200px;
    }

   
    #hero .content{
        width: 550px;
    }

    #hero p{
        font-size: 1.3rem;
    }

    #hero h2{
        font-size: 2.6rem;
    }

    #hero .inner{
        position: relative;
        width: 800px;
        margin-top: 4rem;
    }

    #hero .body-link{
        margin: 0;
    }

    #hero .link-box{
        position: absolute;
        right: -140px;
        top: 40%;
    }

    #hero .body-link{
        font-size: 2.1rem;
    }

    #servicios h2, #paquetes h2, #porfolio h2{
        font-size: 3rem;
    }
    
    #servicios ul{
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 2rem;
    }

    #paquetes .container>ul{
        padding: 0 11rem;
        gap: 4rem;
    }

    #contacto .container{
        grid-template-columns: 1fr 1fr;
        position: relative;
    }

    #contacto figure img{
        max-width: 450px;
    }

    #contacto figure{
        position: absolute;
        right: 40px;
        bottom: 0;
    }

    #contacto ul li:first-of-type{
        margin-bottom: 0;
    }

    #contacto .link-box{
        display: flex;
        justify-content: center;
        margin-top: .3rem;
    }

    #contacto li,
    #contacto li a{
        flex-direction: row;
        font-size: .8rem!important;
    }

    #contacto li img{
        margin-right: .8rem;
    }

    #contacto ul{
        margin: 2rem 0;
    }

    footer .container{
        flex-direction: row;
        justify-content: space-between;
    }

    footer picture img{
        width: 240px;
    }

    footer{
        padding: 2rem
    }

    footer ul{
        margin-top: 1rem;
        justify-content: flex-end;
    }

    footer ul img{
        width: 30px;
    }

    footer span{
        margin: 0;
        font-size: .9rem;
        text-align: right;
    }

    footer div{
        padding-top: 3rem;
    }
}


@media screen and (min-width: 1200px){
    body{
        background-size: 350px;
        background-position: 100% -10px;
    }

    .active-link{
        background-color: var(--amarillo);
        border-radius: 20px;
    }

    header{
        position: sticky;
        top: 0;
        z-index: 99;
        padding: 3rem 0;
    }

    header .container{
        justify-content: flex-start;
    }

    header.scrolled{
        background-color: white;
        padding: 0;
        box-shadow: -3px -1px 8px 0px rgba(0,0,0,0.75);
        -webkit-box-shadow: -3px -1px 8px 0px rgba(0,0,0,0.75);
        -moz-box-shadow: -3px -1px 8px 0px rgba(0,0,0,0.75);
    }

    header.scrolled .container{
        justify-content: space-between;
    }

    header.scrolled nav{
        margin-top: 0;
    }

    header.scrolled h1{
        width: 6rem;
        height: 5rem;
        background-size: 6rem;
        transition: 400ms;
        background-image: url(/img/logo-laplaza.svg);
    }

    h1{
        background-image: url(/img/lampara-sola.svg);
        width: 9rem;
        height: 10rem;
        background-size: 8.5rem;
        animation: encEntry 500ms fade-in;
    }
    @keyframes encEntry {
        form{
            transform: scale(2);
            background-size: 17rem;
        }
        to{
            transform: scale(1);
            background-size: 8.5rem;
        }        
    }

    .burger-box{
        display: none;
    }

    .logo-nav{
        display: none;
    }

    header, nav{
        background-color: transparent;
    }

    nav{
        transform: none;
        position: relative;
        padding: 0;
        height: auto;
        margin-top: 3rem;
    }

    nav ul{
        margin-left: 1.5rem;
    }

    nav a{
        padding: .5rem 1.2rem;
        font-size: 1.1rem;
    }

    .modal{
        display: none;
    }

    nav span{
        display: none;
    }

    nav li{
        margin: 0!important;
    }

    nav ul{
        display: flex;
    }

    #hero{
        padding-top: 0;
    }

    #hero .inner{
        margin-top: 0!important;
    }

}

@media screen and (min-width: 1500px){
    #hero .inner{
        width: 1150px;
    }

    #hero .content{
        width: 80%;
        padding-left: 170px;
    }
}

@media screen and (min-width: 1750px){
    #hero .inner{
        width: 1500px;
    }

    #hero .content{
        width: 80%;
        padding-left: 200px;
    }
}