/*import de la fuente, google fonts*/
@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200..1000;1,200..1000&display=swap');

/*estilos para efecto scroll en todo el html*/
html {
    scroll-behavior: smooth;
}

/*estilos para el body, fuente imagen y color de fondo*/
body {
    font-family: Mulish;
    margin: 0;
    margin-left: 0;
}

body::-webkit-scrollbar {
    display: none;
}

/*Estilos para el header*/
.header {
    background-color: #fff;
    box-shadow: 1px 1px 4px 0 rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 3;
    top: 0;
    left: 0;
}

/*lista de elementos del header*/
.header ul {
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: hidden;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/*enlaces header*/
.header li a {
    display: block;
    border-right: 1px solid #f4f4f4;
    text-decoration: none;
    margin-top: 20px;
}

.enlace {
    text-decoration: none;
    color: #005fc2;
    transition: all .1s ease-in-out;
}

/*estilos para despues del hover*/
.enlace:after {
    content: "";
    display: block;
    height: 3px;
    background-color: #005fc2;
    transform: scale(0, 1);
    transform-origin: left;
    transition: transform .25s;
}

.enlace:hover::after {
    transform: scale(1, 1);
}

/*estilos para el logo del header*/
.header .logo {
    display: block;
    float: left;
    font-size: 2em;
    padding: 10px 20px;
    text-decoration: none;
}

#logo {
    width: 300px;
    height: auto;
}

/* menu */
.header .menu {
    clear: both;
    max-height: 0;
    transition: max-height .2s ease-out;
    flex-direction: column;
    margin-bottom: 10px;
}

/* menu icon */
.header .menu-icon {
    cursor: pointer;
    float: right;
    padding: 28px 20px;
    position: relative;
    user-select: none;
    margin-top: 20px;
}

.header .menu-icon .navicon {
    background: #005fc2;
    display: block;
    height: 2px;
    position: relative;
    transition: .2s ease-out;
    width: 18px;
}

/*boton del menu responsive*/
.header .menu-icon .navicon:before,
.header .menu-icon .navicon:after {
    background: #005fc2;
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
}

.header .menu-icon .navicon:before {
    top: 5px;
}

.header .menu-icon .navicon:after {
    top: -5px;
}

/* menu btn */
.header .menu-btn {
    display: none;
}

.header .menu-btn:checked~.menu {
    max-height: 240px;
}

.header .menu-btn:checked~.menu-icon .navicon {
    background: transparent;
}

.header .menu-btn:checked~.menu-icon .navicon:before {
    transform: rotate(-45deg);
}

.header .menu-btn:checked~.menu-icon .navicon:after {
    transform: rotate(45deg);
}

.header .menu-btn:checked~.menu-icon:not(.steps) .navicon:before,
.header .menu-btn:checked~.menu-icon:not(.steps) .navicon:after {
    top: 0;
}


@media (min-width: 76.5em) {
    .header li {
        float: left;
    }

    .header li a {
        padding: 20px 30px;
    }

    .header .menu {
        clear: none;
        float: right;
        max-height: none;
        flex-direction: row;
        margin-top: 10px;
    }

    .header .menu-icon {
        display: none;
    }

    #logo {
        width: 300px;
        height: auto;
        margin-top: 10px;
    }
}


/*estilos contenido de la pagina*/

.tituloPrincipal {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
    border: solid 7px #005fc2;
    color: #005fc2;
    font-weight: bold;
    margin-bottom: 40px;
    margin-top: 180px;
    border-right: none;
    border-left: none;
}

/*estilos presentación*/

.presentacion {
    width: 100%;
    margin-bottom: 40px;
    box-shadow: 2px 2px 5px 3px rgba(0, 0, 0, .1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.info {
    margin-left: 30px;
    margin-right: 30px;
    margin-top: 0;
    margin-bottom: 0;
    padding: 50px;
}

.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    grid-gap: 20px;
    padding: 20px;
    justify-items: center;
}

.imgGaleria {
    width: 100%;
    height: 100%;
}

.titulo {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    background-color: #005fc2;
    color: white;
    font-weight: bold;
    margin-bottom: 20px;
    margin-top: 60px;
    box-shadow: 2px 2px 5px 3px rgba(0, 0, 0, .1);
}

/*estilos para centrar titulo*/
.centrar {
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    grid-gap: 20px;
    padding: 20px;
    justify-items: center;
}

/* Estilos para la tarjeta */
.tarjeta {
    height: auto;
    border-radius: 7px;
    box-shadow: 0px 0px 20px -2px rgba(0, 0, 0, 0.63);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 400px;
    margin: 20px;
}

.imgGrande{
    height: 400px;
}


/* Estilos para la imagen */
.imgSeccion {
    width: 100%;
    height: auto;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
}

/* Estilos para el contenido */
.contenido {
    height: 100%;
    padding: 20px;
}

/* Estilos para el título */
.contenido h3 {
    margin-top: 0;
}

/* Estilos para el párrafo */
.contenido p {
    margin-bottom: 0;
}

/* estilos para el footer */
/* Estilos para pantallas grandes */
.footer {
    position: absolute;
    width: 100%;
    background-color: #0856a0;
    left: 0;
    color: white;
    margin-top: 70px;
}

/*estilos para el footer*/
footer {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    width: 100%;
    background-color: #0856a0;
    position: static;
    margin: 0;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 20px;
}

#contenido {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

/*estilos del logo del footer*/
#footerLogo {
    height: 175px;
    grid-column: 1;
    justify-content: end;
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    margin-bottom: auto;
}

/*estilos para enlaces del footer*/
.a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    border: solid;
    border-radius: 5px;
    padding: 3px;
    display: flex;
    justify-content: center;
    transition: all 500ms ease;
}

/*estilos para los enlaces del footer una vez esten visitados*/
.a:visited {
    color: white;
    text-decoration: none;
    font-weight: bold;
    border: solid;
    border-radius: 5px;
    padding: 3px;
    display: flex;
    justify-content: center;
}

/*estilos enlace para hover*/
.a:hover {
    color: #0856a0;
    border: solid;
    border-radius: 5px;
    padding: 3px;
    background-color: white;
}

/*estilos div de redirecciona la pag principal*/
.paginaPrincipal {
    width: 250px;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
    grid-column: 2;
    margin-top: 20px;
}

/*estilos para div de contacto*/
.contacto {
    width: 150px;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
    grid-column: 3;
    margin-top: 20px;
}

/*estilos para centrar*/
.centro {
    display: flex;
    justify-content: center;
}

/*estilos para enlace a la ubicacion*/
.ubicacion {
    color: white;
    text-decoration: none;
}

/* estilos para enlace de ubicación visitado*/
.ubicacion:visited {
    color: white;
    text-decoration: none;
}

/*estilos para despues del hover*/
.ubicacion:after {
    content: "";
    display: block;
    height: 3px;
    width: 90%;
    background-color: #ffffff;
    transform: scale(0, 1);
    transform-origin: left;
    transition: transform .25s;
}

.ubicacion:hover::after {
    transform: scale(1, 1);
}

/*estilos para los numeros de telefono del footer*/
.telefono {
    color: white;
    text-decoration: none;
}

/* estilos para enlace de telefono visitado*/
.telefono:visited {
    color: white;
    text-decoration: none;
}

/*estilos para despues del hover*/
.telefono:after {
    content: "";
    display: block;
    height: 3px;
    width: 95%;
    background-color: #ffffff;
    transform: scale(0, 1);
    transform-origin: left;
    transition: transform .25s;
}

.telefono:hover::after {
    transform: scale(1, 1);
}

p {
    text-align: justify;
}

.redirect {
    border: solid;
    margin-bottom: 30px;
    padding: 8px;
    text-decoration: none;
    color: white;
    background-color: #005fc2;
    transition: all 500ms ease;
}

.redirect:hover {
    background-color: white;
    color: #005fc2;
}

/* Estilos para pantallas medianas y pequeñas */
@media only screen and (max-width: 768px) {

    #contenido {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .paginaPrincipal,
    .contacto {
        display: none;
        /* Oculta la información de contacto en pantallas pequeñas */
    }

    #footerLogo {
        width: 50%;
        height: auto;
    }
}

/*estilos para flip card*/

.cardBox:hover .card {
    transform: rotateY(180deg);
}

.card {
    width: 400px;
    height: 250px;
    cursor: default;
    transform-style: preserve-3d;
    transition: transform 1.5s ease 0s;
    animation: giro 1s 1;
    box-shadow: 0px 0px 20px -2px rgba(0, 0, 0, 0.63);
}

.card .front,
.card .back {
    backface-visibility: hidden;
    box-sizing: border-box;
    color: white;
    display: block;
    height: 100%;
    position: absolute;
  
    width: 100%;
}

.card .back {
    transform: rotateY(180deg);
}

.cardBox:nth-child(2) .card {
    -webkit-animation: giro 1.5s 1;
    animation: giro 1.5s 1;
}

.cardBox:nth-child(3) .card {
    -webkit-animation: giro 2s 1;
    animation: giro 2s 1;
}

.cardBox:nth-child(4) .card {
    -webkit-animation: giro 2.5s 1;
    animation: giro 2.5s 1;
}

@-webkit-keyframes giro {
    from {
        transform: rotateY(180deg);
    }

    to {
        transform: rotateY(0deg);
    }
}

@keyframes giro {
    from {
        transform: rotateY(180deg);
    }

    to {
        transform: rotateY(0deg);
    }
}


/**/

@media only screen and (max-width: 778px) {
    /* Títulos y Contenido */
    .tituloPrincipal {
        margin-top: 160px;
        margin-bottom: 20px;
    }

    .presentacion {
        margin-bottom: 20px;
    }

    .galeria {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .tarjeta {
        width: 90%;
        margin: 10px;
    }

    /* Pie de Página */
    footer {
        flex-direction: column;
        text-align: center;
    }

    .a {
        margin: 5px;
    }

    .paginaPrincipal,
    .contacto {
        display: none; /* Ocultar la información de contacto en pantallas pequeñas */
    }

    #footerLogo {
        width: 50%;
        height: auto;
    }

    .galeria {
        display: flex;
        flex-direction: column;
       margin-right: 0;
        padding: 0;
        grid-gap: 0px;
    }

    .cardBox{
        width: 70.5%;
        margin-bottom: 40px;
    }

    .card {
        height: 260px;
    }
}


