/* Portal cliente PSB — mínimo, sin depender del shell del Núcleo */

.psb-pres-portal {
	max-width: min(58rem, 100%);
	margin: 1.75rem auto;
	padding: 0 1.25rem;
	font-size: 15px;
	line-height: 1.55;
	color: #111827;
	background: transparent;
}

.psb-pres-portal__title {
	margin: 0 0 0.6rem;
	font-size: 1.35rem;
	font-weight: 650;
	letter-spacing: -0.025em;
	line-height: 1.2;
	color: #1c1917;
}

.psb-pres-portal__intro {
	margin: 0 0 1rem;
	color: #374151;
}

.psb-pres-portal__lead {
	margin: 0 0 1rem;
	color: #374151;
	font-size: 15px;
	line-height: 1.55;
}

.psb-pres-portal-nav {
	margin: 0 0 1rem;
}

.psb-pres-portal-nav a {
	text-decoration: underline;
	text-underline-offset: 3px;
	color: #111827;
	font-weight: 500;
}

.psb-pres-portal-nav a:hover {
	color: #000;
}

.psb-pres-portal-msg {
	padding: 10px 14px;
	border-radius: 4px;
	margin-bottom: 1rem;
}

.psb-pres-portal-msg--ok {
	background: #ecfdf5;
	border: 1px solid #22c55e;
	color: #14532d;
}

.psb-pres-portal-msg--error {
	background: #fef2f2;
	border: 1px solid #ef4444;
	color: #7f1d1d;
}

.psb-pres-portal-msg--warn {
	background: #fffbeb;
	border: 1px solid #f59e0b;
	color: #78350f;
}

.psb-pres-portal-table-wrap {
	overflow-x: auto;
}

.psb-pres-portal-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border: 1px solid #e7e5e4;
	border-radius: 10px;
	overflow: hidden;
}

.psb-pres-portal-table th,
.psb-pres-portal-table td {
	padding: 13px 16px;
	text-align: left;
	border-bottom: 1px solid #f5f5f4;
	vertical-align: middle;
}

.psb-pres-portal-table tbody tr:last-child td {
	border-bottom: 0;
}

.psb-pres-portal-table thead th {
	background: #fafaf9;
	font-weight: 600;
	font-size: 12px;
	text-transform: none;
	letter-spacing: -0.01em;
	color: #44403c;
	border-bottom: 1px solid #e7e5e4;
}

.psb-pres-portal-num {
	text-align: right;
	white-space: nowrap;
}

.psb-pres-portal-muted {
	display: inline-block;
	font-size: 12px;
	line-height: 1.45;
	color: #78716c;
	margin-top: 4px;
	font-weight: 450;
}

.psb-pres-portal-badge {
	display: inline-block;
	margin-top: 6px;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #111827;
	background: #f3f4f6;
	border: 1px solid #d1d5db;
}

.psb-pres-portal-line-tag {
	display: inline-block;
	margin-top: 4px;
	font-size: 12px;
	font-weight: 600;
	color: #111827;
}

.psb-pres-portal-card--config-plastico {
	border-left: 3px solid #292524;
}

.psb-pres-portal__btn {
	display: inline-block;
	padding: 10px 18px;
	min-height: 42px;
	box-sizing: border-box;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.25;
	letter-spacing: -0.01em;
	text-transform: none;
	border: 1px solid #1c1917;
	background: #1c1917;
	color: #fafaf9;
	cursor: pointer;
	transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

.psb-pres-portal__btn:hover {
	background: #0c0a09;
	border-color: #0c0a09;
	color: #fff;
}

.psb-pres-portal__btn--ghost {
	background: #fff;
	color: #292524;
	border-color: #d6d3d1;
	border-width: 1px;
}

.psb-pres-portal__btn--ghost:hover {
	background: #fafaf9;
	border-color: #a8a29e;
	color: #1c1917;
}

.psb-pres-portal__btn--primary {
	background: #1c1917;
	color: #fafaf9;
	border-color: #1c1917;
}

.psb-pres-portal__btn--primary:hover {
	background: #0c0a09;
	border-color: #0c0a09;
	color: #fff;
}

.psb-pres-portal__btn--danger {
	background: #b32d2e;
	border-color: #b32d2e;
	color: #fff;
}

.psb-pres-portal-card {
	background: #fff;
	border: 1px solid #e7e5e4;
	border-radius: 10px;
	padding: 22px 24px;
	margin-bottom: 1.25rem;
}

.psb-pres-portal-card h3 {
	margin: 0 0 12px;
	font-size: 0.98rem;
	font-weight: 650;
	text-transform: none;
	letter-spacing: -0.02em;
	color: #1c1917;
	line-height: 1.3;
}

.psb-pres-portal-dl {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 10px 18px;
	margin: 0;
}

.psb-pres-portal-dl dt {
	margin: 0;
	font-weight: 600;
	color: #44403c;
	font-size: 13px;
	line-height: 1.35;
}

.psb-pres-portal-dl dd {
	margin: 0;
}

.psb-pres-portal-pre {
	white-space: pre-wrap;
	margin: 0;
}

.psb-pres-portal-total {
	font-size: 1.1rem;
	margin: 12px 0 4px;
}

.psb-pres-portal-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 12px;
}

.psb-pres-portal-form {
	margin: 0;
}

.psb-pres-fp-form__dl {
	grid-template-columns: minmax(120px, 180px) 1fr;
}

.psb-pres-fp-form__dl dt {
	align-self: start;
	padding-top: 6px;
}

.psb-pres-fp-form__dl input[type="text"],
.psb-pres-fp-form__dl input[type="number"],
.psb-pres-fp-form__dl select {
	max-width: 100%;
	box-sizing: border-box;
}

@media (max-width: 600px) {
	.psb-pres-fp-form__dl {
		grid-template-columns: 1fr;
	}
}

.psb-pres-portal-table--compact th,
.psb-pres-portal-table--compact td {
	padding: 10px 14px;
	font-size: 14px;
}

/* Procesos incluidos — ficha portal cliente */
.psb-pres-portal-procesos-lista {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.psb-pres-portal-proceso-item {
	margin: 0;
	padding: 0.85rem 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.psb-pres-portal-proceso-item:last-child {
	border-bottom: 0;
}

.psb-pres-portal-proceso-item__name {
	display: block;
	font-size: 1.05rem;
	line-height: 1.35;
}

.psb-pres-portal-proceso-item__cfg {
	margin: 0.35rem 0 0;
	font-size: 0.95rem;
	line-height: 1.4;
	opacity: 0.88;
}

.psb-pres-portal-proceso-item__importe {
	margin: 0.45rem 0 0;
}

.psb-pres-portal-estado-lead {
	margin: 0 0 0.85rem;
}

@media print {
	.psb-pres-portal-nav,
	.psb-pres-portal-card--acciones {
		display: none;
	}
}

/* —— Panel cliente D1 + rail D1D —— refinamiento V4 —— */

.psb-pres-panel {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: 0;
}

.psb-pres-panel__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(216px, 264px);
	gap: 32px 40px;
	align-items: start;
}

/* PSB-PORTAL-CLIENTE-LAYOUT-001: columnas main + rail alineadas al borde superior */
body.psb-pres-portal-shell .psb-pres-panel__grid > .psb-pres-panel__main,
body.psb-pres-portal-shell .psb-pres-panel__grid > .psb-pres-rail-d1d {
	align-self: start;
}

body.psb-pres-portal-shell .psb-pres-panel > .psb-pres-portal-msg {
	margin-bottom: 1rem;
}

body.psb-pres-portal-shell .psb-pres-panel > .psb-sol-v2__hero {
	margin-bottom: 0;
}

.psb-pres-panel__grid--solo-main {
	grid-template-columns: minmax(0, 1fr);
	max-width: min(58rem, 100%);
}

.psb-pres-panel__main {
	min-width: 0;
}

.psb-pres-panel__screen-head {
	margin-bottom: 24px;
}

.psb-pres-panel__hero {
	padding-bottom: 20px;
	border-bottom: 1px solid #e7e5e4;
	margin-bottom: 28px;
}

.psb-pres-panel__hero-main {
	min-width: 0;
}

.psb-pres-panel__screen-back.psb-pres-portal-nav {
	margin: 0 0 10px;
}

.psb-pres-panel__screen-back.psb-pres-portal-nav a {
	font-size: 13px;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
	text-decoration: none;
	color: #78716c;
	border-bottom: 1px solid transparent;
}

.psb-pres-panel__screen-back.psb-pres-portal-nav a:hover {
	color: #1c1917;
	border-bottom-color: #d6d3d1;
}

.psb-pres-panel__screen-title {
	margin: 0 0 6px;
	font-size: clamp(1.5rem, 2.4vw, 1.8rem);
	font-weight: 650;
	letter-spacing: -0.035em;
	line-height: 1.15;
	color: #1c1917;
}

.psb-pres-panel__screen-sub {
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
	font-weight: 450;
	color: #78716c;
	max-width: 42rem;
	text-transform: none;
	letter-spacing: 0;
}

.psb-pres-panel__screen-sub--ref {
	margin-top: 10px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: #292524;
	border-left: 2px solid #d6d3d1;
	padding-left: 14px;
	text-transform: none;
}

.psb-pres-panel__section {
	margin-bottom: 32px;
}

.psb-pres-panel__section-title {
	margin: 0 0 14px;
	padding-bottom: 9px;
	border-bottom: 1px solid #e7e5e4;
	border-left: 0;
	padding-left: 0;
	font-size: 12px;
	font-weight: 650;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #57534e;
}

.psb-pres-panel__note {
	margin: 0 0 16px;
	padding: 12px 15px;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 8px;
	color: #713f12;
	font-size: 13px;
	line-height: 1.5;
	font-weight: 450;
	max-width: 48rem;
}

.psb-pres-panel__tip {
	margin: 0 0 18px;
	font-size: 12px;
	line-height: 1.55;
	font-weight: 450;
	color: #a8a29e;
	max-width: 44rem;
	border-left: 2px solid #e7e5e4;
	padding-left: 14px;
}

.psb-pres-panel__surface {
	border: 1px solid #e7e5e4;
	background: #fff;
	padding: 22px 22px 16px;
	margin-bottom: 16px;
	border-radius: 10px;
}

.psb-pres-panel__surface--form .psb-pres-portal-card {
	margin-bottom: 16px;
}

.psb-pres-panel__surface--detail {
	padding: 22px 22px 16px;
	max-width: 100%;
}

.psb-pres-portal-card--panel-doc {
	padding: 24px 24px 22px;
	margin-bottom: 16px;
}

.psb-pres-panel__quick-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
	gap: 16px;
}

@media (min-width: 720px) {
	.psb-pres-panel--home .psb-pres-panel__quick-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.psb-pres-quick-card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	min-height: 76px;
	padding: 17px 20px;
	background: #fff;
	border: 1px solid #e7e5e4;
	border-radius: 10px;
	text-decoration: none;
	color: #1c1917;
	box-shadow: none;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.psb-pres-quick-card:hover {
	border-color: #d6d3d1;
	background: #fafaf9;
	color: #0c0a09;
	box-shadow: none;
}

.psb-pres-quick-card__label {
	font-weight: 600;
	font-size: 15px;
	line-height: 1.25;
	text-transform: none;
	letter-spacing: -0.02em;
}

.psb-pres-quick-card:hover .psb-pres-quick-card__label {
	color: inherit;
}

.psb-pres-quick-card__hint {
	font-size: 12px;
	font-weight: 450;
	color: #a8a29e;
	line-height: 1.35;
	letter-spacing: 0;
}

.psb-pres-quick-card:hover .psb-pres-quick-card__hint {
	color: #78716c;
}

.psb-pres-panel__section--calc-2026 {
	margin-bottom: 1.75rem;
}

.psb-pres-quick-card--calc-2026 {
	border-color: #99f6e4;
	background: #f0fdfa;
}

.psb-pres-quick-card--calc-2026:hover {
	border-color: #5eead4;
	background: #ecfdf5;
}

.psb-pres-rail-d1d__sub-title {
	margin: 0.85rem 0 0.35rem;
	font-size: 11px;
	font-weight: 650;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #0f766e;
}

.psb-pres-rail-d1d__link--calc-2026 {
	font-weight: 600;
}

.psb-pres-panel__form-card {
	max-width: 100%;
}

.psb-pres-panel__form-card .psb-pres-shell-ayuda {
	margin-top: 16px;
}

.psb-pres-panel__form-actions {
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin-top: 1.35rem;
}

.psb-pres-panel__form-actions--mobile {
	display: none;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

body.psb-pres-portal-shell .psb-pres-panel--home .psb-pres-portal-table-wrap {
	border: 1px solid #e7e5e4;
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
}

/* Rail D1D V4 */
.psb-pres-rail-d1d {
	position: sticky;
	top: 28px;
	align-self: start;
	background: #fafafa;
	border: 1px solid #e5e3e0;
	border-radius: 10px;
	padding: 6px 0;
	box-shadow: none;
}

.psb-pres-rail-d1d--v3 .psb-pres-rail-d1d__block:first-child,
.psb-pres-rail-d1d--v4 .psb-pres-rail-d1d__block:first-child {
	padding-top: 16px;
}

.psb-pres-rail-d1d__block {
	padding: 16px 18px 18px;
	border-bottom: 1px solid #ebe8e6;
}

.psb-pres-rail-d1d__block:last-child {
	border-bottom: 0;
	padding-bottom: 16px;
}

.psb-pres-rail-d1d__block--minor {
	background: transparent;
	opacity: 0.92;
}

.psb-pres-rail-d1d__block--minor .psb-pres-rail-d1d__block-title {
	color: #78716c;
}

.psb-pres-rail-d1d__block-title {
	margin: 0 0 10px;
	font-size: 11px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0.04em;
	color: #78716c;
}

.psb-pres-rail-d1d__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.psb-pres-rail-d1d__list li {
	margin: 0 0 8px;
}

.psb-pres-rail-d1d__list li:last-child {
	margin-bottom: 0;
}

.psb-pres-rail-d1d__list--dense li {
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 450;
	color: #44403c;
	line-height: 1.4;
}

.psb-pres-rail-d1d__link {
	display: inline;
	font-size: 13px;
	font-weight: 500;
	color: #292524;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.psb-pres-rail-d1d__link:hover {
	color: #1c1917;
	border-bottom-color: #d6d3d1;
}

.psb-pres-rail-d1d__link--current {
	color: #1c1917;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 0;
	pointer-events: none;
}

.psb-pres-rail-d1d__muted {
	margin: 0;
	font-size: 12px;
	line-height: 1.5;
	font-weight: 450;
	color: #78716c;
}

.psb-pres-rail-d1d__ctx {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: #292524;
	line-height: 1.4;
	word-break: break-word;
	letter-spacing: -0.02em;
}

.psb-pres-rail-d1d__stat {
	font-weight: 650;
	color: #1c1917;
	font-variant-numeric: tabular-nums;
}

.psb-pres-rail-d1d__stat--warn {
	color: #c2410c;
}

.psb-pres-rail-d1d__actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.psb-pres-rail-d1d__btn-full {
	width: 100%;
	text-align: center;
	box-sizing: border-box;
}

@media (max-width: 960px) {
	.psb-pres-panel__grid {
		grid-template-columns: 1fr;
	}

	.psb-pres-rail-d1d {
		position: static;
	}

	.psb-pres-rail-d1d--form .psb-pres-rail-d1d__actions {
		display: none;
	}

	.psb-pres-panel__form-actions--mobile {
		display: flex;
	}
}

body.psb-pres-portal-shell .psb-pres-panel__grid--solo-main {
	margin-left: 0;
	margin-right: auto;
}

body.psb-pres-portal-shell .psb-pres-portal-msg {
	border-radius: 8px;
	border-width: 1px;
	font-weight: 500;
	font-size: 14px;
}

body.psb-pres-portal-shell .psb-pres-portal-msg--ok {
	background: #ecfdf5;
	border-color: #86efac;
	color: #14532d;
}

body.psb-pres-portal-shell .psb-pres-portal-msg--error {
	background: #fef2f2;
	border-color: #fecaca;
	color: #7f1d1d;
}

/* Ficha presupuesto (sin grid): coherencia V4 */
body.psb-pres-portal-shell .psb-pres-portal--ficha {
	max-width: min(52rem, 100%);
	margin: 0 auto;
}

body.psb-pres-portal-shell .psb-pres-portal--ficha .psb-pres-portal__title {
	font-size: clamp(1.45rem, 2.2vw, 1.75rem);
	font-weight: 650;
	letter-spacing: -0.03em;
	padding-bottom: 16px;
	border-bottom: 1px solid #e7e5e4;
	margin-bottom: 22px;
}

body.psb-pres-portal-shell .psb-pres-portal--ficha .psb-pres-portal-card {
	padding: 22px 24px;
	border-radius: 10px;
}

/* Menos “caja en caja”: tarjetas dentro de surface */
.psb-pres-panel__surface .psb-pres-portal-card {
	border-color: #ebe8e6;
	background: #fff;
}

/* Solicitud manual V2 (portal) */
.psb-sol-v2__hero {
	margin-bottom: 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid #e7e5e4;
}

.psb-sol-v2__eyebrow {
	margin: 0 0 8px;
	font-size: 11px;
	font-weight: 650;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #78716c;
}

.psb-sol-v2__title {
	margin-bottom: 10px;
}

.psb-sol-v2__sub {
	margin: 0;
	max-width: 42rem;
	color: #57534e;
	font-size: 15px;
	line-height: 1.55;
}

.psb-sol-v2__meta {
	margin: 14px 0 0;
	font-size: 13px;
	color: #44403c;
	font-weight: 550;
}

.psb-sol-v2__flash {
	margin-bottom: 18px;
}

.psb-sol-v2__card {
	padding: 22px 24px 26px;
	border-radius: 10px;
	border: 1px solid #e7e5e4;
	background: #fff;
	box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04), 0 6px 20px rgba(28, 25, 23, 0.05);
}

.psb-sol-v2__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 18px;
}

.psb-sol-v2__field--full {
	grid-column: 1 / -1;
}

.psb-sol-v2__label {
	display: block;
	font-size: 13px;
	font-weight: 650;
	color: #292524;
	margin-bottom: 6px;
}

.psb-sol-v2__hint {
	margin: 0 0 8px;
	font-size: 12px;
	line-height: 1.45;
	color: #a8a29e;
	font-weight: 450;
}

.psb-sol-v2__input,
.psb-sol-v2__select,
.psb-sol-v2__textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border-radius: 8px;
	border: 1px solid #d6d3d1;
	background: #fafaf9;
	font-size: 15px;
	color: #1c1917;
}

.psb-sol-v2__textarea {
	min-height: 88px;
	resize: vertical;
}

.psb-sol-v2__editor .wp-editor-wrap {
	border-radius: 8px;
	border: 1px solid #d6d3d1;
	overflow: hidden;
	background: #fff;
}

.psb-sol-v2__editor .wp-editor-container textarea.wp-editor-area {
	border: 0;
}

.psb-sol-v2__footer {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #f5f5f4;
}

.psb-sol-v2__legal {
	margin: 0;
	font-size: 12px;
	line-height: 1.5;
	color: #78716c;
}

@media (max-width: 640px) {
	.psb-sol-v2__grid {
		grid-template-columns: 1fr;
	}
}

/* Configuradores portal: campos + precio en vivo en la misma fila (columna principal) */
.psb-pres-config-workrow {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
	gap: 1.35rem 1.65rem;
	align-items: start;
}

.psb-pres-config-workrow__fields {
	min-width: 0;
}

.psb-pres-config-workrow .psb-pres-live-price {
	margin-top: 0;
}

@media (max-width: 900px) {
	.psb-pres-config-workrow {
		grid-template-columns: 1fr;
	}

	.psb-pres-config-workrow .psb-pres-live-price {
		margin-top: 0.35rem;
	}
}

/* Precio en vivo — configuradores portal */
.psb-pres-live-price {
	margin-top: 1.25rem;
	padding: 1.05rem 1.15rem 1.15rem;
	border-radius: 10px;
	border: 1px solid #e5e3e0;
	background: #fafafa;
}

.psb-pres-live-price__inner {
	margin-bottom: 0.85rem;
}

.psb-pres-live-price__label {
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #78716c;
	margin: 0 0 0.35rem;
}

.psb-pres-live-price__amount {
	font-size: 1.45rem;
	font-weight: 700;
	line-height: 1.2;
	color: #1c1917;
	margin: 0 0 0.4rem;
	min-height: 1.45em;
}

.psb-pres-live-price--ready .psb-pres-live-price__amount {
	color: #0f766e;
}

.psb-pres-live-price__hint {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.5;
	color: #78716c;
	min-height: 1.35em;
	font-weight: 450;
}

.psb-pres-live-price__actions {
	margin-top: 0.25rem;
}

.psb-pres-live-price__btn {
	width: 100%;
	max-width: 22rem;
	min-height: 42px;
	border-radius: 8px;
}

/* Inicio portal: ritmo entre bloques (pulido fino) */
body.psb-pres-portal-shell .psb-pres-panel--home .psb-pres-panel__hero {
	margin-bottom: 30px;
}

body.psb-pres-portal-shell .psb-pres-panel--home .psb-pres-panel__section:last-of-type {
	margin-bottom: 0;
}

/* Pareja Largo × Ancho (portal configuradores) */
.psb-pres-field-pair {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.5rem;
}

.psb-pres-field-pair__input {
	min-width: 5.5rem;
	max-width: 9rem;
}

.psb-pres-field-pair__x {
	color: #78716c;
	font-weight: 500;
	user-select: none;
}

/* Caras 1 / 2 — control segmentado */
.psb-pres-seg {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.psb-pres-seg__opt {
	display: inline-flex;
	margin: 0;
	cursor: pointer;
}

.psb-pres-seg__input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.psb-pres-seg__label {
	display: inline-block;
	padding: 0.35rem 0.85rem;
	border: 1px solid #d6d3d1;
	border-radius: 8px;
	background: #fff;
	font-size: 0.9rem;
	font-weight: 500;
	color: #44403c;
	line-height: 1.3;
	transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.psb-pres-seg__opt:hover .psb-pres-seg__label {
	border-color: #a8a29e;
}

.psb-pres-seg__input:focus + .psb-pres-seg__label {
	outline: 2px solid #0d9488;
	outline-offset: 2px;
}

.psb-pres-seg__input:checked + .psb-pres-seg__label {
	border-color: #0f766e;
	background: #ecfdf5;
	color: #134e4a;
}

/* —— PROMPT 011: portal configuradores — familia visual unificada —— */

body.psb-pres-portal-shell .psb-pres-panel__grid:not(.psb-pres-panel__grid--solo-main):not(.psb-pres-panel__grid--shell3) {
	grid-template-columns: minmax(0, 1fr) minmax(200px, 280px);
	gap: 32px 44px;
	align-items: start;
}

body.psb-pres-portal-shell .psb-pres-panel__hero--form {
	padding-bottom: 1.35rem;
	margin-bottom: 1.85rem;
	border-bottom: 1px solid #e5e3e0;
}

body.psb-pres-portal-shell .psb-pres-panel__hero--form .psb-pres-panel__screen-title {
	font-size: clamp(1.95rem, 3.6vw, 2.5rem);
	font-weight: 750;
	letter-spacing: -0.045em;
	line-height: 1.08;
	color: #0c0a09;
	margin: 0;
}

body.psb-pres-portal-shell .psb-pres-panel__hero--form .psb-pres-panel__screen-sub {
	margin: 0.65rem 0 0;
	font-size: 15px;
	line-height: 1.5;
	color: #57534e;
	max-width: 42rem;
	font-weight: 450;
}

body.psb-pres-portal-shell .psb-pres-panel__surface--form {
	padding: 28px 28px 24px;
	border-radius: 14px;
	border: 1px solid #e7e5e4;
	background: #fff;
}

body.psb-pres-portal-shell .psb-pres-panel__surface--form .psb-pres-panel__form-card {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
	margin-bottom: 0;
}

body.psb-pres-portal-shell .psb-pres-tr-modalidad-grid {
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	body.psb-pres-portal-shell .psb-pres-tr-modalidad-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 960px) {
	body.psb-pres-portal-shell .psb-pres-tr-modalidad-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

body.psb-pres-portal-shell .psb-pres-tr-modalidad-group {
	border: 0;
	margin: 0;
	padding: 0;
}

/* Plastificados 2026 — caras tarjetas + medidas mm en fila */
body.psb-pres-portal-shell .psb-pres-fp-form__dl dt#psb-pf-caras-label,
body.psb-pres-portal-shell .psb-pres-fp-form__dd--cards,
body.psb-pres-portal-shell .psb-pres-fp-form__dl dt#psb-pf-medidas-label,
body.psb-pres-portal-shell .psb-pres-fp-form__dd--medidas {
	grid-column: 1 / -1;
}

body.psb-pres-portal-shell .psb-pres-uvi-sel-form__dl dt#psb-uvi-medidas-label,
body.psb-pres-portal-shell .psb-pres-uvi-sel-form__dd--medidas,
body.psb-pres-portal-shell .psb-pres-rega-form__dl dt#psb-reg-medidas-label,
body.psb-pres-portal-shell .psb-pres-rega-form__dd--medidas {
	grid-column: 1 / -1;
}

body.psb-pres-portal-shell .psb-pres-fp-caras-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 480px) {
	body.psb-pres-portal-shell .psb-pres-fp-caras-grid {
		grid-template-columns: 1fr;
	}
}

body.psb-pres-portal-shell .psb-pres-fp-caras-group {
	border: 0;
	margin: 0;
	padding: 0;
}

body.psb-pres-portal-shell .psb-pres-fp-medidas-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.5rem 0.75rem;
}

body.psb-pres-portal-shell .psb-pres-fp-medidas-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-width: 0;
	flex: 1 1 7.5rem;
	max-width: 11rem;
}

body.psb-pres-portal-shell .psb-pres-fp-medidas-field__label {
	font-size: 12px;
	font-weight: 600;
	color: #57534e;
	line-height: 1.3;
}

body.psb-pres-portal-shell .psb-pres-fp-medidas-field__input {
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

body.psb-pres-portal-shell .psb-pres-fp-medidas-x {
	align-self: center;
	color: #78716c;
	font-weight: 600;
	font-size: 1.1rem;
	line-height: 1;
	padding-bottom: 0.65rem;
	user-select: none;
}

/* UVI Total 2026 — formato/caras tarjetas + medidas mm */
body.psb-pres-portal-shell .psb-pres-ut-form__dl dt#psb-ut-formato-label,
body.psb-pres-portal-shell .psb-pres-ut-form__dd--cards,
body.psb-pres-portal-shell .psb-pres-ut-form__dl dt#psb-ut-caras-label,
body.psb-pres-portal-shell .psb-pres-ut-form__dl dt#psb-ut-medidas-label,
body.psb-pres-portal-shell .psb-pres-ut-form__dd--medidas {
	grid-column: 1 / -1;
}

body.psb-pres-portal-shell .psb-pres-ut-formato-grid,
body.psb-pres-portal-shell .psb-pres-ut-caras-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 480px) {
	body.psb-pres-portal-shell .psb-pres-ut-formato-grid,
	body.psb-pres-portal-shell .psb-pres-ut-caras-grid {
		grid-template-columns: 1fr;
	}
}

body.psb-pres-portal-shell .psb-pres-ut-formato-group,
body.psb-pres-portal-shell .psb-pres-ut-caras-group {
	border: 0;
	margin: 0;
	padding: 0;
}

/* UVI Total 2026 — medidas: límites dentro del campo + mini diagrama */
body.psb-pres-portal-shell .psb-pres-ut-medidas-layout {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0.75rem 1.25rem;
}

body.psb-pres-portal-shell .psb-pres-ut-medidas-layout__fields {
	flex: 1 1 14rem;
	min-width: 0;
}

body.psb-pres-portal-shell .psb-pres-ut-medidas-field__input-wrap {
	position: relative;
	display: block;
}

body.psb-pres-portal-shell .psb-pres-ut-medidas-field__input-wrap .psb-pres-fp-medidas-field__input {
	padding-right: 3.75rem;
}

body.psb-pres-portal-shell .psb-pres-ut-medidas-field__input-wrap .psb-pres-fp-medidas-field__limit {
	position: absolute;
	top: 50%;
	right: 0.5rem;
	transform: translateY(-50%);
	font-size: 11px;
	font-weight: 500;
	color: #a8a29e;
	line-height: 1;
	pointer-events: none;
	white-space: nowrap;
}

body.psb-pres-portal-shell .psb-pres-ut-medidas-diagram {
	margin: 0;
	flex: 0 0 auto;
	align-self: center;
	color: #78716c;
}

body.psb-pres-portal-shell .psb-pres-ut-medidas-diagram__svg {
	display: block;
	width: 7.5rem;
	height: auto;
	max-width: 100%;
}

body.psb-pres-portal-shell .psb-pres-ut-medidas-diagram__rect {
	fill: #fafaf9;
	stroke: currentColor;
	stroke-width: 1.5;
}

body.psb-pres-portal-shell .psb-pres-ut-medidas-diagram__dim line,
body.psb-pres-portal-shell .psb-pres-ut-medidas-diagram__dim polyline {
	fill: none;
	stroke: currentColor;
	stroke-width: 1;
	stroke-linecap: round;
	stroke-linejoin: round;
}

body.psb-pres-portal-shell .psb-pres-ut-medidas-diagram__dim text {
	fill: currentColor;
	font-size: 9px;
	font-weight: 600;
	font-family: inherit;
}

@media (max-width: 480px) {
	body.psb-pres-portal-shell .psb-pres-ut-medidas-diagram {
		width: 100%;
		display: flex;
		justify-content: center;
		padding-top: 0.15rem;
	}
}

body.psb-pres-portal-shell .psb-pres-pl-form__dl dt#psb-tr-modalidad-label,
body.psb-pres-portal-shell .psb-pres-pl-form__dd--cards {
	grid-column: 1 / -1;
}

body.psb-pres-portal-shell .psb-pres-pl-form__field-hint {
	margin: 0.5rem 0 0;
	font-size: 12px;
	line-height: 1.45;
}

body.psb-pres-portal-shell .psb-pres-pl-form__dl dt#psb-pl-escenario-label,
body.psb-pres-portal-shell .psb-pres-pl-form__dd--cards {
	grid-column: 1 / -1;
}

body.psb-pres-portal-shell .psb-pres-pl-radio-cards {
	margin-top: 0.15rem;
}

body.psb-pres-portal-shell .psb-pres-pl-radio-group {
	border: 0;
	margin: 0 0 1.25rem;
	padding: 0;
	min-width: 0;
}

body.psb-pres-portal-shell .psb-pres-pl-radio-group:last-of-type {
	margin-bottom: 0;
}

body.psb-pres-portal-shell .psb-pres-pl-radio-group__title {
	display: block;
	margin: 0 0 0.65rem;
	padding: 0;
	font-size: 12px;
	font-weight: 650;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #57534e;
}

body.psb-pres-portal-shell .psb-pres-pl-radio-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

@media (min-width: 540px) {
	body.psb-pres-portal-shell .psb-pres-pl-radio-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 900px) {
	body.psb-pres-portal-shell .psb-pres-pl-radio-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

body.psb-pres-portal-shell .psb-pres-pl-radio-card {
	display: block;
	position: relative;
	cursor: pointer;
}

body.psb-pres-portal-shell .psb-pres-pl-radio-card__input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

body.psb-pres-portal-shell .psb-pres-pl-radio-card__inner {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid #e7e5e4;
	border-radius: 10px;
	background: #fff;
	color: #1c1917;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

body.psb-pres-portal-shell .psb-pres-pl-radio-card:hover .psb-pres-pl-radio-card__inner {
	border-color: #d6d3d1;
	background: #fafaf9;
}

body.psb-pres-portal-shell .psb-pres-pl-radio-card__input:focus-visible + .psb-pres-pl-radio-card__inner {
	outline: 2px solid #0d9488;
	outline-offset: 2px;
}

body.psb-pres-portal-shell .psb-pres-pl-radio-card__input:checked + .psb-pres-pl-radio-card__inner {
	border-color: #0f766e;
	background: #ecfdf5;
	box-shadow: 0 0 0 1px #0f766e;
}

body.psb-pres-portal-shell .psb-pres-pl-radio-card__icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 8px;
	background: #f5f5f4;
	color: #57534e;
}

body.psb-pres-portal-shell .psb-pres-pl-radio-card__input:checked + .psb-pres-pl-radio-card__inner .psb-pres-pl-radio-card__icon {
	background: #ccfbf1;
	color: #0f766e;
}

body.psb-pres-portal-shell .psb-pres-pl-radio-card__svg {
	display: block;
}

body.psb-pres-portal-shell .psb-pres-pl-radio-card__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

body.psb-pres-portal-shell .psb-pres-pl-radio-card__title {
	font-size: 15px;
	font-weight: 650;
	line-height: 1.25;
	color: #1c1917;
	letter-spacing: -0.02em;
}

body.psb-pres-portal-shell .psb-pres-pl-radio-card__desc {
	font-size: 12px;
	line-height: 1.4;
	color: #78716c;
}

body.psb-pres-portal-shell .psb-pres-pl-form__dl,
body.psb-pres-portal-shell .psb-pres-fp-form__dl {
	row-gap: 18px;
	column-gap: 24px;
}

body.psb-pres-portal-shell .psb-pres-pl-form__dl dt,
body.psb-pres-portal-shell .psb-pres-fp-form__dl dt {
	padding-top: 11px;
	font-size: 13px;
	font-weight: 650;
	color: #292524;
	letter-spacing: -0.01em;
}

body.psb-pres-portal-shell .psb-pres-pl-form__dl input[type="text"],
body.psb-pres-portal-shell .psb-pres-pl-form__dl input[type="number"],
body.psb-pres-portal-shell .psb-pres-pl-form__dl input[type="email"],
body.psb-pres-portal-shell .psb-pres-pl-form__dl select,
body.psb-pres-portal-shell .psb-pres-pl-form__dl textarea,
body.psb-pres-portal-shell .psb-pres-fp-form__dl input[type="text"],
body.psb-pres-portal-shell .psb-pres-fp-form__dl input[type="number"],
body.psb-pres-portal-shell .psb-pres-fp-form__dl input[type="email"],
body.psb-pres-portal-shell .psb-pres-fp-form__dl select,
body.psb-pres-portal-shell .psb-pres-fp-form__dl textarea {
	border-radius: 10px;
	border: 1px solid #d6d3d1;
	padding: 11px 14px;
	font-size: 15px;
	background: #fff;
	color: #1c1917;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.psb-pres-portal-shell .psb-pres-pl-form__dl input:focus,
body.psb-pres-portal-shell .psb-pres-pl-form__dl select:focus,
body.psb-pres-portal-shell .psb-pres-pl-form__dl textarea:focus,
body.psb-pres-portal-shell .psb-pres-fp-form__dl input:focus,
body.psb-pres-portal-shell .psb-pres-fp-form__dl select:focus,
body.psb-pres-portal-shell .psb-pres-fp-form__dl textarea:focus {
	outline: none;
	border-color: #78716c;
	box-shadow: 0 0 0 3px rgba(41, 37, 36, 0.1);
}

body.psb-pres-portal-shell .psb-pres-config-workrow {
	gap: 1.5rem 2rem;
	grid-template-columns: minmax(0, 1fr) minmax(232px, 340px);
	align-items: start;
}

body.psb-pres-portal-shell .psb-pres-config-workrow > .psb-pres-config-workrow__fields,
body.psb-pres-portal-shell .psb-pres-config-workrow > .psb-pres-live-price {
	align-self: start;
}

body.psb-pres-portal-shell .psb-pres-live-price {
	margin-top: 0;
	padding: 1.4rem 1.5rem 1.35rem;
	border-radius: 14px;
	border: 1px solid #e0dcd8;
	border-left: 4px solid #0f766e;
	background: #fff;
	box-shadow: 0 10px 32px rgba(28, 25, 23, 0.08);
}

body.psb-pres-portal-shell .psb-pres-live-price__label {
	font-size: 11px;
	font-weight: 650;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #57534e;
	margin-bottom: 0.45rem;
}

body.psb-pres-portal-shell .psb-pres-live-price__amount {
	font-size: clamp(1.7rem, 3vw, 2.15rem);
	font-weight: 780;
	letter-spacing: -0.03em;
}

body.psb-pres-portal-shell .psb-pres-live-price__hint {
	font-size: 14px;
	color: #78716c;
}

body.psb-pres-portal-shell .psb-pres-live-price__actions {
	margin-top: 0.75rem;
	padding-top: 0.85rem;
	border-top: 1px solid #f0eeec;
}

body.psb-pres-portal-shell .psb-pres-live-price__btn {
	max-width: none;
	width: 100%;
	min-height: 48px;
	font-size: 15px;
	font-weight: 650;
	border-radius: 10px;
}

body.psb-pres-portal-shell .psb-pres-rail-d1d--v4 {
	background: #fff;
	border: 1px solid #e7e5e4;
	border-radius: 14px;
	padding: 0;
	box-shadow: 0 4px 20px rgba(28, 25, 23, 0.04);
	overflow: hidden;
}

body.psb-pres-portal-shell .psb-pres-rail-d1d--v4 .psb-pres-rail-d1d__block {
	padding: 18px 16px 16px;
	border-bottom-color: #f0eeec;
}

body.psb-pres-portal-shell .psb-pres-rail-d1d--v4 .psb-pres-rail-d1d__block-title {
	font-size: 10px;
	font-weight: 650;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #78716c;
	margin: 0 0 12px;
}

body.psb-pres-portal-shell .psb-pres-rail-d1d__list--nav .psb-pres-rail-d1d__link {
	display: block;
	padding: 9px 10px;
	border-radius: 9px;
	font-size: 14px;
	font-weight: 550;
	color: #44403c;
	text-decoration: none;
	border-bottom: 0;
	line-height: 1.35;
}

body.psb-pres-portal-shell .psb-pres-rail-d1d__list--nav .psb-pres-rail-d1d__link:hover {
	background: #fafaf9;
	color: #0c0a09;
}

body.psb-pres-portal-shell .psb-pres-rail-d1d__list--nav .psb-pres-rail-d1d__link--current {
	background: #ecfdf5;
	color: #134e4a;
	font-weight: 650;
}

body.psb-pres-portal-shell .psb-pres-rail-d1d__portal-hint {
	margin: 14px 0 0;
	padding-top: 12px;
	border-top: 1px solid #f0eeec;
}

body.psb-pres-portal-shell .psb-pres-rail-d1d__portal-hint-link {
	font-size: 12px;
	font-weight: 550;
	color: #78716c;
	text-decoration: none;
}

body.psb-pres-portal-shell .psb-pres-rail-d1d__portal-hint-link:hover {
	color: #1c1917;
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.psb-pres-portal-shell .psb-pres-rail-d1d__block--primary {
	background: #fafaf9;
	border-radius: 14px 14px 0 0;
}

body.psb-pres-portal-shell .psb-pres-rail-d1d--v4 .psb-pres-rail-d1d__block--minor {
	background: #fafaf9;
	border-radius: 0 0 14px 14px;
}

body.psb-pres-portal-shell .psb-pres-rail-d1d__block--minor .psb-pres-rail-d1d__muted {
	font-size: 12px;
	line-height: 1.55;
	color: #78716c;
}

@media (max-width: 960px) {
	body.psb-pres-portal-shell .psb-pres-config-workrow {
		grid-template-columns: 1fr;
	}

	body.psb-pres-portal-shell .psb-pres-live-price {
		position: static;
	}
}

body.psb-pres-portal-shell .psb-pres-pl-form__dt--full,
body.psb-pres-portal-shell .psb-pres-st-form__dd--pelicula,
body.psb-pres-portal-shell .psb-pres-st-form__dd--magnesios {
	grid-column: 1 / -1;
}

body.psb-pres-portal-shell .psb-pres-st-mg-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	max-width: 520px;
}

@media (min-width: 540px) {
	body.psb-pres-portal-shell .psb-pres-st-mg-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

body.psb-pres-portal-shell .psb-pres-st-mg-slot__label {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #57534e;
}

body.psb-pres-portal-shell .psb-pres-st-mg-slot__input {
	width: 100%;
	max-width: 5.5rem;
}

body.psb-pres-portal-shell .psb-pres-st-cliche-note {
	margin: 0;
	padding: 12px 14px;
	border: 1px solid #e7e5e4;
	border-radius: 10px;
	background: #fafaf9;
	font-size: 13px;
	line-height: 1.45;
	color: #57534e;
}

body.psb-pres-portal-shell .psb-pres-st-form__dd--cliche {
	grid-column: 1 / -1;
}

body.psb-pres-portal-shell .psb-pres-st-pelicula-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 600px) {
	body.psb-pres-portal-shell .psb-pres-st-pelicula-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

body.psb-pres-portal-shell .psb-pres-st-pelicula-card .psb-pres-pl-radio-card__inner {
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
}

body.psb-pres-portal-shell .psb-pres-st-pelicula-card .psb-pres-pl-radio-card__icon {
	flex-shrink: 0;
}

body.psb-pres-portal-shell .psb-pres-st-pelicula-card .psb-pres-pl-radio-card__title {
	font-size: 14px;
}

/* REGA índices 2026 — grid, tarjetas, fechas */
body.psb-pres-portal-shell .psb-pres-rega-form__dl dt#psb-reg-medidas-label,
body.psb-pres-portal-shell .psb-pres-rega-form__dd--medidas {
	grid-column: 1 / -1;
}

body.psb-pres-portal-shell .psb-pres-rega-form__dd--block,
body.psb-pres-portal-shell .psb-pres-rega-form__dl dt.psb-pres-pl-form__dt--full + dd.psb-pres-rega-form__dd--block {
	grid-column: 1 / -1;
}

body.psb-pres-portal-shell .psb-pres-rega-section__title {
	margin-top: 0.35rem;
	padding-top: 0.15rem;
	font-size: 12px;
	font-weight: 650;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #57534e;
}

body.psb-pres-portal-shell .psb-pres-rega-section__title-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

body.psb-pres-portal-shell .psb-pres-rega-section__title-icon,
body.psb-pres-portal-shell .psb-pres-rega-block__heading-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: #78716c;
}

body.psb-pres-portal-shell .psb-pres-rega-section__title-icon .psb-pres-pl-radio-card__svg {
	width: 22px;
	height: 22px;
}

body.psb-pres-portal-shell .psb-pres-rega-block__heading-icon .psb-pres-pl-radio-card__svg {
	width: 20px;
	height: 20px;
}

body.psb-pres-portal-shell .psb-pres-rega-field__label-icon {
	display: inline-flex;
	align-items: center;
	margin-right: 0.35rem;
	vertical-align: middle;
	color: #a8a29e;
}

body.psb-pres-portal-shell .psb-pres-rega-field__label-icon .psb-pres-pl-radio-card__svg {
	width: 16px;
	height: 16px;
}

body.psb-pres-portal-shell .psb-pres-rega-grid {
	display: grid;
	gap: 12px 16px;
	margin-bottom: 0;
}

body.psb-pres-portal-shell .psb-pres-rega-grid + .psb-pres-rega-grid,
body.psb-pres-portal-shell .psb-pres-rega-block + .psb-pres-rega-block,
body.psb-pres-portal-shell .psb-pres-rega-grid + .psb-pres-rega-block {
	margin-top: 1rem;
}

body.psb-pres-portal-shell .psb-pres-rega-grid--2 {
	grid-template-columns: 1fr;
}

body.psb-pres-portal-shell .psb-pres-rega-grid--3 {
	grid-template-columns: 1fr;
}

@media (min-width: 540px) {
	body.psb-pres-portal-shell .psb-pres-rega-grid--2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.psb-pres-portal-shell .psb-pres-rega-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 768px) {
	body.psb-pres-portal-shell .psb-pres-rega-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

body.psb-pres-portal-shell .psb-pres-rega-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-width: 0;
}

body.psb-pres-portal-shell .psb-pres-rega-field__label {
	font-size: 12px;
	font-weight: 600;
	color: #57534e;
	line-height: 1.3;
}

body.psb-pres-portal-shell .psb-pres-rega-field__input {
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

body.psb-pres-portal-shell .psb-pres-rega-block__heading {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 0.65rem;
	font-size: 13px;
	font-weight: 650;
	color: #292524;
	line-height: 1.35;
}

body.psb-pres-portal-shell .psb-pres-rega-medidas-row {
	margin-top: 0.15rem;
}

body.psb-pres-portal-shell .psb-pres-rega-date-wrap {
	display: block;
	min-width: 0;
}

body.psb-pres-portal-shell .psb-pres-rega-date-wrap__input {
	width: 100%;
	max-width: 100%;
	min-height: 42px;
}

body.psb-pres-portal-shell .psb-pres-pl-form__dl input[type="date"],
body.psb-pres-portal-shell .psb-pres-rega-form__dl input[type="date"] {
	border-radius: 10px;
	border: 1px solid #d6d3d1;
	padding: 10px 12px;
	font-size: 15px;
	background: #fff;
	color: #1c1917;
}

body.psb-pres-portal-shell .psb-pres-rega-tipo-grid {
	grid-template-columns: 1fr;
}

@media (min-width: 540px) {
	body.psb-pres-portal-shell .psb-pres-rega-tipo-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

body.psb-pres-portal-shell .psb-pres-rega-tipo-card .psb-pres-pl-radio-card__inner {
	align-items: flex-start;
}

body.psb-pres-portal-shell .psb-pres-rega-grid--tarifas {
	margin-top: 1rem;
}

body.psb-pres-portal-shell .psb-pres-rega-resumen-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px 16px;
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 600px) {
	body.psb-pres-portal-shell .psb-pres-rega-resumen-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 900px) {
	body.psb-pres-portal-shell .psb-pres-rega-resumen-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

body.psb-pres-portal-shell .psb-pres-rega-resumen-item {
	margin: 0;
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid #e7e5e4;
	background: #fafaf9;
	font-size: 13px;
	line-height: 1.45;
	color: #57534e;
}

body.psb-pres-portal-shell .psb-pres-rega-resumen-item strong {
	display: block;
	margin-top: 0.2rem;
	color: #1c1917;
	font-size: 14px;
	font-weight: 650;
}

/* PSB-PROCESOS-EN-CADENA-001 — trabajo multiproceso */
body.psb-pres-portal-shell .psb-pres-trabajo-titulo-fijo {
	margin: 0 0 1rem;
	padding: 12px 14px;
	border-radius: 10px;
	border: 1px solid #e7e5e4;
	background: #fafaf9;
}

body.psb-pres-portal-shell .psb-pres-trabajo-titulo-fijo__label {
	margin: 0;
	font-size: 12px;
	color: #78716c;
}

body.psb-pres-portal-shell .psb-pres-trabajo-titulo-fijo__value {
	margin: 0.15rem 0 0;
	font-size: 16px;
}

body.psb-pres-portal-shell .psb-pres-trabajo-titulo-fijo__hint {
	margin: 0.35rem 0 0;
	font-size: 12px;
}

body.psb-pres-portal-shell .psb-pres-live-price__actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 12px;
}

body.psb-pres-portal-shell .psb-pres-live-price__btn-next {
	font-size: 13px;
}

body.psb-pres-portal-shell .psb-pres-trabajo-resumen {
	margin: 1rem 0;
	padding: 14px 16px;
	border-radius: 10px;
	border: 1px solid #e7e5e4;
	background: #fafaf9;
}

body.psb-pres-portal-shell .psb-pres-trabajo-resumen__title {
	margin: 0 0 0.35rem;
	font-size: 15px;
}

body.psb-pres-portal-shell .psb-pres-trabajo-resumen__list {
	list-style: none;
	margin: 0.5rem 0 0;
	padding: 0;
}

body.psb-pres-portal-shell .psb-pres-trabajo-resumen__item {
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: 8px 12px;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px solid #e7e5e4;
	font-size: 13px;
}

body.psb-pres-portal-shell .psb-pres-trabajo-resumen__item:last-child {
	border-bottom: none;
}

body.psb-pres-portal-shell .psb-pres-trabajo-resumen__amt {
	font-weight: 600;
	color: #1c1917;
}

body.psb-pres-portal-shell .psb-pres-trabajo-resumen__link {
	font-size: 12px;
}

body.psb-pres-portal-shell .psb-pres-trabajo-resumen__total {
	margin: 0.75rem 0 0;
	font-size: 14px;
}

body.psb-pres-portal-shell .psb-pres-trabajo-resumen__note {
	margin: 0.35rem 0 0;
	font-size: 12px;
}

/* PSB-PROCESOS-EN-CADENA-002 — cabecera trabajo + panel resumen */
body.psb-pres-portal-shell .psb-pres-trabajo-cabecera {
	margin-bottom: 0.5rem;
}

body.psb-pres-portal-shell .psb-pres-trabajo-cabecera__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
}

body.psb-pres-portal-shell .psb-pres-trabajo-cabecera__work,
body.psb-pres-portal-shell .psb-pres-trabajo-cabecera__cfg {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

body.psb-pres-portal-shell .psb-pres-trabajo-cabecera__work-label,
body.psb-pres-portal-shell .psb-pres-trabajo-cabecera__cfg-label {
	font-size: 11px;
	color: #78716c;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

body.psb-pres-portal-shell .psb-pres-trabajo-cabecera__work-name {
	font-size: 17px;
	font-weight: 650;
	color: #1c1917;
}

body.psb-pres-portal-shell .psb-pres-trabajo-cabecera__cfg-name {
	font-size: 15px;
	font-weight: 600;
	color: #44403c;
}

body.psb-pres-portal-shell .psb-pres-trabajo-cabecera__panel-btn {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 10px;
	border: 1px solid #d6d3d1;
	background: #fff;
	color: #57534e;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

body.psb-pres-portal-shell .psb-pres-trabajo-cabecera__panel-btn:hover {
	border-color: #a8a29e;
	background: #fafaf9;
	color: #1c1917;
}

body.psb-pres-portal-shell .psb-pres-trabajo-cabecera__locked-note,
body.psb-pres-portal-shell .psb-pres-trabajo-cabecera__edit-note {
	margin: 0.5rem 0 0;
	font-size: 12px;
}

body.psb-pres-portal-shell .psb-pres-trabajo-panel {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: stretch;
	justify-content: flex-end;
}

body.psb-pres-portal-shell .psb-pres-trabajo-panel[hidden] {
	display: none;
}

body.psb-pres-portal-shell .psb-pres-trabajo-panel__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(28, 25, 23, 0.35);
}

body.psb-pres-portal-shell .psb-pres-trabajo-panel__drawer {
	position: relative;
	width: min(420px, 100%);
	max-width: 100%;
	background: #fff;
	box-shadow: -4px 0 24px rgba(28, 25, 23, 0.12);
	display: flex;
	flex-direction: column;
	animation: psb-pres-trabajo-panel-slide 0.2s ease;
}

@keyframes psb-pres-trabajo-panel-slide {
	from {
		transform: translateX(100%);
	}
	to {
		transform: translateX(0);
	}
}

body.psb-pres-portal-shell .psb-pres-trabajo-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px;
	border-bottom: 1px solid #e7e5e4;
}

body.psb-pres-portal-shell .psb-pres-trabajo-panel__title {
	margin: 0;
	font-size: 16px;
	font-weight: 650;
}

body.psb-pres-portal-shell .psb-pres-trabajo-panel__close {
	border: none;
	background: transparent;
	font-size: 24px;
	line-height: 1;
	color: #78716c;
	cursor: pointer;
	padding: 4px 8px;
}

body.psb-pres-portal-shell .psb-pres-trabajo-panel__body {
	padding: 16px 18px;
	overflow-y: auto;
	flex: 1;
}

body.psb-pres-portal-shell .psb-pres-trabajo-panel__work-name {
	margin: 0 0 1rem;
	font-size: 15px;
}

body.psb-pres-portal-shell .psb-pres-trabajo-panel__shared {
	margin-bottom: 1rem;
	padding: 12px 14px;
	border-radius: 10px;
	border: 1px solid #e7e5e4;
	background: #fafaf9;
}

body.psb-pres-portal-shell .psb-pres-trabajo-panel__shared h3,
body.psb-pres-portal-shell .psb-pres-trabajo-panel__procesos h3 {
	margin: 0 0 0.5rem;
	font-size: 13px;
	font-weight: 650;
}

body.psb-pres-portal-shell .psb-pres-trabajo-panel__shared-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.psb-pres-portal-shell .psb-pres-trabajo-panel__shared-note {
	margin: 0.5rem 0 0;
	font-size: 11px;
}

body.psb-pres-portal-shell .psb-pres-trabajo-panel__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.psb-pres-portal-shell .psb-pres-trabajo-panel__item {
	padding: 12px 0;
	border-bottom: 1px solid #e7e5e4;
}

body.psb-pres-portal-shell .psb-pres-trabajo-panel__item.is-current {
	background: linear-gradient(90deg, rgba(250, 250, 249, 0.9), transparent);
}

body.psb-pres-portal-shell .psb-pres-trabajo-panel__item-main {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin-bottom: 8px;
}

body.psb-pres-portal-shell .psb-pres-trabajo-panel__proc-label {
	font-weight: 600;
	font-size: 14px;
}

body.psb-pres-portal-shell .psb-pres-trabajo-panel__badge {
	font-size: 10px;
	padding: 2px 6px;
	border-radius: 4px;
	background: #e7e5e4;
	color: #57534e;
}

body.psb-pres-portal-shell .psb-pres-trabajo-panel__amt {
	font-size: 13px;
	color: #44403c;
}

body.psb-pres-portal-shell .psb-pres-trabajo-panel__status {
	font-size: 11px;
	color: #78716c;
}

body.psb-pres-portal-shell .psb-pres-trabajo-panel__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

body.psb-pres-portal-shell .psb-pres-trabajo-panel__btn {
	font-size: 12px;
	padding: 6px 10px;
}

body.psb-pres-portal-shell .psb-pres-trabajo-panel__btn--danger {
	color: #b91c1c;
}

body.psb-pres-portal-shell .psb-pres-trabajo-panel__delete-form {
	display: inline;
}

body.psb-pres-portal-shell .psb-pres-trabajo-panel__total {
	margin: 1rem 0 0;
	padding-top: 0.75rem;
	border-top: 1px solid #e7e5e4;
	font-size: 14px;
}

body.psb-pres-portal-shell form[data-psb-trabajo-locked="1"] [data-psb-trabajo-shared] {
	background-color: #f5f5f4;
	cursor: not-allowed;
}

body.psb-pres-portal-shell form[data-psb-trabajo-locked="1"] [data-psb-trabajo-shared]:disabled,
body.psb-pres-portal-shell form[data-psb-trabajo-locked="1"] [data-psb-trabajo-shared][readonly] {
	opacity: 0.85;
}

/* PSB-PROCESOS-EN-CADENA-003 — presupuesto en construcción */
body.psb-pres-portal-shell .psb-pres-trabajo-vista {
	margin-bottom: 1.25rem;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__hero {
	margin-bottom: 1rem;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__hero-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin-bottom: 0.35rem;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__title {
	margin: 0;
	font-size: 22px;
	font-weight: 650;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__work-name {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	color: #44403c;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__estado {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	background: #e7e5e4;
	color: #57534e;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__estado--listo_revisar {
	background: #d1fae5;
	color: #065f46;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__estado--con_pendientes {
	background: #fef3c7;
	color: #92400e;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__estado--convertido {
	background: #e0e7ff;
	color: #3730a3;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__meta-card {
	padding: 14px 16px;
	border-radius: 12px;
	border: 1px solid #e7e5e4;
	background: #fafaf9;
	margin-bottom: 1rem;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__meta-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 12px 16px;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__meta-label {
	display: block;
	font-size: 11px;
	color: #78716c;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 2px;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__section-title {
	margin: 0 0 0.75rem;
	font-size: 14px;
	font-weight: 650;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__proc-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__proc-card {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	padding: 0;
	border-radius: 14px;
	border: 1px solid #e7e5e4;
	background: #fff;
	box-shadow: 0 1px 3px rgba(28, 25, 23, 0.04);
	overflow: hidden;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__proc-card.is-current {
	border-color: #a8a29e;
	box-shadow: 0 4px 14px rgba(28, 25, 23, 0.08);
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__proc-accent {
	width: 4px;
	flex-shrink: 0;
	background: linear-gradient(180deg, #d6d3d1 0%, #a8a29e 100%);
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__proc-card.is-current .psb-pres-trabajo-vista__proc-accent {
	background: linear-gradient(180deg, #34d399 0%, #059669 100%);
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__proc-inner {
	flex: 1;
	min-width: 0;
	padding: 14px 16px 12px;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__proc-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 10px 12px;
	margin-bottom: 8px;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__proc-glyph {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 9px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	color: #1c1917;
	background: #f5f5f4;
	border: 1px solid #e7e5e4;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__proc-card.is-current .psb-pres-trabajo-vista__proc-glyph {
	background: #ecfdf5;
	border-color: #a7f3d0;
	color: #047857;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__proc-titles {
	flex: 1;
	min-width: 0;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__proc-name {
	display: block;
	font-size: 16px;
	font-weight: 650;
	letter-spacing: -0.02em;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__proc-sub {
	display: block;
	font-size: 12px;
	color: #78716c;
	margin-top: 2px;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__proc-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__badge {
	font-size: 10px;
	padding: 2px 8px;
	border-radius: 4px;
	background: #e7e5e4;
	color: #57534e;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__badge--muted {
	background: #f5f5f4;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__proc-detail {
	margin: 0 0 10px;
	font-size: 13px;
	color: #57534e;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__proc-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	padding-top: 10px;
	border-top: 1px solid #f5f5f4;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__proc-price strong {
	font-size: 17px;
	font-weight: 700;
	color: #1c1917;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__proc-no-price {
	font-size: 13px;
	color: #78716c;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__proc-excl {
	display: block;
	font-size: 11px;
	color: #78716c;
	margin-top: 2px;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__proc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__btn {
	font-size: 12px;
	padding: 6px 10px;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__btn--danger {
	color: #b91c1c;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__delete-form {
	display: inline;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__total-block {
	margin: 1rem 0;
	padding: 16px;
	border-radius: 12px;
	border: 1px solid #d6d3d1;
	background: linear-gradient(180deg, #fafaf9 0%, #fff 100%);
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__total {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin: 0;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__total-label {
	font-size: 14px;
	font-weight: 600;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__total-amt {
	font-size: 22px;
	font-weight: 700;
	color: #1c1917;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__total-note,
body.psb-pres-portal-shell .psb-pres-trabajo-vista__total-empty {
	margin: 0.5rem 0 0;
	font-size: 12px;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 1rem;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__conv-note {
	margin: 0.75rem 0 0;
	font-size: 11px;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista--inline {
	padding: 14px 16px;
	border-radius: 12px;
	border: 1px solid #e7e5e4;
	background: #fafaf9;
	margin-bottom: 1rem;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista--inline .psb-pres-trabajo-vista__meta-card {
	background: #fff;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__inline-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-bottom: 0.75rem;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__inline-title {
	margin: 0;
	font-size: 15px;
	font-weight: 650;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista__inline-link {
	margin: 0.75rem 0 0;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista--drawer .psb-pres-trabajo-vista__hero {
	display: none;
}

body.psb-pres-portal-shell .psb-pres-trabajo-vista--drawer .psb-pres-trabajo-vista__actions {
	flex-direction: column;
}

@media (max-width: 600px) {
	body.psb-pres-portal-shell .psb-pres-trabajo-vista__proc-foot {
		flex-direction: column;
		align-items: flex-start;
	}

	body.psb-pres-portal-shell .psb-pres-trabajo-vista__total-amt {
		font-size: 20px;
	}
}
