:root {
    --primario: #9c2780;
    --primarioOscuro: #891190;
    --secundario: #ffce00;
    --secundarioOscuro: rgb(233, 287, 2);
    --blanco: #fff;
    --negro: #000;
  
    --fuentePrincipal: "Staatliches", cursive;
  }

*{
    margin:0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: 'open sans';
    
}

iframe {
    width: 80%;
    height: 90vh;
}
/*  AQUI INICIA LA PANTALLA MODAL*/
.modal {
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.8);

    position: fixed;
    top: 0;
    left: 0;

    display: flex;

    animation: modal 2s 2s forwards;
    visibility: hidden;
    opacity: 0;

}

.contenido {
    margin: auto;
    width: 36%;
    height: 51%;
    background: none;
    border-radius: 10px;
}

#cerrar {
    display: none;
}

#cerrar + label {
    position: fixed;
    color: white;
    font-size: 25px;
    z-index: 50;
    background: darkblue;
    height: 40px;
    width: 40px;
    line-height: 40px;
    border-radius: 50%;
    right: 10px;
    cursor: pointer;

    animation: modal 2s 2s forwards;
    visibility: hidden;
    opacity: 0;

    text-align: center;
}

#cerrar:checked + label, #cerrar:checked ~ .modal {
    display: none;
}

/* HASTA AQUI TERMINA LA VENTANA MODAL*/

.contenedor{
    padding: 60px 0px;
    width: 90%;
    max-width: 1000px;
    margin: auto ;
    overflow: hidden;
}

.titulo{
    color: #642a73;
    font-size: 30px;
    text-align: center;
    margin-bottom: 60px;
}

/* HEADER */

header{
    width: 100%;
    height: 600px;
    background: #373B44;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, hsla(218, 17%, 50%, 0.623), hsla(222, 11%, 24%, 0.671)), url(../img/portafolio.jpg); 
     /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, hsla(218, 17%, 50%, 0.623), hsla(222, 11%, 24%, 0.671)), url(../img/portafolio.jpg); 
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}

nav{
    text-align: right;
    padding: 30px 50px 0 0;
}

nav > a{
    color: #fff;
    font-weight: 300;
    text-decoration: none;
    margin-right: 10px;
}

nav > a:hover{
    text-decoration: underline;
}

header .textos-header{
    display: flex;
    height: 430px;
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.textos-header h1{
    font-size: 50px;
    color: #fff;
}

.textos-header h2{
    font-size: 30px;
    font-weight: 300;
    color: #fff;
}

.wave{
    position: absolute;
    bottom: 0;
    width: 100%;
}

/* Acerca de */

main .acerca-de{
    padding: 30px 0 60px 0;
}
.contenedor-acerca-de{
    display: flex;
    justify-content: space-evenly;
}

.imagen-acerca-de{
    width: 48%;
}


.acerca-de .contenido-textos{
    width: 48% ;
}

.contenido-textos h3{
    margin-bottom: 15px;
}

.contenido-textos h3 span{
    background: #4d0686;
    color: #fff;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
    width: 30px;
    height: 30px;
    padding: 2px;
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, .5);
    margin-right: 10px;
}

.listas{
    margin: 0px 5px 0px 25px;
}
.contenido-textos p{
    padding: 0px 0px 30px 15px;
    font-weight: 300;
    text-align: justify;
}

/* GALERIA */

.portafolio{
    background: #f2f2f2;
}

.galeria-port{
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.imagen-port{
    width: 24%;
    margin-bottom: 10px;   
    height: 300px; 
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 0 6PX 0 rgba(0, 0, 0, .5);
}

.imagen-port > img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.hover-galery{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    /* transform: scale(0); */
    background: hsla(273,91%, 27%, 0.7);
    transition: transform .5s;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.hover-galery img{
    width: 50px;   
}

.hover-galery p{
    color: #fff;
}

.imagen-port:hover .hover-galery{
    transform:scale(0);
}

/* clientes */

.cards{
    display: flex;
    justify-content: space-evenly;
   
}

.cards .card{
    background: #4d0686;
    display: flex;
    width: 46%;  /*46*/
    height: auto;  /*200px*/
    align-items: center;
    justify-content: center; /* space-evenly*/
    border-radius: 5px;
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.6);
    transition: all 400ms ease;
}

.card:hover{
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.4);
    transform: translate(-3%);
}

.cards .card img{
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid #fff;
    border-radius: 50%;
    display: block;
    
}

.cards .card > .contenido-texto-card{
    width: 60%;
    color: #fff;
    
}

.cards .card > .contenido-texto-card p{
    font-weight: 300;
    padding-top: 5px;
    padding: 0px 0px 30px 15px;
    font-weight: 300;
    text-align: justify;
    
}

/* nuestro equipo */

.about-services{
    background: #f2f2f2;
    padding-bottom: 30px;
}

.servicio-cont{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.servicio-ind{
    width: 28%;
    text-align: center;
}

.servicio-ind img{
    width: 90%;
}

.servicio-ind h3{
    margin: 10px 0;
}

.servicio-ind p{
    font-weight: 300;
    text-align: justify;
}

/** Grid **/
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem; /** separacion entre lineas y columnas **/
}
@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
/** Formatos **/
.formato {
    background-color: #f2f2f2;
    padding: 1rem;
}

.formato__imagen {
    width: 100%;
}

.formato__nombre {
    font-family: var(--fuentePrincipal);    
    margin: 1rem 0;
    text-align: center;
}


/* footer */

footer{
    background: #414141;
    padding: 60px 0 30px 0 ;
    margin: auto;
    overflow: hidden;
}

.contenedor-footer{
    display: flex;  /* esta linea los alinea horizontal*/
    width: 90%;
    justify-content: space-evenly;  /* esto es para que se repartan los elementos */
    margin: auto;
    padding-bottom: 50px;
    border-bottom: 1px solid #ccc;
}

.content-foo{
    text-align: center;
}

.content-foo h4{
    color: #fff;
    border-bottom: 3px solid #af20d3;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.content-foo p{
    color: #ccc;
}

.titulo-final{
    text-align: center;
    font-size: 24px;
    margin: 20px 0 0 0;
    color: #9e9797;
}

@media screen and (max-width:900px){
    header{
        background-position: center;
    }

    .contenedor-acerca-de{
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    iframe{
        width: 80%;
        height: 75vh;
    }
    .acerca-de .contenido-textos{
        width: 90%;
    }

    .imagen-acerca-de{
        width: 90%;
    }    

    .inscripcion{
        width: 90%;
    }

    .contenido{
        width: 95%;
    }

    /*GALERY o portafolio*/
    .imagen-port{
        width: 44%;
    }

    /* SERVICIOS*/
                    /*Tarjetas*/
    .cards{
       flex-direction: column; /* lo alinea en columnas una debajo de otra*/
       justify-content: center; /*cambia de horizontal a vertical */
       align-items: center; /* alinear horizontalmente*/
    }

    .cards .card{
        width: 90%;
    }

    .cards .card:first-child{
        margin-bottom: 30px;
    }

                /*Servicios -- Actividades*/

    .servicio-cont{
        justify-content: center;
        flex-direction: column;
    }          

    .servicio-ind{
        width: 100%;
        text-align: center;
    }

    .servicio-ind:nth-child(1), .servicio-ind:nth-child(2){
        margin-bottom: 60px;
    }

    .servicio-ind img{
        width: 90%;
    }
}

@keyframes modal {
    100% {
        visibility: visible;
        opacity: 1;
    }
}

@media screen and (max-width:500px){
    nav{
        text-align: center;
        padding: 30px 0 0 0;
    }

    nav > a{    /* el simbolo > especifica que solo los elementos dentro de nav*/
        margin-right: 5px;
    }

    .textos-header h1{
        font-size: 35px;
    }

    .textos-header h2{
        font-size: 20px;
    }

    /* acerca de nosotros*/

    .imagen-acerca-de{
        margin-bottom: 60px;
        width: 99%;
    }

    .acerca-de .contenido-textos{
        width: 95%;
    }

    /*galery*/

    .imagen-port{
        width: 95%;
    }

    /*servicios*/

    .cards .card{
        height: 700px;
        display: flex;
        flex-direction: column; /* esto hace que este uno debajo del otro*/
        align-items: center;
    }

    .cards .card img{
        width: 90px;
        height: 90px;
    }

    /*footer*/

    .contenedor-footer{
        flex-direction: column; /* se pone uno debajo del otro */
        border: none;
    }

    .content-foo{
        margin-bottom: 20px;
        text-align: center;
    }

    .content-foo h4{
        border: none;
    }

    .content-foo h4{
        color: #ccc;
        border-bottom: 1px solid #f2f2f2;
        padding-bottom: 20px;
    }

    .titulo-final{
        font-size: 20px;
    }
}
