html {
    box-sizing: border-box;
    font-size: 62.5%;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    font-size: 1.6rem;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    line-height: 1.5;
    color: #2b2b2b;
}

/* GLOBAL */
img {
    max-width: 100%;
}

h1 {
    font-size: 2.9rem;
}

*:focus { outline: none; }

@media (min-width: 486px) {
    h1{
        font-size: 4.8rem;
    }
}

h2 {
    font-size: 2.6rem;
}

h3 {
    font-size: 2.2rem;
}

a {
    color: #2b2b2b;
    text-decoration: none;
}

/*      Color variables     */
:root {
    --primary-color: #edc139;
    --secundary-color: #64a4dc;
    --third-color: #31537b;
}
/*      Buttons     */
.btn {
    line-height: 1;
    display: inline-block;
    margin-top: 2rem;
    font-weight: 700;
}

.btn-primary{
    border-radius: 1rem;
    padding: 1rem 5rem;
    text-transform: uppercase;
}

.btn-secundary{
    -webkit-box-shadow: 12px 13px 21px -8px rgba(0,0,0,0.75);
    -moz-box-shadow: 12px 13px 21px -8px rgba(0,0,0,0.75);
    box-shadow: 12px 13px 21px -8px rgba(0,0,0,0.75);
    background-color: #fcfcfc;
    border-radius: 5rem;
    padding: 2rem 5rem;
    color: #2b2b2b;
}

.btn-yellow {
    border: solid var(--primary-color);
    color: var(--primary-color);
}

.btn-yellow:hover {
    background-color: var(--primary-color);
    color: #fff;
    transition: .5s;
}

.btn-blue {
    border: solid var(--third-color);
    color: var(--third-color);
}

.btn-blue:hover {
    border: solid var(--primary-color);
    color: var(--primary-color);
    transition: .5s;
}

/* UTILITIES */
.container {
    max-width: 100rem;
    width: 90%;
    margin: auto;
}

.section {
    padding-top: 2rem;
}

.lato{
    font-family: 'Lato', sans-serif;
}

.open-sans{
    font-family: 'Open Sans', sans-serif;
}

.uppercase{
    text-transform: uppercase;
}

.t-center {
    text-align: center;
}

.m-0{
    margin: 0;
}

.w-400{
    font-weight: 400;
}

.w-700{
    font-weight: 700;
}

/* MAIN PAGE SECTIONS */

/*      Site Header         */
.header{
    background-color: #31537b;
    height: 8rem;
}

.logo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-header img{
    width: 4rem;
}

.site-header {
    height: 100vh;
    background: url(../img/carrousel3.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.content-header {
    height: 100vh;
    color: white;
    padding: 2rem 0;
}

.main-section{
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

@media (min-width: 486px) {
    .main-section{
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.bar {
    width: 100%;
    position: -webkit-sticky;
    position: fixed;
    z-index: 1;
    top: 0;
    padding: 2rem 2rem;
}

.bar-text{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bar h2 {
    font-weight: 400;
}

.bar span {
    font-weight: 700;
    color: var(--primary-color);
}

.bar-icon {
    width: 3rem;
}

.bar-icon:hover {
    cursor: pointer;
}

.navbar{
    display: none;
}

.navbar-mobile{
    width: 100%;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    border-bottom-right-radius: 2rem;
    border-bottom-left-radius: 2rem;
    margin-top: 1rem;
}

.logo-header {
    color: #fff;
}

.navbar-mobile a{
    width: 90vw;
    text-align: center;
    margin: 0;
    color: var(--third-color);
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: solid 2px var(--third-color);
}

.navbar-mobile a:hover{
    background-color: var(--primary-color);
}

.navbar-mobile a:last-of-type{
    border-bottom: none;
}

@media (min-width: 486px) {
    .bar-icon {
        display: none;
    }
    .navbar {
        display: block;
    }
    .bar a{
        font-size: 1.5rem;
        margin-right: 4rem;
        color: white;
    }
    
    .bar a:last-of-type{
        margin-right: 0;
    }
    
    
    .navbar a:hover{
        color: var(--primary-color);
        transition: .5s;
    }
    
    .current {
        background-color: var(--primary-color);
        padding: 3rem 2rem;
        border-bottom-right-radius: 2rem;
        border-bottom-left-radius: 2rem;
    }
    
    .current:hover {
        color: #2b2b2b!important;
        transition: .5s;
    }
}



.text-header {
    line-height: 1.5;
}

@media (min-width: 486px) {
    .text-header {
        max-width: 40vw;
    }
}

.icons-header {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

@media (min-width: 486px) {
    .icons-header{
        flex-direction: column;
    }
}

.icons-header img {
    width: 5rem;
}

.icons-header img:hover {
    filter: invert(69%) sepia(51%) saturate(554%) hue-rotate(6deg) brightness(220%) contrast(94%);
    transition: 0.5s;
}


@media (min-width: 486px) {
    .icons-header img {
        width: 5rem;
        margin: 4rem 0;
    }
}

.tooltip {
    position: -webkit-sticky;
    position: fixed;
    width: 5rem;
    bottom: 1rem;
    right: 1rem;
}

@media (min-width: 768px){
    .tooltip {
        width: 7rem;
        bottom: 3rem;
        right: 3rem;
    }
}

.tooltip .tooltiptext {
    visibility: hidden;
    font-weight: 700;
    opacity: 0;
    width: 20rem;
    background-color: #25d366 ;
    color: #fff;
    text-align: center;
    padding: 1rem 0.5rem;
    border-radius: 1rem;
    right: 120%; 
    position: absolute;
    z-index: 1;
}
  
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
    transition: all .5s ease-in-out;
}

.features-section{
    background: url(../img/bg5.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    padding: 2rem 0;
}

.txt-features {
    color: white;
}

.txt-features span{
    font-weight: 700;
    color: var(--third-color);
}

.features {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.feature {
    flex-basis: calc(50% - 2rem);
}

@media (min-width: 486px) {
    .feature {
        flex-basis: calc(33.3% - 4rem);
        
    }
}

@media (min-width: 980px) {
    .feature {
        flex-basis: calc(16.6% - 4rem);
    }
}

/*      About Us Section    */

.format-section{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 6rem;
    margin-bottom: 10rem;
    line-height: 2;
}

.btn-about {
    display: flex;
    justify-content: center;
}

@media (min-width: 768px){
    .btn-about {
        justify-content: flex-start;
    }
}

.content{
    margin-top: 2rem;
}

@media (min-width: 768px){
    .format-section .content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 100rem;
        margin: 0 auto;
    }
    .text-content {
        flex-basis: calc(50% - 2rem);
    }
    .img-content {
        flex-basis: calc(50% - 2rem);
    }
}

.titles{
    border-bottom-style: solid;
    border-bottom-width: 0.5rem;
    border-bottom-color: #64a4dc;
    padding-bottom: 0.2rem;
}

.subtitles{
    margin-top: 1rem;
    margin-bottom: 0;
    color: #31537b;
    text-align: center;
}

.text-box{
    text-align: justify;
    margin-top: 0rem;
    margin-bottom: 4rem;
}

.services{
    margin: 0 auto;
    width: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 4rem;
}

@media (min-width: 768px){
    .services {
        margin-bottom: 2rem;
    }
}

.services p{
    text-align: center;
}

.icon-services{
    text-align: center;
}

.icon-services:hover{
    transition: 1s;
    transform: scale(1.1);
    filter: invert(69%) sepia(51%) saturate(554%) hue-rotate(6deg) brightness(130%) contrast(94%);
}

.format-section .contact{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/*      Divider             */
.divider {
    height: 35vh;
    background-image: url(../img/bg3.jpg);
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
}

/*      Our services Section*/
@media (min-width: 768px){
    .service-content{
        max-width: 120rem;
        flex-wrap: wrap;
    }

    .services {
        flex-basis: calc(33.3% - 4rem);
    }

    .services img {
        width: 15rem;
    }
}
/*      Divider             */

/*      Contact Section     */
@media (min-width: 768px){
    .format-section .contact {
        flex-direction: row-reverse;
        justify-content: space-between;
    }

    .contact-section{
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: center;
    }

    .text-contact {
        text-align: left;
        flex-basis: calc(50% - 2rem);
    }

    .text-contact p {
        max-width: 90%;
    }

    .img-contact {
        flex-basis: calc(50% - 2rem);
    }
} 

/*      Help Section        */
.help-section {
    border-top: 2px #ccc solid;
    border-bottom: 2px #ccc solid;
    margin-bottom: 5rem;
}

.help-content {
    font-size: 2rem;
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .help-content {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    .help-content .content {
        flex-basis: calc(50% - 2rem);
        max-width: 300px;
    }

    .help-content .content p  {
        margin-bottom: 2rem!important;
    }
}

.help-content h2 {
    margin-top: 0rem;
}

.help-content p:first-of-type {
    margin-bottom: 5rem;
}

.help-content a {
    color: var(--primary-color);
}

/*      Contact Form        */

.form-section h2 {
    font-size: 2rem;
    text-align: center;

}

.form input,
select {
    display: block;
    width: 100%;
    padding: 1rem 0 1rem 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    border-radius: 1rem;
    border: 1px solid #ccc;
    

}

.form select:last-of-type {
    margin-bottom: 0.5rem;
}


.form select option:first-child {
    margin: 0;
    color: #999;
}

.form a {
    display: block;
    color: var(--primary-color);
    margin: 0 0 2rem 0;
    padding: 0;
    font-size: 1.4rem;
}

.form input[type="submit"]{
    width: 50%;
    margin: 0 auto;
    padding: 1rem 0;
    cursor: pointer;
}

.brio-form p{
    color: #999!important;
    text-align: center;
    margin: 4rem 0;
    font-size: 1.8rem;
}

.brio-form span { 
    color: var(--primary-color);
    font-weight: 700;
}

/*      Modal Form */         
.modal-content{
    background-color: white;
    position: relative;
    padding: 2rem 1rem 1rem 1rem;
    border-radius: 3rem;
    
}

@media (min-width: 768px) {
    .modal-content {
        width: 60%;
        max-width: 50rem;
    }
}

.modal-content .exit {
    
    display: block;
    text-align: right;
    font-size: 2rem;
    margin-right: 1rem;
}

.modal{
    background-color: rgba(0,0,0, 0.8);
    position:fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    top:0;
    right:0;
    bottom:0;
    left:0;
    opacity:0;
    pointer-events:none;
    transition: all 1s;
    z-index: 1;
}
#modal-float:target{
    opacity: 1;
    pointer-events:auto;

}

/*      Footer              */
.site-footer {
    background-color: var(--primary-color);
}

.footer-content {
    text-align: center;
    padding: 3rem 0 0 0;
}

.footer-content p{
    margin: 0 0 3rem 0;
    color: white;
    font-size: 2.4rem;
}

.footer-content span {
    margin: 0;
    color: white;
    font-weight: 700;
}

@media (min-width: 768px) {
    .social-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0  0 0 5rem;
    }

    .social-bar .logo {
        display: flex;
        flex-basis: calc(80% - 1rem);
        
    }

    .social-media {
        display: flex;
        flex-basis: calc(20% - 1rem);
        justify-content: center;
        margin-bottom: 0;
        width: 50%;
    }

    .social-media img {
        width: 4rem;
    }

}


.social-media {
    display: flex;
    width: 50%;
    margin: 0 auto;
    justify-content: space-between;
    margin-bottom: 3rem;
}  

.social-media a {
    width: calc(33% - 2rem);
}

.linea {
    border-top: 1px white solid;
}

@media (min-width: 768px) {
    .linea {
        border-top: 3px white solid;
    }
}

@media (min-width: 468px) {
    .bar-info {
        padding: 0;
    }
}

@media (min-width: 768px) {
    .bar-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 1rem;
    }

    .bar-info a {
        display: block;
        text-align: left;
    }
}

.footer-infof,
.footer-infol {
    display: flex;
    flex-direction: column;
}

.footer-infof {
    width: 50%;
    margin: 0 auto;
  
    padding-top: 3rem;
    text-align: center;
    line-height: 3.5;
    margin-bottom: 0rem;
}

.footer-infol {
    width: 50%;
    margin: 0 auto;
    text-align: center;
    line-height: 3.5;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .footer-infof,
    .footer-infol {
        display: flex;
        flex-direction: column;
        margin: 2rem 0;
        padding: 0;
    }
}

.footer-infof a,
.footer-infol a {
    color: white;
}

.copy {
    color: white;
    width: 100%;
    height: max-content;
    display: flex;
    justify-content: center;
    font-size: 1.6rem;
}

.copy p{
    font-size: 1.6rem;
}

@media (min-width: 768px) {
    .copy {
       
        align-items: flex-start;
        justify-content: right;
        font-size: 1.6rem;
    }
}


/* EXTERNAL PAGES */

/* About us page */

.about-main {
    font-size: 1.8rem;
}

.about-hero {
    background: url(../img/bg2.jpg);;
    background-position: center center;
    background-size: cover;
    height: 30vh;
}

.about-hero-2 {
    background: url(../img/bg1.jpg);;
    background-position: center center;
    background-size: cover;
    height: 30vh;
}

@media (min-width: 768px){
    .about-hero, .about-hero-2 {
        height: 50vh;
    }
}

#our-services {
    border-top: 2px var(--primary-color) solid;   
    padding-top: 8rem;
}

@media (min-width: 768px) {
    .our-services .services {
        display: flex;
        flex-direction: row;
        flex-basis: 100%;
        justify-content: space-around;
        margin-bottom: 4rem;
        border-bottom: 2px #777 solid;
        padding:  0 0 4rem 0;
    }

    .our-services .services:last-of-type{
        border-bottom: none;
    }
    
    .our-services .services img {
        flex-basis: 30%;
    }
    
    .service-content {
        flex-basis: 50%;
    }

    .service-content h3 {
        margin-bottom: 3rem;
    }

    .service-content p {
        text-align: justify;
        margin-bottom: 2rem;
        font-size: 1.8rem;
    }

    .service-content ul {
        margin-top: 3rem;
    }

    .service-content li {
        list-style: circle;
    }

    .service-content li p {
        text-align: left;
        line-height: 0.5;
    }

    /* Frequent Questions */
    .questions {
        max-width: 100rem;
        margin: 0 auto;
    }

    .questions h3{
        color: var(--primary-color);
    }

    .questions p{
        font-size: 1.8rem;
    }
}

/* Successful */
.mail-send {
    width: 30%;
}
