/* General */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    font-family: Arial, sans-serif;
    background-color: white;
    color: white;
    margin-top: 80px; /* Ajusta según la altura del header */
  }
  
  .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    background-color: #111;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  }
  
  .logo img {
    height: 60px;
  }
  
  .menu {
    list-style: none;
    display: flex;
    gap: 30px;
  }
  .menu li a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s;
  }
  .menu li a:hover {
    color: #aaff00;
  }
  
  /* Botón hamburguesa oculto por defecto */
  .menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: #5b7e24;
    border-radius: 50%;
    cursor: pointer;
  }
  .menu-toggle span {
    display: block;
    width: 25px;
    height: 4px;
    background-color: yellow;
    margin: 3px 0;
    border-radius: 2px;
  }

  /* Slider */
  .slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: 100vh;
  border-radius: 0px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
  
  .slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
  }
  
  .slide {
  min-width: 100%;
  height: 100%;
  object-fit: contain; /* <- solo si NO quieres que se recorte nada */
  background-color: #111; /* opcional para evitar parches blancos */
}
  
  .slide.active {
    opacity: 1;
    z-index: 1;
  }
  
  .slider-content {
    flex-grow: 1;
    text-align: center;
  }
  
  .slider-content img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
  }

  /* Botones izquierda/derecha */
.slider-btn {
  position: absolute;
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 0.5em;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: background-color 0.3s ease;
}

.slider-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.slider-btn.prev {
  left: 10px;
}

.slider-btn.next {
  right: 10px;
}

/* Puntos */
.slider-dots {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
  z-index: 10;
}

.slider-dots .dot {
  display: inline-block;
  height: 12px;
  width: 12px;
  margin: 0 4px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.slider-dots .dot.active {
  background-color: #ffffff;
}

  /* Nuestros Servicios */
  .nosotros {
  position: relative;
  padding: 60px 20px;
  background-image: url('img/fondo.png'); /* Cambia la ruta si es necesario */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #222;
  z-index: 1;
}

.nosotros::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* Oscurece la imagen, ajusta opacidad si quieres */
  z-index: 0;
}

/* Asegúrate de que el contenido esté por encima del overlay */
.nosotros > * {
  position: relative;
  z-index: 1;
}

  .nosotros h2{
    text-align: center;
    font-weight: 500;
    color: #95B734;
    margin-bottom: 40px;
    font-size: 40px;
  }
  
  .nosotros-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .nosotros-imagen img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  }
  
  .nosotros-texto {
    flex: 1;
    min-width: 300px;
  }
  
  .nosotros-texto h2 {
    color: #7aa236;
    font-size: 24px;
    margin-bottom: 10px;
  }
  
  .nosotros-texto h3 {
    font-size: 18px;
    color: white;
    margin-bottom: 15px;
  }
  
  .nosotros-texto p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
    color: white;
    text-align: justify;
  }

  /* Proyectos */
  .proyectos .tarjetas {
    display: flex;
    gap: 1em;
    padding: 1em;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .proyecto {
    background-color: #313131;
    padding: 1em;
    border-radius: 8px;
    width: 100%;
    max-width: 300px;
    text-align: center;

  }
  
  .proyecto img {
    width: 100%;
    height: auto;
    margin-bottom: 0.5em;
    border-radius: 5px;
  }

  .proyecto h3{
     color: #99ca45;
  }

  .proyectos h2{
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
    color: #95B734;
    margin-bottom: 10px;
    font-size: 40px;
  }

  .proyecto p{
    color: white;
 }
/*
 .proyecto button{
    margin: 5px;
    width: 60%;
    height: 30px;
    background-color: #9edb3b;
    border-radius: 5px;
    color: #181919; 
 } */

 .proyecto button{
  margin: 5px;
  display: inline-block;
  background-color: #95B734; /* verde natural */
  color: white;
  font-weight: 500;
  padding: 0.6em 1.4em;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-family: inherit;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  cursor: pointer;
}
  
.btn-proyecto {
  display: inline-block;
  margin: 5px;
  background-color: #95B734; /* verde natural */
  color: white;
  font-weight: 500;
  padding: 0.6em 1.4em;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-family: inherit;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  cursor: pointer;
}

.btn-proyecto:hover {
  background-color: #7ca12b;
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-proyecto:focus,
.btn-proyecto:active {
  color: white;
  text-decoration: none;
  outline: none;
}




 



 /* Preguntas y contacto */
 .faq-contacto {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 2em;
    gap: 2em;
    background-color: #f5f5f5;
  }

  .contacto h2{
    color: #95B734;
  }

  .faq h2{
    color: #95B734;
  }

  .faq summary{
    color:#222 ;
  }

  .faq p{
    color:#222 ;
  }
  
  .faq, .contacto {
    flex: 1 1 300px;
    
  }
  
  .faq details {
    margin-top: 1em;
    margin-bottom: 1em;
    background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  overflow: hidden;
  padding: 0.5em;

  }

  .faq button{
    align-items: center;
    width: 35%;
    height: 40px;
    background-color: #444;
    border-radius: 5px;
    color: white;
    
  
  }

  .faq button a {
  margin-top: 10px;
  color: white;
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
}

.faq button a:visited,
.faq button a:active,
.faq button a:focus {
  color: white;
  text-decoration: none;
}
  
  /*
  .faq button {
  display: inline-block;
  background-color: #444;
  color: #fff;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
/*
.faq button:hover {
  background-color: #333;
  transform: translateY(-2px);
}
*/

  .contacto form {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
  }
  
  .contacto input, .contacto textarea {
    padding: 0.5em;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  
  .contacto button {
    padding: 0.7em;
    border: none;
    background-color: #444;
    color: white;
    border-radius: 4px;
    cursor: pointer;
  }

  /* inmobiliarias */
  .inmobiliarias {
  padding: 1em 0;
  background-color: #fff;
}

.inmobiliarias .galeria {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1em;
  padding: 1em;
  width: 100%;
  box-sizing: border-box;
}

.inmobiliarias img {
  width: 100px;
  height: 70px;
  object-fit: contain;
  border-radius: 4px;
}

.inmobiliarias h2 {
  text-align: center;
  font-weight: 500;
  color: #95B734;
  margin: 1em 0 0.5em;
  font-size: 32px;
}

/* comentarios*/




.google-reviews-section {
  max-width: 1200px;
  width: 90%;
  margin: 3rem auto;
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  font-family: 'Arial', sans-serif;
  box-sizing: border-box;
}

.google-reviews-section h2 {
  font-size: 1.8rem;
  text-align: center;
  color: #84a315;
  margin-bottom: 2rem;
}

.reviews-container {
  display: grid;
  grid-template-columns: 1fr; /* default 1 columna para móviles */
  gap: 2rem;
}

/* 2 columnas desde 768px */
@media (min-width: 768px) {
  .reviews-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 3 columnas desde 1024px */
@media (min-width: 1024px) {
  .reviews-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.google-review {
  border-top: 1px solid #ddd;
  padding-top: 1rem;
  margin-top: 1rem;
  box-sizing: border-box;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.review-header strong {
  font-size: 1rem;
  color: #333;
}

.stars {
  color: #fbbc04;
  font-size: 1.2rem;
}

.review-text {
  margin: 0.5rem 0;
  color: #444;
  font-size: 1rem;
}

.review-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #1a73e8;
  text-decoration: none;
}

.review-link:hover {
  text-decoration: underline;
}

.review-date {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: #777;
}






/* footer */

  .footer {
    background-color: #181919;
    color: white;
    text-align: center;
    padding: 30px 20px;
  }
  
  .footer p {
    margin-bottom: 15px;
    font-size: 14px;
  }
  
  .footer-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 20px;
  }
  
  .footer-icons a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
  }
  
  .footer-icons a:hover {
    color: #aaff00;
  }

 /* Botón flotante de WhatsApp */

    /* Botón flotante de WhatsApp */
/* Contenedor flotante */
.whatsapp-fixed {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

/* Enlace estilo botón */
.whatsapp-fixed a {
  display: flex;
  align-items: center;
  background-color: #25D366;
  color: white;
  padding: 10px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  max-width: 52px; /* solo ícono visible por defecto */
  transition: max-width 0.4s ease, padding 0.4s ease;
  white-space: nowrap;
}

/* Ícono */
.whatsapp-fixed img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* Texto oculto inicialmente */
.whatsapp-fixed span {
  margin-left: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

/* Al hacer hover o focus, expandir botón y mostrar texto */
.whatsapp-fixed a:hover,
.whatsapp-fixed a:focus,
.whatsapp-fixed a:active {
  max-width: 300px;
  padding-right: 15px;
}

.whatsapp-fixed a:hover span,
.whatsapp-fixed a:focus span,
.whatsapp-fixed a:active span {
  opacity: 1;
  visibility: visible;
}





  
  /* Responsivo */
  @media (max-width: 768px) {
    .menu {
      position: absolute;
      top: 80px;
      left: 0;
      width: 100%;
      flex-direction: column;
      background-color: #111;
      display: none;
      gap: 20px;
      padding: 20px 0;
      text-align: center;
    }
    .menu.active {
      display: flex;
    }
    .menu-toggle {
      display: flex;
    }
  }
  
  @media (max-width: 768px) {
    .nosotros-container {
      flex-direction: column;
      text-align: center;
    }
    .nosotros-imagen img {
      max-width: 100%;
    }

    .proyectos .tarjetas {
        flex-direction: column;
        align-items: center;
      }

      .faq-contacto {
        flex-direction: column;
      }
  }

  @media (max-width: 500px) {
  .inmobiliarias img {
    width: 80px;
    height: 60px;
  }

  .inmobiliarias h2 {
    font-size: 24px;
  }
}