@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@700&family=Montserrat:wght@400;700&family=Poppins:wght@300;400;600;700&display=swap');

:root{

    --color-title:#0075c9;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Baloo 2', cursive;
    font-family: 'Montserrat', sans-serif;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
}
/*slider*/
body{
    display: flex;
    align-items: center;
    justify-content: center;
}

img{
    max-width: 100%;
}

.container_all{
    position: relative;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    overflow: hidden;
}

.slider{
    position: relative;
    width: 100%;
    overflow: hidden;
}
.slide{
    display: flex;
    transform: translate3d(0, 0, 0);
    transition: all 600ms;
    animation-name: autoplay;
    animation-duration: 6.5s;
    animation-direction: alternate;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
}

.item_slide{
    position: relative;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    flex-grow: 0;
    max-width: 100%;
}

.pagination{
    position: absolute;
    bottom: 20px;
    left: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.pagination_item{
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid white;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 10px;
    text-align: center;
    transition: all 300ms;
}

.pagination_item:hover{
    transform: scale(2);
}

.pagination_item img{
    display: inline-block;
    max-width: none;
    height: 100%;
    transform: scale(1);
    opacity: 0;
    transition: all 300ms;
}

.pagination_item:hover img{
    opacity: 1;
    transform: scale(1);
}

input[id="1"]:checked ~ .slide{
    animation: none;
    transform: translate3d(0, 0, 0);
}

input[id="1"]:checked ~ .pagination .pagination_item[for="1"]{
    background: #fff;
}

input[id="2"]:checked ~ .slide{
    animation: none;
    transform: translate3d(calc(-100% * 1), 0, 0);
}

input[id="2"]:checked ~ .pagination .pagination_item[for="2"]{
    background: #fff;
}

input[id="3"]:checked ~ .slide{
    animation: none;
    transform: translate3d(calc(-100% * 2), 0, 0);
}

input[id="3"]:checked ~ .pagination .pagination_item[for="3"]{
    background: #fff;
}



@keyframes autoplay{
    33%{
        transform: translate3d(calc(-100% *0),0 ,0);
    }

    66%{
        transform: translate3d(calc(-100% *1),0 ,0);
    }

    100%{
        transform: translate3d(calc(-100% *2),0 ,0);
    }
    
}

header{
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: #fff;
    z-index: 10;
}

/*header superior*/

.header_superior{
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}
.logo img{
    width: 150px;
}

.bajada_logo{
    color: var(--color-title);
    font-size: 25px
}

/*barra menu*/

.container_menu{
    width: 100%;
    height: 70px;
    background: #0073BB;
    padding: 0px 20px;
}

.menu{
    max-width: 1200px;
    margin: auto;
    height: 100%;
}
nav{
    height: 100%;
}

nav > ul{
    height: 100%;
    display: flex;
}

nav ul li{
    height: 100%;
    list-style: none;
    position: relative;
}

nav > ul > li:first-child > a{
    background-image: url(../img/home.png);
    background-size: 24px;
    background-repeat: no-repeat;
    background-position: center center;
    padding: 20px 40px;
}

nav > ul > li:first-child:hover > a{
    background-image: url(../img/home.png);
    background-size: 24px;
    background-repeat: no-repeat;
    background-position: center center;
}

nav > ul > li > a{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 14px;
    color: white;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 300ms ease;
}

nav > ul > li > a:hover{
    transform: scale(1.1);
    background: #00953A;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
}

#selected{
    transform: scale(1.1);
    background-color: #00953A;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
}

/*submenu*/

nav ul li ul{
    width: 280px;
    display: flex;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 90px;
    left: -5px;
    padding: 14px 0px;
    visibility: hidden;
    opacity: 0;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
    z-index: 10;
    transition: all 300ms ease;
}

nav ul li:hover ul{
    visibility: visible;
    opacity: 1;
    top: 70px;
}

nav ul li ul:before{
    content: '';
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 12px solid white;
    position: absolute;
    top: -12px;
    left: 20px;
}

nav ul li ul li a{
    display: block;
    color: #0073BB;
    padding: 6px;
    padding-left: 14px;
    margin-top: 10px;
    font-size: 13px;
    text-transform: uppercase;
    transition: all 300ms ease;
}

nav ul li ul li a:hover{
    background: #00953A;
    color: #fff;
    transform: scale(1.1);
    padding: 15px;
    font-size: 13px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
}


/* elementos responsivos*/

.icon_menu{
    font-size: 26px;
    color: white;
    cursor: pointer;
    width: 26px;
    height: 100%;
    display: none;
    align-items: center;
}

#label_check{
    width: 26px;
    height: 100%;
    display: none;
}

#check_menu{
    display: none;
}

.cta{
    display: inline-block;
    background-color: #0075c9;
    justify-self: center;
    color: #fff;
    text-decoration: none;
    padding: 13px 30px;
    border-radius: 32px;
    margin-top: 20px;
}

/* Empresa*/

.about {
    text-align: center;
}

.subtitle {
    color: var(--color-title);
    font-size: 2rem;
    margin-top: 50px;
    margin-bottom: 25px;
}


.about_paragraph {
    line-height: 1.7;
    padding: 0 20px;
}

.about_paragraph_nos {
    line-height: 1.5;
    padding: 0 5px;
    text-align: justify;
}

.about_main {
    padding-top: 80px;
    display: grid;
    width: 90%;
    margin: 0 auto;
    gap: 1em;
    overflow: hidden;
    grid-template-columns: repeat(auto-fit, minmax(260px, auto));
}


.about_icons {
    display: grid;
    gap: 1em;
    justify-items: center;
    width: 260px;
    overflow: hidden;
    margin: 0 auto;
}

.about_icon {
    width: 60px;
}

/* Servicios*/

.contenedor_tabla{
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    padding: 200px;
}

main{
    padding: 1em 2em;
}

table{
    width: 1000px;
    border-collapse: collapse;
}

thead{
    background: #00953A;
    color: #fff;
}
td, th{
    padding: 5px 10px;
    border:  1px solid grey;
}

@media (max-width: 30em){
    .contenedor_tabla{
        width: 100%;
        padding: 0;
    }

    table{
        width: 100%;
    }

    table tr{
        display: flex;
        flex-direction: column;
        border:  1px solid grey;
        padding: 1em;
        margin-bottom: 1em;
    }

    td, th{
        padding: 5px 10px;
        border:  none
    }

    table td[data-titulo]{
        display: flex;
    }

    table td[data-titulo]::before{
        content: attr( data-titulo );
        width: 170px;
    }

    table thead{
        display: none;
    }
}

/* Acreditaciones*/

.container_card{
    max-width: 1400px;
    background: #c0c7ca;
    margin: auto;
    margin-top: 100px;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding-bottom: 50px;
}

.card_father{
    margin: 20px;
    perspective: 1000px;
}

.card_father:hover .card{
    transform: rotateY(180deg);
}


.card{
    width: 260px;
    height: 335px;
    position: relative;
    transform-style: preserve-3d;
    transition: all 600ms;
}

.card_front{
    background-size: cover;
    background-position: center;
}


.card_front,
.card_back{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    border-radius: 20px;
}

.card_back{
    transform: rotateY(180deg);
    background: white;
}

.body_card_front{
    width: 100%;
    height: 100%;
    text-align: center;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    transform: translateZ(60px);
}

.bg{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0,0,0,0.4);
    border-radius: 20px;
}

.body_card_back{
    padding: 40px 10px;
    text-align: center;
    transform: translateZ(60px);
}

.body_card_back p{
    margin-top: 30px;
    font-size: 15px;
}

.body_card_back input{
    padding: 10px 30px;
    margin-top: 30px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    color: white;
    background: #0073BB;
    box-shadow: 1px 1px 30px -5px #58B0F6;
    border-radius: 10px;
    transition: box-shadow 600ms;
}

.body_card_back input:hover{
    box-shadow: 1px 1px 30px 0px #449de6;
}

/* Intranet*/

.intranet{
    background-color: #e5e5f7;
    background-image:  radial-gradient(#444cf7 0.5px, transparent 0.5px), radial-gradient(#444cf7 0.5px, #e5e5f7 0.5px);
    background-size: 20px 20px;
    background-position: 0 0,10px 10px;
    overflow: hidden;
    padding: 80px 0 ;
}

.intranet_container{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
    align-items: center;
}

.intranet_picture{
    max-width: 500px;
}

.intranet_paragraph{
    line-height: 1.7;
    margin-bottom: 15px;
}

.intranet_img{
    width: 100%;
    display: block;
}
/* galeria */

.galeria{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    width: 95%;
    margin: auto;
    grid-gap: 10px;
    padding: 40px 0;
    overflow: hidden;
}

.galeria > a {
    display: block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 6px rgba(0, 0, 0, .5);
}

.galeria img{
    width: 100%;
    vertical-align: top;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s;
}

.galeria a:hover img{
    filter: blur(1px);
    transform: rotate(10deg) scale(1.2);
}

.light-box{
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    transition: transform .3s ease-in-out;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0);
}

.light-box img{
    width: auto;
    max-height: 70vh;
}

.light-box:target{
    transform: scale(1);
}
.close{
    display: block;
    position: absolute;
    top: 40px;
    right: 40px;
    background: #00953B;
    color: #fff;
    text-decoration: none;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    border-radius: 50%;
}

.next{
    display: block;
    background: #00953B;
    color: #fff;
    height: 30px;
    width: 30px;
    line-height: 30px;
    text-decoration: none;
    text-align: center;
}

/* contacto*/

.contact{
    background-color: #e5e5f7;
}

.contact_in{
    width: 90%;
    height: auto;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    padding: 10px 0 50px 0;
    border-radius: 10px;
    background: #e5e5f7;
    margin-bottom: 150px;
}

.contact_map{
    width: 100%;
    height: auto;
    flex: 50%;
}

.contact_map iframe{
    width: 100%;
    height: 100%;
    border-radius: 22px;
    padding: 0 10px;

}

.contact_form{
    width: 100%;
    height: auto;
    flex: 50%;
}

.contact_form h1{
    margin-bottom: 10px;
}

.contact_form_text{
    width: 95%;
    height: 40px;
    color: #000;
    border: 1px solid #bcbcbc;
    border-radius: 10px;
    outline: none;
    margin-bottom: 20px;
    padding: 15px;
}

.contact_form_btn{
    display: inline-block;
    background-color: #0075c9;
    justify-self: center;
    color: #fff;
    text-decoration: none;
    padding: 13px 30px;
    border-radius: 32px;
    border: none;
    outline: none;
    cursor: pointer;
 }

 .btn_mail{
    display: inline-block;
    background-color: #0075c9;
    justify-self: center;
    color: #fff;
    text-decoration: none;
    padding: 13px 30px;
    border-radius: 5px;
    border: none;
    outline: none;
    cursor: pointer;
    margin-bottom: 10px;
 }

.contact_form_textarea{
    width: 95%;
    height: 130px;
    color: #000;
    border: 1px solid #bcbcbc;
    border-radius: 10px;
    outline: none;
    margin-bottom: 20px;
    padding: 15px;
    font-family: 'Poppins', sans-serif;
}

.elije_area{
    width: 95%;
    height: 50px;
    color: rgb(59, 56, 56);
    border: 1px solid #bcbcbc;
    border-radius: 10px;
    outline: none;
    margin-bottom: 20px;
    padding: 5px 15px;
    font-family: 'Poppins', sans-serif;
}

/* footer*/

.pie_pagina{
    width: 100%;
    background-color: #0a141d;
}

.pie_pagina .grupo_1{
    width: 100%;
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 50px;
    padding: 45px 0;
}

.pie_pagina .grupo_1 .box figure{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pie_pagina .grupo_1 .box figure img{
    width: 160px;
}

.pie_pagina .grupo_1 .box h2{
    color: #fff;
    margin-bottom: 25px;
    font-size: 20px;
}

.pie_pagina .grupo_1 .box p{
    color: #efefef;
    margin-bottom: 10px;
}

.pie_pagina .grupo_1 .red_social a{
    display: inline-block;
    text-decoration: none;
    width: 45px;
    height: 45px;
    line-height: 45px;
    color: #fff;
    margin-right: 10px;
    background-color: #0d2033;
    text-align: center;
    transition: all 300ms ease;
}

.pie_pagina .grupo_1 .red_social a:hover{
    color: #0073BB;
}
.pie_pagina .grupo_2{
    background-color: #0a1a2a;
    padding: 15px 10px;
    text-align: center;
    color: #fff;
}

.pie_pagina .grupo_2 small{
    font-size: 12px;
}

a{
    font-size: 12px;
    color: #fff;
}

.contenedor_menu{
    text-decoration: none;
    width: 50%;
    min-width: 300px;
    margin: 50px;
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    line-height: 16px;
    color: #fff;
}

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

    .header_superior{
        padding: 10px;
    }

    .logo img{
        width: 100px;
    }

    .bajada_logo{
        color: var(--color-title);
        font-size: 15px;
        text-align: center;
    }

    nav > ul{
        flex-direction: column;
        background-color: #0073BB;
        position: fixed;
        left: 0;
        top: 135px;
        width: 100%;
        height: 0px;
        transition: all 300ms ease;
        z-index: 100;
        opacity: 0;
        visibility: hidden;
        overflow-y: auto;
    }

    nav > ul > li > a:hover{
        transform: scale(1);
        
    }

    nav ul li ul{
        left: 90px;
    }

    nav > ul > li:hover ul{
        top: 65px;
    }

    nav > ul > li:first-child a{
        background-position: 20px;
    }
    #selected{
        transform: scale(1);
    }

    #label_check{
        display: block;
    }

    .icon_menu{
        display: flex;
    }

    #check_menu:checked ~ nav > ul{
        height: 390px;
        visibility: visible;
        opacity: 1;
    }

    .main{
        margin-top: 153px;
    }

    .bajada_logo {
        font-size: 15px;
        line-height: normal;
    }

    .slider{
        position: relative;
        max-width: 1200px;
        width: 100%;
        overflow: hidden;
    }
    
    .pie_pagina .grupo_1{
        width: 90%;
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 30px;
        padding: 35px 0;
    }

    
    
    @media (max-width: 30em){
        table{
            width: 100%;
        }
    
        table tr{
            display: flex;
            flex-direction: column;
            border:  1px solid grey;
            padding: 1em;
            margin-bottom: 1em;
        }
    
        table td[data-titulo]{
            display: flex;
        }
    
        table td[data-titulo]::before{
            content: attr( data-titulo );
            width: 170px;
        }
    
        table thead{
            display: none;
        }
    }
}
