:root {
    --purple: #5f1f79;
    --purple-light: #d8a1ff;
    --purple-shadow: #baa4c9;
    --fondo-nav: #f4d4fc;
    --boton: linear-gradient(90deg, rgba(150, 38, 162, 1) 0%, rgba(161, 24, 148, 1) 43%, rgba(255, 106, 0, 1) 100%);
    --texto-oscuro: rgb(0, 0, 0);
    --texto-claro: #fff;
    --naranja-logo: #ff5722;
    --gris: gray;
    --background: #f0f2f5;
}
body{
    background-color: var(--background);
}

.container{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    grid-template-rows: 400px;
    margin-top: 140px;
    column-gap: 10px;
    justify-items: center;
    align-items: center;
}

    div.espacio3D {
        width: 200px;
        height: 200px;
        margin: 1em auto 0 auto;
        position: relative;
        perspective-origin: center -100%;
        perspective: 1200px;
        transform: scale(0.5);
        margin-bottom: 3rem;
      }
      
      div.cubo3D {
        width: 100%;
        height: 100%;
        position: absolute;
        transform-style: preserve-3d;
        transform: translateZ(-150px);
        animation-name: gira;
        animation-duration: 3000ms;
        animation-iteration-count: infinite;
       }
      
      div.base {
        position: absolute;
        width: 15px;
        height: 15px;
        background-color: rgba(255, 254, 254, 0.993);
      }

      aside.cara {
        position: absolute;
        width: 298px;
        height: 298px;
        text-align: left;
        box-shadow: 0px 0px 5px rgba(252, 252, 252, 0.975);
      }

      .cara img {
        width: 100%;
        height: 100%;
        object-fit: cover; 
      }
           
      aside.cara1 { /* Frente */
        transform: translateZ(150px);
      }
      
      aside.cara2 { /* Atrás */
        transform: rotateY(180deg) translateZ(150px);
      }
      
      aside.cara3 { /* Izquierda */
        transform: rotateY(-90deg) translateZ(150px);
      }
      
      aside.cara4 { /* derecha */
        transform: rotateY(90deg) translateZ(150px);
      }
      
      aside.cara5 { /* abajo */
        transform: rotateX(-90deg) translateZ(150px);
      }
      
      aside.cara6 { /* arriba */
        transform: rotateX(90deg) translateZ(150px);
      }
      
      @keyframes gira {
        0% {
          transform: translateZ(-150px) rotateY(0deg);
        }
        50% {
          transform: translateZ(-150px) rotateY(180deg); /* Girar 180 grados a la mitad de la animación */
        }
        100% {
          transform: translateZ(-150px) rotateY(360deg); /* Regresar a la posición inicial */
        }
      }


.eslogan{
    font-size: 28px;
}

.container-form{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 350px;
    width: 396px;
    -webkit-box-shadow: 0px 0px 21px -7px rgba(0,0,0,0.75);
    -moz-box-shadow: 0px 0px 21px -7px rgba(0,0,0,0.75);
    box-shadow: 0px 0px 21px -7px rgba(0,0,0,0.75);
    border-radius: 10px;
    background-color: #fff;

    
}

.form{
    margin-top:10px;
    width: 100%;
    height: 90%;
    display: grid;
    justify-content: center;
    text-align: center;

}

.btn-form{
    background: var(--boton);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 20px;
    display: block;
    width: 320px;
    height: 50px;
    margin: none;
}

.btn-form a {
    color: white;
    text-decoration: none;
}

.btn-form:hover{
    background: linear-gradient(90deg, rgba(150, 38, 162, 1) 0%, rgba(255, 106, 0, 1) 0%, rgba(161, 24, 148, 1) 64%);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}


.fields{
    border-radius: 10px;
    text-decoration: none;
    border-radius: 5px;
    font-size: px;
    display: block;
    width:auto;
    margin: none;
    padding: 5px;
    border-color: var(--background);
    
}

@media only screen and (max-width: 767px) {
    .container {
      grid-template-columns: 1fr;
      grid-template-rows: auto;
      margin-top: 100px;
      margin-bottom: 50px;
      justify-items: center;
    }
  
    .container-form {
      width: 90%;
      margin-bottom: 20px;
    }
  
    .fields,
    .btn-form {
      width: 100%;
    }
  
    .btn-form {
      margin-top: 10px;
    }
  
    .logoInicio {
      max-width: 150px;
    }
  
    .eslogan {
      font-size: 22px;
    }
  }
