/* -------------------------------- *\
Estructuctura index.css ->
- Header
- Header responsive
- First banner
- Porta description
- Servicios Porta
- Ofertas
- Equipo
- Mapa de sedes
- Valores
- Propiedades
- Ficha de vivienda
- Formulario
- Localización
- Footer
- Responsive con media query
\* -------------------------------- */

:root {
  /* Color principal */
  --main-color: #87a330;
  /* Color secundario */
  --white-color: #ffffff;
  /* Color secundario */
  --black-color: #262626;
  /* Color secundario */
  --gray-color: #939393;
  /* Color secundario */
  --light-gray-color: #ebebeb;
  /* Ancho por defecto (para el layoutBlock) */
  --layout-width: 1000px;
  /* Espacio por defecto */
  --layout-space: 2em;
  /* Gap o espcio entre elementos por defecto */
  --layout-gap: 1em;
  /* Borde círculo */
  --rounded-border: 100px;
  /* Bordes redondeados */
  --basic-border: 15px;
}

/* ----- CSS Reset ----- */

* {
  /* Se aplica a la totalidad de los elementos */
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Wix Madefor Display", serif;
}

img {
  max-width: 100%;
  object-fit: cover;
}

h1 {
  font-size: 4rem;
  font-weight: 100;
  line-height: 4rem;
}

h2 {
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 2.5rem;
}

h3 {
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 2rem;
}

h4 {
  color: var(--main-color);
}

p,
li,
ul {
  font-size: 0.9rem;
  font-weight: 200;
  line-height: 1.25rem;
}

span {
  font-size: 0.8rem;
  font-weight: 200;
  line-height: 1rem;
}

a {
  font-size: 0.9rem;
  text-decoration: none;
  color: currentColor;
}

button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer; 
}

.btn {
  color: var(--white-color);
  background-color: var(--main-color);
  border-radius: var(--rounded-border);

  padding: 0.8em 1.8em;
  transition: background-color 0.3s, color 0.3s;

  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.btn:hover {
  background-color: #86a330b1;
}

.btn__second {
  color: var(--main-color);
  font-weight: 700;
  border: 1.5px solid var(--main-color);
  border-radius: var(--rounded-border);

  padding: 0.8em 1.8em;
  transition: background-color 0.3s, color 0.3s;
}

.btn__second:hover {
  background-color: #ffffff57;
}

.layoutBlock {
  max-width: var(--layout-width);
  width: 100%;
  margin: auto;
}

header,
footer,
section {
  padding: var(--layout-space);
}
/* ----- CSS Reset ----- */

/* ----- Header ----- */
/* Descripción: diseño del header, logo y enlaces navegadores
* Estructura:
*   - Bloque
*   - Logo
*   - Lista desordenada (ul)
*   - Botones
*/

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

.header__logo {
  display: flex;
  align-content: baseline;
  justify-content: center;
  max-width: var(--rounded-border);
}

.header__ul {
  display: flex;
  align-items: center;
}

.header__li {
  list-style: none;
  display: inline-block;
  padding: var(--layout-gap);
  transition: background-color 0.3s ease;
}

.header__li:hover {
  color: var(--main-color);
  font-weight: 600;
}

.header__li.active {
  border-radius: var(--rounded-border);
  padding: 0.4em 1.5em;
  background-color: var(--light-gray-color);
}

.header__li.active:hover {
  background-color: var(--main-color);
  color: var(--white-color);
}

.header__block .btn {
  font-size: 0.9em;
  display: flex;
  gap: 0.5em;
}
/* ----- Header ----- */

/* ----- Header Responsive ----- */
/* Descripción: diseño del header para móviles y otras pantallas pequeñas
* Estructura:
*   - Icono que abre el menu
*   - Fondo u overlay
*   - Lista desordenada (ul)
*/

.header__navPopup {
  background: none;
  border: none;
  display: none;
  color: var(--main-color);
  transition: color 0.2s;
}

.header__navPopup:hover {
  color: var(--black-color);
}

.overlay {
  background-color: var(--white-color);
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
}

.overlay.hidden {
  display: none;
}

.popup__close {
  position: absolute;
  top: 4em;
  right: 3em;
  background: none;
  border: none;
  color: var(--black-color);
}

.popup__nav {
  padding: 7em 2em 2em 2em;
}

.popup__nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  flex-direction: column;
  gap: var(--layout-gap);
}

.popup__li a {
  font-size: 1.5em;
  font-weight: 600;
}

.popup__li a:hover {
  color: var(--main-color);
}
/* ----- Header Responsive ----- */

/* ----- First Banner ----- */
/* Descripción: diseño del banner principal que describe con un titular cada página
* Estructura:
*   - Backgrounds o fondos, que suelen ser imágenes
*   - Bloques contenedores
*   - Contenido textual
*/

.fbanner {
  padding: 0 2em;
}

.fbanner__background {
  background: url(../assets/jpg/fbanner_home.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: var(--basic-border);
  min-height: 50rem;
}

.fbanner__background--benefit {
  background: url(../assets/jpg/fbanner__benefit.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: var(--basic-border);
  min-height: 50rem;
}

.fbanner__background--us {
  background: url(../assets/jpg/fbanner__us.jpg);
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: var(--basic-border);
  min-height: 30rem;
}

.fbanner__background--prop {
  background: url(../assets/jpg/fbanner__prop.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: var(--basic-border);
  min-height: 25rem;
}

.fbanner__background--services {
  background: url(../assets/jpg/fbanner__services.jpg);
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: var(--basic-border);
  min-height: 50rem;
}

.fbanner__background--contact {
  background: url(../assets/jpg/fbanner__contact.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: var(--basic-border);
  min-height: 30rem;
}

.fbanner__prop {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 600px;
  text-align: center;
  gap: var(--layout-gap);
}

.fbanner__block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4em 0;
  gap: var(--layout-gap);
}

.fbanner__block--us {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4em 0;
  max-width: 600px;
  gap: 2em;
}

.fbanner__block--prop {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4em 0;
  gap: 3em;
}

.fbanner__block--services {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4em 0;
  gap: 3em;
  max-width: 600px;
  text-align: center;
}

.fbanner__block--contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--layout-gap);
  padding: 4em 0;
  max-width: 600px;
}

.fbanner__block h1,
.fbanner__block h2,
.fbanner__block p {
  max-width: 600px;
  text-align: center;
}

.fbanner__buttons {
  display: inline-flex;
  gap: var(--layout-gap);
}

.fbanner__testimonial {
  display: grid;
  grid-template-columns: repeat(2, 150px);
  gap: var(--layout-gap);
}

.fbanner__testimonial-stars {
  color: #ffda0b;
}

.fbanner__benefit {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2em;
}

.fbanner__benefit--content {
  background-color: #ffffffdf;
  box-shadow: 3px 3px 10px #bebebe98;
  border-radius: var(--basic-border);
  padding: 2em;
  display: inline-flex;
  gap: 2em;
  max-width: 400px;
}

.fbanner__benefit--content p {
  text-align: left;
  font-weight: 600;
  color: var(--main-color);
}

.fbanner__benefit--content svg {
  color: var(--main-color);
}

.botones {
  /* Botones del fbanner de propiedades */
  display: flex;
  justify-content: center;
}

.botones__block {
  display: inline-flex;
  justify-content: center;
  gap: var(--layout-gap);
  text-align: center;
}

.botones__block .btn__second {
  background-color: #ffffffd2;
}
/* ----- First Banner ----- */

/* ----- Porta description ----- */
/* Descripción: diseño de un contenido informativo textrual con imágenes
* Estructura:
*   - Bloques contenedores
*   - Título y contenido textual
*   - Imágenes
*/

.description {
  padding: 4em 2em 2em;
}

.description__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--layout-gap);
}

.description__block h2,
.description__block p {
  max-width: 600px;
  text-align: center;
}

.description__pictures {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--layout-gap);
  padding: 1em 0;
}

.description__pictures img {
  border-radius: var(--basic-border);
  transition: transform 0.2s;
}

.description__pictures img:hover {
  transform: scale(1.05); /* Aumenta de tamaño al pasar el cursor*/
}

.description__block--us {
  display: flex;
  flex-direction: row;
  gap: var(--layout-space);
}

.description__pictures--us {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--layout-gap);
  padding: 1em 0;
  max-width: 55%;
}

.description__pictures--us img {
  border-radius: 10px;
}

.description__content--us {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  gap: var(--layout-gap);
  text-align: justify;
}

.description__content {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  gap: var(--layout-gap);
}

.description__block--services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4em;
}

.description__block--services img {
  border-radius: var(--basic-border);
}

.description__content--services {
  display: flex;
  flex-direction: column;
  gap: var(--layout-space);
}

.services__column {
  display: flex;
  flex-direction: column;
  gap: var(--layout-gap);
  align-items: start;
}

.services__card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--layout-gap);
  text-align: center;
}

.services__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--light-gray-color);
  border-radius: var(--basic-border);
  padding: var(--layout-gap);
  box-shadow: 2px 2px 4px #bebebe98;
  gap: 0.5em;
}

.services__item svg {
  color: var(--main-color);
}
/* ----- Porta description ----- */

/* ----- Porta servicios ----- */
/* Descripción: diseño de los servicios que ofrece la empresa en forma de pestañas desplegables, hecho con ayuda de js
* Estructura:
*   - Bloque contenedor
*   - Titular
*   - Botones que abren contenido
*   - Contenido de texto
*/

.services {
  padding: var(--layout-space);
}

.services__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5em;
  text-align: center;
}

.services__pestanas {
  background-color: var(--main-color);
  box-shadow: 5px 5px 10px #bebebe98;
  padding: var(--layout-space);
  border-radius: var(--basic-border);
}

.pestanas__button {
  display: flex;
  gap: var(--layout-gap);
  justify-content: space-between;
}

.pestanas__header {
  border: none;
  cursor: pointer;
  border-radius: var(--rounded-border);
  background-color: var(--white-color);
  color: var(--main-color);
  font-weight: 600;
  font-size: 0.9em;
  padding: 1em 3em;
  box-shadow: 2px 2px 10px #0000001c;
}

.pestanas__header:hover {
  color: var(--gray-color);
  background-color: #ffffffb7;
}

.pestanas__content {
  padding: var(--layout-space);
}

.pestanas__text {
  display: none;
  color: var(--white-color);
}

.pestanas__text.active {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--layout-gap);
}

.pestanas__service {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 150px;
  text-align: center;
  gap: 0.5em;
}

.pestanas__service svg {
  color: var(--white-color);
}
/* ----- Porta servicios ----- */

/* ----- Porta ofertas ----- */
/* Descripción: diseño de cartas que se estiran y encogen al pasar por encima
* Estructura:
*   - Bloque contenedor
*   - Titular
*   - Imagenes de fondo de las cartas
*   - Contenido de cada carta
*/

.offers {
  padding: 4em;
}

.offers__block {
  display: flex;
  flex-direction: column;
  gap: 2em;
}

.offers__description {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.offers__description p {
  max-width: 700px;
}

.offers__description .btn {
  padding: 1em 2em;
}

.offers__text {
  display: flex;
  gap: 1.5em;
}

.offers__card {
  border-radius: var(--basic-border);
  min-height: 25vh;
  width: calc(100% / 3);
  display: flex;
  flex-direction: column;
  justify-content: end;
  position: relative;
  transition: width 0.5s ease;
}

.card--one {
  background: url(../assets/jpg/offers-one.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.card--two {
  background: url(../assets/jpg/offers-two.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.card--three {
  background: url(../assets/jpg/offers-three.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.offers__card:hover {
  width: 50%;
}

.offers__location {
  color: var(--white-color);
  border: 1.5px solid var(--white-color);
  padding: 0.5em var(--layout-gap);
  border-radius: var(--rounded-border);
  display: inline-flex;
  gap: 0.5em;
  position: absolute;
  top: 10px;
  right: 10px;
}

.offers__model {
  color: var(--white-color);
  border: 1.5px solid var(--white-color);
  background-color: #ffffff55;
  padding: 0.5em 1em;
  border-radius: var(--rounded-border);
  display: inline-flex;
  gap: 0.5em;
  position: absolute;
  top: 10px;
  left: 10px;
}

.offers__price {
  color: var(--white-color);
  background-color: #ff00007d;
  padding: 0.5em 1em;
  border-radius: var(--rounded-border);
  display: inline-flex;
  gap: 0.5em;
  position: absolute;
  top: 50px;
  left: 10px;
}

.offer__content {
  display: flex;
  flex-direction: column;
  gap: var(--layout-gap);
  padding: var(--layout-space);
  color: var(--white-color);
  text-align: start;
}

.offer__content h3 {
  padding: 3em 0 0 0;
}

.offer__content p {
  line-height: 1.2em;
  text-align: start;
}

.offer__content a {
  display: flex;
  gap: var(--layout-gap);
  display: flex;
  justify-content: start;
}
/* ----- Porta ofertas ----- */

/* ----- Equipo Porta ----- */
/* Descripción: diseño de cartas de los trabajadores que cambian al pasar por encima
* Estructura:
*   - Bloque contenedor
*   - Titular y contenido textual
*   - Imagenes de fondo de las cartas
*   - Contenido de la carta por delante
*   - Contenido de la carta por detrás
*   - Botón
*/

.group {
  padding: 4em;
}

.group__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--layout-gap);
}

.group__descr {
  display: inline-flex;
  padding: var(--layout-gap);
  gap: 3em;
}

.group__content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: var(--layout-gap);
  gap: 0.5em;
}

.group__person {
  position: relative;
}

.group__person:hover .group__card--behind {
  opacity: 1;
}

.group__card {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: var(--layout-gap);
  padding: var(--layout-gap);
}

.group__card p {
  border: 1.5px solid var(--black-color);
  color: var(--black-color);
  display: block;
  font-weight: 600;
  padding: 0.2em 1em;
  border-radius: var(--rounded-border);
  display: block;
}

.group__card span {
  color: var(--gray-color);
}

.group__card img {
  border-radius: var(--basic-border);
  box-shadow: 3px 3px 10px #bebebe98;
}

.group__card--behind {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--layout-gap);
  background-color: var(--main-color);
  border-radius: var(--basic-border);
  color: var(--white-color);
  min-height: 100%;
  position: absolute;
  top: 0;
  right: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.group__frase {
  padding: 2em 0.5em;
}

.group__behind--content {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: var(--layout-gap);
}

.group__behind--content p {
  border: 1.5px solid var(--white-color);
  font-weight: 600;
  padding: 0.2em 1em;
  border-radius: var(--rounded-border);
}

.group__block .btn {
  padding: 1em 2em;
  margin: 1em;
}
/* ----- Equipo Porta ----- */

/* ----- Mapa e info ----- */
/* Descripción: diseño de mapa con ubicaciones y cuadros con información relevante
* Estructura:
*   - Bloque contenedor
*   - Imagen del mapa
*   - Svg de localizaciones
*   - Titular y contenido textual
*   - Diferentes cuadros de información
*/
.map {
  padding: var(--layout-space);
}

.map--us {
  padding: 4em 2em 0;
}

.map__block {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  position: relative;
  gap: 3em;
}

.map__block img {
  opacity: 0.4;
}

.mapa__content {
  display: flex;
  flex-direction: column;
  gap: 2em;
}

.mapa__datos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5em;
}

.mapa__datos--text {
  background-color: var(--white-color);
  box-shadow: 3px 3px 10px #bebebe98;
  border-radius: var(--basic-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--layout-gap);
  gap: 0.5em;
}

.mapa__datos--text h3 {
  color: var(--main-color);
  font-weight: 700;
}

.office-one {
  color: var(--main-color);
  position: absolute;
  top: 2px;
  left: 90px;
}

.office-two {
  color: var(--main-color);
  position: absolute;
  top: 40px;
  left: 90px;
}

.office-three {
  color: var(--main-color);
  position: absolute;
  top: 125px;
  left: 240px;
}

.office-four {
  color: var(--main-color);
  position: absolute;
  top: 240px;
  left: 170px;
}

.office-five {
  color: var(--main-color);
  position: absolute;
  top: 75px;
  left: 410px;
}

.office-six {
  color: var(--main-color);
  position: absolute;
  top: 200px;
  left: 340px;
}

.office-seven {
  color: var(--main-color);
  position: absolute;
  top: 10px;
  left: 180px;
}

.office-eight {
  color: var(--main-color);
  position: absolute;
  top: 110px;
  left: 250px;
}

.office-nine {
  color: var(--main-color);
  position: absolute;
  top: 80px;
  left: 425px;
}
/* ----- Mapa e info ----- */

/* ----- Values ----- */
/* Descripción: diseño del acordeón de valores ubicado en "sobre nosotros"
* Estructura:
*   - Bloque contenedor
*   - Titular
*   - Pestañas que abren y cierran
*   - Contenido textual del interior
*/

.values {
  padding: 2em 2em 4em;
}

.values__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--layout-space);
}

.values__pestanas {
  display: flex;
  flex-direction: column;
  gap: var(--layout-gap);
}

.values__container {
  max-width: 700px;
}

.values__title p {
  font-size: 1.1em;
}

.values__title {
  background-color: var(--light-gray-color);
  border-radius: var(--basic-border);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 1.5em;
}

.values__button {
  border: none;
  color: var(--main-color);
  background: none;
  transition: transform 0.2s;
}

.values__button:hover {
  transform: scale(1.2);
}

.value__text {
  display: none;
  padding: 0.5em 2em 2em;
}

.value__text.active {
  display: flex;
}
/* ----- Values ----- */

/* ----- Propiedades ----- */
/* Descripción: diseño de cartas iguales distribuidas con grid en bloques
* Estructura:
*   - Bloque contenedor
*   - Titular
*   - Imagen de la carta
*   - Contenido de la carta
*/
.propiedades__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2em;
}

.propiedades__title {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: var(--layout-gap);
  padding: 2em 0 0 0;
  text-align: center;
}

.propiedades__content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--layout-gap);
}

.propiedades__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

.propiedades__card img {
  border-radius: var(--basic-border);
}

.propiedades__text {
  display: flex;
  flex-direction: column;
  padding: var(--layout-gap);
  background-color: rgba(241, 241, 241, 0.695);
  box-shadow: 1.5px 1.5px 10px #bebebe98;
  border-radius: var(--basic-border);
  gap: 1.5em;
}

.prop__info {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

.propiedades__text a:hover {
  text-decoration: underline;
}

.prop__datos {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.prop__ubi {
  color: var(--white-color);
  border: 1.5px solid var(--white-color);
  background-color: #ffffff55;
  font-size: 0.7rem;
  padding: 0.5em 1em;
  border-radius: var(--rounded-border);
  display: inline-flex;
  gap: 0.5em;
  position: absolute;
  top: 10px;
  left: 10px;
}

.propiedades__description {
  font-size: 0.7rem;
  line-height: 1.3em;
  color: var(--gray-color);
}

.prop__price {
  color: var(--white-color);
  background-color: var(--main-color);
  font-size: 0.7rem;
  padding: 0.5em 1em;
  border-radius: var(--rounded-border);
  display: inline-flex;
}
/* ----- Propiedades ----- */

/* ----- Ficha tipo de propiedad ----- */
/* Descripción: diseño de la ficha de propiedad con sus caracteristicas. Esta contiene lightbox y un carrusel hechos con js, entre otras cosas
* Estructura:
*   - Bloque contenedor
*   - Titular, contenido informativo e iframe
*   - Imágenes de la propiedad
*   - Elementos del lightbox
*   - Elementos del carrusel
*/
.housefile__block {
  display: flex;
  flex-direction: row;
  gap: 5rem;
}

.housefile__content {
  max-width: 40%;
  display: flex;
  flex-direction: column;
  gap: var(--layout-space);
}

.housefile__title {
  display: flex;
  flex-direction: column;
  gap: var(--layout-gap);
}

.housefile__title span {
  display: flex;
  gap: 0.5em;
}

.housefile__line {
  display: flex;
  gap: 3em;
}

.housefile__icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--layout-gap);
}

.housefile__assets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5em;
}

.housefile__assets span {
  display: flex;
  gap: 0.5em;
}

.houselife__price {
  font-size: 3em;
  font-weight: 700;
  color: var(--main-color);
}

.houselife_sup {
  font-size: 2em;
  padding: 0 0 1em 0;
}

.housefile__content iframe {
  border-radius: var(--basic-border);
  max-width: 25em;
  max-height: 10em;
}

.thumbnail {
  border-radius: 20px;
  cursor: pointer;
  border-radius: 10px;
  transition: transform 0.2s;
}

.thumbnail:hover {
  transform: scale(1.05);
}

.housefile__img {
  display: flex;
  flex-direction: column;
  gap: var(--layout-gap);
}

.housefile__inline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--layout-gap);
  max-width: 100%;
}

.housefile__enlace {
  background: none;
  text-decoration: underline;
  border: none;
  font-size: 1em;
}

.mostrar {
  display: block;
}

.ocultar {
  display: none;
}

.housefile__contacto {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--layout-gap);
  padding: 2em 0;
}

.housefile__lightbox {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.lightbox__arrows {
  display: flex;
  align-items: center;
  gap: 2em;
}

.housefile__lightbox img {
  max-width: 90%;
  max-height: 80%;
}

.anterior,
.posterior {
  color: var(--white-color);
}

.close {
  color: var(--white-color);
  transition: transform 0.2s;
}

.close:hover {
  transform: scale(1.5);
}
/* ----- Ficha tipo de propiedad ----- */

/* ----- Formulario de contacto ----- */
/* Descripción: diseño del formulario de la página de contacto
* Estructura:
*   - Bloque contenedor
*   - Contenido en línea
*   - Contenido en bloque
*   - Input y label
*/
.contact {
  padding: var(--layout-space);
}

.contact__block {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3em;
}

.contact__content {
  background: url(../assets/jpg/contact_backg.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: var(--basic-border);
}

.contact__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100%;
  min-width: 100%;
  color: var(--white-color);
  border-radius: var(--basic-border);
  background-color: #86a330c9;
  transition: background-color 0.3s ease;
  gap: var(--layout-space);
  padding: 2em;
}

.contact__text p {
  font-size: 2em;
  line-height: 1em;
}

.contact__text span {
  font-size: 1em;
}

.contact__text div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
}

.contact__text--bold {
  font-weight: 700;
}

.contact__text:hover {
  background-color: #86a330ed;
}

form {
  display: flex;
  flex-direction: column;
  gap: var(--layout-gap);
}

.form__row {
  display: flex;
  gap: var(--layout-gap);
}

.form__column {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0.5em;
}

select {
  all: unset;
  background-color: var(--light-gray-color);
  padding: 1em 1.5em;
  border-radius: var(--basic-border);
  color: var(--gray-color);
}

.form__column--textarea textarea {
  background-color: var(--light-gray-color);
  border-radius: var(--basic-border);
  border: none;
  padding: 2em;
  font-size: 1em;
}

input {
  background-color: var(--light-gray-color);
  padding: 1em 1.5em;
  border-radius: var(--basic-border);
  border: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  font-size: 1em;
}

.no-label label {
  display: none;
}

::placeholder {
  color: var(--gray-color);
  font-size: 1rem;
}

.form__send {
  cursor: pointer;
}
/* ----- Formulario de contacto ----- */


/* ----- Localización con iframe ----- */
/* Descripción: diseño del mapa de la página de contacto
* Estructura:
*   - Bloque contenedor
*   - Iframe
*/
.location {
  padding: var(--layout-space);
}

.location__content {
  width: 100%;
  max-height: 25vh;
  border-radius: var(--basic-border);
}
/* ----- Localización con iframe ----- */


/* ----- Footer ----- */
/* Descripción: diseño del footer de la web
* Estructura:
*   - Bloque contenedor
*   - Logo y slogan
*   - Menú
*   - Datos de contacto
*   - Botones
*/
footer {
  display: flex;
  align-items: center;
  padding: 2em 0 0 0;
}

.footer__block {
  display: flex;
  flex-direction: column;
  padding: 2em 0;
}

.footer__text {
  display: inline-flex;
  justify-content: space-between;
  gap: 10em;
}

.footer__color {
  background-color: var(--main-color);
  min-height: 10px;
}

.footer__content {
  display: inline-flex;
  gap: 3em;
  justify-content: space-between;
  align-items: center;
}

.footer__logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--layout-gap);
  max-width: 250px;
}

.footer__logo img {
  max-width: 50px;
}

.footer__logo span {
  color: var(--gray-color);
}

.footer__links {
  display: flex;
  flex-direction: column;
}

.footer__links a:hover {
  text-decoration: underline;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: var(--layout-gap);
}

.footer__contact p {
  color: var(--main-color);
  font-weight: 700;
}

.footer__buttons {
  display: flex;
  flex-direction: column;
  gap: var(--layout-gap);
}
/* ----- Footer ----- */

/* ----- Responsive con Media Query ----- */
/* Descripción: diseño del responsive de la web, para adaptarla a otro tipo de pantallas
*/
@media (max-width: 360px) /* móvil muy pequeño */ {
  .services__pestanas {
    box-shadow: none;
    padding: 0;
  }
}

@media (max-width: 500px) /* móvil pequeño */ {
  .header__logo {
    max-width: var(--rounded-border);
  }

  .header__nav {
    display: none;
  }

  .header__navPopup {
    display: inline-block;
  }

  .services__pestanas {
    box-shadow: none;
    padding: 0;
  }

  .fbanner__testimonial {
    display: none;
  }

  .footer__contact {
    display: none;
  }

  .fbanner__benefit {
    display: grid;
    grid-template-columns: repeat(1, 300px);
    gap: var(--layout-gap);
  }

  .services__pestanas {
    box-shadow: none;
    padding: 1em;
  }

  .propiedades__content {
    display: block;
  }

  .propiedades__card {
    padding: 1em;
  }

  .prop__ubi {
    top: 30px;
    left: 30px;
  }
}

@media (max-width: 768px) /* tablet */ {
  .header__block .btn {
    display: none;
  }

  .fbanner__block p {
    max-width: 400px;
  }

  .offers__description {
    display: flex;
    flex-direction: column;
    gap: var(--layout-gap);
    align-items: start;
  }

  .offers__text {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--layout-gap);
  }

  .description__pictures {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .services__pestanas {
    max-width: 500px;
  }

  .pestanas__button {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--layout-gap);
  }

  .pestanas__text.active {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2em;
  }

  .group__content {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2em;
  }

  .group__descr {
    display: flex;
    flex-direction: column;
    gap: var(--layout-gap);
    padding: 1em 0;
  }

  .mapa__datos {
    display: flex;
    flex-direction: column;
    gap: var(--layout-gap);
  }

  .footer__buttons {
    display: none;
  }

  .botones__block {
    display: flex;
    flex-direction: column;
    gap: var(--layout-gap);
  }

  .propiedades__content {
    grid-template-columns: repeat(2, 1fr);
  }

  .fbanner__block--contact p {
    display: none;
  }

  .contact__block {
    grid-template-columns: repeat(1, 1fr);
  }

  .description__block--us {
    flex-direction: column;
  }

  .description__pictures--us {
    max-width: 100%;
  }

  .fbanner__block--services {
    max-width: 300px;
    padding: 2em 0;
    gap: var(--layout-gap);
  }

  .housefile__content iframe {
    max-width: 20em;
  }
}

@media (max-width: 1000px) /* ordenador pequeño */ {
  .map__block {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
  }

  .map__block img {
    display: none;
  }

  .office--location {
    display: none;
  }

  .mapa__content {
    padding: var(--layout-space);
  }

  .offers__card.active {
    min-width: 0px;
  }

  .footer__text {
    justify-content: space-between;
    padding: var(--layout-gap);
    gap: var(--layout-gap);
  }

  .fbanner__benefit--content p,
  .fbanner__benefit--content span {
    text-align: center;
  }

  .fbanner__benefit--content {
    max-width: 300px;
  }

  .fbanner__benefit--content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
  }

  .offers__card {
    width: 100%;
  }

  .offers__card:hover {
    width: 98%;
  }

  .services__card {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .housefile__block {
    display: block;
  }

  .housefile__content {
    max-width: 100%;
    align-items: center;
    gap: 3em;
    text-align: center;
  }

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

@media (max-width: 1200px) /* ordenador */ {
  .description__block--services {
    grid-template-columns: repeat(1, 1fr);
  }

  .description__block--services img {
    display: none;
  }
}