/* Sticky footer */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  /* Fondo GIF adaptativo */
  background: url('/images/fondo.gif') no-repeat center center fixed;
  background-size: cover;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  padding: 20px;
  flex: 1 0 auto;
}
/* Header */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  padding: 15px 30px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.logo {
  font-size: 24px;
  font-weight: bold;
  color: #2a8b8b;
  text-decoration: none;
}
.navbar nav a {
  color: #2a8b8b;
  text-decoration: none;
  margin: 0 10px;
  font-weight: bold;
}
.navbar nav a:hover {
  color: #145a5a;
  text-decoration: underline;
}
/* Casas */
.casas {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  margin: 40px 0;
}
.casa {
  flex: 1 1 30%;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
  max-width: 300px;
}
.casa img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}
/* Modal flotante */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.7);
  align-items: center;
  justify-content: center;
}
.modal[style*="display: block"] {
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: #fff;
  margin: 0 auto;
  padding: 20px 10px 30px 10px;
  border-radius: 12px;
  width: 95vw;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.modal-content h3 {
  margin-top: 0;
}
.modal .close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 28px;
  cursor: pointer;
  color: #aaa;
}
.modal .close:hover {
  color: #000;
}
/* Carrusel */
#galeria h2,#testimonios h2,#faq h2,
#contacto h2 {
  text-align: center;
  color: rgba(0,0,0,0.8);
}
#testimonios,#faq {
    text-align: center;
    background-color: #ffffff;
    width: 90%;
  margin: 40px auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  padding: 15px;
  flex-shrink: 0;
  margin: 40px 20;
  color: rgba(0,0,0,0.7);
}
.carousel {
  position: relative;
  width: 90%;
  margin: 40px auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  background: white;
}
.carousel-inner {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.carousel-inner img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: none;
}
.carousel-inner img.active {
  display: block;
}
/* Botones del carrusel */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(42, 139, 139, 0.8);
  border: none;
  color: white;
  font-size: 30px;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
}
.carousel-btn.prev {
  left: 10px;
}
.carousel-btn.next {
  right: 10px;
}
.carousel-btn:hover {
  background-color: rgba(20, 90, 90, 0.9);
}
/* Contacto */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 90%;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
}
.contact-form button {
  background-color: #2a8b8b;
  color: white;
  border: none;
  padding: 15px;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.contact-form button:hover {
  background-color: #145a5a;
}
/* Botón de WhatsApp */
.whatsapp-button {
  margin-top: 20px;
  text-align: center;
}
.whatsapp-button a {
  display: inline-block;
  background-color: #25D366;
  color: white;
  padding: 12px 20px;
  font-size: 18px;
  border-radius: 8px;
  text-decoration: none;
}
.whatsapp-button a i {
  margin-right: 8px;
}
/* Footer */
footer {
  background-color: #2a8b8b;
  color: white;
  text-align: center;
  padding: 15px;
  flex-shrink: 0;
}
footer p {
  margin: 0;
}
/* Modal carousel */
.modal-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-bottom: 10px;
}
.modal-carousel img {
  display: none;
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.modal-carousel img.active {
  display: block;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.3);
  color: #fff;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2;
  padding: 0 10px;
}
.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }
.whatsapp-modal-btn {
  display: inline-block;
  margin-top: 15px;
  background: #25d366;
  color: #fff;
  padding: 10px 18px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background 0.2s;
}
.whatsapp-modal-btn:hover {
  background: #128c7e;
}
.abrir-modal {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 2rem;
  color: #007bff;
  margin-top: 10px;
  transition: color 0.2s;
}
.abrir-modal:hover {
  color: #0056b3;
}
.modal-carousel img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.modal-content iframe {
  width: 100%;
  height: 120px;
  border: 0;
  border-radius: 8px;
  margin-bottom: 10px;
}
@media (max-width: 600px) {
  .modal-content {
    max-width: 98vw;
    padding: 10px 2vw 20px 2vw;
  }
  .modal-carousel img {
    height: 120px;
  }
  iframe {
    height: 140px !important;
  }
  .modal-content iframe {
    height: 80px;
  }
}
@media (max-width: 700px) {
  .casas {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .casa {
    width: 100% !important;
    margin: 0 auto;
  }
}
@media (max-width: 900px) {
  .casas {
    flex-direction: column !important;
    align-items: center !important;
    gap: 30px !important;
  }
  .casa {
    max-width: 95vw !important;
    width: 100% !important;
    margin: 0 !important;
  }
}
.img-fullscreen-overlay {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
}
.img-fullscreen-overlay.active {
  display: flex;
}
.img-fullscreen-overlay img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.6);
}
.img-fullscreen-overlay .close-full {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  z-index: 2010;
}
.instagram-btn {
  background: linear-gradient(45deg, #fd5949, #d6249f, #285AEB);
  color: #fff !important;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 1.2rem;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: background 0.2s;
}
.instagram-btn:hover {
  background: linear-gradient(45deg, #d6249f, #fd5949, #285AEB);
  color: #fff !important;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.apilar-casas {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 30px !important;
}
.apilar-casas .casa {
  max-width: 95vw !important;
  width: 100% !important;
  margin: 0 !important;
}