/*
 * 1.47.0: el configurador de la web (PHC_Web, assets/web.js). Los colores y las letras de starmodul.com: el azul
 * marino de las letras, el naranja de la M, títulos en Arial muy negrita. En el ordenador, dos columnas que ocupan la
 * ventana (a la izquierda, lo que se elige, con su barra; a la derecha, la vista 3D, el precio y lo que lleva); en el
 * móvil, una debajo de otra (sin unidades vh: en un marco, el alto de la ventana es el del marco).
 */

.phc-web-page {
	--w-navy: #0d2148;
	--w-navy-2: #1b3463;
	--w-orange: #f39200;
	--w-orange-2: #dd8400;
	--w-orange-soft: #fff4e2;
	--w-bg: #f3f5f8;
	--w-surface: #fff;
	--w-tint: #f7f9fb;
	--w-line: #dde3eb;
	--w-field: #c5cedb;
	--w-text: #1b2536;
	--w-muted: #5a6578;
	--w-err: #a8231c;
	--w-err-bg: #fdeeec;
	--w-err-line: #f1c4bf;
	--w-head: Arial, "Helvetica Neue", Helvetica, sans-serif;
	--w-gap: 16px;
	/* El visor del asistente, con los colores de la web. */
	--phc-navy: #0d2148;
	--phc-amber: #f39200;
	--phc-amber-2: #dd8400;
	--phc-amber-ink: #0d2148;
	--phc-accent: #0d2148;
	--phc-accent-2: #1b3463;
	--phc-accent-soft: #eaf0f8;
	--phc-soft: #eef2f6;
	--phc-line: #dde3eb;
	--phc-border: #c5cedb;
	--phc-text: #1b2536;
	--phc-muted: #5a6578;
	margin: 0;
	background: var(--w-bg);
	color: var(--w-text);
	color-scheme: light;
	font-size: 15px;
	-webkit-text-size-adjust: 100%;
}

.phc-web-page.is-embed {
	background: transparent;
}

.phc-web {
	display: flex;
	flex-direction: column;
}

/* ---------- La barra (la página sola, sin marco) y la entrada ---------- */

.phc-w__bar {
	display: flex;
	align-items: center;
	padding: 12px 24px;
	background: var(--w-navy);
}

.phc-w__brand {
	line-height: 0;
}

.phc-w__brand .phc-logo {
	display: block;
	width: 168px;
	height: auto;
}

.phc-w__brand .phc-logo__ink {
	fill: #fff;
}

.phc-w__brand .phc-logo__m {
	fill: var(--w-orange);
}

.phc-w__brand .phc-logo-m {
	display: none;
}

.phc-w__intro {
	box-sizing: border-box;
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 22px 24px 0;
}

.is-plain .phc-w__intro {
	display: none;
}

.phc-w__title {
	margin: 0;
	font-family: var(--w-head);
	font-size: clamp(26px, 3vw, 34px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.01em;
	color: var(--w-navy);
}

.phc-w__lead {
	max-width: 70ch;
	margin: 8px 0 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--w-muted);
}

.phc-w__error {
	margin: 24px;
	color: var(--w-err);
}

.phc-w__app {
	box-sizing: border-box;
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: var(--w-gap) 24px 24px;
}

.is-embed .phc-w__intro,
.is-embed .phc-w__app {
	padding-right: 0;
	padding-left: 0;
}

.is-embed .phc-w__intro {
	padding-top: 0;
}

.is-embed .phc-w__app {
	padding-bottom: 2px;
}

.phc-w__grid {
	display: grid;
	gap: var(--w-gap);
}

/* ---------- La columna de lo que se elige ---------- */

.phc-w__panel {
	position: relative;
	min-width: 0;
	border: 1px solid var(--w-line);
	border-radius: 10px;
	background: var(--w-surface);
}

.phc-w__form {
	padding: 20px 20px 8px;
}

.phc-w__group {
	min-width: 0;
	margin: 0;
	padding: 0 0 20px;
	border: 0;
}

.phc-w__group + .phc-w__group {
	padding-top: 18px;
	border-top: 1px solid var(--w-line);
}

.phc-w__group[hidden] + .phc-w__group {
	padding-top: 0;
	border-top: 0;
}

.phc-w__legend {
	display: block;
	float: left;
	width: 100%;
	margin: 0 0 12px;
	padding: 0;
	font-family: var(--w-head);
	font-size: 16px;
	font-weight: 800;
	line-height: 1.25;
	color: var(--w-navy);
}

/* La leyenda flota (si no, se sienta en el borde de arriba del grupo). */
.phc-w__legend + * {
	clear: both;
}

.phc-w__more summary.phc-w__legend {
	float: none;
}

/* Los tipos: tarjetas con su silueta. */
.phc-w__types {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.phc-w__type,
.phc-w__roof,
.phc-w__seg label {
	position: relative;
	display: block;
	cursor: pointer;
}

.phc-w__type input,
.phc-w__roof input,
.phc-w__seg input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.phc-w__type-box {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	height: 100%;
	padding: 10px 10px 11px;
	border: 1px solid var(--w-field);
	border-radius: 8px;
	background: var(--w-surface);
	transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.phc-w__type-box strong {
	font-size: 14px;
	line-height: 1.25;
	color: var(--w-navy);
}

.phc-w__type-box small {
	font-size: 12px;
	line-height: 1.3;
	color: var(--w-muted);
}

.phc-w__icon {
	display: block;
	width: 46px;
	height: 38px;
	margin-bottom: 4px;
	fill: none;
	stroke: var(--w-navy);
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.phc-w__type:hover .phc-w__type-box,
.phc-w__roof:hover span,
.phc-w__seg label:hover span {
	border-color: var(--w-navy-2);
}

.phc-w__type input:checked + .phc-w__type-box,
.phc-w__roof input:checked + span,
.phc-w__seg input:checked + span {
	border-color: var(--w-orange);
	background: var(--w-orange-soft);
	box-shadow: inset 0 0 0 1px var(--w-orange);
}

.phc-w__type input:checked + .phc-w__type-box .phc-w__icon,
.phc-w__roof input:checked + span .phc-w__icon {
	stroke: var(--w-orange-2);
}

.phc-w__type input:focus-visible + .phc-w__type-box,
.phc-w__roof input:focus-visible + span,
.phc-w__seg input:focus-visible + span {
	outline: 3px solid var(--w-navy);
	outline-offset: 2px;
}

/* La cubierta y los paneles: botones seguidos. */
.phc-w__roofs,
.phc-w__seg {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.phc-w__roof {
	flex: 1 1 0;
	min-width: 84px;
}

.phc-w__roof span {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 6px 8px 8px;
	text-align: center;
	border: 1px solid var(--w-field);
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--w-navy);
	transition: border-color 0.15s, background-color 0.15s;
}

.phc-w__roof .phc-w__icon {
	width: 34px;
	height: 28px;
	margin: 0;
}

.phc-w__seg label {
	flex: 1 1 auto;
}

.phc-w__seg span {
	display: block;
	padding: 9px 12px;
	border: 1px solid var(--w-field);
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	color: var(--w-navy);
	transition: border-color 0.15s, background-color 0.15s;
}

/* Las medidas: la barra y el número. */
.phc-w__slider {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 4px 12px;
	padding: 6px 0 8px;
}

.phc-w__slider[hidden] {
	display: none;
}

.phc-w__slider-label {
	font-size: 14px;
	color: var(--w-text);
}

.phc-w__range {
	grid-column: 1 / -1;
	grid-row: 2;
	width: 100%;
	height: 24px;
	margin: 0;
	background: transparent;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	--phc-w-fill: 50%;
}

.phc-w__range:disabled {
	opacity: 0.4;
	cursor: default;
}

.phc-w__range::-webkit-slider-runnable-track {
	height: 4px;
	border-radius: 2px;
	background: linear-gradient(to right, var(--w-orange) var(--phc-w-fill), var(--w-line) var(--phc-w-fill));
}

.phc-w__range::-moz-range-track {
	height: 4px;
	border-radius: 2px;
	background: var(--w-line);
}

.phc-w__range::-moz-range-progress {
	height: 4px;
	border-radius: 2px;
	background: var(--w-orange);
}

.phc-w__range::-webkit-slider-thumb {
	width: 20px;
	height: 20px;
	margin-top: -8px;
	border: 2px solid var(--w-navy);
	border-radius: 50%;
	background: #fff;
	-webkit-appearance: none;
	appearance: none;
}

.phc-w__range::-moz-range-thumb {
	width: 16px;
	height: 16px;
	border: 2px solid var(--w-navy);
	border-radius: 50%;
	background: #fff;
}

.phc-w__num {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--w-field);
	border-radius: 5px;
	background: var(--w-surface);
}

.phc-w__num:focus-within {
	border-color: var(--w-navy);
	box-shadow: 0 0 0 2px rgba(13, 33, 72, 0.18);
}

.phc-w__num input {
	width: 64px;
	min-width: 0;
	height: 36px;
	padding: 0 2px 0 10px;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 15px;
	font-variant-numeric: tabular-nums;
	text-align: right;
	color: var(--w-text);
	outline: none;
}

.phc-w__unit {
	padding: 0 10px 0 4px;
	font-size: 14px;
	color: var(--w-muted);
}

/* Puertas y ventanas. */
.phc-w__list {
	display: grid;
	gap: 10px;
}

.phc-w__empty {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.45;
	color: var(--w-muted);
}

.phc-w__item {
	padding: 10px 12px 12px;
	border: 1px solid var(--w-line);
	border-radius: 8px;
	background: var(--w-tint);
}

.phc-w__item-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
	font-size: 14px;
	color: var(--w-navy);
}

.phc-w__remove,
.phc-w__back {
	padding: 4px 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 13.5px;
	color: var(--w-muted);
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.phc-w__remove:hover,
.phc-w__back:hover {
	color: var(--w-navy);
}

.phc-w__fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 10px;
}

.phc-w__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	font-size: 12.5px;
	color: var(--w-muted);
}

.phc-w__field > span:first-child {
	line-height: 1.3;
}

.phc-w__field em {
	font-style: normal;
	color: var(--w-muted);
}

.phc-w__field--note em {
	display: flex;
	align-items: center;
	height: 38px;
	font-size: 14px;
	color: var(--w-text);
}

.phc-w__field select,
.phc-w__field textarea,
.phc-w__field > input {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	height: 38px;
	padding: 0 8px;
	border: 1px solid var(--w-field);
	border-radius: 5px;
	background: var(--w-surface);
	font: inherit;
	font-size: 14.5px;
	color: var(--w-text);
}

.phc-w__field .phc-w__num {
	width: 100%;
}

.phc-w__field .phc-w__num input {
	flex: 1;
	width: auto;
	height: 36px;
	text-align: left;
}

.phc-w__field select:focus,
.phc-w__field textarea:focus,
.phc-w__field > input:focus {
	border-color: var(--w-navy);
	outline: none;
	box-shadow: 0 0 0 2px rgba(13, 33, 72, 0.18);
}

.phc-w__field [aria-invalid="true"] {
	border-color: var(--w-err);
}

.phc-w__add {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: 10px;
	padding: 9px 12px;
	border: 1px dashed var(--w-field);
	border-radius: 8px;
	background: none;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	color: var(--w-navy);
	cursor: pointer;
}

.phc-w__add::before {
	content: "+";
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
	color: var(--w-orange-2);
}

.phc-w__add:hover {
	border-color: var(--w-navy-2);
	background: var(--w-tint);
}

.phc-w__add:disabled {
	opacity: 0.45;
	cursor: default;
}

/* Más opciones y las casillas. */
.phc-w__more summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0;
	cursor: pointer;
	list-style: none;
}

.phc-w__more summary::-webkit-details-marker {
	display: none;
}

.phc-w__more summary::after {
	content: "";
	width: 8px;
	height: 8px;
	margin-right: 4px;
	border-right: 2px solid var(--w-navy);
	border-bottom: 2px solid var(--w-navy);
	transform: rotate(45deg) translateY(-2px);
	transition: transform 0.15s;
}

.phc-w__more[open] summary {
	margin-bottom: 10px;
}

.phc-w__more[open] summary::after {
	transform: rotate(225deg) translate(-2px, 0);
}

.phc-w__check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 6px 0;
	font-size: 14px;
	line-height: 1.4;
	cursor: pointer;
}

.phc-w__check[hidden] {
	display: none;
}

.phc-w__check input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: var(--w-orange-2);
}

.phc-w__check strong {
	display: block;
	font-weight: 600;
	color: var(--w-text);
}

.phc-w__check small {
	display: block;
	font-size: 12.5px;
	color: var(--w-muted);
}

.phc-w__check--legal {
	font-size: 13px;
	color: var(--w-muted);
}

.phc-w__check a {
	color: var(--w-navy);
}

/* ---------- La vista 3D, el precio y lo que lleva ---------- */

.phc-w__stage {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--w-line);
	border-radius: 10px;
	background: var(--w-surface);
}

.phc-w__view {
	position: relative;
	min-height: 0;
}

.phc-w__view .phc-viewer {
	border-bottom: 1px solid var(--w-line);
}

.phc-w__view .phc-viewer__btn {
	min-height: 30px;
	font-size: 13px;
}

/* Las marcas de los tubos son de los planos de montaje: aquí no. */
.phc-w__view .phc-viewer__marks-btn {
	display: none !important;
}

.phc-w__loading,
.phc-w__view .phc-sp__error {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 24px;
	min-height: 280px;
	text-align: center;
	color: var(--w-muted);
}

.phc-w__busy {
	position: absolute;
	top: 56px;
	right: 12px;
	z-index: 5;
	padding: 6px 12px 6px 30px;
	border-radius: 999px;
	background: rgba(13, 33, 72, 0.92);
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	pointer-events: none;
}

.phc-w__busy::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 11px;
	width: 11px;
	height: 11px;
	margin-top: -7.5px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: var(--w-orange);
	border-radius: 50%;
	animation: phc-w-spin 0.8s linear infinite;
}

@keyframes phc-w-spin {
	to {
		transform: rotate(360deg);
	}
}

.phc-w__busy[hidden] {
	display: none;
}

.phc-w__price {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	padding: 16px 20px;
	transition: opacity 0.15s;
}

.phc-w__price:empty,
.phc-w__summary:empty {
	display: none;
}

.is-busy .phc-w__price,
.has-error .phc-w__price {
	opacity: 0.5;
}

.phc-w__price-main {
	min-width: 0;
	padding-left: 14px;
	border-left: 4px solid var(--w-orange);
}

.phc-w__price-label {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--w-muted);
}

.phc-w__amount {
	margin: 0;
	font-size: 15px;
	line-height: 1.15;
	color: var(--w-navy);
}

.phc-w__amount strong {
	font-family: var(--w-head);
	font-size: clamp(28px, 2.8vw, 36px);
	font-weight: 800;
	letter-spacing: -0.015em;
	font-variant-numeric: tabular-nums;
}

.phc-w__amount-pre,
.phc-w__amount-tax {
	font-size: 15px;
	font-weight: 600;
}

.phc-w__amount--none strong {
	font-size: 24px;
}

.phc-w__price-note {
	max-width: 56ch;
	margin: 4px 0 0;
	font-size: 12.5px;
	line-height: 1.4;
	color: var(--w-muted);
}

.phc-w__cta {
	flex: none;
	padding: 14px 22px;
	border: 0;
	border-radius: 5px;
	background: var(--w-orange);
	font-family: var(--w-head);
	font-size: 16px;
	font-weight: 800;
	line-height: 1.1;
	color: var(--w-navy);
	cursor: pointer;
	transition: background-color 0.15s;
}

.phc-w__cta:hover {
	background: var(--w-orange-2);
}

.phc-w__cta:focus-visible,
.phc-w__add:focus-visible,
.phc-w__remove:focus-visible,
.phc-w__back:focus-visible,
.phc-w__more summary:focus-visible {
	outline: 3px solid var(--w-navy);
	outline-offset: 2px;
}

.phc-w__cta:disabled {
	opacity: 0.6;
	cursor: default;
}

/* Con el formulario abierto, «Pedir presupuesto» ya no hace falta. */
[data-step="contacto"] .phc-w__price .phc-w__cta {
	display: none;
}

.phc-w__check input[aria-invalid="true"] {
	outline: 2px solid var(--w-err);
	outline-offset: 1px;
}

.phc-w__cta--wide {
	width: 100%;
	margin-top: 8px;
}

.phc-w__alert {
	margin: 0 20px 14px;
	padding: 10px 12px;
	border: 1px solid var(--w-err-line);
	border-radius: 6px;
	background: var(--w-err-bg);
	font-size: 14px;
	line-height: 1.45;
	color: var(--w-err);
}

.phc-w__alert[hidden] {
	display: none;
}

.phc-w__summary {
	padding: 14px 20px 16px;
	border-top: 1px solid var(--w-line);
}

.phc-w__summary-title {
	margin: 0 0 8px;
	font-family: var(--w-head);
	font-size: 15px;
	font-weight: 800;
	color: var(--w-navy);
}

.phc-w__facts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 8px 20px;
	margin: 0;
}

.phc-w__facts div {
	min-width: 0;
}

.phc-w__facts dt {
	font-size: 12px;
	color: var(--w-muted);
}

.phc-w__facts dd {
	margin: 1px 0 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--w-text);
}

/* El precio al final de lo que se elige (en el móvil, que no se ve la columna de la vista). */
.phc-w__mobile-price {
	display: none;
}

/* ---------- El formulario de contacto ---------- */

.phc-w__request {
	display: grid;
	gap: 12px;
	padding-bottom: 20px;
}

.phc-w__request .phc-w__back {
	justify-self: start;
	padding-left: 14px;
	position: relative;
}

.phc-w__request .phc-w__back::before,
.phc-w__back--after::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 2px;
	width: 6px;
	height: 6px;
	margin-top: -3px;
	border-bottom: 1.5px solid currentColor;
	border-left: 1.5px solid currentColor;
	transform: rotate(45deg);
}

.phc-w__h2 {
	margin: 0;
	font-family: var(--w-head);
	font-size: 22px;
	font-weight: 800;
	line-height: 1.2;
	color: var(--w-navy);
}

.phc-w__text {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.5;
	color: var(--w-text);
}

.phc-w__request .phc-w__field {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--w-text);
}

.phc-w__request .phc-w__field em {
	font-weight: 400;
}

.phc-w__request .phc-w__field > input,
.phc-w__request .phc-w__field textarea {
	height: 42px;
	font-size: 15px;
	font-weight: 400;
}

.phc-w__request .phc-w__field textarea {
	height: auto;
	min-height: 80px;
	padding: 8px;
	resize: vertical;
}

.phc-w__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.phc-w__form-error {
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--w-err-line);
	border-radius: 6px;
	background: var(--w-err-bg);
	font-size: 14px;
	color: var(--w-err);
}

.phc-w__form-error[hidden] {
	display: none;
}

.phc-w__done {
	display: grid;
	gap: 12px;
	justify-items: start;
	padding: 32px 20px;
	outline: none;
}

.phc-w__done-icon {
	width: 48px;
	height: 48px;
	fill: none;
	stroke: var(--w-orange-2);
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.phc-w__ref {
	margin: 0;
	font-size: 14px;
	color: var(--w-muted);
}

.phc-w__back--after {
	position: relative;
	padding-left: 14px;
}

/* ---------- En el ordenador: dos columnas que ocupan la ventana ---------- */

@media (min-width: 900px) {
	.phc-w__intro {
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		gap: 4px 24px;
		padding-top: 18px;
	}

	.phc-w__lead {
		flex: 1 1 420px;
		margin: 0;
	}

	.phc-web {
		height: 100vh;
		height: 100dvh;
		min-height: 640px;
	}

	.is-embed .phc-web {
		height: var(--phc-w-h, 860px);
		min-height: 0;
	}

	.phc-w__app {
		flex: 1;
		min-height: 0;
	}

	.phc-w__grid {
		grid-template-columns: minmax(340px, 400px) minmax(0, 1fr);
		height: 100%;
		min-height: 560px;
	}

	.phc-w__panel {
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-width: thin;
	}

	.phc-w__view {
		display: flex;
		flex: 1 1 auto;
		flex-direction: column;
	}

	.phc-w__viewer {
		display: flex;
		flex: 1 1 auto;
		flex-direction: column;
		min-height: 0;
	}

	.phc-w__view .phc-viewer {
		display: flex;
		flex: 1 1 auto;
		flex-direction: column;
		min-height: 0;
	}

	.phc-w__view .phc-viewer__canvas,
	.phc-w__view .phc-viewer__svg {
		flex: 1 1 0;
		height: auto;
		min-height: 200px;
		max-height: none;
		aspect-ratio: auto;
	}

	.phc-w__view .phc-viewer.is-fullscreen .phc-viewer__canvas,
	.phc-w__view .phc-viewer.is-fullscreen .phc-viewer__svg {
		flex: 1 1 auto;
	}

	.phc-w__result {
		flex: none;
		max-height: 46%;
		overflow-y: auto;
		scrollbar-width: thin;
	}

	.phc-w__stage {
		container-type: inline-size;
	}

	.phc-w__loading {
		flex: 1;
	}
}

/* Con sitio (la vista ancha): el precio a la izquierda y lo que lleva a la derecha, así la vista es más alta. */
@container (min-width: 760px) {
	.phc-w__result {
		display: grid;
		grid-template-columns: minmax(270px, 320px) minmax(0, 1fr);
		align-items: start;
		border-top: 1px solid var(--w-line);
	}

	.phc-w__price {
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: 14px;
		padding: 16px 20px 18px;
	}

	.phc-w__price .phc-w__cta {
		width: 100%;
	}

	.phc-w__alert {
		grid-column: 1 / -1;
		grid-row: 1;
		margin: 14px 20px 0;
	}

	.phc-w__summary {
		align-self: stretch;
		padding: 16px 20px;
		border-top: 0;
		border-left: 1px solid var(--w-line);
	}

	.phc-w__facts {
		grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
		gap: 8px 18px;
	}

	.phc-w__facts dd {
		font-size: 13.5px;
	}
}

/* ---------- En el móvil: una debajo de otra ---------- */

@media (max-width: 899.98px) {
	.phc-w__intro {
		padding: 16px 16px 0;
	}

	.phc-w__app {
		padding: 12px 16px 16px;
	}

	.is-embed .phc-w__intro {
		padding: 0;
	}

	.is-embed .phc-w__app {
		padding: 12px 0 2px;
	}

	.phc-w__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	/* La vista y el precio arriba; lo que se elige; lo que lleva, al final. */
	.phc-w__stage,
	.phc-w__result {
		display: contents;
	}

	.phc-w__view {
		order: 1;
		overflow: hidden;
		border: 1px solid var(--w-line);
		border-radius: 10px;
		background: var(--w-surface);
	}

	.phc-w__view .phc-viewer {
		border-bottom: 0;
	}

	.phc-w__view .phc-viewer__canvas,
	.phc-w__view .phc-viewer__svg {
		height: auto;
		max-height: none;
		aspect-ratio: 4 / 3.3;
	}

	.phc-w__price {
		order: 2;
		padding: 14px 16px;
		border: 1px solid var(--w-line);
		border-radius: 10px;
		background: var(--w-surface);
	}

	.phc-w__alert {
		order: 3;
		margin: 0;
	}

	.phc-w__panel {
		order: 4;
	}

	.phc-w__summary {
		order: 5;
		border: 1px solid var(--w-line);
		border-radius: 10px;
		background: var(--w-surface);
	}

	.phc-w__form {
		padding: 16px 16px 4px;
	}

	.phc-w__mobile-price:not(:empty) {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: 10px 16px;
		margin: 0 16px 16px;
		padding: 14px 0 0;
		border-top: 1px solid var(--w-line);
	}

	[data-step="contacto"] .phc-w__mobile-price {
		display: none !important;
	}

	.phc-w__mobile-price .phc-w__amount strong {
		font-size: 26px;
	}

	.phc-w__cta {
		padding: 13px 18px;
	}

	.phc-w__price .phc-w__cta,
	.phc-w__mobile-price .phc-w__cta {
		width: 100%;
	}

	.phc-w__facts {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	}
}

@media (max-width: 420px) {
	.phc-w__types {
		gap: 6px;
	}

	.phc-w__type-box {
		padding: 8px 8px 9px;
	}

	.phc-w__type-box small {
		display: none;
	}

	.phc-w__icon {
		width: 40px;
		height: 33px;
	}

	.phc-w__fields {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.phc-w__busy::before {
		animation-duration: 2.4s;
	}

	.phc-w__type-box,
	.phc-w__roof span,
	.phc-w__seg span,
	.phc-w__price,
	.phc-w__cta {
		transition: none;
	}
}

/* 1.48.0: comentarios y cambios sobre el diseño, y la ficha en PDF al enviar. */
.phc-w__group--comments .phc-w__legend {
	display: block;
	margin-bottom: 6px;
}

.phc-w__comments {
	box-sizing: border-box;
	display: block;
	width: 100%;
	min-height: 76px;
	padding: 8px;
	border: 1px solid var(--w-field);
	border-radius: 5px;
	background: var(--w-surface);
	font: inherit;
	font-size: 14.5px;
	line-height: 1.4;
	color: var(--w-text);
	resize: vertical;
}

.phc-w__comments:focus {
	border-color: var(--w-navy);
	outline: none;
	box-shadow: 0 0 0 2px rgba(13, 33, 72, 0.18);
}

.phc-w__group--comments .phc-w__help {
	display: block;
	margin-top: 4px;
	font-size: 12.5px;
	color: var(--w-muted, #5d6575);
}

.phc-w__ficha {
	display: block;
	margin: 18px 0 6px;
	text-align: center;
	text-decoration: none;
}

/* ---------- 1.70.0: el configurador de naves IPE (PHC_Web_Nave, assets/web-nave.js) ---------- */

.phc-w__text-input {
	box-sizing: border-box;
	display: block;
	width: 100%;
	min-height: 40px;
	padding: 8px;
	border: 1px solid var(--w-field);
	border-radius: 5px;
	background: var(--w-surface);
	font: inherit;
	font-size: 14.5px;
	color: var(--w-text);
}

.phc-w__text-input:focus {
	border-color: var(--w-navy);
	outline: none;
	box-shadow: 0 0 0 2px rgba(13, 33, 72, 0.18);
}

.phc-web-nave .phc-w__text-input + .phc-w__help {
	display: block;
	margin-top: 6px;
}

/* «Con paneles / Solo estructura», encima del visor, pequeño. */
.phc-web-nave .phc-w__layers {
	display: inline-flex;
	flex-wrap: nowrap;
	gap: 0;
	margin: 10px 12px 0;
	align-self: flex-start;
}

.phc-web-nave .phc-w__layers[hidden] {
	display: none;
}

.phc-web-nave .phc-w__layers label {
	flex: none;
}

.phc-web-nave .phc-w__layers span {
	min-height: 32px;
	padding: 4px 14px;
	font-size: 13.5px;
	border-radius: 0;
}

.phc-web-nave .phc-w__layers label:first-child span {
	border-radius: 5px 0 0 5px;
}

.phc-web-nave .phc-w__layers label:last-child span {
	border-radius: 0 5px 5px 0;
	margin-left: -1px;
}

.phc-web-nave .phc-w__luces {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.phc-web-nave .phc-w__roof-note {
	margin: 4px 0 0;
}

.phc-web-nave .phc-w__group--doors > .phc-w__help {
	margin: 0 0 10px;
}
