@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
        transform: translateY(-50%);
    }
}

@keyframes zoom-in {
    from {
        scale: 0;
        opacity: 0;
    }

    to {
        scale: 1;
        opacity: 1;
       
        
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    font-family: Arial, Helvetica, sans-serif;
    color: #121212;
    /* background-color: #6b446b; */
    background-color: #e4d7e4;
}

main [id] {
    scroll-margin-top: 90px;
    scroll-behavior: smooth;
}

.ws {
    width: 55px;
    position: absolute;
    right: 30px;
    bottom: 50px;
    z-index: 100px;
    position: fixed;
    cursor: pointer;
}

.ws img {
    width: 100%;
}

header {
    width: 100%;
    background-color: #fff;
    border: 2px solid #8c1dcc;
    display: flex;
    justify-content: space-between;
    align-items: center;

}


#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background-color: #fff;
    text-decoration: none;
}





.nav {
    transform: translateY(-400px);
    transition: 0.5s;
    width: 100%;
    height: 3px;
    position: absolute;
    padding-top: 60px;
    /* color: #5f035f; */
    color: #8c1dcc;
    font-weight: bold;



}

nav li {
    text-decoration: none;
    list-style-type: none;




}

nav a {
    background-color: #fff;
    text-decoration: none;
    list-style-type: none;
    line-height: 2;
    display: block;
    padding-left: 30px;


}

a:hover {
    color: #353434;

}

.nav-bar {
    transform: translateY(0px);


}


.logo {
    width: 200px;
    height: 30px;
    margin-left: 20px;
    position: relative;
    z-index: 2;
    /* border: 2px solid #121212; */
    align-items: center;

    animation-name: zoom-in;
    animation-duration: 2s;
    animation-timing-function: ease;
    animation-fill-mode: forwards;
    



}

.nav-abrir {
    background-image: url(imagenes/cerrar.png);
    background-repeat: no-repeat;
    background-position: right;
    background-size: 40px;
    cursor: pointer;
    z-index: 100;
    transition: background-image .3s;
    margin-right: 20px;
    padding: 30px;
    background-color: #fff;


}

.nav-cerrar {
    background-image: url(imagenes/icons8-menú.svg);
    background-repeat: no-repeat;
    background-position: right;
    background-size: 40px;
    cursor: pointer;
    z-index: 100;
    transition: background-image .3s;
    margin-right: 30px;
    padding: 40px;
    background-color: #fff;

}



main {
    /* background-color: #682068; */
    /* background-color: #6b446b; */
    background-color: #e4d7e4;
    border: 2px solid #8c1dcc;
    padding-bottom: 40px;
    padding-top: 200px;
}

.principal {
    display: flex;
    justify-content: center;
    align-items: center;

}

.img-principal {
    width: 75%;
    box-shadow: 0 0 5px #353434;
    border: 3px solid #353434;
    margin-bottom: 30px;
    border-radius: 10px;
}

.banner {
    text-align: center;
    animation-name: fade-in;
    animation-duration: 4s;
    animation-timing-function: ease;
    animation-fill-mode: forwards;



    h1 {
        margin-top: 80px;

    }

    h1,
    h2 {

        font-size: 22px;
        color: #8c1dcc;
        font-weight: bold;
        text-shadow: 0 0 5px #353434;
        text-align: center;
        padding: 20px;

    }

    h2 {
        font-size: 22px;
        font-style: italic;
        margin-bottom: 30px;
    }

    .btn-consulta {
        border: 2px solid #8c1dcc;
        text-decoration: none;
        padding: 10px;
        color: #8c1dcc;
        font-weight: bold;
        text-align: center;

    }

    .btn-consulta:hover {
        border: 2px dotted #8c1dcc;
        color: #8c1dcc;
    }
}

h3 {
    text-align: center;
    font-size: 18px;
    padding-bottom: 20px;

}

p {
    font-size: 14px;
    text-align: center;
    margin: 10px;
}

h4 {
    font-size: 16px;
    text-align: center;
    padding-top: 10px;
    padding: 4px 20px;
    margin-top: 10px;
}


#imagenes-valores {
    display: flex;
    flex-direction: column;
    align-items: center;


}

.logo-valores {
    width: 10%;

}


.parrafo-valores {
    margin-left: 100px;
    margin-right: 100px;

}

ul .capacitaciones li {
    font-style: italic;
    text-decoration: none;
}

.capacitaciones {
    margin-left: 50px;
    font-style: normal;
    text-decoration: none;
}



.lista-servicios {
    padding: 10px 0px;
    font-style: normal;
    list-style-type: disc;
    margin-left: 30px;
    font-size: 16px;
    text-align: left;

}

.parrafo-servicio {
    text-align: justify;
}


footer [id] {
    scroll-margin-top: 90px;
    scroll-behavior: smooth;
}


#contacto {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;


}

.telefono {
    width: 5%;
    margin: 20px;

}

.correo {
    width: 8%;
    margin: 20px;

}

.instagram {
    width: 5%;
    margin: 20px;


}

#contacto p a {
    text-decoration: none;
    color: inherit;
}

#contacto p a:hover {
    color: #c6b6b6;
    text-decoration: underline;
    font-weight: bold;
}

#gallery {
    width: 80%;
    height: 50%;
    margin: 0px auto;
    overflow: hidden;

}



.gallery-container {
    display: flex;
    transition: transform 0.5s ease-in-out;


}

.gallery-item {
    min-width: 100%;
    box-sizing: border-box;
}

.gallery-item img {
    width: 100%;
    display: block;
    box-shadow: 0 0 5px #353434;
    border: 3px solid #353434;
    border-radius: 10px;


}

/* Navegación del Slider */
.gallery-navigation {
    display: flex;
    justify-content: space-between;
    position: relative;
    top: -50px;
}

.nav-button {
    background-color: #c3b4bd;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

.nav-button:hover {
    background-color: #debef4;

}

#target3 {
    padding: 0;
}

#target4 {
    padding-top: 30px;
}

h5 {
    font-style: italic;
    text-align: center;
    padding: 8px;
}




footer [id] {
    scroll-margin-top: 90px;
}

footer {
    background-color: #686767;
    /*transform: translateY(-123px);*/

}

/*.division{
  border: 10px dotted #66994f;
  border-bottom: none;
  border-left: none;
  border-right: none;
  margin-top: 30px;
  margin-bottom: 30px;
  width: 200px;
  margin-left: 400px;

}*/
h6 {
    font-size: large;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
    color: #8c1dcc;
    font-weight: bold;

}

.margen {
    margin-bottom: 50px;
}

form {
    width: 250px;
    margin: auto;
}

#consulta {
    width: 250px;
    margin: auto;
    height: auto;
    background-color: #c6b6b6;
    background-image: url(imagenes/fondocodigo.avif);
    padding: 30px;
    box-shadow: 0 0 5px #353434;
    border: 3px solid #353434;
    border-radius: 10px;
    color: #c6b6b6;
}

label,
input {
    display: block;

}

input,
button {
    width: 180px;
    height: 40px;
    margin-bottom: 20px;
    border-radius: 10px;
}

textarea {
    width: 180px;
    height: 200px;
    border-radius: 10px;
}

.reservados {
    padding: 20px;
    margin-bottom: 0;
    margin-top: 50px;
    font-size: small;
    color: #8c1dcc;
    font-weight: bold;
}

/*@media(min-width: 768px) {
    .desplegado {

        transform: translateY(-400px);
        transition: 5ms;
    }

    .nav-bar {
        transform: translateY(0px);
    }
}

*/



@media (min-width:1025px) {

    header {
        min-height: 90px;
    }

    .nav {
        transform: none;
        transition: none;
        padding: 0;
        display: flex;
        justify-content: flex-end;
        align-items: center;


    }

    nav li {
        text-decoration: none;


    }

    nav a {
        background-color: #fff;
        color: #8c1dcc;
        font-weight: bold;
        text-decoration: none;
        list-style-type: none;
        line-height: normal;


    }


    .nav-bar {
        transform: none;
        display: flex;
        padding-right: 2rem;
    }

    .nav-abrir,
    .nav-cerrar {
        display: none;
    }








    .lista-servicios {
        margin-left: 50px;

    }

    .logo-valores {
        width: 3%;
    }

    .parrafo-valores {
        margin-left: 200px;
        margin-right: 200px;
    }

    #gallery {
        width: 40%;
        height: auto;

    }




    #consulta {
        width: 400px;
        margin: auto;
        height: auto;
        padding: 30px;
    }

    label,
    input {
        display: block;

    }

    input,
    button {
        width: 250px;
        height: 40px;
        margin-bottom: 20px;
        border-radius: 10px;
    }

    textarea {
        width: 250px;
        height: 200px;
        border-radius: 10px;
    }
}