:root {
  --titleFont: 'Marcellus', serif;
  --secondFont: 'Familjen Grotesk', sans-serif;;

  --brown: #784d3c;
  --grey: #e1e1e1;
  --white: #FFF;
  --black: #000;
}


html {
  box-sizing: border-box;
  font-size: 62.5%; /* 1rem = 10px */
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  background-color: #bd9f67e1;
  font-family: var(--titleFont);
  font-size: 1.6rem;
  line-height: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Globales */

.container {
  max-width: 120rem;
  width: 90%;
  width: min(90%, 120rem); /* Esta línea es lo mismo que las dos de arriba */
  margin: 0 auto;
}

a {
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--fuenteHeading);
  line-height: 1.2;
}

h1 {
  font-size: 4.8rem;
}
h2 {
  font-size: 4rem;
  color: var(--white);
  width: 100%;
}
h3 {
  font-size: 2.5rem;
  text-align: center;
  color: var(--white);
  margin: 2rem 0;
}

h4 {
  font-size: 2.8rem;
}
img {
  width: 100%;
}

ul {
  list-style: none;
}

/* Utilidades */

.no-margin {
  margin: 0;
}
.no-padding {
  padding: 0;
}
.align-text {
  text-align: center;
}
.visible {
  display: block;
  transition: 0.3s;
}

/* Header */

.header {
  background-image: url(../images/fondo.webp);
  height: 40rem;
  max-width: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.title-background {
  max-width: 100%;
  display: inline;
  background-color: rgba(0, 0, 0, 0.5);
  height: fit-content;
  padding: 0.5rem;
  margin-top: 13rem;
}

.title {
  max-width: 100%;
  text-align: center;
  font-family: var(--titleFont);
  color: var(--white);
  font-size: 6rem;
  font-weight: 100;
}

@media (min-width: 529px) and (max-width: 795px) {
  .title {
      font-size: 4.5rem;
  }
}


@media (max-width: 530px) {
  .title {
      font-size: 3.8rem;
  }
}

.menu-container {
  display: flex;
  align-items: center;
  height: 50px;
  margin-bottom: 1rem;
  padding: 0.5rem;
}

.menu {
  font-size: 4rem;
  color: var(--white);
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
}

nav {
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
}

ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 0;
}

li {
  font-family: var(--secondFont);
  padding: 0.5rem;
  color: var(--white);
  border-radius: 1rem;
  font-size: 2rem;
  text-align: center;
}

li:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transition: 0.3s;
}

@media (max-width: 670px) {
  ul {
      flex-direction: column;
      align-items: center;
  }

  .li-nav {
      border-top: 1px solid var(--white);
      padding: 1.5rem;
  }
}

/* Main */

main {
  padding: 0 3rem 8rem 3rem;
}

.subtitle {
  font-family: var(--titleFont);
  color: var(--white);
  text-align: center;
}

.services {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 0.5fr;
  column-gap: 2rem;
  row-gap: 2rem;
  margin-bottom: 5rem;
}

@media (max-width: 1064px) {
  .services {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-around;
      column-gap: 2rem;
  }

  .group4 {
      display: flex;
      flex-direction: column;
      row-gap: 1.5rem;
  }
}

.group1, .group2, .group3 {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
}

.services article {
  background-color: rgba(0, 0, 0, 0.6);
  width: 316px;
  padding: 1rem;
  border-radius: 1rem;
  -webkit-box-shadow: 10px 8px 35px -4px rgba(0,0,0,0.68);
  -moz-box-shadow: 10px 8px 35px -4px rgba(0,0,0,0.68);
  box-shadow: 10px 8px 35px -4px rgba(0,0,0,0.68);
  width: 95%;
}

.group3 {
  row-gap: 1.5rem;
}

.group4 {
  grid-column: 1 / 4;
  column-gap: 4rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
}

.group4 article {
  height: fit-content;
}

.li-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.line {
  width: 70%;
  border-top: 1px solid var(--white);
  margin-left: 4.5rem;
}

.separator {
  border-top: rgba(0, 0, 0, 0.6) solid 3px;
  padding-top: 2rem;
}

.separator-b {
  border-bottom: rgba(0, 0, 0, 0.6) solid 3px;
  padding-bottom: 5rem;
  margin-bottom: 2rem;
}

.whowhere {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 5rem;
}

.who-container, .where-container {
  min-width: 300px;
}

.who-title {
  padding-top: 4rem;
}

p {
  color: var(--white);
  font-family: var(--secondFont);
  font-size: 2.2rem;
  margin-top: 0;
}

.address {
  text-align: center;
}

.who-text {
  padding-top: 1rem;
  text-align: center;
}

.where {
  margin-bottom: 3rem;
}

.physic {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;    
  row-gap: 3rem;
  width: 100%;
}

.pin {
  margin-top: 1rem;
  width: 4rem;
  height: 4rem;
}

.office {
  margin: 0;
}

.office-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  row-gap: 2rem;
}

.network {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
}

.icon {
  width: 4rem;
  height: 4rem;
}

.email, .instagram, .whatsapp {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
}

.email-icon {
  color: #000;
} 

.instagram {
  margin-top: 5rem;
}

.instagram-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.instagram-logo {
  margin-right: 1.8rem;
}

.social {
  display: flex;
  justify-content: space-around;
}

.tel {
  margin: 0;
}

@media (max-width: 948px) {
  .whowhere {
      display: flex;
      flex-direction: column;
      align-items: center;
      column-gap: 1rem;
  }

  .where {
      margin-left: 1.5rem;
      margin-right: 0;
  }

  .who, .where {
      width: 90%;
  }
}


/* Slider */


.slideshow-container{
  width: 90%;
  position:relative;
  margin:auto;
  display: flex;
  justify-content: center;
  padding-bottom: 2rem;
}

.mySlides{
  max-width: 50rem;
  display: none;
}

.prev, .next{
  cursor:pointer;
  position:absolute;
  top:50%;
  width:auto;
  margin-top:-22px;
  padding:16px;
  color:white;
  font-weight:bold;
  font-size:18px;
  transition:0.6s ease;
  border-radius:0 3px 3px 0;
}

.next{
  right:0;
  border-radius:3px 0 0 3px;
}

.text{
  color:#f2f2f2;
  font-size:15px;
  padding:8px 12px;
  position:absolute;
  bottom:8px;
  text-align:center;
}

.numbertext{
  color:#f2f2f2;
  font-size:12px;
  padding:8px 12px;
  position:absolute;
  top:0;
}

.tools {
  height: 100%;
  width: 100%;
  border-radius: 1rem;
  -webkit-box-shadow: 10px 8px 35px -4px rgba(0,0,0,0.68);
  -moz-box-shadow: 10px 8px 35px -4px rgba(0,0,0,0.68);
  box-shadow: 10px 8px 35px -4px rgba(0,0,0,0.68);
}

.fade{
  -webkit-animation-name:fade;
  -webkit-animation-duration:1.5s;
  animation-name:fade;
  animation-duration:1.5s;
 }
 
 @-webkit-keyframes fade{
  from{opacity:.4}
  to{opacity:1}
 }
 
 @keyframes fade{
  from{opacity:.4}
  to{opacity:1}
}
 

/* Contact */

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

.contact-title {
  padding-top: 4rem;
  margin-bottom: 5rem;
}

.contact p {
  text-align: center;
}

.request {
  margin-top: 4rem;
  font-size: 3rem;
}

.map-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.map {
  width: 100%;
  height: 30rem;
  border: 0;
  -webkit-box-shadow: 10px 8px 35px -4px rgba(0,0,0,0.68);
  -moz-box-shadow: 10px 8px 35px -4px rgba(0,0,0,0.68);
  box-shadow: 10px 8px 35px -4px rgba(0,0,0,0.68);
}

.wpp-button, .email-button, .instagram-button {
  background-color: rgba(0, 0, 0, 0.6);
  height: 10rem;
  width: 100%;
  -webkit-box-shadow: 10px 8px 35px -4px rgba(0,0,0,0.68);
  -moz-box-shadow: 10px 8px 35px -4px rgba(0,0,0,0.68);
  box-shadow: 10px 8px 35px -4px rgba(0,0,0,0.68);
  margin-top: 3rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-radius: 2rem;
}

.wpp-svg {
  margin-right: 1.5rem;
}

.email2 {
  color: var(--white) ;
  width: 6rem;
  height: 6rem;
  margin-left: 6.7rem;
}

.email-text {
  margin-left: 1.2rem;
}

.wpp-text, .email-text {
  font-size: 2.5rem;
  margin: 0;
}

.email-text {
  margin-left: 1.2rem;
}

@media (max-width: 790px) {
  .contact {
      display: flex;
      flex-direction: column;
  }

  .map {
    width: 100%;
  }
}

@media (max-width: 402px) {
  .contact-container {
      display: grid;
      grid-template-columns: 1fr 1fr;
      grid-template-rows: 1fr 1fr;
      column-gap: 2rem;
  }

  .wpp-svg {
    margin-right: 0;
  }

  .wpp-text, .email-text {
      display: none;
      margin: none;
  }

  .contact-instagram-button {
    grid-column:  1 / span 2;
  }

  .instagram-logo {
     margin-right: 0;
  }

  .email-button, .wpp-button {
      grid-column: 1 / 3;
      display: flex;
      justify-content: center;
  }

  .email2 {
      margin: 1rem 0 0 0;
  }
}

/* Email form */

.form-container {
  display: flex;
  justify-content: center;
}

.email-form {
  margin-top: 3rem;
  margin-bottom: 5rem;
  width: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 1rem;
  padding-bottom: 2rem;
  box-shadow: 5px 5px 35px -2px rgba(0,0,0,0.41);
  -webkit-box-shadow: 5px 5px 35px -2px rgba(0,0,0,0.41);
  -moz-box-shadow: 5px 5px 35px -2px rgba(0,0,0,0.41);
}

label {
  color: white;
  margin-top: 1rem;
  font-size: 2rem;
}

textarea {
  width: 80%;
  margin-bottom: 2rem;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 3px;
  color: white;
}

input {
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 3px;
  height: 3rem;
  color: white;
  padding-left: 1rem;
}

.email-input {
  width: 40rem;
}

@media (max-width: 530px) {
  .email-input {
      width: 70%;
  }
}

.form-button {
  font-family: var(--titleFont);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  cursor: pointer;
  border: none;
  border-radius: 2px;
  height: 3.5rem;
  width: 12rem;
}