@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');

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

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #222;
}

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

/* Header y Navegación */
header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(249, 145, 9, 0.679);
  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);
}
/* 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;
  }
}

/* ANUNCIO */
.anuncio {
  /*background: #e1e4e9;*/
  padding: 2rem 1rem;
  border-radius: 12px;
  margin: 20px auto;
  max-width: 1100px;
  box-shadow: 0 2px 12px rgba(30,136,229,0.07);
}
.anuncio-contenido {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  
}
.anuncio-img {
  flex: 1 1 50%;
  position: relative;
  max-width: 1200px;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.anuncio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease;
  border-radius: 10px;
}

.anuncio-img img.active {
  opacity: 1;
}
.anuncio-texto {
  flex: 2 1 320px;
}
.anuncio-texto h1 {
  color: rgba(249, 145, 9, 0.679);
  font-size: 1.7rem;
  margin-bottom: 10px;
}
.anuncio-texto .btn {
  background: rgba(249, 145, 9, 0.679);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 5px;
  margin-right: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.anuncio-texto .btn-secundario {
  background: #25D366;
}
.anuncio-texto .btn:hover {
  background: rgba(249, 145, 9, 0.679);
}
.anuncio-p {
  margin-top: 18px;
  color: #333;
  font-size: 1.1rem;
}

/* Secciones */
main.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 10px;
}
section {
  margin-bottom: 30px;
}
section h2 {
  color: rgba(249, 145, 9, 0.679);
  font-size: 1.3rem;
  margin-bottom: 10px;
}
/*carrusel*/
.carrusel-terrenos {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 800px;
  margin: 0 auto; /* Centra el carrusel */
  
  border-radius: 10px;
}

.carrusel-imagenes {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  box-sizing: border-box;
  padding: 20px;
  text-align: center;
}

.slide img {
  max-width: 100%;
  height: auto; /* Para mostrar toda la imagen sin recorte */
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  max-height: 500px;
  object-fit: contain; /* Evita recorte */
}

.carrusel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
}

.anterior {
  left: 20px;
}

.siguiente {
  right: 20px;
}

/* Responsive ajustes */
@media screen and (max-width: 768px) {
  .slide img {
    max-height: 300px;
  }

  .carrusel-btn {
    padding: 8px;
    font-size: 20px;
  }
}

@media screen and (max-width: 480px) {
  .slide img {
    max-height: 220px;
  }

  .slide {
    padding: 20px;
  }
}
/* Botón CTA */
.boton-correo {
  background: #333;
  border: none;
  color: white;
  padding: 15px 20px;
  font-size: 1em;
  border-radius: var(--round);
  cursor: pointer;
  transition: background .3s;
}

.boton-correo:hover {
  background: #333;
  color: white;
}

/* 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 */
}
a:hover .whatsapp-num {
  color: #25D366;
}
.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;
}
/*new*/

.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);
}


/* Estilo tipo "moderno limpio" para el formulario modal */
/*.modal-contenido-contacto {
  background: #fff;
  padding: 32px 24px 24px 24px;
  border-radius: 12px;
  max-width: 420px;
  width: 100vw;
  position: fi;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  display: none;
  flex-direction: column;
  align-items: stretch;
}*/
.modal-contacto {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}
.formulario {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.formulario input,
.formulario textarea {
  width: 100%;
  padding: 14px 12px;
  border: 1.5px solid #e0e0e0;
  border-radius: 7px;
  font-size: 1.08rem;
  background: #fafbfc;
  transition: border 0.2s;
  font-family: inherit;
  resize: none;
}
.formulario input:focus,
.formulario textarea:focus {
  border: 1.5px solid #f99109;
  outline: none;
  background: #fff;
}
.formulario button {
  background: #f99109;
  color: #fff;
  border: none;
  padding: 12px 0;
  border-radius: 7px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1.08rem;
  transition: background 0.2s;
  width: 100%;
  margin-top: 8px;
}
.formulario button:hover {
  background: #d87e07;
}
.modal-contenido-contacto h2 {
  text-align: center;
  font-family: inherit;
  font-weight: 700;
  margin-bottom: 18px;
  font-size: 1.5rem;
  color: white;
}
.cerrar-modal {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 3.5rem;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
}
.oculto {
  display: none !important;
}
.modal-contacto:not(.oculto) {
  display: flex;
}
/* Responsive para el modal */
@media (max-width: 600px) {
  .modal-contenido-contacto {
    max-width: 98vw;
    width: 98vw;
    padding: 18px 6vw 18px 6vw;
    border-radius: 10px;
  }
  .cerrar-modal {
    top: 8px;
    right: 10px;
    font-size: 3.5rem;
  }
  .formulario input,
  .formulario textarea {
    font-size: 1rem;
    padding: 10px;
  }
  .formulario button {
    font-size: 1rem;
    padding: 10px 0;
  }
}