/* Catálogo compartido: estructura de tarjetas y ficha. Colores y letras: variables que define cada marca.css
   --c-fondo --c-papel --c-tinta --c-tenue --c-linea --c-acento --c-sobre-acento --c-display --c-radio */

/* tarjeta */
.prop { display: grid; grid-template-rows: auto 1fr; color: var(--c-tinta); text-decoration: none; background: var(--c-papel);
  border-radius: var(--c-radio, 0); overflow: hidden; }
.prop__foto { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-linea); }
.prop--reel .prop__foto img { object-position: 50% 88%; }
.prop__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--curva); }
.prop:hover .prop__foto img, .prop:focus-visible .prop__foto img { transform: scale(1.04); }
.prop__sinfoto { position: absolute; inset: 0; display: grid; place-items: center; font-size: .8rem; color: var(--c-tenue); padding: 1rem; text-align: center; }
.prop__op { position: absolute; left: 12px; top: 12px; padding: 5px 10px 4px; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  background: var(--c-papel); color: var(--c-tinta); border-radius: var(--c-radio, 0); }
.prop__txt { display: grid; gap: 6px; align-content: start; padding: 16px 18px 20px; }
.prop__dist { display: flex; align-items: center; gap: 8px; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c-acento-texto, var(--c-acento)); }
.prop__titulo { font-family: var(--c-display); font-size: 1.18rem; line-height: 1.22; }
.prop__lugar { font-size: .88rem; color: var(--c-tenue); }
.prop__precio { font-size: 1.05rem; font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; }
.prop__precio small { font-weight: 400; color: var(--c-tenue); font-size: .8rem; }

/* ficha */
.ficha { width: min(1180px, calc(100vw - 24px)); max-height: calc(100svh - 24px); padding: 0; border: 0; border-radius: var(--c-radio, 0);
  background: var(--c-fondo); color: var(--c-tinta); overflow: hidden; }
.ficha::backdrop { background: rgb(8 12 18 / .66); }
html.ficha-abierta { overflow: hidden; }
.ficha__caja { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); max-height: calc(100svh - 24px); }
.ficha__cerrar { position: absolute; right: 10px; top: 10px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; font-size: 1.6rem; line-height: 1;
  background: var(--c-fondo); color: var(--c-tinta); box-shadow: 0 2px 10px rgb(0 0 0 / .15); }
.ficha__galeria { background: #0d0f12; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
.ficha__visor { position: relative; min-height: 0; display: grid; place-items: center; touch-action: pan-y; }
.ficha__visor img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.ficha__sinfoto { display: none; color: #cfd4da; font-size: .9rem; padding: 2rem; }
.ficha.sin-fotos .ficha__visor img, .ficha.sin-fotos .ficha__ant, .ficha.sin-fotos .ficha__sig, .ficha.sin-fotos .ficha__cuenta { display: none; }
.ficha.sin-fotos .ficha__sinfoto { display: block; }
.ficha.una-foto .ficha__ant, .ficha.una-foto .ficha__sig, .ficha.una-foto .ficha__miniaturas { display: none; }
.ficha__ant, .ficha__sig { position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; border-radius: 50%; font-size: 1.8rem; line-height: 1;
  background: rgb(255 255 255 / .9); color: #111; }
.ficha__ant { left: 12px; } .ficha__sig { right: 12px; }
.ficha__cuenta { position: absolute; left: 14px; bottom: 12px; padding: 3px 9px; font-size: .75rem; color: #fff; background: rgb(0 0 0 / .5); border-radius: 99px; }
.ficha__miniaturas { display: flex; gap: 6px; padding: 8px; overflow-x: auto; scrollbar-width: thin; }
.ficha__miniaturas button { flex: 0 0 72px; aspect-ratio: 4 / 3; opacity: .55; transition: opacity .3s; outline-offset: -2px; }
.ficha__miniaturas button[aria-current="true"] { opacity: 1; box-shadow: inset 0 0 0 2px #fff; }
.ficha__miniaturas img { width: 100%; height: 100%; object-fit: cover; }
.ficha__datos { overflow-y: auto; padding: clamp(22px, 3vw, 40px); display: grid; gap: 14px; align-content: start; overscroll-behavior: contain; }
.ficha__op { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--c-tenue); padding-right: 48px; }
.ficha__titulo { font-family: var(--c-display); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.12; }
.ficha__lugar { color: var(--c-tenue); }
.ficha__precio { font-size: 1.5rem; font-weight: 600; display: grid; font-variant-numeric: tabular-nums; }
.ficha__precio small { font-size: .9rem; font-weight: 400; color: var(--c-tenue); }
.ficha__precio .ficha__gc { font-size: .9rem; font-weight: 400; color: var(--c-tenue); }
.ficha__cifras { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ficha__cifras li { padding: 6px 11px; font-size: .84rem; border: 1px solid var(--c-linea); border-radius: 99px; }
.ficha__bloque h3 { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--c-tenue); font-weight: 600; margin-bottom: 6px; }
.ficha__bloque ul { padding-left: 1.1em; display: grid; gap: 3px; font-size: .95rem; }
.ficha__acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.ficha__wa, .ficha__tel { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; text-decoration: none; border-radius: var(--c-radio-boton, 99px); font-weight: 600; }
.ficha__wa { background: var(--c-acento); color: var(--c-sobre-acento); }
.ficha__tel { border: 1px solid var(--c-tinta); color: var(--c-tinta); }
.ficha__nota { font-size: .78rem; color: var(--c-tenue); }
.ficha__nota a { color: inherit; }
@media (max-width: 899px) {
  .ficha { width: 100vw; max-width: none; height: 100svh; max-height: none; margin: 0; border-radius: 0; }
  .ficha__caja { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); height: 100svh; max-height: none; }
  .ficha__visor { aspect-ratio: 4 / 3; }
  .ficha__visor img { max-height: none; }
  .ficha__miniaturas { display: none; }
  .ficha.sin-fotos .ficha__galeria { display: none; }
}
