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

:root {
  /* --- Tu Nueva Paleta de Colores --- */
  --primary-color: #C7B9A5;   /* Color Beige/Arena extraído de tu imagen */
  --primary-dark: #A89984;    /* Versión más oscura del beige para efectos hover */
  --text-dark: #413C3A;       /* Marrón/Gris oscuro para textos principales */
  --text-light: #A9A299;      /* Gris claro/Pardo para textos secundarios */
  
  /* --- Colores de Base (Estos podemos mantenerlos o ajustarlos) --- */
  --bg-light: #F7F5F2;       /* Un blanco roto muy claro para los fondos, que combina mejor */
  --white: #ffffff;
  --black: #000000; /* Added for contrast */
  
  /* --- Variables de Sombra y Transición (No necesitan cambio) --- */
  --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 5px 25px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}


body {
  font-family: 'Rubik', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  /* FIX: Ensure no horizontal scrolling */
  overflow-x: hidden; 
  padding-top: 80px; 
}
html {
  scroll-behavior: smooth;
  /* FIX: Ensure no horizontal scrolling */
  overflow-x: hidden; 
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.title-underline {
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 5px;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  background: var(--white);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* FIX: Establish positioning context for nav-toggle */
    position: relative;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-menu a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

.nav-lang {
  display: flex;
  gap: 10px;
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--text-light);
  padding: 5px 12px;
  border-radius: 3px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.lang-btn.active,
.lang-btn:hover {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  z-index: 1001; 
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-dark); /* Ensure dark color for visibility */
  transition: var(--transition);
}

.hero {
  min-height: 500px;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--white);
  text-align: center;
  overflow: hidden; 
}

/* --- Video Background Styles --- */
.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 1;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* Modify the overlay to ensure it still works over the video */
.hero-overlay {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25); 
  z-index: 2;
}

/* Ensure hero content is above the overlay */
.hero-content {
  position: relative;
  z-index: 3; 
  padding: 40px 20px; 
  animation: fadeInUp 1s ease;
}

/* --- New Hero Logo Styles (Image) --- */
.hero-logo-img {
  max-width: 400px; 
  width: 70%;
  height: auto;
  margin-bottom: 20px;
  filter: invert(1); 
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
  font-weight: 300;
}

.scroll-indicator {
  position: absolute;
  bottom: 5px; 
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  z-index: 5;
}

.mouse {
  width: 25px;
  height: 40px;
  border: 1.5px solid var(--white);
  border-radius: 15px;
  position: relative;
}

.mouse::before {
  content: '';
  width: 5px;
  height: 8px;
  background: var(--white);
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  animation: scroll 2s infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@keyframes scroll {
  0% {
    opacity: 1;
    top: 10px;
  }
  100% {
    opacity: 0;
    top: 30px;
  }
}

.project-overview {
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.project-dots-bg {
  position: absolute;
  top: 50px;
  left: -50px;
  width: 200px;
  height: 400px;
  background-image: radial-gradient(var(--text-light) 1px, transparent 1px);
  background-size: 15px 15px;
  opacity: 0.3;
}

.project-content {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.project-video-wrapper {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  aspect-ratio: 16 / 10;
}

.project-video-wrapper iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.project-text {
  text-align: left;
}

.eyebrow-text {
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.section-title-left {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 25px;
  text-align: left;
}

.project-text p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: var(--text-light);
}

.project-features-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.feature-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-top: 5px;
}

.feature-item-text h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.feature-item-text p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.5;
}

.properties {
  background: var(--bg-light);
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.property-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.property-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.property-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.property-card:hover .property-image img {
  transform: scale(1.1);
}

.property-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary-color);
  color: var(--white);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.property-content {
  padding: 30px;
}

.property-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.property-content > p {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.6;
}

.property-features {
  list-style: none;
  margin-bottom: 25px;
}

.property-features li {
  padding: 8px 0;
  color: var(--text-light);
  border-bottom: 1px solid #eee;
}

.property-features li::before {
  content: '✓ ';
  color: var(--primary-color);
  font-weight: bold;
  margin-right: 10px;
}

.property-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.property-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* --- Modificaciones Específicas para el Video en Property Card --- */

.video-card-wrapper {
  position: relative; 
  z-index: 1; 
}

.property-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2; 
}

.property-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary-color);
  color: var(--white);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 3; 
}

.property-card:hover .property-image img {
  transform: scale(1.1);
}

.property-card:hover .property-image .property-video-bg {
  transform: none;
}

.amenities {
  background: var(--white);
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.amenity-item {
  text-align: center;
  padding: 0; /* Aseguramos que el padding lo da el botón */
  border-radius: 10px;
  transition: var(--transition);
}

.amenity-item:hover {
  background: none; /* Quitamos el hover background */
  transform: none; /* Quitamos la animación translateY */
}

.amenity-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.amenity-item h4 {
  font-size: 1.2rem;
  margin-bottom: 5px; /* Reducimos el margen */
  color: var(--text-dark);
}

.amenity-item p {
  color: var(--text-light);
  font-size: 0.9rem; /* Reducimos el tamaño */
  line-height: 1.3;
}

/* =================================== */
/* Estilos para el Botón de Amenidades (Neomorfismo) */
/* =================================== */

.amenity-button {
  /* ... otros estilos base ... */
  width: 100%;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  
  color: var(--text-dark);
  padding: 1.5em 1em;
  font-size: 16px;
  border-radius: 0.8em;
  background: #ffffff;
  border: 1px solid #ffffff;
  
  cursor: pointer;
  transition: all 0.3s;
  
  /* 🔑 CAMBIO CLAVE: Acentuar la sombra blanca (glow) y oscurecer la sombra oscura */
  /* Sombra: (oscura/abajo-derecha) y (clara/arriba-izquierda - el GLOW) */
  box-shadow: 
    8px 8px 16px #c5c5c5, /* Más grande y oscura */
    -8px -8px 16px hsl(0, 0%, 100%); /* Más grande y blanca para un glow visible */
}

.amenity-button:hover {
  border: 1px solid var(--white);
}

.amenity-button h4 {
  margin-top: 10px;
  font-size: 1.2rem;
  /* CAMBIO: Usamos el blanco como color de texto. Si se ve mal, prueba con var(--text-light) */
  color: var(--text-dark); /* Mantenemos oscuro por contraste */
}

.amenity-button p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 5px;
}

.gallery {
  background: var(--bg-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  height: 250px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.15);
}

.faq {
  background: var(--white);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: var(--white);
  border: none;
  padding: 20px 25px;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--bg-light);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 300;
  transition: var(--transition);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  opacity: 0;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 20px 25px;
  color: var(--text-light);
  line-height: 1.8;
}

.testimonials {
  background: var(--bg-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.testimonial-stars {
  color: #ffc107;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.testimonial-author strong {
  color: var(--text-dark);
  font-size: 1.1rem;
}

.testimonial-author span {
  color: var(--text-light);
  font-size: 0.9rem;
}

.contact {
  background: var(--white);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.contact-info p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 30px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-item strong {
  color: var(--text-dark);
  font-size: 1rem;
}

.contact-item span {
  color: var(--text-light);
}

/* --- FAQ "Contacto" link styling --- */
.faq-item a[href*="contacto"],
.faq a[href*="contacto"] {
  color: inherit;            /* usa el color del texto normal */
  text-decoration: underline; /* mantiene subrayado */
  font-weight: bold;          /* en negrita */
}

/* Opcional: evita el color al visitar */
.faq-item a[href*="contacto"]:visited,
.faq a[href*="contacto"]:visited {
  color: #000000;
}

.newsletter-form {
  background: var(--bg-light);
  padding: 40px;
  border-radius: 10px;
}

.newsletter-form h4 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: var(--text-dark);
}

.newsletter-form input,
.newsletter-form textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: 'Rubik', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}

.newsletter-form input:focus,
.newsletter-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.newsletter-form textarea {
  resize: vertical;
}

.newsletter-form button {
  width: 100%;
}

.footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.footer-section p {
  color: #ccc;
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
  color: #ccc;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #999;
}

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transition: var(--transition);
  animation: pulse 2s infinite;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.whatsapp-float i {
  font-size: 2rem;
  color: var(--white);
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8);
  }
}

/* ==================================== */
/* MOBILE RESPONSIVE FIXES     */
/* ==================================== */
@media (max-width: 768px) {
  /* FIX 1: Ensure nav toggle is displayed and positioned correctly on mobile */
  .nav-toggle {
    display: flex;
    position: absolute; 
    right: 20px; 
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    /* FIX: Styles to ensure the button has a defined size */
    width: 30px; 
    height: 25px; 
    justify-content: space-around;
  }
  
  /* FIX 2: Ensure the spans (lines) inside the button are visible and correct color */
  .nav-toggle span {
    width: 100%;
    height: 3px;
    background: var(--text-dark); 
    display: block; 
    border-radius: 2px;
  }

  /* FIX 3: Ensure menu options drop down reliably */
  .nav-menu {
    display: none; /* Hide by default */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    padding: 0 20px; 
    transition: max-height 0.3s ease-out; 
    z-index: 999;
  }

  .nav-menu.active {
    display: flex; /* Make it visible */
    flex-direction: column;
    max-height: 500px; /* Safe, large value */
    padding: 20px 20px;
  }

  /* FIX 4: Ensure links fill the mobile menu horizontally and are tappable */
  .nav-menu li {
    padding: 5px 0;
    text-align: center;
  }
  
  .nav-menu a {
    display: block;
    color: var(--text-dark);
    text-align: center;
    padding: 5px 0;
  }
  .nav-menu a::after {
    display: none; 
  }
  
  .nav-lang {
    display: none;
  }

  .hero {
    min-height: 350px;
    height: 90vh;
    background-image: none;
  }
  .hero-video-bg {
    display: block;
  }

  .scroll-indicator {
    bottom: 80px; 
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .project-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .property-grid {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }
  
  /* CTA Bar fixes */
  .cta-container {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }

  .cta-text {
    margin-bottom: 20px;
  }

  .cta-text span {
    display: block;
    margin-left: 0;
    margin-top: 5px;
  }
  
  /* Newsletter Signup fixes */
  .signup-content {
    max-width: 100%;
  }
  .signup-girl {
    display: none;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .whatsapp-float i {
    font-size: 2rem;
    color: var(--white);
  }
}

@media (max-width: 480px) {
  .section {
    padding: 50px 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .newsletter-form {
    padding: 25px;
  }
}

/* =================================== */
/* Features Bar Styles */
/* =================================== */

.features-bar {
  background-color: transparent;
  padding: 0;
  transform: translateY(-50%);
  position: relative;
  z-index: 10;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.feature-card {
  background: var(--white);
  padding: 20px 15px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-color);
  background-color: var(--primary-color);
}

.feature-icon-img {
  height: 40px;
  width: auto;
  margin-bottom: 10px;
  transition: var(--transition);
}

.feature-card:hover .feature-icon-img {
  filter: brightness(0) invert(1);
}

.feature-text {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  transition: var(--transition);
}

.feature-card:hover .feature-text {
  color: var(--white);
}

@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .features-bar {
    transform: translateY(0);
    padding: 40px 0 0 0;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* =================================== */
/* Estilos para la Barra CTA */
/* =================================== */

.cta-bar {
  padding: 40px 0;
}

.cta-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background-color: var(--text-dark);
  color: var(--white);
  padding: 30px 40px;
  border-radius: 15px; 
}

.cta-text h3 {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0;
}

.cta-text span {
  font-weight: 400;
  color: var(--text-light);
  margin-left: 10px;
}

.btn-cta {
  background-color: var(--white);
  color: var(--text-dark);
  border-radius: 8px;
  font-weight: 600;
  padding: 15px 30px;
  flex-shrink: 0;
}

.btn-cta:hover {
  background-color: #f0f0f0;
  color: var(--text-dark);
  transform: translateY(0);
  box-shadow: none;
}

.btn-cta i {
  margin-right: 8px;
}


/* =================================== */
/* Estilos para la Nueva Sección Newsletter */
/* =================================== */

.signup-container {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
}

.signup-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* ===== IMPORTANTE: Aquí va tu imagen de fondo ===== */
  background: url('https://images.pexels.com/photos/1078983/pexels-photo-1078983.jpeg') center/cover no-repeat;
  border-radius: 15px;
  overflow: hidden;
}

.signup-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 60, 39, 0.70); 
}

.signup-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 40px 50px;
  max-width: 55%;
}

.signup-content h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: var(--white);
  text-align: left;
}

.signup-content p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
}

/* --- FORMULARIO DE NOTICIAS (stack vertical mejorado) --- */
.signup-form {
  display: flex;
  flex-direction: column;  /* mantiene el stack vertical */
  gap: 14px;               /* más espacio entre campos */
  max-width: 420px;
  margin: 0 auto;
}

.signup-form input,
.signup-form button {
  width: 100%;
  height: 50px;            /* campos más altos */
  font-size: 1rem;
  padding: 0 14px;
  border-radius: 6px;
  box-sizing: border-box;
}

.signup-form input {
  border: 1px solid rgba(255, 255, 255, 0.6); /* borde claro */
  background-color: rgba(255, 255, 255, 0.85); /* fondo semitransparente */
  color: #333;
}

.signup-form input::placeholder {
  color: #666;
}

.signup-form button {
  background-color: #b8a789;  /* color actual del botón */
  color: white;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.signup-form button:hover {
  background-color: #a59577;
  transform: translateY(-1px);
}

.signup-form input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.signup-girl {
  position: absolute;
  z-index: 3;
  right: 10px;
  bottom: 0;
  height: 145%;
  width: auto;
  pointer-events: none;
}

/* --- Hacemos la sección responsive --- */
@media (max-width: 992px) {
  .signup-content {
    max-width: 100%;
  }
  .signup-girl {
    display: none;
  }
}

@media (max-width: 576px) {
  .signup-form {
    flex-direction: column;
    align-items: stretch;
  }
  .signup-content {
    padding: 30px 25px;
  }
}

/* =================================== */
/* Estilos para Botones de Propiedades (Efecto Skew Animado) */
/* =================================== */

.btn-property-animated {
  /* Estilos base del botón original, ajustados para tu tamaño */
  padding: 8px 20px; /* Usamos el tamaño btn-sm */
  border: none;
  border-radius: 5px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  
  /* Color principal basado en el estilo skew, ajustado a tu paleta */
  color: var(--primary-color); 
  transition: all 1000ms;
  font-size: 0.9rem; /* Usamos el tamaño btn-sm */
  position: relative;
  overflow: hidden;
  outline: 2px solid var(--primary-color);
  background: transparent; /* Aseguramos que el fondo inicial sea transparente */
  z-index: 1; /* Necesario para la animación */
}

.btn-property-animated:hover {
  color: var(--white);
  transform: scale(1.05); /* Ligeramente más sutil que el 1.1 */
  outline: 2px solid var(--primary-dark);
  /* Sombra sutil al hacer hover */
  box-shadow: 2px 3px 10px -2px var(--primary-dark);
}

.btn-property-animated::before {
  content: "";
  position: absolute;
  left: -50px;
  top: 0;
  width: 0;
  height: 100%;
  /* El color de relleno de la animación es el mismo que el color primario */
  background-color: var(--primary-color);
  transform: skewX(45deg);
  z-index: -1;
  transition: width 1000ms;
}

.btn-property-animated:hover::before {
  width: 250%;
}

.property-badge-demanda {
  /* Amarillo para "Sobre Demanda" */
  background: #FFC107; /* Amarillo Estándar */
  color: #333; /* Texto oscuro para contraste */
}

.property-badge-disponible {
  /* Verde para "Disponible" */
  background: #28A745; /* Verde Estándar */
  color: var(--white); /* Texto blanco para contraste */
}

/* ===================== */
/* CONTACTO REDISEÑADO */
/* ===================== */

.contact {
  background: var(--bg-light);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.contact-info p {
  color: var(--text-light);
  margin-bottom: 25px;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item strong {
  color: var(--text-dark);
  font-weight: 600;
}

.contact-item span {
  color: var(--text-light);
}

/* BLOQUE DE WHATSAPP */
.contact-whatsapp {
  background: var(--white);
  border-radius: 12px;
  padding: 50px 30px;
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-whatsapp h3 {
  font-size: 1.6rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.contact-whatsapp p {
  color: var(--text-light);
  margin-bottom: 25px;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: white;
  font-weight: 600;
  border-radius: 50px;
  padding: 15px 30px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp i {
  font-size: 1.4rem;
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-whatsapp {
    padding: 40px 20px;
  }
}

/* Ajuste del espacio entre testimonios y contacto */
#contact.section {
  padding-top: 40px; /* Antes era 80px */
}

/* Si aún hay espacio adicional arriba, se puede forzar el margen */
.testimonials {
  margin-bottom: 20px; /* Reduce el espacio inferior de la sección anterior */
}

/* ===== FAQ con <details>/<summary> ===== */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ===== FAQ con <details>/<summary> ===== */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* El botón/pregunta */
.faq-question {
  list-style: none; /* oculta el triángulo nativo en algunos navegadores */
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px; cursor: pointer; font-weight: 600; color: var(--text-dark);
}
.faq-question::-webkit-details-marker { display: none; }

.faq-icon {
  font-size: 1.4rem;
  transition: transform .25s ease;
}

/* Contenido/respuesta */
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, opacity .25s ease;
  opacity: 0; background: var(--bg-light);
}
.faq-answer p { padding: 18px 22px; color: var(--text-light); line-height: 1.7; }

/* Estado abierto */
.faq-item[open] .faq-answer {
  max-height: 1000px; /* suficiente para iframes grandes */
  opacity: 1;
}

/* Hover sutil */
.faq-item:not([open]):hover .faq-question { background: var(--bg-light); }

/* Responsive fino */
@media (max-width: 600px) {
  .faq-question { padding: 16px 18px; }
  .faq-answer p { padding: 16px 18px; }
}

/* Centrado y separación del título de FAQ */
#faq .section-title {
  text-align: center;
  margin-bottom: 40px; /* separa el título de las tarjetas */
  font-size: 2rem;
}

#faq .title-underline {
  margin: 0 auto 50px auto; /* centra la línea decorativa y baja un poco */
  display: block;
}

/* Ajuste general del contenedor FAQ */
.faq-container {
  max-width: 850px;
  margin: 0 auto;
}

.map-container {
  margin-top: 15px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  background: #fff;
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 350px;
  border: 0;
}

.map-link {
  text-align: center;
  padding: 10px 0 15px;
  background: #fff;
}

.btn-map {
  background-color: #c7b9a5;
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(199, 185, 165, 0.4);
}

.btn-map:hover {
  background-color: #a9967e;
  box-shadow: 0 6px 16px rgba(169, 150, 126, 0.5);
}

/* ===== Sección MAPA entre Testimonios y Contacto ===== */
.map-section { background: #fff }

.map-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: center;
}

.map-text h3 {
  font-size: 1.6rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.map-text p {
  color: var(--text-light);
  margin-bottom: 18px;
  line-height: 1.7;
}

.map-embed {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

/* Hacemos el iframe 100% ancho y con alto responsivo */
.map-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9; /* asegura que se vea completo */
  border: 0;
}

/* Compactar un poco el espacio superior si lo quieres más pegado */
#map.section { padding-top: 60px; }

/* Responsive */
@media (max-width: 900px) {
  .map-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Ocultar el indicador "mouse" del hero en móviles */
@media (max-width: 768px) {
  .scroll-indicator,
  .scroll-indicator .mouse {
    display: none !important;
  }
}

@media (max-width: 768px) {
  #home .scroll-indicator { display: none !important; }
}

/* ===== Menú móvil ===== */
@media (max-width: 900px) {
  /* Muestra el botón hamburguesa en móvil */
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
  }
}
