/* =========================================================
   MITEPUY — PÁGINA PRINCIPAL
   Hoja de estilos consolidada del portal inmobiliario.
========================================================= */

:root {
  --home-navy-night: #061426;
  --home-navy-deep: #0a2038;
  --home-navy-card: #0d2844;

  --home-copper-primary: #c77a45;
  --home-copper-light: #e0a06c;

  --home-white: #f7f3ed;
  --home-background: #ffffff;
  --home-text: #152235;
  --home-text-secondary: #66717f;
  --home-border: #dce1e6;

  --home-radius-small: 8px;
  --home-radius-medium: 14px;
  --home-radius-large: 20px;
  --home-radius-pill: 999px;

  --home-shadow-header: 0 10px 30px rgba(0, 0, 0, 0.18);
  --home-shadow-card: 0 14px 36px rgba(12, 30, 48, 0.12);
  --home-shadow-card-hover: 0 22px 48px rgba(12, 30, 48, 0.17);
  --home-shadow-dialog: 0 28px 80px rgba(0, 0, 0, 0.38);

  --home-header-height: 88px;
  --home-max-width: 1440px;

  --home-transition-fast: 160ms ease;
  --home-transition-normal: 260ms ease;
}

/* =========================================================
   BASE
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--home-header-height) + 20px);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;

  background: #ffffff;
  color: var(--home-text);

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  line-height: 1.5;
  overflow-x: hidden;
}

body.home-scroll-locked {
  overflow: hidden;
}

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

button,
select,
input {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

[hidden] {
  display: none !important;
}

.home-skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 3000;

  padding: 12px 18px;
  border-radius: var(--home-radius-medium);

  background: var(--home-copper-primary);
  color: var(--home-white);

  transform: translateY(-160%);
  transition: transform var(--home-transition-fast);
}

.home-skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--home-copper-light);
  outline-offset: 3px;
}

/* =========================================================
   NAVBAR
========================================================= */

.home-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  min-height: var(--home-header-height);

  background: var(--home-navy-night);
  color: var(--home-white);

  box-shadow: var(--home-shadow-header);
}

.home-header-container {
  width: min(calc(100% - 40px), var(--home-max-width));
  min-height: var(--home-header-height);

  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;

  margin-inline: auto;
}

.home-brand-name {
  color: var(--home-white);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.home-navigation {
  min-width: 0;
}

.home-navigation-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2vw, 30px);
}

.home-navigation-link {
  position: relative;

  min-height: 44px;

  display: inline-flex;
  align-items: center;

  color: rgba(247, 243, 237, 0.76);

  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;

  transition:
    color var(--home-transition-fast),
    opacity var(--home-transition-fast);
}

.home-navigation-link.is-active {
  color: var(--home-copper-light);
}

.home-navigation-link.is-disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.home-header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.home-language-selector {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.home-language-button {
  min-width: 30px;
  min-height: 40px;

  padding: 0;
  border: 0;
  border-radius: var(--home-radius-small);

  background: transparent;
  color: rgba(247, 243, 237, 0.58);

  font-size: 0.75rem;
  font-weight: 800;

  transition:
    color var(--home-transition-fast),
    background-color var(--home-transition-fast);
}

.home-language-button:hover {
  background: rgba(224, 160, 108, 0.08);
  color: var(--home-copper-light);
}

.home-language-button.is-active,
.home-language-button[aria-pressed="true"] {
  color: var(--home-copper-light);
}

.home-access-cta {
  min-height: 48px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding-inline: 20px;

  border: 1px solid rgba(224, 160, 108, 0.7);
  border-radius: var(--home-radius-medium);

  background: rgba(255, 255, 255, 0.035);
  color: var(--home-white);

  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;

  transition:
    transform var(--home-transition-normal),
    background-color var(--home-transition-normal),
    border-color var(--home-transition-normal),
    color var(--home-transition-normal);
}

.home-access-cta:hover {
  transform: translateY(-2px);
  border-color: var(--home-copper-light);
  background: rgba(224, 160, 108, 0.12);
  color: var(--home-copper-light);
}

.home-profile-cta {
  min-height: 48px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding-inline: 22px;
  border-radius: var(--home-radius-medium);

  background: linear-gradient(
    135deg,
    var(--home-copper-light),
    var(--home-copper-primary)
  );
  color: var(--home-white);

  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;

  transition:
    transform var(--home-transition-normal),
    filter var(--home-transition-normal);
}

.home-profile-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

/* =========================================================
   CONTENIDO Y FILTROS
========================================================= */

.home-properties {
  padding: 24px 24px 80px;
}

.home-properties-container {
  width: min(100%, var(--home-max-width));
  margin-inline: auto;
}

.home-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr)) auto;
  align-items: center;
  gap: 8px;

  padding: 10px 12px;

  border: 1px solid var(--home-border);
  border-radius: 14px;

  background: #ffffff;
  box-shadow: 0 5px 16px rgba(12, 30, 48, 0.06);
}

.home-filter-field {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-filter-field label {
  color: var(--home-text);
  font-size: 0.68rem;
  font-weight: 800;
}

.home-filter-field select {
  width: 100%;
  min-height: 40px;

  padding: 0 11px;

  border: 1px solid var(--home-border);
  border-radius: 10px;

  background: #ffffff;
  color: var(--home-text);

  font-size: 0.8rem;
}

.home-filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-filter-button {
  min-height: 40px;

  padding: 0 14px;

  border-radius: 10px;

  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;

  transition:
    transform var(--home-transition-fast),
    border-color var(--home-transition-fast),
    background-color var(--home-transition-fast);
}

/* En escritorio, las etiquetas permanecen accesibles pero no ocupan altura. */
@media (min-width: 821px) {
  .home-filter-field label {
    position: absolute;

    width: 1px;
    height: 1px;

    overflow: hidden;

    clip: rect(0 0 0 0);
    clip-path: inset(50%);

    white-space: nowrap;
  }
}

.home-filter-button:hover {
  transform: translateY(-1px);
}

.home-filter-button-primary {
  border: 1px solid var(--home-navy-night);

  background: var(--home-navy-night);
  color: var(--home-white);
}

.home-filter-button-secondary {
  border: 1px solid var(--home-border);

  background: #ffffff;
  color: var(--home-text);
}

.home-properties-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 30px;

  margin-top: 34px;
  margin-bottom: 18px;
}

.home-properties-header > div {
  min-width: 0;
}

.home-properties-eyebrow {
  margin: 0 0 8px;

  color: var(--home-copper-primary);

  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.home-properties-header h1 {
  margin: 0;

  color: var(--home-text);

  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
}

.home-properties-header p {
  margin: 16px 0 0;

  color: var(--home-text-secondary);
}


.home-properties-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.home-properties-state {
  padding: 42px 20px;
  text-align: center;
}

.home-properties-state-error {
  color: #a22323;
}

/* =========================================================
   ORDEN DEL CATÁLOGO
========================================================= */

.home-properties-header-actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 18px;
}

.home-properties-sort {
  min-width: 176px;

  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-properties-sort label {
  position: absolute;

  width: 1px;
  height: 1px;

  overflow: hidden;

  clip: rect(0 0 0 0);
  clip-path: inset(50%);

  white-space: nowrap;
}

.home-properties-sort select {
  min-width: 176px;
  min-height: 40px;

  padding: 0 34px 0 12px;

  border: 1px solid transparent;
  border-radius: 10px;

  background-color: #ffffff;
  color: var(--home-text);

  font-size: 0.78rem;
  font-weight: 750;

  box-shadow: none;
}

.home-properties-sort select:hover,
.home-properties-sort select:focus {
  border-color: var(--home-border);
}

.home-properties-counter {
  margin: 0 0 8px;

  color: var(--home-text-secondary);

  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
}

/* La sección principal conserva un fondo blanco continuo. */
.home-properties,
.home-properties-container {
  background: #ffffff;
}

/* =========================================================
   TARJETAS — ESTILO COMPACTO TIPO CATÁLOGO
========================================================= */

.home-properties-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 22px 18px;
}

.home-property-card {
  min-width: 0;
  overflow: visible;

  border: 0;
  border-radius: 0;

  background: transparent;
  box-shadow: none;

  transition: transform var(--home-transition-fast);
}

.home-property-card:hover {
  transform: translateY(-2px);
}

.home-property-card-button {
  width: 100%;

  display: flex;
  flex-direction: column;

  padding: 0;
  border: 0;

  background: transparent;
  color: inherit;

  text-align: left;
}

.home-property-card-media {
  position: relative;

  width: 100%;
  aspect-ratio: 16 / 8.7;

  overflow: hidden;

  border-radius: 15px;

  background: linear-gradient(
    135deg,
    var(--home-navy-deep),
    var(--home-navy-night)
  );
}

.home-property-card-image {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform 360ms ease,
    filter 260ms ease;
}

.home-property-card-operation {
  position: absolute;
  top: 11px;
  left: 11px;
  z-index: 4;

  min-height: 28px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 5px 11px;

  border-radius: var(--home-radius-pill);

  background: rgba(6, 20, 38, 0.82);
  color: #ffffff;

  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;

  backdrop-filter: blur(7px);
}

.home-property-card-media::before {
  content: "";

  position: absolute;
  inset: 0;
  z-index: 2;

  background: linear-gradient(
    180deg,
    rgba(6, 20, 38, 0.02),
    rgba(6, 20, 38, 0.52)
  );

  opacity: 0;

  transition: opacity var(--home-transition-normal);

  pointer-events: none;
}

.home-property-card-media::after {
  content: "Ver propiedad";

  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 3;

  min-height: 38px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 16px;

  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: var(--home-radius-pill);

  background: rgba(6, 20, 38, 0.9);
  color: #ffffff;

  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  white-space: nowrap;

  opacity: 0;
  transform: translate(-50%, 8px);

  transition:
    opacity var(--home-transition-normal),
    transform var(--home-transition-normal);

  pointer-events: none;
}

html[lang="en"] .home-property-card-media::after {
  content: "View property";
}

.home-property-card:hover .home-property-card-image,
.home-property-card-button:focus-visible .home-property-card-image {
  transform: scale(1.025);
  filter: brightness(0.9);
}

.home-property-card:hover .home-property-card-media::before,
.home-property-card-button:focus-visible .home-property-card-media::before {
  opacity: 1;
}

.home-property-card:hover .home-property-card-media::after,
.home-property-card-button:focus-visible .home-property-card-media::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.home-property-card-media.is-error::after {
  content: "Imagen no disponible";

  position: absolute;
  inset: 0;
  z-index: 1;

  display: grid;
  place-items: center;

  min-height: 0;
  padding: 16px;

  border: 0;
  border-radius: 0;

  background: transparent;
  color: rgba(247, 243, 237, 0.76);

  font-size: 0.78rem;
  font-weight: 700;

  opacity: 1;
  transform: none;
}

html[lang="en"] .home-property-card-media.is-error::after {
  content: "Image unavailable";
}

.home-property-card-body {
  display: flex;
  flex-direction: column;

  padding: 12px 2px 0;
}

.home-property-card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-property-card-price {
  margin: 0;

  color: #050b14;

  font-size: 1rem;
  font-weight: 850;
  line-height: 1.2;
}

.home-property-card-agent {
  max-width: 130px;

  overflow: hidden;

  color: var(--home-text-secondary);

  font-size: 0.63rem;
  font-weight: 650;
  line-height: 1.25;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-property-card-features {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 7px;

  margin-top: 8px;
}

.home-property-card-features span {
  color: #222b36;

  font-size: 0.74rem;
  font-weight: 500;
  white-space: nowrap;
}

.home-property-card-features span:not(:last-child)::after {
  content: "·";
  margin-left: 7px;
  color: #7a8591;
}

.home-property-card-title {
  display: -webkit-box;
  overflow: hidden;

  margin: 8px 0 0;

  color: var(--home-text);

  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.35;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.home-property-card-location {
  overflow: hidden;

  margin: 5px 0 0;

  color: var(--home-text-secondary);

  font-size: 0.74rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-property-card-type {
  margin: 5px 0 0;

  color: var(--home-copper-primary);

  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-property-card-footer {
  display: none;
}

/* =========================================================
   PAGINACIÓN
========================================================= */

.home-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;

  margin-top: 38px;
}

/* =========================================================
   MODAL — BASE
========================================================= */

.home-property-dialog {
  width: min(1080px, calc(100vw - 28px));
  height: min(700px, calc(100dvh - 24px));
  max-width: none;
  max-height: none;

  margin: auto;
  padding: 0;

  overflow: hidden;

  border: 0;
  border-radius: var(--home-radius-large);

  background: var(--home-navy-deep);
  color: var(--home-text);

  box-shadow: var(--home-shadow-dialog);

  scrollbar-width: none;
}

.home-property-dialog::-webkit-scrollbar {
  display: none;
}

.home-property-dialog::backdrop {
  background: rgba(3, 10, 18, 0.78);

  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.home-property-dialog-container {
  position: relative;

  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;

  display: grid;
  grid-template-columns:
    minmax(0, 1.72fr)
    minmax(320px, 0.78fr);

  overflow: hidden;

  border-radius: inherit;

  background: #ffffff;
}

/* =========================================================
   MODAL — BOTÓN CERRAR
========================================================= */

.home-property-dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 20;

  width: 44px;
  height: 44px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 0;
  border-radius: 50%;

  background: rgba(6, 20, 38, 0.92);
  color: #ffffff;

  font-size: 1.7rem;
  line-height: 1;

  cursor: pointer;

  transition:
    transform var(--home-transition-fast),
    background-color var(--home-transition-fast);
}

.home-property-dialog-close:hover {
  transform: rotate(4deg);

  background: var(--home-navy-night);
}

/* =========================================================
   MODAL — GALERÍA DE ESCRITORIO
========================================================= */

.home-property-dialog-gallery {
  position: relative;

  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;

  padding: 4px;

  overflow: hidden;

  border-top-left-radius: inherit;
  border-bottom-left-radius: inherit;

  background: var(--home-navy-deep);
}

.home-property-dialog-gallery-track {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;

  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  grid-template-rows:
    minmax(0, 1.75fr)
    minmax(0, 1fr)
    minmax(0, 1fr);

  gap: 4px;

  overflow: hidden;

  border-top-left-radius:
    calc(var(--home-radius-large) - 4px);

  border-bottom-left-radius:
    calc(var(--home-radius-large) - 4px);

  background: var(--home-navy-deep);

  scrollbar-width: none;
}

.home-property-dialog-gallery-track::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.home-property-dialog-image-item {
  min-width: 0;
  min-height: 0;

  margin: 0;

  overflow: hidden;

  background: var(--home-navy-night);
}

.home-property-dialog-image-item:first-child {
  grid-column: 1 / -1;
  grid-row: 1;

  border-top-left-radius:
    calc(var(--home-radius-large) - 4px);
}

.home-property-dialog-image-item:nth-child(4) {
  border-bottom-left-radius:
    calc(var(--home-radius-large) - 4px);
}

.home-property-dialog-image-item img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  transition: transform 320ms ease;
}

.home-property-dialog-image-item:hover img {
  transform: scale(1.015);
}

.home-property-dialog-image-item.is-error {
  background:
    linear-gradient(
      135deg,
      var(--home-navy-deep),
      var(--home-navy-night)
    );
}

/*
 * Los controles del carrusel permanecen ocultos
 * en escritorio.
 */

.home-property-dialog-gallery-control,
.home-property-dialog-gallery-counter {
  display: none;
}

/* =========================================================
   MODAL — INFORMACIÓN
========================================================= */

.home-property-dialog-content {
  position: relative;
  isolation: isolate;
  contain: paint;

  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;

  display: flex;
  flex-direction: column;

  padding: 26px 28px 24px;

  overflow-x: hidden;
  overflow-y: auto;

  overscroll-behavior: contain;

  background:
    radial-gradient(
      circle at 88% 12%,
      rgba(224, 160, 108, 0.11),
      transparent 30%
    ),
    radial-gradient(
      circle at 8% 88%,
      rgba(10, 32, 56, 0.045),
      transparent 32%
    ),
    linear-gradient(
      145deg,
      #ffffff 0%,
      #fdfbf8 52%,
      #ffffff 100%
    );

  scrollbar-width: none;
}

.home-property-dialog-content::before,
.home-property-dialog-content::after {
  content: "";

  position: absolute;
  z-index: -1;

  pointer-events: none;
}

/*
 * Resplandor cálido que aparece suavemente al interactuar
 * con la columna de información.
 */
.home-property-dialog-content::before {
  inset: 0;

  background:
    radial-gradient(
      circle at 94% 6%,
      rgba(224, 160, 108, 0.18),
      transparent 32%
    );

  opacity: 0.42;

  transition:
    opacity 520ms ease;
}

/*
 * Reflejo diagonal muy tenue.
 */
.home-property-dialog-content::after {
  inset: 0;

  background:
    linear-gradient(
      105deg,
      transparent 0%,
      transparent 35%,
      rgba(224, 160, 108, 0.12) 48%,
      rgba(255, 255, 255, 0.16) 54%,
      transparent 68%,
      transparent 100%
    );

  background-size: 220% 100%;
  background-position: 150% 0;

  opacity: 0;

  transition:
    background-position 900ms
      cubic-bezier(0.22, 1, 0.36, 1),
    opacity 260ms ease;
}

.home-property-dialog-content:hover::before {
  opacity: 0.78;
}

.home-property-dialog-content:hover::after {
  background-position: -120% 0;
  opacity: 0.62;
}

.home-property-dialog-content::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.home-property-dialog-content
  > [data-property-dialog-operation] {
  margin: 0 52px 8px 0;

  color: var(--home-copper-primary);

  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-property-dialog-content
  > [data-property-dialog-title] {
  margin: 0 46px 0 0;

  color: var(--home-text);

  font-size: clamp(1.65rem, 2.25vw, 2.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.home-property-dialog-content
  > [data-property-dialog-location] {
  margin: 13px 0 0;

  color: var(--home-text-secondary);

  font-size: 0.9rem;
  line-height: 1.45;
}

.home-property-dialog-content
  > [data-property-dialog-price] {
  margin: 16px 0 0;

  color: var(--home-navy-night);

  font-size: 1.3rem;
  font-weight: 850;
}

/* =========================================================
   MODAL — CARACTERÍSTICAS
========================================================= */

.home-property-dialog-features {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 10px;

  margin-top: 19px;
}

.home-property-dialog-feature {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 2px;

  padding: 11px 12px;

  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-small);

  background: #f8f9fa;
}

.home-property-dialog-feature strong {
  color: var(--home-navy-night);

  font-size: 0.98rem;
}

.home-property-dialog-feature span {
  color: var(--home-text-secondary);

  font-size: 0.68rem;
  font-weight: 650;
}

/* =========================================================
   MODAL — AGENTE
========================================================= */

.home-property-dialog-features {
  margin-bottom: 18px;
}

.home-property-dialog-feature,
.home-property-dialog-agent {
  position: relative;

  transition:
    transform var(--home-transition-normal),
    border-color var(--home-transition-normal),
    background-color var(--home-transition-normal),
    box-shadow var(--home-transition-normal);
}

.home-property-dialog-feature:hover,
.home-property-dialog-agent:hover {
  transform: translateY(-2px);

  border-color: rgba(199, 122, 69, 0.34);

  background: rgba(255, 255, 255, 0.94);

  box-shadow:
    0 12px 28px rgba(10, 32, 56, 0.08),
    0 0 0 1px rgba(224, 160, 108, 0.08);
}

.home-property-dialog-agent {
  min-width: 0;

  display: flex;
  align-items: center;
  gap: 14px;

  margin-top: auto;
  padding: 14px 15px;

  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-medium);

  background: rgba(248, 249, 250, 0.9);

  backdrop-filter: blur(8px);
}

.home-property-dialog-agent-photo {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
}

.home-property-dialog-agent strong {
  font-size: 0.95rem;
}

.home-property-dialog-agent span:last-child {
  font-size: 0.72rem;
}

.home-property-dialog-agent-photo {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;

  border: 2px solid var(--home-copper-primary);
  border-radius: 50%;

  object-fit: cover;
  object-position: center top;
}

.home-property-dialog-agent > div {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-property-dialog-agent-eyebrow {
  color: var(--home-copper-primary);

  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.home-property-dialog-agent strong {
  color: var(--home-navy-night);

  font-size: 0.9rem;
  line-height: 1.22;
}

.home-property-dialog-agent span:last-child {
  color: var(--home-text-secondary);

  font-size: 0.7rem;
  line-height: 1.3;
}

.home-property-dialog-actions {
  width: 100%;

  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 10px;

  margin-top: 16px;
}

.home-property-dialog-agent-link,
.home-property-dialog-share-button {
  width: 100%;
  min-width: 0;
  min-height: 46px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin: 0;
  padding: 0 18px;

  border-radius: var(--home-radius-medium);

  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;

  cursor: pointer;

  transition:
    transform var(--home-transition-fast),
    background-color var(--home-transition-fast),
    border-color var(--home-transition-fast),
    opacity var(--home-transition-fast);
}

.home-property-dialog-agent-link {
  border: 1px solid var(--home-navy-night);

  background: var(--home-navy-night);
  color: var(--home-white);
}

.home-property-dialog-share-button {
  border: 1px solid var(--home-navy-night);

  background: var(--home-white);
  color: var(--home-navy-night);

  font-family: inherit;
}

.home-property-dialog-agent-link:hover,
.home-property-dialog-share-button:hover {
  transform: translateY(-2px);
}

.home-property-dialog-agent-link:hover {
  background: var(--home-navy-deep);
}

.home-property-dialog-share-button:hover {
  background: #f3f5f7;
}

.home-property-dialog-agent-link:focus-visible,
.home-property-dialog-share-button:focus-visible {
  outline: 3px solid rgba(11, 31, 54, 0.22);
  outline-offset: 3px;
}

.home-property-dialog-share-button:disabled {
  opacity: 0.62;
  cursor: wait;
  transform: none;
}

/* =========================================================
   MODAL — ESCRITORIOS CON POCA ALTURA
========================================================= */

@media (min-width: 821px) and (max-height: 760px) {
  .home-property-dialog {
    height: calc(100dvh - 20px);
  }

  .home-property-dialog-content {
    padding: 20px 24px;
  }

  .home-property-dialog-content
    > [data-property-dialog-title] {
    font-size: clamp(1.55rem, 2.4vw, 2rem);
  }

  .home-property-dialog-content
    > [data-property-dialog-location] {
    margin-top: 10px;
  }

  .home-property-dialog-content
    > [data-property-dialog-price] {
    margin-top: 14px;

    font-size: 1.25rem;
  }

  .home-property-dialog-features {
    gap: 9px;

    margin-top: 16px;
  }

  .home-property-dialog-feature {
    padding: 10px;
  }

  .home-property-dialog-agent {
    margin-top: auto;
    padding: 11px;
  }

  .home-property-dialog-actions {
    margin-top: 14px;
  }

  .home-property-dialog-agent-link,
  .home-property-dialog-share-button {
    min-height: 44px;
  }
}

/* =========================================================
   MODAL — TABLET Y MÓVIL
========================================================= */

@media (max-width: 820px) {
  .home-property-dialog {
    width: calc(100vw - 16px);
    height: auto;
    max-height: calc(100dvh - 16px);

    border-radius: 16px;
  }

  .home-property-dialog-container {
    display: block;

    height: auto;
    max-height: calc(100dvh - 16px);

    overflow-x: hidden;
    overflow-y: auto;

    overscroll-behavior: contain;

    scrollbar-width: none;
  }

  .home-property-dialog-container::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .home-property-dialog-gallery {
    width: 100%;
    height: clamp(260px, 43dvh, 390px);
    min-height: 260px;

    padding: 0;

    overflow: hidden;

    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    border-bottom-left-radius: 0;

    touch-action: pan-y;
  }

  .home-property-dialog-gallery-track {
    width: 100%;
    height: 100%;

    display: flex;
    grid-template-columns: none;
    grid-template-rows: none;

    gap: 0;

    overflow-x: auto;
    overflow-y: hidden;

    border-radius: 0;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
  }

  .home-property-dialog-gallery-track::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .home-property-dialog-image-item,
  .home-property-dialog-image-item:first-child,
  .home-property-dialog-image-item:nth-child(4),
  .home-property-dialog-image-item:nth-child(5) {
    width: 100%;
    height: 100%;

    flex: 0 0 100%;

    grid-column: auto;
    grid-row: auto;

    border-radius: 0;

    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .home-property-dialog-image-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;
  }

  .home-property-dialog-gallery-control {
    position: absolute;
    top: 50%;
    z-index: 4;

    width: 44px;
    height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;

    background: rgba(6, 20, 38, 0.82);
    color: #ffffff;

    font-size: 2rem;
    line-height: 1;

    transform: translateY(-50%);

    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);

    transition:
      opacity var(--home-transition-fast),
      background-color var(--home-transition-fast);
  }

  .home-property-dialog-gallery-control:disabled {
    opacity: 0.28;

    cursor: default;
  }

  .home-property-dialog-gallery-previous {
    left: 12px;
  }

  .home-property-dialog-gallery-next {
    right: 12px;
  }

  .home-property-dialog-gallery-counter {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 4;

    min-width: 56px;
    min-height: 30px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 5px 11px;

    border-radius: var(--home-radius-pill);

    background: rgba(6, 20, 38, 0.84);
    color: #ffffff;

    font-size: 0.72rem;
    font-weight: 800;

    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }

  .home-property-dialog-content {
    height: auto;
    min-height: 0;

    padding: 30px 22px 34px;

    overflow: visible;
  }

  .home-property-dialog-close {
    position: fixed;
    top: max(18px, env(safe-area-inset-top));
    right: max(18px, env(safe-area-inset-right));
  }
}

/* =========================================================
   MODAL — MÓVILES PEQUEÑOS
========================================================= */

@media (max-width: 520px) {
  .home-property-dialog {
    width: calc(100vw - 10px);
    height: auto;
    max-height: calc(100dvh - 10px);

    border-radius: 14px;
  }

  .home-property-dialog-gallery {
    height: clamp(240px, 39dvh, 330px);
    min-height: 240px;

    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
  }

  .home-property-dialog-gallery-control {
    width: 40px;
    height: 40px;

    font-size: 1.75rem;
  }

  .home-property-dialog-gallery-previous {
    left: 10px;
  }

  .home-property-dialog-gallery-next {
    right: 10px;
  }

  .home-property-dialog-content {
    padding: 26px 18px 30px;
  }

  .home-property-dialog-content
    > [data-property-dialog-title] {
    margin-right: 34px;

    font-size: clamp(1.7rem, 9vw, 2.2rem);
  }

  .home-property-dialog-features {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 9px;
  }

  .home-property-dialog-agent {
    align-items: center;
  }

  .home-property-dialog-agent-link {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-property-dialog-content::before,
  .home-property-dialog-content::after,
  .home-property-dialog-feature,
  .home-property-dialog-agent {
    transition: none;
  }

  .home-property-dialog-content:hover::after {
    background-position: 150% 0;
    opacity: 0;
  }

  .home-property-dialog-feature:hover,
  .home-property-dialog-agent:hover {
    transform: none;
  }
}

/* =========================================================
   FOOTER — ESTRUCTURA PRINCIPAL
========================================================= */

.home-footer {
  margin-top: 0;

  background: var(--home-navy-night);
  color: var(--home-white);
}

.home-footer-main {
  padding: 64px 24px 54px;

  background:
    radial-gradient(
      circle at top right,
      rgba(199, 122, 69, 0.12),
      transparent 34%
    ),
    var(--home-navy-night);
}

.home-footer-container {
  width: min(100%, var(--home-max-width));

  display: grid;
  grid-template-columns:
    minmax(240px, 1.2fr)
    minmax(180px, 0.8fr)
    minmax(210px, 0.8fr)
    minmax(280px, 1fr);

  align-items: start;
  gap: 48px;

  margin-inline: auto;
}

/* =========================================================
   FOOTER — MARCA
========================================================= */

.home-footer-brand {
  min-width: 0;
}

.home-footer-brand-link {
  display: inline-flex;
  align-items: center;

  margin-bottom: 18px;
}

.home-footer-brand-name {
  color: var(--home-white);

  font-size: 1.75rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.04em;
}

.home-footer-brand-description {
  max-width: 330px;

  margin: 0;

  color: rgba(247, 243, 237, 0.7);

  font-size: 0.88rem;
  line-height: 1.65;
}

/* =========================================================
   FOOTER — REDES SOCIALES
========================================================= */

.home-footer-social {
  margin-top: 26px;
}

.home-footer-social-title {
  margin: 0 0 12px;

  color: rgba(247, 243, 237, 0.62);

  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-footer-social-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.home-footer-social-item {
  width: 42px;
  height: 42px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(247, 243, 237, 0.16);
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.04);
  color: rgba(247, 243, 237, 0.72);

  cursor: default;

  transition:
    color var(--home-transition-fast),
    border-color var(--home-transition-fast),
    background-color var(--home-transition-fast),
    transform var(--home-transition-fast);
}

.home-footer-social-item:hover {
  transform: translateY(-2px);

  border-color: rgba(224, 160, 108, 0.52);

  background: rgba(224, 160, 108, 0.08);
  color: var(--home-copper-light);
}

/* =========================================================
   FOOTER — COLUMNAS
========================================================= */

.home-footer-navigation,
.home-footer-contact {
  min-width: 0;
}

.home-footer-column-title {
  margin: 0 0 20px;

  color: var(--home-white);

  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-footer-navigation-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-footer-navigation-list a,
.home-footer-navigation-list span {
  color: rgba(247, 243, 237, 0.68);

  font-size: 0.8rem;
  line-height: 1.4;

  transition: color var(--home-transition-fast);
}

.home-footer-navigation-list a:hover {
  color: var(--home-copper-light);
}

.home-footer-navigation-list span[aria-disabled="true"] {
  opacity: 0.5;
  cursor: default;
}

/* =========================================================
   FOOTER — CONTACTO
========================================================= */

.home-footer-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  color: rgba(247, 243, 237, 0.76);

  font-size: 0.82rem;
  font-weight: 700;

  word-break: break-word;

  transition: color var(--home-transition-fast);
}

.home-footer-email:hover {
  color: var(--home-copper-light);
}

.home-footer-email-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(247, 243, 237, 0.16);
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.04);
  color: var(--home-copper-light);
}

/* =========================================================
   FOOTER — CTA SOLICITAR PERFIL
========================================================= */

.home-footer-profile-cta {
  position: relative;

  min-width: 0;
  overflow: hidden;

  padding: 28px;

  border: 1px solid rgba(224, 160, 108, 0.24);
  border-radius: var(--home-radius-large);

  background:
    linear-gradient(
      145deg,
      rgba(13, 40, 68, 0.98),
      rgba(6, 20, 38, 0.98)
    );

  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.18);
}

.home-footer-profile-decoration {
  position: absolute;
  top: -50px;
  right: -50px;

  width: 140px;
  height: 140px;

  border: 1px solid rgba(224, 160, 108, 0.16);
  border-radius: 50%;

  pointer-events: none;
}

.home-footer-profile-decoration::after {
  content: "";

  position: absolute;
  inset: 24px;

  border: 1px solid rgba(224, 160, 108, 0.12);
  border-radius: inherit;
}

.home-footer-profile-eyebrow {
  position: relative;
  z-index: 1;

  margin: 0 0 10px;

  color: var(--home-copper-light);

  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.11em;
}

.home-footer-profile-title {
  position: relative;
  z-index: 1;

  margin: 0;

  color: var(--home-white);

  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.home-footer-profile-description {
  position: relative;
  z-index: 1;

  margin: 14px 0 0;

  color: rgba(247, 243, 237, 0.66);

  font-size: 0.78rem;
  line-height: 1.55;
}

.home-footer-profile-button {
  position: relative;
  z-index: 1;

  min-height: 46px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  margin-top: 22px;
  padding: 0 18px;

  border: 0;
  border-radius: var(--home-radius-medium);

  background: linear-gradient(
    135deg,
    var(--home-copper-light),
    var(--home-copper-primary)
  );

  color: #ffffff;

  font-size: 0.78rem;
  font-weight: 850;

  transition:
    transform var(--home-transition-fast),
    filter var(--home-transition-fast);
}

.home-footer-profile-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

/* =========================================================
   FOOTER — FRANJA INFERIOR
========================================================= */

.home-footer-bottom {
  border-top: 1px solid rgba(247, 243, 237, 0.1);

  background: #04101e;
}

.home-footer-bottom-container {
  width: min(calc(100% - 48px), var(--home-max-width));

  min-height: 86px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;

  margin-inline: auto;
}

.home-footer-bottom-information {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.home-footer-copyright,
.home-footer-attribution,
.home-footer-signature {
  margin: 0;

  color: rgba(247, 243, 237, 0.5);

  font-size: 0.7rem;
  line-height: 1.45;
}

.home-footer-signature {
  max-width: 360px;

  color: rgba(247, 243, 237, 0.42);
  text-align: right;
}

/* =========================================================
   BOTÓN DEL NAVBAR — AHORA ES BUTTON
========================================================= */

button.home-profile-cta {
  border: 0;
}

/* =========================================================
   MODAL — SOLICITUD DE PERFIL
========================================================= */

.home-profile-request-dialog {
  width: min(720px, calc(100vw - 28px));
  max-width: none;
  max-height: calc(100dvh - 28px);

  padding: 0;

  overflow: hidden;

  border: 0;
  border-radius: var(--home-radius-large);

  background: #ffffff;
  color: var(--home-text);

  box-shadow: var(--home-shadow-dialog);
}

.home-profile-request-dialog::backdrop {
  background: rgba(3, 10, 18, 0.78);

  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.home-profile-request-surface {
  position: relative;

  max-height: calc(100dvh - 28px);

  padding: 34px;

  overflow-x: hidden;
  overflow-y: auto;

  scrollbar-width: none;
}

.home-profile-request-surface::-webkit-scrollbar {
  display: none;
}

.home-profile-request-close {
  position: absolute;
  top: 18px;
  right: 18px;

  width: 42px;
  height: 42px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 0;
  border-radius: 50%;

  background: var(--home-navy-night);
  color: #ffffff;

  font-size: 1.6rem;
  line-height: 1;

  transition:
    transform var(--home-transition-fast),
    background-color var(--home-transition-fast);
}

.home-profile-request-close:hover {
  transform: rotate(4deg);
  background: var(--home-navy-deep);
}

.home-profile-request-header {
  padding-right: 54px;
}

.home-profile-request-eyebrow {
  margin: 0 0 8px;

  color: var(--home-copper-primary);

  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.11em;
}

.home-profile-request-title {
  margin: 0;

  color: var(--home-text);

  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.home-profile-request-description {
  max-width: 560px;

  margin: 14px 0 0;

  color: var(--home-text-secondary);

  font-size: 0.88rem;
  line-height: 1.6;
}

.home-profile-request-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;

  margin-top: 28px;
}

.home-profile-request-field {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 7px;
}

.home-profile-request-field-message {
  grid-column: 1 / -1;
}

.home-profile-request-field label {
  color: var(--home-text);

  font-size: 0.72rem;
  font-weight: 800;
}

.home-profile-request-field input,
.home-profile-request-field textarea {
  width: 100%;

  border: 1px solid var(--home-border);
  border-radius: 11px;

  background: #ffffff;
  color: var(--home-text);

  font: inherit;

  transition:
    border-color var(--home-transition-fast),
    box-shadow var(--home-transition-fast);
}

.home-profile-request-field input {
  min-height: 46px;

  padding: 0 13px;
}

.home-profile-request-field textarea {
  min-height: 112px;

  padding: 12px 13px;

  resize: vertical;
}

.home-profile-request-field input:focus,
.home-profile-request-field textarea:focus {
  border-color: var(--home-copper-primary);
  outline: 0;

  box-shadow: 0 0 0 3px rgba(199, 122, 69, 0.12);
}

.home-profile-request-status {
  grid-column: 1 / -1;

  min-height: 20px;

  margin: 0;

  color: var(--home-text-secondary);

  font-size: 0.76rem;
}

.home-profile-request-actions {
  grid-column: 1 / -1;

  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.home-profile-request-submit,
.home-profile-request-cancel {
  min-height: 46px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 20px;

  border-radius: var(--home-radius-medium);

  font-size: 0.8rem;
  font-weight: 850;
}

.home-profile-request-submit {
  border: 1px solid var(--home-navy-night);

  background: var(--home-navy-night);
  color: #ffffff;
}

.home-profile-request-cancel {
  border: 1px solid var(--home-border);

  background: #ffffff;
  color: var(--home-text);
}


/* =========================================================
   MODAL — ACCESO AL PORTAL PROFESIONAL
========================================================= */

.home-portal-access-dialog {
  width: min(520px, calc(100vw - 28px));
}

.home-portal-access-form {
  grid-template-columns: 1fr;
}

.home-portal-access-status {
  grid-column: auto;
}

.home-portal-access-status[data-state="error"] {
  color: #a22323;
  font-weight: 700;
}

.home-portal-access-status[data-state="loading"] {
  color: var(--home-copper-primary);
}

.home-portal-access-security {
  display: flex;
  align-items: center;
  gap: 8px;

  margin: -4px 0 0;

  color: var(--home-text-secondary);

  font-size: 0.72rem;
  line-height: 1.45;
}

.home-portal-access-security > span:first-child {
  color: var(--home-copper-primary);
  font-size: 0.72rem;
}

.home-portal-access-form
  .home-profile-request-actions {
  grid-column: auto;
}

@media (max-width: 520px) {
  .home-portal-access-dialog {
    width: calc(100vw - 12px);
  }
}

/* =========================================================
   FOOTER Y MODAL — RESPONSIVE
========================================================= */

@media (max-width: 1100px) {
  .home-footer-container {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .home-footer-main {
    padding: 50px 20px 42px;
  }

  .home-footer-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .home-footer-brand-description {
    max-width: 460px;
  }

  .home-footer-bottom-container {
    min-height: 0;

    align-items: flex-start;
    flex-direction: column;
    gap: 12px;

    padding-block: 24px;
  }

  .home-footer-bottom-information {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-footer-signature {
    max-width: none;

    text-align: left;
  }

  .home-profile-request-surface {
    padding: 28px 22px;
  }

  .home-profile-request-form {
    grid-template-columns: 1fr;
  }

  .home-profile-request-field-message,
  .home-profile-request-status,
  .home-profile-request-actions {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .home-footer-profile-cta {
    padding: 24px 20px;
  }

  .home-footer-profile-button {
    width: 100%;
  }

  .home-profile-request-dialog {
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);

    border-radius: 14px;
  }

  .home-profile-request-surface {
    max-height: calc(100dvh - 12px);

    padding: 24px 18px 26px;
  }

  .home-profile-request-header {
    padding-right: 44px;
  }

  .home-profile-request-close {
    top: 14px;
    right: 14px;

    width: 40px;
    height: 40px;
  }

  .home-profile-request-title {
    font-size: clamp(1.65rem, 9vw, 2.15rem);
  }

  .home-profile-request-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-profile-request-submit,
  .home-profile-request-cancel {
    width: 100%;
  }
}

/* =========================================================
   LOGO MITEPUY — NAVBAR Y FOOTER
========================================================= */

.home-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.home-brand-logo {
  width: auto;
  height: 54px;
  max-width: 190px;

  display: block;

  object-fit: contain;
}

.home-footer-brand-logo {
  width: auto;
  height: 68px;
  max-width: 220px;

  display: block;

  object-fit: contain;
}

@media (max-width: 520px) {
  .home-brand-logo {
    height: 46px;
    max-width: 160px;
  }

  .home-footer-brand-logo {
    height: 60px;
    max-width: 190px;
  }
}

/* =========================================================
   AJUSTE — NAVBAR MÁS DELGADO
========================================================= */

:root {
  --home-header-height: 68px;
}

.home-header,
.home-header-container {
  min-height: var(--home-header-height);
}

.home-brand-logo {
  height: 44px;
  max-width: 165px;
}

.home-navigation-link {
  min-height: 36px;
  font-size: 0.76rem;
}

.home-language-button {
  min-height: 34px;
}

.home-access-cta,
.home-profile-cta {
  min-height: 40px;
  font-size: 0.76rem;
}

.home-access-cta {
  padding-inline: 16px;
}

.home-profile-cta {
  padding-inline: 18px;
}

/* =========================================================
   AJUSTE — FILTROS ANCLADOS DEBAJO DEL NAVBAR
========================================================= */

.home-properties,
.home-properties-container {
  overflow: visible;
}

.home-filters {
  position: sticky;
  top: calc(var(--home-header-height) + 10px);
  z-index: 900;

  background: rgba(255, 255, 255, 0.97);

  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);

  box-shadow:
    0 8px 24px rgba(12, 30, 48, 0.12);
}

/* =========================================================
   RESPONSIVE VISUAL — NAVBAR Y FILTROS EN PANEL
   Requiere la estructura móvil correspondiente en index.html
   y los eventos de apertura/cierre en home.js.
========================================================= */

/* ---------------------------------------------------------
   ELEMENTOS MÓVILES OCULTOS EN ESCRITORIO
--------------------------------------------------------- */

.home-mobile-menu-toggle,
.home-mobile-filter-bar,
.home-mobile-navigation-dialog,
.home-filter-dialog {
  display: none;
}

/* ---------------------------------------------------------
   TABLET Y MÓVIL
--------------------------------------------------------- */

@media (max-width: 820px) {
  :root {
    --home-header-height: 64px;
  }

  html {
    scroll-padding-top:
      calc(var(--home-header-height) + 74px);
  }

  /* =======================================================
     NAVBAR MÓVIL
  ======================================================= */

  .home-header,
  .home-header-container {
    min-height: var(--home-header-height);
  }

  .home-header-container {
    width: calc(100% - 28px);

    grid-template-columns:
      minmax(0, 1fr)
      auto;
    gap: 12px;
  }

  .home-navigation {
    display: none;
  }

  .home-brand {
    min-width: 0;
  }

  .home-brand-logo {
    width: auto;
    height: 42px;
    max-width: 156px;
  }

  .home-header-actions {
    gap: 8px;
  }

  .home-language-selector {
    gap: 4px;
  }

  .home-language-button {
    min-width: 25px;
    min-height: 36px;

    font-size: 0.66rem;
  }

  .home-header-actions > .home-access-cta,
  .home-header-actions > .home-profile-cta {
    display: none;
  }

  .home-mobile-menu-toggle {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid rgba(247, 243, 237, 0.18);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.04);
    color: var(--home-white);
  }

  .home-mobile-menu-toggle-icon {
    position: relative;

    width: 19px;
    height: 14px;

    display: block;
  }

  .home-mobile-menu-toggle-icon::before,
  .home-mobile-menu-toggle-icon::after,
  .home-mobile-menu-toggle-icon span {
    content: "";

    position: absolute;
    left: 0;

    width: 100%;
    height: 2px;

    border-radius: 999px;

    background: currentColor;
  }

  .home-mobile-menu-toggle-icon::before {
    top: 0;
  }

  .home-mobile-menu-toggle-icon span {
    top: 6px;
  }

  .home-mobile-menu-toggle-icon::after {
    bottom: 0;
  }

  /* =======================================================
     PANEL DEL MENÚ MÓVIL
  ======================================================= */

  .home-mobile-navigation-dialog {
    width: min(430px, calc(100vw - 16px));
    height: calc(100dvh - 16px);
    max-width: none;
    max-height: none;

    margin: auto;
    padding: 0;

    overflow: hidden;

    border: 0;
    border-radius: 18px;

    background:
      linear-gradient(
        180deg,
        var(--home-navy-deep),
        var(--home-navy-night)
      );

    color: var(--home-white);

    box-shadow: var(--home-shadow-dialog);
  }

  .home-mobile-navigation-dialog[open] {
    display: block;
  }

  .home-mobile-navigation-dialog::backdrop {
    background: rgba(3, 10, 18, 0.82);

    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
  }

  .home-mobile-navigation-surface {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;

    padding:
      max(20px, env(safe-area-inset-top))
      20px
      max(24px, env(safe-area-inset-bottom));

    overflow-y: auto;

    scrollbar-width: none;
  }

  .home-mobile-navigation-surface::-webkit-scrollbar {
    display: none;
  }

  .home-mobile-navigation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding-bottom: 18px;

    border-bottom: 1px solid rgba(247, 243, 237, 0.1);
  }

  .home-mobile-navigation-logo {
    width: auto;
    height: 40px;
    max-width: 150px;

    object-fit: contain;
  }

  .home-mobile-navigation-close {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid rgba(247, 243, 237, 0.18);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.04);
    color: var(--home-white);

    font-size: 1.5rem;
    line-height: 1;
  }

  .home-mobile-navigation-language {
    width: fit-content;

    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-top: 14px;
    padding: 8px 10px;

    border: 1px solid rgba(247, 243, 237, 0.12);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.03);
  }

  .home-mobile-navigation-list {
    display: flex;
    flex-direction: column;
    gap: 6px;

    margin-top: 18px;
  }

  .home-mobile-navigation-link {
    min-height: 50px;

    display: flex;
    align-items: center;

    padding: 0 14px;

    border-left: 3px solid transparent;
    border-radius: 11px;

    color: rgba(247, 243, 237, 0.76);

    font-size: 0.82rem;
    font-weight: 720;
  }

  .home-mobile-navigation-link.is-active {
    border-left-color: var(--home-copper-primary);

    background: rgba(255, 255, 255, 0.08);
    color: var(--home-white);
  }

  .home-mobile-navigation-link.is-disabled {
    opacity: 0.46;
  }

  .home-mobile-navigation-access {
    width: 100%;
    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: auto;
    padding: 0 18px;

    border: 1px solid rgba(224, 160, 108, 0.72);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.045);
    color: var(--home-white);

    font-size: 0.8rem;
    font-weight: 850;
  }

  .home-mobile-navigation-cta {
    width: 100%;
    min-height: 50px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 10px;
    padding: 0 18px;

    border: 0;
    border-radius: 12px;

    background:
      linear-gradient(
        135deg,
        var(--home-copper-light),
        var(--home-copper-primary)
      );

    color: #ffffff;

    font-size: 0.8rem;
    font-weight: 850;
  }

  /* =======================================================
     CONTENIDO GENERAL
  ======================================================= */

  .home-properties {
    padding:
      14px
      14px
      60px;
  }

  .home-properties-container {
    width: 100%;
  }

  /* =======================================================
     BARRA COMPACTA DE FILTROS
  ======================================================= */

  .home-mobile-filter-bar {
    position: sticky;
    top: calc(var(--home-header-height) + 8px);
    z-index: 910;

    width: 100%;

    display: grid;
    grid-template-columns:
      minmax(0, 1fr)
      auto;
    align-items: center;
    gap: 10px;

    margin-bottom: 24px;
    padding: 9px;

    border: 1px solid var(--home-border);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.97);

    box-shadow:
      0 8px 24px rgba(12, 30, 48, 0.12);

    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  .home-mobile-filter-summary {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 2px;

    padding-left: 5px;
  }

  .home-mobile-filter-summary strong {
    color: var(--home-text);

    font-size: 0.76rem;
    line-height: 1.2;
  }

  .home-mobile-filter-summary span {
    overflow: hidden;

    color: var(--home-text-secondary);

    font-size: 0.66rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-mobile-filter-open {
    min-width: 108px;
    min-height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 0 15px;

    border: 1px solid var(--home-navy-night);
    border-radius: 10px;

    background: var(--home-navy-night);
    color: #ffffff;

    font-size: 0.73rem;
    font-weight: 850;
  }

  .home-mobile-filter-open-icon {
    width: 18px;
    height: 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /*
   * El formulario original queda oculto dentro del flujo
   * de la página en tablet y móvil.
   *
   * El mismo formulario será colocado dentro del diálogo
   * mediante la estructura indicada en index.html.
   */

  .home-properties-container
    > .home-filters {
    display: none;
  }

  /* =======================================================
     DIÁLOGO DE FILTROS
  ======================================================= */

  .home-filter-dialog {
    width: min(470px, 100vw);
    height: 100dvh;
    max-width: none;
    max-height: none;

    margin: 0 0 0 auto;
    padding: 0;

    overflow: hidden;

    border: 0;
    border-radius: 0;

    background: #ffffff;
    color: var(--home-text);

    box-shadow: var(--home-shadow-dialog);
  }

  .home-filter-dialog[open] {
    display: block;
  }

  .home-filter-dialog::backdrop {
    background: rgba(3, 10, 18, 0.72);

    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }

  .home-filter-dialog-surface {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;

    background: #ffffff;
  }

  .home-filter-dialog-header {
    min-height: 70px;

    display: grid;
    grid-template-columns:
      auto
      minmax(0, 1fr)
      auto;
    align-items: center;
    gap: 12px;

    padding:
      max(14px, env(safe-area-inset-top))
      18px
      12px;

    border-bottom: 1px solid var(--home-border);
  }

  .home-filter-dialog-reset {
    min-height: 38px;

    padding: 0 12px;

    border: 1px solid rgba(199, 122, 69, 0.55);
    border-radius: 9px;

    background: rgba(199, 122, 69, 0.06);
    color: var(--home-copper-primary);

    font-size: 0.72rem;
    font-weight: 800;

    transition:
      background-color var(--home-transition-fast),
      border-color var(--home-transition-fast);
  }

  .home-filter-dialog-reset:hover {
    border-color: var(--home-copper-primary);
    background: rgba(199, 122, 69, 0.12);
  }

  .home-filter-dialog-title {
    margin: 0;

    color: var(--home-text);

    font-size: 0.95rem;
    font-weight: 850;
    text-align: center;
  }

  .home-filter-dialog-close {
    width: 40px;
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: #f4f6f8;
    color: var(--home-text);

    font-size: 1.35rem;
    line-height: 1;
  }

  .home-filter-dialog-body {
    flex: 1 1 auto;

    padding: 20px 18px;

    overflow-y: auto;

    overscroll-behavior: contain;

    scrollbar-width: none;
  }

  .home-filter-dialog-body::-webkit-scrollbar {
    display: none;
  }

  .home-filter-dialog .home-filters {
    position: static;

    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;

    padding: 0;

    border: 0;
    border-radius: 0;

    background: transparent;

    box-shadow: none;

    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .home-filter-dialog .home-filter-field {
    width: 100%;

    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .home-filter-dialog
    .home-filter-field
    label {
    position: static;

    width: auto;
    height: auto;

    overflow: visible;

    clip: auto;
    clip-path: none;

    color: var(--home-text);

    font-size: 0.74rem;
    font-weight: 850;
    white-space: normal;
  }

  .home-filter-dialog
    .home-filter-field
    select {
    width: 100%;
    min-height: 48px;

    padding: 0 13px;

    border: 1px solid var(--home-border);
    border-radius: 11px;

    background: #ffffff;

    font-size: 0.8rem;
  }

  .home-filter-dialog
    .home-filter-actions {
    display: none;
  }

  .home-filter-dialog-footer {
    display: grid;
    grid-template-columns:
      minmax(0, 0.86fr)
      minmax(0, 1.14fr);
    gap: 10px;

    padding:
      12px
      18px
      max(16px, env(safe-area-inset-bottom));

    border-top: 1px solid var(--home-border);

    background: #ffffff;
  }

  .home-filter-dialog-footer button {
    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 14px;

    border-radius: 11px;

    font-size: 0.76rem;
    font-weight: 850;
  }

  .home-filter-dialog-footer-reset {
    border: 1.5px solid var(--home-copper-primary);

    background: rgba(199, 122, 69, 0.06);
    color: var(--home-copper-primary);

    box-shadow:
      0 3px 10px rgba(199, 122, 69, 0.1);

    transition:
      background-color var(--home-transition-fast),
      color var(--home-transition-fast),
      border-color var(--home-transition-fast),
      transform var(--home-transition-fast);
  }

  .home-filter-dialog-footer-reset:hover {
    transform: translateY(-1px);

    border-color: var(--home-copper-light);

    background: rgba(199, 122, 69, 0.12);
    color: var(--home-copper-primary);
  }

  .home-filter-dialog-footer-reset:active {
    transform: translateY(0);
  }

  .home-filter-dialog-footer-apply {
    border: 1px solid var(--home-navy-night);

    background: var(--home-navy-night);
    color: #ffffff;
  }

  /* =======================================================
     ENCABEZADO DEL CATÁLOGO
  ======================================================= */

  .home-properties-header {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 16px;

    margin-top: 0;
    margin-bottom: 20px;
  }

  .home-properties-eyebrow {
    margin-bottom: 7px;

    font-size: 0.68rem;
  }

  .home-properties-header h1 {
    font-size: clamp(2rem, 8vw, 2.9rem);
    line-height: 0.98;
  }

  .home-properties-header p {
    margin-top: 12px;
  }

  .home-properties-header-actions {
    width: 100%;

    justify-content: flex-start;
  }

  .home-properties-sort {
    width: 100%;
    min-width: 0;
  }

  .home-properties-sort select {
    width: 100%;
    min-width: 0;

    border-color: var(--home-border);
  }

  /* =======================================================
     TARJETAS
  ======================================================= */

  .home-properties-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 22px 16px;
  }

  .home-property-card-media {
    aspect-ratio: 16 / 9;
  }

  /* =======================================================
     FOOTER
  ======================================================= */

  .home-footer-main {
    padding:
      50px
      20px
      42px;
  }

  .home-footer-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .home-footer-brand-description {
    max-width: 520px;
  }

  .home-footer-profile-cta {
    width: 100%;
  }

  .home-footer-bottom-container {
    width: calc(100% - 40px);
    min-height: 0;

    align-items: flex-start;
    flex-direction: column;
    gap: 12px;

    padding-block: 24px;
  }

  .home-footer-bottom-information {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-footer-signature {
    max-width: none;

    text-align: left;
  }
}

/* ---------------------------------------------------------
   MÓVILES
--------------------------------------------------------- */

@media (max-width: 560px) {
  :root {
    --home-header-height: 60px;
  }

  .home-header-container {
    width: calc(100% - 20px);
  }

  .home-brand-logo {
    height: 37px;
    max-width: 136px;
  }

  .home-language-selector {
    display: none;
  }

  .home-mobile-menu-toggle {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .home-properties {
    padding:
      12px
      10px
      52px;
  }

  .home-mobile-filter-bar {
    top: calc(var(--home-header-height) + 6px);

    margin-bottom: 22px;
  }

  .home-mobile-filter-summary span {
    max-width: 160px;
  }

  .home-mobile-filter-open {
    min-width: 100px;

    padding-inline: 12px;
  }

  .home-filter-dialog {
    width: 100vw;
  }

  .home-properties-header h1 {
    font-size: clamp(1.9rem, 10.5vw, 2.5rem);
  }

  .home-properties-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .home-property-card-body {
    padding-top: 13px;
  }

  .home-property-card-price {
    font-size: 1.02rem;
  }

  .home-property-card-title {
    font-size: 0.9rem;

    -webkit-line-clamp: 2;
  }

  .home-property-card-location {
    white-space: normal;
  }

  .home-footer-main {
    padding:
      42px
      16px
      36px;
  }

  .home-footer-brand-logo {
    height: 58px;
    max-width: 188px;
  }

  .home-footer-profile-cta {
    padding: 24px 20px;
  }

  .home-footer-profile-button {
    width: 100%;
  }

  .home-footer-bottom-container {
    width: calc(100% - 32px);
  }
}

/* ---------------------------------------------------------
   MÓVILES PEQUEÑOS
--------------------------------------------------------- */

@media (max-width: 390px) {
  .home-mobile-filter-summary span {
    max-width: 125px;
  }

  .home-mobile-filter-open {
    min-width: 92px;

    padding-inline: 10px;
  }

  .home-filter-dialog-header {
    padding-inline: 14px;
  }

  .home-filter-dialog-body,
  .home-filter-dialog-footer {
    padding-inline: 14px;
  }
}

/* =========================================================
   AJUSTES MÍNIMOS — MODAL DE PROPIEDAD EN TABLET Y MÓVIL
   Mantiene la estructura y el desplazamiento actuales.
========================================================= */

@media (max-width: 820px) {
  /*
   * Se conserva el desplazamiento natural de todo el modal.
   * Solo se reduce ligeramente la galería y los espacios.
   */

  .home-property-dialog-gallery {
    height: clamp(230px, 37dvh, 340px);
    min-height: 230px;
  }

  .home-property-dialog-content {
    padding: 24px 20px 28px;
  }

  .home-property-dialog-content
    > [data-property-dialog-operation] {
    margin-bottom: 6px;
  }

  .home-property-dialog-content
    > [data-property-dialog-title] {
    font-size: clamp(1.55rem, 5.7vw, 2rem);
    line-height: 1.04;
  }

  .home-property-dialog-content
    > [data-property-dialog-location] {
    margin-top: 9px;
  }

  .home-property-dialog-content
    > [data-property-dialog-price] {
    margin-top: 13px;

    font-size: 1.18rem;
  }

  .home-property-dialog-features {
    gap: 8px;

    margin-top: 15px;
  }

  .home-property-dialog-feature {
    padding: 9px 10px;
  }

  .home-property-dialog-agent {
    gap: 10px;

    margin-top: 14px;
    padding: 10px;
  }

  .home-property-dialog-actions {
    grid-template-columns: 1fr;
    gap: 10px;

    margin-top: 13px;
  }

  .home-property-dialog-agent-link,
  .home-property-dialog-share-button {
    position: static;

    width: 100%;
    min-width: 0;
    min-height: 46px;
  }
}

@media (max-width: 520px) {
  .home-property-dialog-gallery {
    height: clamp(205px, 31dvh, 275px);
    min-height: 205px;
  }

  .home-property-dialog-content {
    padding: 20px 15px 24px;
  }

  .home-property-dialog-close {
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));

    width: 38px;
    height: 38px;

    font-size: 1.45rem;
  }

  .home-property-dialog-gallery-control {
    width: 38px;
    height: 38px;

    font-size: 1.6rem;
  }

  .home-property-dialog-gallery-counter {
    right: 10px;
    bottom: 10px;

    min-width: 50px;
    min-height: 28px;

    font-size: 0.66rem;
  }

  .home-property-dialog-content
    > [data-property-dialog-operation] {
    margin-right: 38px;

    font-size: 0.62rem;
  }

  .home-property-dialog-content
    > [data-property-dialog-title] {
    margin-right: 20px;

    font-size: clamp(1.45rem, 7.5vw, 1.85rem);
    line-height: 1.02;
  }

  .home-property-dialog-content
    > [data-property-dialog-location] {
    font-size: 0.76rem;
  }

  .home-property-dialog-content
    > [data-property-dialog-price] {
    margin-top: 11px;

    font-size: 1.05rem;
  }

  .home-property-dialog-features {
    grid-template-columns:
      repeat(4, minmax(0, 1fr));

    gap: 0;

    margin-top: 12px;
    margin-bottom: 14px;
    padding: 10px 2px;

    border-top: 1px solid var(--home-border);
    border-bottom: 1px solid var(--home-border);
  }

  .home-property-dialog-feature {
    position: relative;

    min-width: 0;
    min-height: 32px;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;

    padding: 0 5px;

    border: 0;
    border-right: 1px solid var(--home-border);
    border-radius: 0;

    background: transparent;

    box-shadow: none;
  }

  .home-property-dialog-feature:last-child {
    border-right: 0;
  }

  .home-property-dialog-feature::before {
    content: "";

    width: 15px;
    height: 15px;
    flex: 0 0 15px;

    background-color: var(--home-copper-primary);

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    -webkit-mask-position: center;
    mask-position: center;

    -webkit-mask-size: contain;
    mask-size: contain;
  }

  /* Habitaciones */
  .home-property-dialog-feature:nth-child(1)::before {
    -webkit-mask-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 20v-8M21 20v-5a3 3 0 0 0-3-3H8a3 3 0 0 0-3 3v5M3 17h18M7 12V8h5a3 3 0 0 1 3 3v1'/%3E%3C/svg%3E");

    mask-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 20v-8M21 20v-5a3 3 0 0 0-3-3H8a3 3 0 0 0-3 3v5M3 17h18M7 12V8h5a3 3 0 0 1 3 3v1'/%3E%3C/svg%3E");
  }

  /* Baños */
  .home-property-dialog-feature:nth-child(2)::before {
    -webkit-mask-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16v2a5 5 0 0 1-5 5H9a5 5 0 0 1-5-5v-2ZM7 12V6a3 3 0 0 1 6 0M4 19l-1 2M20 19l1 2'/%3E%3C/svg%3E");

    mask-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16v2a5 5 0 0 1-5 5H9a5 5 0 0 1-5-5v-2ZM7 12V6a3 3 0 0 1 6 0M4 19l-1 2M20 19l1 2'/%3E%3C/svg%3E");
  }

  /* Estacionamientos */
  .home-property-dialog-feature:nth-child(3)::before {
    -webkit-mask-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 17 1.5-5h11L19 17M3 17h18v3H3zM7 20v1M17 20v1M8 12l1-3h6l1 3'/%3E%3C/svg%3E");

    mask-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 17 1.5-5h11L19 17M3 17h18v3H3zM7 20v1M17 20v1M8 12l1-3h6l1 3'/%3E%3C/svg%3E");
  }

  /* Área */
  .home-property-dialog-feature:nth-child(4)::before {
    -webkit-mask-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 16 12-12 4 4L8 20H4v-4ZM13 7l4 4M7 17l2 2'/%3E%3C/svg%3E");

    mask-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 16 12-12 4 4L8 20H4v-4ZM13 7l4 4M7 17l2 2'/%3E%3C/svg%3E");
  }

  .home-property-dialog-feature strong {
    color: var(--home-navy-night);

    font-size: 0.72rem;
    line-height: 1;
    white-space: nowrap;
  }

  .home-property-dialog-feature span {
    display: none;
  }

  .home-property-dialog-feature:hover {
    transform: none;

    border-color: var(--home-border);

    background: transparent;

    box-shadow: none;
  }

  .home-property-dialog-agent {
    gap: 9px;

    margin-top: 12px;
    padding: 9px;
  }

  .home-property-dialog-agent-photo {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .home-property-dialog-agent strong {
    font-size: 0.8rem;
  }

  .home-property-dialog-agent span:last-child {
    font-size: 0.62rem;
  }

  .home-property-dialog-actions {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 8px;

    margin-top: 10px;
  }

  .home-property-dialog-agent-link,
  .home-property-dialog-share-button {
    min-height: 42px;

    padding-inline: 8px;

    font-size: 0.7rem;
    line-height: 1.15;
  }
}


/* ==========================================================
   CONFIRMACIÓN — SOLICITUD DE PERFIL
========================================================== */

.home-profile-request-success-message {
  position: fixed;
  z-index: 9999;
  left: 50%;
  bottom: 32px;

  width: min(92%, 560px);
  padding: 18px 22px;

  color: #ffffff;
  background: #061426;

  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;

  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.28);

  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.55;
  text-align: center;

  opacity: 0;
  visibility: hidden;

  transform: translate(-50%, 20px);

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease;
}

.home-profile-request-success-message.is-visible {
  opacity: 1;
  visibility: visible;

  transform: translate(-50%, 0);
}

@media (max-width: 640px) {
  .home-profile-request-success-message {
    bottom: 20px;

    width: calc(100% - 32px);
    padding: 16px 18px;

    font-size: 0.92rem;
  }
}
/* =========================================================
   FASE 13B.1 · PAGINACIÓN REAL DEL HOME
========================================================= */

.home-pagination {
  align-items: center;
  flex-wrap: wrap;
}

.home-pagination-button {
  min-width: 42px;
  min-height: 42px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 12px;

  border: 1px solid var(--home-border);
  border-radius: 10px;

  background: #ffffff;
  color: var(--home-text);

  font-size: 0.8rem;
  font-weight: 800;

  transition:
    transform var(--home-transition-fast),
    border-color var(--home-transition-fast),
    background-color var(--home-transition-fast),
    color var(--home-transition-fast);
}

.home-pagination-button:hover:not(:disabled):not(.is-current) {
  transform: translateY(-1px);
  border-color: var(--home-copper-primary);
}

.home-pagination-button.is-current {
  border-color: var(--home-navy-night);
  background: var(--home-navy-night);
  color: var(--home-white);
  cursor: default;
}

.home-pagination-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.home-pagination-separator {
  min-width: 24px;
  text-align: center;
  color: var(--home-text-secondary);
  font-weight: 800;
}

@media (max-width: 520px) {
  .home-pagination {
    gap: 6px;
  }

  .home-pagination-button {
    min-width: 38px;
    min-height: 38px;
    padding-inline: 10px;
  }
}