*{
    box-sizing: border-box;
}

body, header {
    background-color: rgb(255, 255, 255);
    margin: 0rem;
}

/* Sección de bienvenida */
.Bienvenida {
    display: flex;
    align-items: center;
    background: linear-gradient(rgb(32, 80, 120), rgb(255, 255, 255));
    background-size: cover;
    height: 50rem;
    flex-flow: row wrap;
    font-family: 'PT Sans', sans-serif;
    color: #0c264cff;
}

/* Sección de bienvenida de la página sobre nosotros*/
#sobrenosotros {
    background:linear-gradient(rgba(70, 131, 180, 0), rgba(0, 3, 10, 0.747)) ,url("https://leemupm.com/wp-content/uploads/2023/08/1691940479455.jpg") no-repeat center;
    background-size: cover;
    color: #ffffff;
}

/* Sección de bienvenida de la página inscripción*/
#inscripcion {
    background:linear-gradient(rgba(70, 131, 180, 0), rgba(54, 70, 117, 0.747)) ,url("Pictures/unete.jpg") no-repeat bottom right;
    background-size: cover;
}

/* Dar estilo a la sección de bienvenida*/
.Inicio>h1 {
    margin-top: 1rem;
    margin-left: 3vw;
    margin-bottom: -0.1rem;
}
.Inicio .empty {
    font-size: 0rem;
}
.Inicio>a {
    display: flex;
    margin-left: 3.5vw;
    font-size: 1rem;
    width: 80%;
}
.Inicio #logo {
    max-width: 40%;
    margin-top: 0rem;
    margin-left: 3.5vw
}
.Inicio {
    visibility: hidden;
    animation-name: intro;
    animation-duration: 3s;
    animation-delay: 0s;
    animation-fill-mode: both;
}

@keyframes intro {
    from {color: #fefefe00;
          opacity: 0;
          .Inicio #logo{
            max-width: 10%;}}
    to {visibility:visible;
        opacity: 1;}
  }

/* Estilo para los cuadrados en donde va el distinto contenido de la página */
.Formulario, .Instalaciones, .Titulaciones {
    margin: 2vw 1rem;
    padding: 0.1rem;
    background-color: rgb(255, 255, 255);
    font: 1rem 'PT Sans', sans-serif;
    display: flex;
    text-align: left;
    flex-flow: row wrap;
    animation-name: intro;
    animation-duration: 3s;
    animation-delay: 0s;
    animation-fill-mode: both;
    
}
.Formulario>h2, .Instalaciones>h2, .Titulaciones>h2 {
    margin: .5rem;
    padding: .6rem;
    font-size: 2rem;
    border-radius: 1.2rem;
    background-color: #0c264cff;
    color: #ffffff;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0px 0px 1px 0px rgba(0, 0, 0, 0.19);
}
.grados {
    margin: .5rem;
    padding: .6rem;
    font-size: 2rem;
    border-radius: 1rem;
    color: #000000;
    display: flex;
    flex-wrap: wrap;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0px 0px 1px 0px rgba(0, 0, 0, 0.19);
}
.instalacion {
    margin: .5rem;
    padding: .6rem;
    font-size: 2rem;
    border-radius: 1rem;
    display: flex;
    flex-wrap: wrap;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0px 0px 1px 0px rgba(0, 0, 0, 0.19);
    align-items: flex-end;
    align-content: flex-end;
    color: #ffffff;
    height: 30rem;
}
.equipo {
    margin: .5rem;
    padding: .6rem;
    font-size: 2rem;
    border-radius: 1rem;
    display: flex;
    flex-wrap: wrap;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0px 0px 1px 0px rgba(0, 0, 0, 0.19);
    align-items: flex-end;
    align-content: flex-end;
    color: #ffffff;
    height: 20rem;
}
.whatsapp {
    margin: .5rem;
    padding: .6rem;
    font-size: 1rem;
    border-radius: 1rem;
    display: flex;
    flex-wrap: wrap;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0px 0px 1px 0px rgba(0, 0, 0, 0.19);
    align-items: flex-end;
    align-content: flex-end;
    color: #ffffff;
    height: 15rem;
}

/* Imágenes de las distintas instalaciones */
#instalacion1 {
    background:linear-gradient(rgba(70, 131, 180, 0), rgb(0, 3, 10)) ,url("https://www.uax.com/var/site/storage/images/6/2/8/1/61826-4-esl-ES/distribuidor-fablab.jpg");
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
}
#instalacion2 {
    background:linear-gradient(rgba(70, 131, 180, 0),rgb(0, 3, 10)) ,url("https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fi.pinimg.com%2Foriginals%2F09%2Feb%2Fcc%2F09ebcc355a67ec564980e759788c8ac2.png&f=1&nofb=1&ipt=27e094cb3b840bc756b10acc1e88e9008a2988a13707a13eebf41714bd072d2d&ipo=images");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
#instalacion3 {
    background:linear-gradient(rgba(70, 131, 180, 0), rgb(0, 3, 10)) ,url("https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fwww.udem.edu.mx%2Fsites%2Fdefault%2Ffiles%2F2018-11%2F2018-ingenieria-y-tecnologias-taller-de-ingenieria-carrusel-2.jpg&f=1&nofb=1&ipt=275e788f26d47ef3d56a49877af4d64324b94c3ffda317e10b2deaa67e9ac99b&ipo=images");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
#instalacion4 {
    background:linear-gradient(rgba(70, 131, 180, 0),rgb(0, 3, 10)) ,url("https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fi.pinimg.com%2Foriginals%2Fbc%2Fbe%2Fbb%2Fbcbebbf994c977b3aa84a8efa12c381f.jpg&f=1&nofb=1&ipt=5659628d039c253708ca0bc4e20517be46454096a18b2b3d5786a1217ded3053&ipo=images");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Imágenes de los distintos equipos */
#equipo1 {
    background:linear-gradient(rgba(70, 131, 180, 0), rgba(0, 0, 0, 0.685)) ,url("https://www.uax.com/var/site/storage/images/3/3/2/8/148233-2-esl-ES/0b3e1988e296-maria-rubiato_.jpg");
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    width: 100%;
}
#equipo2 {
    background:linear-gradient(rgba(70, 131, 180, 0), rgba(0, 0, 0, 0.685)) ,url("https://www.uax.com/var/site/storage/images/7/3/7/5/85737-7-esl-ES/94e1a298883c-carla_padron_.jpg");
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    width: 100%;
}
#equipo3 {
    background:linear-gradient(rgba(70, 131, 180, 0), rgba(0, 0, 0, 0.685)) ,url("https://www.uax.com/var/site/storage/images/0/8/3/6/146380-3-esl-ES/1c1bf4eff9a5-juan-carlos-.jpg");
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    width: 100%;
}
#equipo4 {
    background:linear-gradient(rgba(70, 131, 180, 0), rgba(0, 0, 0, 0.685)) ,url("https://www.uax.com/var/site/storage/images/5/4/7/5/85745-11-esl-ES/75a7c2348f00-Ines_Ibarra_.jpg");
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    width: 100%;
}
#equipo5 {
    background:linear-gradient(rgba(70, 131, 180, 0), rgba(0, 0, 0, 0.685)) ,url("https://www.uax.com/var/site/storage/images/6/6/9/4/144966-2-esl-ES/df073899ff06-sofia-monteagudo.jpg");
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    width: 100%;
}
#equipo6 {
    background:linear-gradient(rgba(70, 131, 180, 0), rgba(0, 0, 0, 0.685)) ,url("https://www.uax.com/var/site/storage/images/2/6/6/2/152662-9-esl-ES/aeac979b5dea-joaquin-aynat.jpg");
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    width: 100%;
}
#equipo7 {
    background:linear-gradient(rgba(70, 131, 180, 0), rgba(0, 0, 0, 0.685)) ,url("https://www.uax.com/var/site/storage/images/0/7/9/4/144970-2-esl-ES/20fa708ec431-alejandro-bravo.jpg");
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    width: 100%;
}
#equipo8 {
    background:linear-gradient(rgba(70, 131, 180, 0), rgba(0, 0, 0, 0.685)) ,url("https://www.uax.com/var/site/storage/images/1/4/7/5/85741-5-esl-ES/b1810f9b2dd2-Claire_Dubois_.jpg");
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    width: 100%;
}

/* Imágenes de los distintos equipos */
#whatsapp1 {
    background:linear-gradient(rgba(70, 131, 180, 0), rgba(0, 0, 0, 0.685)) ,url("Pictures/qr.png");
    background-color: #00112bff;
    background-size:contain;
    background-position: top;
    background-repeat: no-repeat;
    width: 100%;
}
#whatsapp2 {
    background:linear-gradient(rgba(70, 131, 180, 0), rgba(0, 0, 0, 0.685)) ,url("Pictures/qr.png");
    background-color: #00112bff;
    background-size:contain;
    background-position: top;
    background-repeat: no-repeat;
    width: 100%;
}
#whatsapp3 {
    background:linear-gradient(rgba(70, 131, 180, 0), rgba(0, 0, 0, 0.685)) ,url("Pictures/qr.png");
    background-color: #00112bff;
    background-size:contain;
    background-position: top;
    background-repeat: no-repeat;
    width: 100%;
}
#whatsapp4 {
    background:linear-gradient(rgba(70, 131, 180, 0), rgba(0, 0, 0, 0.685)) ,url("Pictures/qr.png");
    background-color: #00112bff;
    background-size:contain;
    background-position: top;
    background-repeat: no-repeat;
    width: 100%;
}

/* Animación cuando pasa el cursor por encima */
.equipo:hover, .instalacion:hover, .grados:hover .whatsapp:hover {
    transition: all .3s ease-in-out;
    transform: scale(1.01);
}

/* Estilo para los distintos divs */
#div1, #div2, #div11, #div12, #div13, #div14, #div15, #div16, #div17, #div18, #div19 {
    display: flex;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
#div3{
    width: 100%;
}

/* Estilo para el título */
.title {
    font-size: 10rem;
    text-align: center;
    width: 100%;
}

/* Estilo para el subtítulo */
.subtitle {
    font-size: 1.2rem;
    margin-bottom: 0rem;
    margin-top: 1rem;
}

/* Estilo para el título de cada cuadro*/
.grados>h3, .instalacion>h3 .subtitle>h3 {
    margin: 0.2rem;
    margin-bottom: 0rem;
    font-size: 1.5rem;
    display: flex;
    align-items: flex-end;
    align-content: flex-end;
}

/* Estilo para el texto */
.instalacion>p  .grados>p {
  margin: .2rem;
  margin-top: 0rem;
  display: flex;
  align-items: flex-end;
  align-content: flex-end;
}
.instalacion>a, .grados>a {
    margin: .2rem;
    font-size: 1rem;
    text-decoration: none;
    color: gray
}
p {
    font: 1rem 'PT Sans', sans-serif;
}

footer {
    color: grey;
    text-align: center;
}

.image {
    width: 100%;
    border-radius: 1rem;
    margin-bottom: 0.4rem;
}

h5 {
    margin-top: 0rem;
    margin-bottom: -0.3rem;
    font-size: 1rem;
    color: grey;
    width: 100%;
    display: flex;
    align-items: flex-end;
    align-content: flex-end;
}

/* Navegación para escritorio y tablets */
#Desktop_nav {
    display: flex;
    justify-content: space-between;
    align-self: center;
    align-items: center;
    position: fixed;
    width: 100%;
    padding: 3.5rem 2rem;
    top: 0rem;
    left: 0rem;
    overflow: hidden;
    background-image: linear-gradient(rgb(255, 255, 255), rgb(255, 255, 255));
    transition: 0.4s;
    z-index: 99;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0px 0px 1px 0px rgba(0, 0, 0, 0.19);
}
#Desktop_nav a {
    float: left;
    color: black;
    text-align: center;
    padding: 1rem 2rem;
    margin-right: 1rem;
    text-decoration: none;
    font-size: 1.3rem;
    font-family: 'PT Sans', sans-serif;
    border-radius: 20rem;
    background-color:  rgba(12, 38, 76, 0.065);
}
#Desktop_nav #logo {
    margin-left: 2%;
    margin-bottom: 0%;
    transition: 0.4s;
    max-width: 60%;
}
#Desktop_nav a:hover {
    background-color: rgba(12, 38, 76, 0.274);
    color: black;
    border-radius: 2rem;
    transition: .3s ease-in-out;
}
#Desktop_nav a.active {
    background-color: #0c264cff;
    color: white;
}
#Desktop_nav-right {
    float: right;
    margin-right: 2rem;
}


/* Forumulario de inscripción */
.form {
    margin: .5rem;
    padding: .6rem;
    font-size: 1.5rem;
    border-radius: 1rem;
    color: #000000;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0px 0px 1px 0px rgba(0, 0, 0, 0.19);
}
input[type="text"], input[type="email"], input, select, textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #0c264cff;
    background-color: rgba(12, 38, 76, 0.099);
    border-radius: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 1.4rem;
    resize: vertical;
}
label {
    padding: 0.6rem 0.1rem 0.1rem 0;
    display: inline-block;
}
input[type="submit"] {
    width: 30%;
    background-color: #0c264cff;
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 3rem;
    cursor: pointer;
    font-size: 1.2em;
    margin-top: 0.5rem; 
    transition: .3s ease-in-out;
}
input[type=submit]:hover {
    background-color: rgb(24, 75, 152);
  }
input::placeholder {
    color: #0c264cff;
    font-size: 1em;
    font-style: italic;
}

/* Estilo para la página 'gracias' del formulario */
.gracias {
    display: flex;
    align-items: center;
    align-content: center;
    text-align: center;
    position: absolute;
    flex-wrap: wrap;
    flex-direction: row;
    height: 80rem;
    width: 100%;
    font-family: 'PT Sans', sans-serif;
    color: #1a1515;
}
.gracias h1 {
    margin-bottom: 0rem;
    font-size: 5rem;
}
.gracias a{
    margin-bottom: 1rem;
    font-size: 1.5rem;
}
.gracias div{
    width: 100%;
}
#gracias {
    background-color: #0c264cff;
    color: #fff;
    padding: 1.5rem 4rem;
    border: none;
    border-radius: 3rem;
    font-size: 1.5em;
    text-decoration: none;
    transition: .3s ease-in-out;
    margin-top: 2rem;
    text-align: center;
}
#button {
    margin-top: 4rem;
    border-radius: 3rem;
}
#gracias:hover {
    background-color: rgb(24, 75, 152);
}

/* Eliminar la barra de navegación para móvil */
#logo_mobile, .mobile-container, .mobile_nav {
    width: 0;
}

/* Acceso a página para miembros */
/* Fondo */
.login {
    display: none; 
    position: fixed; 
    z-index: 99;
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(3, 19, 66, 0.4); 
    padding-top: 10rem;
    transition: .9s ease-in-out;
  }
  
/* Acceso a pagina privada */
.login-content {
    background-color: #fefefe;
    margin: 15% auto 15% auto; /* 5% from the top, 15% from the bottom and centered */
    width: 60%; /* Could be more or less, depending on screen size */
    border-radius: 2.5rem;
    transition: .9s ease-in-out;
}

.container a {
    margin-bottom: 1rem;
    margin-top: 2.5rem;
    font: 1.5rem 'PT Sans', sans-serif;
}

.container p {
    margin-bottom: 1rem;
    margin-top: 0rem;
    padding: 1rem;
    border-radius: 1rem;
    font: 1.5rem 'PT Sans', sans-serif;
    background-color: #f4433636;
    color: #f44336;
    display: none;
}

.close {
    position: absolute;
    right: 25px;
    top: 0;
    color: #000;
    font-size: 35px;
    font-weight: bold;
    border-radius: 3em;
}
  
.close:hover,
.close:focus {
    color: red;
    cursor: pointer;
}

button {
    background-color: rgb(3, 19, 66);
    color: white;
    padding: 1rem 3rem;
    border: none;
    cursor: pointer;
    width: fit-content;
    border-radius: 4em;
    margin-top: 2rem;
    margin-right: 5rem;
  }
  
  button:hover {
    opacity: 0.8;
    transition: .3s ease-in-out;
  }
  
  .cancelbtn {
    width: auto;
    padding: 10px 20px;
    background-color: #f44336;
    border-radius: 2.5em;
  }
  
  .container {
    padding: 16px;
    border-radius: 2.5rem;
  }
  
  span.psw {
    float: right;
    padding-top: 16px;
    border-radius: 3rem;
  }

  /* Add Zoom Animation */
.animate {
    -webkit-animation: animatezoom 0.6s;
    animation: animatezoom 0.6s
  }
  
  @-webkit-keyframes animatezoom {
    from {-webkit-transform: scale(0)} 
    to {-webkit-transform: scale(1)}
  }
    
  @keyframes animatezoom {
    from {transform: scale(0)} 
    to {transform: scale(1)}
  }

/* Estilo para tablets */
@media screen and (min-width: 580px) {
    html {
        font-size: 13px;
    }
    .Instalaciones, .Titulaciones {
        margin-top: 1rem;
    }
    .mobile_nav {
        visibility: collapse;
        margin-top: -9rem;
    }
    #Desktop_nav #logo {
        display: flex;
        flex-shrink: 2;
        width: 16rem;
        margin: 1rem;
    }
    #div1, #div11, #div12, #div13, #div14, #div15, #div16, #div17, #div18, #div19 {
        width: 50%;
    }
    #div2 {
        width: 25%;
    }
    .Inicio>h1 {
        font-size: 6rem;
    }
    .Inicio>a {
        font-size: 1rem;
    }
    .Inicio #logo {
        max-width: 50%; 
    }
    .Bienvenida {
        margin-top: 9rem;
    }
}

/* Estilo para ordenador */
@media screen and (min-width: 1024px) {
    html {
        font-size: 12.5px;
    }
    .Instalaciones, .Titulaciones {
        margin-top: 1vw;
    }
    .mobile_nav, .mobile-container {
        visibility: collapse;
        margin-top: -30rem;
    }
    #Desktop_nav a {
        font-size: 1.5rem;
    }
    #Desktop_nav #logo {
        display: flex;
        flex-shrink: 2;
        width: 16rem;
        margin: 1rem;
    }
    #div1, #div11, #div12, #div13, #div14, #div15, #div16, #div17, #div18, #div19 {
        width: 25%;
    }
    #div2 {
        width: 12.5%;
    }
    .Inicio {
        margin-top: 30rem;
    }
    .Inicio>h1 {
        font-size: 10rem;
    }
    .Inicio>a {
        font-size: 1.2rem;
    }
    .Inicio #logo {
        max-width: 30%; 
    }
    .Bienvenida {
        margin-top: 15rem;
        height: 60vw;
        margin-bottom: 30rem;
    }
    .equipo {
        height: 30rem;
    }
}

/* Estilo para móviles */
@media screen and (max-width: 580px) {
    html {
        font-size: 12px;
    }
    .Bienvenida{
        /*background-position: center calc(20% + 35px); */
    }
    .mobile-container {
        background-color: rgb(255, 255, 255);
        height: 0rem;
    }
    .mobile_nav {
        overflow: hidden;
        position: fixed;
        top: 0rem;
        left: 0rem;
        background-color: rgb(255, 255, 255);
        width: 100%;
        z-index: 99;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0px 0px 1px 0px rgba(0, 0, 0, 0.19);
    }
    .mobile_nav a{
        display: block;
        font-family: 'PT Sans', sans-serif;
        border-radius: 4rem;
        text-decoration: none;
    }
    #logo_mobile{
        display: fixed;
        top: 0;
        right: 0;
        width: 14rem;
        margin-left: 2rem;
        margin-top: 1.2rem;
    }
    ul{
        list-style: none;
    }
    .nav{
        display: flex;
        justify-content: center;
        width: 100%;
        height: 100%;
        position: fixed;
        background-color: white;
        overflow: hidden;
        max-height: 0;
        transition: max-height .5s ease-out;
    }
    .menu a{
        padding: 2vw 35vw;
        text-align: center;
        margin-top: 1rem;
        margin-bottom: 1rem;
        margin-right: 4rem;
        color: rgb(255, 255, 255);
        background-color: #0c264cff;
        font-family: 'PT Sans', sans-serif;
        font-size: 1.5rem;
    }
    .menu a:hover{
        background-color: rgb(25, 70, 138);
    }
    .menu a.active{
        background-color: rgb(15, 129, 244)
    }

    /* Icono del menú */
    .hamb{
        cursor: pointer;
        float: right;
        padding: 3rem 2rem;
    }
    .hamb-line {
        background: white;
        display: block;
        height: 2px;
        position: relative;
        width: 24px;
    } 
    .hamb-line::before, .hamb-line::after{
        background: black;
        content: '';
        display: block;
        height: 100%;
        position: absolute;
        transition: all .2s ease-out;
        width: 100%;
    }
    .hamb-line::before{
        top: 5px;
    }
    .hamb-line::after{
        top: -5px;
    }
    .side-menu {
        display: none;
    } /* Elimina el cuadro*/

    /* Animar y cambiar el icono al hacer click */
    .side-menu:checked ~ nav{
        max-height: 100%;
    }
    .side-menu:checked ~ .hamb .hamb-line {
        background: transparent;
    }
    .side-menu:checked ~ .hamb .hamb-line::before {
        transform: rotate(-45deg);
        top:0;
    }
    .side-menu:checked ~ .hamb .hamb-line::after {
        transform: rotate(45deg);
        top:0;
    }
    .Desktop_nav, #Desktop_nav-right, #logo, #Desktop_nav {
        visibility: hidden;
    } /* Ocultar la navegación de ordenador */
    .Instalaciones, .Titulaciones {
        margin-top: 1vw;
    }
    #div1, #div11, #div12, #div13, #div14, #div15, #div16, #div17, #div18, #div19 {
        width: 100%;
    }
    #div2 {
        width: 50%;
    }
    .Inicio>h1 {
        font-size: 4rem;
    }
    .Inicio>a {
        font-size: 1rem;
    }
    .Inicio #logo {
        right: 1rem;
        max-width: 25rem;
        visibility: visible;
        margin-top: 6rem;
    }
    .Bienvenida {
        margin-top: 0rem;
    }
}