/* OLU Propiedades — estilos públicos. Todo bajo .olup para no afectar al resto del sitio. */
.olup {
	--olup-violet: #7456f1;
	--olup-violet-dark: #5e3fde;
	--olup-slate: #4d5d6d;
	--olup-navy: #102136;
	--olup-line: #e3e7ee;
	--olup-soft: #f3f5f9;
	--olup-bg: #fbfbfc;
	--olup-radius: 14px;
	color: var(--olup-navy);
	background: var(--olup-bg);
	font-size: 16px;
	line-height: 1.55;
	padding-bottom: 56px;
}
.olup *,
.olup *::before,
.olup *::after { box-sizing: border-box; }
:where(.olup) img { max-width: 100%; height: auto; display: block; }
.olup a { color: inherit; }
:where(.olup) :where(h1, h2, p, ul, dl, figure) { margin: 0; }
.olup-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .olup-wrap { padding: 0 32px; } }

/* Botones */
.olup-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 22px; border-radius: 999px;
	font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; text-align: center;
	border: 2px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.olup .olup-btn--primary { background: var(--olup-violet) !important; color: #fff !important; border-color: transparent !important; border-radius: 999px; }
.olup .olup-btn--primary:hover, .olup .olup-btn--primary:focus-visible { background: var(--olup-violet-dark) !important; }
.olup-btn--ghost { background: #fff; color: var(--olup-navy) !important; border-color: var(--olup-line); }
.olup-btn--ghost:hover, .olup-btn--ghost:focus-visible { border-color: var(--olup-violet); color: var(--olup-violet-dark) !important; }
.olup-btn--block { display: flex; width: 100%; }
.olup a:focus-visible, .olup button:focus-visible, .olup select:focus-visible, .olup input:focus-visible { outline: 3px solid rgba(116, 86, 241, .45); outline-offset: 2px; }

/* Encabezado de portada */
.olup-hero {
	background: radial-gradient(120% 140% at 85% 0%, rgba(116, 86, 241, .45) 0%, rgba(16, 33, 54, 0) 55%), var(--olup-navy);
	color: #fff;
	padding: 132px 0 88px;
}
@media (min-width: 1000px) { .olup-hero { padding: 168px 0 112px; } }
.olup-kicker {
	font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
	color: #c9bdfb; display: flex; align-items: center; gap: 10px;
}
.olup-kicker::before { content: ""; width: 26px; height: 2px; background: var(--olup-violet); }
.olup-hero__title { color: #fff; font-size: clamp(32px, 6.4vw, 56px); line-height: 1.05; letter-spacing: -.02em; font-weight: 800; margin-top: 14px; max-width: 16ch; }
.olup-hero__intro { color: #d5dbe3; font-size: clamp(16px, 2.2vw, 19px); margin-top: 18px; max-width: 58ch; }

/* Filtros */
.olup-filters {
	position: relative; z-index: 2;
	margin-top: -48px; background: #fff; border-radius: var(--olup-radius);
	box-shadow: 0 18px 40px rgba(16, 33, 54, .12);
	padding: 18px; display: grid; gap: 12px; grid-template-columns: 1fr 1fr;
}
.olup-filters__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.olup-filters__field--price, .olup-filters__actions { grid-column: 1 / -1; }
.olup-filters label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--olup-slate); }
.olup-filters select, .olup-filters input {
	width: 100%; min-height: 46px; border: 1px solid var(--olup-line); border-radius: 10px;
	background: var(--olup-soft); color: var(--olup-navy); font-size: 16px; padding: 8px 12px; margin: 0;
}
.olup-filters__price { display: grid; grid-template-columns: 84px 1fr; gap: 8px; }
.olup-filters__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.olup-filters__actions .olup-btn { flex: 1 1 160px; }
.olup-filters__clear { font-size: 14px; font-weight: 600; color: var(--olup-violet-dark) !important; }
@media (min-width: 768px) {
	.olup-filters { grid-template-columns: repeat(4, 1fr); padding: 22px; }
	.olup-filters__field--price { grid-column: span 2; }
	.olup-filters__actions { grid-column: span 2; align-self: end; }
}
@media (min-width: 1100px) {
	.olup-filters { grid-template-columns: 1.1fr 1.1fr .8fr .8fr 1.4fr auto; align-items: end; }
	.olup-filters__field--price, .olup-filters__actions { grid-column: auto; }
	.olup-filters__actions .olup-btn { flex: 0 0 auto; min-width: 128px; }
}

.olup-results-head { margin: 32px 0 16px; }
.olup-count { color: var(--olup-slate); font-weight: 600; font-size: 15px; }

/* Tarjetas */
.olup-archive .olup-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .olup-archive .olup-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .olup-archive .olup-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; } }
.olup-card {
	background: #fff; border-radius: var(--olup-radius); overflow: hidden;
	border: 1px solid var(--olup-line); display: flex; flex-direction: column;
	transition: box-shadow .25s, transform .25s;
}
.olup-card:hover { box-shadow: 0 16px 36px rgba(16, 33, 54, .12); transform: translateY(-2px); }
.olup-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--olup-soft); overflow: hidden; }
.olup-card__media img { width: 100%; height: 100%; object-fit: cover; }
.olup-card__noimg { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #e7ebee, #f3f5f9); }
.olup-card__op {
	position: absolute; left: 12px; top: 12px; background: var(--olup-navy); color: #fff;
	font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px;
}
.olup-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.olup-card__price { font-size: 24px; font-weight: 800; letter-spacing: -.01em; color: var(--olup-navy); }
.olup-card__title { font-size: 17px; line-height: 1.3; font-weight: 700; }
.olup-card__title a { text-decoration: none; }
.olup-card__title a::after { content: ""; position: absolute; inset: 0; }
.olup-card { position: relative; }
.olup-card__title a:hover { color: var(--olup-violet-dark); }
.olup-card__loc { color: var(--olup-slate); font-size: 14px; }
.olup-card__tipo { margin-top: auto; padding-top: 8px; color: var(--olup-slate); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.olup-facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }
.olup-facts li { font-size: 14px; font-weight: 600; color: var(--olup-navy); display: flex; align-items: center; gap: 14px; }
.olup-facts li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--olup-violet); margin-left: -8px; margin-right: -4px; }

.olup-pagination { margin-top: 36px; }
.olup-pagination ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.olup-pagination a, .olup-pagination span { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--olup-line); background: #fff; text-decoration: none; font-weight: 600; }
.olup-pagination .current { background: var(--olup-navy); color: #fff; border-color: var(--olup-navy); }

.olup-empty { background: #fff; border: 1px dashed var(--olup-line); border-radius: var(--olup-radius); padding: 48px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.olup-empty h2 { font-size: 22px; }
.olup-empty p { color: var(--olup-slate); }

.olup-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--olup-line); color: var(--olup-slate); font-size: 13px; max-width: 80ch; }

/* Ficha */
.olup-head {
	background: radial-gradient(120% 140% at 90% 0%, rgba(116, 86, 241, .35) 0%, rgba(16, 33, 54, 0) 55%), var(--olup-navy);
	color: #fff; padding: 118px 0 34px;
}
@media (min-width: 1000px) { .olup-head { padding: 150px 0 40px; } }
.olup-crumbs { font-size: 13px; color: #aeb8c4; display: flex; flex-wrap: wrap; gap: 8px; }
.olup-crumbs a { color: #c9bdfb !important; text-decoration: none; font-weight: 600; }
.olup-head__grid { display: grid; gap: 14px; margin-top: 16px; }
@media (min-width: 900px) { .olup-head__grid { grid-template-columns: 1fr auto; align-items: end; gap: 32px; } }
.olup-head__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.olup-tag { background: var(--olup-violet); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; }
.olup-tag--soft { background: rgba(255, 255, 255, .12); }
.olup-state { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; background: #fff; color: var(--olup-navy); }
.olup-head__title { color: #fff; font-size: clamp(26px, 5vw, 44px); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; margin-top: 14px; }
.olup-head__loc { color: #d5dbe3; margin-top: 8px; font-size: 16px; }
.olup-head__price { font-size: clamp(30px, 6vw, 46px); font-weight: 800; letter-spacing: -.02em; color: #fff; white-space: nowrap; }
.olup-facts--head { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); }
.olup-facts--head li { color: #fff; font-size: 15px; }
.olup-facts--head li + li::before { background: #c9bdfb; }

.olup-gallery { margin-top: 24px; }
.olup-gallery__stage { position: relative; border-radius: var(--olup-radius); overflow: hidden; background: #0c1a2b; aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .olup-gallery__stage { aspect-ratio: 16 / 9; } }
.olup-gallery__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; }
.olup-gallery__slide.is-active { opacity: 1; z-index: 1; }
.olup-gallery__slide img { width: 100%; height: 100%; object-fit: contain; }
.olup-gallery__nav {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
	width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
	background: rgba(255, 255, 255, .92); color: var(--olup-navy); font-size: 28px; line-height: 1; padding: 0 0 3px;
}
.olup-gallery__nav--prev { left: 12px; }
.olup-gallery__nav--next { right: 12px; }
.olup-gallery__count { position: absolute; right: 12px; bottom: 12px; z-index: 2; background: rgba(16, 33, 54, .8); color: #fff; font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.olup-gallery__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 4px; scrollbar-width: thin; }
.olup-gallery__thumb { flex: 0 0 auto; width: 84px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--olup-soft); opacity: .7; }
.olup-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.olup-gallery__thumb.is-active { border-color: var(--olup-violet); opacity: 1; }

.olup-body { display: grid; gap: 24px; margin-top: 28px; }
@media (max-width: 959px) { .olup-body__side { order: -1; } }
@media (min-width: 960px) { .olup-body { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; } .olup-body__side { position: sticky; top: 110px; } }
.olup-section { background: #fff; border: 1px solid var(--olup-line); border-radius: var(--olup-radius); padding: 22px; }
.olup-section + .olup-section { margin-top: 20px; }
.olup-section__title { font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.olup-content p + p { margin-top: 12px; }
.olup-content ul, .olup-content ol { padding-left: 20px; margin: 12px 0; }
.olup-details { display: grid; grid-template-columns: 1fr; }
@media (min-width: 560px) { .olup-details { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
.olup-details > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--olup-line); }
.olup-details dt { color: var(--olup-slate); }
.olup-details dd { margin: 0; font-weight: 700; text-align: right; }

.olup-official { background: #fff; border: 2px solid var(--olup-violet); border-radius: var(--olup-radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.olup-official__kicker { font-size: 13px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--olup-violet-dark); }
.olup-official__text { color: var(--olup-slate); font-size: 15px; }
.olup-official__backing { font-size: 14px; color: var(--olup-navy); padding-top: 12px; border-top: 1px solid var(--olup-line); }
.olup-official__mat { display: block; color: var(--olup-slate); margin-top: 2px; }
.olup-contact { margin-top: 16px; background: var(--olup-soft); border-radius: var(--olup-radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.olup-contact__title { font-weight: 800; font-size: 17px; }
.olup-contact__note { font-size: 13px; color: var(--olup-slate); }
.olup-back { display: inline-block; margin-top: 18px; font-weight: 600; font-size: 14px; color: var(--olup-violet-dark) !important; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
	.olup-card, .olup-gallery__slide, .olup-btn { transition: none; }
}

.olup-admin-access { margin-top: 18px; font-size: 13px; }
.olup-admin-access a { color: var(--olup-slate) !important; text-decoration: none; font-weight: 600; }
.olup-admin-access a:hover { color: var(--olup-violet-dark) !important; text-decoration: underline; }

/* Portada /propiedades/: Blocksy no aplica aquí su cabecera transparente (logo y menú blancos).
   Se le da fondo oscuro de OLU para que logo, menú e ícono se vean. Solo en esta página. */
body.post-type-archive-olu_propiedad #header [data-row="middle"],
body.post-type-archive-olu_propiedad #header [data-row="top"],
body.post-type-archive-olu_propiedad #header [data-row="bottom"] {
	background: #102136 !important;
	border-bottom-color: rgba(255, 255, 255, .08) !important;
	box-shadow: none !important;
	--theme-link-initial-color: #ffffff;
	--theme-link-hover-color: #c9bdfb;
	--theme-icon-color: #ffffff;
	--theme-icon-hover-color: #c9bdfb;
}
body.post-type-archive-olu_propiedad #header .ct-menu-link { color: #ffffff; }
body.post-type-archive-olu_propiedad #header .ct-menu-link:hover { color: #c9bdfb; }
body.post-type-archive-olu_propiedad #header .ct-header-cta .ct-button { background-color: #7456f1; border-color: #7456f1; color: #fff; }
body.post-type-archive-olu_propiedad .olup-hero { padding-top: 72px; }
@media (min-width: 1000px) { body.post-type-archive-olu_propiedad .olup-hero { padding-top: 96px; } }
