/**
 * PSB-PORTAL-CLIENTE-WIDTH-HOTFIX02 — contrato shell estable (sin hotfix 0240).
 *
 * Referencia visual: configuradores (?psb_pres_fp=plastico) vía
 * psb-pres-portal-configurador-ux-hotfix-grid-central.css (layout interno 960px).
 *
 * Contrato (no redefine variables globales ni grids con configurador activo):
 * - Rail: hereda rail-continuity-001 + composicion-004 (--psb-comp-rail-w 280px en grid base).
 * - Centro portal (home/listados): contenido acotado a 960px como el layout configurador.
 * - Fichas/solicitud: usan .psb-config-visual-shell__layout (960px) — no se tocan aquí.
 * - Configurador (.psb-pres-cfg-mother / data-psb-pres-config-form): excluido explícitamente.
 */

/* —— Anula ensanchamientos puntuales de hotfix08 / armonizacion en paneles shell —— */
body.psb-pres-portal-shell .psb-pres-panel--home.psb-pres-panel--shell,
body.psb-pres-portal-shell .psb-pres-panel--section.psb-pres-panel--shell {
	width: 100%;
	max-width: 100%;
}

body.psb-pres-portal-shell .psb-portal-ficha.psb-pres-panel--ficha {
	max-width: 100%;
	width: 100%;
}

@media (min-width: 1100px) {
	body.psb-pres-portal-shell .psb-portal-ficha__main.psb-pres-panel__main {
		max-width: 100%;
	}
}

/* —— Home + listados: mismo ancho útil que configurador (960px), sin tocar su grid —— */
@media (min-width: 768px) {
	body.psb-pres-portal-shell
		.psb-pres-panel__grid--visual-inner:not(:has(.psb-pres-cfg-mother)):not(:has([data-psb-pres-config-form="1"]))
		> .psb-pres-panel__main
		> .psb-pres-panel-home-card {
		width: 100%;
		max-width: min(960px, 100%);
		box-sizing: border-box;
	}

	body.psb-pres-portal-shell
		.psb-pres-panel__grid--visual-inner:not(:has(.psb-pres-cfg-mother)):not(:has([data-psb-pres-config-form="1"]))
		> .psb-pres-panel__main {
		align-items: flex-start;
	}
}
