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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #000;
  background-color: #fff;
}

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

/* Header */
header {
  background: #2d2d2d;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  padding: 20px 0;
  height: 80px; /* Altura fija para mejor cálculo del offset */
  box-sizing: border-box;
  transition: all 0.3s ease; /* Transición suave para cambios */
}

a {
  text-decoration: none;
  color: inherit;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-buttons {
  display: flex;
  gap: 1rem;
}

.nav-btn {
  border: none;
  padding: 12px 24px;
  color: #fff;
  cursor: pointer;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
}

.nav-btn:hover,
.nav-btn.active {
  background: #333;
  transform: translateY(-2px);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #2d2d2d;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
  display: block;
}

.mobile-nav .nav-btn {
  display: block;
  margin-bottom: 10px;
  text-align: center;
}

/* Sections */
section {
  min-height: 100vh;
  padding: 120px 0 50px; /* Aumenté el padding-top para compensar el header fijo */
}

/* Hero Section */
.hero {
  background:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("../front-images/hero-bg.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  display: flex;
  align-items: center;
  text-align: center;
}
.hero-content h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-tagline {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 2px;
}

/* Transition Section */
.transition-section {
  background: linear-gradient(to bottom, #f5f5f5, #fff);
  padding: 80px 0;
  text-align: center;
}

.transition-section h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.5rem;
  color: #2d2d2d;
  margin-bottom: 20px;
}

.transition-section p {
  font-size: 1.2rem;
  color: #a5a59b;
  max-width: 800px;
  margin: 0 auto;
}

/* About Section */
#quienes-somos {
  background:
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url("../front-images/quienes-somos-bg.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  display: flex;
  align-items: center;
}
.about-content {
  background: rgba(0, 0, 0, 0.7);
  padding: 60px;
  border-radius: 10px;
  max-width: 800px;
  margin: 0 auto;
}

.about-content h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 3rem;
  margin-bottom: 2rem;
  text-align: center;
}

.about-content p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  text-align: justify;
}

/* Properties Section */
#propiedades {
  background:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("../front-images/propiedades-bg.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  display: flex;
  align-items: center;
}
.properties-content {
  text-align: center;
  width: 100%;
}

.properties-content h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 3rem;
  margin-bottom: 2rem;
}

.properties-content p {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.properties-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: nowrap;
}

.property-link {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 3rem 2rem;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
  flex: 1;
  max-width: 350px;
  text-align: center;
  border-radius: 15px;
}

.property-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.property-link h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.property-link p {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0;
}

.property-link_a,
.link-a {
  text-decoration: none;
  color: white;
}
.property-link_img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 1rem;
}

/* Contact Section */
#contacto {
  background:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../front-images/contacto-bg.png");
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  align-items: center;
}
.contact-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-content h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 3rem;
  margin-bottom: 2rem;
}

.contact-form {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 15px;
  margin-top: 3rem;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 5px;
  font-size: 16px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.submit-btn {
  background: #a5a59b;
  color: #fff;
  padding: 15px 40px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.submit-btn:hover {
  background: #d5d7d6;
  transform: translateY(-2px);
}

/* Modified contact info to only show 2 boxes */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.contact-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
}

.contact-item h3 {
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.contact-item p {
  margin: 0.5rem 0;
}

/* Footer */
footer {
  background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
  color: #e5e7eb;
  padding: 4rem 0 0;
}

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

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1.25rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.footer-description {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #9ca3af;
  margin-bottom: 1.5rem;
}

/* Service Tags */
.footer-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-tag {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.8125rem;
  color: #d1d5db;
  transition: all 0.3s ease;
}

.service-tag:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Footer Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer-links a::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #ffffff;
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 8px;
}

.footer-links a:hover::before {
  width: 100%;
}

/* Footer Contact */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
  color: #9ca3af;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.contact-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  color: #6b7280;
  margin-top: 2px;
  transition: color 0.3s ease;
}

.contact-item:hover .contact-icon {
  color: #ffffff;
}

.contact-item a,
.contact-item span {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #ffffff;
}

/* Footer Divider */
.footer-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  margin: 2rem 0;
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright,
.footer-credits {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

.footer-credits {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.footer-credits .heart {
  color: #ef4444;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.1);
  }
  50% {
    transform: scale(1);
  }
}

.footer-credits a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.footer-credits a:hover {
  color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-buttons {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .logo img {
    height: 32px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .hero-tagline {
    display: none;
  }
  .about-content,
  .contact-form {
    padding: 30px 20px;
  }

  .about-content h2,
  .properties-content h2,
  .contact-content h2 {
    font-size: 2rem;
  }

  .properties-links {
    flex-direction: column;
    gap: 1.5rem;
  }

  .property-link {
    max-width: none;
    padding: 2rem 1.5rem;
  }

  .contact-info {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .transition-section h2 {
    font-size: 2rem;
  }

  .transition-section p {
    font-size: 1rem;
  }

  /* Footer responsive */
  footer {
    padding: 3rem 0 0;
    margin-top: 3rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 0;
  }

  .footer-links a:hover {
    padding-left: 0;
  }
}

/* ============================================
   PÁGINA DE PROPIEDADES - NUEVO DISEÑO
   ============================================ */

/* Hero Section Propiedades */
.propiedades-hero {
  position: relative;
  height: 250px!important;
  background:
    linear-gradient(
      135deg,
      rgba(45, 45, 45, 0.85) 0%,
      rgba(0, 0, 0, 0.75) 100%
    ),
    url("../front-images/propiedades-bg.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 80px;
}

/* Ensure hero fits viewport on small screens so the scroll arrow is visible without extra scroll */
@media (max-width: 600px) {
  .propiedades-hero {
    margin-top: 0; /* header is fixed so we use viewport height directly */
    height: calc(100vh - 80px); /* header height ~80px */
    min-height: calc(100vh - 80px);
    background-attachment: scroll; /* better behavior on mobile */
  }
  .contacto-hero {
    margin-top: 0;
    height: calc(100vh - 80px);
    min-height: calc(100vh - 80px);
    background-attachment: scroll;
  }
}

.propiedades-hero-overlay {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.propiedades-hero-content {
  text-align: center;
  color: #ffffff;
  /* max-width: 800px; */
  padding: 0 20px;
}

.propiedades-hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
}

.propiedades-hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  color: #e5e7eb;
  letter-spacing: 0.5px;
}

/* Scroll-down arrow in hero */
.hero-scroll-arrow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  z-index: 50;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 9999px;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.12);
  cursor: pointer;
  animation: hero-bounce 2s infinite;
}
.hero-scroll-arrow svg {
  stroke: #111827;
}
@keyframes hero-bounce {
  0% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-8px);
  }
  100% {
    transform: translateX(-50%) translateY(0);
  }
}

/* Slightly smaller on small screens */
@media (max-width: 480px) {
  .hero-scroll-arrow {
    width: 40px;
    height: 40px;
    bottom: 14px;
  }
  .hero-scroll-arrow svg {
    width: 16px;
    height: 16px;
  }
}

/* Main Content */
.propiedades-main {
  background: #f8f9fa;
  padding: 4rem 0;
  min-height: calc(100vh - 400px);
}

/* Header de propiedades */
.propiedades-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e5e7eb;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.results-count {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.count-number {
  font-size: 2rem;
  font-weight: 700;
  color: #2d2d2d;
}

.count-text {
  font-size: 0.875rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Buscador de Propiedades (estilos) */
.propiedades-search {
  background: #ffffff;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.06);
  margin-bottom: 2rem;
}

.propiedades-search .search-row {
  display: flex;
  gap: 1rem;
  align-items: end;
  flex-wrap: wrap;
}

.propiedades-search .search-field {
  display: flex;
  flex-direction: column;
  min-width: 180px;
  flex: 1 1 200px;
}

.propiedades-search .search-field span {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 6px;
  font-weight: 500;
}

.propiedades-search select,
.propiedades-search input[type="search"] {
  padding: 10px 12px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  font-size: 14px;
  color: #111827;
}

.propiedades-search .search-keyword {
  flex: 2 1 360px;
}

.propiedades-search .search-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.propiedades-search .search-actions .search-btn,
.propiedades-search .search-actions .clear-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.propiedades-search .search-actions .search-btn {
  background: #111827;
  color: #fff;
  border: none;
}

.propiedades-search .search-actions .search-btn:hover {
  transform: translateY(-2px);
}

.propiedades-search .search-actions .clear-btn {
  background: transparent;
  border: 1px solid #d1d5db;
  color: #374151;
}

.propiedades-search .search-actions .clear-btn:hover {
  background: #f3f4f6;
}

.propiedades-search .search-actions .search-btn svg,
.propiedades-search .search-actions .clear-btn svg {
  width: 18px;
  height: 18px;
}

/* Spinner (carga AJAX) */
.search-spinner {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0;
}

.search-spinner .spinner svg {
  color: #111827;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .propiedades-search .search-row {
    flex-direction: column;
    align-items: stretch;
  }
  .propiedades-search .search-field {
    width: 100%;
    min-width: 0;
  }
}

/* Grid de Propiedades */
.propiedades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

/* Mensaje cuando no hay resultados */
.propiedades-grid.no-results {
  display: block; /* reemplaza grid por bloque para centrar el mensaje */
}

.no-results-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 2.25rem;
  text-align: center;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
  color: #374151;
}

/* Hero Section with Main Image */
.propiedad-hero {
  width: 100%;
  height: 300px;
  background-color: #000;
  overflow: hidden;
  margin-bottom: -200px;
  position: relative;
  z-index: 0;
}

.propiedad-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  display: block;
}

/* Ficha de propiedad - Full Width Layout */
.propiedad-ficha-card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

/* Property Header - Title Section */
 
.propiedad-title-main {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin: 0;
  word-break: break-word;
  letter-spacing: -0.5px;
}

@media (max-width: 768px) {
  
    main.propiedades-main .container {
        padding: 0;
    }

    .propiedad-header {
        padding: 0 20px;
    }

  .propiedad-title-main {
    font-size: 1.35rem;
    line-height: 1.3;
    color: #333;

  }
}

.ficha-gallery-fullwidth {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.04);
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
}

.ficha-content-wrapper {
  width: 100%;
}

/* Ensure slider occupies full height inside gallery */
/* .propiedad-slider, .slider-container { width:100%; height:100%; } */
.slider-item {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.ficha-content {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.04);
}

.ficha-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.ficha-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}
.ficha-type {
  font-size: 0.95rem;
  color: #6b7280;
}
.ficha-operacion {
  font-size: 0.95rem;
  background: #e0f2fe;
  color: #0369a1;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
}
.ficha-specs {
  gap: 1rem;
  flex-wrap: wrap;
  display: flex;
  position: relative;
  z-index: 1;
}
.ficha-specs .spec {
  background: #f3f4f6;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  opacity: 0.5;
}
.ficha-description {
  margin-top: 1rem;
  color: #374151;
}

.ficha-map {
  width: 100%;
  height: 300px;
  margin-top: 1rem;
  border-radius: 8px;
  overflow: hidden;
}

.ficha-actions {
  display: flex;
  gap: 0.5rem;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 50px;
}

.propiedades-grid .propiedad-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.ficha-gallery-fullwidth .propiedad-slider {
  width: 550px;
  height: 550px;
  position: relative;
}

@media (max-width: 900px) {
  /* Ocultar hero en mobile */
  .propiedad-hero--desktop {
    display: none;
  }
  .ficha-specs {
    display: none;
  }

  /* Layout mobile: todo en columna */
  .propiedad-ficha-card {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .ficha-gallery-fullwidth {
    display: flex;
    flex-direction: column;
    border-radius: 0;
    margin-bottom: 1rem;
  }

  .propiedad-slider {
    position: relative;
    overflow: hidden;
  }

  .ficha-gallery-fullwidth .propiedad-slider {
    width: 100%;
    height: 350px;
  }

  .btn-volver-propiedades {
    padding-top: 23px;
  }
  .slider-container {
    position: relative;
    width: 100%;
    height: 100%;
  }

  .ficha-description--gallery {
    display: block;
    padding: 1.5rem 1rem;
  }

  /* Mostrar botones de acción en mobile dentro de la galería */
  .ficha-actions--mobile {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .ficha-actions--desktop {
    display: none;
  }

  .ficha-actions--mobile .btn,
  .ficha-actions--mobile .btn-whatsapp-full {
    width: 100%;
    display: block;
  }

  /* Content y mapa */
  .ficha-content {
    padding: 1rem;
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid #e5e7eb;
  }

  .ficha-map {
    height: 220px;
    border-radius: 0;
  }

  .ficha-content-wrapper {
    margin-top: 0;
  }
}

/* Layout en desktop: slider 400x400 a la izquierda, descripción a la derecha */
@media (min-width: 900px) {
  /* Mostrar hero en desktop */
  .propiedad-hero--desktop {
    display: block;
  }

  .ficha-gallery-fullwidth {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .propiedad-slider {
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
  }

  .slider-container {
    position: relative;
    width: 100%;
    height: 100%;
  }

  .ficha-description--gallery {
    display: block;
    padding: 1rem;
    background: #fff;
    color: #374151;
    flex: 1;
    min-width: 0;
  }

  /* Ocultar botones de acción en mobile dentro de la galería */
  .ficha-actions--mobile {
    display: none;
  }

  /* Mostrar botones de acción en desktop en la sección de content */
  .ficha-actions--desktop {
    display: flex;
    gap: 0.5rem;
    max-width: 100%;
  }
}

/* Ensure slider containers and items fill the gallery area and images don't deform */
/* .propiedad-slider, .slider-container { position: relative; width:100%; height: 100%; min-height: 280px; overflow: hidden; } */
.slider-item {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.propiedad-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mobile fixes for search to avoid fixed min widths */
@media (max-width: 600px) {
  .propiedades-search .search-row {
    gap: 0.5rem;
    align-items: stretch;
  }
  .propiedades-search .search-field {
    flex: 1 1 100%;
    min-width: 0;
  }
  /* Ensure keyword input appears above action buttons on mobile */
  .propiedades-search .search-keyword {
    order: 2;
    width: 100%;
  }
  .propiedades-search .search-actions {
    order: 3;
    width: 100%;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }
  .propiedades-search .search-actions .search-btn,
  .propiedades-search .search-actions .clear-btn {
    width: 48%;
    height: 44px;
  }
}

.no-results-box svg {
  width: 48px;
  height: 48px;
  color: #9ca3af;
  margin-bottom: 0.75rem;
}

.no-results-box h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #111827;
}

.no-results-box p {
  color: #6b7280;
  margin-bottom: 0;
}

.no-results-box a {
  color: #111827;
  font-weight: 600;
  text-decoration: underline;
}

/* Card Individual */
.propiedad-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* .propiedad-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
} */

/* Imagen */
.propiedad-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* ensure square display */
  height: auto;
  overflow: hidden;
  max-height: 480px; /* prevent overly tall blocks on large screens */
}

/* Slider de Imágenes */
/* .propiedad-slider {
    position: relative;
    width: 100%;
    height: 100%;
} */

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slider-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.slider-item.active {
  opacity: 1;
  pointer-events: auto;
}

.propiedad-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* .propiedad-card:hover .propiedad-image {
  transform: scale(1.1);
} */

/* Botones del Slider */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.slider-btn svg {
  width: 20px;
  height: 20px;
}

.slider-prev {
  left: 10px;
}

.slider-next {
  right: 10px;
}

/* Indicadores del Slider */
.slider-indicators {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #ffffff;
  width: 24px;
  border-radius: 4px;
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Botón Expandir */
.slider-expand {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.slider-expand:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.slider-expand svg {
  width: 18px;
  height: 18px;
}

.propiedad-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  gap: 0.5rem;
}

.propiedad-image-placeholder svg {
  width: 48px;
  height: 48px;
}

.propiedad-image-placeholder span {
  font-size: 0.875rem;
  font-weight: 500;
}

.propiedad-type-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(45, 45, 45, 0.9);
  color: #ffffff;
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
}

.propiedad-surface-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.propiedad-operacion-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: #e0f2fe;
  color: #0369a1;
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Contenido de la Card */
.propiedad-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.propiedad-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.location-icon {
  width: 16px;
  height: 16px;
  min-width: 16px;
}

.propiedad-price-inline {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
}

.propiedad-price-inline .currency {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
}

.propiedad-price-inline .amount {
  font-size: 1.125rem;
  font-weight: 700;
  color: #2d2d2d;
}

.propiedad-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.propiedad-descripcion {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #6b7280;
  margin: 0.75rem 0;
}

.propiedad-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
}

.btn-view-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(17, 24, 39, 0.9);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-view-link:hover {
  transform: translateY(-2px);
  background: rgba(17, 24, 39, 1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.btn-view-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
  color: #6b7280;
  text-decoration: none;
}

.btn-view-inline svg {
  width: 14px;
  height: 14px;
}

.btn-view-inline:hover {
  color: #111827;
}

.propiedad-price .currency {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
}

.propiedad-price .amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d2d2d;
}

/* Acciones */
.propiedad-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn-whatsapp-full {
  flex: 1;
  padding: 0.875rem 1.5rem;
  background: #25d366;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-whatsapp-full svg {
  width: 20px;
  height: 20px;
}

.btn-whatsapp-full:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.btn-external-link {
  padding: 0.5rem 0.9rem;
  background: #111827;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-external-link svg {
  width: 16px;
  height: 16px;
}

.btn-external-link:hover {
  background: #0b1220;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.lightbox.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
  backdrop-filter: blur(10px);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg) scale(1.1);
}

.lightbox-close svg {
  width: 24px;
  height: 24px;
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
  backdrop-filter: blur(10px);
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev svg,
.lightbox-next svg {
  width: 28px;
  height: 28px;
}

.lightbox-counter {
  margin-top: 20px;
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 20px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

/* Contact Banner */
.contact-banner {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border-radius: 16px;
  padding: 3rem;
  margin-top: 3rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.contact-banner-content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
}

.contact-banner-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-banner-icon svg {
  width: 40px;
  height: 40px;
  color: #ffffff;
}

.contact-banner-text h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.75rem 0;
}

.contact-banner-text p {
  font-size: 1rem;
  color: #d1d5db;
  margin: 0;
  line-height: 1.6;
}

.contact-banner-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-contact-primary {
  padding: 1rem 2rem;
  background: #ffffff;
  color: #1f2937;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-contact-primary:hover {
  background: #f3f4f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-contact-whatsapp {
  padding: 1rem 2rem;
  background: #25d366;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-contact-whatsapp svg {
  width: 20px;
  height: 20px;
}

.btn-contact-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* Responsive para página de propiedades */
@media (max-width: 1024px) {
  .propiedades-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .contact-banner-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .contact-banner-icon {
    margin: 0 auto;
  }

  .contact-banner-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .propiedades-hero {
    height: 300px;
    margin-top: 80px;
  }

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

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

  .propiedades-main {
    padding: 2rem 0;
    margin-top: 68px;
  }

  .propiedades-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
  }

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

  .propiedades-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-banner {
    padding: 2rem 1.5rem;
    margin-top: 2rem;
  }

  .contact-banner-text h3 {
    font-size: 1.375rem;
  }

  .contact-banner-text p {
    font-size: 0.9375rem;
  }

  .contact-banner-actions {
    width: 100%;
  }

  .btn-contact-primary,
  .btn-contact-whatsapp {
    width: 100%;
    justify-content: center;
  }

  /* Lightbox responsive */
  .lightbox-prev {
    left: 10px;
    width: 50px;
    height: 50px;
  }

  .lightbox-next {
    right: 10px;
    width: 50px;
    height: 50px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
  }

  .lightbox-content img {
    max-height: 80vh;
  }

  .slider-btn {
    width: 32px;
    height: 32px;
  }

  .slider-btn svg {
    width: 16px;
    height: 16px;
  }
}

/* Ajuste específico para header en página de propiedades */
body.propiedades-page header {
  background: rgba(45, 45, 45, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

body.propiedades-page header.scrolled {
  background: rgba(45, 45, 45, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body.propiedades-page .logo img {
  filter: brightness(1.1);
}

/* ============================================
   PÁGINA DE CONTACTO
   ============================================ */

/* Hero Section Contacto */
.contacto-hero {
  position: relative;
  height: 350px;
  background:
    linear-gradient(135deg, rgba(45, 45, 45, 0.9) 0%, rgba(0, 0, 0, 0.8) 100%),
    url("../front-images/contacto-bg.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 80px;
}

.contacto-hero-overlay {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contacto-hero-content {
  text-align: center;
  color: #ffffff;
  /* max-width: 800px; */
  padding: 0 20px;
}

.contacto-hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
}

.contacto-hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  color: #e5e7eb;
  letter-spacing: 0.5px;
}

/* Main Content */
.contacto-main {
  background: #f8f9fa;
  padding: 4rem 0;
}

/* Layout de 2 Columnas */
.contacto-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

/* Sección de Información */
.contacto-info-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.info-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.info-icon svg {
  width: 28px;
  height: 28px;
  color: #ffffff;
}

.info-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.75rem;
}

.info-card p {
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

.info-card a {
  color: #2d2d2d;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.info-card a:hover {
  color: #1a1a1a;
}

.text-muted {
  color: #9ca3af !important;
  font-size: 0.875rem;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25d366;
  color: #ffffff !important;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.whatsapp-link svg {
  width: 20px;
  height: 20px;
}

.whatsapp-link:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* Social Card */
.social-card {
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  width: 44px;
  height: 44px;
  background: #f3f4f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: all 0.3s ease;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.social-link:hover {
  background: #2d2d2d;
  color: #ffffff;
  transform: translateY(-4px);
}

/* Sección del Formulario */
.contacto-form-section {
  background: #ffffff;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-header {
  margin-bottom: 2.5rem;
}

.form-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.form-header p {
  color: #6b7280;
  font-size: 1rem;
}

/* Formulario */
.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.form-group label svg {
  width: 18px;
  height: 18px;
  color: #6b7280;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.875rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  transition: all 0.3s ease;
  background: #ffffff;
  color: #1f2937;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2d2d2d;
  box-shadow: 0 0 0 3px rgba(45, 45, 45, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: #2d2d2d;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.submit-btn svg {
  width: 20px;
  height: 20px;
}

.submit-btn:hover:not(:disabled) {
  background: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(45, 45, 45, 0.3);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .contacto-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contacto-info-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .social-card {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .contacto-hero {
    height: 280px;
    margin-top: 80px;
  }

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

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

  .contacto-main {
    padding: 2rem 0;
  }

  .contacto-layout {
    gap: 1.5rem;
  }

  .contacto-info-section {
    grid-template-columns: 1fr;
  }

  .social-card {
    grid-column: span 1;
  }

  .contacto-form-section {
    padding: 2rem 1.5rem;
  }

  .form-header h2 {
    font-size: 1.75rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Header para página de contacto */
body.contacto-page header {
  background: rgba(45, 45, 45, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ========================================
   HOME PAGE STYLES
   ======================================== */

/* Hero Buttons */
.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-hero-primary,
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-hero-primary {
  background: #2d2d2d;
  color: white;
  border: 2px solid #2d2d2d;
}

.btn-hero-primary:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-hero-secondary {
  background: white;
  color: #2d2d2d;
  border: 2px solid #2d2d2d;
}

.btn-hero-secondary:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.btn-hero-primary svg,
.btn-hero-secondary svg {
  width: 20px;
  height: 20px;
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
  padding: 4rem 0;
  color: white;
}

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

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  color: #e0e0e0;
  font-weight: 500;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
  font-family: "Space Grotesk", sans-serif;
}

.section-header p {
  font-size: 1.1rem;
  color: white;
  max-width: 600px;
  margin: 0 auto;
}

/* Services Section */
.services-section {
  padding: 5rem 0;
  background: #ffffff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: #2d2d2d;
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-icon svg {
  width: 32px;
  height: 32px;
  stroke: white;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2d2d2d;
  margin-bottom: 0.75rem;
  font-family: "Space Grotesk", sans-serif;
}

.service-card p {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* About Section */
.about-section {
  padding: 5rem 0;
  background: #f9fafb;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image-placeholder svg {
  width: 120px;
  height: 120px;
  stroke: rgba(255, 255, 255, 0.3);
}

.about-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2d2d2d;
  margin-bottom: 1.5rem;
  font-family: "Space Grotesk", sans-serif;
}

.about-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 1rem;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2d2d2d 0%, #555 100%);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.value-card:hover::before {
  transform: scaleX(1);
}

.value-card:hover {
  transform: translateY(-8px);
  border-color: #2d2d2d;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.value-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: #f9fafb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.value-card:hover .value-icon {
  background: #2d2d2d;
  transform: scale(1.1) rotate(5deg);
}

.value-icon svg {
  width: 32px;
  height: 32px;
  stroke: #2d2d2d;
  transition: all 0.4s ease;
}

.value-card:hover .value-icon svg {
  stroke: white;
}

.value-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d2d2d;
  margin-bottom: 0.75rem;
}

.value-card p {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* Properties Showcase Section */
.properties-showcase {
  padding: 5rem 0;
  background: white;
}

.properties-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.property-link {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1.5rem;
  padding: 2rem;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.property-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  border-color: #2d2d2d;
}

.property-link_img {
  width: 100%;
  height: 80px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.property-link-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d2d2d;
  margin-bottom: 0.75rem;
  font-family: "Space Grotesk", sans-serif;
}

.property-link-content p {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.link-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #2d2d2d;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.link-button:hover {
  background: #1a1a1a;
  transform: translateX(4px);
  color: white;
}

.link-button svg {
  width: 18px;
  height: 18px;
}

/* Properties Section - Home */
.properties-section {
  padding: 5rem 0;
  background: white;
}

.platforms-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.platform-link {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.platform-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2d2d2d 0%, #666 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.platform-link:hover::before {
  transform: scaleX(1);
}

.platform-link:hover {
  transform: translateY(-4px);
  border-color: #2d2d2d;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.platform-logo-container {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  border-radius: 8px;
  padding: 0.5rem;
}

.platform-logo-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.platform-name {
  flex: 1;
  font-size: 1.25rem;
  font-weight: 600;
  color: #2d2d2d;
  font-family: "Space Grotesk", sans-serif;
}

.platform-arrow {
  width: 24px;
  height: 24px;
  stroke: #9ca3af;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.platform-link:hover .platform-arrow {
  stroke: #2d2d2d;
  transform: translateX(4px);
}

.properties-cta {
  text-align: center;
  margin-top: 2rem;
}

.btn-ver-propiedades {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: #2d2d2d;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid #2d2d2d;
}

.btn-ver-propiedades:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  color: white;
}

.btn-ver-propiedades svg {
  width: 20px;
  height: 20px;
}

.btn-cta-large {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 3rem;
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-cta-large:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  color: white;
}

.btn-cta-large svg {
  width: 24px;
  height: 24px;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
  padding: 5rem 0;
  color: white;
}

.cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: "Space Grotesk", sans-serif;
}

.cta-content p {
  font-size: 1.1rem;
  color: #e0e0e0;
  margin-bottom: 2.5rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta-white,
.btn-cta-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-cta-white {
  background: white;
  color: #2d2d2d;
}

.btn-cta-white:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
  color: #2d2d2d;
}

.btn-cta-whatsapp {
  background: #25d366;
  color: white;
}

.btn-cta-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
  color: white;
}

.btn-cta-whatsapp svg {
  width: 20px;
  height: 20px;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 1024px) {
  .about-layout {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .about-content h2 {
    font-size: 2rem;
  }

  .cta-content h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }

  .stats-section {
    padding: 3rem 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stat-item {
    padding: 1.5rem 1rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .services-section,
  .about-section,
  .properties-showcase,
  .properties-section,
  .cta-section {
    padding: 3rem 0;
  }

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

  .section-header h2 {
    font-size: 1.75rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  .about-values {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .value-card {
    padding: 2rem 1.5rem;
  }

  .value-card h3 {
    font-size: 1.25rem;
  }

  .platforms-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .platform-link {
    padding: 1.5rem;
  }

  .platform-logo-container {
    width: 50px;
    height: 50px;
  }

  .platform-name {
    font-size: 1.1rem;
  }

  .properties-links {
    grid-template-columns: 1fr;
  }

  .property-link {
    padding: 1.5rem;
  }

  .btn-cta-large,
  .btn-ver-propiedades {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .cta-content h2 {
    font-size: 1.75rem;
  }

  .cta-content p {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-cta-white,
  .btn-cta-whatsapp {
    width: 100%;
    justify-content: center;
  }
}
/* Video Player Modal Styles */
.propiedad-slider {
  position: relative;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  transition: all 0.3s ease;
  cursor: pointer;
}

.propiedad-slider:hover .video-overlay {
  display: flex;
}

.video-overlay:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

/* Video Preview Section Below Slider */
.video-preview-section {
  width: 100%;
  margin-top: 1rem;
}

.video-preview-container {
  position: relative;
  width: 100%;
  max-width: 550px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.video-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.video-play-overlay:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.video-play-overlay svg {
  width: 80px;
  height: 80px;
  color: white;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

.video-play-overlay:hover svg {
  transform: scale(1.1);
}


/* Video Modal */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.video-modal.active {
  display: flex;
}

.video-modal-content {
  position: relative;
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.video-modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  font-size: 28px;
  line-height: 1;
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.video-modal-close svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .video-modal-content {
    max-width: 100%;
    aspect-ratio: 16 / 9;
  }

  .play-button {
    width: 60px;
    height: 60px;
  }

  .play-button svg {
    width: 24px;
    height: 24px;
  }

  .video-modal-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .video-modal-close svg {
    width: 20px;
    height: 20px;
  }
}