/* Reset */
@font-face {
  font-family: 'Gowun-Bold';
  src: url('../fonts/GowunBatang-Bold.ttf');
}

@font-face {
  font-family: 'Gowun-Regular';
  src: url('../fonts/GowunBatang-Regular.ttf');
}

@font-face {
  font-family: 'Cormorant Bold';
  src: url('../fonts/Cormorant_SC/CormorantSC-Bold.ttf');
}

@font-face {
  font-family: 'Cormorant light';
  src: url('../fonts/Cormorant_SC/CormorantSC-Light.ttf');
}

@font-face {
  font-family: 'Cormorant medium';
  src: url('../fonts/Cormorant_SC/CormorantSC-Medium.ttf');
}

@font-face {
  font-family: 'Cormorant regular';
  src: url('../fonts/Cormorant_SC/CormorantSC-Regular.ttf');
}

@font-face {
  font-family: 'Cormorant semiBold';
  src: url('../fonts/Cormorant_SC/CormorantSC-SemiBold.ttf');
}

@font-face {
  font-family: 'TT-Black';
  src: url('../fonts/TT Drugs Trial Black.otf');
}

@font-face {
  font-family: 'TT-Bold';
  src: url('../fonts/TT Drugs Trial Bold.otf');
}

@font-face {
  font-family: 'TT-Regular';
  src: url('../fonts/TT Drugs Trial Condensed Regular.otf');
}

@font-face {
  font-family: 'TT-Regular-Thin';
  src: url('../fonts/TT Drugs Trial Thin.otf');
}

@font-face {
  font-family: 'PlusJaKartaSans';
  src: url('../fonts/Plus_Jakarta_Sans/PlusJakartaSans-VariableFont_wght.ttf');
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'TT-Regular';
}

main {
  padding: 50px 100px;
}

.title-section {
  width: 100%;
  display: block;
}

#head {
  background: transparent;
  transition: background-color 0.4s ease;
}

/* Cuando el cursor esté sobre el header */
#head:hover {
  background-color: var(--color-primary);
  /* Cambia este color al que necesites */
  transition: background-color 0.4s ease;
}

header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  max-height: 125px;
}

.navbar {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 15px 30px;
  transition: background-color 0.3s ease;
  background: transparent;
}

.pagination-item {
  padding: 10px 18px;
  border: 2px solid var(--color-gold);
  border-radius: 8px;
  color: var(--color-gold);
  text-decoration: none;
  font-family: 'TT-Bold';
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.pagination-item:hover:not(.disabled):not(.active) {
    background: var(--color-gold);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* Safari-specific fixes */
@media not all and (min-resolution: 0.001dpcm) {
  @supports (-webkit-appearance: none) {
    .navbar {
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
    }
  }
}

.navbar {
  padding: 50px 30px 5px 30px;
  transition: padding 0.5s ease;
  /* Transición suave */
}

.navbar.shrink {
  padding: 5px 30px 5px 30px;
  /* padding cuando se hace scroll */
  transition: padding 0.5s ease;
  /* Transición suave */
}

.navbar:hover {
  padding: 5px 30px 5px 30px;
}

.navbar-container {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.navbar-container:hover{
  background-color: var(--color-primary);
}

.navbar-container .links {
  height: 100%;
  height: -webkit-fill-available;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.navbar.scrolled {
  background-color: var(--color-primary);
  /* verde */
}

.logo img {
  height: 70px;
}

.nav-links {
  height: 100%;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
}

.bg-primary .links .nav-links a,
.nav-links a {
  text-decoration: none;
  color: var(--color-white);
  font-size: 20px;
  font-family: 'Cormorant regular';
}

.login-btn,
.btn-blr,
.btn-blr-action {
  margin-left: 10px;
}

.bg-primary .links .login-btn a,
.login-btn a {
  border: 1px solid var(--color-white);
  padding: 6px 15px;
  border-radius: 20px;
  color: var(--color-white);
  text-decoration: none;
}

.btn-blr a {
  border: 1px solid var(--color-gold);
  padding: 6px 15px;
  border-radius: 20px;
  color: var(--color-white);
  text-decoration: none;
}

.btn-blr-action a {
  font-family: 'TT-Regular';
  text-decoration: none;
  color: var(--color-white);
  font-size: medium;
}

.btn-blr:hover a {
  background-color: var(--color-gold);
  transition: 0.4s;
}

.btn-blr-action {
  background-color: var(--color-primary);
  border: 1px solid var(--color-primary);
  padding: 3px 10px;
  border-radius: 20px;
  color: var(--color-white);
  text-decoration: none;
  /* min-width: 150px; */
  max-width: 114px;
  /* margin-top: 20px; */
  font-family: 'PlusJaKartaSans';
  font-weight: normal;
  font-size: 17px;
}

.btn-blr-action:hover {
  background-color: var(--color-gold);
  border-color: var(--color-primary);
  transition: 0.4s;
}

.nav-item {
  height: 100%;
  position: relative;
  display: grid;
  place-content: center;
}

.nav-item:hover {
  border-bottom: 2px solid white;
}

.nav-item:hover>a {
  text-decoration: none;
  color: white;
  font-family: 'Cormorant Bold';
}

#head:hover,
.mega-menu:focus-within {
  background-color: var(--color-primary);
}

.nav-item:hover .mega-menu,
.mega-menu:hover,
.mega-menu:focus-within {
  opacity: 1;
  pointer-events: auto;
}

/* Mega menu */
/* .mega-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  background: #014d2b;
  display: none;
  padding: 10% 20px 20px 20px;
  color: var(--color-white);
  z-index: -1;
}

.mega-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: auto;
} */

.mega-menu {
  position: fixed;
  left: 0;
  top: 79px;
  /* AJUSTA A LA ALTURA DE TU HEADER */
  width: 100vw;
  background: var(--color-primary);

  opacity: 0;
  pointer-events: none;
  /* evita que interfiera cuando está oculto */

  padding: 40px 90px;
  color: var(--color-white);
  z-index: 9999;

  transition: opacity 0.2s ease;
}

.mega-content {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-column-gap: 0px;
  grid-row-gap: 0px;
}

.mega-content.renta {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: 1fr;
  grid-column-gap: 0px;
  grid-row-gap: 0px;
}

.div1 {
  grid-area: 1 / 1 / 2 / 2;
}

.div2 {
  grid-area: 1 / 2 / 2 / 3;
}

.div3 {
  grid-area: 1 / 3 / 2 / 6;
}

.menu-renta-div1 {
  grid-area: 1 / 1 / 2 / 3;
  padding-right: 20px;
}

.menu-renta-div2 {
  grid-area: 1 / 3 / 2 / 6;
}

.div1 ul li a{
  font-family: 'TT-Regular';
  font-size: 16px;
}

.mega-content h5 {
  font-size: large;
  font-family: 'TT-Bold';
  margin-bottom: 10px;
  font-weight: bold;
}

.mega-content .highlight {
  color: var(--color-gold);
  font-family: 'TT-Bold';
}

.mega-content ul {
  list-style: none;
}

.mega-content li {
  margin-bottom: 5px;
}

/* CONTENEDOR DEL FORMULARIO */
.form-mega,
.form-mega-footer {
  background: var(--color-white);
  /* Beige suave */
  padding: 25px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 800px;
}

/* GRUPOS DE INPUTS (Nombre - Teléfono, Email) */
.form-mega .form-group {
  display: flex;
  gap: 15px;
  width: 100%;
}

/* Para que cuando haya 1 campo tome todo el ancho */
.form-mega .form-group input:only-child {
  width: 100%;
}

/* INPUTS */
.form-mega input[type="text"],
.form-mega input[type="tel"],
.form-mega input[type="email"] {
  flex: 1;
  padding: 12px 18px;
  border-radius: 30px;
  border: 1px solid var(--color-primary);
  /* Verde grisáceo */
  background: #ffffff;
  font-size: 15px;
  outline: none;
  color: var(--color-primary);
  /* Verde oscuro */
}

.form-mega-footer input,
.form-mega-footer select,
.form-mega-footer textarea {
  flex: 1;
  padding: 12px 18px;
  border-radius: 30px;
  border: 1px solid var(--color-primary);
  /* Verde grisáceo */
  background: #ffffff;
  font-size: 15px;
  outline: none;
  color: var(--color-gold);
}

.form-mega input[type="text"] {
  width: 70%;
}

.form-mega input[type="tel"] {
  width: 30%;
}

/* PLACEHOLDER */
/* Mantiene el estado del header cuando hay interacción interna */
#head:focus-within {
    /* Aquí copia los mismos estilos que tengas en #head:hover */
    background-color: var(--color-primary);
}

/* Mantiene el mega-menu visible mientras se llena el formulario */
.nav-item.dropdown:focus-within .mega-menu {
    opacity: 1;
    visibility: visible;
    display: block; /* O el método que uses para mostrarlo */
}

/* Si quieres que el nav también cambie de estilo */
.navbar:focus-within {
    /* Estilos de hover para la barra de navegación */
    background-color: var(--color-primary);
        padding: 5px 30px 5px 30px;
}


.form-mega input::placeholder,
.form-mega-footer input::placeholder,
.form-mega-footer select::placeholder,
.form-mega-footer textarea::placeholder {
  color: var(--color-gold);
  /* Dorado suave */
  opacity: 1;
}

/* FOCUS */
.form-mega input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(11, 89, 53, 0.2);
}

/* CHECKBOX + TEXTO */
.form-mega label,
.form-mega label a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: black;
  font-family: 'TT-Regular';
}

/* Estilo checkbox */
.form-mega input[type="checkbox"] {
  margin-left: 5%;
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;

}

/* BOTÓN ENVIAR */
.form-mega button {
  align-self: flex-end;
  background: var(--color-primary);
  /* Verde oscuro */
  color: #fff;
  font-weight: 600;
  border: none;
  padding: 10px 28px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 15px;
  transition: background .3s ease;
}

.form-mega button:hover {
  background: var(--color-primary);
}

/* .nav-item:hover .mega-menu {
  display: block;
} */

/* Toggle botón móvil */
.toggle-btn {
  display: none;
  font-size: 28px;
  color: var(--color-white);
  cursor: pointer;
}

/* Banner */
.hero-banner {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Hace que el video “cubra” sin deformarse */
  object-position: center;
  /* Centrado visual del video */
  z-index: 1;
}

.hero-banner .overlay-content {
  display: grid;
  place-content: center;
  position: relative;
  z-index: 1;
  color: var(--color-white);
  text-align: center;
  padding-top: 40vh;
  /* opcional: para centrar texto */
}

.hero-banner .hero-content {
  position: relative;
  height: 100%;
  display: grid;
  place-content: center;
  z-index: 1;
  padding: 0px 13%;
}

.hero-title {
  font-family: 'TT-Regular-Thin';
  color: var(--color-white);
  text-transform: uppercase;
  width: 100%;
  text-align: center;
  font-size: 35pt;
  font-weight: bolder;
  line-height: 70px;
}

.hero-search {
  background-color: #ffffffc2;
  border-radius: 30px;
  padding: 15px;
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
}

.hero-search input,
.hero-search input:focus {
  width: 80%;
  background: transparent;
  border: none;
  text-align: left;
  padding: 0 25px;
  font-size: 15pt;
  border: none;
  font-family: 'TT-Regular-Thin';
}

.search-input:focus {
  outline: none;
  border: none;
}

.search-input::placeholder {
  color: white;
  font-family: 'TT-Regular-Thin';
}

.hero-search .search-button {
  display: grid;
  place-content: center;
  border: none;
  background-color: #2f2f2f;
  border-radius: 50%;
  padding: 0;
  min-width: 40px;
  min-height: 40px;
  cursor: pointer;
}

.hero-search .search-button i {
  background-color: white;
}

/* Banner */

/* propiedades */
.propiedades a {
  text-decoration: none;
  color: var(--color-lighDark);
}

.title-section h2 {
  font-family: 'Cormorant regular';
  font-size: 40pt;
  color: var(--color-primary);
  font-weight: 100;
}

.title-section p {
  font-family: 'TT-Regular';
  color: var(--color-lighDark);
  font-size: 16pt;
}

.propiedades {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 80px 0 0 0;
}

.card-propiedad {
  background: transparent;
  overflow: hidden;
  transition: transform 0.3s;
  display: grid;
  place-content: center;
  padding: 10px 6px;
}

.card-propiedad:hover {
  transform: translateY(-5px);
}

.img-container {
  width: 100%;
  max-width: 534px;
  /* o el tamaño máximo que quieras en desktop */
  aspect-ratio: 534 / 358;
  /* mantiene la proporción */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 30px;
  transition: transform 0.8s ease;
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* mantiene proporción sin deformar */
  object-position: center;
  /* centra la imagen */
  border-radius: 30px;
  transition: transform 0.8s ease;
  image-rendering: -webkit-optimize-contrast;
  /* mejora calidad en navegadores WebKit */
  image-rendering: crisp-edges;
  /* mejora bordes en otros navegadores */
}

.img-container img:hover,
.img-container:hover {
  transform: scale(1.03);
  transition: 1s;
}

.card-propiedad .badge {
  position: sticky;
  top: 38px;
  left: 30px;
  background: hsla(0, 0%, 100%, 0.80);
  color: var(--color-lighDark);
  padding: 4px 12px;
  border-radius: 5px;
  font-family: 'PlusJaKartaSans';
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  width: fit-content;
  z-index: 10;
}

.card-body {
  padding: 15px;
}

.card-body h3 {
  font-weight: bolder;
  font-size: 20px;
  margin-bottom: 10px;
  font-family: 'PlusJaKartaSans';
  letter-spacing: -1px;
  color: var(--color-lighDark);
}

.card-body p {
  font-family: 'PlusJaKartaSans';
  color: var(--color-lighDark);
  font-size: 17px;
  margin-bottom: 12px;
  font-weight: 300;
}

.details {
  font-family: 'TT-Bold';
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 15px;
  color: var(--color-lighDark);
  font-weight: bold;
}

/* footer */
.container {
  padding: 80px;
}

.separator {
  border: none;
  height: 2px;
  background-color: #c9a22782;
  margin: 0px 0;
}

.social-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 80px;
}

.social-list {
  display: flex;
  justify-content: right;
  width: 25%;
}

.btn-social {
  min-width: 45px;
  min-height: 45px;
  border-radius: 100%;
  border: 1px solid var(--color-gold);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 15px;
}

.social-section .logo {
  display: flex;
  min-height: 100px;
  min-width: auto;
  justify-content: center;
  align-items: center;
}

.social-section .logo img {
  height: 100px;
  width: auto;
}

.msg-footer {
  margin-top: 25px;
}

.msg-footer p,
.msg-footer a p {
  font-size: 15px;
  font-family: 'TT-Regular';
  color: var(--color-lighDark);
  line-height: 23px;
}

.privacy-notice {
  text-decoration: none;
  margin-bottom: 20px;
}

.ampi {
  height: 100px;
  width: auto;
}

/* footer */

/* mapa */
.map {
  width: 100%;
  height: 500px;
}

.mapboxgl-ctrl-bottom-left,
.mapboxgl-ctrl-bottom-right {
  display: none;
}

.marker-immovable {
  transition-property: width, height;
  transition-duration: 0.5s;
  transition-timing-function: linear;
  /* Define Marker Animation */
  animation:
    pop-in 0.3s ease-out forwards,
    wobble 1.5s ease-in-out 0.4s forwards;
  transform-origin: bottom center;
}

.mapboxgl-popup-content,
.mapboxgl-popup-tip {
  background-color: transparent !important;
}

.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip {
  display: none;
}

.popup-inmueble {
  font-family: 'TT-Regular';
  color: var(--color-lighDark);
  font-size: 20px;
}

.popup-inmueble h3 {
  margin: 0 0 5px;
  font-size: 16px;
  color: var(--color-white);
}

/* mapas */

@keyframes pop-in {
  0% {
    width: 0px;
    height: 0px;
    opacity: 0;
    box-shadow: none;
  }

  70% {
    width: 55px;
    height: 55px;
    opacity: 1;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.4);
    /* Add a subtle shadow */
  }

  85% {
    width: 48px;
    height: 48px;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.3);
    /* Shrink shadow with wobble */
  }

  100% {
    width: 50px;
    height: 50px;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3);
    /* Final shadow size */
  }
}

/* Keyframe animation for slow wobble after pop-in */
@keyframes wobble {
  0% {
    transform: rotate(0deg);
  }

  20% {
    transform: rotate(2.5deg);
  }

  50% {
    transform: rotate(-2deg);
  }

  65% {
    transform: rotate(1deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

.contact {
  display: flex;
  justify-content: center;
  background-image: url(../images/banner-footer.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  position: relative;
  align-items: center;
  padding: 75px 0;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(1, 68, 33, 0.7);
  /* Verde con opacidad 50% */
  mix-blend-mode: multiply;
  /* Da ese tono cobre/mezcla */
  z-index: 0;
}

.contact>* {
  position: relative;
  z-index: 1;
}

.contact .title,
.contact .form {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-gold);
}

.contact .title h2 {
  font-size: 40pt;
  font-family: 'Cormorant regular';
  font-weight: 500;
}

.validate {
  width: 100%;
  display: flex;
  text-align: justify;
  font-size: 13px;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
}

/* .form form {
  width: 90%;
  display: grid;
  justify-content: center;
  align-items: center;
  padding: 10px;
  background-color: var(--color-white);
  border-radius: 26px;
  border: solid 1px var(--color-primary);
}

.form form input,
.form form textarea,
.form form select {
  width: 100%;
  border-radius: 16px;
  border-color: var(--color-primary);
  border: solid 1px;
  color: var(--color-gold);
  margin: 12px auto;
  padding: 7px 10px;
}

.form form .validate {
  width: 100%;
  display: flex;
  text-align: justify;
  font-size: 10px;
}

.validate input {
  width: 25px !important;
  height: 25px;
  margin: 20px !important;
} */


#btn-scroll-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 55px;
  height: 55px;
  border: none;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  z-index: 9999;
}

#btn-scroll-top.show {
  opacity: 1;
  visibility: visible;
}

i.arrow-up {
  width: 10px;
  height: 15px;
  background: #FFF;
  margin-left: 15px;
  margin-top: 15px;
  display: inline-block;
  position: relative;
  box-sizing: border-box;
  animation: bump 0.4s linear infinite alternate;
}

i.arrow-up::after {
  content: '';
  box-sizing: border-box;
  left: 50%;
  bottom: 100%;
  transform: translate(-50%, 0);
  position: absolute;
  border: 15px solid transparent;
  border-bottom-color: #FFF;
}

@keyframes bump {
  0% {
    transform: translate(-50%, 5px);
  }

  100% {
    transform: translate(-50%, -5px);
  }
}

/* 🔹 Responsivo */

@media (max-width: 1650px) {
  .contact {
    padding: 75px 50px;
  }
}

@media (max-width: 992px) {
  .propiedades {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: #014d2b;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 20px;
    z-index: 9998;
    overflow-y: auto;
    max-height: calc(100vh - 80px);
  }

  .nav-links.active {
    display: flex;
    height: auto;
  }

  .nav-item {
    width: 100%;
    margin-bottom: 15px;
    position: relative;
  }

  .nav-links a {
    font-size: 18px;
    padding: 12px 0;
    display: block;
    width: 100%;
    text-align: center;
  }

  /* Mega menu adjustments for tablets */
  .mega-menu {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 15px;
    margin-top: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    opacity: 1;
    pointer-events: auto;
    display: none;
  }

  .nav-item:hover .mega-menu,
  .mega-menu:hover {
    display: block;
  }

  .active-menu {
    display: block;
  }

  .mega-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .mega-content.renta {
    grid-template-columns: 1fr;
  }

  .div1,
  .div2,
  .div3,
  .menu-renta-div1,
  .menu-renta-div2 {
    grid-area: auto !important;
    width: 100%;
    margin-bottom: 20px;
  }

  .form-mega,
  .form-mega-footer {
    width: 100%;
    max-width: 100%;
    padding: 15px;
  }

  .form-mega .form-group {
    flex-direction: column;
    gap: 10px;
  }

  .form-mega input[type="text"] {
    width: 100%;
  }

  .form-mega input[type="tel"] {
    width: 100%;
  }

  .toggle-btn {
    display: block;
    font-size: 28px;
    color: var(--color-white);
    cursor: pointer;
    z-index: 9999;
  }

  /* Mobile menu backdrop */
  .navbar-container {
    position: relative;
  }

  /* Adjust navbar padding for mobile */
  .navbar {
    padding: 15px 20px;
  }

  .navbar.shrink {
    padding: 10px 20px;
  }

  .contact {
    padding: 75px 109px;
    display: grid;
    justify-content: center;
    align-items: center;
  }

  .contact .title, .contact .form {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .propiedades {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 80px 20px;
  }
}

@media (max-width: 530px) {
  /* Navbar adjustments for very small screens */
  .navbar {
    padding: 10px 15px;
  }

  .navbar.shrink {
    padding: 8px 15px;
  }

  .logo img {
    height: 45px;
    width: auto;
  }

  .toggle-btn {
    font-size: 24px;
    min-width: 40px;
    min-height: 40px;
  }

  /* Mobile menu adjustments */
  /* .nav-links {
    padding: 12px;
    max-height: calc(100vh - 55px);
  }

  .nav-links a {
    font-size: 15px;
    padding: 8px 0;
  }

  .nav-item {
    min-height: 40px;
  } */

  /* Mega menu adjustments for small screens */
  /* .mega-menu {
    padding: 12px 8px;
    margin-top: 6px;
    font-size: 14px;
  }

  .mega-content {
    gap: 12px;
  }

  .mega-content h5 {
    font-size: 15px;
    margin-bottom: 6px;
  }

  .mega-content li {
    font-size: 13px;
    margin-bottom: 6px;
  } */

  /* Form adjustments */
  /* .form-mega,
  .form-mega-footer {
    padding: 10px;
  }

  .form-mega input[type="text"],
  .form-mega input[type="tel"],
  .form-mega input[type="email"],
  .form-mega-footer input,
  .form-mega-footer select,
  .form-mega-footer textarea {
    padding: 8px 10px;
    font-size: 13px;
  }

  .form-mega button {
    padding: 6px 16px;
    font-size: 13px;
    width: 100%;
  } */

  /* Main content adjustments */
  main {
    padding: 25px 15px;
  }

  /* Property grid adjustments */
  .propiedades {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  /* Card adjustments */
  .card-propiedad {
    padding: 8px 4px;
  }

  .img-container {
    border-radius: 20px;
  }

  .img-container img {
    border-radius: 20px;
  }

  .card-body h3 {
    font-size: 18px;
  }

  .card-body p {
    font-size: 15px;
  }

  .details {
    font-size: 14px;
    gap: 10px;
  }

  /* Footer adjustments */
  .social-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
  }

  .social-section .logo img {
    height: 80px;
    width: auto;
  }

  .social-list {
    width: 30%;
  }

  .btn-social {
    min-width: 40px;
    min-height: 40px;
    margin-left: 8px;
  }

  .container {
    padding: 60px 15px;
  }

  .msg-footer p,
  .msg-footer a p {
    font-size: 14px;
    line-height: 20px;
  }

  .ampi {
    height: 80px;
    width: auto;
  }

  /* Contact section adjustments */
  .contact {
    padding: 50px 20px;
  }

  .contact .title h2 {
    font-size: 32pt;
  }

  /* Hero banner adjustments */
  .hero-banner .hero-content {
    padding: 0px 8%;
  }

  .hero-title {
    font-size: 28pt;
    line-height: 55px;
  }

  .hero-search {
    padding: 10px;
    margin-top: 15px;
  }

  .hero-search input {
    font-size: 13pt;
    padding: 0 18px;
  }

  .search-button {
    min-width: 35px;
    min-height: 35px;
  }

  /* Ensure proper viewport handling */
  html {
    overflow-x: hidden;
  }

  body {
    overflow-x: hidden;
    width: 100%;
  }

  /* Prevent horizontal scrolling */
  .title-section h2 {
    font-size: 32pt;
  }

  .title-section p {
    font-size: 18pt;
  }

  .navbar-container {
    justify-content: space-between;
  }
}

/* @media (max-width: 500px) {
    html{
        width: 100%;
    }

    body{
        width: fit-content;
    }

    main {
        width: min-content;
        padding: 95px 0 0 0;
    }

    .details {
        padding: 50px 0 0 22px;
        width: 100%;
    }
} */

/* iPhone 14 and smaller mobile devices specific styles */
@media (max-width: 430px) {

  /* Mobile-specific adjustments for iPhone 14 */
  .navbar {
    padding: 12px 15px;
  }

  .logo img {
    height: 50px;
    width: auto;
  }

  .nav-links a {
    font-size: 16px;
    padding: 10px 0;
  }

  .nav-links {
    padding: 15px;
    max-height: calc(100vh - 60px);
  }

  .mega-menu {
    padding: 15px 10px;
    margin-top: 8px;
  }

  .mega-content h5 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .mega-content ul {
    padding-left: 15px;
  }

  .mega-content li {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .form-mega,
  .form-mega-footer {
    padding: 12px;
  }

  .form-mega input[type="text"],
  .form-mega input[type="tel"],
  .form-mega input[type="email"],
  .form-mega-footer input,
  .form-mega-footer select,
  .form-mega-footer textarea {
    padding: 10px 12px;
    font-size: 14px;
  }

  .form-mega button {
    padding: 8px 20px;
    font-size: 14px;
  }

  /* Ensure touch targets are large enough */
  .nav-item {
    align-items: center;
  }

  .toggle-btn {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Mobile menu scrolling */
  .nav-links {
    -webkit-overflow-scrolling: touch;
  }

  /* Adjust form layout for small screens */
  .form-mega .form-group {
    gap: 8px;
  }

  /* Make mega menu content more compact */
  .mega-content {
    gap: 15px;
  }

  /* Ensure proper spacing for mobile */
  main {
    padding: 30px 20px;
  }
}

/* Additional mobile enhancements for iPhone 14 */
@media (max-width: 430px) {

  /* Ensure proper viewport handling */
  html {
    touch-action: manipulation;
  }

  /* Prevent zoom on form inputs */
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Better mobile scrolling */
  body {
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
  }

  /* Mobile menu animation */
  .nav-links {
    transition: transform 0.3s ease;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  /* Mega menu mobile-specific styles */
  .mega-menu {
    background: var(--color-primary);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  /* Form adjustments for mobile */
  .form-mega button {
    width: 100%;
    margin-top: 10px;
  }

  /* Ensure proper spacing */
  .hero-search {
    padding: 12px;
    margin-top: 15px;
  }

  .hero-search input {
    font-size: 14px;
    padding: 0 15px;
  }
}

/* Landscape orientation adjustments */
@media (max-width: 992px) and (orientation: landscape) {
  .nav-links {
    max-height: calc(100vh - 60px);
  }

  .mega-menu {
    max-width: 80vw;
    margin: 0 auto;
  }
}

/* iPhone 14 Pro Max specific (430px width) */
@media (max-width: 430px) and (min-width: 390px) {

  /* Optimized for iPhone 14 */
  .nav-links a {
    font-size: 17px;
  }

  .mega-content h5 {
    font-size: 17px;
  }

  /* Better touch targets */
  .nav-item {
    padding: 8px 0;
  }

  /* Form optimization */
  .form-mega input,
  .form-mega-footer input {
    min-height: 44px;
  }
}

/* Alert Messages */
.alert-message {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 10000;
  padding: 15px 20px;
  border-radius: 10px;
  font-family: 'TT-Regular';
  font-size: 16px;
  max-width: 400px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.5s ease-out;
}

.success-message {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-message ul {
  margin: 0;
  padding-left: 20px;
}

.alert-message li {
  margin-bottom: 5px;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Fade-out animation */
@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

/* Clase que se activa para ocultar */
.alert-hide {
  animation: fadeOut 1s forwards;
}

/* Loader */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #014d2bfa;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader img {
  width: 230px;
  animation: logoPulse 2.5s ease-in-out infinite;
}

@keyframes logoPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.06);
    opacity: 0.8;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* propiedades */


/* Responsivo */