/* ========================================================================= */
/* 1. VARIABLES: PALETA CORPORATIVA SERIA */
/* ========================================================================= */
:root {
  --primary-color: #1e3a8a;
  --primary-light: #3b82f6;
  --text-color: #1f2937;
  --text-secondary: #4b5563;
  --light-bg: #f9fafb;
  --card-bg: #ffffff;
  --border-color: #e5e7eb;
  --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --accent-whatsapp: #25D366;
  --badge-success: #059669;
}

/* ========================================================================= */
/* 2. RESET Y UTILIDADES */
/* ========================================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--light-bg);
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
a:hover {
  color: var(--primary-light);
}
ul { list-style: none; }
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  padding: 0;
  margin: 0;
  color: inherit;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========================================================================= */
/* 3. COMPONENTES REUTILIZABLES */
/* ========================================================================= */
.btn-primary {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background-color: var(--primary-color);
  color: white !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-light);
  text-decoration: none;
}
.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  color: white !important;
}

header {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}
header .brand img {
  height: 48px;
  max-height: 56px;
  width: auto;
}
nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
nav a {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 1rem;
}
nav a:hover, nav a.active {
  color: var(--primary-color);
}
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-color);
}

/* --- Botón CTA "Publica tu propiedad" (ALINEADO A LA DERECHA) --- */
.btn-cta-publicar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 1.4rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  margin: 0 1rem;
  position: relative;
  overflow: hidden;
}
.btn-cta-publicar:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
  transition: left 0.5s ease;
  z-index: -1;
}
.btn-cta-publicar:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  color: white;
}
.btn-cta-publicar:hover:before {
  left: 0;
}
.btn-cta-publicar .btn-arrow {
  font-size: 1.1rem;
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.btn-cta-publicar:hover .btn-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* Menú móvil */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background: var(--card-bg);
  box-shadow: 4px 0 12px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  transition: left 0.3s ease;
  z-index: 2000;
}
.mobile-menu.show {
  left: 0;
}
.mobile-menu a {
  margin: 1.2rem 0;
  font-size: 1.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-color);
}
.mobile-menu a:hover {
  color: var(--primary-color);
}
.mobile-menu .btn-primary {
  color: white !important;
  background-color: var(--primary-color);
  width: 100%;
  text-align: center;
  margin-top: 1.5rem;
  padding: 0.75rem;
  font-size: 1rem;
  text-decoration: none;
  display: block;
  box-shadow: var(--shadow-light);
}
.mobile-menu .btn-primary:hover {
  background-color: var(--primary-light);
  color: white !important;
  transform: none;
  box-shadow: var(--shadow-hover);
}
.mobile-menu .close-btn {
  font-size: 1.5rem;
  align-self: flex-end;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  background: none;
  border: none;
  cursor: pointer;
}

.overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1500;
}
.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

footer {
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
  background: var(--card-bg);
  margin-top: 4rem;
}

/* ========================================================================= */
/* 4. FILTROS Y BÚSQUEDA */
/* ========================================================================= */
.value-prop-bar {
  margin-top: 80px;
  padding: 1.5rem 0;
  background: #f0f5ff;
  text-align: center;
  border-bottom: 1px solid #dbeafe;
}
.value-prop-bar h1 {
  font-size: 1.7rem;
  margin: 0;
  color: var(--primary-color);
  font-weight: 700;
}
.value-prop-bar p {
  margin: 0.6rem auto 0;
  color: var(--text-secondary);
  max-width: 700px;
  font-size: 1rem;
  line-height: 1.5;
}

.filter-hero-bar {
  padding: 25px 0 40px;
  background-color: var(--light-bg);
}
.clean-search-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-bg);
  border-radius: 40px;
  box-shadow: var(--shadow-light);
  padding: 10px;
  max-width: 900px;
  margin: 0 auto 30px;
  transition: box-shadow 0.3s ease;
}
.clean-search-card:hover {
  box-shadow: var(--shadow-hover);
}
.search-field {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  flex-grow: 1;
  cursor: pointer;
  border-radius: 30px;
  transition: background-color 0.2s;
  border-right: 1px solid var(--border-color);
}
.search-field:last-of-type { border-right: none; }
.search-field:hover { background-color: #f1f5f9; }
.search-field .icon-placeholder {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-right: 10px;
  width: 24px;
  text-align: center;
}
.search-field .input-group {
  display: flex;
  flex-direction: column;
  min-width: 100px;
}
.search-field label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 2px;
}
.search-field select {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
  color: var(--text-color);
  padding: 0;
  appearance: none;
  cursor: pointer;
}

/* Botón de búsqueda sin ícono */
.search-submit-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1.2rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-light);
  min-width: 84px;
  height: 44px;
  margin: 0 8px;
}
.search-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  color: white;
}
@media (max-width: 576px) {
  .search-submit-btn {
    padding: 0 1rem;
    min-width: 76px;
    height: 40px;
    font-size: 0.9rem;
  }
}

/* Filtros avanzados */
.advanced-filters-toggle {
  text-align: center;
  margin: 10px auto 20px;
  max-width: 900px;
}
.btn-text-toggle {
  background: none;
  border: none;
  color: var(--primary-color);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
}
.advanced-filters {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-light);
  max-width: 900px;
  margin: 0 auto 30px;
}
.amenities-filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 1.2rem;
}
.amenity-filter-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s;
}
.amenity-filter-item:hover {
  background: #f8fafc;
}
.amenity-filter-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.advanced-filters-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.btn-secondary {
  background: var(--light-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover {
  background: #e5e7eb;
}

/* ========================================================================= */
/* 5. TARJETAS DE PROPIEDAD — ESTILO ORIGINAL (como funcionaba ayer) */
/* ========================================================================= */
#contenedor-propiedades,
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 20px;
  padding: 1.5rem 0;
}

.property-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid var(--border-color);
  position: relative;
}
.property-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.property-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.property-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 18px;
}
.property-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-color);
}
.property-location {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.property-price {
  font-size: 1.45rem;
  color: var(--primary-color);
  margin-bottom: 14px;
  font-weight: 700;
}
.property-features {
  display: flex;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.property-features span {
  font-weight: 600;
}

/* Badge de estado */
.propiedad-estado-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: white;
  z-index: 3;
}
.estado-venta { background-color: #10B981; }
.estado-arriendo { background-color: #3B82F6; }

/* ========================================================================= */
/* 6. OTROS COMPONENTES */
/* ========================================================================= */
.property-tags {
  margin-top: 30px;
  text-align: left;
  max-width: 1200px;
  margin: 30px auto 0;
  padding: 0 1.5rem;
}
.property-tags h3 {
  font-size: 1.4rem;
  color: var(--text-color);
  margin-bottom: 15px;
  font-weight: 600;
}
.tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag-btn {
  background: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 8px 15px;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.tag-btn:hover, .tag-btn:focus {
  background: #f1f5f9;
  border-color: var(--primary-light);
  color: var(--primary-color);
}
.tag-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.load-more-container {
  margin: 40px 0 60px;
  text-align: center;
}
#botonCargarMas {
  padding: 0.75rem 2rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: var(--shadow-light);
}
#botonCargarMas:hover:not(:disabled) {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
#botonCargarMas:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.no-results {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-secondary);
  grid-column: 1 / -1;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow-light);
}
.no-results a {
  color: var(--primary-color);
  text-decoration: underline;
  margin-top: 1rem;
  display: inline-block;
  font-weight: 600;
}

.palabras-clave-section {
  background-color: #f8fafc;
  padding: 2.5rem 1rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.palabras-clave-section h2 {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 600;
}
.keyword-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.keyword-column {
  flex: 1;
  min-width: 220px;
}
.keyword-column li {
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.whatsapp-float {
  position: fixed;
  width: 62px;
  height: 62px;
  bottom: 24px;
  right: 24px;
  background-color: var(--accent-whatsapp);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 3000;
  transition: all 0.3s ease;
}
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}
.whatsapp-float img {
  width: 38px;
  height: 38px;
}

/* ========================================================================= */
/* 7. DETALLE DE PROPIEDAD */
/* ========================================================================= */
.depando-detail-layout {
  padding-top: 100px;
  max-width: 1400px;
}
.detail-header-depando h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 1rem 0 0.5rem;
  color: var(--text-color);
}
.detail-location {
  font-size: 1.05rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}
/* --- Espaciado entre secciones del detalle --- */
.detail-section {
margin-bottom: 2.5rem; /* Espacio generoso entre secciones */
}

.detail-section:last-child {
margin-bottom: 0; /* No añadir margen después de la última sección */
}

/* --- Espaciado dentro de la sección de características --- */
.amenities-grid {
margin-top: 1rem;
margin-bottom: 1.5rem;
}

/* --- Espaciado para el mapa --- */
.depando-map-container {
height: 300px;
border-radius: 12px;
margin-top: 1.5rem;
margin-bottom: 1.5rem;
}

/* --- Espaciado para el contenedor de características y comodidades --- */
.detail-features-bar {
margin-bottom: 2rem; /* Aumentar el espacio debajo de las características */
}
.depando-detail-content {
  display: flex;
  gap: 2rem;
}
.swiper-hero-detail img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}
.detail-features-bar {
  display: flex;
  gap: 1.2rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.detail-section h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 600;
}
.depando-map-container {
  height: 300px;
  border-radius: 12px;
  margin-top: 1rem;
}
.contact-card-depando-style {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-light);
  position: sticky;
  top: 100px;
}
.price-amount {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.2;
}
.agent-minimal img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 1rem;
}
.amenities-grid div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text-color);
}

/* ========================================================================= */
/* 8. MEDIA QUERIES */
/* ========================================================================= */
@media (max-width: 992px) {
  header {
    padding: 0.9rem 1.2rem;
  }
  .btn-cta-publicar {
    margin: 0 0.8rem;
  }
  .clean-search-card {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
    border-radius: 24px;
  }
  .search-field {
    flex: 1;
    min-width: 120px;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 10px;
  }
  .depando-detail-content {
    flex-direction: column;
  }
  .depando-detail-sidebar {
    width: 100%;
  }
  .contact-card-depando-style {
    position: static;
    top: auto;
    width: auto;
  }
  .swiper-hero-detail img {
    height: 300px;
  }
}
@media (max-width: 768px) {
  .swiper-button-next,
  .swiper-button-prev {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    right: 10px;
    left: 10px;
  }
}
@media (max-width: 576px) {
  .btn-cta-publicar span:not(.btn-arrow) {
    display: none;
  }
  .btn-cta-publicar {
    padding: 0.5rem;
    min-width: 44px;
    justify-content: center;
    margin: 0 0.5rem;
  }
  .clean-search-card {
    flex-direction: column;
    align-items: stretch;
  }
  .search-field {
    border-bottom: 1px solid var(--border-color);
    padding: 14px;
  }
  #contenedor-propiedades,
  .properties-grid {
    grid-template-columns: 1fr;
    padding: 1rem 0;
  }
  .swiper-hero-detail img {
    height: 250px;
  }
  .amenities-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Contenedor para el botón CTA en el header --- */
.header-cta-container {
margin: 0 1rem;
}

/* --- Contenedor principal del header --- */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* --- Lado izquierdo del header (logo + botón CTA) --- */
.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* --- Lado derecho del header (menú + toggle) --- */
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* --- Menú de navegación --- */
nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* --- Menú móvil --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background: var(--card-bg);
  box-shadow: 4px 0 12px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  transition: left 0.3s ease;
  z-index: 2000;
}

.mobile-menu.show {
  left: 0;
}

.mobile-menu a {
  margin: 1.2rem 0;
  font-size: 1.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-color);
}

.mobile-menu a:hover {
  color: var(--primary-color);
}

.mobile-menu .btn-primary {
  color: white !important;
  background-color: var(--primary-color);
  width: 100%;
  text-align: center;
  margin-top: 1.5rem;
  padding: 0.75rem;
  font-size: 1rem;
  text-decoration: none;
  display: block;
  box-shadow: var(--shadow-light);
}

.mobile-menu .btn-primary:hover {
  background-color: var(--primary-light);
  color: white !important;
  transform: none;
  box-shadow: var(--shadow-hover);
}

.mobile-menu .close-btn {
  font-size: 1.5rem;
  align-self: flex-end;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  background: none;
  border: none;
  cursor: pointer;
}

.overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1500;
}

.overlay.show {
  opacity: 1;
  pointer-events: auto;
}
/* --- Contenedor principal del header --- */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* --- Lado izquierdo del header (solo el logo) --- */
.header-left {
  display: flex;
  align-items: center;
}

/* --- Lado derecho del header (botón CTA + menú + botón Ingresar) --- */
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* --- Menú de navegación --- */
nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* --- Estilo para el botón "Publica tu propiedad" en el header --- */
.btn-cta-publicar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 1.4rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-cta-publicar:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
  transition: left 0.5s ease;
  z-index: -1;
}

.btn-cta-publicar:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  color: white;
}

.btn-cta-publicar:hover:before {
  left: 0;
}

.btn-cta-publicar .btn-arrow {
  font-size: 1.1rem;
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.btn-cta-publicar:hover .btn-arrow {
  opacity: 1;
  transform: translateX(3px);
}
/* --- Contenedor principal del header --- */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* --- Lado izquierdo del header (solo el logo) --- */
.header-left {
  display: flex;
  align-items: center;
}

/* --- Lado derecho del header (botón CTA + menú hamburguesa + menú principal) --- */
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* --- Menú de navegación --- */
nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* --- Estilo para el botón "Publica tu propiedad" en el header --- */
.btn-cta-publicar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 1.4rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-cta-publicar:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
  transition: left 0.5s ease;
  z-index: -1;
}

.btn-cta-publicar:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  color: white;
}

.btn-cta-publicar:hover:before {
  left: 0;
}

.btn-cta-publicar .btn-arrow {
  font-size: 1.1rem;
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.btn-cta-publicar:hover .btn-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* --- Menú hamburguesa --- */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-color);
}

/* --- Menú móvil --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background: var(--card-bg);
  box-shadow: 4px 0 12px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  transition: left 0.3s ease;
  z-index: 2000;
}

.mobile-menu.show {
  left: 0;
}

.mobile-menu a {
  margin: 1.2rem 0;
  font-size: 1.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-color);
}

.mobile-menu a:hover {
  color: var(--primary-color);
}

.mobile-menu .btn-primary {
  color: white !important;
  background-color: var(--primary-color);
  width: 100%;
  text-align: center;
  margin-top: 1.5rem;
  padding: 0.75rem;
  font-size: 1rem;
  text-decoration: none;
  display: block;
  box-shadow: var(--shadow-light);
}

.mobile-menu .btn-primary:hover {
  background-color: var(--primary-light);
  color: white !important;
  transform: none;
  box-shadow: var(--shadow-hover);
}

.mobile-menu .close-btn {
  font-size: 1.5rem;
  align-self: flex-end;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  background: none;
  border: none;
  cursor: pointer;
}

.overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1500;
}

.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* --- Media Query para móviles --- */
@media (max-width: 768px) {
  /* Ocultar el menú principal en móviles */
  nav {
    display: none;
  }

  /* Mostrar el menú hamburguesa en móviles */
  .menu-toggle {
    display: block;
  }

  /* Ajustar el botón "Publica tu propiedad" para móviles */
  .btn-cta-publicar {
    padding: 0.5rem;
    min-width: 44px;
    justify-content: center;
    margin: 0 0.5rem;
  }

  /* Ajustar el tamaño del logo en móviles */
  .header-left .brand img {
    height: 36px;
    max-height: 44px;
  }
}
/* --- Estilos para la vista de detalle de propiedad --- */
.depando-detail-layout {
padding-top: 100px;
max-width: 1400px;
}

.detail-header-depando h1 {
font-size: 2rem;
font-weight: 700;
margin: 1rem 0 0.5rem;
color: var(--text-color);
}

.detail-location {
font-size: 1.05rem;
color: var(--text-secondary);
display: flex;
align-items: center;
gap: 6px;
}

.depando-detail-content {
display: flex;
gap: 2rem;
}

.swiper-hero-detail img {
width: 100%;
height: 400px;
object-fit: cover;
display: block;
border-radius: 16px;
}

.detail-features-bar {
display: flex;
gap: 1.2rem;
padding: 0.8rem 0;
border-top: 1px solid var(--border-color);
border-bottom: 1px solid var(--border-color);
margin-bottom: 2rem;
font-size: 0.95rem;
color: var(--text-secondary);
}

.detail-section h2 {
font-size: 1.4rem;
margin-bottom: 1rem;
font-weight: 600;
}

.depando-map-container {
height: 300px;
border-radius: 12px;
margin-top: 1rem;
}

.contact-card-depando-style {
background: white;
border-radius: 16px;
padding: 1.5rem;
box-shadow: var(--shadow-light);
position: sticky;
top: 100px;
}

.price-amount {
display: block;
font-size: 1.8rem;
font-weight: 800;
color: var(--primary-color);
line-height: 1.2;
}

.agent-minimal img {
width: 50px;
height: 50px;
border-radius: 50%;
object-fit: cover;
}

.amenities-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
gap: 12px;
margin-top: 1rem;
}

.amenities-grid div {
display: flex;
align-items: center;
gap: 8px;
font-size: 0.95rem;
color: var(--text-color);
}

/* --- Media Query para móviles --- */
@media (max-width: 768px) {
.depando-detail-content {
flex-direction: column;
}
.depando-detail-sidebar {
width: 100%;
}
.contact-card-depando-style {
position: static;
top: auto;
width: auto;
}
.swiper-hero-detail img {
height: 300px;
}
}
/* --- Estilos para la sección de contacto en detalle de propiedad --- */

.contact-card-depando-style {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-light);
  position: sticky;
  top: 100px;
}

.price-tag-depando {
  text-align: center;
  margin-bottom: 1.5rem;
}

.price-amount {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.2;
}

.price-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.contact-form-minimal {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.btn-full-width {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  text-align: center;
  display: block;
}

.agent-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.agent-avatar img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.agent-info {
  flex: 1;
}

.agent-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

.agent-contact {
  margin: 0.5rem 0;
}

.agent-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.9rem;
}

.agent-phone:hover {
  color: var(--primary-color);
}

.agent-brokerage {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.agent-brokerage i {
  color: var(--text-secondary);
}
/* --- Layout de detalle de propiedad --- */
.depando-detail-content {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

/* --- Contenido principal (propiedad) --- */
.depando-detail-main {
  flex: 1;
  min-width: 0; /* Para evitar desbordamientos */
}

/* --- Panel de contacto (más estrecho) --- */
.depando-detail-sidebar {
  width: 320px;
  flex-shrink: 0;
}

/* --- Media Query para tablet y móvil --- */
@media (max-width: 992px) {
  .depando-detail-content {
    flex-direction: column;
  }
  .depando-detail-main {
    width: 100%;
  }
  .depando-detail-sidebar {
    width: 100%;
    margin-top: 2rem;
  }
}

/* --- Media Query para móviles pequeños --- */
@media (max-width: 576px) {
  .depando-detail-content {
    gap: 1rem;
  }
  .depando-detail-main {
    padding: 0;
  }
  .depando-detail-sidebar {
    margin-top: 1.5rem;
  }
}
/* --- Sección "Cómo Funciona" --- */
.how-it-works-section {
  padding: 4rem 0;
  background-color: #f9fafb;
  text-align: center;
}

.how-it-works-section h2 {
  font-size: 2.5rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.how-it-works-section .subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.step-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.step-icon {
  width: 70px;
  height: 70px;
  background: #e0e7ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--primary-color);
  font-size: 1.8rem;
}

.step-card h3 {
  font-size: 1.3rem;
  color: var(--text-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.step-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
/* --- Filtros especiales (siempre visibles) --- */
.special-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 20px auto 30px;
  max-width: 1200px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 30px;
  color: var(--text-color);
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  background: #e5e7eb;
  border-color: var(--primary-light);
  color: var(--primary-color);
}

.filter-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.filter-btn i {
  font-size: 1.1rem;
}

/* Badge "NEW" */
.badge-new {
  background: #10b981;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 6px;
}

/* Media Query para móviles */
@media (max-width: 768px) {
  .special-filters-row {
    gap: 8px;
    margin: 15px auto 25px;
  }
  .filter-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
}

/* --- Slider de banners --- */
.banner-slider-section {
  padding: 0;
  margin: 0;
  width: 100%;
  overflow: hidden;
}

.banner-slider-container {
  max-width: 100%;
  margin: 0 auto;
}

.banner-swiper {
  width: 100%;
  height: auto;
}

.banner-swiper img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.banner-link {
  display: block;
  width: 100%;
  height: 100%;
}

/* Paginación del slider */
.swiper-pagination {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  opacity: 1;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: white;
  width: 12px;
  height: 12px;
}

/* Media Query para móviles */
@media (max-width: 768px) {
  .banner-swiper img {
    height: 200px;
    object-fit: cover;
  }
  .swiper-pagination {
    bottom: 8px;
  }
  .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
  }
  .swiper-pagination-bullet-active {
    width: 8px;
    height: 8px;
  }
}

/* --- Slider de banners --- */
.banner-slider-section {
  padding: 0;
  margin: 0;
  width: 100%;
  overflow: hidden;
}

.banner-slider-container {
  max-width: 100%;
  margin: 0 auto;
}

.banner-swiper {
  width: 100%;
  height: auto;
}

.banner-swiper img {
  width: 100%;
  height: auto;
  object-fit: contain; /* Para mostrar la imagen completa sin recortes */
  display: block;
  border-radius: 0;
}

.banner-link {
  display: block;
  width: 100%;
  height: 100%;
}

/* === Flechas del Swiper (responsive) === */
/* === Flechas del Swiper (responsive) === */
.swiper-button-next,
.swiper-button-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a5568;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: #4a5568;
  color: white;
  border-color: #4a5568;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.swiper-button-next {
  right: 10px;
}

.swiper-button-prev {
  left: 10px;
}

/* Media Query para móviles */
@media (max-width: 768px) {
  .swiper-button-next,
  .swiper-button-prev {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
    right: 8px;
    left: 8px;
  }
}
/* === Contenedor del Swiper === */
.swiper-hero-detail {
  position: relative;
  width: 100%;
  height: auto;
  margin-bottom: 2rem;
}
/* Paginación del slider */
.swiper-pagination {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  opacity: 1;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: white;
  width: 12px;
  height: 12px;
}

/* Media Query para móviles */
@media (max-width: 768px) {
  .banner-swiper img {
    height: 200px;
    object-fit: contain;
  }
  .swiper-button-next,
  .swiper-button-prev {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    right: 10px;
    left: 10px;
  }
  .swiper-pagination {
    bottom: 8px;
  }
  .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
  }
  .swiper-pagination-bullet-active {
    width: 8px;
    height: 8px;
  }
}
/* --- Slider de banners --- */
.banner-slider-section {
  padding: 0;
  margin: 0;
  width: 100%;
  overflow: hidden;
}

.banner-slider-container {
  max-width: 100%;
  margin: 0 auto;
}

.banner-swiper {
  width: 100%;
  height: auto;
}

.banner-swiper img {
  width: 100%;
  height: auto;
  object-fit: contain; /* Para mostrar la imagen completa sin recortes */
  display: block;
  border-radius: 0;
}

.banner-link {
  display: block;
  width: 100%;
  height: 100%;
}

/* Flechas de navegación */
.swiper-button-next,
.swiper-button-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.swiper-button-next {
  right: 20px;
}

.swiper-button-prev {
  left: 20px;
}

/* Media Query para móviles */
@media (max-width: 768px) {
  .banner-swiper img {
    height: 200px;
    object-fit: contain;
  }
  .swiper-button-next,
  .swiper-button-prev {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    right: 10px;
    left: 10px;
  }
  .swiper-pagination {
    bottom: 8px;
  }
  .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
  }
  .swiper-pagination-bullet-active {
    width: 8px;
    height: 8px;
  }
}
/* === LIGHTBOX === */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border: 2px solid white;
  border-radius: 4px;
  background: #fff;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  z-index: 10001;
  line-height: 1;
}

.lightbox-nav {
  position: absolute;
  bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
}

.lightbox-nav button {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav button:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* === FLECHAS DEL LIGHTBOX === */
.lightbox-nav {
  position: absolute;
  bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
}

.lightbox-btn {
  background: rgba(255, 255, 255, 0.9);
  color: #4a5568;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.lightbox-btn:hover {
  background: #4a5568;
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.lightbox-btn-prev {
  margin-left: 10px;
}

.lightbox-btn-next {
  margin-right: 10px;
}
/* En tu styles.css */
.hero-emocional {
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
              url('../../img/home.jpg') center/cover no-repeat;
  color: white;
  padding: 80px 0 60px;
  text-align: center;
  margin-bottom: 40px;
}

.hero-emocional .hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 0;
}

.hero-emocional .hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-emocional h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-emocional .hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 28px;
}

.hero-emocional .hero-search-form {
  background: white;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  max-width: 700px;
  margin: 0 auto 20px;
}

.hero-emocional .hero-search-form .search-field {
  flex: 1;
  min-width: 180px;
}

.hero-emocional .search-submit-btn {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 24px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s;
}

.hero-emocional .search-submit-btn:hover {
  opacity: 0.9;
}

.hero-emocional .trust-note {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-top: 12px;
}

/* Asegura que los filtros se vean bien en móvil */
@media (max-width: 768px) {
  .hero-emocional h1 { font-size: 1.8rem; }
  .hero-emocional .hero-search-form { padding: 16px; }
}
.value-prop-bar {
  background: linear-gradient(135deg, #f0f5ff 0%, #e6f0ff 100%);
}

/* ========================================================================= */
/* HERO EMOCIONAL — Versión centrada en el usuario final */
/* ========================================================================= */
.hero-emocional {
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
              url('../../img/home.jpg') center/cover no-repeat;
  color: white;
  padding: 120px 0 70px;
  text-align: center;
  margin-bottom: 40px;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 0;
}

.hero-emocional .hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-emocional h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.2;
}

.hero-emocional .hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.95;
  margin: 0 0 28px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* Buscador dentro del hero */
.hero-emocional .hero-search-form {
  background: white;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  max-width: 700px;
  margin: 0 auto 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-emocional .hero-search-form .search-field {
  flex: 1;
  min-width: 160px;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 12px;
  background: #f8fafc;
}

.hero-emocional .hero-search-form .search-field .icon-placeholder {
  margin-right: 10px;
  font-size: 1.1rem;
  color: var(--primary-color);
}

.hero-emocional .hero-search-form .input-group label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.hero-emocional .hero-search-form select {
  border: none;
  background: transparent;
  font-size: 0.95rem;
  outline: none;
  width: 100%;
}

.hero-emocional .search-submit-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  min-width: 140px;
  text-align: center;
}

.hero-emocional .search-submit-btn:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.hero-emocional .trust-note {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ========================================================================= */
/* RESPONSIVE — HERO EMOCIONAL */
/* ========================================================================= */
@media (max-width: 768px) {
  .hero-emocional {
    padding: 100px 0 60px;
  }
  .hero-emocional h1 {
    font-size: 1.9rem;
  }
  .hero-emocional .hero-subtitle {
    font-size: 1rem;
  }
  .hero-emocional .hero-search-form {
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
  }
  .hero-emocional .hero-search-form .search-field {
    width: 100%;
    min-width: auto;
  }
  .hero-emocional .search-submit-btn {
    padding: 14px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-emocional {
    padding: 90px 0 50px;
  }
  .hero-emocional h1 {
    font-size: 1.6rem;
  }
  .hero-emocional .hero-subtitle {
    font-size: 0.95rem;
  }
}

/* ========================================================================= */
/* HERO EMOCIONAL — Versión centrada en el usuario final */
/* ========================================================================= */
.hero-emocional {
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
              url('../../img/home.jpg') center/cover no-repeat;
  color: white;
  padding: 120px 0 70px; /* ← Aumentado de 80px a 120px para compensar header fijo */
  text-align: center;
  margin-bottom: 40px;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 0;
}

.hero-emocional .hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-emocional h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.2;
}

.hero-emocional .hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.95;
  margin: 0 0 28px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* Buscador dentro del hero */
.hero-emocional .hero-search-form {
  background: white;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  max-width: 700px;
  margin: 0 auto 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-emocional .hero-search-form .search-field {
  flex: 1;
  min-width: 160px;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 12px;
  background: #f8fafc;
}

.hero-emocional .hero-search-form .search-field .icon-placeholder {
  margin-right: 10px;
  font-size: 1.1rem;
  color: var(--primary-color);
}

.hero-emocional .hero-search-form .input-group label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.hero-emocional .hero-search-form select {
  border: none;
  background: transparent;
  font-size: 0.95rem;
  outline: none;
  width: 100%;
}

.hero-emocional .search-submit-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  min-width: 140px;
  text-align: center;
}

.hero-emocional .search-submit-btn:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.hero-emocional .trust-note {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ========================================================================= */
/* RESPONSIVE — HERO EMOCIONAL */
/* ========================================================================= */
@media (max-width: 768px) {
  .hero-emocional {
    padding: 100px 0 60px; /* Ajuste para móvil */
  }
  .hero-emocional h1 {
    font-size: 1.9rem;
  }
  .hero-emocional .hero-subtitle {
    font-size: 1rem;
  }
  .hero-emocional .hero-search-form {
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
  }
  .hero-emocional .hero-search-form .search-field {
    width: 100%;
    min-width: auto;
  }
  .hero-emocional .search-submit-btn {
    padding: 14px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-emocional {
    padding: 90px 0 50px; /* Ajuste para móviles pequeños */
  }
  .hero-emocional h1 {
    font-size: 1.6rem;
  }
  .hero-emocional .hero-subtitle {
    font-size: 0.95rem;
  }
}
/* === GALERÍA TIPO DEPANDO === */
.gallery-depando-style {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Miniaturas verticales */
.gallery-thumbnails {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 120px;
}

.thumbnail {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.thumbnail:hover,
.thumbnail.active {
  border-color: var(--primary-color);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Imagen principal */
.main-image-wrapper {
  position: relative;
  flex: 1;
  min-width: 0;
}

.main-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  cursor: pointer;
}

/* Botón "Ver fotos" solo en móvil */
.btn-ver-fotos-mobile {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}

.btn-ver-fotos-mobile:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* === DESKTOP: mostrar miniaturas === */
@media (min-width: 992px) {
  .gallery-thumbnails {
    display: flex;
  }
  .btn-ver-fotos-mobile {
    display: none;
  }
}

/* === MÓVIL: ocultar miniaturas, imagen más chica === */
@media (max-width: 991px) {
  .main-image {
    height: 300px;
  }
}