/****
INDICE: style_portafolio.css

+ 1. CONFIGURACION DE PAGINA
+ 2. HERO
+ 3. GALERIA
+ 4. GOTOP
****/

/*** 1. CONFIGURACION DE PAGINA ***/
:root {
  --azul-uno: #051923;
  --azul-dos: #003554;
  --azul-tres: #106BA1;
  --naranja: #DA672D;
  --blanco: #F8F9FA;
  --negro: #212529;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

*,
*::after,
*::before {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--azul-uno) !important;
  color: var(--negro);
  font-family: "Montserrat", sans-serif !important;
  font-size: 15px !important;
  overflow-x: hidden;
}

.page-wrapper {
  position: relative;
  margin: 0 auto;
  width: 100%;
  min-width: 300px;
  overflow: hidden;
  height: auto;
}

@media only screen and (min-width: 200px) and (max-width: 767px) {
  .page-wrapper {
    overflow-x: hidden;
  }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .page-wrapper {
    overflow-x: hidden;
  }
}

.montserrat {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.hanken-grotesk {
  font-family: "Hanken Grotesk", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

section[id]:not(#hero) {
  scroll-margin-top: 10px;
}

/* ############ 2. HERO ############ */
#hero {
  background-position: center 70%;
  background-size: cover;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 100vh;
}

.bg-portafolio {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../../img/adicionales/Banner_Portafolio.webp);
}

#hero p#title {
  color: var(--blanco);
  text-align: center;
  font-weight: 200;
  font-size: 8vmax;
  padding-top: 21%;
}

#hero .btn {
  display: block;
  margin: 0 auto;
  background-color: var(--blanco);
  color: var(--negro);
  padding: 1% 5% 1% 5%;
  letter-spacing: 2px;
  font-size: large;
  transition: all 0.4s ease-in-out;
  position: relative;
}

#hero .btn:hover {
  background-color: var(--naranja);
  color: var(--blanco);
  transition: all 0.4s ease-in-out;
}

.btn-down {
  width: 100%;
  height: 100%;
  background: #106ca170;
  border: none;
  cursor: pointer;
  color: var(--blanco);
  font-size: xx-large;
  transition: all 0.4s ease-in-out;
}

.btn-down:hover {
  background: #106ca1c4;
  transition: all 0.4s ease-in-out;
}

.btn-down .ri-arrow-down-s-line {
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }

  100% {
    opacity: 1;
  }
}



/* ############ 3. GALERIA ############ */
#galeria {
  margin-bottom: 5%;
  padding-left: 3rem;
  padding-right: 3rem;
}

#galeria .accordion .card {
  background-color: transparent;
  color: var(--blanco);
  border-color: transparent;
}

#galeria .accordion .card-header .btn {
  color: var(--blanco);
  text-decoration: none;
  font-size: larger;
  font-weight: 200;
  border-bottom-color: var(--naranja);
  border-width: 3px;
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.swiper-zoom-container img {
  object-fit: cover !important;
  object-position: center;
}

.swiper {
  --swiper-navigation-color: var(--naranja) !important;
  --swiper-pagination-color: var(--naranja) !important;
}

.galeria .swiper-button-next,
  .galeria .swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
  }

  .galeria .swiper-button-next {
    right: 10px;
  }

  .galeria .swiper-button-prev {
    left: 10px;
  }

#galeria .ri-arrow-right-s-fill {
  color: var(--naranja);
  font-size: 2em;
  vertical-align: middle;
}

#galeria a {
  color: var(--naranja);
  text-decoration: none;
  transition: all 0.4s ease-in-out;
}

#galeria a:hover {
  color: var(--azul-tres);
  text-decoration: none;
}

.recomendacion {
  font-size: 0.7rem;
  font-style: italic;
  text-align: center;
}

.destacado-casa {
  width: 55%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
}

@media only screen and (min-width: 200px) and (max-width: 767px) {
  #galeria {
    padding-left: 0;
    padding-right: 0;
  }

  .swiper {
    position: relative;
    width: 85vw;
    height: 75vh;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
  }

  .swiper-slide {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .swiper-zoom-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .destacado-casa {
    width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

}

@media only screen and (min-width: 768px) and (max-width: 1400px) {
  .swiper-slide {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .swiper-zoom-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .destacado-casa {
    width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

}

/* ############ 4. GOTOP ############ */
.float-button-container {
  position: fixed;
  bottom: 1.5rem;
  right: 0.5rem;
  width: 2rem;
  height: 6rem;
}

.float-button-container #gotop {
  width: 0rem;
  height: 0rem;
  margin-top: 0.5rem;
  background-color: var(--azul-tres);
  border-radius: 25%;
  cursor: pointer;
  transition: 0.3s;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.float-button-container #whatsapp {
  width: 0rem;
  height: 0rem;
  margin-top: 0.5rem;
  background-color: #25D366;
  border-radius: 25%;
  cursor: pointer;
  transition: 0.3s;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

#whatsapp .ri-whatsapp-line,
#gotop .ri-arrow-up-double-line {
  color: var(--blanco);
  text-decoration: none;
  font-size: 30px;
  position: relative;
  bottom: 5%;
  left: 10%;
  transition: 0.3s;
  opacity: 0;
  visibility: hidden;
}

#whatsapp a:hover {
  text-decoration: none;
}

.show {
  z-index: 10;
}

.show #gotop {
  animation: popup 0.5s ease-in-out;
  width: 2.5rem;
  height: 2.5rem;
  z-index: 11;
  display: block;
  transform: translate(-50%, -50%) scale(1);
}

.show #whatsapp {
  animation: popup 0.5s ease-in-out;
  width: 2.5rem;
  height: 2.5rem;
  z-index: 11;
  display: block;
  transform: translate(-50%, -50%) scale(1);
}

.show #whatsapp .ri-whatsapp-line,
.show #gotop .ri-arrow-up-double-line {
  transform: translate(-50%, -50%) scale(1);
  transition: 0.3s;
  opacity: 1;
  visibility: visible;
}

@keyframes popup {
  0% {
    width: 0rem;
    height: 0rem;
  }

  50% {
    width: 2rem;
    height: 2rem;
  }

  100% {
    width: 3rem;
    height: 3rem;
  }
}