/**
 * Identidad visual — denuncia siniestro (naranja Sarra, desktop-first + mobile)
 */
:root {
	--color-accent: #ff5722;
	--color-accent-hover: #ff7043;
	--color-accent-muted: rgba(249, 115, 22, 0.15);
	--color-accent-glow: rgba(249, 115, 22, 0.35);
	--color-accent-gradient: linear-gradient(90deg, #ff6127 0%, #ff8a3d 100%);

	--color-bg: #090909;
	--color-surface: #171717;
	--color-surface-elevated: #1a1a1a;
	--color-border: rgba(255, 255, 255, 0.08);
	--color-border-strong: rgba(255, 255, 255, 0.14);

	--surface-1: #121212;
	--surface-2: #1a1a1a;
	--border: #2e2e2e;
	--border-soft: rgba(255, 255, 255, 0.18);

	--wizard-max-mobile: 100%;
	--wizard-max-desktop: 720px;
}

body {
	overflow: hidden;
	background: var(--color-bg);
	padding: 0;
}

#app {
	width: 100%;
	min-height: 100svh;
	display: grid;
	place-items: stretch;
}

/* Shell — mobile full bleed (v2 usa .wizard-shell--v2 más abajo) */
.wizard-shell {
	width: 100%;
	min-height: 100svh;
	max-height: 100svh;
	border: none;
	border-radius: 0;
	box-shadow: none;
	background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface-1) 100%);
	padding: 0 20px max(20px, env(safe-area-inset-bottom));
	gap: 16px;
	grid-template-rows: auto auto 1fr auto;
}

.wizard-content {
	padding-top: 4px;
}

/* Footer base */
.wizard-footer {
	gap: 12px;
	padding-top: 8px;
}

.icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.icon svg {
	display: block;
	flex-shrink: 0;
	width: 1.25em;
	height: 1.25em;
	stroke-width: 1.5;
}

.icon--nav svg {
	width: 22px;
	height: 22px;
}

.icon--lg svg {
	width: 32px;
	height: 32px;
}

/* Botones icono cuadrados (ubicacion, audio) */
.icon-btn {
	width: 44px;
	height: 44px;
	min-height: 44px;
	padding: 0;
	border-radius: var(--radius-md);
	border: none;
	display: grid;
	place-items: center;
	cursor: pointer;
	flex-shrink: 0;
}

.icon-btn--accent {
	background: var(--color-accent-gradient);
	color: #fff;
}

.icon-btn--accent .icon svg {
	width: 20px;
	height: 20px;
}

.chip-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.chip {
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid var(--border-soft);
	background: transparent;
	color: var(--color-text-muted);
	font-family: inherit;
	font-size: var(--text-sm);
	font-weight: var(--font-weight-normal);
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.chip.is-selected {
	border-color: var(--color-accent);
	color: var(--color-accent);
	background: var(--color-accent-muted);
}

.chip-otros-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.chip-otros-input {
	flex: 1;
	min-width: 120px;
	border: none;
	border-bottom: 1px solid var(--border-soft);
	background: transparent;
	color: var(--color-text);
	font-family: inherit;
	font-size: var(--text-sm);
	padding: 6px 0;
}

.chip-otros-input:focus {
	outline: none;
	border-bottom-color: var(--color-accent);
}

.device-form {
	display: grid;
	gap: 16px;
}

.device-quick-picks {
	display: grid;
	gap: 8px;
}

.device-quick-picks__label {
	font-size: var(--text-sm);
	font-weight: var(--font-weight-medium);
	color: var(--color-text-muted);
}

.device-quick-picks__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.device-quick-pick.is-selected {
	border-color: var(--color-accent);
	color: var(--color-accent);
	background: var(--color-accent-muted);
}

/* Inputs alineados al mockup */
.form-label {
	font-size: var(--text-sm);
	font-weight: var(--font-weight-medium);
	color: var(--color-text);
}

.form-input,
.form-textarea,
.form-select {
	background: var(--color-surface);
	border-color: var(--border-soft);
	border-radius: 10px;
}

.input-with-action {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

.input-with-action .form-input {
	flex: 1;
}

.section-block {
	display: grid;
	gap: 10px;
}

.section-block + .section-block {
	margin-top: 18px;
}

.relato-tips {
	padding: 12px 14px;
	border-radius: 12px;
	background: rgba(255, 87, 34, 0.08);
	border: 1px solid rgba(255, 87, 34, 0.18);
}

.relato-tips__title {
	margin: 0 0 8px;
	font-size: var(--text-sm);
	font-weight: var(--font-weight-semibold);
	color: #fff;
}

.relato-tips__list {
	margin: 0;
	padding-left: 18px;
	display: grid;
	gap: 6px;
	font-size: var(--text-xs);
	color: var(--color-text-muted);
	line-height: 1.45;
}

.relato-prefill-refresh {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	margin-bottom: 16px;
	border-radius: var(--radius-md, 10px);
	border: 1px solid var(--color-border, #e2e8f0);
	background: var(--color-surface-muted, #f8fafc);
}

.relato-prefill-refresh__text {
	margin: 0;
	font-size: var(--text-sm, 0.875rem);
	color: var(--color-text-muted, #64748b);
	flex: 1 1 200px;
}

.relato-intro {
	font-size: var(--text-sm);
	color: var(--color-text-muted);
	line-height: var(--leading-normal);
}

.relato-audio-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 10px;
}

.relato-audio-row .form-hint {
	flex: 1;
	margin: 0;
	font-style: italic;
}

/* Upload */
.upload-drop {
	border-color: rgba(255, 255, 255, 0.14);
	background: var(--color-surface);
	min-height: 140px;
	border-radius: 10px;
}

.upload-drop:hover,
.upload-drop.is-dragover {
	border-color: var(--color-accent);
	background: var(--color-accent-muted);
}

.upload-drop__icon {
	color: var(--color-text-muted);
	opacity: 1;
}

.upload-drop__icon svg {
	width: 36px;
	height: 36px;
}

.upload-note {
	font-size: var(--text-xs);
	font-style: italic;
	color: var(--color-text-subtle);
	line-height: 1.4;
	margin-top: 6px;
}

.upload-preview__remove {
	display: grid;
	place-items: center;
}

.upload-preview__remove .icon svg {
	width: 14px;
	height: 14px;
}

/* Segmented, checklist, banners */
.segmented-control button.is-selected {
	border-color: var(--color-accent);
	background: var(--color-accent-muted);
	color: var(--color-accent);
}

.requirements-checklist li.is-done {
	color: var(--color-accent);
}

.btn-primary {
	background: var(--color-accent-gradient);
	box-shadow: none;
}

.person-summary__role {
	display: block;
	font-size: var(--text-xs);
	font-weight: var(--font-weight-semibold);
	color: var(--color-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 4px;
}

.person-summary {
	border-color: rgba(249, 115, 22, 0.35);
	background: var(--color-accent-muted);
}

.person-summary__badge {
	color: var(--color-accent);
}

.success-screen__icon {
	background: var(--color-accent-muted);
	color: var(--color-accent);
}

.success-screen__code {
	color: var(--color-accent);
}

.narrative-box {
	border-color: rgba(249, 115, 22, 0.35);
	background: var(--color-accent-muted);
}

@media (min-width: 768px) {
	body {
		overflow: auto;
		padding: 24px;
		background:
			radial-gradient(circle at 90% -8%, rgba(255, 97, 39, 0.22), transparent 40%),
			radial-gradient(circle at 8% 18%, rgba(255, 255, 255, 0.06), transparent 38%),
			linear-gradient(180deg, #090909 0%, #0d0d0d 100%);
	}

	#app {
		place-items: center;
	}

	.location-picker--split {
		grid-template-columns: 1fr 1fr;
		align-items: start;
	}

	.location-map {
		height: 280px;
	}
}

.location-map {
	border-color: rgba(255, 87, 34, 0.2);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Paso ubicación — mapa inmersivo llenando wizard-main */
.wizard-shell--v2:has(.step-view--ubicacion) {
	overflow: hidden;
	height: 100svh;
	max-height: 100svh;
}

.wizard-shell--v2:has(.step-view--ubicacion) .wizard-shell__stage {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	height: 100%;
	max-height: 100%;
}

.wizard-shell--v2:has(.step-view--ubicacion) .wizard-main {
	flex: 1;
	min-height: 0;
	height: 100%;
	max-height: 100%;
}

.wizard-main:has(.step-view--ubicacion) {
	position: relative;
	display: flex !important;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	height: 100%;
	max-height: 100%;
	padding: 0 !important;
	overflow: hidden;
	gap: 0 !important;
}

.wizard-main:has(.step-view--ubicacion) .wizard-topbar {
	flex-shrink: 0;
	padding: 12px 20px 10px;
	position: relative;
	z-index: 810;
	background: linear-gradient(180deg, rgba(9, 9, 9, 0.96) 0%, rgba(9, 9, 9, 0.55) 70%, transparent 100%);
}

.wizard-main:has(.step-view--ubicacion) .wizard-content {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	padding: 0 !important;
	margin: 0;
	overflow: hidden;
}

.wizard-main:has(.step-view--ubicacion) .wizard-footer {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 800;
	flex-shrink: 0;
	margin: 0;
	margin-top: auto;
	padding: 12px 20px max(16px, env(safe-area-inset-bottom));
	background: linear-gradient(180deg, transparent 0%, rgba(9, 9, 9, 0.72) 38%, rgba(9, 9, 9, 0.94) 100%);
	pointer-events: none;
}

.wizard-main:has(.step-view--ubicacion) .wizard-footer__actions,
.wizard-main:has(.step-view--ubicacion) .step-feedback {
	pointer-events: auto;
}

.step-view--ubicacion {
	display: flex;
	flex-direction: column;
	flex: 1;
	width: 100%;
	min-height: 0;
	height: 100%;
}

.step-view--ubicacion .location-picker--immersive {
	flex: 1;
	min-height: 0;
	height: 100%;
	border-radius: 0;
	border: none;
}

.wizard-main:has(.step-view--ubicacion) .location-map--branded .leaflet-bottom.leaflet-right {
	bottom: 108px;
}

@media (min-width: 900px) {
	.wizard-shell--v2.wizard-shell--with-sidebar:has(.step-view--ubicacion) {
		height: auto;
		max-height: calc(100svh - 48px);
	}

	.wizard-shell--v2.wizard-shell--with-sidebar:has(.step-view--ubicacion) .wizard-shell__stage {
		height: 100%;
		min-height: 0;
	}

	.wizard-main:has(.step-view--ubicacion) .wizard-footer {
		padding: 16px 20px 20px;
	}

	.wizard-main:has(.step-view--ubicacion) .location-map--branded .leaflet-bottom.leaflet-right {
		bottom: 96px;
	}
}

.location-picker--sentido .location-picker__field[hidden] {
	display: none !important;
}

.location-picker--sentido .location-picker__heading-wrap {
	padding-bottom: 6px;
	background: linear-gradient(
		180deg,
		rgba(9, 9, 9, 0.9) 0%,
		rgba(9, 9, 9, 0.45) 65%,
		transparent 100%
	);
}

.location-picker__sentido-slot {
	position: absolute;
	inset: 0;
	z-index: 450;
	pointer-events: none;
}

.sentido-cardinal-picker {
	position: absolute;
	inset: 0;
	pointer-events: none;
	--sentido-inset-x: clamp(12px, 4vw, 28px);
	--sentido-inset-y-top: clamp(108px, 24vh, 168px);
	--sentido-inset-y-bottom: clamp(108px, 22vh, 152px);
}

.sentido-cardinal-picker__btn {
	position: absolute;
	pointer-events: auto;
	display: grid;
	place-items: center;
	gap: 4px;
	box-sizing: border-box;
	width: 64px;
	height: 64px;
	min-width: 64px;
	min-height: 64px;
	padding: 8px 6px 6px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	background: rgba(26, 26, 26, 0.88);
	color: rgba(255, 255, 255, 0.9);
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.sentido-cardinal-picker__arrow {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	transform: rotate(var(--arrow-rotate, 0deg));
}

.sentido-cardinal-picker__arrow svg {
	display: block;
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.sentido-cardinal-picker__label {
	font-size: 0.68rem;
	font-weight: var(--font-weight-semibold);
	line-height: 1;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.72);
}

.sentido-cardinal-picker__btn:hover {
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
}

.sentido-cardinal-picker__btn.is-selected {
	border-color: var(--color-accent);
	background: var(--color-accent-muted);
	color: var(--color-accent);
	box-shadow: 0 0 0 1px rgba(255, 87, 34, 0.22), 0 12px 30px rgba(255, 87, 34, 0.14);
}

.sentido-cardinal-picker__btn.is-selected .sentido-cardinal-picker__arrow svg {
	stroke-width: 2.25;
}

.sentido-cardinal-picker__btn.is-selected .sentido-cardinal-picker__label {
	color: var(--color-accent);
	opacity: 1;
}

.sentido-cardinal-picker__btn[data-pos="n"] {
	top: var(--sentido-inset-y-top);
	left: 50%;
	transform: translateX(-50%);
}

.sentido-cardinal-picker__btn[data-pos="n"]:hover,
.sentido-cardinal-picker__btn[data-pos="n"].is-selected {
	transform: translateX(-50%) translateY(-1px);
}

.sentido-cardinal-picker__btn[data-pos="s"] {
	bottom: var(--sentido-inset-y-bottom);
	left: 50%;
	transform: translateX(-50%);
}

.sentido-cardinal-picker__btn[data-pos="s"]:hover,
.sentido-cardinal-picker__btn[data-pos="s"].is-selected {
	transform: translateX(-50%) translateY(1px);
}

.sentido-cardinal-picker__btn[data-pos="e"] {
	right: var(--sentido-inset-x);
	top: 50%;
	transform: translateY(-50%);
}

.sentido-cardinal-picker__btn[data-pos="e"]:hover,
.sentido-cardinal-picker__btn[data-pos="e"].is-selected {
	transform: translateY(-50%) translateX(1px);
}

.sentido-cardinal-picker__btn[data-pos="o"] {
	left: var(--sentido-inset-x);
	top: 50%;
	transform: translateY(-50%);
}

.sentido-cardinal-picker__btn[data-pos="o"]:hover,
.sentido-cardinal-picker__btn[data-pos="o"].is-selected {
	transform: translateY(-50%) translateX(-1px);
}

.sentido-cardinal-picker__btn[data-pos="ne"] {
	top: calc(var(--sentido-inset-y-top) + 8px);
	right: var(--sentido-inset-x);
}

.sentido-cardinal-picker__btn[data-pos="no"] {
	top: calc(var(--sentido-inset-y-top) + 8px);
	left: var(--sentido-inset-x);
}

.sentido-cardinal-picker__btn[data-pos="se"] {
	bottom: calc(var(--sentido-inset-y-bottom) + 8px);
	right: var(--sentido-inset-x);
}

.sentido-cardinal-picker__btn[data-pos="so"] {
	bottom: calc(var(--sentido-inset-y-bottom) + 8px);
	left: var(--sentido-inset-x);
}

.sentido-cardinal-picker__btn[data-pos="ne"]:hover,
.sentido-cardinal-picker__btn[data-pos="ne"].is-selected {
	transform: translate(-1px, -1px);
}

.sentido-cardinal-picker__btn[data-pos="no"]:hover,
.sentido-cardinal-picker__btn[data-pos="no"].is-selected {
	transform: translate(-1px, -1px);
}

.sentido-cardinal-picker__btn[data-pos="se"]:hover,
.sentido-cardinal-picker__btn[data-pos="se"].is-selected {
	transform: translate(1px, 1px);
}

.sentido-cardinal-picker__btn[data-pos="so"]:hover,
.sentido-cardinal-picker__btn[data-pos="so"].is-selected {
	transform: translate(-1px, 1px);
}

@media (min-width: 900px) {
	.sentido-cardinal-picker {
		--sentido-inset-y-top: clamp(96px, 18vh, 140px);
		--sentido-inset-y-bottom: clamp(92px, 16vh, 128px);
	}
}

.person-summary__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.device-hint {
	display: flex;
	align-items: center;
	gap: 8px;
}

.device-hint .icon svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.device-hint button {
	margin-left: auto;
	background: none;
	border: none;
	color: inherit;
	cursor: pointer;
	padding: 4px;
	display: grid;
	place-items: center;
}

.upload-preview__file {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.empty-state {
	display: grid;
	gap: 10px;
	place-items: center;
	text-align: center;
}

.empty-state .icon svg {
	width: 36px;
	height: 36px;
	color: var(--color-text-subtle);
}

.success-screen__icon .icon svg {
	width: 32px;
	height: 32px;
}

#btn-record.is-recording {
	box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.35);
}

/* ─── Mockup v2 — mobile first, pantalla por paso ─── */
.wizard-shell--v2 {
	background: #000;
	padding: 0;
	gap: 0;
	min-width: 0;
	position: relative;
	overflow: hidden;
	display: block;
}

.wizard-shell__stage {
	position: relative;
	z-index: 30;
	min-height: 100svh;
	background: #000;
	transition: transform 0.28s ease;
	will-change: transform;
}

.wizard-shell--v2 .wizard-main {
	height: 100svh;
	max-height: 100svh;
	display: grid;
	grid-template-rows: auto 1fr auto;
	padding: 16px 20px max(16px, env(safe-area-inset-bottom));
	gap: 20px;
	min-width: 0;
	overflow: hidden;
}

.wizard-shell--v2 .wizard-content {
	min-width: 0;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
}

.wizard-shell--v2 .step-view {
	min-width: 0;
	max-width: 100%;
	display: grid;
	gap: 16px;
	animation: step-view-enter-forward 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wizard-content[data-nav-direction="backward"] .step-view {
	animation-name: step-view-enter-backward;
}

.wizard-content[data-nav-direction="none"] .step-view {
	animation-name: step-view-enter-fade;
}

@keyframes step-view-enter-forward {
	from {
		opacity: 0;
		transform: translateX(16px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes step-view-enter-backward {
	from {
		opacity: 0;
		transform: translateX(-16px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes step-view-enter-fade {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.wizard-shell--v2 .step-view .screen-heading {
	margin-bottom: 0;
}

/* Topbar mobile */
.wizard-topbar {
	display: none;
	grid-template-columns: 48px 1fr 52px;
	align-items: center;
	gap: 10px;
	min-height: 52px;
}

.wizard-shell--v2.wizard-shell--with-sidebar .wizard-topbar:not([hidden]) {
	display: grid;
}

.wizard-topbar__menu-btn {
	width: 46px;
	height: 46px;
	border: none;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	display: grid;
	place-items: center;
	cursor: pointer;
	flex-shrink: 0;
}

.wizard-topbar__menu-btn .icon svg {
	width: 22px;
	height: 22px;
}

.wizard-topbar__step-title {
	text-align: center;
	font-size: var(--text-base);
	font-weight: var(--font-weight-semibold);
	color: #fff;
	line-height: 1.35;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
	letter-spacing: -0.01em;
}

.wizard-topbar__ring {
	justify-self: end;
	flex-shrink: 0;
}

.wizard-topbar__ring .wizard-sidebar__ring {
	width: 52px;
	height: 52px;
	margin: 0;
}

.wizard-topbar__ring .wizard-sidebar__ring-label {
	font-size: 11px;
}

body.wizard-drawer-open {
	overflow: hidden;
}

.wizard-footer--v2 {
	padding-top: 0;
}

.wizard-footer__actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.wizard-back-btn {
	flex-shrink: 0;
	min-height: 54px;
	padding: 0 18px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	font-family: inherit;
	font-size: var(--text-base);
	font-weight: var(--font-weight-medium);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	cursor: pointer;
	transition: background 0.16s ease, border-color 0.16s ease;
}

.wizard-back-btn:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.22);
}

.wizard-back-btn .icon svg {
	width: 18px;
	height: 18px;
}

.wizard-back-btn[hidden] {
	display: none;
}

.wizard-primary-btn {
	flex: 1;
	width: 100%;
	min-height: 54px;
	border: none;
	border-radius: 14px;
	background: var(--color-accent-gradient);
	color: #fff;
	font-family: inherit;
	font-size: var(--text-base);
	font-weight: var(--font-weight-semibold);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(255, 87, 34, 0.35);
}

.wizard-primary-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	box-shadow: none;
	background: rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.55);
}

.wizard-primary-btn .icon--btn svg {
	width: 18px;
	height: 18px;
}

.screen-heading {
	display: grid;
	gap: 8px;
	margin-bottom: 20px;
}

.screen-heading__title {
	font-size: clamp(1.5rem, 5vw, 1.75rem);
	font-weight: var(--font-weight-bold);
	line-height: 1.15;
	color: #fff;
}

.screen-heading__subtitle {
	font-size: var(--text-sm);
	line-height: 1.5;
	color: var(--color-text-muted);
	max-width: 100%;
}

.step-view--centered {
	display: grid;
	gap: 20px;
	align-content: start;
	justify-items: center;
	text-align: center;
	padding-top: 12px;
}

.step-view--centered .screen-heading {
	justify-items: center;
	text-align: center;
}

.step-view--summary {
	display: grid;
	gap: 18px;
	align-content: start;
}

.claim-summary-card {
	padding: 16px 16px 8px;
	border-radius: 16px;
	background: #141414;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.claim-summary-card__title {
	font-size: var(--text-base);
	font-weight: var(--font-weight-semibold);
	color: #fff;
	margin-bottom: 4px;
}

.claim-summary-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.claim-summary-row:last-child {
	border-bottom: none;
	padding-bottom: 10px;
}

.claim-summary-row__icon {
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: rgba(255, 87, 34, 0.14);
	color: var(--color-accent);
	display: grid;
	place-items: center;
}

.claim-summary-row__icon .icon svg {
	width: 18px;
	height: 18px;
}

.claim-summary-row__content {
	flex: 1;
	min-width: 0;
	display: grid;
	gap: 2px;
}

.claim-summary-row__label {
	font-size: var(--text-xs);
	color: var(--color-text-muted);
	line-height: 1.3;
}

.claim-summary-row__value {
	font-size: var(--text-sm);
	font-weight: var(--font-weight-semibold);
	color: #fff;
	line-height: 1.35;
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.claim-info-callout {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 12px;
	background: #121212;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.claim-info-callout__icon {
	flex: 0 0 auto;
	color: #5b9bd5;
	margin-top: 1px;
}

.claim-info-callout__icon .icon svg {
	width: 18px;
	height: 18px;
}

.claim-info-callout__text {
	font-size: var(--text-xs);
	line-height: 1.45;
	color: var(--color-text-muted);
}

.step-view--summary .legal-checkbox {
	margin-top: 2px;
	padding: 12px 14px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.step-view--summary .legal-checkbox span {
	font-size: var(--text-xs);
	line-height: 1.45;
	color: var(--color-text-muted);
}

.welcome-icon {
	width: 88px;
	height: 88px;
	border-radius: 999px;
	background: rgba(255, 87, 34, 0.12);
	display: grid;
	place-items: center;
	color: var(--color-accent);
}

.welcome-icon .icon--xl svg {
	width: 44px;
	height: 44px;
}

.welcome-resume-actions {
	display: grid;
	gap: 12px;
	width: min(100%, 320px);
	margin-top: 8px;
}

.welcome-resume-actions .btn {
	width: 100%;
	min-height: 48px;
	justify-content: center;
}

@media (min-width: 480px) {
	.welcome-resume-actions {
		grid-template-columns: 1fr 1fr;
		width: min(100%, 420px);
	}
}

.mockup-grid {
	display: grid;
	gap: 12px;
}

.mockup-grid--products {
	grid-template-columns: repeat(2, 1fr);
}

.product-bien-section {
	margin-top: 22px;
	padding: 18px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 24px;
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
		rgba(8, 12, 18, 0.36);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.product-bien-fields {
	max-width: 460px;
}

.product-bien-section--patente {
	margin-top: 8px;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.product-bien-fields--patente {
	display: flex;
	justify-content: center;
	max-width: none;
	width: 100%;
}

.step-view--producto .product-step-content {
	display: grid;
	gap: 18px;
	max-width: 560px;
	margin: 0 auto;
	width: 100%;
}

.product-flow {
	display: grid;
	gap: 16px;
	animation: step-view-enter-fade 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.product-progress {
	display: grid;
	gap: 8px;
}

.mockup-list {
	display: grid;
	gap: 10px;
}

.mockup-card {
	position: relative;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 14px;
	background: #1a1a1a;
	color: #fff;
	padding: 16px;
	cursor: pointer;
	text-align: center;
	display: grid;
	gap: 8px;
	justify-items: center;
	transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.mockup-card:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.mockup-card.is-committing,
.segmented-control button.is-committing,
.relative-position-picker__cell.is-committing,
.impact-zone-picker__cell.is-committing {
	animation: choice-commit 220ms ease-out;
}

@keyframes choice-commit {
	0% { transform: scale(0.98); }
	55% { transform: scale(1.02); }
	100% { transform: scale(1); }
}

.mockup-card--list {
	grid-template-columns: auto 1fr;
	grid-template-areas: 'icon title';
	align-items: center;
	justify-items: start;
	text-align: left;
	gap: 12px;
	padding: 14px 16px;
}

.mockup-card--list .mockup-card__icon {
	grid-area: icon;
}

.mockup-card--list .mockup-card__title {
	grid-area: title;
}

.mockup-card__icon svg {
	display: block;
	width: 28px;
	height: 28px;
	color: var(--color-text-muted);
}

.mockup-card__title {
	font-size: var(--text-sm);
	font-weight: var(--font-weight-semibold);
}

.mockup-card__check {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 22px;
	height: 22px;
	border-radius: 999px;
	background: var(--color-accent);
	color: #fff;
	display: none;
	place-items: center;
}

.mockup-card__check .icon svg {
	width: 14px;
	height: 14px;
}

.mockup-card.is-selected {
	border-color: var(--color-accent);
	background: rgba(255, 87, 34, 0.08);
	box-shadow: 0 0 0 1px rgba(255, 87, 34, 0.22), 0 12px 30px rgba(255, 87, 34, 0.16);
}

.mockup-card.is-selected .mockup-card__icon svg {
	color: var(--color-accent);
}

.mockup-card.is-selected .mockup-card__icon--semaforo svg {
	color: rgba(255, 255, 255, 0.45);
}

.mockup-card.is-selected .mockup-card__check {
	display: grid;
}

.step-view--fecha {
	display: grid;
	gap: 10px;
}

.step-view--fecha .screen-heading {
	margin-bottom: 0;
	gap: 4px;
}

.paso-fecha-hora {
	margin: 0;
}

.calendar-picker {
	display: grid;
	gap: 14px;
	padding: 16px;
	border-radius: 16px;
	background: #141414;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.calendar-picker--compact {
	gap: 10px;
	padding: 12px;
}

.calendar-picker--compact .calendar-picker__day {
	min-height: 34px;
	font-size: var(--text-sm);
}

.calendar-picker--compact .calendar-picker__nav-btn {
	width: 32px;
	height: 32px;
}

.calendar-picker__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.calendar-picker__nav-btn {
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	cursor: pointer;
}

.calendar-picker__month {
	font-weight: var(--font-weight-semibold);
	color: #fff;
}

.calendar-picker__weekdays,
.calendar-picker__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}

.calendar-picker__weekdays span {
	text-align: center;
	font-size: var(--text-xs);
	color: var(--color-text-muted);
}

.calendar-picker__day {
	min-height: 38px;
	border: none;
	border-radius: 10px;
	background: transparent;
	color: #fff;
	cursor: pointer;
}

.calendar-picker__day.is-selected {
	background: var(--color-accent);
	color: #fff;
	font-weight: var(--font-weight-semibold);
}

.calendar-picker__day.is-disabled,
.calendar-picker__nav-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.calendar-picker__day--empty {
	pointer-events: none;
}

.step-view__section {
	margin-top: 0;
}

.contexto-subprogress {
	margin: 0;
	font-size: var(--text-xs);
	color: var(--color-text-muted);
}

.contexto-progress {
	display: grid;
	gap: 8px;
}

.contexto-progress__track {
	height: 4px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	overflow: hidden;
}

.contexto-progress__bar {
	height: 100%;
	background: var(--color-accent-gradient);
	border-radius: inherit;
	transition: width 0.28s cubic-bezier(0.2, 0.9, 0.25, 1);
}

@media (prefers-reduced-motion: reduce) {
	.wizard-shell--v2 .step-view,
	.product-flow {
		animation: none;
	}

	.mockup-card.is-committing,
	.segmented-control button.is-committing,
	.relative-position-picker__cell.is-committing,
	.impact-zone-picker__cell.is-committing {
		animation: none;
	}

	.mockup-card,
	.contexto-progress__bar {
		transition: none;
	}
}

.mockup-card:focus-visible,
.chip:focus-visible,
.relative-position-picker__cell:focus-visible,
.impact-zone-picker__cell:focus-visible,
.segmented-control button:focus-visible,
.wizard-primary-btn:focus-visible,
.wizard-back-btn:focus-visible,
.calendar-picker__day:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

.chip {
	min-height: 40px;
}

.claim-info-callout__icon {
	color: var(--color-accent);
}

.step-view--contexto .contexto-mecanica {
	display: grid;
	gap: 16px;
	max-width: 480px;
	margin: 0 auto;
	width: 100%;
}

.mockup-grid--options {
	grid-template-columns: repeat(2, 1fr);
}

.mockup-grid--semaforo {
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.mockup-grid--semaforo .mockup-card {
	min-height: 108px;
	padding: 14px 8px;
}

.mockup-card__icon--semaforo .icon svg {
	width: 40px;
	height: 40px;
}

.mockup-card[data-value="reductor_velocidad"] .mockup-card__icon svg {
	width: 40px;
	height: 40px;
}

.semaforo-estado-picker {
	display: grid;
	gap: 12px;
}

.semaforo-estado-picker__fallback {
	width: 100%;
	text-align: left;
}

.mockup-grid--options .mockup-card {
	min-height: 88px;
}

.relative-position-picker,
.impact-zone-picker {
	display: grid;
	gap: 12px;
}

.relative-position-picker__grid,
.impact-zone-picker__grid {
	display: grid;
	grid-template-areas:
		"nw n ne"
		"w center e"
		"sw s se";
	gap: 8px;
}

.relative-position-picker__grid {
	grid-template-columns: 72px 112px 72px;
	grid-template-rows: 72px auto 72px;
	gap: 8px;
	width: fit-content;
	max-width: none;
	margin: 0 auto;
	justify-items: center;
	align-items: center;
}

.impact-zone-picker__grid {
	grid-template-columns: 60px 112px 60px;
	grid-template-rows: 60px auto 60px;
	gap: 8px;
	width: fit-content;
	max-width: none;
	margin: 0 auto;
	justify-items: center;
	align-items: center;
}

.impact-zone-picker__center {
	grid-area: center;
	display: grid;
	place-items: center;
	min-height: 210px;
	padding: 4px 0;
}

.relative-position-picker__center {
	grid-area: center;
	display: grid;
	place-items: center;
	min-height: 210px;
	padding: 4px 0;
}

.relative-position-picker__car-blueprint {
	display: block;
	width: 112px;
	height: 210px;
	filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.4));
}

.relative-position-picker__car-art {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	opacity: 0.98;
}

.relative-position-picker__cell {
	display: grid;
	place-items: center;
	box-sizing: border-box;
	width: 72px;
	height: 72px;
	min-width: 72px;
	min-height: 72px;
	padding: 6px 4px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(26, 26, 26, 0.85);
	color: rgba(255, 255, 255, 0.88);
	font-size: 0.68rem;
	font-weight: var(--font-weight-semibold);
	line-height: 1.15;
	text-align: center;
	cursor: pointer;
}

.relative-position-picker__label {
	display: block;
	max-width: 100%;
	hyphens: auto;
}

.relative-position-picker__cell.is-selected {
	border-color: var(--color-accent);
	background: var(--color-accent-muted);
	color: var(--color-accent);
}

.impact-zone-picker__car-blueprint {
	display: block;
	width: 112px;
	height: 210px;
	filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.4));
}

.impact-zone-picker__car-art {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	opacity: 0.98;
}

.impact-zone-picker__cell {
	display: grid;
	place-items: center;
	box-sizing: border-box;
	width: 60px;
	height: 60px;
	min-width: 60px;
	min-height: 60px;
	padding: 0;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(26, 26, 26, 0.85);
	color: rgba(255, 255, 255, 0.88);
	cursor: pointer;
}

.impact-zone-picker__arrow {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	transform: rotate(var(--arrow-rotate, 0deg));
}

.impact-zone-picker__arrow svg {
	display: block;
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.impact-zone-picker__cell.is-selected {
	border-color: var(--color-accent);
	background: var(--color-accent-muted);
	color: var(--color-accent);
}

.impact-zone-picker__cell.is-selected .impact-zone-picker__arrow svg {
	stroke-width: 2.25;
}

.impact-zone-picker__hint {
	margin: 0;
	font-size: var(--text-xs);
	color: var(--color-text-muted);
	line-height: 1.45;
}

.calendar-picker__summary {
	padding-top: 8px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	display: grid;
	gap: 4px;
}

.calendar-picker__summary-label {
	font-size: var(--text-xs);
	color: var(--color-text-muted);
}

.calendar-picker__summary-value {
	font-size: var(--text-sm);
	color: #fff;
	text-transform: capitalize;
}

.time-ruler-picker {
	display: grid;
	gap: 16px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.time-ruler-picker__display {
	font-size: clamp(2.75rem, 11vw, 3.75rem);
	font-weight: var(--font-weight-bold);
	text-align: center;
	color: #fff;
	letter-spacing: 0.06em;
	font-variant-numeric: tabular-nums;
}

.time-ruler-picker__viewport {
	position: relative;
	padding-top: 18px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
}

.time-ruler-picker__pointer {
	position: absolute;
	top: 0;
	left: 50%;
	z-index: 2;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 9px solid transparent;
	border-right: 9px solid transparent;
	border-top: 12px solid var(--color-accent);
	filter: drop-shadow(0 2px 6px rgba(255, 87, 34, 0.45));
}

.time-ruler-picker__scroller {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-end;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow-x: auto;
	overflow-y: hidden;
	cursor: grab;
	user-select: none;
	touch-action: none;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 18px 0 8px;
	border-radius: 14px;
	background: #121212;
	border: 1px solid rgba(255, 255, 255, 0.08);
	mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.time-ruler-picker__pad {
	flex: 0 0 auto;
	height: 1px;
}

.time-ruler-picker__scroller::-webkit-scrollbar {
	display: none;
}

.time-ruler-picker__scroller.is-dragging {
	cursor: grabbing;
}

.time-ruler-picker__scroller.is-coasting {
	cursor: grab;
}

.time-ruler-picker__strip {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: nowrap;
	align-items: flex-end;
	height: 72px;
	width: max-content;
}

.time-ruler-picker__tick {
	flex: 0 0 5px;
	position: relative;
	align-self: flex-end;
	background: transparent;
}

.time-ruler-picker__tick::before {
	content: '';
	display: block;
	width: 1px;
	margin-inline: auto;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 999px;
	transform: scaleX(0.4);
	transform-origin: center bottom;
}

.time-ruler-picker__tick--minute::before {
	height: 9px;
}

.time-ruler-picker__tick--five::before {
	height: 16px;
	background: rgba(255, 255, 255, 0.3);
}

.time-ruler-picker__tick--quarter::before {
	height: 24px;
	background: rgba(255, 255, 255, 0.4);
}

.time-ruler-picker__tick--hour::before {
	height: 38px;
	background: rgba(255, 255, 255, 0.58);
}

.time-ruler-picker__tick-label {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	margin-top: 8px;
	font-size: 11px;
	font-weight: var(--font-weight-medium);
	color: var(--color-text-muted);
	white-space: nowrap;
}

.time-ruler-picker__hint {
	font-size: var(--text-xs);
	color: var(--color-text-muted);
	text-align: center;
	line-height: 1.4;
}

.time-ruler-picker--compact {
	gap: 10px;
}

.time-ruler-picker--compact .time-ruler-picker__display {
	font-size: clamp(2rem, 9vw, 2.75rem);
}

.time-ruler-picker--compact .time-ruler-picker__viewport {
	padding-top: 12px;
}

.time-ruler-picker--compact .time-ruler-picker__strip {
	height: 56px;
}

.time-ruler-picker--compact .time-ruler-picker__tick--hour::before {
	height: 30px;
}

.time-ruler-picker--compact .time-ruler-picker__tick--quarter::before {
	height: 18px;
}

.time-ruler-picker--compact .time-ruler-picker__scroller {
	padding: 12px 0 6px;
}

.vehicle-damage-map {
	display: grid;
	gap: 14px;
}

.vehicle-damage-map__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.vehicle-damage-map__tab {
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: #141414;
	color: #fff;
	border-radius: 999px;
	padding: 6px 12px;
	font-size: var(--text-xs);
	cursor: pointer;
}

.vehicle-damage-map__tab.is-active {
	border-color: var(--color-accent);
	color: var(--color-accent);
}

.vehicle-damage-map__canvas-wrap {
	display: grid;
	gap: 8px;
}

.vehicle-damage-map__canvas {
	position: relative;
	min-height: 180px;
	border-radius: 16px;
	background: #141414;
	border: 1px dashed rgba(255, 255, 255, 0.16);
	cursor: crosshair;
}

.vehicle-damage-map__canvas::before {
	content: '';
	position: absolute;
	inset: 20%;
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-radius: 12px;
}

.vehicle-damage-map__canvas--top::before { border-radius: 24px; }
.vehicle-damage-map__canvas--front::before { inset: 25% 30%; border-radius: 8px 8px 4px 4px; }
.vehicle-damage-map__canvas--back::before { inset: 25% 30%; border-radius: 4px 4px 8px 8px; }

.vehicle-damage-map__marker {
	position: absolute;
	width: 18px;
	height: 18px;
	transform: translate(-50%, -50%);
	background: var(--color-accent);
	border-radius: 999px;
	box-shadow: 0 0 0 4px rgba(255, 87, 34, 0.25);
	pointer-events: none;
}

.vehicle-damage-map__hint {
	font-size: var(--text-xs);
	color: var(--color-text-muted);
	text-align: center;
}

.vehicle-damage-map__thumbs {
	display: flex;
	justify-content: center;
	gap: 8px;
}

.vehicle-damage-map__thumb {
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	background: #141414;
	cursor: pointer;
}

.vehicle-damage-map__thumb.is-active {
	border-color: var(--color-accent);
}

.vehicle-damage-map__thumb-shape {
	display: block;
	width: 100%;
	height: 100%;
	opacity: 0.5;
}

.relato-context {
	display: grid;
	gap: 16px;
}

.relato-context__block {
	display: grid;
	gap: 12px;
}

.relato-context__detail {
	margin-top: 4px;
}

.evidencias-hint {
	font-size: var(--text-sm);
	color: var(--color-text-muted);
	margin: 0 0 12px;
}

.tercero-list {
	display: grid;
	gap: 10px;
}

.tercero-list__empty {
	font-size: var(--text-sm);
	color: var(--color-text-muted);
	margin: 0;
}

.tercero-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 12px;
	background: #141414;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.tercero-card__title {
	font-size: var(--text-sm);
	color: #fff;
	font-weight: var(--font-weight-medium);
}

.tercero-card__actions {
	display: flex;
	gap: 6px;
	flex-shrink: 0;
}

.tercero-card__btn {
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
}

.tercero-card__btn--danger {
	color: #ff8a80;
}

.tercero-add-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: 14px;
	padding: 14px;
	border: 1px dashed rgba(255, 255, 255, 0.2);
	border-radius: 12px;
	background: transparent;
	color: var(--color-accent);
	font-weight: var(--font-weight-semibold);
	cursor: pointer;
}

.tercero-form {
	display: grid;
	gap: 14px;
}

.tercero-form__fields {
	display: grid;
	gap: 12px;
}

.modal-backdrop--form .modal--form {
	max-width: min(420px, calc(100vw - 32px));
	max-height: min(90svh, 720px);
	overflow: auto;
}

.modal--form .modal__body {
	margin: 12px 0 16px;
}

@media (min-width: 768px) {
	body {
		padding: 0;
	}

	#app {
		place-items: center;
	}

	.wizard-shell--v2 {
		width: min(420px, 100%);
		min-height: min(860px, 100svh);
		max-height: 100svh;
		border-radius: 24px;
		border: 1px solid rgba(255, 255, 255, 0.08);
		margin: auto;
	}
}

/* ─── Sidebar (compartido mobile drawer + desktop) ─── */
.wizard-sidebar {
	display: none;
}

.wizard-sidebar__title {
	font-size: var(--text-lg);
	font-weight: var(--font-weight-bold);
	color: #fff;
	line-height: var(--leading-tight);
	letter-spacing: -0.01em;
}

.wizard-sidebar__subtitle {
	margin-top: 4px;
	font-size: var(--text-xs);
	line-height: var(--leading-normal);
	color: rgba(255, 255, 255, 0.5);
}

.wizard-sidebar__ring {
	position: relative;
	width: 52px;
	height: 52px;
}

.wizard-sidebar__ring-svg {
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}

.wizard-sidebar__ring-track {
	fill: none;
	stroke: rgba(255, 255, 255, 0.1);
	stroke-width: 2.5;
}

.wizard-sidebar__ring-fill {
	fill: none;
	stroke: var(--color-accent);
	stroke-width: 2.5;
	stroke-linecap: round;
	transition: stroke-dashoffset 0.35s ease;
}

.wizard-sidebar__ring-label {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-size: 11px;
	font-weight: var(--font-weight-semibold);
	color: #fff;
}

.wizard-sidebar__close {
	display: none;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	place-items: center;
	cursor: pointer;
	flex-shrink: 0;
}

.wizard-sidebar__close .icon svg {
	width: 18px;
	height: 18px;
}

.wizard-sidebar__nav {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding-right: 4px;
}

.wizard-sidebar__nav::-webkit-scrollbar {
	width: 4px;
}

.wizard-sidebar__nav::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.15);
	border-radius: 999px;
}

.wizard-sidebar__steps {
	list-style: none;
	display: grid;
	gap: 4px;
}

.wizard-sidebar__step {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 12px;
	transition: background 0.2s ease;
}

.wizard-sidebar__step.is-clickable {
	cursor: pointer;
}

.wizard-sidebar__step.is-active {
	background: rgba(255, 255, 255, 0.08);
}

.wizard-sidebar__step-marker {
	width: 32px;
	height: 32px;
	border-radius: 999px;
	display: grid;
	place-items: center;
	flex-shrink: 0;
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.45);
}

.wizard-sidebar__step-marker .icon svg {
	width: 16px;
	height: 16px;
}

.wizard-sidebar__step.is-done .wizard-sidebar__step-marker {
	background: rgba(34, 197, 94, 0.18);
	color: #4ade80;
}

.wizard-sidebar__step.is-active .wizard-sidebar__step-marker {
	background: var(--color-accent);
	color: #fff;
	box-shadow: 0 0 12px rgba(255, 87, 34, 0.4);
}

.wizard-sidebar__step-label {
	flex: 1;
	min-width: 0;
	font-size: var(--text-sm);
	font-weight: var(--font-weight-medium);
	color: rgba(255, 255, 255, 0.45);
	line-height: 1.3;
}

.wizard-sidebar__step.is-done .wizard-sidebar__step-label {
	color: rgba(255, 255, 255, 0.65);
}

.wizard-sidebar__step.is-active .wizard-sidebar__step-label {
	color: #fff;
	font-weight: var(--font-weight-semibold);
}

.wizard-sidebar__step-arrow {
	flex-shrink: 0;
	opacity: 0.5;
}

.wizard-sidebar__step-arrow svg {
	width: 16px;
	height: 16px;
}

/* Mobile drawer */
@media (max-width: 899px) {
	.wizard-shell--v2.wizard-shell--with-sidebar .wizard-sidebar:not([hidden]) {
		display: flex;
		flex-direction: column;
		position: absolute;
		inset: 0 auto 0 0;
		width: min(300px, 85vw);
		z-index: 20;
		padding: 20px 18px max(20px, env(safe-area-inset-bottom));
		background: #0a0a0a;
		border-right: 1px solid rgba(255, 255, 255, 0.08);
		overflow: hidden;
	}

	.wizard-shell--v2.is-drawer-open .wizard-shell__stage {
		transform: translateX(min(300px, 85vw));
	}

	.wizard-sidebar__header {
		display: grid;
		gap: 12px;
		margin-bottom: 20px;
		flex-shrink: 0;
		grid-template-columns: 1fr auto;
		align-items: start;
		padding-right: 44px;
		position: relative;
	}

	.wizard-sidebar__close {
		display: grid;
		position: absolute;
		top: 0;
		right: 0;
	}

	.wizard-shell--v2 .wizard-sidebar [data-shell="progress-ring"] {
		display: none;
	}
}

/* ─── Desktop sidebar layout ─── */
@media (min-width: 900px) {
	.wizard-shell--v2.wizard-shell--with-sidebar {
		width: min(1040px, calc(100vw - 48px));
		min-height: min(720px, calc(100svh - 48px));
		max-height: calc(100svh - 48px);
		display: grid;
		grid-template-columns: 300px 1fr;
		grid-template-rows: 1fr;
		padding: 0;
		gap: 0;
		overflow: hidden;
	}

	.wizard-shell--v2.wizard-shell--with-sidebar .wizard-sidebar {
		display: flex;
		flex-direction: column;
		min-height: 0;
		padding: 28px 22px;
		background: rgba(255, 255, 255, 0.03);
		border-right: 1px solid rgba(255, 255, 255, 0.08);
	}

	.wizard-sidebar__header {
		display: grid;
		gap: 16px;
		margin-bottom: 24px;
		flex-shrink: 0;
		grid-template-columns: 1fr auto;
		align-items: start;
	}

	.wizard-sidebar__intro {
		grid-column: 1;
		min-width: 0;
	}

	.wizard-sidebar__ring {
		grid-column: 2;
		grid-row: 1;
		align-self: start;
		justify-self: end;
		margin-top: -4px;
	}

	.wizard-shell--v2.wizard-shell--with-sidebar .wizard-shell__stage {
		display: flex;
		flex-direction: column;
		min-height: 0;
		height: 100%;
		overflow: hidden;
		transform: none !important;
	}

	.wizard-shell--v2.wizard-shell--with-sidebar .wizard-main {
		display: grid;
		grid-template-rows: 1fr auto;
		flex: 1;
		min-height: 0;
		height: 100%;
		min-width: 0;
		padding: 20px 28px 24px;
		overflow: hidden;
	}

	.wizard-shell--v2.wizard-shell--with-sidebar .wizard-footer {
		flex-shrink: 0;
	}

	.wizard-shell--v2.wizard-shell--with-sidebar .wizard-topbar {
		display: none !important;
	}

	.wizard-shell--v2.wizard-shell--with-sidebar .wizard-content {
		padding-right: 4px;
		min-height: 0;
		overflow: auto;
	}

	.wizard-shell--v2.wizard-shell--with-sidebar .wizard-content:has(.step-view--ubicacion) {
		overflow: hidden;
	}

	.wizard-shell--v2.wizard-shell--with-sidebar .wizard-main:has(.step-view--ubicacion) {
		display: flex !important;
		grid-template-rows: unset;
		min-height: 0;
		height: 100%;
		max-height: 100%;
		padding: 0 !important;
		overflow: hidden;
	}

	.wizard-shell--v2.wizard-shell--with-sidebar .wizard-footer__actions {
		justify-content: flex-end;
	}

	.wizard-shell--v2.wizard-shell--with-sidebar .wizard-primary-btn {
		flex: 0 0 auto;
		width: auto;
		min-width: 200px;
		max-width: 320px;
	}

	.wizard-shell--v2.wizard-shell--with-sidebar.is-welcome .wizard-content {
		display: flex;
		flex-direction: column;
		justify-content: center;
	}

	.wizard-shell--v2.wizard-shell--with-sidebar.is-welcome .step-view--centered {
		width: 100%;
		max-width: 420px;
		margin-inline: auto;
	}

	.wizard-shell--v2.is-exito {
		width: min(480px, calc(100vw - 48px));
		display: grid;
		grid-template-columns: 1fr;
		padding: 24px 28px;
	}
}

/* Google Places Autocomplete — dropdown inyectado en <body> */
.pac-container {
	z-index: 1200 !important;
	margin-top: 4px;
	border-radius: 12px;
	border: 1px solid var(--border-soft);
	background: var(--surface-2);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
	font-family: var(--font-family, 'Barlow', sans-serif);
	overflow: hidden;
}

.pac-container::after {
	display: none;
}

.pac-item {
	padding: 10px 12px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--color-text);
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	cursor: pointer;
}

.pac-item:first-child {
	border-top: none;
}

.pac-item:hover,
.pac-item-selected {
	background: var(--color-accent-muted);
}

.pac-item-query {
	color: var(--color-text);
	font-size: 14px;
}

.pac-matched {
	color: var(--color-accent);
	font-weight: 600;
}

.pac-icon {
	display: none;
}

.pac-logo::after {
	filter: grayscale(1) brightness(1.5);
	opacity: 0.55;
}

/* v15 — Identificación, OTP WhatsApp, asegurables */

.documento-titular-enter,
.whatsapp-otp-enter,
.cliente-perfil-enter,
.asegurables-list-enter {
	animation: step-view-enter-fade 0.35s ease-out;
}

.documento-titular__title {
	margin: 0 0 8px;
	font-size: 1.35rem;
	font-weight: 700;
}

.documento-titular__subtitle {
	margin: 0 0 20px;
	color: var(--color-text-muted);
}

.documento-titular__tipo {
	margin-top: 8px;
	font-size: 0.85rem;
	font-weight: 600;
}

.documento-titular__tipo--dni,
.documento-titular__tipo--cuit {
	color: var(--color-accent);
}

.whatsapp-otp {
	text-align: center;
	max-width: 360px;
	margin-inline: auto;
}

.whatsapp-otp__icon {
	font-size: 2.5rem;
	margin-bottom: 12px;
}

.whatsapp-otp__title {
	margin: 0 0 8px;
	font-size: 1.35rem;
}

.whatsapp-otp__subtitle {
	margin: 0 0 20px;
	color: var(--color-text-muted);
	line-height: 1.5;
}

.whatsapp-otp__mask {
	color: var(--color-text);
	font-weight: 700;
}

.whatsapp-otp__digits {
	display: flex;
	justify-content: center;
	gap: 8px;
}

.whatsapp-otp__digit {
	width: 46px;
	height: 56px;
	padding: 0;
	text-align: center;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1;
}

.whatsapp-otp__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 12px;
	margin-top: 16px;
}

.whatsapp-otp__resend,
.whatsapp-otp__manual {
	margin-top: 0;
}

.whatsapp-otp__manual {
	font-size: var(--text-sm);
	color: var(--color-text-muted);
}

.whatsapp-otp--shake {
	animation: otp-shake 0.45s ease;
}

@media (max-width: 380px) {
	.whatsapp-otp__digits {
		gap: 6px;
	}

	.whatsapp-otp__digit {
		width: 40px;
		height: 50px;
		font-size: 1.25rem;
	}
}

@keyframes otp-shake {
	0%, 100% { transform: translateX(0); }
	20% { transform: translateX(-6px); }
	40% { transform: translateX(6px); }
	60% { transform: translateX(-4px); }
	80% { transform: translateX(4px); }
}

.cliente-perfil__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: 999px;
	background: var(--color-accent-muted);
	color: var(--color-accent);
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 12px;
}

.cliente-perfil__name {
	margin: 0 0 12px;
	font-size: 1.5rem;
}

.cliente-perfil__contact {
	list-style: none;
	padding: 0;
	margin: 0 0 16px;
	display: grid;
	gap: 8px;
}

.cliente-perfil__label {
	display: block;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--color-text-muted);
}

.cliente-perfil__hint {
	margin-bottom: 16px;
}

.form-input--readonly,
.form-input[readonly] {
	opacity: 0.72;
	cursor: default;
	color: var(--color-text-muted, rgba(255, 255, 255, 0.75));
}

.conductor-form {
	margin-top: 20px;
	display: grid;
	gap: 12px;
}

.conductor-person-form {
	margin-top: 4px;
}

.asegurables-list {
	display: grid;
	gap: 10px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow-x: hidden;
}

.asegurable-row {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	padding: 14px 16px;
	border: 1px solid var(--border-soft);
	border-radius: 14px;
	background: var(--surface-2);
	color: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.asegurable-row:hover,
.asegurable-row.is-selected {
	border-color: var(--color-accent);
	background: var(--color-accent-muted);
}

.asegurable-row--manual {
	margin-top: 6px;
	border-style: dashed;
	background: transparent;
}

.asegurable-row--manual:hover {
	border-style: solid;
	border-color: var(--color-accent);
	background: var(--color-accent-muted);
}

.asegurable-row__icon {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	background: transparent;
	overflow: visible;
}

.asegurable-row__logo {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.asegurable-row__logo-fallback {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--color-text-muted, rgba(255, 255, 255, 0.7));
	line-height: 1;
}

.asegurable-row__body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.asegurable-row__cia {
	font-weight: 700;
	font-size: 0.95rem;
	overflow-wrap: anywhere;
}

.asegurable-row__detalle {
	font-size: 0.9rem;
	color: var(--color-text-muted);
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: break-word;
	line-height: 1.35;
}

.asegurable-row__chevron {
	flex: 0 0 auto;
	opacity: 0.6;
}

.step-view--loading {
	display: grid;
	place-items: center;
	min-height: 200px;
}


/* Baja — NPS */
.nps-scale {
	display: grid;
	grid-template-columns: repeat(11, minmax(0, 1fr));
	gap: 0.4rem;
	margin: 1rem 0 0.5rem;
}
.nps-scale__btn {
	aspect-ratio: 1;
	border: 1px solid var(--color-border, #d0d5dd);
	border-radius: 0.5rem;
	background: #fff;
	font-weight: 600;
	cursor: pointer;
}
.nps-scale__btn.is-selected {
	background: var(--color-brand, #1a4fd6);
	color: #fff;
	border-color: transparent;
}
.nps-scale__labels {
	display: flex;
	justify-content: space-between;
	font-size: 0.8rem;
	color: var(--color-muted, #667085);
	margin-bottom: 1.25rem;
}

/* Baja — firma */
.firma-pad {
	position: relative;
	border: 1.5px dashed var(--color-border, #d0d5dd);
	border-radius: 0.75rem;
	background: #fafafa;
	overflow: hidden;
	margin: 1rem 0 0.75rem;
}
.firma-pad__canvas {
	display: block;
	width: 100%;
	height: auto;
	touch-action: none;
	cursor: crosshair;
	background: transparent;
}
.firma-pad__hint {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	pointer-events: none;
	color: var(--color-muted, #98a2b3);
	margin: 0;
}
.firma-pad__actions {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 1rem;
}
.resumen-firma {
	margin: 1rem 0;
	padding: 0.75rem;
	border: 1px solid var(--color-border, #e4e7ec);
	border-radius: 0.75rem;
	background: #fff;
}
.resumen-firma__img {
	display: block;
	max-width: 100%;
	height: auto;
	background: #fafafa;
	border-radius: 0.5rem;
}
.motivo-detalle-host {
	margin-top: 1rem;
}
