:root {
  font-family: system-ui, sans-serif;
  color: #232326;
  background: #f6f5f3;
  --accent: #ba0051;
  --accent-dark: #960040;
  --hot-pink: #ff3988;
  --line: #e5e0df;
  --muted: #605d61;
  --white: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; }
.wrap { width: min(1140px, calc(100% - 48px)); margin-inline: auto; }
a { color: inherit; text-decoration: none; }
.site-header { background: var(--white); }
.header-content, .brand, nav { display: flex; align-items: center; }
.header-content { justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { gap: .55rem; font-size: 1.06rem; font-weight: 800; line-height: 1.15; }
.brand img { object-fit: contain; }
.brand small { display: block; margin-top: .26rem; color: var(--muted); font-size: .76rem; font-weight: 525; }
nav { gap: clamp(.5rem, 4vw, 2.1rem); font-weight: 650; font-size: .93rem; }
nav a { display: inline-grid; align-items: center; min-height: 44px; }
nav a:hover { color: var(--accent); }
.hero {
  color: var(--white);
  background: #222124;
  background-image: linear-gradient(90deg, #222124 0%, #222124 34%, #222124b0 60%, #22212419 100%), url('/portada.jpg');
  background-repeat: no-repeat;
  background-size: 100% 100%, max(58%, 620px) auto;
  background-position: center, right center;
}
.hero-content { display: flex; align-items: center; min-height: 376px; padding-block: 58px 95px; }
.hero-copy { max-width: 640px; }
.eyebrow { color: #ff7fac; font-weight: 750; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { letter-spacing: -.045em; }
h1 { font-size: clamp(2.35rem, 5vw, 4.4rem); line-height: 1; margin-bottom: 1rem; }
h1 span { color: var(--hot-pink); }
#hero-heading { white-space: pre-line; }
.hero-copy p:last-child { color: #f2e9ed; margin-bottom: 0; line-height: 1.55; }
.search-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, .9fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: .85rem;
  margin-top: -44px;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--white);
  box-shadow: 0 10px 28px #20192015;
}
label { font-weight: 700; font-size: .87rem; }
input, select, button { font: inherit; }
input, select {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-top: .3rem;
  padding: .65rem .7rem;
  border: 1px solid #d1c9ce;
  border-radius: .55rem;
  background: var(--white);
  color: inherit;
  font-size: 1rem;
  font-weight: 500;
}
button {
  min-height: 44px;
  padding: .6rem .85rem;
  border: 1px solid var(--accent);
  border-radius: .55rem;
  background: var(--accent);
  color: var(--white);
  cursor: pointer;
  font-weight: 700;
}
button:hover { background: var(--accent-dark); }
.search-submit { min-height: 46px; padding-inline: 1rem; }
.search-submit span { margin-left: .3rem; }
:focus-visible { outline: 3px solid #940043; outline-offset: 3px; }
.hero :focus-visible { outline-color: #ff7fac; }
.listings { padding-block: clamp(1.6rem, 5vw, 3.5rem); scroll-margin-top: 1rem; }
.listing-intro { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .4rem 1rem; margin-bottom: 1rem; }
h2 { font-size: clamp(1.6rem, 4vw, 2.45rem); line-height: 1.08; margin-bottom: .35rem; }
.listing-intro p, .facts { color: var(--muted); }
.listing-intro p { margin: 0; font-size: .9rem; }
#status { font-weight: 650; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.card { overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: .9rem; background: var(--white); }
.card-image { position: relative; }
img { display: block; }
.pill { position: absolute; top: .7rem; left: .7rem; padding: .25rem .65rem; border-radius: 1rem; background: var(--white); color: var(--accent-dark); font-size: .83rem; font-weight: 750; pointer-events: none; }
.gallery { position: relative; background: #eae6e7; }
.gallery-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.gallery-track:focus-visible { outline-offset: -4px; }
.gallery-slide { aspect-ratio: 16 / 10; overflow: hidden; scroll-snap-align: start; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-enlarge { display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; cursor: zoom-in; }
.listing-seal { position: absolute; inset: .55rem .65rem auto auto; display: flex; align-items: center; gap: .45rem; padding: .18rem .65rem; border: 2px solid #d43176; border-radius: .45rem; background: #fff7fa; color: #730034; text-transform: uppercase; font-weight: 850; letter-spacing: .035em; pointer-events: none; }
.listing-seal b { color: #bd0050; font: bold 2.1rem/.95 Georgia,serif; }
.closed-status { display: inline-block; margin-bottom: .65rem; padding: .22rem .6rem; border-radius: .4rem; color: #730034; background: #ffe3ee; font-weight: 750; }
.gallery-empty { display: grid; place-items: center; aspect-ratio: 16 / 10; color: var(--muted); }
.gallery-step { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #fff; border-radius: 50%; background: #252126db; font-size: 1.65rem; line-height: 1; }
.gallery-step:hover { background: #262127; }
.gallery-prev { left: .55rem; }
.gallery-next { right: .55rem; }
.gallery-count { position: absolute; right: .65rem; bottom: .65rem; border-radius: 1rem; padding: .24rem .55rem; color: #fff; background: #252126e8; font-size: .8rem; font-weight: 700; pointer-events: none; }
.card-content { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.zone { color: var(--accent-dark); font-weight: 650; font-size: .87rem; margin-bottom: .45rem; }
.listing-reference { display: inline-block; margin-inline-start: .35rem; color: var(--muted); font-size: .8rem; white-space: nowrap; }
.card h3 { font-size: 1.2rem; margin-bottom: .45rem; line-height: 1.22; }
.property-title-button { min-height: 44px; padding: .15rem 0; border: 0; color: inherit; background: transparent; text-align: left; }
.property-title-button:hover { color: var(--accent-dark); background: transparent; text-decoration: underline; }
.facts { font-size: .92rem; margin-bottom: .75rem; }
.card-description { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--muted); font-size: .88rem; line-height: 1.4; }
.card-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .45rem; margin-top: auto; }
.card-bottom strong { font-size: 1.2rem; }
.button-secondary { background: var(--white); color: var(--accent-dark); border-color: var(--line); }
.button-secondary:hover { background: #fff0f7; }
.agency { border-top: 1px solid var(--line); padding-block: 1.65rem; }
.agency p { color: var(--muted); margin-bottom: 0; line-height: 1.5; }
.agency > p { max-width: 62ch; }
.promotion { max-width: 380px; margin-top: 1rem; }
.promotion .zone { color: var(--accent-dark); margin-bottom: .45rem; }
.promotion .facts { margin-bottom: .75rem; }
#promotion-status { margin-top: .75rem; }
footer { background: #232326; padding-block: 1.3rem; color: var(--white); font-size: .9rem; }
dialog { width: min(680px, calc(100% - 26px)); max-height: calc(100% - 28px); border: 1px solid var(--line); border-radius: .9rem; padding: 1rem; color: inherit; }
dialog::backdrop { background: #19181bb8; }
#close-property { display: block; margin: 0 0 1rem auto; }
#close-property span { margin-left: .2rem; font-size: 1.2em; }
.gallery-detail { overflow: hidden; border-radius: .5rem; }
.description-heading { margin: 1rem 0 .35rem; }
.description { white-space: pre-wrap; line-height: 1.55; }
.property-actions, .contact-links { display: flex; flex-wrap: wrap; gap: .45rem; }
.property-actions { margin-bottom: .9rem; }
.contact-link { display: inline-grid; place-items: center; min-height: 44px; padding: .5rem .73rem; border: 1px solid #d1c9ce; border-radius: .55rem; background: var(--white); color: var(--accent-dark); font-weight: 700; }
.contact-link:hover { background: #fff0f7; }
#office-contact, .agency .contact-details { margin-top: .65rem; }
.contact-details { overflow-wrap: anywhere; }
#request-modal { width: min(490px, calc(100% - 26px)); }
#close-request { display: block; margin: 0 0 1rem auto; }
.request-help { color: var(--muted); line-height: 1.45; }
#visit-contact { margin-block: .85rem; padding-bottom: .85rem; border-bottom: 1px solid var(--line); }
#visit-contact p { margin-bottom: .5rem; }
#request-fields { display: grid; gap: .65rem; margin-bottom: .8rem; }
#request-privacy { margin: 0; color: var(--muted); font-size: .86rem; }
#request-privacy a { text-decoration: underline; }
#request-result:not(:empty) { margin-top: .6rem; padding: .8rem; border-radius: .55rem; background: #fff0f7; color: var(--accent-dark); line-height: 1.45; }
@media (max-width: 850px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-location, .search-submit { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .header-content { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 4px; }
  .brand { font-size: .96rem; gap: .3rem; }
  .brand img { width: 42px; height: 42px; }
  .brand small { font-size: .65rem; }
  nav { width: 100%; justify-content: space-between; gap: .45rem; font-size: .83rem; }
  nav a { min-height: 41px; }
  .hero {
    background-image: linear-gradient(90deg, #211f23ee, #211f2366), url('/portada.jpg');
    background-size: cover;
    background-position: center;
  }
  .hero-content { min-height: 218px; padding-block: 24px 46px; }
  .hero-copy p:last-child { font-size: .92rem; max-width: 29ch; }
  .search-panel { margin-top: -31px; padding: .8rem; gap: .58rem .65rem; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .card-image .gallery-slide, .card-image .gallery-empty { aspect-ratio: 2 / 1; }
}
@media (max-width: 360px) {
  nav { gap: .4rem; }
  .header-content { width: calc(100% - 20px); }
}

nav a[aria-current="page"] { color: var(--accent-dark); }
.listing-tools, .operation-links { display: flex; align-items: center; gap: .35rem; }
.listing-tools { position: sticky; top: 0; z-index: 2; justify-content: space-between; flex-wrap: wrap; padding-block: .45rem; background: #f6f5f3; }
.listing-tools button { padding-inline: .75rem; }
.operation-links button[aria-pressed="true"] { background: #292629; border-color: #292629; color: var(--white); }
button:disabled { cursor: default; color: #666067; background: #eee9eb; }
.comparison-hint { font-size: .87rem; color: var(--muted); margin: .35rem 0 1rem; }
.compare-choice { align-self: flex-start; margin-top: .35rem; border-color: transparent; color: var(--accent-dark); background: transparent; padding-inline: .15rem; font-size: .88rem; }
.compare-choice:hover, .compare-choice[aria-pressed="true"] { background: #fff0f7; border-color: #fff0f7; }
.comparison-table { overflow: auto; }
.comparison-table table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.comparison-table th, .comparison-table td { min-width: 85px; padding: .6rem .45rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.comparison-table th:first-child { min-width: 85px; }
.comparison-table thead { background: #f8f3f5; }
#close-comparison { display: block; margin: 0 0 1rem auto; }
#reset-filters { margin-top: .8rem; }
.promotion { max-width: none; }
[hidden] { display: none !important; }
.map-link { display: inline-flex; gap: .85rem; align-items: center; min-height: 60px; padding: .65rem 1rem; margin-top: 1rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--white); }
.map-link:hover { border-color: var(--accent); }
.map-link small { display: block; color: var(--accent-dark); margin-top: .2rem; font-weight: 650; }
.map-marker { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50% 50% 50% 0; background: var(--accent); transform: rotate(-45deg); }
.map-marker::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--white); }
.service-hero { background: #222124; color: var(--white); padding-block: clamp(2.2rem, 7vw, 5rem); }
.service-hero h1 { max-width: 15ch; }
.service-hero p { margin-bottom: 0; color: #f2e9ed; }
.services { padding-block: 2rem; }
.services article { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: .85rem; background: var(--white); }
.service-photo { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.service-body { flex: 1; display: flex; flex-direction: column; gap: .55rem; padding: 1.15rem; }
.services h2 { font-size: 1.3rem; margin-bottom: .55rem; }
.services p { color: var(--muted); line-height: 1.55; margin-bottom: 0; }
.services details { margin-top: auto; }
.services summary { display: list-item; width: fit-content; cursor: pointer; padding: .6rem .7rem; border-radius: .5rem; color: #fff; background: var(--accent); font-weight: 700; }
.services [data-service-links] { margin-top: .65rem; }
.service-contact { color: var(--accent-dark); font-weight: 700; }
@media (max-width: 560px) {
  nav { font-size: clamp(.73rem, 3.35vw, .83rem); gap: .3rem; }
  .listing-tools button { font-size: .82rem; padding-inline: .5rem; }
}
