@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root { 
  --primary: #fb9f2ee2;
  --dark: #333;
  --bg: #f0eaea;
  --round: 5px;
  --font: 'Poppins', sans-serif;
}

* {
  box-sizing: border-box;
  
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  font-family: "Poppins", sans-serif;
}

.container {
  width: 85%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Header y Navegación */
header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--primary);
  color: white;
  transition: all 0.3s ease;
  padding: 5px 0;
}

.logo {
  height: 65px;
  transition: height 0.3s ease;
  border: 3px solid black;
  border-radius: 8px;
}

header.shrink .logo {
  height: 40px;
}

header.shrink {
  padding: 2px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
}
nav {
  margin: 5px -70px;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  flex-direction: row;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color .3s;
}

nav ul li a:hover {
  color: var(--dark);
}  
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  position: relative;
  background: none;
  color: white;
  border: none;
  cursor: pointer;
  z-index: 1101;
  font-size: 1.5rem;
}

.menu-toggle .bar {
  display: block;
  height: 3px;
  width: 30px;
  background-color: white;
  border-radius: 2px;
  transition:all 0.3s ease;
  position: relative;
  transform-origin: center;
  margin: 3px 0;
}

.menu-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}
/*buscador*/
.buscador-inmuebles {
  background: #f7f7f7;
  padding: 32px 0 24px 0;
  text-align: center;
  margin-bottom: 30px;
}
.buscador-inmuebles h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: #222;
}
.buscador-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
}

.buscador-row {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: center;
}

.buscador-row select{
  min-width: 200px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
}
.buscador-row input[type="text"] {
  min-width: 400px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
}

.btn-buscar {
  background: #ff9800;
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.precio-group {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  width: 100%;
}

.precio-group select,
.precio-group input[type="text"] {
  min-width: 120px;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
}

.precio-group label {
  font-size: 0.95rem;
  color: #333;
  display: flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 800px) {
  .buscador-row,
  .precio-group {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
}
/*resaltado*/
.resaltado-busqueda {
  box-shadow: 0 0 0 4px #ff9800, 0 2px 8px rgba(0,0,0,0.15);
  transition: box-shadow 0.3s;
  z-index: 10;
}
/* Galería de terrenos */
#terrenos h2 {
  text-align: left;
  font-size: 2rem;
  color: #000000;
  margin: 10px 0px;
  position: relative;
  padding: 20px;
}

.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.linea-decorativa {
  width: 80%;
  height: 5px;
  background-color: var(--primary);
  margin: 5% auto;
  border-radius: 5px;
}
.card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card h3 {
  margin: 10px;
  font-size: 1.2rem;
  color: #333;
  text-align: center;
}

.card p {
  margin: 0 10px 15px;
  font-size: 0.95rem;
  color: #666;
}
/*secction*/
.section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 50px 20px;
  flex-wrap: wrap;
  background-color: #f2f2f2bb;
  border-radius: 15px;
  margin: 30px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.304);
}
.cardd, .texto {
  flex: 1 1 400px;
  max-width: 500px;
}

.imagen {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.texto h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.texto p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.texto a {
  display: inline-block;
  padding: 10px 20px;
  background-color: #f3a530;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.texto a:hover {
  background-color: #d58f22;
}

@media (max-width: 768px) {
  .section, .section.reverse {
    flex-direction: column;
    text-align: center;
  }
}
/* Modal para imagen ampliada */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-contenido {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

#caption {
  text-align: center;
  color: white;
  padding: 10px;
  font-size: 1.1rem;
}

.cerrar {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* Responsividad */
@media (max-width: 768px) {
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.533);
    padding: 30px 20px;
    transition: right 0.6s ease;
    z-index: 1000;
  }

  nav.show {
    right: 0;
  }

  .menu-toggle {
    display: block;
    position: fixed;
    top: 26px;
    right: 12px;
    z-index: 1101;
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
  }

  body.menu-abierto {
    overflow: hidden; /* Bloquea el scroll del fondo */
  }

  nav ul {
    flex-direction: column;
    gap: 20px;
  }
}

/* Teléfonos pequeños */
@media (max-width: 480px) {
  .card h3 {
    font-size: 1rem;
  }

  .card p {
    font-size: 0.85rem;
  }

  .modal-contenido {
    max-width: 95%;
  }
}
.scrollToHome {
    border-radius: 3px;
    background-color: #263755;
    bottom: 15px;
    color: #ffffff;
    display: none;
    font-size: 18px;
    height: 45px;
    line-height: 40px;
    padding: 3px 10px;
    position: fixed;
    right: 20px;
    text-align: center;
    width: 45px;
    z-index: 99999;
    -webkit-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}
/* Footer */
footer {
  background: var(--dark);
  color: white;
  text-align: center;
  padding: 15px 0;
}
.redes-sociales {
  margin-top: 10px;
}

.redes-sociales a {
  color: white;
  margin: 0 10px;
  font-size: 24px;
  transition: color 0.3s;
  text-decoration: none;
}

.redes-sociales a:hover {
  color: #1d05f8
  
  /* anaranjado al pasar el mouse */
}
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 100;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.whatsapp-float img {
  width: 30px;
  height: 30px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}
