@media screen and (max-width:1310px) {

    #section2 .content::before{
        width: 335px;
        right: -2%;
    }
    
    #section4 .content:nth-child(2):before{
        width: 335px;
        right: -2%;
    }

}

@media screen and (max-width:1200px) {

    h1 {
        margin-left: 0px;
    }

    .labelinfo {
        right: 10px;
    }

    #section1 .labelinfo {
        margin-right: 0px;
    }

}

@media screen and (max-width:1000px) {

    #section1 {
        grid-template-columns: 1fr;
    }

    form {
        max-width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 25px;
    }

    form h5, form p, form label, form button{
        grid-column-start: 1;
        grid-column-end: -1;
    }

    #section2 .content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    #section2 .content figure{
        order: 2;
    }

    #section2 .title {
        padding-top: 60px;
    }

    #section2 h2 {
        padding-top: 0px;
        margin-top: -80px;
    }

    #section2 .content::before {
        width: 285px;
        background-size: 330px;
        background-repeat: no-repeat;
    }

    #section5 .gallery {
        gap: 10%;
    }

    #section6 {
        padding-top: 100px;
    }

    #popup > div{
        padding: 60px 80px;
    }

}

@media screen and (max-width:760px) {

    header ul {
        position: relative;
    }

    header ul li{
        display: none;
    }

    header .separator{
        position: relative;
    }

    header .separator:hover::before{
        width: 180px;
        content: '';
        height: 30px;
        background-color: var(--color-blanco);
        position: absolute;
        top: 30px;
        right: 60px;
    }

    header .separator:hover::after {
        position: absolute;
        width: 10px;
        height: 10px;
        content: '';
        top: 25px;
        right: 15px;
        background-color: var(--color-blanco);
        transform: rotate(45deg);
    }

    header .separator:hover ul{
        display: flex;
        position: absolute;
        top: 37px;
        right: 0;
        height: 30px;
        background-color: var(--color-blanco);
        padding: 0 10px;
    }

    header .separator:hover ul li{
        display: flex;
    }

    header .separator ul li a{
        display: flex;
        align-items: center;
    }

    header ul li.separator, header ul li#langselector{
        display: block;
    }

    header ul li.separator{
        text-decoration: underline;
    }

    header ul .separator::before {
        display: none;
    }

    #section1 {
        padding-top: 0px;
        width: 96%;
        gap: 20px;
    }

    #section1 .content{
        width: 91%;
        margin: 0 auto;
    }

    #section1 .title {
        padding-top: 10px;
    }

    form {
        grid-template-columns: 1fr;
        column-gap: 0px;
    }

    .title span{
        font-size: 5rem;
    }

    .title h5 {
        margin-top: 25px;
    }

    h1{
        font-size: 3.8rem;
        line-height: 4rem;
    }

    .labelinfo{
        display: none;
    }

    #section2 {
        padding-top: 0px;
    }

    #section2 .content {
        gap: 20px;
    }

    #section2 .content > div {
        padding-left: 0px;
    }

    h2{
        font-size: 3.8rem;
        line-height: 4rem;
    }

    #section2 .title {
        padding-top: 30px;
    }

    #section2 .title span {
        padding-right: 20px;
    }

    #section2 h2 {
        margin-top: 20px;
        max-width: 90%;
    }

    #section2 p {
        margin: 25px 0 0 0px;
    }

    #section2 ul {
        margin: 20px 0 0 25px;
    }

    #section2 .content::before {
        width: 215px;
        background-size: 210px;
        background-repeat: no-repeat;
        height: 300px;
        top: -90px;
        right: -7%;
        pointer-events: none;
    }

    #section3 {
        padding-top: 55px;
        padding-bottom: 60px;
    }

    #section3 .title span {
        margin-left: 0px;
    }

    #section3 h2 {
        margin-top: 40px;
    }

    #section3 .gallery {
        grid-template-columns: 1fr;
    }

    #section3 ul {
        grid-template-columns: 1fr;
    }

    #section3 .gallery figure:nth-child(2), #section3 .gallery figure:nth-child(3) {
        padding-top: 0px;
    }

    #section4{
        padding-top: 10%;
    }

    #section4 > figure img {
        height: 370px;
    }

    #section4 .content {
        padding-top: 40px;
    }

    #section4 .content .title {
        flex-direction: column-reverse;
        gap: 30px;
    }

    #section4 .content .title span {
        margin-right: 20px;
    }

    #section4 .content:nth-child(2):before {
        width: 215px;
        background-size: 210px;
        background-repeat: no-repeat;
        height: 300px;
        top: -50px;
        right: -7%;
        pointer-events: none;
    }

    #section4 .content .infotext {
        width: 100%;
        column-count: 1;
        padding-top: 35px;
    }

    #section5 {
        padding-top: 40px;
    }

    #section5 .content .title span {
        padding-left: 0px;
    }

    #section5 .content .title h2 {
        padding-top: 20px;
    }

    #section5 .gallery {
        padding-top: 15px;
        grid-template-columns: 1fr;
        gap: 60px;
    }

    #section5 .gallery div:last-child {
        padding-top: 0px;
    }

    #section6 h2 {
        max-width: 87%;
    }

    #section6 p {
        max-width: 87%;
    }

    #section6 figure {
        margin-top: -20px;
    }

    #section6 a{
        width: 87%;
    }

    #section6 figure figcaption {
        bottom: 80px;
        text-shadow: 1px 1px rgb(0 0 0 / 50%);
    }

    footer{
        flex-direction: column;
        margin-top: -60px;
        gap: 0px;
    }

    footer ul{
        display: flex;
        gap: 10px;
    }

    #popup > div{
        padding: 40px 20px;
    }

}