/* Studio 228 Cotizador — front. Hereda la tipografía del tema. */
.s228 {
	--s228-primary: #1E1E1E;
	--s228-accent: #F5B700;
	--s228-ink: #222;
	--s228-muted: #6b6b6b;
	--s228-line: #dcdcd8;
	--s228-soft: #f6f6f3;
	--s228-error: #b3261e;
	--s228-radius: 10px;
	font-family: inherit;
	color: var(--s228-ink);
	max-width: 760px;
	margin: 0 auto;
	line-height: 1.5;
	text-align: left;
}
.s228 *, .s228 *::before, .s228 *::after { box-sizing: border-box; }

.s228__head { margin-bottom: 1.5rem; }
.s228__title { margin: 0 0 .4rem; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; }
.s228__intro { margin: 0; color: var(--s228-muted); max-width: 60ch; }
.s228__loading, .s228__notice { padding: .8rem 1rem; background: var(--s228-soft); border-radius: var(--s228-radius); }

/* Progreso: la única pieza con acento de color. */
.s228-progress {
	list-style: none; margin: 0 0 1.75rem; padding: 0;
	display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem;
	counter-reset: none;
}
.s228-progress li { margin: 0; padding: .6rem 0 0; border-top: 3px solid var(--s228-line); font-size: .85rem; color: var(--s228-muted); }
.s228-progress li.is-done { border-top-color: var(--s228-primary); color: var(--s228-ink); }
.s228-progress li.is-current { border-top-color: var(--s228-accent); color: var(--s228-ink); font-weight: 600; }
.s228-progress button { all: unset; cursor: pointer; display: block; }
.s228-progress button:focus-visible { outline: 2px solid var(--s228-primary); outline-offset: 3px; border-radius: 3px; }
.s228-progress__n { display: inline-block; min-width: 1.2em; font-variant-numeric: tabular-nums; }
.s228-progress__l { margin-left: .25rem; }

.s228-step__title { margin: 0 0 .3rem; font-size: 1.35rem; }
.s228-step__title:focus { outline: none; }
.s228-step__hint { margin: 0 0 1.25rem; color: var(--s228-muted); }

.s228__errors:empty { display: none; }
.s228__errors { margin: 0 0 1rem; padding: .75rem 1rem; border-left: 4px solid var(--s228-error); background: #fdf1f0; color: var(--s228-error); border-radius: 4px; }
.s228__errors:focus { outline: none; }
.s228__errors ul { margin: 0; padding-left: 1.1rem; }

.s228-group { border: 0; margin: 0 0 1.5rem; padding: 0; min-width: 0; }
.s228-group legend { font-weight: 700; font-size: 1rem; margin-bottom: .75rem; padding: 0; }

/* Tarjetas de servicio */
.s228-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .75rem; }
.s228-card {
	position: relative; display: flex; flex-direction: column; gap: .3rem;
	padding: 1rem 1rem 1rem 2.6rem; border: 1.5px solid var(--s228-line); border-radius: var(--s228-radius);
	cursor: pointer; background: #fff; transition: border-color .15s ease;
	margin: 0; font-weight: 400;
}
.s228-card input { position: absolute; left: 1rem; top: 1.15rem; width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--s228-primary); }
.s228-card:hover { border-color: #b5b5b0; }
.s228-card.is-on { border-color: var(--s228-primary); box-shadow: inset 0 0 0 1px var(--s228-primary); }
.s228-card:focus-within { outline: 2px solid var(--s228-accent); outline-offset: 2px; }
.s228-card__name { font-weight: 600; }
.s228-card__desc { font-size: .88rem; color: var(--s228-muted); }

/* Campos */
.s228-field { margin: 0 0 1.25rem; }
.s228-field__label { display: block; margin: 0 0 .45rem; font-weight: 600; font-size: .95rem; }
.s228-field__help { margin: -.2rem 0 .5rem; font-size: .85rem; color: var(--s228-muted); }
.s228-req { color: var(--s228-error); }
.s228-opt { font-weight: 400; color: var(--s228-muted); font-size: .85rem; }
.s228-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }

.s228 .s228-input {
	width: 100%; margin: 0; padding: .7rem .85rem; font: inherit; color: inherit;
	border: 1.5px solid var(--s228-line); border-radius: 8px; background: #fff; box-shadow: none; height: auto;
}
.s228 .s228-input:focus { outline: none; border-color: var(--s228-primary); box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
.s228 .s228-input--short { max-width: 8rem; }
.s228 textarea.s228-input { resize: vertical; min-height: 5.5rem; }

.s228-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.s228-chip {
	position: relative; display: inline-flex; align-items: center; margin: 0;
	padding: .5rem .9rem; border: 1.5px solid var(--s228-line); border-radius: 999px;
	cursor: pointer; font-size: .92rem; font-weight: 400; background: #fff; transition: background-color .15s ease, border-color .15s ease;
}
.s228-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.s228-chip:hover { border-color: #b5b5b0; }
.s228-chip.is-on { background: var(--s228-primary); border-color: var(--s228-primary); color: #fff; }
.s228-chip:focus-within { outline: 2px solid var(--s228-accent); outline-offset: 2px; }

.s228-field.is-error .s228-input,
.s228-field.is-error .s228-chip,
.s228-field.is-error .s228-card { border-color: var(--s228-error); }
.s228-field.is-error .s228-field__label { color: var(--s228-error); }
[data-field="services"].is-error .s228-card { border-color: var(--s228-error); }

.s228-consent label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .9rem; margin: 0; cursor: pointer; }
.s228-consent input { margin: .2rem 0 0; width: 1.05rem; height: 1.05rem; flex: none; accent-color: var(--s228-primary); }
.s228-consent a { color: inherit; text-decoration: underline; }

.s228-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Navegación */
.s228-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--s228-line); }
.s228 .s228-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
	margin: 0; padding: .8rem 1.5rem; min-height: 46px; border: 1.5px solid var(--s228-primary); border-radius: 8px;
	background: var(--s228-primary); color: #fff; font: inherit; font-weight: 600; line-height: 1.2;
	text-transform: none; letter-spacing: 0; cursor: pointer; text-decoration: none;
}
.s228 .s228-btn:hover { filter: brightness(1.12); color: #fff; }
.s228 .s228-btn:focus-visible { outline: 2px solid var(--s228-accent); outline-offset: 3px; }
.s228 .s228-btn:disabled { opacity: .6; cursor: wait; }
.s228 .s228-btn--ghost { background: transparent; color: var(--s228-primary); }
.s228 .s228-btn--ghost:hover { background: var(--s228-soft); color: var(--s228-primary); filter: none; }

/* Confirmación */
.s228-done { padding: 2rem; border: 1.5px solid var(--s228-line); border-top: 6px solid var(--s228-accent); border-radius: var(--s228-radius); background: #fff; }
.s228-done__title { margin: 0 0 .6rem; font-size: clamp(1.4rem, 2.6vw, 1.8rem); line-height: 1.2; }
.s228-done__title:focus { outline: none; }
.s228-done__text { margin: 0 0 .5rem; max-width: 60ch; }
.s228-done__time { margin: 0 0 1.5rem; color: var(--s228-muted); }
.s228-summary { background: var(--s228-soft); border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.s228-summary__title { margin: 0 0 .5rem; font-weight: 700; }
.s228-summary__block + .s228-summary__block { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--s228-line); }
.s228-summary__svc { margin: 0 0 .25rem; font-weight: 600; }
.s228-summary dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .2rem 1rem; font-size: .88rem; }
.s228-summary dt { color: var(--s228-muted); margin: 0; }
.s228-summary dd { margin: 0; }
.s228-done__actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.s228-link { color: var(--s228-primary); text-decoration: underline; font-weight: 600; }

@media (max-width: 600px) {
	.s228-row { grid-template-columns: 1fr; }
	.s228-progress__l { display: none; }
	.s228-progress li.is-current .s228-progress__l { display: inline; }
	.s228-nav { flex-direction: column-reverse; align-items: stretch; }
	.s228-nav > span { display: none; }
	.s228 .s228-btn { width: 100%; }
	.s228-done { padding: 1.25rem; }
	.s228-summary dl { grid-template-columns: 1fr; }
	.s228-summary dd { margin-bottom: .4rem; }
}

@media (prefers-reduced-motion: reduce) {
	.s228 * { transition: none !important; }
}
