/* AuroSuite Pedidos — configurador (usa las variables del tema AuroSuite si existen) */
.asp-preview, .asp-design, .asp-rest, .asp-step-title {
	--a-ink: var(--ink, #15172b);
	--a-brand: var(--brand, #cc3366);
	--a-brand-dk: var(--brand-dk, #a8244f);
	--a-soft: var(--brand-soft, #f7dbe5);
	--a-line: var(--line, #d9d4cb);
	--a-muted: var(--muted, #62657a);
	--a-paper: var(--paper, #f6f4f0);
	--a-mono: var(--f-mono, ui-monospace, Menlo, monospace);
}
[hidden] { display: none !important; }

/* Vista previa */
.asp-preview { background: #fff; border-radius: 16px; padding: 26px 34px 20px 26px; margin-bottom: 18px; box-shadow: 0 1px 0 var(--a-line); }
.asp-sheets { position: relative; margin: 0 18px 18px 0; }
.asp-sheet { position: relative; z-index: 4; display: block; width: 100%; height: auto; box-shadow: 0 10px 30px -16px rgba(21,23,43,.45); border-radius: 3px; }
.asp-sheet-copy { position: absolute; inset: 0; border-radius: 3px; box-shadow: 0 1px 0 rgba(21,23,43,.08); transition: background .2s; }
.asp-sheet-copy.c1 { z-index: 3; transform: translate(7px, 7px); background: #f3e3a0; }
.asp-sheet-copy.c2 { z-index: 2; transform: translate(14px, 14px); background: #f2c6cc; }
.asp-sheet-copy.c3 { z-index: 1; transform: translate(21px, 21px); background: #cfe0f5; display: none; }
.asp-preview-note { font-size: 13px; color: var(--a-muted); margin: 6px 0 0; }

/* Bloques */
.asp-block { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.asp-block legend, .asp-step-title { display: flex; align-items: center; gap: 10px; font: 700 18px/1.2 var(--f-display, inherit); color: var(--a-ink); margin: 0 0 14px; padding: 0; }
.asp-step { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--a-ink); color: #fff; font: 700 13px/1 var(--a-mono); flex: 0 0 26px; }
.asp-step-title { margin-top: 6px; }
.asp-design { padding-bottom: 20px; border-bottom: 1px solid var(--a-line); }
.asp-rest { flex: 0 0 100%; width: 100%; padding-top: 22px; border-top: 1px solid var(--a-line); margin-top: 8px; }

.asp-choices { display: grid; gap: 8px; margin-bottom: 14px; }
.asp-choice, .asp-check { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border: 1.5px solid var(--a-line); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.asp-choice:hover, .asp-check:hover { border-color: var(--a-ink); }
.asp-choice.is-on, .asp-check:has(input:checked), .asp-check.is-on { border-color: var(--a-brand); background: #fff8fa; box-shadow: 0 0 0 3px var(--a-soft); }
.asp-choice input, .asp-check input { margin: 3px 0 0; accent-color: var(--a-brand); width: 18px; height: 18px; flex: 0 0 18px; }
.asp-choice > span, .asp-check > span { display: grid; gap: 2px; font-size: 15px; line-height: 1.35; }
.asp-choice small, .asp-check small { display: block;  color: var(--a-muted); font-size: 13.5px; }
.asp-choice em, .asp-check em { font-style: normal; font: 600 13px var(--a-mono); color: var(--a-brand-dk); margin-left: 4px; }
.asp-check { margin-bottom: 12px; }

.asp-field { margin-bottom: 14px; min-width: 0; }
.asp-field > label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--a-ink); }
.asp-field > label small { font-weight: 400; color: var(--a-muted); }
.asp-req { color: var(--a-brand); }
.asp-field input[type="text"], .asp-field input[type="number"], .asp-field select, .asp-field textarea {
	width: 100%; font: inherit; font-size: 16px; padding: 11px 13px; border: 1.5px solid var(--a-line); border-radius: 10px; background: #fff; color: var(--a-ink);
}
.asp-field input:focus, .asp-field select:focus, .asp-field textarea:focus { outline: none; border-color: var(--a-ink); }
.asp-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; }
.asp-hint { font-size: 13.5px; color: var(--a-muted); margin: 0 0 12px; }

.asp-file { position: relative; display: flex !important; align-items: center; gap: 12px; padding: 15px 16px; border: 1.5px dashed #9a9cab; border-radius: 12px; background: var(--a-paper); cursor: pointer; font-weight: 500 !important; font-size: 15px !important; color: var(--a-ink); }
.asp-file:hover { border-color: var(--a-brand); }
.asp-file.has-file { border-style: solid; border-color: #1f9d6b; background: #effaf5; }
.asp-file-sm { padding: 11px 14px; }
.asp-file input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.asp-folio { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; align-items: end; padding: 14px; border-radius: 12px; background: var(--a-paper); margin: -4px 0 14px; }
.asp-folio .asp-hint { grid-column: 1 / -1; margin: 6px 0 0; }
.asp-folio .asp-field { margin: 0; }
.asp-folio-out { display: grid; gap: 6px; }
.asp-folio-out span { font-weight: 600; font-size: 14px; }
.asp-folio-out strong { font: 700 20px/1 var(--a-mono); color: #d7261e; padding: 12px 13px; border: 1.5px solid var(--a-line); border-radius: 10px; background: #fff; }

.asp-web-inc { padding: 13px 14px; border-radius: 12px; background: #effaf5; border: 1.5px solid #bfe6d4; font-size: 15px; margin: 0; }

.asp-summary { background: var(--a-ink); color: #fff; border-radius: 14px; padding: 16px 18px; margin: 4px 0 16px; }
.asp-sum-row { display: flex; justify-content: space-between; gap: 16px; font-size: 14.5px; padding: 4px 0; }
.asp-sum-row span { color: rgba(255,255,255,.72); }
.asp-sum-row strong { font: 600 14.5px var(--a-mono); text-align: right; }
.asp-sum-total { border-top: 1px solid rgba(255,255,255,.18); margin-top: 6px; padding-top: 10px; }
.asp-sum-total span { color: #fff; font-weight: 600; }
.asp-sum-total strong { font-size: 20px; color: #ffd1e0; }

@media (max-width: 600px) {
	.asp-row, .asp-folio { grid-template-columns: 1fr; }
	.asp-folio-out { margin-top: 12px; }
	.asp-preview { padding: 16px 24px 14px 16px; }
}
