* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f0f0f0;
  color: #333;
}

/* HEADER */
.header {
  background-color: #00AAA2; /* Teal color from the image */
  color: white;
  display: flex;
  justify-content: space-between; /* Separates logo, navbar, and contact button */
  align-items: center;
  padding: 5px 25px;
  flex-wrap: wrap;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 80px; /* Tamaño del logo ajustado */
  height: auto;
}

.logo-texto h1 {
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.logo-texto span {
  font-size: 13px;
  font-weight: 500;
  display: block;
}

/* NAVBAR (Navigation Links) */
.navbar {
  display: flex;
  gap: 45px;
  align-items: center;
  flex-wrap: wrap;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: 900;
  font-size: 25px; /* Tamaño de las letras de la navbar ajustado */
  padding: 10px 5px;
  position: relative;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #f0f0f0;
}

/* Animación y estilo del subrayado de los enlaces de la navbar */
.navbar a::after {
  content: "";
  height: 5px; /* Altura más sutil */
  background-color: black;
  position: absolute;
  bottom: -5px; /* Un poco más cerca del texto */
  left: 0;
  width: 0%; /* Inicialmente sin ancho para la animación */
  transition: width 0.3s ease-in-out; /* Transición para el ancho */
}

.navbar a:hover::after {
  width: 100%; /* El subrayado aparece al pasar el ratón */
}

.navbar a.activo::after {
  width: 100%; /* El subrayado se mantiene para el activo */
  background-color: black; /* Color específico para el activo */
}

/* Botón de Contacto */
.btn-contacto {
  background-color: white;
  color: black;
  border-radius: 25px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-transform: uppercase;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease-out; /* Animación de escala añadida */
  border: 2px solid white;
  text-decoration: none;
}

.btn-contacto img {
  background-image: url('imagenes/klipartz.com.png'); /* Ruta de la imagen del icono */
  width: 35px; /* Ajustado para que el icono se vea bien */
}

.btn-contacto:hover {
  background-color: #00d6d6;
  color: white;
  border-color: #00d6d6;
  transform: scale(1.05); /* Ligeramente más grande al pasar el ratón */
}

.btn-contacto:hover img {
    filter: invert(1);
}

/* Sección Hero */
.hero {
  background-image: url('imagenes/WhatsApp Image 2025-06-27 at 2.25.02 PM.jpeg');
  background-size: cover; /* Para que ocupe todo el espacio */
  background-position: center; /* Centrado para evitar líneas en blanco */
  min-height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15em;
  padding: 10em 15em;
  position: relative;
}

.texto-principal {
  color: white;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
  text-align: left;
  position: absolute;
  left: 8%;
  top: 35%;
  z-index: 2;
}

.venta {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: -5px;
}

.oasis {
  font-size: 70px;
  color: #00AAA2;
  font-weight: 900;
  line-height: 0.9;
  -webkit-text-stroke: 1.5px white;
  text-stroke: 1.5px white;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.5),
                -1.5px -1.5px 0 white,
                1.5px -1.5px 0 white,
                -1.5px 1.5px 0 white,
                1.5px 1.5px 0 white;
}

.residencial {
  font-size: 70px;
  color: #00AAA2;
  font-weight: 900;
  line-height: 0.9;
  -webkit-text-stroke: 1.5px white;
  text-stroke: 1.5px white;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.5),
                -1.5px -1.5px 0 white,
                1.5px -1.5px 0 white,
                -1.5px 1.5px 0 white,
                1.5px 1.5px 0 white;
}

.img-lateral {
  position: absolute;
  right: 7%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  transition: box-shadow 0.3s ease, transform 0.3s ease; /* Animación de sombra y escala */
}

.img-lateral img {
  max-width: 500px;
  height: auto;
  display: block;
}

.img-lateral:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.5); /* Sombra más pronunciada al pasar el ratón */
  transform: translateY(-50%) scale(1.02); /* Ligeramente más grande */
}

/* SECCIÓN INFERIOR (FOOTER) - Mejoras para hacerlo más pequeño */
.seccion-inferior {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  min-height: 100px; /* Reduce la altura mínima del contenedor general */
}

.seccion-proyecto,
.seccion-terrenos-casas {
  flex: 1;
  min-width: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8em 1.5em; /* Reducido el padding para hacerlo más compacto */
  min-height: 90px; /* Reducido la altura mínima de cada sección */
  position: relative;
  overflow: hidden; /* Asegura que la sombra no se corte */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Animación de "levantar" */
}

.seccion-proyecto:hover,
.seccion-terrenos-casas:hover {
  transform: translateY(-5px); /* Se levanta 5px */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Una sombra suave para el efecto de "flotación" */
}

.seccion-proyecto {
  background-image: url('imagenes/WhatsApp Image 2025-06-27 at 1.51.50 PM.jpeg');
  background-size: cover;
  background-position: center;
}

.seccion-proyecto::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.contenido-proyecto,
.contenido-terrenos-casas {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  width: 100%;
  max-width: 500px;
  z-index: 2;
}

.seccion-terrenos-casas {
  background-color: white;
  color: #00AAA2;
}

.texto-footer {
  text-align: left;
}

.seccion-proyecto .texto-footer .titulo {
  color: white;
  font-size: 16px; /* Ajustado para hacerlo más pequeño */
  font-weight: 700;
  margin-bottom: 0;
}

.seccion-proyecto .texto-footer .subtitulo {
  color: white;
  font-size: 32px; /* Ajustado para hacerlo más pequeño */
  font-weight: 900;
  line-height: 1;
  margin: 0;
}

.seccion-terrenos-casas .texto-footer .subtitulo {
  color: #00AAA2;
  font-size: 32px; /* Ajustado para hacerlo más pequeño */
  font-weight: 900;
  line-height: 1.1;
  margin: 0;
}

.boton-info {
  border: none;
  padding: 10px 20px; /* Ajustado el padding del botón */
  border-radius: 8px;
  font-weight: 900;
  font-size: 13px; /* Ajustado el tamaño de fuente del botón */
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-transform: uppercase;
  flex-shrink: 0;
}

.seccion-proyecto .contenido-proyecto .boton-info.blanco {
  background-color: #ffffff;
  color: rgb(2, 2, 2);
  border: none;
}

.seccion-proyecto .contenido-proyecto .boton-info.blanco:hover {
  background-color: #007a7a;
  color: white;
}

.seccion-terrenos-casas .contenido-terrenos-casas .boton-info {
  background-color: #00AAA2;
  color: rgb(0, 0, 0);
  border: none;
}

.seccion-terrenos-casas .contenido-terrenos-casas .boton-info:hover {
  background-color: #007a7a;
  color: white;
}

/* DISEÑO RESPONSIVO */
@media (max-width: 1024px) {
  .header {
    flex-direction: column;
    justify-content: center;
    padding: 10px 20px;
  }

  .logo {
    order: 1;
    margin-bottom: 10px;
  }

  .navbar {
    order: 2;
    width: 100%;
    justify-content: center;
    margin-top: 0;
    margin-bottom: 10px;
  }

  .btn-contacto {
    order: 3;
    margin-top: 0;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    min-height: 80vh;
    justify-content: flex-start;
    padding-top: 100px;
  }

  .texto-principal {
    position: static;
    transform: none;
    margin-bottom: 20px;
  }

  .img-lateral {
    position: static;
    transform: none;
    margin-top: 0px;
  }

  .img-lateral img {
    max-width: 400px;
  }

  .seccion-inferior {
    flex-direction: column;
  }

  .seccion-proyecto,
  .seccion-terrenos-casas {
      min-height: 80px;
      padding: 0.7em 1em;
  }

  .seccion-proyecto .texto-footer .titulo {
      font-size: 15px;
  }

  .seccion-proyecto .texto-footer .subtitulo,
  .seccion-terrenos-casas .texto-footer .subtitulo {
    font-size: 28px;
  }

  .boton-info {
    padding: 8px 18px;
    font-size: 12px;
  }

  .seccion-proyecto .contenido-proyecto,
  .seccion-terrenos-casas .contenido-terrenos-casas {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 10px 15px;
  }

  .navbar {
    gap: 10px;
  }

  .logo-texto h1 {
    font-size: 24px;
  }

  .logo-texto span {
    font-size: 12px;
  }

  .venta {
    font-size: 20px;
  }

  .oasis, .residencial {
    font-size: 45px;
  }

  .img-lateral img {
    max-width: 280px;
  }

  .seccion-proyecto,
  .seccion-terrenos-casas {
      min-height: 70px;
      padding: 0.6em 0.8em;
  }

  .seccion-proyecto .texto-footer .titulo {
      font-size: 14px;
  }

  .seccion-proyecto .texto-footer .subtitulo,
  .seccion-terrenos-casas .texto-footer .subtitulo {
    font-size: 24px;
  }

  .boton-info {
    padding: 7px 15px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .navbar a {
    font-size: 13px; /* Mantiene el tamaño ajustado para móviles */
  }

  .btn-contacto {
    padding: 5px 12px;
    font-size: 12px;
  }

  .venta {
    font-size: 18px;
  }

  .oasis, .residencial {
    font-size: 35px;
  }

  .img-lateral img {
    max-width: 220px;
  }

  .seccion-proyecto,
  .seccion-terrenos-casas {
      min-height: 60px;
      padding: 0.5em 0.7em;
  }

  .seccion-proyecto .texto-footer .titulo {
      font-size: 13px;
  }

  .seccion-proyecto .texto-footer .subtitulo,
  .seccion-terrenos-casas .texto-footer .subtitulo {
    font-size: 20px;
  }

  .boton-info {
    padding: 6px 12px;
    font-size: 10px;
  }
}
