/*
GLOBALES
MENU
HOME
QUISOM
TESTIMONIALS MENÚ
TESTIMONIAL INTERIOR
CLIENTS MENÚ
CONTACTA
RESPONSIVO
*/


/*GLOBALES*/

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Barlow Condensed', sans-serif;
}

a{
    cursor: pointer;
    text-decoration: none;
}

p{
    margin: 0px;
}

h1.title{
    font-weight: bolder;
    color: #e94b3b;
    font-size: 4em;
}

h1.title::before{
    content: "";
    display: inline-block;
    width: 65px;
    height: 65px;
    background-image: url(../img/title_deco.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: absolute;
    margin-left: -20px;
}

.ta-right{
    text-align: right;
}

.ta-center{
    text-align: center;
}

.md-show{
    display: none;
}

.wh-100{
    width: 100%;
    height: 100%;
    display: block;
}

.vh-100{
    height: 100vh;
}

.home-menu, .home-logo{
    height: 100vh;
}

.height-100 {
    height: 100%;
}

.height-md-100 {
    height: 100vh;
}

.height-50 {
    height: 50%;
}

.height-25 {
    height: 25%;
}

.hide {
    display: none;
}

body{
    height: 100vh;
    max-height: 100vh;
    background-color: #fff7ec;
    overflow: hidden;
}

.bg-red {
    background-color: #e94b3b;
}

span.red {
    color: #e94b3b;
}

/*MENU*/

.navbar{
    position: absolute;
    width: 100%;
    left: 0;
}

.navbar-nav .nav-item{
    padding: 0.5rem 2vw !important;
}

.navbar-nav .nav-item.active .nav-link{
    font-weight: bold;
    text-decoration: underline;
}

.navbar-nav .nav-link:hover {
    text-decoration: underline;
}

.navbar-nav .nav-link {
    color: #e94b3b !important; /* Color de los enlaces */
    font-size: 1.3em;
}

.navbar-toggler {
    border-color: #e94b3b !important; /* Color del borde del botón de hamburguesa */
}
.navbar-toggler-icon {
    /* Color del icono del botón de hamburguesa */
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='red' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
.navbar-collapse {
    justify-content: flex-end; /* Alinea los elementos de navegación al final (derecha) */
}


/*HOME*/

.home_logo {
    width: 50%;
}

.home a{
    position: relative;
    overflow: hidden;
}

.home a span{
    color: white;
    font-weight: 700;
}

.home a.qui span{
    display: block;
    inline-size: fit-content;
    transform: rotate(-90deg);
    color: white;
    font-weight: 700;
    position: absolute;
    bottom: 145px;
    right: -155px;
    white-space: nowrap;
    font-size: 12em;
}

.home a.contacte span{
    display: block;
    inline-size: fit-content;
    transform: rotate(-90deg);
    color: white;
    font-weight: 700;
    position: absolute;
    top: 83px;
    left: -72px;
    white-space: nowrap;
    font-size: 3.2em;
}

.home a.clients span{
    display: block;
    inline-size: fit-content;
    color: white;
    font-weight: 700;
    position: absolute;
    bottom: -10px;
    left: 10px;
    white-space: nowrap;
    font-size: 4em;
}

.home a.testimonials span{
    display: block;
    inline-size: fit-content;
    color: white;
    font-weight: 700;
    position: absolute;
    bottom: -20px;
    left: 10px; 
    white-space: nowrap;
    font-size: 8em;
}

.home a.punts span{
    inline-size: fit-content;
    color: white;
    font-weight: 700;
    white-space: nowrap;
    font-size: 5em;
    margin-right: 15px;
}

/*QUISOM*/

.bg-quisom{
    background-image: url(../img/quisom.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/*TESTIMONIALS MENÚ*/

.grid.testimonials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0px 5vw;
}

.grid.testimonials .item {
    /*
    use
    33.33% grid of 3
    25%    grid of 4
    20%    grid of 5
    16.66% grid of 6
    */
    flex: 0 0 calc(25% - 20px);
    padding: 20px;
    margin: 10px;
    text-align: center;
}

.grid.testimonials .item a div.img{
    width: 60%;
    margin: 0 auto;
    margin-bottom: 10px;
    -webkit-box-shadow: -12px -12px 0px 0px rgba(233,75,59,1);
    -moz-box-shadow: -12px -12px 0px 0px rgba(233,75,59,1);
    box-shadow: -12px -12px 0px 0px rgba(233,75,59,1);
    transition-property: box-shadow, filter;
    transition-duration: .3s;
    padding: 0px;
}

.grid.testimonials .item a:hover div.img{
    -webkit-box-shadow: 0px 0px 0px 0px rgba(233,75,59,1);
    -moz-box-shadow: 0px 0px 0px 0px rgba(233,75,59,1);
    box-shadow: 0px 0px 0px 0px rgba(233,75,59,1);
}

.grid.testimonials .item a img{
    width: 100%;
    filter: grayscale(1);
    transition-property: box-shadow, filter;
    transition-duration: .3s;
}

.grid.testimonials .item a:hover img{
    filter: grayscale(0);
}


.grid.testimonials .item div{
    padding: 0px 20px;
}

.grid.testimonials .item .name{
    font-weight: bolder;
    font-size: 22px;
    color: black;
}

.grid.testimonials .item .position{
    font-weight: 300;
    font-size: 20px;    
    color: #e94b3b;
}

.grid.testimonials .item .position span{
    color: black;
}

/*TESTIMONIAL INTERIOR*/

div.testimonial_c{
    width: 60%;
    margin: 0 auto;
    margin-bottom: 10px;
    -webkit-box-shadow: -12px -12px 0px 0px rgba(233,75,59,1);
    -moz-box-shadow: -12px -12px 0px 0px rgba(233,75,59,1);
    box-shadow: -12px -12px 0px 0px rgba(233,75,59,1);
}

.img_testimonial {
    width: 100%;
    filter: grayscale(1);
}

.testimonial_info{
    width: 60%;
    margin: 0 auto;
    text-align: left;
}

.testimonial_info .name{
    font-size: 20px;
    color: rgba(233,75,59,1);
    font-weight: 600;
}

.testimonial_info .position{
    font-size: 20px;
}

p.testimonial {
    font-size: 2em;
    font-weight: 200;
}

/*CLIENTS MENÚ*/

.grid.clients {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0px 5vw;
}

.grid.clients .item {
    /*
    use
    33.33% grid of 3
    25%    grid of 4
    20%    grid of 5
    16.66% grid of 6
    */
    flex: 0 0 calc(16.66% - 20px);
    padding: 20px;
    margin: 10px;
    text-align: center;
}

.grid.clients .item img{
    width: 90%;
    margin-bottom: 10px;
    filter: grayscale(1);
    opacity: 0.8;
    vertical-align: middle;
    transition-property: filter, opacity;
    transition-duration: .3s;
}

.helper {
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.grid.clients .item img:hover{
    filter: grayscale(0);
    opacity: 1;
}

/*CONTACTA*/

.contacta img{
    width: 80vw;
    max-width: 400px;
}

.contacta p{
    color: white;
    font-size: 25px;
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
}

/*RESPONSIVO WIDTH*/

@media (max-width: 1550px) {
    .home a.qui span{
        bottom: 105px;
        right: -94px;
        font-size: 7.5em;
    }
}
@media (max-width: 1400px) {
    .home a.testimonials span {
        font-size: 6em;
        bottom: -20px;
    }
}

@media (max-width: 1000px) {
    .grid.clients .item{
        flex: 0 0 calc(25% - 20px);
    }
}

@media (max-width: 950px) {
    .home a.clients span{
        font-size: 3em;
    }
}

@media (max-width: 900px) {
    .home a.punts span{
        font-size: 4em;
    }
}

@media (max-width: 767px) {
    .home-logo{
        height: 20vh;
    }
    .home-menu{
        height: 60vh;
    }
    .height-md-100{
        height: 50vh;
    }
    .height-md-auto{
        height: auto;
    }
    .md-hide{
        display: none;
    }
    .md-show{
        display: block;
    }
    .navbar-collapse{
        background-color: #fff7ec;
        border-bottom: 1px solid #e94b3b;
        z-index: 1;
    }
    .grid.testimonials{
        padding: 0px;
    }
    .grid.testimonials .item {
        flex: 0 0 calc(50% - 20px);
    }
    .grid.clients .item {
        flex: 0 0 calc(33% - 20px);
    }
    body.testimonials{
        overflow: scroll;
    }
    div.testimonial_c{
        margin-top: 40px;
    }
    .testimonials.height-100 {
        height: 60%;
    }
}

@media (max-width: 450px) {
    .grid.testimonials .item {
        /*
        use
        33.33% grid of 3
        25%    grid of 4
        20%    grid of 5
        16.66% grid of 6
        */
        flex: 0 0 calc(100% - 20px);
    }
    .grid.clients .item {
        flex: 0 0 calc(50% - 20px);
    }
    .home a.contacte span{
        top: 37px;
        left: -30px;
        font-size: 1.6em;
    }
    .home a.clients span{
        bottom: -7px;
        left: 6px;
        font-size: 2em;
    }
    .home a.punts span{
        font-size: 2.7em;

    }
    .home a.testimonials span{
        font-size: 2.6em;
        bottom: -7px;
    }
    .home a.qui span {
        bottom: 48px;
        right: -51px;
        font-size: 3.7em;
    }
}

/*RESPONSIVO HEIGHT*/


@media (max-height: 950px) {
    .home a.contacte span{
        top: 83px;
        left: -30px;
        font-size: 1.5em;
    }
}

@media (max-height: 800px) {
    .home a.contacte span{
        top: 40px;
    }
}

@media (max-height: 700px) {
    .home a.contacte span{
        font-size:  1.3em;
        top: 32px;
        left: -23px;
    }
}

@media (max-height: 600px) {
    .home a.contacte span{
        font-size: 1.5em;
        top: 33px;
        left: -29px;
    }
}