* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
  outline: none;
  border: none;
  text-transform: capitalize;
  transition: .2s linear;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex-grow: 1;
}

html {
  font-size: 50.5%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  overflow-x: hidden;
}

header {
  padding: 0rem 5%;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  margin-top: -50px;
}

.logo img {
  width: 80px;
  height: 80px;
}

.navbar {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.navbar a {
  color: rgb(185, 107, 230);
  text-decoration: none;
  padding: 10px 20px;
  font-size: 24px;   
  transition: background-color 0.3s, color 0.3s;
}

.navbar a:hover
{
  text-shadow: 2px 2px 5px rgba(78, 75, 75, 0.7);
}

.contact {
  text-align: center;
  padding: 20px 0;
}

.contact h1 {
  font-size: 30px;
  color: rgb(185, 107, 230);
  font-weight: bold;
  margin: 0 auto;
  padding: 0;
  display: inline-block;
}

.contact .image {
  display: flex;
  justify-content: center;
  width: 100%;
}

.contact .image img {
  display: block;
  width: 80%;
  max-width: 300px;
}

.contact .row {
  display: flex;
  flex-wrap: wrap-reverse;
  gap: 1.5rem;
  align-items: center;
}

.contact .row form {
  flex: 1 1 40rem;
  padding: 2rem 2.5rem;
  box-shadow: 0 .5rem 1.5rem rgba(66, 6, 90, 0.1);
  border: 1rem solid rgba(111, 4, 126, 0.1);
  background: #fff;
  border-radius: .5rem;
}

.contact .row .image {
  flex: 1 1 40rem;
}

.contact .row .image img {
  width: 150%;
}

.contact .row form .box {
  padding: 1rem;
  font-size: 2.2rem;
  color: #080808;
  text-transform: none;
  border: .25rem solid rgba(153, 86, 221, 0.1);
  border-radius: .5rem;
  margin: .7rem 0;
  width: 100%;
}

.contact .row form .box:focus {
  border-color: #530c83;
}

.contact .row form textarea {
  height: 10rem;
  resize: none;
}

.contact .row .map {
  flex: 1 1 3rem;
  width: 200%;
  padding: .5rem 1rem;
}

.formContacto__input-error {
  display: none;
  color: red;
  font-size: 16px;
  font-weight: bold;
}

.mensaje-exito {
  display: none;
  color: #0f5705;
  font-size: 16px;
  font-weight: bold;
  padding-top: 5px;
}

.btnEnviarContacto {
  height: 45px;
  line-height: 45px;
  width: 30%;
  background: #642a73;
  color: #FFF;
  font-weight: bold;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: .1s ease all;
}

/* Footer */
.footer {
  background: #dda6a6;
  padding: 10px 0;
  overflow: hidden;
  height: 120px;
  border: none;
  width: 100%;
}

.contenedor-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: auto;
  padding-bottom: 5px;
  border-bottom: 1px solid #e6d5d7;
}

.content-foo {
  text-align: center;
  margin-right: 30px;
}

.content-foo:last-child {
  margin-right: 0;
}

.content-foo p {
  color: #1d0e0e;
}

.content-foo img {
  width: 42px;
  height: 42px;
  margin-top: 10px;
}

.mensaje-reservado {
  text-align: center;
  color: #1d0e0e;
  width: 100%;
  margin-top: 15px;
  font-weight: bold;
  font-size: 18px;
}

/* Media Queries */

/* Para pantallas de 1200px o menos */
@media (max-width: 1200px) {
  .navbar a {
    font-size: 18px;
  }

  .contact h1 {
    font-size: 28px;
  }

  .contact .row form .box {
    font-size: 2rem;
  }
}

/* Para pantallas de 1024px o menos */
@media (max-width: 1024px) {
  header {
    padding: 0rem 3%;
  }

  .navbar a {
    font-size: 16px;
    padding: 8px 16px;
  }

  .contact h1 {
    font-size: 26px;
  }

  .contact .row form .box {
    font-size: 1.8rem;
  }

  .footer {
    height: auto;
  }
}

/* Para pantallas de 768px o menos */
@media (max-width: 768px) {
  header {
    padding: 0rem 2%;
  }

  .navbar a {
    font-size: 14px;
    padding: 6px 12px;
  }

  .contact h1 {
    font-size: 24px;
  }

  .contact .row form .box {
    font-size: 1.6rem;
  }
}

/* Para pantallas de 640px o menos */
@media (max-width: 640px) {
  .logo img {
    width: 50px;
    height: 50px;
  }

  .navbar {
    justify-content: space-between;
  }

  .navbar a {
    font-size: 12px;
    padding: 4px 8px;
  }

  .contact h1 {
    font-size: 20px;
  }

  .contact .row form .box {
    font-size: 1.4rem;
  }

  .footer {
    height: auto;
  }
}

/* Para pantallas de 480px o menos */
@media (max-width: 480px) {
  .navbar {
    flex-direction: column;
    align-items: center;
  }

  .logo {
    order: 1; 
    justify-content: center;
    margin-top: 10px;
  }

  .logo img {
    width: 50px;
    height: 50px;
  }

  .navbar a {
    font-size: 12px;
    padding: 4px 8px;
  }

  .footer {
    height: auto;
    padding: 20px 0;
  }

  .contenedor-footer {
    flex-direction: column;
    align-items: center;
  }

  .content-foo {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .content-foo img {
    margin-bottom: 10px;
  }

  .mensaje-reservado {
    font-size: 14px;
  }
}

/* Para pantallas de 320px o menos */
@media (max-width: 320px) {
  .navbar {
    flex-direction: column;
    align-items: center;
  }

  .logo {
    order: 1;
    justify-content: center;
    margin-top: 10px;
  }

  .logo img {
    width: 40px;
    height: 40px;
  }

  .navbar a {
    font-size: 10px;
    padding: 2px 6px;
  }

  .footer {
    height: auto;
    padding: 20px 0;
  }

  .contenedor-footer {
    flex-direction: column;
    align-items: center;
  }

  .content-foo {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .content-foo img {
    margin-bottom: 10px;
  }

  .mensaje-reservado {
    font-size: 12px;
  }
}


