/* premierinmobiliaria.pe — base stylesheet */

:root {
	--wrap: 1080px;
	--pad: 20px;
	--bg: #0b111d;
	--card: #151d2e;
	--card2: #1e273b;
	--hair: rgba(255, 255, 255, .1);
	--hair2: rgba(255, 255, 255, .22);
	--ink: #c4cbd9;
	--ink-dim: #8a93a6;
	--ink-hi: #f2f5fa;
	--red: #e2432f;
	--red2: #f5674f;
	--blue: #4c8dff;
	--gold: #f2b23e;
	--rad: 10px;
	--rad-s: 8px;
	--serif: Georgia, "Times New Roman", "DejaVu Serif", serif;
	--sans: -apple-system, "Segoe UI", Roboto, Arial, "Helvetica Neue", sans-serif;
}

@media (max-width: 1000px) {
	:root { --pad: 16px }
}

@media (max-width: 640px) {
	:root { --pad: 12px }
}

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

html { -webkit-text-size-adjust: 100% }

body {
	background: var(--bg);
	color: var(--ink);
	font: 400 17px/1.68 var(--sans);
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

::selection { background: var(--red); color: #fff }

img, svg { max-width: 100%; height: auto }

a { color: var(--blue); text-underline-offset: 3px }
a:hover { color: var(--red2) }

/* ---------- layout ---------- */

.hold {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--pad);
}

.stream { flex: 1 1 auto }

.slab { padding: 36px 0 }
.slab--tint { background: #0e1524 }

@media (max-width: 640px) {
	.slab { padding: 26px 0 }
}

/* ---------- type ---------- */

h1, h2 { font-family: var(--serif); font-weight: 700; color: var(--ink-hi); line-height: 1.22 }
h3, h4 { font-family: var(--sans); font-weight: 700; color: #dfe4ee; line-height: 1.3 }

h1 { font-size: 35px; margin-bottom: 18px }

h2 {
	font-size: 28px;
	margin-bottom: 18px;
	padding-top: 14px;
	border-top: 2px solid var(--red);
	display: inline-block;
}

h3 { font-size: 20px; margin: 24px 0 9px }
h4 { font-size: 17px; margin: 18px 0 7px; color: var(--gold) }

p { margin-bottom: 14px }
p:last-child { margin-bottom: 0 }

strong { color: var(--ink-hi) }

.note { color: var(--ink-dim); font-size: 15px }

@media (max-width: 640px) {
	body { font-size: 16px; line-height: 1.6 }
	h1 { font-size: 27px }
	h2 { font-size: 22px; padding-top: 11px }
	h3 { font-size: 18px; margin-top: 20px }
}

/* ---------- lists ---------- */

.dots { list-style: none; margin-bottom: 14px }

.dots > li {
	position: relative;
	padding-left: 26px;
	margin-bottom: 9px;
}

.dots > li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: .72em;
	width: 7px;
	height: 7px;
	background: var(--red);
	transform: rotate(45deg);
}

.dots > li:last-child { margin-bottom: 0 }

/* ---------- buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	border: 0;
	border-radius: var(--rad-s);
	background: var(--red);
	color: #fff;
	font: 700 15px/1.15 var(--sans);
	letter-spacing: .02em;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background .18s, transform .18s;
}

.btn:hover { background: var(--red2); color: #fff; transform: translateY(-1px) }

.btn--blue { background: var(--blue) }
.btn--blue:hover { background: #6fa3ff }

.btn--line {
	background: transparent;
	border: 1px solid var(--hair2);
	color: var(--ink-hi);
}

.btn--line:hover { background: transparent; border-color: var(--blue) }

.btn--sm { padding: 10px 17px; font-size: 13px }
.btn--full { width: 100% }

/* ---------- header ---------- */

.pagetop { background: #0e1524; border-bottom: 1px solid var(--hair) }

.pagetop__line {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	padding: 12px 0;
}

.pagetop__logo { display: flex; align-items: center; margin-right: auto; text-decoration: none }
.pagetop__logo img { width: 118px; display: block }

.pagetop__tools { display: flex; gap: 8px }

.pagetop__toggle {
	display: none;
	width: 42px;
	height: 36px;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	padding: 0 9px;
	background: var(--card2);
	border: 1px solid var(--hair);
	border-radius: var(--rad-s);
	cursor: pointer;
}

.pagetop__toggle i { display: block; height: 2px; background: #dfe4ee }

.mainnav { flex: 1 1 100%; order: 5 }

.mainnav ul { display: flex; flex-wrap: wrap; gap: 4px 6px; list-style: none }

.mainnav a {
	display: block;
	padding: 6px 12px;
	border-radius: var(--rad-s);
	color: var(--ink);
	font-size: 14px;
	text-decoration: none;
}

.mainnav a:hover { background: var(--card2); color: var(--ink-hi) }

@media (max-width: 900px) {
	.pagetop__toggle { display: flex; order: 2 }
	.pagetop__tools { order: 4; flex: 1 1 100% }
	.pagetop__tools .btn { flex: 1 1 0; min-width: 0 }
	.mainnav { display: none }
	.pagetop.is-expanded .mainnav { display: block }
	.mainnav ul { flex-direction: column; gap: 2px; padding: 8px 0 4px; border-top: 1px solid var(--hair) }
	.mainnav a { padding: 11px 12px }
}

/* ---------- opener ---------- */

.opener__lead { max-width: 820px; font-size: 18px }
.opener .btn { margin-top: 20px }

@media (max-width: 640px) {
	.opener__lead { font-size: 16px }
	.opener .btn { width: 100% }
}

/* ---------- specs (dl, no table) ---------- */

.specs {
	display: grid;
	grid-template-columns: 240px 1fr;
	margin: 20px 0;
	border: 1px solid var(--hair);
	border-radius: var(--rad);
	overflow: hidden;
	font-size: 16px;
}

.specs dt {
	padding: 12px 16px;
	background: var(--card);
	border-bottom: 1px solid var(--hair);
	color: var(--ink-dim);
}

.specs dd {
	padding: 12px 16px;
	border-bottom: 1px solid var(--hair);
	color: var(--ink-hi);
}

.specs dt:nth-last-of-type(1), .specs dd:nth-last-of-type(1) { border-bottom: 0 }

@media (max-width: 620px) {
	.specs { grid-template-columns: 1fr; font-size: 15px }
	.specs dt { padding: 10px 13px 2px; background: none; border-bottom: 0 }
	.specs dd { padding: 0 13px 10px }
	.specs dd:not(:last-of-type) { border-bottom: 1px solid var(--hair) }
}

/* ---------- roadmap (native details toc) ---------- */

.roadmap {
	margin-top: 22px;
	background: var(--card);
	border: 1px solid var(--hair);
	border-radius: var(--rad);
}

.roadmap__cap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 15px 18px;
	color: var(--ink-hi);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	cursor: pointer;
	list-style: none;
}

.roadmap__cap::-webkit-details-marker { display: none }

.roadmap__cap::after {
	content: "+";
	flex: 0 0 auto;
	color: var(--red2);
	font-size: 20px;
	line-height: 1;
}

.roadmap[open] .roadmap__cap::after { content: "\2212" }

.roadmap__list {
	list-style: none;
	padding: 0 18px 16px;
	columns: 2;
	column-gap: 22px;
}

.roadmap__list li { margin-bottom: 6px; break-inside: avoid }

.roadmap__list a { color: var(--ink); font-size: 15px; text-decoration: none; border-bottom: 1px solid transparent }
.roadmap__list a:hover { color: var(--ink-hi); border-bottom-color: var(--red) }

@media (max-width: 620px) {
	.roadmap__list { columns: 1 }
}

/* ---------- responsive tables ---------- */

.grid {
	width: 100%;
	margin: 18px 0;
	border-collapse: collapse;
	border: 1px solid var(--hair);
	border-radius: var(--rad);
	font-size: 16px;
	overflow: hidden;
}

.grid caption {
	padding: 0 0 8px;
	color: var(--ink-dim);
	font-size: 15px;
	text-align: left;
	caption-side: top;
}

.grid thead th {
	padding: 11px 16px;
	background: var(--card2);
	color: var(--ink-hi);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-align: left;
}

.grid tbody th, .grid tbody td {
	padding: 11px 16px;
	border-top: 1px solid var(--hair);
	text-align: left;
	vertical-align: top;
}

.grid tbody th { color: var(--ink-hi); font-weight: 700 }
.grid tbody tr:hover th, .grid tbody tr:hover td { background: rgba(76, 141, 255, .06) }

.grid--mini { max-width: 420px }

/* stacked cards instead of horizontal scroll */
@media (max-width: 620px) {
	.grid { display: block; border-radius: var(--rad); font-size: 15px }
	.grid thead { display: none }
	.grid tbody, .grid tbody tr { display: block }
	.grid tbody tr { padding: 11px 13px; border-top: 1px solid var(--hair) }
	.grid tbody tr:first-child { border-top: 0 }
	.grid tbody th, .grid tbody td { display: block; padding: 0; border: 0 }
	.grid tbody th { margin-bottom: 3px }

	/* in card mode the caption sits inside the border box — dress it as a header bar */
	.grid:not(.grid--keep) caption {
		padding: 9px 13px;
		background: var(--card2);
		border-bottom: 1px solid var(--hair);
		color: var(--ink-hi);
		font-size: 13px;
		font-weight: 700;
		letter-spacing: .06em;
		text-transform: uppercase;
	}

	.grid tbody td[data-cap]::before {
		content: attr(data-cap) ": ";
		color: var(--ink-dim);
	}
	.grid tbody tr:hover th, .grid tbody tr:hover td { background: none }

	/* narrow two-column tables stay tabular — stacking them reads worse */
	.grid--keep { display: table }
	.grid--keep thead { display: table-header-group }
	.grid--keep tbody { display: table-row-group }
	.grid--keep tbody tr { display: table-row; padding: 0 }
	.grid--keep tbody tr:first-child th, .grid--keep tbody tr:first-child td { border-top: 1px solid var(--hair) }

	.grid--keep tbody th, .grid--keep tbody td {
		display: table-cell;
		padding: 10px 13px;
		border-top: 1px solid var(--hair);
	}

	.grid--keep tbody th { margin-bottom: 0 }
	.grid--keep tbody td[data-cap]::before { content: none }
}

/* ---------- promos ---------- */

.promos {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	list-style: none;
	margin: 20px 0;
}

.promos__box {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 18px;
	background: var(--card);
	border: 1px solid var(--hair);
	border-left: 3px solid var(--red);
	border-radius: var(--rad);
	overflow: hidden;
}

.promos__box:nth-child(2) { border-left-color: var(--blue) }
.promos__box:nth-child(3) { border-left-color: var(--gold) }

.promos__box img {
	width: 96px;
	height: auto;
	align-self: flex-end;
	margin: -6px -6px -12px 0;
	opacity: .92;
}

.promos__name { font-size: 18px; font-weight: 700; color: var(--ink-hi); line-height: 1.3 }
.promos__text { font-size: 15px; color: var(--ink-dim) }
.promos__box .btn { align-self: flex-start; margin-top: auto }

@media (max-width: 880px) {
	.promos { grid-template-columns: 1fr }
	.promos__box { padding-right: 120px }
	.promos__box img { position: absolute; right: 10px; bottom: 10px; margin: 0; width: 92px }
}

/* ---------- deck (games) ---------- */

.deck {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 14px;
	list-style: none;
	margin-top: 18px;
}

.deck__slot {
	position: relative;
	width: 100%;
	min-width: 0;
	aspect-ratio: 194 / 130;
	min-height: 120px;
	background: var(--card2);
	border: 1px solid var(--hair);
	border-radius: var(--rad);
	overflow: hidden;
	cursor: pointer;
}

.deck__slot > img {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 72%;
	object-fit: cover;
}

.deck__name {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 28%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2px 6px;
	background: var(--card);
	color: #dfe4ee;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.15;
	text-align: center;
}

.deck__acts {
	position: absolute;
	/* covers the artwork only — the caption strip below stays readable */
	inset: 0 0 28% 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	padding: 7px;
	background: rgba(11, 17, 29, .96);
	opacity: 0;
	visibility: hidden;
	transition: opacity .18s;
}

.deck__slot.is-active .deck__acts { opacity: 1; visibility: visible }

@media (hover: hover) {
	.deck__slot:hover .deck__acts { opacity: 1; visibility: visible }
}

.deck__btn {
	padding: 7px 4px;
	border: 0;
	border-radius: var(--rad-s);
	background: var(--red);
	color: #fff;
	font: 700 12px/1.1 var(--sans);
	cursor: pointer;
}

.deck__btn--trial { background: transparent; border: 1px solid var(--hair2); color: var(--ink-hi) }
.deck__btn:hover { filter: brightness(1.1) }

@media (max-width: 1000px) { .deck { grid-template-columns: repeat(4, 1fr) } }
@media (max-width: 720px) { .deck { grid-template-columns: repeat(3, 1fr); gap: 10px } }
@media (max-width: 520px) { .deck { grid-template-columns: repeat(2, 1fr) } }

/* ---------- vendors (plain grid, no carousel) ---------- */

.vendors {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
	list-style: none;
	margin: 18px 0;
}

.vendors__unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 14px 10px;
	background: var(--card);
	border: 1px solid var(--hair);
	border-radius: var(--rad);
	color: var(--ink-dim);
	font-size: 13px;
	text-align: center;
}

.vendors__unit img { width: 100%; max-width: 140px; aspect-ratio: 373 / 210; object-fit: contain }

@media (max-width: 900px) { .vendors { grid-template-columns: repeat(3, 1fr) } }
@media (max-width: 560px) { .vendors { grid-template-columns: repeat(2, 1fr); gap: 10px } }

/* ---------- walk (steps) ---------- */

.walk { list-style: none; counter-reset: wk; display: grid; gap: 12px; margin: 18px 0 }

.walk__stage {
	counter-increment: wk;
	position: relative;
	padding: 15px 18px 15px 58px;
	background: var(--card);
	border: 1px solid var(--hair);
	border-radius: var(--rad);
}

.walk__stage::before {
	content: counter(wk);
	position: absolute;
	left: 16px;
	top: 15px;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--rad-s);
	background: var(--blue);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
}

.walk__head { margin: 0 0 4px; font-size: 17px; color: var(--ink-hi) }
.walk__body { margin: 0; font-size: 16px }
.walk__stage .btn { margin-top: 12px }

@media (max-width: 640px) {
	.walk__stage { padding: 13px 14px 14px 52px }
	.walk__stage::before { left: 13px; top: 13px }
	.walk__stage .btn { width: 100% }
}

/* ---------- helpdesk ---------- */

.helpdesk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; margin: 18px 0 }

.helpdesk li {
	padding: 15px 17px;
	background: var(--card);
	border: 1px solid var(--hair);
	border-radius: var(--rad);
	font-size: 15px;
}

.helpdesk b { display: block; margin-bottom: 3px; color: var(--ink-hi); font-size: 16px }
.helpdesk span, .helpdesk a { word-break: break-word }

@media (max-width: 880px) { .helpdesk { grid-template-columns: repeat(2, 1fr) } }
@media (max-width: 560px) { .helpdesk { grid-template-columns: 1fr } }

/* ---------- callout ---------- */

.callout {
	margin: 18px 0;
	padding: 16px 18px;
	background: rgba(242, 178, 62, .08);
	border: 1px solid rgba(242, 178, 62, .34);
	border-radius: var(--rad);
	color: #e6ddc9;
	font-size: 16px;
}

/* ---------- qbox (faq) ---------- */

.qbox { display: grid; gap: 10px; margin-top: 18px }

.qbox__item {
	background: var(--card);
	border: 1px solid var(--hair);
	border-radius: var(--rad);
	overflow: hidden;
}

.qbox__item[open] { border-color: rgba(226, 67, 47, .5) }

.qbox__head {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	padding: 15px 18px;
	color: var(--ink-hi);
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.qbox__head::-webkit-details-marker { display: none }
.qbox__head h3 { margin: 0; font: inherit; color: inherit }

.qbox__head::before {
	content: "\2192";
	flex: 0 0 auto;
	color: var(--red2);
	font-size: 17px;
	line-height: 1.4;
}

.qbox__item[open] .qbox__head::before { content: "\2193" }

.qbox__body { padding: 0 18px 16px 40px; font-size: 16px }

@media (max-width: 640px) {
	.qbox__head { font-size: 16px; padding: 13px 14px }
	.qbox__body { padding: 0 14px 14px 14px; font-size: 15px }
}

/* ---------- popup (demo) ---------- */

.popup {
	position: fixed;
	inset: 0;
	z-index: 900;
	display: none;
	align-items: center;
	justify-content: center;
	padding: var(--pad);
	background: rgba(5, 8, 14, .88);
}

.popup.is-active { display: flex }

.popup__inner {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	max-width: 1000px;
	height: 100%;
	max-height: 660px;
	padding: 15px;
	background: var(--card);
	border: 1px solid var(--hair2);
	border-radius: var(--rad);
}

.popup__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px }
.popup__title { color: var(--ink-hi); font-size: 18px; font-weight: 700 }

.popup__x {
	width: 36px;
	height: 36px;
	background: var(--card2);
	border: 1px solid var(--hair);
	border-radius: var(--rad-s);
	color: #dfe4ee;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}

.popup__x:hover { border-color: var(--red); color: var(--red2) }

.popup__frame { position: relative; flex: 1 1 auto; background: #05080e; border-radius: var(--rad-s); overflow: hidden }
.popup__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0 }

.popup__foot { display: flex; justify-content: center }

@media (max-width: 720px) {
	.popup { padding: 0 }
	.popup__inner { max-height: none; border: 0; border-radius: 0 }
	.popup__foot .btn { width: 100% }
}

/* ---------- footer ---------- */

.pagebase {
	margin-top: 12px;
	background: #0e1524;
	border-top: 1px solid var(--hair2);
	padding: 26px 0 30px;
}

.pagebase__top {
	display: flex;
	align-items: center;
	gap: 16px 26px;
	flex-wrap: wrap;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--hair);
}

.pagebase__top img { width: 108px }

.pagebase__menu { display: flex; flex-wrap: wrap; gap: 6px 8px; list-style: none; margin-left: auto }

.pagebase__menu a {
	display: block;
	padding: 6px 13px;
	border: 1px solid var(--hair);
	border-radius: var(--rad-s);
	color: var(--ink);
	font-size: 14px;
	text-decoration: none;
}

.pagebase__menu a:hover { border-color: var(--blue); color: var(--ink-hi) }

.wallets { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; list-style: none; padding: 16px 0; border-bottom: 1px solid var(--hair) }
.wallets img { max-height: 22px; width: auto; opacity: .64 }

.pagebase__warn {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding-top: 16px;
	color: var(--ink-dim);
	font-size: 13.5px;
	line-height: 1.6;
}

.pagebase__sign { margin: 12px 0 0; color: var(--ink-dim); font-size: 13.5px }

.adult {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 2px solid var(--gold);
	border-radius: var(--rad-s);
	color: var(--gold);
	font-size: 12px;
	font-weight: 700;
}

@media (max-width: 820px) {
	.pagebase__menu { margin-left: 0; flex: 1 1 100% }
	.wallets { justify-content: center; gap: 18px }
}

@media (max-width: 760px) {
	.pagebase { padding-bottom: 92px }
}

/* ---------- rocket (desktop back-to-top) ---------- */

.rocket {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 500;
	width: 44px;
	height: 44px;
	display: none;
	align-items: center;
	justify-content: center;
	background: var(--card2);
	border: 1px solid var(--hair2);
	border-radius: var(--rad-s);
	color: var(--ink-hi);
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
}

.rocket.is-active { display: flex }
.rocket:hover { border-color: var(--red); color: var(--red2) }

@media (max-width: 760px) {
	.rocket.is-active { display: none }
}

/* ---------- dockbar (mobile sticky cta) ---------- */

.dockbar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 600;
	display: none;
	align-items: center;
	gap: 8px;
	padding: 10px var(--pad);
	background: rgba(14, 21, 36, .97);
	border-top: 1px solid var(--hair2);
}

.dockbar .btn { flex: 1 1 auto; min-width: 0 }

.dockbar__up {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	background: var(--card2);
	border: 1px solid var(--hair);
	border-radius: var(--rad-s);
	color: var(--ink-hi);
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
}

@media (max-width: 760px) {
	.dockbar { display: flex }
}

/* ---------- feature images ---------- */
.shot {
	display: block;
	width: 100%;
	max-width: 760px;
	margin: 22px auto;
	border-radius: var(--rad-s, 10px);
	border: 1px solid var(--hair, #1c2740);
}
.shot--hero { margin: 24px auto 6px }
