*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    font-family: 'montserrat', 'sans-serif';
}

/* Utilities */

:root{
    --azul: #1B2036;
    --celeste: #B7C7D3;
}

.intro{
    position: fixed;
    background: linear-gradient(90deg, rgba(27,32,54,1) 0%, rgb(70, 79, 102) 100%);
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999999999;
    transform: scale(3);
    z-index: -1;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: 1s ease;
}

.intro.active{
    z-index: 999999999;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}


.intro-hidden svg{
    object-fit:cover;
}

.container{
    padding: 5rem 2rem;
}

.h2__before{
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    display: block;
}
#ultimos-proyectos .h2__before{
    text-align: left;
    padding-left: 1.5rem;
}

.btn__primary{
    padding: 1rem 3rem;
    background: rgb(27,32,54);
    background: linear-gradient(83deg, rgba(27,32,54,1) 0%, rgba(81,90,112,1) 100%);
    color: white;
    text-decoration: none;
    box-shadow: 0 0 5px .3px rgb(143, 143, 143);
    border-radius: 10px;
}

h1,h2,h3,a{
    text-transform: uppercase;
}

p{
    color: rgb(48, 48, 48);
}

h2{
    font-size: 2.3rem;
    position: relative;
    padding-bottom: 6px;
    font-weight: 400;
    margin: auto;
    margin-bottom: 1.5rem;
}

h2::before{
    content: url(../img/svg/puntos-encabezados.svg)!important;
    left: 0;
    position: absolute;
    top: 0;
}

figure{
    line-height: 0;
}

/* Header */

header{
    position: absolute;
    top: 0;
    width: 100%;
    background-color: transparent;
    transition: 400ms;
}

header .container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
}

header span >  img{
    display: block;
    width: 5rem;
    position: absolute;
    top: 1.7rem;
    z-index: 999999;
}

nav{
    position: fixed;
    height: 100vh;
    width: 100%;
    padding: 2rem;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    z-index: 99999;
    background-color: var(--azul);
    clip-path: circle(50px at 110% -10%);
    -webkit-clip-path: circle(50px at 110% -10%);
    transition: all 700ms ease-out;
}

nav.active{
    clip-path: circle(1000px at 50% 50%);
    -webkit-clip-path: circle(1000px at 50% 50%);
    position: fixed;
}

nav ul{
    display: grid;
    gap: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 400ms 400ms;
}

nav a{
    color: white;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 200;
}

.burger__container{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 99999;
    position: relative;
}

.burger__container.clicked span:first-of-type{
    transform: rotate(45deg);
    top: 1rem;
}

.burger__container.clicked span:nth-child(2){
    display: none;
}

.burger__container.clicked span:last-of-type{
    transform: rotate(-45deg);
    top: .87rem;
}

.burger__container.clicked span:first-of-type,
.burger__container.clicked span:last-of-type{
    transition: 250ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}



.burger__container:hover{
    cursor: pointer;
}

.burger__container span{
    width: 2.7rem;
    height: 2px;
    background-color: white;
    display: block;
    position: relative;
}

.burger__container span:nth-child(2){
    margin: 13px 0;
}

header.scrolled{
    background-color: var(--azul);
    transition: 400ms;
    z-index: 9;
    position: fixed;
}

header.scrolled img{
    width: 30px;
    top: 1.1rem;
}

header.scrolled .burger__container{
    margin: 0;
}


/* hero Section */

#hero{
    background:linear-gradient(0deg, rgba(24, 43, 83, 0.4), rgba(24, 43, 83, 0.4)), url(/img/el-principe-principal.webp);
    background-size: cover;
    background-position: center;
    padding-top: 8rem;
    border-radius: 0 0 80px 80px;
}

#hero .container{
    padding: 15rem 2rem;
    position: relative; 
}

.img-desc{
    position: absolute;
    left: 2rem;
    bottom: 2rem;
    color: rgba(255, 255, 255, 0.589);
    font-style: italic;
    font-size: .6rem;
}

#hero svg{
    position: absolute;
    height: auto;
    right: 0;
    bottom: -14rem;
    width: 200px;
}

#puntos-grandes{
    width: 300px;
}

h1{
    font-size: 2.3rem;
    width: 10ch;
    margin: auto;
    text-align: center;
    color: white;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
}

h1.active{
    opacity: 1;
    transform: translateY(0);
    transition: 400ms 400ms;
}

h1 > span{
    font-weight: 300;
}

#hero p{
    font-size: 1.5rem;
    text-align: center;
    color: white;
}

/* nosotros Section */

#nosotros .container{
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
}

#nosotros h2{
    width: 8ch;
}

#nosotros h2::before{
    left: -1.5rem;
}

#nosotros .container.active{
    opacity: 1;
    transform: translateY(0);
    transition: 600ms ease-in-out 200ms;
}

#nosotros p:last-of-type{
    margin-bottom: 3rem;
}

.content__text{
    display: grid;
    gap: 1.5rem;
}

/* Últimos proyectos Section */

#ultimos-proyectos{
    background: rgb(255,255,255);
    background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(183,199,211,1) 100%);
    border-radius: 0 80px 0 0;
    padding: 4rem 0;
}

#ultimos-proyectos h2{
    margin-left: 0;
    padding-left: 1.5rem;
}

#ultimos-proyectos .container{
    padding-bottom: 1.5rem;
}

#ultimos-proyectos h2 > span{
    font-weight: 700;
}

#ultimos-proyectos img{
    width: 100%;
    height: auto;
}

#ultimos-proyectos ul li a{
    display: block;
    font-size: 0;
    position: relative;
}

#ultimos-proyectos ul{
    display: flex;
    flex-direction: column;
}

#ultimos-proyectos .container:last-of-type{
    display: flex;
    justify-content: center;
}

#ultimos-proyectos li a::before,
#proyectos .grid a::before{
    content: '';
    display: block;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.788);
    transition: 500ms;
}

#ultimos-proyectos li a:hover::before,
#proyectos .grid li a:hover:before{
    opacity: 1;
    transition: 100ms;
}

.detail{
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transform: translateY(40px);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.detail span{
    font-size: 2.4rem;
    text-decoration: none;
    color: white;
    text-align: center;
}

.detail span:first-of-type{
    letter-spacing: 4px;
    font-weight: 500;
}

.detail span:nth-child(2){
    margin-bottom: 2rem;
}

.detail span:nth-child(2),
.detail span:nth-child(3){
    font-size: .9rem;
    font-weight: 300;
    letter-spacing: 4px;
}

.detail span:last-of-type{
    font-size: 1.3rem;
    margin-top: 15%;
    letter-spacing: 3px;
}

a:hover .detail{
    opacity: 1;
    transform: translateY(0);
    transition: 300ms ease 50ms;
}

/* Contacto Section */

#contacto{
    padding: 7rem 0 5rem 0;
}

#contacto .content{
    max-width: 1200px;
    padding: 0 2rem;
}

#contacto h2{
    width: 8ch;
}

#contacto h2::before{
    left: -1.5rem;
}

#contacto iframe{
    display: none;
}

.social-ul{
    display: grid;
    gap: 2rem;
    opacity: 0;
    transform: translateY(40px);
}

.social-ul.active{
    opacity: 1;
    transform: translateY(0);
    transition: 800ms ease 300ms;
}

.social-ul li{
    display: flex;
    align-items: center;
    flex-direction: column;
}

.social-content{
    display: grid;
    gap: .3rem;
    text-align: center;
}

.social-ul img{
    width: 5rem;
    display: block;
}

.social-title{
    font-weight: 600;
    font-size: 1.2rem;
    text-transform: uppercase;
}

#contacto p{
    text-align: center;
    margin-bottom: 2.5rem;
}

/* #contacto h2{
    clip-path: inset(80% 0 0 0);
}

#contacto h2.active{
    transition: 600ms ease 200ms;
    clip-path: inset(0 0 0 0);
} */

/* Footer */

footer{
    background: rgb(27,32,54);
    background: linear-gradient(83deg, rgba(27,32,54,1) 0%, rgba(81,90,112,1) 100%);
    color: white;
}

footer .container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

footer .container > span{
    margin: 5rem 0;
    font-size: 1rem;
    font-weight: 300;
    position: relative;
    text-transform: uppercase;
}

footer .container > span::before{
    content: url(../img/svg/puntitos-footer.svg);
    width: 5rem;
    height: auto;
    display: block;
    position: absolute;
    top: -200%;
    left: 40%;
}

footer .container > img{
    display: block;
}

.footer-logo{
    opacity: .2;
    width: 4rem;
}

.footer-social{
    display: flex;
}

.footer-social li{
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-social li:nth-child(2){
    margin: 0 1.4rem;
}

/* Breakpoints */

@media screen and (min-width: 560px) {
    .img-desc{
        font-size: .8rem;
    }

    h1{
        font-size: 3rem;
    }

    nav{
        transition: all 500ms ease-out;
    }

    #hero p{
        font-size: 2rem;
    }

    .img__container{
        display: flex;
        justify-content: center;
    }
    
    .img__container figure:nth-child(2){
        margin-left: -200px;
        margin-top: 200px;
    }

    #hero svg{
        width: 260px!important;
    }

    .social-ul{
        grid-template-columns: 1fr 1fr;
        row-gap: 3rem;
        column-gap: 0rem;
        justify-content: center;
    }

    .social-content{
        text-align: left;
        margin-left: .3rem;
    }

    .social-ul li{
        flex-direction: row;
    }

    .social-ul{
        max-width: 600px;
        margin: auto;
    }

}

@media screen and (min-width: 760px) {

    h1{
        font-size: 4rem;
    }

    h2{
        font-size: 2.7rem;
    }

    nav ul{
        gap: 3rem;
    }

    nav ul a{
        font-size: 3rem;
    }

    header span > img{
        width: 7rem;
    }

    #hero svg{
        width: 380px!important;
        top: 10px;
    }

    #nosotros .content__text{
        display: grid;
        grid-template-columns: 1fr 1fr;
        text-align: left;
        margin-bottom: 1rem;
        gap: 5rem;
    }

    #ultimos-proyectos ul{
        display: flex;
        flex-direction: row;
    }

    footer .container{
        flex-direction: row;
        justify-content: space-between;
        padding: 0 2rem;
    }
}

@media screen and (min-width: 920px) {

    .burger__container{
        display: none;
    }

    header span > img{
        position: relative;
        top: 0;
    }

    header.scrolled .container{
        padding: 1rem 2rem;
    }

    header.scrolled img{
        top: 0;
    }

    header span > img{
        width: 8rem;
    }

    header .container{
        padding: 2rem 2rem 0 2rem;
    }

    nav{
        position: relative;
        height: auto;
        width: auto;
        padding: 0;
        display: flex;
        align-items: center;
        z-index: 99999;
        clip-path: none;
        transition: none;
        background-color: transparent;
    }

    nav ul{
        display: flex;
        align-items: center;
        font-size: 1rem;
        margin-bottom: 8rem;
    }

    header.scrolled nav ul{
        margin: 0;
        transition: 0ms;
    }

    nav ul a{
        font-size: .9rem;
        font-weight: 500;
        position: relative;
    }

    nav ul a::before{
        content: '';
        display: block;
        position: absolute;
        width: 100%;
        height: 2px;
        border-radius: 1px;
        background-color: var(--celeste);
        left: 0;
        top: 30px;
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 250ms;
    }

    nav ul a:hover::before{
        transform: scaleX(1);  
        transform-origin: left;     
    }
    
    .container{
        max-width: 1400px;
        margin: auto;
    }

    h2{
        text-align: left;
    }
    
}

@media screen and (min-width: 1200px) {

    .intro{
        transform: scale(1.25);
    }

    h2{
        font-size: 3rem;
    }

    p{
        font-size: .9rem;
    }

    #contacto{
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 0;
    }
    
    #contacto .content{
        max-width: 700px;
        margin: auto;
        padding: 6rem 2rem;
    }

    #contacto iframe{
        display: block;
        width: 100%;
        height: 100%;
        border-radius: 60px 0 0 0;
    }

    #contacto p{
        text-align: left;
        margin-top: -1rem;
        margin-bottom: 3rem;
        font-size: 1.1rem;
    }

    .social-ul{
        max-width: 350px;
        gap: 1.5rem;
        margin: 0;
        padding-left: 3rem;
    }

    #contacto h2::before{
        left: 0;
    }

    #contacto h2{
        width: 100%;
        padding-left: 1.5rem;
    }

    .social-title{
        font-size: 1.1rem;
    }

    .social-ul img{
        width: 4rem;
    }

    .social-content{
        font-size: .7rem;
    }

    #contacto .h2__before{
        text-align: left;
        padding-left: 1.5rem;
    }
}

@media screen and (min-width: 1500px) {
    
}

