/*-------------GENERALES WEB--------*/
*,*:before,*:after{
    box-sizing:border-box;
    margin:0;
    padding:0;
  }
:root {
    --logo-bgcolor: #ffffff;
    --logo-width: 80vw;
    --logo-lines-height: 0.5vw;
    --logo-lines-margin: 0.4vw;
    --logo-lines-scale: 0.3vw;
    --web-bgcolor:#143d58;
    --section-fontsize: 1.5rem;
    --shadow-color: #383333;
}
@font-face {
    font-family: "Montserrat";
    src: url(../webfont/Montserrat-Regular.ttf) format("truetype");
    font-display: swap;
}
/*-------------GENERALES PAGINA--------*/
html {
    scroll-behavior: smooth;
    font-family: 'Montserrat',Helvetica,Arial,Lucida,sans-serif !important;
}

body {
    background-color: var(--web-bgcolor);
}

a{
    text-decoration: none;
}

/*-------------CONTENIDO WEB--------*/
#content {
    position: absolute;
    z-index: -5;
    left: 0;
    right: 0;
}
/*-------------LOGO PORTADA--------*/
#inicio{
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(#143d58,rgb(37 57 71 / 70%),#143d58), url(../img/fotos/Portada.jpg);
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center !important;
}
/* #insaf{
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center !important;
    background: linear-gradient(#143d58,rgb(37 57 71 / 70%),#143d58), url(../img/fotos/Portada.jp2);
} */
#portada{
    display: flex;
    flex-direction: column;
}
#logo, h1, h2, #moto{
    margin: 0 auto;
}
#logo{
    width: 10%;
    background-color: #ffffff;
    padding: 00.5vw;
    border-radius: 10%;
    margin-top:5%;
}
h1, h2{
    color: #ffffff;
    width: max-content;
}
h1{
    font-size: 8vw;
}
h2{
    font-size: 2vw;
}
p{
    text-align: justify;
}
#moto{
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    align-items: baseline;
    width: 70%;
    margin: 2% auto;
}
.moto{
    text-align: center;
    width: 30%;
}
.moto img{
    width: 20%;
}
.sct{
    width: 80%;
    color: #143d58;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 1%;
    margin: 0 auto;
    margin-top: 7%;
}
.sct.rrss{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 50%;
    margin-bottom: -5%;
}
.rrss a{
    width: 10%;
    min-width: 40px;
    max-width: 70px;
}
/* .sct1{
    background-image: url("../img/fotos/nosotros.jpg");
    background-repeat: no-repeat;
    background-size: cover;
}*/
.article{
    display: flex;
    align-items: center;
}
/* .article img{
    width: 50%;
} */
.article button img{
    width: 100%;
}
.article .txt{
    padding: 4%;
    width: 100%;
    display: grid;
    line-height: 2.2em;
}
.article button{
    margin: 0 auto;
    margin-top: 10%;
    width: 20%;
    font-size: 1vw;
    padding: 2%;
    background-color: #143d58;
    border: none;
    border-radius: 10px;
    outline: none;
    transition: 0.4s;
}

.article button:hover{
    cursor: pointer;
    box-shadow: 1vw 0.5vw 1vw var(--shadow-color);
    transition: 0.4s;
}
.sct h2{
    margin: initial;
    color: #143d58;
    margin: 0 auto;
    font-size: max(2.5vw, 30px);
}
.line {
    height: var(--logo-lines-height);
    margin: var(--logo-lines-margin) auto;
    border: none;
    background-color: #143d58;
    border-radius: 10px;
    margin-bottom: 3%;
}
.accordion {
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    transition: 0.4s;
}
.accordion h3:after {
    content: '\002B';
    color: #143d58;
    font-weight: bold;
    float: right;
  }
button.accordion{
    font-family: 'Montserrat',Helvetica,Arial,Lucida,sans-serif !important;
    color: #fff;
    background: linear-gradient(17deg, rgba(20,61,88,1) 0%, rgba(20,61,88,1) 68%, rgba(255,255,255,1) 100%);
    border-radius: 10px;
}
.accordion h3{
    font-size: max(1.5vw, 15px);
}
.active h3:after {
    content: "\2212";
  }
.panel {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    margin-bottom: 3%;
    line-height: 2.2em;
    margin: 2vh 0;
}
.fotosSer{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
}
.fotosSer img{
    width: 30%;
    height: initial;
    margin: 2% 0;
    min-width: 300px;
}
#cardslider{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    height: 75vh;
    overflow-y: scroll;
}

#cardslider::-webkit-scrollbar{
    width: 20px;
}
/* Track */
#cardslider::-webkit-scrollbar-track {
   
    border-radius: 10px;
  }
  /* Handle */
#cardslider::-webkit-scrollbar-thumb {
    background: #143d58; 
    border-radius: 10px;
}
.card{
    width: 300px;
    text-align: center;
    margin: 4% 5%;
}
.card img{
    width: 80%;
}
.card h4{
    /* width: 300px; */
    font-size: max(1.5vw, 30px);
}

.wrapper {
    width: 100%;
}

.youtube {
    background-color: #000;
    margin: 10% 0;
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    cursor: pointer;
}
.youtube img {
    width: 100%;
    top: -16.82%;
    left: 0;
    opacity: 0.7;
}
.youtube .play-button {
    width: 90px;
    height: 60px;
    background-color: #333;
    box-shadow: 0 0 30px rgba( 0,0,0,0.6 );
    z-index: 1;
    opacity: 0.8;
    border-radius: 6px;
}
.youtube .play-button:before {
    content: "";
    border-style: solid;
    border-width: 15px 0 15px 26.0px;
    border-color: transparent transparent transparent #fff;
}
.youtube img,
.youtube .play-button {
    cursor: pointer;
}
.youtube img,
.youtube iframe,
.youtube .play-button,
.youtube .play-button:before {
    position: absolute;
}
.youtube .play-button,
.youtube .play-button:before {
    top: 50%;
    left: 50%;
    transform: translate3d( -50%, -50%, 0 );
}
.youtube iframe {
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
}
#contactohide{
    display: none;
    
}
#contactoshow{
    display: flex;
    flex-direction: row;
}
#form{
    width: 50%;
    font-family: 'Montserrat',Helvetica,Arial,Lucida,sans-serif !important;
    font-size: max(1vw, 16px);
}
#info h4{
    font-size: max(2vw, 20px);
}
#info > *{
    margin: 2% 0%;
}
form{
    display: grid;
}
form input, form textarea, #seleccion{
    border: 2px solid #143d58;
    padding: 1%;
    border-radius: 10px;
    font-family: 'Montserrat',Helvetica,Arial,Lucida,sans-serif !important;
    font-size: max(1vw, 16px);
    margin: 2% auto;
    width: 90%;
/*     border: none;
    border-bottom: 2px solid  #143d58; */
}
form input:focus, form textarea:focus, #seleccion:focus{
    outline: none;
    background-color: beige;
}
#seleccion{
    border: 2px solid #143d58;
    padding: 1%;
    border-radius: 10px;
    appearance: none;
    background: url(../img/Arrowdropdown.svg) 96% / 5% no-repeat;
}
#seleccion:hover{
    cursor: pointer;
}
.conlink button:after{
    content: '\2BC0';
    color: #143d58;
    font-weight: bold;
    float: right;
}
#seleccion option{
    border: 2px solid #143d58;
    padding: 1%;
    border-radius: 10px;
}
#seleccion:after{
    content: '\25CF';
    color: #143d58;
    font-weight: bold;
    float: left;
}
.conlink{
    display: flex;
    align-items: center;
}
.conlink span img{
    width: 1vw;
    min-width: 20px;
}
.conlink button{
    margin-left: 2%;
    background-color: transparent;
    font-family: 'Montserrat',Helvetica,Arial,Lucida,sans-serif !important;
    font-size: max(1vw, 16px);
    border: none;
    float: left;
}
.conlink button:after {
    content: '';
    display: block;
    margin: auto;
    height: 3px;
    width: 0px;
    background: transparent;
    transition: width .5s ease, background-color .5s ease;
}
.conlink button:hover:after {
    width: 100%;
    background: #143d58;
  }
.conlink button:hover{
    cursor: pointer;
}
.conlink button:focus{
    outline: none;
}
#envio{
    width: 30%;
    margin: 0 auto;
}
#envio:hover{
    cursor: pointer;
}
#mapa{
    width: 50%;
    text-align: center;
}
#mapa button{
    width: 30%;
    min-width: 100px;
    background: transparent;
    /* border: none; */
    margin: 3%;
    padding: 2%
}
#mapa button:hover{
    cursor: pointer;
}
#mapa button:focus{
    outline: none;
}
#mapa button img{
    width: 100%;
    min-width: 70px;
}
#mapa iframe{
    width: 100%;
    height: 100%;
    min-height: 450px;
}
#fondomodalshow{
    width: 100vw;
    height: 100vh;
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
    background-color: #0000005c;
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    visibility: visible;
    opacity: 1;
    transition: 0.1s ease-in;
}
#fondomodalhide{
    /* display: none; */
    width: 100vw;
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
    background-color: #0000005c;
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    visibility: visible;
    opacity: 0;
    height: 0;
    transition: 0.1s ease-in;
}
#modalshow{
    /* width: 30%;
    height: 30%; */
    background-color: #ffffff;
    position: absolute;
    padding: 3%;
    width: 40%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    border-radius: 10px;
}
#modalhide{
    background-color: #ffffff;
    position: absolute;
    padding: 3%;
    width: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    border-radius: 10px;
}
#modalshow p, #modalhide p{
    text-align: center;
    margin: 2%;
}
#modalshow button, #modalhide button{
    width: auto;
    background-color: #143d58;
    font-family: 'Montserrat',Helvetica,Arial,Lucida,sans-serif !important;
    font-size: max(1vw, 16px);
    color: #fff;
    margin: 0 auto;
    margin-top: 5%;
    border-radius: 10px;
    padding: 2%;
}
#modalshow button:hover{
    cursor: pointer;
}
#modalshow button span, #modalhide button span{
    margin: 0 auto;
}
footer{
    margin: 0 auto;
    width: 90%;
    margin-top: 5%;
    background-color: #ffffff;
    border-radius: 10px 10px 0 0;
    padding: 1%;
    text-align: center;
}
footer img{
    width: 7%;
    min-width: 100px;
}
footer p{
    color: #143d58;
    text-align: center;
}
/*-------------HEADER--------*/

@media screen and (min-width: 992px) {

    
    .menu-movil {
        top: 1.5vw;
        position: fixed;
        width: 90%;
        right: 0;
        left: 0;
        margin: 0 auto;
        background-color: var(--logo-bgcolor);
        border: 0.5vw solid var(--logo-bgcolor);
        border-radius: 1vw;
        box-shadow: 1vw 0.5vw 1vw var(--shadow-color);
    }
    
    .menu-movil ul {
        display: flex;
        justify-content: space-around;
        padding: 0;
    }
    
    .menu-movil ul li {
        list-style: none;
        padding: 0.5vw;
        border:none !important;
    }
    
    .menu-movil ul li a, .menu-movil ul ul li a {
        border-radius: 0%;
        padding: 0.5vw;
        font-size: max(1.5vw, 16px);
    }
    
    ul li:hover > a{
        box-shadow: 0vw 0vw 0.5vw 0.5vw #143d58;
        background-color: #143d58;
        color: #ffffff;
        transition: .3s ease-in;
    }
    .menu-movil ul li a:hover, .menu-movil #logo2show{
        cursor: pointer;
    }
    .menu-movil #logo2hide{
        width: 0%;
        transition: .3s ease-in;
    }
    .menu-movil #logo2show{
        width: 3%;
        transition: .3s ease-in;
    }
    .menu-movil ul ul {
        display: none;
        flex-direction: column;
        position: absolute;
        background-color: #ffffff;
        border:0.2vw solid rgba(20, 61, 88, 1);
        top: 4.4vw;
        border-radius: 1vw;
        box-shadow: 1vw 0.5vw 1vw var(--shadow-color);
    }
    
    /* Display Dropdowns on Hover */
    header ul li:hover > ul {
        display:flex;
    }
    
    /* Fisrt Tier Dropdown */
    header ul ul li {
        list-style: none;
        justify-content: flex-start;
        position: relative;
    }
    .menu-movil #logo{
        display: none;
    } 
}

                        /*-----------MOBILE QUERIES---------*/
@media screen and (max-width: 1250px) {
    .article{
        flex-direction: column-reverse;
    }
    #contactoshow{
        flex-direction: column;
    }
    #form{
        width: 100%;
    }
    #mapa{
        width: 100%;
        margin-top: 10%;
    }
    #modal{
        width: 60%;
    }
}
@media screen and (max-width: 992px) {
    #fondomenuhide{
        width: 100vw;
        height: 100vh;
        position: fixed;
        z-index: 1;
        top: 0;
        left: 0;
        background-color: transparent;
        backdrop-filter: blur(3px);
        visibility: visible;
        opacity: 1;
        transition: opacity 0.6s ease-in;
    }
    #fondomenushow{
        width: 0;
        position: fixed;
        z-index: 10;
        top: 0;
        left: 0;
        background-color: #0000005c;
        backdrop-filter: blur(3px);
        display: flex;
        align-items: center;
        visibility: visible;
        opacity: 0;
        height: 100vh;
        transition: opacity 0.6s ease-in;
    }
    .menu-movil {
        z-index: 8;
        background: #ffffff;
        max-width: 60%;
        opacity: 0;
        height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        transform: translateX(-100%);
        justify-content: center;
        transition: all 0.4s ease 0.1s;
        overflow: auto;
        position: fixed;
    }
      
    .change ~ .menu-movil {
        transform: translateX(0%);
        opacity: 1;
    }
    .menu-movil ul {
        margin: 0;
        list-style: none;
        font-size: 30px;
        text-align: left;
        line-height: 2em;
    }

    .menu-movil ul li ul{
        margin-left: 10%;
    }

    .menu-movil ul li ul a, .menu-movil ul li a{
        cursor: pointer;
    }
    .btmenu {
        background-color: #ffffff;
        width: 15%;
        max-width: 60px;
        padding: 3%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        /*padding: 8px 16px;*/
        position: fixed;
        cursor: pointer;
        z-index: 10;
        margin: 5% 0%;
        border-radius: 10px;
        transition: all 0.4s;
        box-shadow: 1vw 0.5vw 1vw var(--shadow-color);
    }

    .linea {
        display: block;
        width: 7vw;
        max-width: 30px;
        background: #143d58;
        height: 2px;
        margin: 5px 5px;
        transition: all 0.4s ease;
      }
      .change .primera {
        transform: rotate(45deg) translate(0px, 0px);
      }
      
      .change .segunda {
        transform: rotate(-45deg) translate(8px, -8px);
      }
    .btmenu.change{
        box-shadow: none;
    }
    .menu-movil #logo{
        cursor: pointer;
        min-width: 100px;
        max-width: 30%;
    }
    .menu-movil #logo2show, .menu-movil #logo2hide{
        display: none;
    }
}
                          
/* On screens that are 600px wide or less, make the columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
    .menu-movil{
        max-width: 80%;
    }
    .sct.rrss{
        width: 70%;
    }
    h2{
        font-size: max(1vw, 15px);
        width: 100%;
        margin: 0 auto;
        text-align: center;
    }
    h1{
        font-size: max(20vw, 50px);
    }
    #logo{
        width: 25%;
    }
    .moto{
        width: 50%;
        margin: 5% 0;
    }
    .moto img{
        width: 40%;
    }
    #moto{
        flex-wrap: wrap;
        margin-top: 0;
    }
    .card{
        margin: 10% 5%;
    }
    .card h4{
        /* width: 300px; */
        font-size: max(2vw, 20px);
    }
    button.accordion{
        font-size: max(4vw, 15px);
    }
    footer img{
        width: 30%;
    }
    p{
        font-size: max(3vw, 15px);
    }
    #modalshow{
        width: 70%;
    }
    #modalshow button{
        padding: 5%;
    }
}