*, :root, ::after, ::before {
    --primary-color: #000822;
    --secondary-color: #FFFFFF;
    --thirth-color: #f72585;
    --text-color: #0b0f1d;
    --font-family: 'League Spartan', 'Montserrat';
    --secondary-font-family: 'Montserrat', sans-serif;
    --font-size: 16px;
    --border-radius: 30px;
    box-sizing: border-box;
    margin: 0;
}

body > * {
    font-family: var(--font-family);
}

/* Evitar selección de imágenes y elementos */
img, svg {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
}



header{
    background-color: var(--primary-color);
    padding: 80px;
    
    color: var(--secondary-color);
    font-family: var(--font-family);
    overflow: hidden;
    position: relative;
    z-index: 0;
    & h1{
        font-size: 7em;
        max-width: 1000px;
        margin-top: 50px;
    }

    & button{
        margin-top: 50px;
        margin-right: 30px;
        
    }

    & p{
        font-size: clamp(1.5rem, 3vw, 2rem);
        max-width: min(900px, 80vw);
        margin-top: 50px;
        line-height: 1.4;
    }

}

.design-button{
    border-style: none;
    font-family: var(--font-family);
    font-size: 1.5em;
    font-weight: bolder;
    color: var(--text-color);

    padding: 20px 35px;
    background-color: var(--secondary-color);
    cursor: pointer;
    border-radius: var(--border-radius);
    z-index: 1;
}

.design-button:hover{
    background-color: var(--thirth-color);
    color: var(--secondary-color);
}

.logo-verum-svg{
    width: 800px;
    position: absolute;
    right: -200px;
    top: 50%;
    transform: translateY(-50%);
    z-index: -1;
}

.first-section-index + section{
    background-color: var(--secondary-color);
}

.first-section-index{
    padding: 3em;
    
    display: grid;
    grid-template-areas: "title image"
                                "text image"
                                "text image";
    background-color: var(--secondary-color);
    overflow: hidden;
    align-content: center;
    align-items: center;

    & h2{
        font-family: var(--font-family);
        font-size: 4em;
        color: var(--thirth-color);
        line-height: 1.1;
        grid-area: title;
        max-width: 550px;
    }

    & p{
        font-family: var(--secondary-font-family);
        font-size: clamp(1.1rem, 15vw, 1.5rem);
        color: var(--text-color);
        line-height: 1.6;
        grid-area: text;
        max-width: min(550px, 90vw);
    }

    
    & img{
        grid-area: image;
    }
    

    & .section-estructura-loza{
        object-fit: cover;
        border-radius: var(--border-radius);
        filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
        padding-left: 20px;
    }
}

/*Segunda etiqueta seccion*/
/* Se utilizaron los selectores y pseudo-clases para aplicar estilos a los elementos dentro de la sección */
section:nth-child(3){
    padding: 80px;
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    overflow: hidden;

    & a img{
        width: 30em;
        object-fit: cover;
        border-radius: var(--border-radius);
    }

    
} 
.card-link{
        display: flex;
        text-decoration: none;
        transform-origin: center;

    & a{
        text-decoration: none;
        color: var(--thirth-color);
    }

    & a h2{
        font-size: 2em;
    }

    & a:hover{
        scale: 1.2;            
    }


}

.card-link:first-of-type a{
    display: flex;
    flex-direction: column-reverse;    
}

.card-link:last-of-type a{
    display: flex;
    position: relative;
    flex-direction: column;
    justify-content: end;
    transform: translate(-50px, 0);
}

.card-link a{
    align-items: center;
    transition: scale 0.5s ease-in-out;
}

/*Tercera seccion del Index*/

section:nth-child(4) {
    padding: 3em 0;
    background-color: #000822;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.future_solutions{
    display: grid;
    row-gap: 1em;
    grid-template-areas: 
    "titulo texto"
    "imagen imagen";
    justify-items: center;


    & h2{
        grid-area: titulo;
        justify-items: center;
        justify-self: center; 
        align-self: center; 
        position: relative;

        font-family: var(--font-family);
        color: var(--secondary-color);
        font-size: 6em;
        max-width: 500px;
        z-index: 40;
    }

    & h2::before{
        content: "";
        position: absolute;
        width: 120%;
        height: 120%;

        transform: translate(-90px, -20px);
        background-color: var(--thirth-color);
        z-index: -10 ;
        border-radius: var(--border-radius);
    }

    & h4{
        grid-area: texto;
        font-family: var(--font-family);
        color: var(--secondary-color);
        font-size: 3em;
        max-width: 600px;
        z-index: 4;
        justify-self: center;
        text-align: center;
    }

    & picture{
        grid-area: imagen;
        display: flex;
        z-index: 1;
        max-width: 90vw;
        justify-content: center;
        align-self: center;  
        
        & img:first-of-type{
            transform: translate(0%, 15%);
            width: 55em;
            height: auto;
        }

        & img:last-of-type{
            transform: translate(-15%, -25%);
            width: 45em;
            height: auto;
            filter: drop-shadow( 20px 20px 6px rgba(0, 0, 0, 0.8));
            margin-top: 2em;
        }
    }

    & picture::before{
        content: "";
        position: absolute;
        align-items: flex-start;
        width: 60rem;
        height: 32rem;
        right: 0;
        transform: translate(-10em, -8em);
        background-color: var(--thirth-color);
        z-index: -1 ;
        border-radius: var(--border-radius);
    }
}

section:nth-child(4) button a{
    text-decoration: none;
    color: var(--text-color);
}

/* Cuarta seccion del Index */
section:nth-child(5) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;  
    overflow: hidden;          
    padding: 0;
    position: relative;
    z-index: 1;
}

section:nth-child(5) .our_product {
    max-width: 600px;
    min-width: 350px;
}

section:nth-child(5) .our_product{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color);
    padding: 80px;

    & h2{
        font-family: var(--font-family);
        font-size: 4em;
        color: var(--thirth-color);
        line-height: 1.1;
        max-width: 550px;
        text-align: start;
    }

    & p{
        font-family: var(--secondary-font-family);
        font-size: clamp(1.5rem, 15vw, 1.8rem);
        color: var(--text-color);
        line-height: 1.6;
        max-width: min(800px, 90vw);
        text-align: start;
    }
}

section:nth-child(5) .phrases_description{
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    align-items: center;
    height: 80vh;

    & p{
        font-family: var(--font-family);
        font-size: clamp(1rem, 3vw, 1.5rem);
        color: var(--text-color);
        max-width: min(200px, 40vw);
        text-align: center;

        & strong{
            color: var(--thirth-color);
        }
    }

}

section:nth-child(5) img {
    max-width: 500px;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: left;
    align-self: center;
    box-shadow:10px 20px 10px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

section:nth-child(6){
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 0;
    padding-top: 20px;
    padding-bottom: 20px;
    height: 100%; 

    & h2{
        color: var(--thirth-color);
        font-family: var(--font-family);
        font-size: 4em;
        margin: 50px;
        margin-left: 0;
        padding-left: 80px;

    }

    & div{
        border-radius: var(--border-radius);
        position: relative;
        display: flex;
        justify-content: center;

        & img{
            width: 50vw;
            height: 60vh;
            object-fit: cover;
            border-radius: 28px;
        }
    }

    & div::before{
        content: "";
        position: absolute;
        width: 52vw;
        height: 62vh;
        background-color: var(--thirth-color);
        z-index: -1;
        justify-content: center;
        border-radius: var(--border-radius);
        box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }


    & figure{
        display: flex;
        margin-top: 30px;
        justify-content: space-between;
        gap: 20px;
                
    }

    & figure img{
        width: 200px;
        border-radius: var(--border-radius);
    }
}

.arrow-icon{
    position: absolute;
    width: 50px !important;
    height: 50px !important;
    cursor: pointer;
    z-index: 1;
}
.left-arrow{
    right: calc(100% - 80px);
    top: 50%;
}

.right-arrow{
    left: calc(100% - 80px);
    top: 50%;
}

footer{
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 20px 80px;
    height: auto;
    display: flex;
    gap: 5px;
    align-items: start;
    justify-content: center;

    & h3{
        font-family: var(--font-family);
        font-size: 3em;
        margin-right: 40px;
        padding: 20px 30px;
        max-width: 400px;
        background-color: var(--thirth-color);
        border-radius: var(--border-radius);
    }

    & div{
        display: flex;
        gap: 20px;
        font-family: var(--secondary-font-family);
        font-size: 1.6em;
        flex-direction: column;
        max-width: 250px;
        align-items: start
    }

    & div a{
        color: var(--secondary-color);
        text-decoration: none;
    }
}



@media (600px <= width <= 1500px){
    /* Cambios para pantallas entre 700px y 1500px -HEADER-*/
    header{
        height: 100vh;
        padding: 3em;
    }

    header h1{
        font-size: 4em;
        margin: 5px 0;
    }

    header img{
        width: 30vw;
    }

    header button{
        margin: 0 10px;
    }

    header p{
        font-size: clamp(1.5rem, 3vw, 2rem);
        line-height: 1.5em;
        margin-top: 20px;
    }

    header .logo-verum-svg{
        width: 600px;
        position: absolute;
        right: 0px;
        top: 50vh;
    }

    .first-section-index{
        padding: 3em;
        grid-template-areas:   
        "title image"
        "text image" ;
    }

    .first-section-index h2{
        font-size: 3.5em;
        text-align: start;
        align-self: end;
    }

    .first-section-index p{
        font-size: clamp(0.9rem, 2vw, 1rem);
        text-align: start;
        max-width: min(30vw, 400px);
        align-self: flex-start;
        line-height: 1.6;
    }

    section:nth-child(4) {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        height: auto;
        padding: 5em;
        margin-top: 2em;
        margin-bottom: 2em;
    }


    section:nth-child(4) .future_solutions h2{
        font-size: 2.5em;
        text-align: end;
        
    }

    section:nth-child(4) .future_solutions h4{
        font-size: 1.4em;
        text-align: end;
    }

    section:nth-child(4) .future_solutions picture{
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        width: 90vw;
        height: auto;

        & img:first-of-type{
            width: auto;
            height: 40vh;
            transform: translate(0%, 0%);
        }

        & img:last-of-type{
            width: auto;
            height: 40vh;
            transform: translate(0, -9vh);
        }
    }
    section:nth-child(4) .future_solutions picture::before{
        width: 55vw;
        height: 55vh;
        transform: translate(-5vw, -5vh);
    }
    section:nth-child(4) .future_solutions h2::before{
        width: 9em;
        height: 2em;
        transform: translate(-15px, -18px);
        top: 0
    }

    section:nth-child(5){
        height: 100vh;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 1em;
    }
    
    section:nth-child(5) .our_product {
        flex: 0 0 40%;
        max-width: 40%;
    }

        section:nth-child(5) .our_product h2 {
        font-size: 2em;
        align-items: center;
        justify-content: center;
    }
    section:nth-child(5) .our_product p {
        font-size: clamp(1rem, 1.5vw, 1.1rem);
        text-align: start;
        max-width: min(600px, 90%);
        line-height: 1.5;
    }
    
    section:nth-child(5) .phrases_description {
        flex: 0 0 20%;
        max-width: 20%;
    }
    
    section:nth-child(5) img {
        flex: 0 0 40%;
        max-width: 40%;
        object-position: left;
        align-self: flex-end;
    }
    
    section:nth-child(6){
        height: auto;
        margin-bottom: 20px;

        & figure{
            display: flex;
            flex-direction: row;
            justify-content: center;
            gap: 20px;
            flex-wrap: wrap;
        }
    }

    footer{
        height: auto;
        flex-wrap: wrap;
    }
}


@media screen and (max-width: 599px){
    /*Cambios para dispositivos móviles -HEADER-*/
    header{
        height: auto;
        padding: 3em;
        padding-bottom: 0;
    }

    header h1{
        font-size: 3em;
    }

    header img{
        width: 80vw;
    }

    header button{
        margin: 10px 2px;
    }

    header p{
        font-size: clamp(1.3rem, 3vw, 1.7rem);
        max-width: min(90vw, 500px);
        line-height: 1.4;
    }

    header .logo-verum-svg{
        width: 400px;
        position: relative;
        right: -100px;
        top: 20px;
    }

    /* Cambios para dispositivos móviles -1° SECTION-*/
    .first-section-index{
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2em;

        & .section-estructura-loza{
            padding-left: 0;
        }
    }
    .first-section-index h2{
        font-size: 2em;
        text-align: center;
        padding: 1em 5px;
    }

    .first-section-index p{
        font-size: clamp(1rem, 3.5vw, 1.5rem);
        text-align: start;
        max-width: min(90vw, 400px);
        line-height: 1.5;
    }

    .first-section-index img{
        width: 90vw;
        height: 50vh;
    }

    /* Cambios para dispositivos móviles -2° SECTION-*/
    section:nth-child(3){
        padding: 1em 5px;
        display: flex;
        flex-direction: column;
        gap: 2em;
        height: auto;      
        padding-top: 3em;
        padding-bottom: 3em;

    }

    .card-link{
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 90vw;
    }

    .card-link a{
        text-decoration: none;
        transition: scale 0.5s ease-in-out;
        transform-origin: center;
        &:hover{
            scale: 0.75;            
        }

        &:active{
            color: var(--text-color);
        }
    }

    .card-link:last-of-type{
        transform: translate(50px, 0);
    }

    section:nth-child(3) a img{
        width: 90vw;
        height: auto;
        object-fit: cover;
        border-radius: var(--border-radius);
    }

    .card-link a h2{
        font-size: 1.5em;
        margin-top: 10px;
        color: var(--thirth-color);
    }

    section:nth-child(3) a:hover{
            scale: 0.65 !important;
    }
    /* Cambios para dispositivos móviles -3° SECTION-*/
    section:nth-child(4) {
        height: auto;
        padding-top: 3em;
        padding-bottom: 3em;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }


    section:nth-child(4) .future_solutions{
        grid-template-areas:
        "titulo titulo"
        "texto texto"
        "imagen imagen";
        row-gap: 2em;
    }

    section:nth-child(4) .future_solutions h2{
        font-size: 2em;
        text-align: end;
    }

    section:nth-child(4) .future_solutions h4{
        font-size: 1em;
        text-align: end;
        max-width: 70vw;
    }

    section:nth-child(4) .future_solutions picture{
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 90vw;
        height: auto;

        & img:first-of-type{
            width: 100%;
            height: auto;
            transform: translate(0%, 0%);
        }

        & img:last-of-type{
            width: 100%;
            height: auto;
            transform: translate(0%, -4vh);
        }
    }
    section:nth-child(4) .future_solutions picture::before{
        width: 90vw;
        height: 25vh;
        transform: translate(-5vw, -15vh);
    }
    section:nth-child(4) .future_solutions h2::before{
        width: 9.5em;
        height: 2em;
        transform: translate(-15px, -18px);
        top: 0
    }

    /* Cambios para dispositivos móviles -4° SECTION-*/
    section:nth-child(5){
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 3em;

        & .our_product{
            padding: 2em;
            align-items: center;
            justify-content: center;
        }
    }

    section:nth-child(5) .our_product h2{
        font-size: 2.5em;
        text-align: center;
        padding-bottom: 20px;
    }

    section:nth-child(5) .our_product p{
        font-size: clamp(1rem, 3vw, 1.5rem);
        text-align: start;
        max-width: min(95vw, 400px);
        line-height: 1.4;
    }

    section:nth-child(5) .phrases_description{
        gap: 2em;
        display: flex;
        flex-direction: column;
        height: auto;
    } 

    section:nth-child(5) img{
        width: 90vw;
        height: auto;
        border-radius: var(--border-radius);
    }

    /* Cambios para dispositivos móviles -5° SECTION-*/
    section:nth-child(6){
        height: 100vh;
        padding: 2em;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;

        & h2{
            font-size: 2.5em;

        }

        & div{
            width: 90vw;
            height: auto;
            display: flex;
            justify-content: center;
            align-items: center;

            & img{
                width: 100%;
                height: auto;
            }
        }

        & figure{
            display: none;
        }
    }

    section:nth-child(6) div{
            width: 90vw;
            height: auto;
            display: flex;
            justify-content: center;
            align-items: center;

            & img{
                width: 100%;
                height: 50vh;
                object-position: center;
                object-fit: cover;
            }
        }

    section:nth-child(6) div::before{
        width: 95vw;
        height: 55vh;
    }

    section:nth-child(6) .visor svg{
        transform: scale(0.5);
        z-index: 20;
    }

    section:nth-child(6) .visor svg:first-of-type{
        left: -5%;
    }

    section:nth-child(6) .visor svg:last-of-type{
        right: -5%;
    }

    /* Cambios para dispositivos móviles -FOOTER-*/
    footer{
        height: auto;
        flex-direction: column;
        padding: 10px 5px;
        text-align: center;
        align-items: center;

    }

    footer br{
        display: none;
    }

    footer h3{
        font-size: 1.5em;
        width: 80vw ;
        margin: 0;
        margin-bottom: 20px;
    }

    footer div{
        gap: 10px;
        align-items: center;    
        font-size: 1.1em;    
    }

    footer div:first-of-type{
        margin-bottom: 30px;
    }
}


.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}


@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}