@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&display=swap");

:root {
  --color1: #662583;
  --color2: #9631b5;
  --fondo: #fff;
  --titulos: 60px;
  --subtitulos: 30px;
  --margenes: 60px;
  --espacios: 10px;
  --espacios-contenido: 45px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

::-webkit-scrollbar {
  display: none;
}

body {
  font-family: "Montserrat", sans-serif;
  background: var(--fondo);
}

img {
  vertical-align: top;
}

a {
  text-decoration: none;
  color: #000;
}

/* Preloader */
.hidden {
  overflow: hidden;
}

.centrado {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: #662583;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
}
.lds-ripple {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-ripple div {
  position: absolute;
  border: 4px solid #fff;
  opacity: 1;
  border-radius: 50%;
  animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
.lds-ripple div:nth-child(2) {
  animation-delay: -0.5s;
}
@keyframes lds-ripple {
  0% {
    top: 36px;
    left: 36px;
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    top: 0px;
    left: 0px;
    width: 72px;
    height: 72px;
    opacity: 0;
  }
}

.lds-facebook div:nth-child(3) {
  left: 45px;
  animation-delay: 0;
}

@keyframes lds-facebook {
  0% {
    top: 6px;
    height: 51px;
  }

  50%,
  100% {
    top: 19px;
    height: 26px;
  }
}

/* Pop-Up */
.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
}

.contentBox {
  position: relative;
  width: 600px;
  height: 400px;
  background: #fff;
  border-radius: 20px;
  display: flex;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.contentBox .imgBx {
  position: relative;
  width: 300px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contentBox .imgBx img {
  position: relative;
  max-width: 250px;
  z-index: 1;
}

.contentBox .popup_content {
  position: relative;
  width: 300px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contentBox .popup_content h3 {
  color: #333;
  line-height: 1em;
  font-weight: 300;
  font-size: 2em;
}

.contentBox .popup_content h2 {
  font-size: 2em;
  color: var(--color1);
  line-height: 1.5em;
}

.contentBox .popup_content h2 span {
  color: #333;
  font-size: 0.75em;
  text-transform: uppercase;
}

.contentBox .popup_content p {
  font-weight: 300;
}

.contentBox .popup_content a {
  display: inline-block;
  padding: 10px 20px;
  background: var(--color2);
  color: #fff;
  margin-top: 15px;
  text-decoration: none;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: #f3f3f3 url(../img/cancel.png);
  background-repeat: no-repeat;
  background-size: 15px;
  background-position: center;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
}

/* Header */

header {
  width: 100%;
  height: 850px;
  background: linear-gradient(to bottom, rgba(101, 37, 131, 0.49), hwb(286 19% 29% / 0.478), #c840ea7c),
    url(img/pa1.webp);
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

nav {
  width: 100%;
  position: fixed;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
}

.nav1 {
  background: transparent;
  height: 80px;
  color: #fff;
}

.nav2 {
  background: var(--fondo);
  height: 100px;
  color: #000;
}

.contenedor-nav {
  display: flex;
  margin: auto;
  width: 90%;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  height: inherit;
  overflow: hidden;
}

nav .enlaces a {
  display: inline-block;
  padding: 5px 0;
  margin-right: 17px;
  font-size: 17px;
  font-weight: 300;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  color: inherit;
}

#enlace-contacto {
  font-weight: 700;
}

nav .enlaces a:hover {
  border-bottom: 3px solid #c940ea;
  transition: 0.6s;
}

.logo,
.logo img {
  height: 80px;
}

.icono{
  display:none;
  font-size: 24px;
  padding: 23.5px 20px;
}

.textos {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  color: #fff;
  overflow: hidden;
  text-align: center;
}

.textos > h1 {
  font-size: 120px;
}

.textos > h2 {
  font-size: 60px;
  font-weight: 300;
  padding-top: 25px;
}

/* Main */

.contenedor {
  margin: auto;
  padding: var(--margenes) 0;
  width: 90%;
  max-width: 1000px;
  text-align: center;
  overflow: hidden;
}

.contenedor h3 {
  font-size: var(--titulos);
  color: #000;
  margin-bottom: var(--espacios);
}

.contenedor p {
  font-size: var(--subtitulos);
  font-weight: 300;
  color: #000;
}

.after::after {
  content: "";
  display: block;
  margin: auto;
  margin-top: var(--espacios);
  width: 100px;
  height: 2px;
  background: #000;
  margin-bottom: var(--espacios-contenido);
}

/* 1 */

.card {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.content-card {
  width: 75%;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  height: 500px;
  border-radius: 25px;
}

.people {
  height: 100%;
}

.content-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 2 */

.about {
  background-color: #fafafa;
  height: auto;
}

.servicios {
  display: flex;
  justify-content: space-between;
  margin: auto;
  flex-wrap: wrap;
  padding: 0 35px;
}
.caja-servicios {
  width: 50%;
  margin: auto;
  margin-top: 50px;
  text-align: center;
}

.caja-servicios > img {
  width: 15%;
  height: auto;
}

.caja-servicios > h4 {
  margin-bottom: var(--espacios);
  color: #000;
  font-size: 25px;
}

.caja-servicios > p {
  text-align: center;
  font-size: 20px;
  color: #000;
}

/* 3 */

.botones-work {
  overflow: hidden;
}

.botones-work li {
  display: inline-block;
  text-align: center;
  margin-left: var(--espacios);
  font-size: 20px;
  margin-bottom: var(--espacios-contenido);
  padding: 6px 12px;
  border: 1px solid var(--color1);
  list-style: none;
  color: var(--color1);
}

.botones-work li:hover {
  background: var(--color1);
  color: #fff;
  cursor: pointer;
}

.botones-work .active {
  background: var(--color1);
  color: #fff;
}

.galeria-work {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.cont-work {
  width: 45%;
  box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.5);
  height: 425px;
  overflow: hidden;
  margin-bottom: var(--espacios-contenido);
}

.img-work {
  height: 90%;
  width: 100%;
}

.img-work img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.textos-work {
  height: 10%;
}

.textos-work h4 {
  line-height: 30px;
  font-weight: 300;
  font-size: 20px;
  padding-top: 8px;
}

/* 4 */

.container {
  width: 90%;
  min-height: 50vh;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.slider {
  background-color: #fafafa;
  padding: 40px 0;
}

.slider_container {
  display: grid;
  grid-template-columns: 50px 1fr 50px;
  align-items: center;
  gap: 1em;
}

.slider_body {
  grid-column: 2/3;
  grid-row: 1/2;
  opacity: 0;
  pointer-events: none;
  display: grid;
  background-color: #fafafa;
  grid-template-columns: 1fr max-content;
  align-items: center;
  transition: opacity 1.5s;
}

.slider_body-show {
  opacity: 1;
  pointer-events: unset;
}

.slider_texts {
  max-width: 600px;
}

.subtitle {
  font-size: 100px;
  margin-bottom: 20px;
}

.slider_review {
  font-weight: 300;
  font-size: 30px;
  line-height: 1.7;
}

.slider_img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.slider_arrow {
  cursor: pointer;
  width: 90%;
}

.slider_arrow:nth-of-type(2) {
  justify-self: end;
}

/* Footer */
.footer {
  padding: 40px 0;
  background-color: #fff;
}

.footer .social {
  text-align: center;
  padding-bottom: 25px;
  color: #252525;
}

.footer .social a {
  font-size: 25px;
  color: inherit;
  border: 1px solid #252525;
  width: 40px;
  height: 40px;
  line-height: 38px;
  display: inline-block;
  text-align: center;
  border-radius: 50%;
  margin: 0 8px;
  opacity: 0.75;
}

.footer .social a:hover {
  opacity: 1;
}

.footer ul {
  margin-top: 0;
  padding: 0;
  list-style: none;
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 0;
  text-align: center;
}

.footer ul li a {
  color: inherit;
  text-decoration: none;
  opacity: 0.5;
}

.footer ul li {
  display: inline-block;
  padding: 0 15px;
}

.footer ul li a:hover {
  opacity: 1;
}

.footer .copyright {
  margin-top: 15px;
  text-align: center;
  font-size: 13px;
  color: #aaa;
}

/* Responsive */
@media screen and (max-width: 800px) {
  /* Pop-Up */
  .contentBox {
    width: 300px;
    height: auto;
    flex-direction: column;
  }

  .contentBox .imgBx {
    height: 200px;
    transform: translateY(-50px);
  }

  .contentBox .popup_content {
    height: auto;
    text-align: center;
    padding: 20px;
    padding-top: 0;
  }

  .contentBox .popup_content h3 {
    font-size: 1em;
  }

  .contentBox .popup_content h2 {
    font-size: 1.5em;
  }

  .contentBox .popup_content p {
    font-size: 0.75em;
  }

  .close {
    top: -50px;
    right: -50px;
    background: #fff url(../img/cancel.png);
    background-repeat: no-repeat;
    background-size: 15px;
    background-position: center;
  }
  /* ------ */

  .nav2 {
    color: #fff;
  }

  .icono {
    display: block;
    cursor: pointer;
  }

  .enlaces {
    position: fixed;
    top: 80px;
    background: var(--color2);
    left: 0;
    height: 100%;
    transition: 1s;
    width: 0;
    overflow: hidden;
  }

  .enlaces a {
    display: block;
    width: 100%;
    height: 50px;
    padding: 20px;
    text-align: center;
    background: var(--color1);
    color: #fff;
  }

  .textos > h1 {
    font-size: 70px;
  }

  .textos > h2 {
    font-size: 35px;
  }

  .content-card {
    width: 48%;
    margin-bottom: var(--margenes);
  }

  :root {
    --margenes: 30px;
  }

  /* slider */
  .slider_body {
    grid-template-columns: 1fr;
    grid-template-rows: max-content 1fr;
    gap: 1em;
  }

  .slider_pic {
    grid-row: 1/2;
  }

  .slider_img {
    width: 210px;
    height: 210px;
  }

  /* footer */
}

@media screen and (max-width: 500px) {
  /* pop-up */
  .close {
    right: 0px;
  }
  /* ------ */

  :root {
    --espacios-contenido: 25px;
  }

  .textos > h1 {
    font-size: 50px;
  }

  .textos > h2 {
    font-size: 25px;
  }

  .content-card {
    width: 90%;
  }

  .caja-servicios {
    width: 90%;
    margin-bottom: var(--margenes);
  }

  .cont-work {
    width: 85%;
  }

  .logo {
    width: 80%;
  }

  .icono {
    margin: auto;
  }

  /* slider */
  .slider_container {
    grid-template-columns: 25px 1fr 25px;
  }

  .slider_arrow {
    width: 100%;
  }

  .slider_img {
    width: 180px;
    height: 180px;
  }

  .subtitle {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .slider_review {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* footer */
}
