:root {
  --bg: #0b0b0c;
  --surface: #151518;
  --surface-2: #1c1c20;
  --line: #2b2b31;
  --text: #f4ece0;
  --muted: #9c968c;
  --accent: #d9bb8c;        /* crema gold */
  --accent-ink: #1a1408;
  --danger: #ff8a7a;
  --radius: 14px;
  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: radial-gradient(120% 60% at 50% 0%, #1d1a17 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(150px + var(--safe-b));
}
[hidden] { display: none !important; }
.sr-only { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* header */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: calc(10px + var(--safe-t)) 18px 10px;
  background: rgba(11,11,12,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.logo { height: 34px; width: auto; }
.top-title { display: flex; flex-direction: column; flex: 1; line-height: 1.15; }
.eyebrow { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--text); }
.prelim { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* progress */
.progress { padding: 14px 18px 0; max-width: 640px; margin: 0 auto; }
.progress-meta { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.progress-meta #stepName { color: var(--accent); }
.bar { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; width: 14%; background: linear-gradient(90deg, #a88a5e, var(--accent)); border-radius: 4px; transition: width .35s ease; }

main { max-width: 640px; margin: 0 auto; padding: 8px 18px 24px; }
.step { animation: fade .28s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
h1 { font-size: 26px; font-weight: 500; letter-spacing: .01em; margin: 18px 0 6px; }
h2 { font-size: 15px; font-weight: 600; margin: 22px 0 10px; letter-spacing: .02em; }
.lead { color: var(--muted); margin: 0 0 20px; }
.lead b, .lead strong { color: var(--text); font-weight: 600; }

/* fields */
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
fieldset.field { margin-bottom: 22px; }
label, legend { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text); padding: 0; }
.req { color: var(--accent); }
.opt { font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 4px; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=time], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 14px; min-height: 50px; outline: none; transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
input[type=date], input[type=time] { color-scheme: dark; }
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px; background-size: 6px 6px; background-repeat: no-repeat;
  padding-right: 36px;
}
textarea { resize: vertical; min-height: 64px; }
input::placeholder, textarea::placeholder { color: #5f5b55; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217,187,140,.18); }
.invalid input, .invalid select, input.invalid, select.invalid { border-color: var(--danger) !important; }
.error-msg { color: var(--danger); font-size: 13px; margin: 6px 0 0; }
.hint { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.hint.center { text-align: center; }
.row { display: flex; gap: 12px; }
.row .grow { flex: 1; min-width: 0; }
.row .pc { width: 112px; flex: none; }

/* chips (radio pills) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input, .card input, .opt-card input { position: absolute; opacity: 0; pointer-events: none; }
.chip { margin: 0; position: relative; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-weight: 500; font-size: 14px; cursor: pointer; transition: all .15s; user-select: none;
}
.chip.later span { border-style: dashed; color: var(--muted); }
.chip input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); border-style: solid; }
.chip input:focus-visible + span, .card input:focus-visible + span, .opt-card input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.invalid .chip span, .invalid .card span { border-color: rgba(255,138,122,.6); }

/* cards (radio rows) */
.cards { display: grid; gap: 8px; }
.card { margin: 0; position: relative; }
.card span {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 14px 46px; position: relative;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; transition: all .15s;
}
.card span::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  border-radius: 50%; border: 2px solid #4a4741; transition: all .15s;
}
.card b { font-weight: 600; font-size: 15px; }
.card small { color: var(--muted); font-size: 13px; font-weight: 400; }
.card.later span { border-style: dashed; }
.card input:checked + span { border-color: var(--accent); background: #1f1b15; }
.card input:checked + span::before { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px #1f1b15; }

.callout { background: #1f1b15; border: 1px solid #4a3d29; border-radius: var(--radius); padding: 14px 16px; margin: -6px 0 22px; }
.callout p { margin: 0 0 10px; font-size: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; margin: 0; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); margin: 1px 0 0; flex: none; }
.check.invalid span { color: var(--danger); }

/* services accordion */
.svc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 10px; overflow: hidden; }
.svc[open] { border-color: #3a3630; }
.svc summary { list-style: none; cursor: pointer; padding: 15px 16px; display: flex; align-items: center; gap: 10px; }
.svc summary::-webkit-details-marker { display: none; }
.svc summary::after { content: "+"; font-size: 20px; color: var(--muted); margin-left: 4px; transition: transform .2s; }
.svc[open] summary::after { transform: rotate(45deg); }
.svc-title { flex: 1; min-width: 0; }
.svc-title b { display: block; font-weight: 600; font-size: 15px; }
.svc-title small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc-sel { font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.svc-body { padding: 0 12px 14px; }
.svc-note { color: var(--muted); font-size: 12.5px; margin: -4px 4px 10px; }
.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt-card { margin: 0; position: relative; }
.opt-card span {
  display: flex; flex-direction: column; justify-content: center; min-height: 58px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); cursor: pointer; transition: all .15s; height: 100%;
}
.opt-card span b { font-size: 14px; font-weight: 600; }
.opt-card span i { font-style: normal; color: var(--accent); font-size: 14px; margin-top: 2px; }
.opt-card.none span { min-height: 0; color: var(--muted); }
.opt-card.none span b { font-weight: 500; }
.opt-card input:checked + span { border-color: var(--accent); background: #262016; }
.opt-card.none input:checked + span { border-color: #4a4741; background: var(--surface-2); }
.opt-card.full { grid-column: 1 / -1; }
.extra { display: flex; align-items: center; gap: 10px; padding: 12px 12px; margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); cursor: pointer; }
.extra input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; flex: none; }
.extra .x-label { flex: 1; font-size: 14px; font-weight: 500; }
.extra .x-label small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.extra i { font-style: normal; color: var(--accent); font-size: 14px; white-space: nowrap; }
.qty-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.qty-row.on { border-color: var(--accent); background: #262016; }
.qty-row .x-label { flex: 1; font-size: 14px; font-weight: 500; }
.qty-row .x-label small { display: block; color: var(--accent); font-weight: 400; font-size: 12.5px; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.stepper button { width: 40px; height: 40px; border: 0; background: transparent; color: var(--text); font-size: 20px; cursor: pointer; }
.stepper button:active { background: var(--line); }
.stepper button.is-disabled { opacity: .3; cursor: not-allowed; }
.stepper button.is-disabled:active { background: transparent; }
.qty-hint { margin: 6px 0 0 4px; color: var(--muted); font-size: 11.5px; line-height: 1.35; text-wrap: balance; }
.stepper output { min-width: 26px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.svc-hint { font-size: 12.5px; color: var(--accent); margin: 10px 4px 0; }

/* alternatives */
.alts { margin-top: 6px; }
.alt { display: grid; grid-template-columns: auto 1fr 1fr auto; gap: 8px; align-items: center; margin-bottom: 10px; }
.alt input, .alt select { min-height: 46px; padding: 10px; font-size: 15px; }
.alt-n { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* buttons */
button { font-family: inherit; }
.primary-btn, .ghost-btn {
  min-height: 50px; padding: 0 22px; border-radius: 999px; font-size: 15px; font-weight: 600; letter-spacing: .03em; cursor: pointer; transition: transform .08s, opacity .15s;
}
.primary-btn { background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); }
.ghost-btn { background: transparent; color: var(--text); border: 1px solid var(--line); }
.primary-btn:active, .ghost-btn:active { transform: scale(.98); }
.primary-btn.small { min-height: 36px; padding: 0 14px; font-size: 13px; }
.wide { width: 100%; margin-top: 12px; }
.link-btn { background: none; border: 0; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 8px 4px; }
.icon-btn { background: none; border: 0; color: var(--muted); font-size: 16px; width: 36px; height: 36px; cursor: pointer; }

/* bottom nav */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 10px 18px calc(12px + var(--safe-b));
  background: rgba(11,11,12,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255,255,255,.06);
}
.nav > * { max-width: 604px; margin-left: auto; margin-right: auto; }
.estimate { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 4px 10px; }
.estimate span { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.estimate small { text-transform: none; letter-spacing: 0; }
.estimate b { font-size: 22px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.estimate.bump b { animation: bump .3s ease; }
@keyframes bump { 50% { transform: scale(1.08); } }
.nav-btns { display: flex; gap: 10px; }
.nav-btns .ghost-btn { flex: 0 0 34%; }
.nav-btns .primary-btn { flex: 1; }
.nav-btns .ghost-btn:disabled { opacity: .35; }

/* review */
.rv { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; }
.rv-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.rv-head h3 { margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.rv-head button { background: none; border: 0; color: var(--muted); font-size: 13px; text-decoration: underline; cursor: pointer; padding: 4px; }
.rv dl { margin: 0; display: grid; grid-template-columns: minmax(90px, 34%) 1fr; gap: 6px 12px; font-size: 14px; }
.rv dt { color: var(--muted); }
.rv dd { margin: 0; word-break: break-word; white-space: pre-line; }
.rv .lines { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.rv .lines li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.rv .lines li:last-child { border-bottom: 0; }
.rv .lines li b { font-weight: 600; white-space: nowrap; }
.total-card { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px; padding: 16px; margin: 14px 0 6px; border-radius: var(--radius); background: linear-gradient(135deg, #241e15, #17140f); border: 1px solid #4a3d29; }
.total-card span { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.total-card b { font-size: 28px; color: var(--accent); font-weight: 600; }
.total-card small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }

.done { text-align: center; padding-top: 30px; }
.done img { opacity: .9; }
.done .link-btn { display: block; margin: 10px auto 0; }

.install-tip {
  position: fixed; left: 12px; right: 12px; bottom: calc(150px + var(--safe-b)); z-index: 40;
  display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; font-size: 13px;
  background: #221d16; border: 1px solid #4a3d29; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.5);
  max-width: 600px; margin: 0 auto;
}
.install-tip span { flex: 1; }

@media (min-width: 560px) {
  h1 { font-size: 30px; }
  .opt-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* preview mode (?preview=1) */
.preview-badge { color: #1a1408 !important; background: #e0a84a; padding: 2px 7px; border-radius: 4px; align-self: flex-start; margin-top: 3px; font-weight: 700; }
.preview-nav { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.preview-nav::-webkit-scrollbar { display: none; }
.preview-nav button {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px 0 6px;
  border: 1px dashed #6b5a3e; border-radius: 999px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.preview-nav button i { font-style: normal; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: var(--text); font-size: 11px; }
.preview-nav button.on { border-style: solid; border-color: #e0a84a; color: var(--text); }
.preview-nav button.on i { background: #e0a84a; color: #1a1408; }

/* email step + "booking as" line */
.cc-toggle { margin: -6px 0 14px; padding-left: 0; font-weight: 600; color: var(--accent); text-decoration: none; }
.booking-as { margin: 16px 0 -8px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; }
.booking-as b { color: var(--text); font-weight: 600; word-break: break-all; }
.booking-as .link-btn { padding: 4px 2px; color: var(--accent); }

/* step 1 greeting */
.hola { font-size: 50px; font-weight: 300; line-height: 1.05; letter-spacing: .02em; color: var(--text); margin: 26px 0 8px; }
.warm { font-size: 18px; color: var(--accent); margin: 0 0 28px; letter-spacing: .01em; }
.email-explain { margin-top: 6px; font-size: 14px; }
@media (min-width: 560px) { .hola { font-size: 58px; } }

/* page 1: book / quote choice */
.mode-choice { margin-top: 26px; }
.mode-cards { grid-template-columns: 1fr 1fr; }
.mode-cards .card span { padding: 14px 14px 14px 42px; height: 100%; }
.mode-cards .card span::before { left: 14px; top: 18px; margin-top: 0; }
@media (max-width: 359px) { .mode-cards { grid-template-columns: 1fr; } }

/* step 2: address search + notes */
.places-field gmp-place-autocomplete { width: 100%; color-scheme: dark; display: block; }
.manual-toggle { padding-left: 0; margin-top: 4px; color: var(--accent); font-weight: 600; text-decoration: none; }
.switch-note { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 13px; color: var(--text); background: #2a2116; border: 1px solid #5a4528; }

/* step 3: pitch, extras */
.svc-pitch { margin: -8px 0 16px; padding: 12px 14px; border-left: 3px solid var(--accent); background: #17140f; border-radius: 0 10px 10px 0; font-size: 13.5px; color: var(--muted); }
.svc-pitch b { color: var(--text); font-weight: 600; }
#svcSwitchNote { margin: -6px 0 16px; }
.extras-wrap { border-style: dashed; }
.extras-wrap[open] { border-style: solid; }
.extras-count { font-size: 12px; font-weight: 700; color: var(--accent-ink); background: var(--accent); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.sub { padding: 4px 4px 14px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.sub:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 2px; }
.sub-head { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 4px 2px; }
.sub-head b { font-size: 15px; font-weight: 600; }
.sub .svc-note { margin: 0 4px 10px; }

/* preview: book / quote toggle */
.pv-modes { display: inline-flex; flex: none; border: 1px solid #6b5a3e; border-radius: 999px; overflow: hidden; margin-right: 4px; }
.preview-nav .pv-modes button { border: 0; border-radius: 0; padding: 0 12px; min-height: 34px; background: transparent; }
.preview-nav .pv-modes button.on { background: #e0a84a; color: #1a1408; }

/* section headings inside a single-choice grid (Premium photos: Daytime / Twilight) */
.opt-sec { grid-column: 1 / -1; margin: 8px 4px 0; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.opt-sec small { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 400; margin-left: 4px; }
