/* Caramelo · cotizador de pasteles (pastry_quotes)
 * Paleta del catalogo oficial: crema #F7F1E5, chocolate #54392F, rosa palo #DFA6A3,
 * rosa claro #EFD3CF, caramelo #E9CFA9. Todo va dentro de .pstq para no pisar
 * el layout publico ni el panel. */

.pstq {
    --q-cream: #F7F1E5;
    --q-cream-2: #EFE5D3;
    --q-choco: #54392F;
    --q-choco-2: #7A5B4F;
    --q-rose: #DFA6A3;
    --q-rose-2: #EFD3CF;
    --q-caramel: #E9CFA9;
    --q-white: #FFFFFF;
    --q-line: #E6D9C5;
    --q-ok: #6E9C82;
    --q-warn: #B7792B;
    --q-err: #A8413B;
    --q-radius: 16px;
    --q-shadow: 0 1px 2px rgba(84, 57, 47, .06), 0 10px 28px rgba(84, 57, 47, .08);
    --q-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, 'Times New Roman', serif;
    --q-round: 'Poppins', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --q-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--q-choco);
    font-family: var(--q-sans);
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 16px 120px;
    box-sizing: border-box;
}
.pstq *, .pstq *::before, .pstq *::after { box-sizing: border-box; }
.pstq [hidden] { display: none !important; }
.pstq button { font-family: inherit; }

/* ---------------------------------------------------------------- hero */
.pstq-hero { text-align: center; padding: 22px 8px 8px; }
.pstq-kicker {
    display: inline-block; font-family: var(--q-round); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
    color: var(--q-choco); background: var(--q-rose-2); padding: 6px 14px; border-radius: 999px;
}
.pstq-title {
    font-family: var(--q-serif) !important; font-weight: 400 !important; font-size: clamp(36px, 6vw, 58px) !important;
    color: var(--q-choco) !important; margin: 14px 0 6px !important; letter-spacing: .01em;
}
.pstq-sub { max-width: 560px; margin: 0 auto; color: var(--q-choco-2); font-size: 16px; line-height: 1.55; }

/* ------------------------------------------------------------ progreso */
.pstq-progress { margin: 22px 0 18px; }
.pstq-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.pstq-stepbtn {
    width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 2px;
    color: var(--q-choco-2); cursor: pointer; font-size: 12px; font-family: var(--q-round);
}
.pstq-stepbtn:disabled { cursor: default; opacity: .55; }
.pstq-stepnum {
    width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px;
    background: var(--q-white); border: 1.5px solid var(--q-line); transition: all .2s;
}
.pstq-stepbtn.is-done .pstq-stepnum { background: var(--q-rose-2); border-color: var(--q-rose); color: var(--q-choco); }
.pstq-stepbtn.is-current .pstq-stepnum { background: var(--q-choco); border-color: var(--q-choco); color: var(--q-cream); box-shadow: 0 0 0 4px rgba(223, 166, 163, .45); }
.pstq-stepbtn.is-current .pstq-steptxt { color: var(--q-choco); font-weight: 600; }
.pstq-steptxt { line-height: 1.2; text-align: center; }
.pstq-bar { height: 4px; background: var(--q-cream-2); border-radius: 4px; margin-top: 10px; overflow: hidden; }
.pstq-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--q-rose), var(--q-choco)); border-radius: 4px; transition: width .35s ease; }
.pstq-steplabel { display: none; margin: 8px 0 0; font-family: var(--q-round); font-size: 13px; color: var(--q-choco-2); text-align: center; }

/* --------------------------------------------------------------- layout */
.pstq-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.pstq-main { grid-column: 1; grid-row: 1; min-width: 0; }
.pstq-aside { grid-column: 2; grid-row: 1; position: sticky; top: 86px; display: flex; flex-direction: column; gap: 14px; }
.pstq--admin .pstq-aside { top: 70px; }

.pstq-step { animation: pstqIn .28s ease; }
@keyframes pstqIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.pstq-step-head { margin-bottom: 18px; }
.pstq-step-head h2 {
    display: inline-block; margin: 0 0 8px !important; padding: 8px 22px 9px; border-radius: 12px;
    background: var(--q-choco); color: var(--q-cream) !important;
    font-family: var(--q-round) !important; font-weight: 400 !important; font-size: 22px !important; letter-spacing: .02em;
}
.pstq-step-head p { margin: 0; color: var(--q-choco-2); }
.pstq-h3 {
    font-family: var(--q-round) !important; font-weight: 500 !important; font-size: 15px !important; letter-spacing: .04em;
    text-transform: uppercase; color: var(--q-choco) !important; margin: 22px 0 10px !important;
}
.pstq-hint { font-size: 13px; color: var(--q-choco-2); margin: 6px 0 0; }
.pstq-empty { color: var(--q-choco-2); font-style: italic; }

/* ---------------------------------------------------------------- cards */
.pstq-grid { display: grid; gap: 12px; }
.pstq-grid--occ { grid-template-columns: repeat(4, 1fr); }
.pstq-grid--photo { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
.pstq-grid--flavor { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.pstq-grid--opt { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.pstq-grid--two { grid-template-columns: 1fr 1fr; }

.pstq-card {
    position: relative; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
    background: var(--q-white); border: 1.5px solid var(--q-line); border-radius: var(--q-radius);
    padding: 12px 14px; color: var(--q-choco); cursor: pointer; box-shadow: 0 1px 2px rgba(84, 57, 47, .04);
    transition: border-color .18s, box-shadow .18s, transform .18s;
}
.pstq-card:hover { border-color: var(--q-rose); box-shadow: var(--q-shadow); transform: translateY(-1px); }
.pstq-card:focus-visible { outline: 3px solid var(--q-rose); outline-offset: 2px; }
.pstq-card.is-selected { border-color: var(--q-choco); box-shadow: 0 0 0 1px var(--q-choco), var(--q-shadow); }
.pstq-check-dot {
    position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%;
    background: var(--q-white); border: 1.5px solid var(--q-line); display: grid; place-items: center;
}
.pstq-card.is-selected .pstq-check-dot { background: var(--q-choco); border-color: var(--q-choco); }
.pstq-card.is-selected .pstq-check-dot::after {
    content: ''; width: 9px; height: 5px; border: 2px solid var(--q-cream); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px);
}

.pstq-occ { flex-direction: column; justify-content: center; text-align: center; padding: 16px 8px; gap: 8px; font-weight: 500; font-size: 14px; }
.pstq-occ .pstq-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--q-cream); color: var(--q-choco); }
.pstq-occ .pstq-ico svg { width: 28px; height: 28px; }
.pstq-occ.is-selected .pstq-ico { background: var(--q-rose-2); }
.pstq-occ .pstq-check-dot { top: 8px; right: 8px; width: 18px; height: 18px; }

.pstq-opt { align-items: flex-start; padding-right: 40px; }
.pstq-opt-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pstq-opt-name { font-weight: 600; font-size: 15px; line-height: 1.25; overflow-wrap: break-word; hyphens: auto; }
.pstq-opt-sub { font-size: 12.5px; color: var(--q-choco-2); line-height: 1.35; }
.pstq-opt-price { font-family: var(--q-round); font-size: 14px; font-weight: 600; color: var(--q-choco); margin-top: 2px; }
.pstq-opt-price.is-quote { color: var(--q-warn); font-weight: 500; }
.pstq-swatch { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--q-white); box-shadow: 0 0 0 1px var(--q-line), inset 0 -4px 8px rgba(0, 0, 0, .08); }

/* Tarjetas con foto real del catalogo */
.pstq-opt--photo { flex-direction: column; align-items: stretch; padding: 0; overflow: hidden; gap: 0; }
.pstq-opt--photo .pstq-opt-body { padding: 10px 12px 12px; }
.pstq-opt--photo .pstq-check-dot { top: 8px; right: 8px; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.pstq-photo { position: relative; display: block; aspect-ratio: 4 / 4.4; background: var(--q-cream-2); overflow: hidden; }
.pstq-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.pstq-opt--photo:hover .pstq-photo img { transform: scale(1.04); }
.pstq-photo.is-empty { display: grid; place-items: center; color: var(--q-rose); }
.pstq-photo-ph svg { width: 56px; height: 56px; }
.pstq-badge {
    position: absolute; left: 8px; bottom: 8px; font-family: var(--q-round); font-size: 11px; font-weight: 600; letter-spacing: .03em;
    padding: 4px 9px; border-radius: 999px; background: var(--q-choco); color: var(--q-cream);
}
.pstq-badge.is-quote { background: var(--q-cream); color: var(--q-choco); border: 1px solid var(--q-caramel); }

/* ------------------------------------------------------------- paso 1 */
.pstq-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; margin-top: 8px; }
.pstq-block { background: var(--q-white); border: 1px solid var(--q-line); border-radius: var(--q-radius); padding: 14px 16px 16px; }
.pstq-block .pstq-h3 { margin-top: 2px !important; }
.pstq-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pstq-cal-head strong { font-family: var(--q-serif); font-size: 20px; font-weight: 600; text-transform: capitalize; }
.pstq-cal-nav { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--q-line); background: var(--q-white); color: var(--q-choco); font-size: 20px; line-height: 1; cursor: pointer; }
.pstq-cal-nav:disabled { opacity: .35; cursor: default; }
.pstq-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.pstq-cal-wd { text-align: center; font-size: 11px; font-weight: 600; color: var(--q-choco-2); padding: 2px 0 4px; }
.pstq-day {
    position: relative; aspect-ratio: 1; border-radius: 12px; border: 1px solid transparent; background: var(--q-cream);
    color: var(--q-choco); font-size: 14px; font-weight: 500; cursor: pointer; padding: 0;
}
.pstq-day:hover:not(:disabled) { border-color: var(--q-rose); }
.pstq-day.is-ok::after, .pstq-day.is-high::after, .pstq-day.is-rush::after {
    content: ''; position: absolute; left: 50%; bottom: 5px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--q-ok);
}
.pstq-day.is-high::after { background: var(--q-warn); }
.pstq-day.is-rush { background: var(--q-white); border: 1px dashed var(--q-caramel); }
.pstq-day.is-rush::after { background: var(--q-warn); }
.pstq-day.is-full, .pstq-day.is-closed { background: #F1ECE4; color: #B9ABA0; text-decoration: line-through; cursor: not-allowed; }
.pstq-day.is-lead, .pstq-day.is-past { background: transparent; color: #C6B9AE; cursor: not-allowed; }
.pstq-day.is-loading { opacity: .5; }
.pstq-day.is-selected { background: var(--q-choco) !important; color: var(--q-cream) !important; text-decoration: none; }
.pstq-day.is-selected::after { background: var(--q-rose) !important; }
.pstq-cal-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; font-size: 12px; color: var(--q-choco-2); }
.pstq-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.pstq-dot--ok { background: var(--q-ok); }
.pstq-dot--high { background: var(--q-warn); }
.pstq-dot--full { background: #C9BDB2; }
.pstq-dot--rush { background: transparent; border: 1px dashed var(--q-warn); width: 10px; height: 10px; }

.pstq-people { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; }
.pstq-round {
    width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--q-line); background: var(--q-white);
    color: var(--q-choco); font-size: 22px; line-height: 1; cursor: pointer; flex: 0 0 auto;
}
.pstq-round:hover { border-color: var(--q-choco); }
.pstq-people-num {
    width: 100%; min-width: 0; text-align: center; font-family: var(--q-serif); font-size: 34px; font-weight: 600; color: var(--q-choco);
    border: 0; border-bottom: 2px solid var(--q-rose); background: transparent; padding: 2px 0; -moz-appearance: textfield;
}
.pstq-people-num::-webkit-outer-spin-button, .pstq-people-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pstq-people-num:focus { outline: none; border-bottom-color: var(--q-choco); }
.pstq-range { width: 100%; accent-color: var(--q-choco); height: 28px; }
.pstq-suggest { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--q-rose-2); font-size: 14px; line-height: 1.45; }
.pstq-suggest-k { display: block; font-family: var(--q-round); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--q-choco-2); }
.pstq-suggest p { margin: 0; }

/* ------------------------------------------------------ cupcakes/paso 2 */
.pstq-cupcake { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; padding: 16px; border-radius: var(--q-radius); background: var(--q-white); border: 1px dashed var(--q-rose); }

/* ------------------------------------------------------------- campos */
.pstq-field { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.pstq-field label, .pstq-label { font-weight: 600; font-size: 14px; color: var(--q-choco); }
.pstq-field input[type=text], .pstq-field input[type=email], .pstq-field input[type=tel], .pstq-field input[type=number], .pstq-field textarea, .pstq-field select {
    width: 100%; border: 1.5px solid var(--q-line); border-radius: 12px; padding: 12px 14px; font-size: 16px; font-family: var(--q-sans);
    background: var(--q-white); color: var(--q-choco); transition: border-color .15s, box-shadow .15s; height: auto;
}
.pstq-field input:focus, .pstq-field textarea:focus, .pstq-field select:focus { outline: none; border-color: var(--q-choco); box-shadow: 0 0 0 3px rgba(223, 166, 163, .35); }
.pstq-field input.pstq-people-num { border: 0; border-bottom: 2px solid var(--q-rose); border-radius: 0; padding: 2px 0; font-size: 30px; }
.pstq-counted { position: relative; }
.pstq-counted input { padding-right: 64px !important; }
.pstq-count { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--q-choco-2); }
.pstq-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.pstq-field--wide { grid-column: 1 / -1; }

.pstq-palette { display: flex; flex-wrap: wrap; gap: 10px; }
.pstq-color {
    width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--q-white); box-shadow: 0 0 0 1px var(--q-line);
    cursor: pointer; position: relative; padding: 0;
}
.pstq-color.is-selected { box-shadow: 0 0 0 2px var(--q-choco); }
.pstq-color-n {
    position: absolute; right: -6px; top: -6px; width: 18px; height: 18px; border-radius: 50%; background: var(--q-choco); color: var(--q-cream);
    font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.pstq-palette-tools { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.pstq-custom-color { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.pstq-custom-color input { width: 40px; height: 40px; border: 0; padding: 0; background: none; cursor: pointer; }
.pstq-linkbtn { background: none; border: 0; padding: 4px 0; color: var(--q-choco); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; }

.pstq-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.pstq-upload-btn {
    display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; border: 1.5px dashed var(--q-rose);
    background: var(--q-white); cursor: pointer; font-weight: 500;
}
.pstq-upload-btn svg { width: 22px; height: 22px; }
.pstq-upload-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pstq-upload-preview, .pstq-upload-current { display: flex; align-items: center; gap: 12px; }
.pstq-upload-preview img, .pstq-upload-current img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; border: 1px solid var(--q-line); }

.pstq-qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; position: absolute; right: 12px; bottom: 10px; }
.pstq-qty button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--q-line); background: var(--q-cream); cursor: pointer; }

.pstq-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pstq-chip {
    border: 1.5px solid var(--q-line); background: var(--q-white); color: var(--q-choco); border-radius: 999px; padding: 9px 14px;
    font-size: 14px; cursor: pointer;
}
.pstq-chip.is-selected { background: var(--q-choco); border-color: var(--q-choco); color: var(--q-cream); }

.pstq-mode { flex-direction: column; text-align: center; padding: 18px 12px; gap: 6px; }
.pstq-mode svg { width: 42px; height: 42px; color: var(--q-choco); }
.pstq-mode span { font-size: 13px; color: var(--q-choco-2); }
.pstq-pickup-info { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--q-white); border: 1px solid var(--q-line); }
.pstq-pickup-info p { margin: 0 0 4px; }
.pstq-pickup-info:empty { display: none; }

.pstq-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; font-size: 14px; line-height: 1.45; cursor: pointer; }
.pstq-check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--q-choco); flex: 0 0 auto; }
.pstq-check--inline { margin: 0 0 6px; }
.pstq-check a { color: var(--q-choco); text-decoration: underline; }
.pstq-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.pstq-summary { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; padding: 16px 18px; background: var(--q-white); border-radius: var(--q-radius); border: 1px solid var(--q-line); }
.pstq-summary dt { font-weight: 600; font-size: 13px; color: var(--q-choco-2); }
.pstq-summary dd { margin: 0; font-size: 14px; }

.pstq-error { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: #FBEAE7; color: var(--q-err); font-weight: 500; border: 1px solid #F0C9C3; }

.pstq-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.pstq-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: 999px;
    font-size: 16px; font-weight: 600; font-family: var(--q-round); cursor: pointer; border: 1.5px solid transparent; transition: all .18s; text-decoration: none !important;
}
.pstq-btn--primary { background: var(--q-choco); color: var(--q-cream) !important; }
.pstq-btn--primary:hover { background: #3F2A22; }
.pstq-btn--primary:disabled { opacity: .6; cursor: progress; }
.pstq-btn--ghost { background: transparent; color: var(--q-choco) !important; border-color: var(--q-line); }
.pstq-btn--ghost:hover { border-color: var(--q-choco); }
.pstq-btn--rose { background: var(--q-rose); color: var(--q-choco) !important; }
.pstq-btn--wa { background: #25D366; color: #fff !important; }
.pstq-btn--wa:hover { background: #1FB257; }

/* ------------------------------------------------------ escenario/precio */
.pstq-stage { position: relative; background: var(--q-white); border-radius: 22px; padding: 10px; box-shadow: var(--q-shadow); }
.pstq-cake { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.pstq-stage-note {
    position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
    color: var(--q-choco-2); background: rgba(255, 255, 255, .8); padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.pstq-price { background: var(--q-choco); color: var(--q-cream); border-radius: 22px; padding: 18px 20px; box-shadow: var(--q-shadow); }
.pstq-price-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.pstq-price-label { display: block; font-family: var(--q-round); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; opacity: .75; }
.pstq-price-total { display: block; font-family: var(--q-serif); font-size: 36px; font-weight: 600; line-height: 1.1; color: var(--q-white); transition: opacity .2s; }
.pstq-price-total.is-loading { opacity: .45; }
.pstq.is-quote .pstq-price-total { font-size: 26px; color: var(--q-rose-2); }
.pstq-price-dep { text-align: right; }
.pstq-price-dep strong { font-size: 18px; }
.pstq-price-meta { margin: 8px 0 0; font-size: 14px; opacity: .9; }
.pstq-price-earliest { margin: 6px 0 0; font-size: 13px; color: var(--q-caramel); }
.pstq-alerts { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pstq-alerts li { font-size: 13px; line-height: 1.4; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .08); }
.pstq-alerts li.is-error { background: rgba(223, 110, 100, .25); color: #FFE1DC; }
.pstq-alerts li.is-warn { background: rgba(233, 207, 169, .18); color: var(--q-caramel); }
.pstq-price .pstq-linkbtn { color: var(--q-rose-2); margin-top: 8px; font-size: 13px; }
.pstq-lines { list-style: none; margin: 8px 0 0; padding: 10px 0 0; border-top: 1px solid rgba(255, 255, 255, .15); display: flex; flex-direction: column; gap: 6px; }
.pstq-lines li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.pstq-lines li strong { white-space: nowrap; font-weight: 600; }
.pstq-lines li.is-pending strong { color: var(--q-caramel); font-weight: 500; }
.pstq-lines li.is-neg strong { color: #BFE3CF; }

.pstq-mobilebar { display: none; }

/* ------------------------------------------------------------- movil */
@media (max-width: 900px) {
    .pstq { padding: 6px 12px 110px; }
    .pstq-hero { padding-top: 12px; }
    .pstq-sub { font-size: 15px; }
    .pstq-steps { gap: 2px; }
    .pstq-steptxt { display: none; }
    .pstq-stepnum { width: 28px; height: 28px; font-size: 12px; }
    .pstq-steplabel { display: block; }
    .pstq-layout { grid-template-columns: 1fr; gap: 14px; }
    .pstq-aside { grid-column: 1; grid-row: 1; position: static; }
    .pstq-main { grid-row: 2; }
    .pstq-stage { max-width: 300px; margin: 0 auto; width: 100%; padding: 4px; border-radius: 18px; }
    .pstq-stage-note { bottom: 8px; font-size: 10px; }
    .pstq-price { display: none; }
    .pstq.is-sheet-open .pstq-price {
        display: block; position: fixed; left: 0; right: 0; bottom: 72px; z-index: 60; border-radius: 22px 22px 0 0;
        max-height: 60vh; overflow: auto; box-shadow: 0 -10px 30px rgba(0, 0, 0, .25);
    }
    .pstq-mobilebar {
        display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 61;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--q-choco); color: var(--q-cream);
        box-shadow: 0 -6px 20px rgba(84, 57, 47, .25);
    }
    .pstq-mobilebar-price { background: none; border: 0; color: inherit; text-align: left; padding: 0; cursor: pointer; min-width: 0; }
    .pstq-mobilebar-price strong { display: block; font-family: var(--q-serif); font-size: 24px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .pstq.is-quote .pstq-mobilebar-price strong { font-size: 18px; color: var(--q-rose-2); }
    .pstq-mobilebar-price small { display: block; font-size: 12px; opacity: .8; }
    .pstq-mobilebar .pstq-btn { background: var(--q-rose); color: var(--q-choco) !important; padding: 0 22px; flex: 0 0 auto; }
    .pstq-nav .pstq-btn--primary { display: none; }
    .pstq-nav { margin-top: 18px; }
    .pstq-grid--occ { grid-template-columns: repeat(2, 1fr); }
    .pstq-grid--photo { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .pstq-grid--flavor { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .pstq-grid--opt { grid-template-columns: 1fr; }
    .pstq-split { grid-template-columns: 1fr; }
    .pstq-cupcake { grid-template-columns: 1fr; }
    .pstq-form-grid { grid-template-columns: 1fr; }
    .pstq-step-head h2 { font-size: 19px !important; padding: 7px 16px 8px; }
    .pstq-opt-name { font-size: 14px; }
    .pstq-summary { grid-template-columns: 1fr; gap: 2px; }
    .pstq-summary dd { margin-bottom: 8px; }
    .pstq-opt--photo .pstq-opt-body { padding: 8px 10px 10px; }
    .pstq-flavor-grid .pstq-card { padding: 10px; }
    .pstq-grid--flavor .pstq-opt { padding: 10px 34px 10px 10px; gap: 8px; }
    .pstq-grid--flavor .pstq-swatch { flex-basis: 30px; width: 30px; height: 30px; }
}

/* ---------------------------------------------------- pagina ver/confirmacion */
.pstq-view { max-width: 1080px; }
.pstq-thanks {
    text-align: center; background: var(--q-white); border-radius: 24px; padding: 28px 20px; box-shadow: var(--q-shadow); margin: 16px 0 22px;
    border-top: 6px solid var(--q-rose);
}
.pstq-thanks h1 { font-family: var(--q-serif) !important; font-weight: 500 !important; font-size: clamp(28px, 4.5vw, 40px) !important; margin: 6px 0 !important; }
.pstq-thanks p { margin: 0 auto 16px; max-width: 540px; color: var(--q-choco-2); }
.pstq-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pstq-view-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 26px; align-items: start; }
.pstq-panel { background: var(--q-white); border: 1px solid var(--q-line); border-radius: 22px; padding: 20px 22px; box-shadow: var(--q-shadow); }
.pstq-panel + .pstq-panel { margin-top: 18px; }
.pstq-panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.pstq-panel-title h2 { margin: 0 !important; font-family: var(--q-round) !important; font-weight: 500 !important; font-size: 20px !important; }
.pstq-folio { font-family: var(--q-round); font-size: 13px; letter-spacing: .08em; color: var(--q-choco-2); }
.pstq-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--q-rose-2); color: var(--q-choco); }
.pstq-status--aceptada, .pstq-status--convertida { background: #DCEBE2; color: #2F5E45; }
.pstq-status--vencida, .pstq-status--rechazada { background: #EEE8E1; color: #7D6F65; }
.pstq-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pstq-table th, .pstq-table td { padding: 9px 4px; border-bottom: 1px solid var(--q-cream-2); text-align: left; vertical-align: top; }
.pstq-table td.num, .pstq-table th.num { text-align: right; white-space: nowrap; }
.pstq-table tfoot td { font-weight: 700; font-size: 16px; border-bottom: 0; }
.pstq-table tr.is-pending td.num { color: var(--q-warn); }
.pstq-kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.pstq-kv dt { color: var(--q-choco-2); font-weight: 600; }
.pstq-kv dd { margin: 0; }
.pstq-note { padding: 12px 14px; border-radius: 12px; background: var(--q-rose-2); font-size: 14px; margin: 0 0 14px; }
.pstq-note--warn { background: #F6EAD6; }
.pstq-note--ok { background: #DCEBE2; }
.pstq-ref { max-width: 180px; border-radius: 14px; border: 1px solid var(--q-line); display: block; }
@media (max-width: 900px) {
    .pstq-view-grid { grid-template-columns: 1fr; }
    .pstq-view .pstq-stage { max-width: 320px; }
    .pstq-actions .pstq-btn { flex: 1 1 100%; }
}

/* ---------------------------------------------------------------- admin */
.pstq--admin { padding: 0 0 40px; max-width: none; }
.pstq--admin .pstq-progress { margin-top: 4px; }
@media (max-width: 900px) {
    .pstq--admin .pstq-mobilebar { left: 0; }
}

/* ------------------------------------------------ ajustes (ronda final) */
.pst-public .pstq .pstq-sub { margin: 0 auto; }
.pstq-badge.is-rec { background: var(--q-rose); color: var(--q-choco); }
.pstq-badge.is-real { background: rgba(84, 57, 47, .82); color: var(--q-cream); backdrop-filter: blur(4px); }
.pstq-alerts li.is-info { background: rgba(255, 255, 255, .10); color: var(--q-cream); }
.pstq-alerts li.is-quote { background: rgba(223, 166, 163, .22); color: var(--q-rose-2); }
.pstq[data-price-state="from"] .pstq-price-total { color: var(--q-caramel); }

/* Inspiracion: fotos reales del tipo elegido */
.pstq-inspo { margin-top: 22px; }
.pstq-inspo-list {
    display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 10px; overflow-x: auto; padding: 2px 2px 10px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.pstq-inspo-item { margin: 0; scroll-snap-align: start; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--q-cream-2); box-shadow: 0 1px 3px rgba(84, 57, 47, .12); }
.pstq-inspo-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 900px) {
    .pstq-stage { max-width: 236px; }
    .pstq.is-advanced .pstq-hero { display: none; }
    .pstq.is-advanced .pstq-stage { max-width: 190px; }
    .pstq-hero .pstq-title { font-size: 34px !important; margin-top: 10px !important; }
    .pstq-inspo-list { grid-auto-columns: 112px; }
}

/* ------------------------------------------------ pagina de la cotizacion */
.pstq-view .pstq-kicker { margin-bottom: 4px; }
.pstq-nextsteps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 760px; margin: 22px auto 0; padding: 0; text-align: left; }
.pstq-nextsteps li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; color: var(--q-choco-2); background: var(--q-cream); border-radius: 14px; padding: 12px; }
.pstq-nextsteps li span { flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--q-choco); color: var(--q-cream); font-weight: 700; font-size: 13px; }
.pstq-example { margin: 16px 0 0; background: var(--q-white); border-radius: 18px; padding: 8px; box-shadow: var(--q-shadow); }
.pstq-example img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; display: block; }
.pstq-example figcaption { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--q-choco-2); text-align: center; padding: 8px 4px 2px; }
.pstq-example--ref img { aspect-ratio: auto; max-height: 360px; object-fit: contain; background: var(--q-cream); }
.pstq-dots { display: inline-flex; gap: 6px; vertical-align: middle; }
.pstq-dots i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--q-line); display: inline-block; }
.pstq-bigprice { border-radius: 16px; padding: 18px; background: var(--q-choco); color: var(--q-cream); display: flex; flex-direction: column; gap: 6px; }
.pstq-bigprice strong { font-family: var(--q-serif); font-size: 30px; font-weight: 600; color: var(--q-rose-2); line-height: 1.1; }
.pstq-bigprice span { font-size: 14px; opacity: .9; }
.pstq-table tfoot tr.pstq-dep td { font-size: 14px; font-weight: 600; color: var(--q-choco-2); }
.pstq-actions--left { justify-content: flex-start; margin-top: 18px; }
.pstq-accept-msg { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; font-size: 14px; }
.pstq-accept-msg.is-ok { background: #DCEBE2; color: #2F5E45; }
.pstq-accept-msg.is-error { background: #FBEAE7; color: var(--q-err); }
.pstq-share { margin-top: 14px !important; }
@media (max-width: 900px) {
    .pstq-nextsteps { grid-template-columns: 1fr; }
    .pstq-view-grid aside { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
    .pstq-view-grid aside .pstq-stage { grid-column: 1 / -1; }
    .pstq-example { margin: 0; }
    .pstq-view-grid aside .pstq-example:nth-child(2):last-child { grid-column: 1 / -1; justify-self: center; width: 62%; }
    .pstq-kv { grid-template-columns: 1fr; gap: 0; }
    .pstq-kv dt { margin-top: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
}

/* Calculando: el servidor tarda (el precio SIEMPRE lo da el motor) -> punto animado junto a la etiqueta. */
.pstq.is-calculating .pstq-price .pstq-price-label:first-child::after,
.pstq.is-calculating .pstq-mobilebar-price .pstq-price-label::after {
    content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%;
    background: var(--q-rose-2, #EFD3CF); vertical-align: middle; animation: pstq-pulse 1s ease-in-out infinite;
}
@keyframes pstq-pulse { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .pstq.is-calculating .pstq-price .pstq-price-label:first-child::after { animation: none; } }
