@import url(root.css);
@import url(fonts.css);
@import url(common.css);

* {
	box-sizing     : border-box;
	scroll-behavior: smooth;
	scroll-margin  : 150px;
	margin         : 0;
	padding        : 0;
}

html,
body {
	min-height : 100%;
	font-family: var(--main-font), system-ui, Arial, sans-serif;
	font-weight: 400;
	font-size  : var(--main-font-size);
	color      : var(--font-color);
  padding: 0!important;
}

h1,
h2,
h3 {
	font-family: var(--h1-font), system-ui, Arial, sans-serif;
	font-weight: 600;
	margin     : 0;
  margin-bottom: 40px;
}

h1 {
	font-size: var(--h1-font-size);
  position: relative;
}

h2, #propiedad h1 {
	font-size: var(--h2-font-size);
}

h3, #propiedad h2 {
	font-size: var(--h3-font-size);
}

#propiedad h2 {
  font-size: 16px;
}

ul {
  list-style-type: none;
  margin-block-start: 0;
  padding-inline-start: 0;
}

ul li:not(:last-child) {
	margin-bottom: 35px;
}


header {
	color           : var(--header-font-color);
	font-size       : var(--header-font-size);
  font-weight: 600;
  /* overflow: hidden; */
  background : var(--header-bg-color);
  box-shadow: var(--box-shadow)
}

header .logo {
  transition: all 0.3s ease;
  max-width: unset;
}

header nav.flex {
  gap: 10px
}

header nav a {
  padding: 15px 0;
}

footer {
	font-size: var(--footer-font-size);
  background-color: var(--primary-color);
}

footer .contenido {
  padding: 25px 15px;
}

footer .redes img {
  filter: invert(1);
}

footer .redes a:nth-of-type(2) img {
  width: 33.5px;
}

.redes img {
  width: 35px;
}

footer .copy {
  background-color: var(--tertiary-color);
}

footer .copy .contenido {
  padding: 5px 15px;
}

table {
	border-spacing: 0;
	width         : 100%;
}

th,
td{
	padding        : 5px 0;
	border-collapse: collapse;
}

hr {
	border    : none;
	border-top: #ccc solid 1px;
	margin    : 20px auto;
	width     : min(1000px, 95%);
	margin-top: 100px;
}

/* section:not(#home section) { */
/* 	padding: 0 10px; */
/* } */

section {
	margin: var(--margin-sections);
}

#propiedades-section section:nth-of-type(2) {
  padding: var(--margin-sections)
}

#propiedades-section section {
  margin: 0;
}

section:first-of-type {
	margin-top: 100px;
}

#propiedades-section section:first-of-type {
  margin-top: 0;
}

img {
	max-width: 100%;
}

button,
button[type="button"],
.btn {
	border       : none;
	padding      : 11px 20px;
	border-radius: 10px;
	text-align   : center;
	cursor       : pointer;
	display      : inline-block;
  background-color: var(--secondary-color);
  font-weight: bold;
	color        : white;
	width           : min(160px, 100%);
  white-space: nowrap;
  transition: all 0.3s ease-in-out;
}

button:hover,
button[type="button"]:hover,
.btn:hover{
  background-color:#f55;;
}

.max-content {
  width: max-content;
}

.error {
  font-size: 12px;
  color: red;
  font-weight: bold;
}

.logo {
  width: 90px;
}

div[aria-labelledby="swal2-title"] {
  border-radius: 0;
}

a {
	text-decoration: none
}

a>svg,
span>svg {
	vertical-align: middle;
	height        : 100%;
	width         : 100%;
}

select {
  color: #777;
}

input:-webkit-autofill {
	background-color  : white !important;
	-webkit-box-shadow: 0 0 0 1000px white inset !important;
	box-shadow        : 0 0 0 1000px white inset !important;
	color             : black !important;
}

input,
select,
textarea {
	display: block;
	padding: 11px 10px;
	width  : 100%;
  border-radius: 10px;
  border: 1px solid #ccc
}

input.invalid,
select.invalid,
textarea.invalid {
	border          : 2px solid red;
	background-color: #ffe6e6;
  color: red
}

input:focus {
	/* background-color   : white; */
	outline         : none;
	border-radius   : 10px;
	/* border       : 2px solid black; */
}

input:focus.invalid {
	outline: none;
	border : 2px solid red
}

label {
	display: block;
}

label:not(:first-of-type) {
	margin: 25px 0;
}


.contenido {
	max-width: var(--contenido);
	margin   : auto;
	padding  : 15px;
	/* position : relative; */
}

.loader {
	border-radius   : 50%;
	border          : 3px solid black;
	border-top-color: transparent;
	animation       : spin 1.2s linear infinite;
	height          : 50px;
	width           : 50px;
	position        : absolute;
	top             : 0;
	bottom          : 0;
	right           : 0;
	left            : 0;
	margin          : auto;
}


#pages {
	margin-top: 50px;
}

#pages .active {
	color: #990000;
}

#collapsing-menu {
	background-color: var(--primary-color);
	/* padding         : 15px; */
	/* padding-top     : 130px; */
  max-width: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: all 0.3s ease-in-out;
  overflow: hidden;
}

#collapsing-menu.open {
  max-width: 100%;
  opacity: 1;
}

#collapsing-menu div {
	padding: 10px;
}

#collapsing-menu div:first-of-type {
	padding-top: 0;
}

#collapsing-menu div:last-of-type {
	padding-bottom: 0;
}

.sombra {
  background-color: rgba(0, 0, 0, 0.5);
  height: 100%;
  width: 100%;
}

details > summary:first-of-type {
  list-style: none;
}

details > summary {
  display: flex;
  gap: 10px;
  cursor: pointer;
}

details > summary::before {
  content: '+';
  height: max-content;
  transition: all 0.3s ease-in-out;
}

details[open] > summary::before {
  transform: rotate(45deg);
}

summary {
  color: white;
  padding: 15px 20px;
}

details {
  user-select: none;
  overflow: hidden;
  margin-bottom: 3px;
  outline-offset: -3px;
}

select {
  background-color: white!important;
}

.w3-dropdown-content {
  background-color: var(--tertiary-color);
  text-transform: uppercase;
  font-size: 13px;
  top: 55px;
  left: -16px;
  min-width: 124px;
}

.wa-flotante {
  position: fixed;
  z-index: 99;
  bottom: 30px;
  right: 25px;
  text-align: center;
  font-weight: bold;
}

.wa-flotante img {
  filter: drop-shadow(-2px 2px 8px rgba(0,0,0,0.3));
  width: 70px;
}

.language {
  font-weight: normal;
}

.language .activo {
    font-weight: bold;
}

.degradado {
  border-top: 4px solid;
  border-image: linear-gradient(
      to right,
      #DECC8A,
      #FCE98D,
      #DECC8A
  ) 1 0 0 0;
}

#banner .img-wrapper {
  height: 700px;
}

.filtros-propiedades form {
  background-color: rgba(255, 255, 255, 0.4);
  padding: 9px;
  margin-top: 20px;
}

.filtros-propiedades .tipos button {
  background-color: white;
  color: var(--font-color);
  width: min(180px, 100%);
}

.filtros-propiedades .tipos button.active {
  background-color: var(--secondary-color);
  position: relative;
  color: white;
}

.filtros-propiedades .tipos button::after {
  transition: all 0.3s ease-in-out;
  border-left: 0 solid transparent;
  border-right: 0 solid transparent;
  border-top: 0 solid var(--secondary-color);
  content: '';
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
}

.filtros-propiedades .tipos button.active::after {
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid var(--secondary-color);
  transition: all 0.3s ease-in-out;
}

.filtros-propiedades .flex.principal {
  gap: 10px;
  padding: 50px 10px;
  background-color: white;
}

.filtros-propiedades .absolute.right-bottom {
  bottom: 10px;
  user-select: none;
  font-weight: bold;
  padding-right: 26px;
  right: 10px;
}

.filtros-propiedades .absolute.right-bottom::after {
  content: '';
  position: absolute;
  right: 0;
  /* background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' viewBox='0 0 24 24'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cg fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M4 8h9m4 0h3m-9 8h9M4 16h3'/%3E%3Ccircle cx='9' cy='16' r='2'/%3E%3Ccircle cx='15' cy='8' r='2'/%3E%3C/g%3E%3C/svg%3E"); */
  background-image: url('../assets/btnavanzadas.svg');
  background-repeat: no-repeat;
  background-size: contain;
  top: 50%;
  transform: translateY(-50%);
  height: 14px;
  width: 17px;
}

.filtros-propiedades .mas-opciones .flex {
  gap: 10px;
  padding: 30px 10px;
}

.filtros-propiedades .mas-opciones {
  background-color: rgba(255, 255, 255, 0.4);
  height: 100%;
  top: 0;
  left: 0;
  align-items: end;
  z-index: -1;
  transition: height 0.3s ease-in-out;
}

.filtros-propiedades .open .mas-opciones {
  height: calc(100% + 100px);
  transition: height 0.3s ease-in-out;
}

.filtros-propiedades .principal .select-wrapper {
  width: 50%;
}

.filtros-propiedades .principal button {
  width: 30%;
}

.rounded {
  border-radius: 10px;
}

.propiedad {
  min-height: 300px;
}

.propiedad .contenido {
  height: 100%;
}

.propiedad .contenido.flex {
  gap: 10px;
  justify-content: end;
  align-items: start;
}

.propiedad .flex {
  gap:5px
}

.propiedad .c-white {
  text-shadow: 1px 1px 4px black;
}

.propiedad .flex.info {
  justify-content: start;
  gap: 15px
}

.tag {
  text-shadow: none!important;
  text-transform: uppercase;
  padding: 5px 17px;
  left: 15px;
  top: 15px;
  border-radius: 8px;
  background-color: red;
  width: min(100%, 100px);
  width: fit-content;
}

.cards {
  margin: 50px 0;
}

.card {
  background-color: white;
  border: 1px solid #ccc;
  padding: 30px 17px;
}

.select-wrapper {
  display: inline-block;
}

.select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
}

.select-wrapper::after {
  content: '';
  position: absolute;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgNTYgNTYiPgoJPHBhdGggZD0iTTAgMGg1NnY1NkgweiIgZmlsbD0ibm9uZSIgLz4KCTxwYXRoIGZpbGw9ImN1cnJlbnRDb2xvciIgZD0iTTI4IDM5LjQ2YTIuMSAyLjEgMCAwIDAgMS41Ny0uNjc5bDE4LjE2NC0xOC41ODZhMi4xIDIuMSAwIDAgMCAuNjMzLTEuNWEyLjEyIDIuMTIgMCAwIDAtMi4xNTYtMi4xNTZhMi4yNyAyLjI3IDAgMCAwLTEuNTIzLjYxTDI4IDM0LjIxTDExLjMxMyAxNy4xNDhhMi4yMyAyLjIzIDAgMCAwLTEuNTI0LS42MDlhMi4xMiAyLjEyIDAgMCAwLTIuMTU2IDIuMTU2YzAgLjU4Ni4yMzQgMS4xMDIuNjMzIDEuNTI0TDI2LjQzIDM4Ljc4Yy40NDUuNDQ2Ljk2LjY4IDEuNTcuNjgiIC8+Cjwvc3ZnPgo=');
  background-repeat: no-repeat;
  background-size: cover;
  height: 20px;
  width: 20px;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.flecha-next svg {
    transform: rotate(180deg);
}

#inicio #banner {
  margin-bottom: 0;
}

#por-que-triada {
  margin-bottom: 0;
}

#por-que-triada .contenido {
  padding: 100px 15px; 
}

#por-que-triada .card:nth-of-type(1) img {
  width: 65px;
}

#por-que-triada .card:nth-of-type(2) img {
  width: 100px;
}

#por-que-triada .card:nth-of-type(3) img {
  width: 60px;
}

#por-que-triada .card:nth-of-type(4) img {
  width: 70px;
}

#propiedades::after, #propiedad section:first-of-type::after, #propiedades-section section::after {
  content: '';
  inset: 0;
  position: absolute;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMTYgMTYiPgoJPHBhdGggZD0iTTAgMGgxNnYxNkgweiIgZmlsbD0ibm9uZSIgLz4KCTxwYXRoIGZpbGw9ImN1cnJlbnRDb2xvciIgZD0iTTggOS41YTEuNSAxLjUgMCAxIDAgMC0zYTEuNSAxLjUgMCAwIDAgMCAzIiAvPgo8L3N2Zz4K');
  background-repeat: repeat;
  background-size: 10px;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  z-index: -5;
}

#propiedades {
  margin: 0;
}

#inicio #propiedades .contenido:first-of-type {
  padding: 100px 15px; 
  padding-top: 150px;
}

#propiedades .btn {
  margin-top: 50px;
}

#propiedades .propiedades {
  gap: 20px
}

#servicios {
  background-color: #303441;
  margin-top: 0;
  z-index: -2
}

#servicios .mapa {
  object-fit: contain;
  width: min(100%, 750px);
  opacity: 0.7;
  z-index:-1
}

#servicios .contenido {
  padding: 100px 15px;
  padding-bottom: 150px;
}

#servicios .grid {
  gap: 70px
}

#servicios .grid .flex {
  gap: 10px;
  align-items: start;
  justify-content: start;
}

#servicios .grid .flex img {
  margin-top: 8px;
}

#servicios h3 {
  margin-bottom: 20px; 
}

#contacto h2 {
  margin-bottom: 5px;
}

#contacto p {
  margin-bottom: 30px;
}

#contacto label:not(:first-of-type) {
  margin: 10px 0;
}

#contacto .btn {
  margin-top: 10px;
}

#contacto .info {
  font-size: 18px;
}

#contacto .info h3, #contacto .info p {
  margin: 0;
}

#propiedad h1, #propiedad h2 {
  margin: 0;
}

#propiedad h1 {
  margin-top: 60px;
}

#propiedad h2 {
  margin-bottom: 30px;
}

#propiedad .descripcion {
  margin: 50px 0;
}

#propiedad .imagenes {
  margin-top: 0
}

#propiedad .tag {
  margin-bottom: 10px;
}

#propiedad .ficha-tecnica {
  margin-bottom: 50px;
}

#propiedad .ficha-tecnica .flex {
  gap: 10px;
  margin: auto;
  width: max-content;
}

#propiedad .ficha-tecnica strong {
  color: var(--secondary-color);
}

#propiedad #wa .btn {
  font-weight: bold;
  display: flex!important;
  width: max-content;
  gap: 15px;
  margin: auto;
  background-color: #009e00;
}

#propiedad .info {
  margin: 30px 0;
  grid-template-columns: 1fr 1fr!important;
  gap: 30px;
}

#propiedad .btn.mas-informacion {
  display: flex!important;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin: auto
}

#propiedad .btn img {
  width: 35px;
}

#propiedad .imagenes .img-wrapper {
  height: 350px;
}

@media only screen and (min-width:800px) {
  #propiedad .principal.grid.g-2 {
    grid-template-columns: 1fr 400px
  }
}

header.scrolled .logo {
  width : 65px;
}
@media only screen and (min-width:601px) {
  footer .grid .flex:nth-child(1) {
    justify-content: start;
  }
  footer .grid .flex:nth-child(3) {
    justify-content: end;
  }
}

@media screen and ((min-width: 600px) and (max-width: 950px)) {}

@media only screen and (max-width:600px) {
  body {
    overflow-x: hidden;
  }

	h1 {
		font-size: var(--h1-small-font-size);
	}

	h2, #propiedad h1 {
		font-size: var(--h2-small-font-size);
	}

	h3, #propiedad h2 {
		font-size: var(--h3-small-font-size);
	}

  #propiedad h2 {
    font-size: 16px;
  }

  button[type="button"], .btn {
    padding: 10px 5px;
    width: min(200px, 100%);
  }

  .logo {
    width: 100px;
  }

  .btn, .btn-dark {
    font-size: 15px;
  }

  section:first-of-type {
      margin-top: 100px;
  }

  footer .grid {
    gap: 30px;
  }

  .wa-flotante {
    bottom: 20px;
    right: 10px
  }

  .wa-flotante img {
    width: 60px;
  }

  .cards {
    grid-template-columns: 1fr 1fr!important;
    gap: 30px;
  }

  .filtros-propiedades .tipos button {
    padding: 11px 10px;
  }

  #servicios .grid {
    gap: 50px
  }

  #servicios .grid .flex img {
    margin-top: 4px;
  }

  #propiedad .principal.grid.g-2 {
    gap: 30px
  }
  .filtros-propiedades .flex.principal, .filtros-propiedades .mas-opciones .flex {
    flex-wrap: wrap;
  }
  .filtros-propiedades .flex.principal [type="search"], .filtros-propiedades .flex.principal [type="submit"] {
    flex-basis: 100%;
  }
  .filtros-propiedades .flex.principal .select-wrapper, .filtros-propiedades .mas-opciones .flex .select-wrapper, .filtros-propiedades .mas-opciones .flex input {
    flex: 0 0 calc(50% - 5px);
  }
  .filtros-propiedades .open .mas-opciones {
    height: calc(100% + 150px)
  }
  #inicio #banner .absolute.center {
    top: 44%;
  }
}


@keyframes spin {
	to {
		transform: rotate(360deg)
	}
}
