/**
 * Shell portal cliente PSB — D1 V4 (app sobria, minimal, geometría ligera).
 */

body.psb-pres-portal-shell {
	margin: 0;
	min-height: 100vh;
	background: #eeedec;
	color: #1c1917;
	font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	font-weight: 450;
	-webkit-font-smoothing: antialiased;
}

/* Invitado: sin cabecera shell; contenido centrado */
body.psb-pres-portal-shell--guest .psb-pres-shell__main {
	padding-top: 36px;
}

body.psb-pres-portal-shell--guest .psb-pres-shell__stage {
	display: flex;
	justify-content: center;
}

body.psb-pres-portal-shell .psb-pres-shell__stage {
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	color: #1c1917;
}

body.psb-pres-portal-shell .psb-pres-shell__stage a {
	color: #292524;
	text-decoration: underline;
	text-underline-offset: 3px;
	font-weight: 550;
}

body.psb-pres-portal-shell .psb-pres-shell__stage a:hover {
	color: #0c0a09;
}

body.psb-pres-portal-shell #wpadminbar {
	position: fixed;
}

.psb-pres-shell {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.psb-pres-shell__header {
	background: #292524;
	color: #fafaf9;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: none;
}

.psb-pres-shell__header-inner {
	max-width: 1320px;
	margin: 0 auto;
	padding: 10px 22px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 52px;
	box-sizing: border-box;
}

.psb-pres-shell__brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: inherit;
	min-width: 0;
}

.psb-pres-shell__brand:hover {
	color: #fff;
}

.psb-pres-shell__brand-mark {
	width: 3px;
	height: 26px;
	border-radius: 1px;
	background: rgba(255, 255, 255, 0.92);
	flex-shrink: 0;
}

/* PSB-BRAND-LOGO-001 — marca en cabecera shell portal */
body.psb-pres-portal-shell .psb-pres-shell__brand.psb-brand--client .psb-brand__link {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

body.psb-pres-portal-shell .psb-pres-shell__brand.psb-brand--client .psb-brand__link:hover {
	color: #fff;
}

body.psb-pres-portal-shell .psb-pres-shell__brand .psb-brand__logo {
	display: block;
	max-height: 48px;
	width: auto;
	max-width: 132px;
	height: auto;
	object-fit: contain;
	flex-shrink: 0;
}

body.psb-pres-portal-shell .psb-pres-shell__brand .psb-brand__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

body.psb-pres-portal-shell .psb-pres-shell__brand .psb-brand__name {
	font-weight: 650;
	font-size: 15px;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

body.psb-pres-portal-shell .psb-pres-shell__brand .psb-brand__sub {
	font-size: 11px;
	font-weight: 500;
	color: #a8a29e;
	line-height: 1.25;
}

body.psb-pres-portal-shell .psb-pres-rail-d1d__brand {
	padding: 0.5rem 0.65rem 0.45rem;
	margin-bottom: 0.35rem;
	border-bottom: 1px solid rgba(41, 37, 36, 0.1);
}

body.psb-pres-portal-shell .psb-pres-rail-d1d__brand-mark .psb-brand__link {
	display: block;
	text-decoration: none;
}

body.psb-pres-portal-shell .psb-pres-rail-d1d__brand-mark .psb-brand__logo {
	display: block;
	max-height: 52px;
	width: auto;
	max-width: 100%;
	height: auto;
	object-fit: contain;
	margin: 0 auto;
}

@media (max-width: 600px) {
	body.psb-pres-portal-shell .psb-pres-shell__brand .psb-brand__logo {
		max-height: 36px;
		max-width: 96px;
	}

	body.psb-pres-portal-shell .psb-pres-rail-d1d__brand-mark .psb-brand__logo {
		max-height: 40px;
	}
}

.psb-pres-shell__brand-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.psb-pres-shell__brand-title {
	font-weight: 650;
	font-size: 15px;
	letter-spacing: -0.02em;
	line-height: 1.2;
	text-transform: none;
}

.psb-pres-shell__brand-sub {
	font-size: 11px;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0.02em;
	color: #a8a29e;
	line-height: 1.25;
}

.psb-pres-shell__toolbar {
	flex-shrink: 0;
}

.psb-pres-shell__link {
	color: #fafaf9;
	font-size: 13px;
	font-weight: 550;
	text-decoration: none;
	padding: 8px 14px;
	border-radius: 6px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: rgba(255, 255, 255, 0.06);
	letter-spacing: 0;
	text-transform: none;
}

.psb-pres-shell__link:hover {
	color: #1c1917;
	border-color: #fafaf9;
	background: #fafaf9;
}

.psb-pres-shell__main {
	flex: 1;
	padding: 26px 18px 56px;
}

.psb-pres-shell__stage {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 10px;
}

body.psb-pres-portal-shell .psb-pres-portal {
	max-width: 100%;
	margin: 0;
	padding: 0;
}

body.psb-pres-portal-shell .psb-pres-portal__title {
	font-size: 1.625rem;
	font-weight: 650;
	letter-spacing: -0.03em;
	margin: 0 0 10px;
	color: #1c1917;
	line-height: 1.15;
}

body.psb-pres-portal-shell .psb-pres-panel--home .psb-pres-panel__screen-title {
	font-size: clamp(1.8rem, 3.2vw, 2.2rem);
	font-weight: 750;
	letter-spacing: -0.04em;
}

body.psb-pres-portal-shell .psb-pres-portal__lead {
	margin: 0 0 12px;
	font-size: 14px;
	color: #57534e;
	line-height: 1.5;
	font-weight: 450;
}

body.psb-pres-portal-shell .psb-pres-portal-card {
	border-radius: 10px;
	border: 1px solid #e7e5e4;
	box-shadow: none;
	background: #fff;
}

body.psb-pres-portal-shell .psb-pres-portal-table {
	border-radius: 10px;
	overflow: hidden;
	border-color: #e7e5e4;
}

.psb-pres-shell-ayuda {
	margin: 0 0 16px;
	border: 1px solid #ebe8e6;
	border-radius: 10px;
	background: #fff;
}

.psb-pres-shell-ayuda__summary {
	cursor: pointer;
	list-style: none;
	padding: 10px 15px;
	font-size: 12px;
	font-weight: 600;
	color: #57534e;
	user-select: none;
	text-transform: none;
	letter-spacing: 0.01em;
}

.psb-pres-shell-ayuda__summary::-webkit-details-marker {
	display: none;
}

.psb-pres-shell-ayuda__summary::before {
	content: '';
	display: inline-block;
	width: 5px;
	height: 5px;
	margin-right: 8px;
	border-right: 1px solid #78716c;
	border-bottom: 1px solid #78716c;
	transform: rotate(-45deg);
	vertical-align: 2px;
	transition: transform 0.12s ease;
}

.psb-pres-shell-ayuda[open] .psb-pres-shell-ayuda__summary::before {
	transform: rotate(45deg);
	vertical-align: 1px;
}

.psb-pres-shell-ayuda__body {
	padding: 0 15px 14px;
	border-top: 1px solid #f0eeec;
}

.psb-pres-shell-ayuda__p {
	margin: 0;
	font-size: 12px;
	line-height: 1.55;
	color: #78716c;
	font-weight: 450;
}

/* Acceso portal (invitado) — mismo lenguaje visual que el shell */

.psb-pres-acceso__logo-wrap {
	margin: 0 0 24px;
	text-align: center;
}

.psb-pres-acceso__logo {
	display: block;
	margin: 0 auto;
	max-width: min(280px, 100%);
	max-height: 88px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.psb-pres-acceso {
	max-width: 420px;
	margin: 0 auto;
	padding: 28px 26px 30px;
	border-radius: 12px;
	border: 1px solid #e7e5e4;
	background: #fff;
	box-shadow: 0 12px 40px rgba(28, 25, 23, 0.06);
}

.psb-pres-acceso__msg {
	margin-bottom: 16px;
}

.psb-pres-acceso__form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.psb-pres-acceso__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.psb-pres-acceso__field--inline {
	padding-top: 2px;
}

.psb-pres-acceso__label {
	font-size: 13px;
	font-weight: 600;
	color: #44403c;
}

.psb-pres-acceso__input {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 11px 12px;
	border-radius: 8px;
	border: 1px solid #d6d3d1;
	background: #fafaf9;
	font-size: 15px;
	line-height: 1.35;
	color: #1c1917;
	transition: border-color 0.12s ease, background 0.12s ease;
}

.psb-pres-acceso__input:focus {
	outline: none;
	border-color: #78716c;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(41, 37, 36, 0.12);
}

.psb-pres-acceso__remember {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	color: #57534e;
	cursor: pointer;
	line-height: 1.4;
}

.psb-pres-acceso__remember input {
	margin: 3px 0 0;
	flex-shrink: 0;
}

.psb-pres-acceso__actions {
	margin-top: 6px;
}

.psb-pres-acceso__submit {
	width: 100%;
	justify-content: center;
	padding-top: 12px;
	padding-bottom: 12px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 8px;
}

.psb-pres-acceso__secondary {
	margin: 18px 0 0;
	padding-top: 16px;
	border-top: 1px solid #f5f5f4;
	text-align: center;
}

.psb-pres-acceso__secondary-link {
	font-size: 13px;
	font-weight: 550;
	color: #57534e;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.psb-pres-acceso__secondary-link:hover {
	color: #1c1917;
}

@media (max-width: 520px) {
	.psb-pres-acceso {
		padding: 22px 18px 24px;
		border-radius: 10px;
	}

	.psb-pres-shell__header-inner {
		flex-wrap: wrap;
		padding: 10px 14px;
	}

	.psb-pres-shell__main {
		padding: 16px 12px 36px;
	}

	.psb-pres-shell__stage {
		padding: 0;
	}
}
