@import url("https://fonts.googleapis.com/css2?family=Muli&display=swap");

/*SECCIÓN DE LA MAQUETACIÓN*/

* {
  /*QUITA TODOS LOS VALORES PREDETERMINADOS DE MARGIN Y PADDING DE LAS ETIQUETAS*/
  font-family: "Muli", sans-serif;
  margin: 0;
  padding: 0;
}

html {
  background-color: #11242b;
}

body {
  width: 90%;
  height: 1200px;
  margin: auto;
  background-image: url(https://i.gifer.com/Q8i2.gif);
  
  align-items: center;
  justify-content: center;
}

header {
  width: 100%;
  height: 250px;
  background-color: #3fc5d6;
}

nav {
  width: 100%;
  height: 40px;
  background-color: #082e47;
  padding-top: 5px;
  font-size: 25px;
  text-align: center;
  align-items: center;
  justify-content: center;
}

nav > a {
  color: white;
  outline: none;
}

nav > a:hover {
  border-bottom: 1px solid;
  color: black;
  background: #cdfeaa;
}

main {
  width: 100%;
  height: 900px;
}

section#banner {
  width: 60%;
  height: 248px;
  float: right;
  background-image: url();
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.imagen {
  width: 728px;
  height: 250px; 
  border-radius: 0px; 
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
  margin-bottom: 20px; 
}

section#logo {
  width: 40%;
  height: 125px;
  float: left;
  background-color: #9b7eca;
  background-image: url(https://cdn-icons-png.flaticon.com/512/1/1188.png);
  background-size: 125px;
  background-position: center;
  background-repeat: no-repeat;
}


section#login {
  width: 40%;
  height: 125px;
  float: left;
  background-color: #9b7eca;
  align-items: center;
  justify-content: center;
  display: flex;
  
}

section#login > a {
  width: 60%;
  height: 40%;
  
}

section#login > a > input {
  width: 100%;
  height: 100%;
  background-color: #131fc9;
  color: rgb(0, 0, 0);
  font-size: 24px;
  border-radius: 10px;
  border: none;
  
}



section.container {
  width: 100%;
  height: 550px;
  background-color: #082e47;
}

aside#left {
  cursor: pointer;
  width: 20%;
  height: 350px;
  background-color: #beced1;
  float: left;
  background-image: url();
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.imagen_left {
  width: 242px; 
  height: 350px; 
  cursor: pointer; 
  transition: transform 0.3s; 
}

.imagen_left:hover {
  transform: scale(1.15);
}

article#articulo {
  width: 50%;
  height: 270px;
  background-color: #082e47;
  float: left;
  margin-top: 20px;
  margin-bottom: 20px;
  margin-left: 1%;
  margin-right: 1%;
  padding: 2% 4% 2% 4%;
  transition: transform 0.3s; 
}

article#articulo:hover {
  transform: scale(1.05); 
}

article#articulo > h1 {
  text-align: center;
}

article#articulo > p {
  text-align: justify;
  font-size: 20px;
}

aside#right {
  width: 20%;
  height: 350px;
  background-color: #beced1;
  float: left;
  background-image: url(img/anuncio.png);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.imagen_right {
  width: 242px; 
  height: 350px; 
  cursor: pointer; 
  transition: transform 0.3s; 
}

.imagen_right:hover {
  transform: scale(1.15);
}




footer {
  width: 100%;
  height: 40px;
  text-align: left;
  background-color: #2843d6;
  font-weight: bold;
  font-size: 20px;
}

/*SECCIÓN DE LAS CARTAS EXPANDIBLES*/

/* Cambiar la dirección del flexbox */
.container {
  display: flex;
  flex-direction: row-reverse; 
  width: 90vw;
}

.panel {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 80vh;
  border-radius: 50px;
  color: rgb(17, 17, 17);
  cursor: pointer;
  flex: 0.5;
  margin: 10px;
  position: relative;
  transition: flex 0.9s ease-in;
  
}

/* Cuando una carta está activa (expandidas) */
.panel.active {
  flex: 10;
}

/* Hacer que el texto sea visible en las cartas activas */
.panel h3 {
  font-size: 24px;
  position: absolute;
  bottom: 30px;
  margin: 8px;
  opacity: 0;
}

.panel.active h3 {
  opacity: 1;
  transition: opacity 0.4s ease-in 0.8s;
}



@media (max-width: 480px) {
  .container {
    width: 100vw;
  }
  .panel:nth-of-type(4),
  .panel:nth-of-type(5) {
    display: none;
  }
}

/*SECCIÓN DEL FORMULARIO*/

@import url("https://fonts.googleapis.com/css2?family=Mulish");

#body_form {
  width: 90%;
  height: 660px;
}

#main_form {
  align-items: center;
  width: 150%;
  height: 400px;
  
  

}

.container_form {
  margin: 10px 10px 10px 10px;
  width: 30%;
  height: 350px;
  background-color: #dbdfe4;
  color: #aaa;
  padding: 20px 40px;
  border-radius: 5px;
}

.container_form h1 {
  text-align: center;
  margin-bottom: 30px;
}

h1 {
  color: #050792;
  letter-spacing: 8px;
}

.container_form a {
  text-decoration: none;
  color: #ed2553;
}

.btn {
  cursor: pointer;
  color: #0d10ac;
  letter-spacing: 2px;
  margin-left: 120px;
  text-align: center;
  display: inline-block;
  width: 50%;
  background: #9dd8e2;
  padding: 15px;
  font-family: inherit;
  font-size: 16px;
  border: none;
  border-radius: 5px;
}

.btn:focus {
  outline: 0;
}

.btn:active {
  transform: scale(0.98);
}

.text {
  margin-top: 30px;
  margin-left: 120px;
  color: #000000;
}

.text > a {
  color: #050792;
}

.text > a:active {
  color: #cc1111;
}

.form-control {
  position: relative;
  margin: auto;
  width: 300px;
}

.form-control input {
  background-color: transparent;
  border: 0;
  border-bottom: 2px solid #aaa;
  display: block;
  width: 100%;
  padding: 15px 0;
  font-size: 18px;
  color: #666;
}

.form-control input:focus,
.form-control input:valid {
  outline: none;
  border-bottom: 3px solid #ddd;
}

.form-control label {
  position: absolute;
  top: 15px;
  left: 0;
}

.form-control label span {
  display: inline-block;
  font-size: 18px;
  min-width: 5px;
  transition: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.form-control input:focus + label span,
.form-control input:valid + label span {
  transform: translateY(-30px);
}
