:root {
  --brand: #2e6db4;
  --brand-dark: #1a2f4a;
  --brand-light: #4ba3e8;
  --brand-soft: #eff6fc;
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; }
.glass { background: rgba(255,255,255,.88); backdrop-filter: blur(10px); }
.shadow-soft { box-shadow: 0 10px 30px rgba(2,132,199,.12); }
input[type=file] { display:none; }
.leaflet-container { font-family: inherit; border-radius: 1rem; z-index: 0; }
img[loading="lazy"] { content-visibility: auto; }
.line-clamp-1 { overflow:hidden; display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; }

/* Logo horizontal — escala por altura para mantener proporción */
.site-logo {
  display: block;
  width: auto;
  height: 3.25rem;
  max-width: min(52vw, 11.5rem);
}
@media (min-width: 768px) {
  .site-logo {
    height: 4rem;
    max-width: none;
  }
}
.site-logo--footer {
  height: 2.75rem;
  max-width: min(48vw, 10rem);
}
@media (min-width: 768px) {
  .site-logo--footer {
    height: 3.25rem;
    max-width: 11rem;
  }
}
.site-logo--header {
  height: 2.875rem;
  max-width: min(50vw, 10.5rem);
}
@media (min-width: 768px) {
  .site-logo--header {
    height: 3.5rem;
    max-width: none;
  }
}

/* Hero home — fondo imagen */
.hero-home {
  position: relative;
  overflow: visible;
}
.hero-home__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-home__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(248, 250, 252, 0.82) 0%,
    rgba(255, 255, 255, 0.88) 55%,
    rgba(255, 255, 255, 0.94) 100%
  );
  pointer-events: none;
}
.hero-home__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Barra de búsqueda hero — estilo píldora con autocompletado */
.hero-search-pill {
  display: flex;
  align-items: stretch;
  position: relative;
  z-index: 30;
  overflow: visible;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  border-radius: 9999px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.25);
  padding: 6px;
  gap: 0;
}
.hero-search-pill__field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 0.35rem 1rem;
}
.hero-search-pill__field label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
  line-height: 1;
}
.hero-search-pill__field select,
.hero-search-pill__field input {
  margin-top: 0.25rem;
  width: 100%;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
  padding: 0;
}
.hero-search-pill__field--select {
  position: relative;
  z-index: 35;
}
.hero-search-pill__field--select.is-open {
  z-index: 45;
}
.hero-search-pill__field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 1.25rem;
}
.hero-search-pill__field select option { color: #0f172a; }
.pill-select {
  position: relative;
  margin-top: 0.25rem;
  width: 100%;
}
.pill-select__native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.pill-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  min-height: 1.35rem;
  padding: 0 1.35rem 0 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}
.pill-select__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pill-select__chevron {
  position: absolute;
  right: 0;
  top: 50%;
  width: 0.85rem;
  height: 0.85rem;
  margin-top: -0.425rem;
  color: #94a3b8;
  transition: transform 0.2s ease;
}
.hero-search-pill__field--select.is-open .pill-select__chevron {
  transform: rotate(180deg);
}
.pill-select__menu {
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
  max-height: 16rem;
  overflow-y: auto;
}
.pill-select__menu.is-fixed {
  position: fixed;
  z-index: 9999;
}
.pill-select__option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.pill-select__option-text {
  flex: 1;
  min-width: 0;
}
.pill-select__check {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  color: #2563eb;
}
.pill-select__option:hover,
.pill-select__option.is-active {
  background: #f0f9ff;
  color: #0369a1;
}
.pill-select__option.is-selected {
  background: #eff6ff;
  color: #1d4ed8;
}
.pill-select__option.is-selected:hover {
  background: #dbeafe;
}
.hero-search-pill__field--location { flex: 1 1 12rem; position: relative; overflow: visible; z-index: 40; }
.hero-search-pill__field--location input::placeholder { color: rgba(148, 163, 184, 0.8); }
.hero-search-pill__divider {
  width: 1px;
  align-self: stretch;
  background: rgba(148, 163, 184, 0.25);
  margin: 0.65rem 0;
  flex-shrink: 0;
}
.hero-search-pill__btn {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  margin: auto 0.15rem auto 0.35rem;
  border-radius: 9999px;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.hero-search-pill__btn:hover { background: var(--brand-dark); }
.location-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.5rem);
  z-index: 200;
  max-height: 16rem;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.15);
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
}
.location-suggestions.is-fixed {
  position: fixed;
  right: auto;
  top: auto;
  z-index: 9999;
}
.location-suggestion {
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  color: #334155;
  cursor: pointer;
  line-height: 1.35;
}
.location-suggestion:hover,
.location-suggestion.is-active {
  background: #f0f9ff;
  color: #0369a1;
}
#publicar .location-suggestions {
  z-index: 80;
}
@media (max-width: 767px) {
  .hero-search-pill {
    flex-direction: column;
    border-radius: 1.25rem;
    padding: 0.75rem;
  }
  .hero-search-pill__divider { display: none; }
  .hero-search-pill__field { padding: 0.5rem 0.75rem; }
  .hero-search-pill__field input,
  .pill-select__trigger {
    background: rgba(255,255,255,0.06);
    border-radius: 0.75rem;
    padding: 0.5rem 0.75rem;
    padding-right: 2rem;
  }
  .hero-search-pill__btn {
    width: 100%;
    height: auto;
    margin: 0.35rem 0 0;
    border-radius: 0.85rem;
    padding: 0.75rem;
    gap: 0.5rem;
    font-weight: 600;
  }
  .hero-search-pill__btn-text { display: inline; }
}
@media (min-width: 768px) {
  .hero-search-pill__btn-text { display: none; }
}

/* Input teléfono con código de país */
.phone-input {
  position: relative;
}
.phone-input__group {
  display: flex;
  align-items: stretch;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
}
.phone-input__group:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(46, 109, 180, 0.12);
}
.phone-input__country {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0 0.6rem;
  border: 0;
  border-right: 1px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 0.875rem;
  color: #334155;
}
.phone-input__country:hover { background: #f1f5f9; }
.phone-input__flag { font-size: 1.15rem; line-height: 1; }
.phone-input__code { font-weight: 600; font-size: 0.8rem; white-space: nowrap; }
.phone-input__chevron { width: 0.75rem; height: 0.75rem; opacity: 0.45; flex-shrink: 0; }
.phone-input__number {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0.5rem 0.75rem;
  font-size: inherit;
  outline: none;
  background: transparent;
}
.phone-input__list {
  position: absolute;
  left: 0;
  top: calc(100% + 0.35rem);
  z-index: 120;
  width: 100%;
  max-width: 15rem;
  max-height: 12rem;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
}
.phone-input__option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
}
.phone-input__option:hover,
.phone-input__option.is-active { background: #f0f9ff; }
.phone-input__option-flag { font-size: 1.1rem; line-height: 1; }
.phone-input__option-name {
  flex: 1;
  min-width: 0;
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.phone-input__option-dial {
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.phone-input__list.is-fixed {
  position: fixed;
  z-index: 9999;
  top: auto;
  left: auto;
  width: auto;
  min-width: 0;
  max-width: 15rem;
}

/* Descripción colapsable — ficha de propiedad */
.desc-expand__body {
  position: relative;
}
.desc-expand__body--collapsed {
  max-height: 9.5rem;
  overflow: hidden;
}
.desc-expand__body--collapsed::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3rem;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
}
.desc-expand__body.is-expanded {
  max-height: none;
}
.desc-expand__body.is-expanded::after {
  display: none;
}
.desc-expand__toggle {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
}
.desc-expand__toggle:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

/* Galería — ficha de propiedad */
.property-gallery__main {
  position: relative;
  height: 18rem;
  background: #0f172a;
}
@media (min-width: 768px) {
  .property-gallery__main { height: 24rem; }
}
.property-gallery__zoom {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.property-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.property-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.18);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.property-gallery__nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}
.property-gallery__nav svg { width: 1.25rem; height: 1.25rem; }
.property-gallery__nav--prev { left: 0.75rem; }
.property-gallery__nav--next { right: 0.75rem; }
.property-gallery__counter {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}
.property-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.25rem;
  padding: 0.5rem;
  background: #fff;
  border-top: 1px solid #e2e8f0;
}
@media (min-width: 640px) {
  .property-gallery__thumbs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.property-gallery__thumb {
  border-radius: 0.5rem;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: #f8fafc;
}
.property-gallery__thumb.is-active,
.property-gallery__thumb:hover {
  border-color: var(--brand);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-lightbox.hidden { display: none !important; }
.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.92);
  opacity: 0;
  transition: opacity 0.32s ease;
}
.gallery-lightbox.is-open .gallery-lightbox__backdrop {
  opacity: 1;
}
.gallery-lightbox__stage {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 72rem);
  max-height: 88vh;
  padding: 3rem 3.5rem;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1), transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-lightbox.is-open .gallery-lightbox__stage {
  opacity: 1;
  transform: scale(1);
}
.gallery-lightbox__close,
.gallery-lightbox__nav,
.gallery-lightbox__counter {
  opacity: 0;
  transition: opacity 0.28s ease 0.08s;
}
.gallery-lightbox.is-open .gallery-lightbox__close,
.gallery-lightbox.is-open .gallery-lightbox__nav,
.gallery-lightbox.is-open .gallery-lightbox__counter {
  opacity: 1;
}
.gallery-lightbox__img {
  max-width: 100%;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}
.gallery-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}
.gallery-lightbox__close:hover { background: rgba(255, 255, 255, 0.22); }
.gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.gallery-lightbox__nav:hover { background: rgba(255, 255, 255, 0.24); }
.gallery-lightbox__nav svg { width: 1.5rem; height: 1.5rem; }
.gallery-lightbox__nav--prev { left: 1rem; }
.gallery-lightbox__nav--next { right: 1rem; }
.gallery-lightbox__counter {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 2;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
}

#filtersDrawer form {
  overflow: visible;
}
#filtersDrawer .relative {
  overflow: visible;
}

.filter-price {
  padding: 0.85rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
}
.filter-price__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}
.filter-price__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
}
.filter-price__currency {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #e2e8f0;
}
.filter-price__row {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}
.filter-price__field {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.filter-price__hint {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #94a3b8;
}
.filter-price__input-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.65rem;
  min-height: 2.5rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.filter-price__input-wrap:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(46, 109, 180, 0.12);
}
.filter-price__prefix {
  font-size: 0.875rem;
  font-weight: 700;
  color: #64748b;
  flex-shrink: 0;
}
.filter-price__input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0.45rem 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
  outline: none;
  -moz-appearance: textfield;
}
.filter-price__input::-webkit-outer-spin-button,
.filter-price__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.filter-price__input::placeholder {
  color: #cbd5e1;
  font-weight: 500;
}
.filter-price__sep {
  flex-shrink: 0;
  width: 0.75rem;
  height: 1px;
  background: #cbd5e1;
  margin-bottom: 1.15rem;
  position: relative;
}
.filter-price__sep::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 9999px;
  background: #cbd5e1;
}

/* Modal de confirmación */
.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.confirm-modal.hidden { display: none !important; }
.confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.confirm-modal.is-open .confirm-modal__backdrop {
  opacity: 1;
}
.confirm-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 24rem);
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1), transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.confirm-modal.is-open .confirm-modal__panel {
  opacity: 1;
  transform: none;
}
.confirm-modal__title {
  font-size: 1.125rem;
  font-weight: 800;
  color: #0f172a;
}
.confirm-modal__msg {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #64748b;
}
.confirm-modal__actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.25rem;
}
.confirm-modal__btn {
  flex: 1;
  padding: 0.65rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.confirm-modal__btn--cancel {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
}
.confirm-modal__btn--cancel:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}
.confirm-modal__btn--ok {
  border: 0;
  color: #fff;
}
.confirm-modal__btn--primary { background: var(--brand); }
.confirm-modal__btn--primary:hover { background: var(--brand-dark); }
.confirm-modal__btn--warning { background: #d97706; }
.confirm-modal__btn--warning:hover { background: #b45309; }
.confirm-modal__btn--danger { background: #e11d48; }
.confirm-modal__btn--danger:hover { background: #be123c; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #94a3b8;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 1.25rem 0;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.auth-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 4.5rem);
  padding: 1.5rem 1rem 2.5rem;
  background: linear-gradient(180deg, #eff6fc 0%, #f8fafc 100%);
}
.auth-page__layout {
  width: 100%;
  max-width: 26rem;
}
.auth-page__brand {
  display: none;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #1a2f4a 0%, #245990 45%, #2e6db4 100%);
  color: #fff;
}
@media (min-width: 960px) {
  .auth-page__layout {
    display: flex;
    align-items: stretch;
    max-width: 52rem;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.1);
  }
  .auth-page__brand {
    display: flex;
    flex: 0 0 17.5rem;
    width: 17.5rem;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
  }
}
.auth-page__brand-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}
.auth-page__brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(75, 163, 232, 0.35), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08), transparent 40%);
  pointer-events: none;
}
.auth-page__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.auth-page__title {
  margin-top: 0.65rem;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
}
.auth-page__lead {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}
.auth-page__benefits {
  margin-top: 1.35rem;
  display: grid;
  gap: 0.75rem;
}
.auth-page__benefit {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
}
.auth-page__benefit-icon {
  flex-shrink: 0;
  width: 1.85rem;
  height: 1.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  color: #b7d1ef;
}
.auth-page__benefit-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}
.auth-page__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
}
@media (min-width: 960px) {
  .auth-page__panel {
    flex: 1;
    min-width: 0;
    padding: 2rem 2.25rem 2rem 1.75rem;
    background: #fff;
  }
}
.auth-card {
  width: 100%;
  max-width: 26rem;
  background: #fff;
  border-radius: 1.5rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}
@media (min-width: 960px) {
  .auth-card {
    max-width: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}
.auth-card__head {
  padding: 1.75rem 1.75rem 0;
  text-align: center;
}
.auth-card__head h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
}
.auth-card__head p {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: #64748b;
}
.auth-card__alert {
  margin: 1rem 1.75rem 0;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  font-size: 0.875rem;
  line-height: 1.45;
}
.auth-card__alert--error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.auth-card__alert--success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.auth-tabs {
  display: flex;
  margin-top: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}
.auth-tab {
  flex: 1;
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.auth-tab:hover {
  color: #334155;
}
.auth-tab--active {
  color: #245990;
  border-bottom-color: #2e6db4;
}
.auth-card__body {
  padding: 1.5rem 1.75rem 1.75rem;
}
.auth-form {
  display: grid;
  gap: 1rem;
}
.auth-form.hidden {
  display: none;
}
.auth-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
}
.auth-field input {
  margin-top: 0.35rem;
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-field input:focus {
  outline: none;
  border-color: #4ba3e8;
  box-shadow: 0 0 0 3px rgba(46, 109, 180, 0.15);
}
.auth-submit {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0.85rem;
  background: #2e6db4;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.auth-submit:hover {
  background: #245990;
}
.auth-submit:active {
  transform: scale(0.99);
}
.auth-footnote {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.8125rem;
  color: #64748b;
}
.auth-footnote a {
  color: #245990;
  font-weight: 600;
  text-decoration: none;
}
.auth-footnote a:hover {
  text-decoration: underline;
}
.auth-legal {
  font-size: 0.75rem;
  line-height: 1.5;
  color: #64748b;
}
.auth-legal a {
  color: #245990;
  text-decoration: underline;
}
.auth-google__hint {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
}

.account-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  border-radius: 9999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.account-tab:hover {
  border-color: #94a3b8;
  color: #1e293b;
}
.account-tab--active {
  border-color: #2e6db4;
  background: #eff6fc;
  color: #245990;
}

.publish-loading {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(6px);
}
.publish-loading.hidden {
  display: none;
}
.publish-loading__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 2rem 2.25rem;
  border-radius: 1.25rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
  color: #334155;
  text-align: center;
  max-width: min(90vw, 22rem);
}
.publish-loading__title {
  font-size: 1.125rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}
.publish-loading__sub {
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}
.publish-loading__spinner {
  width: 3rem;
  height: 3rem;
  border: 4px solid #dbe8f7;
  border-top-color: #2e6db4;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
body.is-publishing {
  overflow: hidden;
}
body.modal-open {
  overflow: hidden;
}
#btnSubmitAnuncio.is-loading {
  opacity: 0.85;
  cursor: wait;
}

.consult-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  transition: opacity 0.15s ease;
}
.consult-form__submit.is-loading {
  opacity: 0.85;
  cursor: wait;
}
.consult-form__submit.is-loading::before {
  content: '';
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: consult-form-spin 0.7s linear infinite;
}
@keyframes consult-form-spin {
  to { transform: rotate(360deg); }
}
.consult-form__status {
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
}
.consult-form__status.hidden {
  display: none;
}
.consult-form__status--ok {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}
.consult-form__status--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

/* Modal publicar anuncio */
.publish-modal.hidden { display: none !important; }
.publish-modal:not(.hidden) { display: block; }
.publish-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.32s ease;
}
.publish-modal.is-open .publish-modal__backdrop {
  opacity: 1;
}
.publish-modal__viewport {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}
@media (min-width: 768px) {
  .publish-modal__viewport {
    align-items: center;
    padding: 1.5rem;
  }
}
.publish-modal__dialog {
  width: 100%;
  max-width: 42rem;
  margin: 0.5rem 0 1.5rem;
  background: #fff;
  border-radius: 1.5rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: min(92vh, 900px);
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  transition: opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1), transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
.publish-modal.is-open .publish-modal__dialog {
  opacity: 1;
  transform: none;
}
@media (min-width: 768px) {
  .publish-modal__dialog {
    margin: 0;
  }
}
.publish-modal__header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.25rem 1.25rem 1rem;
  background: linear-gradient(135deg, var(--brand-soft) 0%, #fff 55%);
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}
.publish-modal__header-icon {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  background: var(--brand);
  color: #fff;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.publish-modal__header-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}
@media (min-width: 640px) {
  .publish-modal__header-icon { display: flex; }
}
.publish-modal__header-text {
  flex: 1;
  min-width: 0;
}
.publish-modal__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}
.publish-modal__title {
  margin-top: 0.15rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}
@media (min-width: 640px) {
  .publish-modal__title { font-size: 1.4rem; }
}
.publish-modal__subtitle {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.45;
}
.publish-modal__close {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.8);
  color: #64748b;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.publish-modal__close:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.publish-modal__close svg {
  width: 1.1rem;
  height: 1.1rem;
}
.publish-modal__form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.publish-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem 0.5rem;
  scroll-behavior: smooth;
}
.publish-modal__section {
  border: 0;
  margin: 0 0 1.25rem;
  padding: 1rem;
  border-radius: 1rem;
  background: #f8fafc;
  border: 1px solid #eef2f6;
}
.publish-modal__section:last-child {
  margin-bottom: 0.75rem;
}
.publish-modal__section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}
.publish-modal__section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}
.publish-modal__grid {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 640px) {
  .publish-modal__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.publish-modal__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.publish-modal__field--full {
  grid-column: 1 / -1;
}
.publish-modal__field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
}
.publish-modal__label-muted {
  font-weight: 500;
  color: #94a3b8;
}
.publish-modal__input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  background: #fff;
  font-size: 0.9rem;
  color: #0f172a;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.publish-modal__input::placeholder {
  color: #94a3b8;
}
.publish-modal__input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(46, 109, 180, 0.12);
}
.publish-modal__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.25rem;
}
.publish-modal__input-prefix {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.publish-modal__input-prefix:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(46, 109, 180, 0.12);
}
.publish-modal__input-prefix > span {
  padding: 0 0 0 0.85rem;
  font-weight: 600;
  color: #64748b;
  font-size: 0.9rem;
}
.publish-modal__input-prefix .publish-modal__input {
  border: 0;
  box-shadow: none;
  padding-left: 0.35rem;
}
.publish-modal__input-prefix .publish-modal__input:focus {
  box-shadow: none;
}
.publish-modal__input--center {
  text-align: center;
  font-weight: 600;
}
.publish-modal__textarea {
  resize: vertical;
  min-height: 5.5rem;
  line-height: 1.5;
}
.publish-modal__hint {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
}
.publish-modal__hint--top {
  margin-top: 0;
  margin-bottom: 0.75rem;
}
.publish-modal__map {
  margin-top: 0.25rem;
  height: 11rem;
  border-radius: 0.85rem;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}
@media (min-width: 640px) {
  .publish-modal__map { height: 12.5rem; }
}
.publish-modal__specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
@media (min-width: 640px) {
  .publish-modal__specs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.publish-modal__spec {
  padding: 0.65rem 0.5rem;
  border-radius: 0.85rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  text-align: center;
}
.publish-modal__spec label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}
.publish-modal__amenity-row {
  display: flex;
  gap: 0.5rem;
}
.publish-modal__amenity-row .publish-modal__input {
  flex: 1;
  min-width: 0;
}
.publish-modal__btn-add {
  flex-shrink: 0;
  padding: 0 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  background: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.publish-modal__btn-add:hover {
  background: var(--brand-soft);
  border-color: var(--brand-light);
}
.publish-modal__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
  min-height: 0;
}
.publish-modal__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #dbe8f7;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--brand-dark);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.publish-modal__chip:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}
.publish-modal__chip-x {
  font-size: 0.95rem;
  line-height: 1;
  opacity: 0.6;
}
.publish-modal__upload {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.85rem;
  border: 2px dashed #cbd5e1;
  background: #fff;
  transition: border-color 0.15s, background 0.15s;
}
.publish-modal__upload:has(#previews:not(:empty)) {
  border-style: solid;
  border-color: #dbe8f7;
  background: var(--brand-soft);
}
.publish-modal__previews {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
}
.publish-modal__previews:empty {
  display: none;
}
.publish-modal__preview-wrap {
  position: relative;
  flex-shrink: 0;
}
.publish-modal__preview {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  object-fit: cover;
  border-radius: 0.65rem;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}
.publish-modal__preview-remove {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
  transition: background 0.15s, transform 0.1s;
}
.publish-modal__preview-remove:hover {
  background: #be123c;
  transform: scale(1.06);
}
.publish-modal__upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 0.75rem;
  background: var(--brand);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.publish-modal__upload-btn:hover {
  background: var(--brand-dark);
}
.publish-modal__upload-btn svg {
  width: 1rem;
  height: 1rem;
}
.publish-modal .phone-input__group {
  border-radius: 0.75rem;
}
.publish-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid #e2e8f0;
  background: #fff;
  flex-shrink: 0;
}
.publish-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
  min-width: 6.5rem;
}
.publish-modal__btn--ghost {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
}
.publish-modal__btn--ghost:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #94a3b8;
}
.publish-modal__btn--primary {
  border: 0;
  background: var(--brand);
  color: #fff;
  min-width: 9.5rem;
  box-shadow: 0 8px 20px rgba(46, 109, 180, 0.25);
}
.publish-modal__btn--primary:hover:not(:disabled) {
  background: var(--brand-dark);
}
.publish-modal__btn--primary svg {
  width: 1rem;
  height: 1rem;
}
.publish-modal__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  .publish-modal__backdrop,
  .publish-modal__dialog,
  .confirm-modal__backdrop,
  .confirm-modal__panel,
  .gallery-lightbox__backdrop,
  .gallery-lightbox__stage,
  .gallery-lightbox__close,
  .gallery-lightbox__nav,
  .gallery-lightbox__counter {
    transition: none !important;
  }
}

.preview-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(90deg, #fef3c7, #fde68a);
  border-bottom: 1px solid #f59e0b;
  color: #92400e;
  font-size: 0.875rem;
  text-align: center;
}
.preview-banner__link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: #059669;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.8125rem;
  text-decoration: none;
}
.preview-banner__link--muted {
  background: #fff;
  color: #92400e !important;
  border: 1px solid #f59e0b;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  border: 1px solid #dadce0;
  border-radius: 12px;
  background: #fff;
  color: #3c4043;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s;
}
.btn-google:hover {
  background: #f8f9fa;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.15);
}
.btn-google--setup {
  opacity: 0.92;
}
.btn-google__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Tarjeta de propiedad — estilo listado */
.property-card {
  position: relative;
  background: #fff;
  border-radius: 0.85rem;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.07);
  transition: box-shadow 0.2s;
  height: 100%;
}
.property-card:hover {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.11);
}
.property-card__media {
  position: relative;
  aspect-ratio: 16 / 11;
  background: #f1f5f9;
  overflow: hidden;
}
.property-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.property-card:hover .property-card__img { transform: scale(1.02); }
.property-card__badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem 0.2rem 0.2rem;
  border-radius: 9999px;
  background: #fff;
  color: #0f172a;
  font-size: 0.6875rem;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.1);
}
.property-card__badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background: #fef08a;
  color: #ca8a04;
}
.property-card__badge-icon svg { width: 0.7rem; height: 0.7rem; }
.property-card__fav {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 4;
  width: 1.85rem;
  height: 1.85rem;
  border: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  color: #64748b;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
  transition: color 0.15s, background 0.15s;
}
.property-card__fav svg { width: 0.95rem; height: 0.95rem; }
.property-card__fav:hover,
.property-card__fav.is-active {
  color: #ef4444;
  background: #fff;
}
.property-card__fav.is-active svg { fill: #ef4444; stroke: #ef4444; }
.property-card__body {
  padding: 0.65rem 0.75rem 0.8rem;
}
.property-card__label {
  margin: 0;
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.2;
}
.property-card__price {
  margin: 0.1rem 0 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.property-card__location {
  margin: 0.3rem 0 0;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.property-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 0.55rem 0 0;
  padding: 0;
  list-style: none;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 600;
}
.property-card__meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.property-card__meta svg {
  width: 0.95rem;
  height: 0.95rem;
  color: #475569;
  flex-shrink: 0;
}
.property-card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Carrusel de propiedades */
.property-carousel + .property-carousel {
  margin-top: 2.75rem;
}
.property-carousel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.property-carousel__title {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}
.property-carousel__subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: #64748b;
}
.property-carousel__more {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  padding-top: 0.2rem;
}
.property-carousel__more svg { width: 1rem; height: 1rem; }
.property-carousel__more:hover { color: #0284c7; }
.property-carousel__wrap {
  position: relative;
}
.property-carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.15rem 0;
}
.property-carousel__viewport::-webkit-scrollbar { display: none; }
.property-carousel__track {
  display: flex;
  gap: var(--carousel-gap, 12px);
}
.property-carousel__slide {
  flex: 0 0 var(--slide-width, 220px);
  scroll-snap-align: start;
  min-width: 0;
}
.property-carousel__nav {
  position: absolute;
  top: 38%;
  z-index: 5;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 9999px;
  background: #fff;
  color: #334155;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.15);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: opacity 0.15s, box-shadow 0.15s;
}
.property-carousel__nav svg { width: 1.1rem; height: 1.1rem; }
.property-carousel__nav:hover:not(:disabled) {
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.2);
}
.property-carousel__nav:disabled {
  opacity: 0.35;
  cursor: default;
}
.property-carousel__nav--prev { left: -0.75rem; }
.property-carousel__nav--next { right: -0.75rem; }
@media (max-width: 640px) {
  .property-carousel__nav {
    width: 2rem;
    height: 2rem;
  }
  .property-carousel__nav--prev { left: -0.35rem; }
  .property-carousel__nav--next { right: -0.35rem; }
}

/* Cómo funciona */
.how-it-works {
  position: relative;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 45%, #f0f9ff 100%);
  overflow: hidden;
}
.how-it-works::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(14, 165, 233, 0.08), transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.07), transparent 40%);
  pointer-events: none;
}
.how-it-works > div { position: relative; z-index: 1; }
.how-it-works__header {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}
.how-it-works__eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0284c7;
}
.how-it-works__title {
  margin: 0.5rem 0 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.how-it-works__lead {
  margin: 0.75rem 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #64748b;
}
.how-it-works__grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .how-it-works__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}
.how-step {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.how-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}
.how-step__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
}
.how-step__icon svg {
  width: 1.45rem;
  height: 1.45rem;
}
.how-step__num {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0.45;
}
.how-step__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
}
.how-step__text {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #64748b;
}
.how-step--1 .how-step__icon {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #059669;
}
.how-step--1 .how-step__num { color: #059669; }
.how-step--2 .how-step__icon {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #d97706;
}
.how-step--2 .how-step__num { color: #d97706; }
.how-step--3 .how-step__icon {
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  color: #0284c7;
}
.how-step--3 .how-step__num { color: #0284c7; }
@media (min-width: 768px) {
  .how-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 2.6rem;
    right: -0.85rem;
    width: 1.25rem;
    height: 2px;
    background: linear-gradient(90deg, #cbd5e1, transparent);
    z-index: 2;
  }
}
