@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  --font-family: "Poppins", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
}

header {
  width: 100%;
  height: 7.5rem;
  background: #003d7c;
  background: linear-gradient(180deg, #003d7c 6%, rgb(41, 80, 189) 81%);

  padding: 0 3.125rem;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo_content {
  display: flex;
  justify-content: start;
  align-items: center;
}

header .logo_content .logo {
  width: 5rem;
}

header .logo_content .logo img {
  width: 100%;
}

header p {
  font-size: 1.875rem;
  font-family: var(--font-family);
  font-weight: bold;
  color: #fff;

  margin-left: 0.9375rem;
}

header form input {
  border: none;
  outline: none;
  border-radius: 0.625rem;
  padding: 0.625rem 0.9375rem;
}

/*---------------------------Main-------------------------------*/

main {
  width: 100%;
  min-height: calc(100vh - 120px - 40px);
  padding: 10px 0.9375rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 50px;
}

main #mainform {
  width: 35.625rem;
  border-radius: 1.875rem;
  background-color: #fff;

  padding: 1.5625rem 0.9375rem;
  display: flex;
  justify-content: center;
  align-items: center;

  position: relative;
  overflow: hidden;

  box-shadow: 2px 8px 30px 5px rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

main #mainform::before {
  content: "";
  width: 7.5rem;
  height: 5rem;
  opacity: 0.8;
  background: rgb(71, 17, 235);
  background: linear-gradient(
    188deg,
    rgb(27, 94, 236) 6%,
    rgba(23, 47, 195, 1) 81%
  );
  position: absolute;
  border-radius: 17% 83% 18% 82% / 57% 64% 36% 43%;
  left: -1.25rem;
  bottom: -0.625rem;
}

main #mainform::after {
  content: "";
  width: 8.125rem;
  height: 5rem;
  opacity: 0.8;
  background: rgb(103, 62, 226);
  background: linear-gradient(
    43deg,
    rgb(27, 94, 236) 6%,
    rgba(23, 47, 195, 1) 81%
  );
  position: absolute;
  border-radius: 68% 32% 22% 78% / 43% 64% 36% 57%;
  right: -1.25rem;
  top: -1.5625rem;
}

main #mainform img {
  width: 170px;
  height: auto;
  border-radius: 0.625rem;
  margin-right: 1.875rem;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

main #mainform .info {
  width: 300px;
  text-align: center;
  z-index: 100;
}

main #mainform .info .info_nombre,
.info_area {
  font-family: var(--font-family);
  border-bottom: 2px solid #3518ac;

  padding: 0.8125rem 1.875rem;
  margin-bottom: 0.625rem;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

main #mainform .info .info_nombre .maintit,
.info_area .maintit {
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 0.3125rem;
}

main form .info .info_nombre .submain,
.info_area .submain {
  font-size: 0.9375rem;
  color: #2e2e2e;
}

main #mainform .info button {
  font-family: var(--font-family);
  position: relative;
  display: inline-block;
  padding: 0.5rem 1.25rem;
  margin-top: 0.625rem;
  text-align: center;
  font-size: 0.9375rem;
  text-decoration: none;
  color: #4168d1;
  background: transparent;
  cursor: pointer;
  transition: ease-out 0.5s;
  border: 2px solid #4168d1;
  border-radius: 10px;
  box-shadow: inset 0 0 0 0 #4168d1;
}

main #mainform .info button:hover {
  color: white;
  box-shadow: inset 0 -100px 0 0 #4168d1;
}

main #mainform .info button:active {
  transform: scale(0.9);
}

.navbar {
  width: 100%;
  padding: 0 0.625rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 1.875rem;
  margin-bottom: 1.5625rem;
}

.navbar a {
  text-decoration: none;
}

.btnsub {
  background-color: #0083bf;
  padding: 10px 15px;
  font-size: 0.9375rem;
  color: #fff;
  cursor: pointer;
  border-radius: 10px;
  border: 2px dashed #0083bf;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
    rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
  transition: 0.4s;
}

.btnsub:hover {
  transition: 0.4s;
  border: 2px dashed #0083bf;
  background-color: #fff;
  color: #00608d;
}

.btnsub:active {
  background-color: #4da9d3;
}

.navbar .btns {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6.25rem;
}

.navbar .btns button {
  font-size: 0.8125rem;
  font-family: var(--font-family);
}

main .regresar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

main .regresar input {
  padding: 10px 10px;
  border-radius: 10px;
  border: none;
  outline: none;
  background-color: #fff;
  box-shadow: 0 0 0 2.5px rgba(0,   26,   255,  0.74);
  margin-right: 10px;
}

main .regresar button {
  padding: 10px 15px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: #fff;
  background-color: 0 0 0 2.5px rgba(0,   26,   255,  0.74);
  transition: all .3s;
}

main .regresar button:hover {
  color: 0 0 0 2.5px rgba(0,   26,   255,  0.74);
  background: #fff;
}

main .regresar a {
  font-size: 0.8125rem;
  font-family: var(--font-family);
  text-decoration: none;
}

/*----------------------------Footer----------------------------*/

footer {
  width: 100%;
  height: 2.5rem;
  background: rgb(74, 117, 231);
  background: linear-gradient(180deg, rgb(47, 91, 211) 6%, #004385 81%);
  display: flex;
  justify-content: center;
  align-items: center;
}

footer p {
  font-family: var(--font-family);
  color: #fff;
  text-align: center;
}

footer p span {
  color: rgb(0, 195, 255);
}

/*----------------------------Medias----------------------------*/

@media screen and (max-width: 680px) {
  footer p {
    font-size: 0.8125rem;
    font-family: var(--font-family);
    color: #fff;
    text-align: center;
  }
}

@media screen and (max-width: 610px) {
  header .logo_content .logo {
    width: 3.75rem;
  }

  header .logo_content p {
    font-size: 1.5625rem;
  }

  main .regresar {
    padding: 10px;
  }
}

@media screen and (max-width: 550px) {
  header {
    padding: 0 1.5625rem;
  }
}

@media screen and (max-width: 480px) {
  main form {
    flex-direction: column;
  }

  main form img {
    margin: 0 0 1.25rem 0;
  }

  main .regresar .btn_regresar a {
    font-size: 13px;
    padding: 8px 13px;
  }
}

@media screen and (max-width: 470px) {
  header {
    padding: 0 0.625rem;
  }

  .navbar .btns {
    gap: 3.75rem;
  }
}

@media screen and (max-width: 440px) {
  header .logo_content .logo {
    width: 3.125rem;
  }

  header  p {
    font-size: 1.25rem;
  }

  header form input {
    width: 10.625rem;
  }

  main .regresar button {
    display: none;
  }

  main .regresar input {
    margin: 0;
  }
}

@media screen and (max-width: 370px) {
  header {
    flex-direction: column;
    padding: 0.6875rem;
  }

  header form input {
    width: 12.5rem;
  }

  .navbar .btns {
    gap: 1.875rem;
  }

  main .regresar {
    flex-direction: column;
  }

  main .regresar input {
    width: 180px;
    margin-top: 30px;
  }
}
