/* ==========================================================================
   Plantilla single de propiedad — Victor Ruiz
   Colores y fuentes reflejan los Global Colors/Fonts de Elementor.
   ========================================================================== */
.vr-prop {
	--vr-azul: #012148;
	--vr-footer: #00295C;
	--vr-dorado: #C9A96E;
	--vr-texto: #2B2B2B;
	--vr-gris: #F4F4F2;
	--vr-borde: #D8D8D2;
	--vr-tenue: #8A8A8A;
	--vr-serif: "Times New Roman MT", "Times New Roman", serif;
	--vr-sans: "Open Sauce Sans", system-ui, sans-serif;
	font-family: var(--vr-sans);
	color: var(--vr-texto);
	overflow-x: hidden;
}
.vr-wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---------- Galería ---------- */
/* La columna derecha (miniaturas) iguala exactamente la altura de la principal. */
.vr-prop__gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin-top: 28px; align-items: stretch; max-height: 90vh; }
.vr-gallery__main { position: relative; margin: 0; aspect-ratio: 3 / 2; max-height: 90vh; overflow: hidden; }
.vr-gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.vr-gallery__thumbs { display: grid; grid-auto-rows: 1fr; gap: 12px; min-height: 0; }
.vr-gallery__thumb { position: relative; margin: 0; overflow: hidden; min-height: 0; }
.vr-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.vr-gallery__thumb.has-more img { filter: brightness(0.45); }
.vr-gallery__more { position: absolute; inset: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; -webkit-appearance: none; appearance: none; font-family: var(--vr-sans); font-size: 16px; font-weight: 600; letter-spacing: .04em; cursor: pointer; }
/* Anula el estilo rosa (#c36) que el reset.css de Hello Elementor aplica a todo <button>. */
.vr-gallery__more, .vr-gallery__more:hover, .vr-gallery__more:focus, .vr-gallery__more:active { background-color: rgba(1, 33, 72, .55) !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; outline: 0 !important; color: #fff !important; }

/* ---------- Badges ---------- */
.vr-badge { position: absolute; padding: 6px 14px; font-size: 13px; font-weight: 600; letter-spacing: .3px; color: #fff; }
.vr-badge--oper { left: 0; bottom: 18px; background: var(--vr-dorado); color: var(--vr-azul); }
.vr-badge--promo { right: 0; top: 18px; background: var(--vr-footer); }

/* ---------- Encabezado ---------- */
.vr-prop__head { margin-top: 34px; }
.vr-eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--vr-azul); margin: 0 0 10px; }
.vr-prop__title { font-family: var(--vr-serif); color: var(--vr-azul); font-weight: 400; font-size: clamp(30px, 4vw, 50px); line-height: 1.08; margin: 0 0 14px; text-transform: uppercase; }
.vr-prop__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; margin-bottom: 26px; }
.vr-price { font-family: var(--vr-serif); font-weight: 700; color: var(--vr-azul); font-size: clamp(22px, 2.4vw, 30px); }
.vr-price-old { color: var(--vr-tenue); font-weight: 400; font-size: .7em; margin-left: 8px; }
.vr-price-sub { color: var(--vr-texto); font-size: 16px; }

/* ---------- Strip de 5 íconos ---------- */
.vr-strip { list-style: none; display: flex; flex-wrap: wrap; gap: 0; margin: 0; padding: 22px 0; border-top: 1px solid var(--vr-borde); border-bottom: 1px solid var(--vr-borde); }
.vr-strip__item { flex: 1 1 0; min-width: 110px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 4px 10px; position: relative; }
.vr-strip__item + .vr-strip__item::before { content: ""; position: absolute; left: 0; top: 10%; height: 80%; width: 1px; background: var(--vr-borde); }
.vr-strip__icon svg { width: 30px; height: 30px; color: var(--vr-dorado); }
.vr-strip__value { font-family: var(--vr-serif); font-size: 19px; color: var(--vr-azul); }
.vr-strip__label { font-size: 12px; color: var(--vr-tenue); }

/* ---------- Títulos de sección ---------- */
.vr-h2 { font-family: var(--vr-serif); color: var(--vr-azul); font-weight: 400; font-size: clamp(24px, 2.6vw, 32px); margin: 0 0 18px; }

/* ---------- Descripción ---------- */
.vr-prop__desc { margin-top: 46px; }
.vr-richtext { max-width: 820px; line-height: 1.7; font-size: 17px; color: #3a3a3a; }
.vr-richtext p { margin: 0 0 1em; }

/* ---------- Tablas / tipologías ---------- */
.vr-prop__tipos { margin-top: 46px; }
.vr-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.vr-table th, .vr-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--vr-borde); }
.vr-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--vr-azul); }

/* ---------- Ficha técnica ---------- */
.vr-prop__ficha { margin-top: 46px; }
.vr-ficha { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin: 0; }
.vr-ficha__row { display: flex; flex-direction: column; padding: 14px 0; border-bottom: 1px solid var(--vr-borde); }
.vr-ficha__row dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--vr-tenue); margin-bottom: 3px; }
.vr-ficha__row dd { margin: 0; font-family: var(--vr-serif); font-size: 18px; color: var(--vr-azul); }

/* ---------- Relacionadas ---------- */
.vr-prop__rel { margin-top: 56px; margin-bottom: 64px; background: var(--vr-gris); padding-top: 40px; padding-bottom: 48px; border-radius: 2px; }
.vr-rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.vr-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; background: #fff; }
.vr-card__img { display: block; aspect-ratio: 16 / 10; background: var(--vr-borde) center/cover no-repeat; }
.vr-card__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 3px; }
.vr-card__price { font-family: var(--vr-serif); font-weight: 700; color: var(--vr-azul); font-size: 19px; }
.vr-card__title { font-family: var(--vr-serif); color: var(--vr-azul); font-size: 17px; }
.vr-card__meta { font-size: 13px; color: var(--vr-tenue); }

/* ---------- Modal carrusel ---------- */
.vr-carousel { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; background: rgba(2, 12, 28, .94); }
.vr-carousel[hidden] { display: none; }
.vr-carousel__stage { margin: 0; cursor: zoom-out; }
.vr-carousel__stage img { max-width: 86vw; max-height: 86vh; object-fit: contain; display: block; box-shadow: 0 12px 48px rgba(0,0,0,.5); }
.vr-carousel__nav, .vr-carousel__close { position: absolute; background: transparent; border: 0; color: #fff; cursor: pointer; opacity: .85; transition: opacity .15s; line-height: 1; }
.vr-carousel__nav:hover, .vr-carousel__close:hover { opacity: 1; }
.vr-carousel__nav { top: 50%; transform: translateY(-50%); font-size: 38px; padding: 12px 20px; }
.vr-carousel__prev { left: 1.5%; }
.vr-carousel__next { right: 1.5%; }
.vr-carousel__close { top: 18px; right: 26px; font-size: 42px; }
.vr-carousel__counter { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #fff; font-family: "Open Sauce Sans", sans-serif; font-size: 14px; letter-spacing: .06em; }

/* ---------- Responsive ---------- */
@media (max-width: 781px) {
	.vr-prop__gallery { grid-template-columns: 1fr; }
	.vr-gallery__main { aspect-ratio: 16 / 10; }
	.vr-gallery__thumbs { grid-auto-rows: auto; grid-template-columns: repeat(3, 1fr); }
	.vr-gallery__thumb { aspect-ratio: 4 / 3; }
	.vr-carousel__nav { font-size: 28px; padding: 8px 12px; }
	.vr-strip { gap: 14px 0; }
	.vr-strip__item { flex-basis: 33%; min-width: 0; }
	.vr-strip__item + .vr-strip__item::before { display: none; }
	.vr-ficha { grid-template-columns: 1fr; gap: 0; }
	.vr-rel-grid { grid-template-columns: 1fr; }
}
