/* Bolt Services · formulario de cotización */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(242, 242, 239, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; }
.top-zone { padding-left: 18px; border-left: 1px solid var(--line); font-size: 10.5px; }
.top-actions { margin-left: auto; display: flex; gap: 10px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink-deep); color: #fff; padding: 76px 0 168px; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 34px 34px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 78% 45%, #000 10%, transparent 72%);
          mask-image: radial-gradient(ellipse 60% 80% at 78% 45%, #000 10%, transparent 72%);
  opacity: .55;
}
.hero-in { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero-eyebrow { display: flex; align-items: center; gap: 14px; color: var(--amber); font-weight: 500; font-size: 14.5px; }
.rule { width: 28px; height: 1px; background: var(--amber); }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); margin: 22px 0 24px; }
.hero h1 span { color: #6E6F71; }
.lede { color: rgba(255, 255, 255, .72); max-width: 520px; font-size: 17px; line-height: 1.6; }
.hero-meta { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 12px 26px; font-size: 14px; color: rgba(255, 255, 255, .82); }
.hero-meta li { display: flex; align-items: center; gap: 9px; }
.hero-meta svg { width: 17px; height: 17px; color: var(--amber); }
.rv { animation: rise .9s var(--ease-out) both; animation-delay: calc(var(--i) * 110ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.hero-art { position: relative; }
.hero-art svg { width: 100%; max-width: 460px; margin-left: auto; }
.bp-lines path { stroke: rgba(255, 255, 255, .62); stroke-width: 1.4; }
.bp-dims path { stroke: var(--amber); stroke-width: 1.2; }
.bp-text text { fill: var(--amber-soft); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s var(--ease) forwards; animation-delay: var(--d); }
.draw--slow { animation-duration: 1.5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.fade { opacity: 0; animation: fadeIn .8s var(--ease) forwards; animation-delay: var(--d); }
@keyframes fadeIn { to { opacity: 1; } }
.bp-mark circle { fill: var(--amber); }
.bp-mark .pulse { fill: none; stroke: var(--amber); stroke-width: 1.2; transform-origin: 220px 232px; animation: pulse 2.4s var(--ease) infinite 2.6s; }
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(4.2); opacity: 0; } }
.bp-caption { text-align: right; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .45); margin-top: 8px; }

/* ---------- layout ---------- */
.shell { position: relative; z-index: 2; display: grid; grid-template-columns: 282px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: -104px; padding-bottom: 96px; }
.side { position: sticky; top: 92px; display: grid; gap: 14px; }
.side-card { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 20px 20px 16px; box-shadow: var(--shadow); }

/* stepper */
.stepper-wrap { position: relative; margin-top: 14px; }
.stepper-wrap::before, .stepper-fill { content: ''; position: absolute; left: 13px; top: 22px; width: 1px; }
.stepper-wrap::before { bottom: 22px; background: var(--line-strong); }
.stepper-fill { height: 0; background: var(--amber); transition: height .7s var(--ease-out); z-index: 1; }
.stepper { list-style: none; margin: 0; padding: 0; position: relative; z-index: 2; }
.st { display: flex; gap: 13px; align-items: flex-start; width: 100%; padding: 8px 0; background: none; border: 0; text-align: left; }
.st-dot {
  position: relative; width: 27px; height: 27px; flex: none; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line-strong);
  font-family: var(--mono); font-size: 11.5px; color: var(--slate);
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.st-dot svg { position: absolute; width: 12px; height: 12px; stroke-dasharray: 14; stroke-dashoffset: 14; transition: stroke-dashoffset .4s var(--ease-out) .1s; }
.st-n { transition: opacity .2s; }
.st-label { display: block; font-size: 14.5px; font-weight: 500; line-height: 1.3; padding-top: 3px; transition: color .2s; }
.st-sub { display: block; font-size: 12.5px; color: var(--slate); line-height: 1.35; }
.st.is-active .st-dot { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 0 0 4px rgba(201, 150, 42, .22); }
.st.is-done .st-dot { background: var(--amber); border-color: var(--amber); color: var(--ink-deep); }
.st.is-done .st-n { opacity: 0; }
.st.is-done .st-dot svg { stroke-dashoffset: 0; }
.st.is-active.is-done .st-dot { background: var(--ink); border-color: var(--ink); color: #fff; }
.st.is-active.is-done .st-n { opacity: 1; }
.st.is-active.is-done .st-dot svg { stroke-dashoffset: 14; }
.st:disabled { cursor: default; }
.st:disabled .st-label { color: var(--slate); }
.st:not(:disabled):not(.is-active):hover .st-label { color: var(--amber); }

/* precisión */
.prec-top { display: flex; align-items: center; gap: 14px; }
.ring { position: relative; width: 64px; height: 64px; flex: none; }
.ring svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring-bg { stroke: var(--bone-dim); }
.ring-fg { stroke: var(--amber); stroke-linecap: round; stroke-dasharray: 169.65; stroke-dashoffset: 169.65; transition: stroke-dashoffset .9s var(--ease-out), stroke .4s; }
.ring-val { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 17px; }
.ring-val b { font-weight: 600; }
.ring-val small { font-size: 10px; margin-left: 1px; color: var(--slate); }
.ring-val { grid-auto-flow: column; justify-content: center; align-items: center; }
.prec .eyebrow { font-size: 10px; letter-spacing: .14em; }
.prec-tier { font-family: var(--display); font-weight: 600; font-size: 18px; margin-top: 3px; transition: color .3s; }
.prec-hint { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--slate); line-height: 1.45; }
.prec-hint b { color: var(--ink); font-weight: 500; }

.side-help { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 4px; background: var(--ink-deep); color: #fff; text-decoration: none; font-size: 13.5px; transition: transform .2s var(--ease), background .2s; }
.side-help:hover { background: var(--ink-mid); transform: translateY(-1px); }
.side-help svg { width: 22px; height: 22px; color: var(--amber); flex: none; }
.side-help b { display: block; font-weight: 500; }
.side-help span { color: rgba(255, 255, 255, .7); }

/* ---------- card ---------- */
.card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); }
.card-progress { height: 3px; background: var(--bone-dim); border-radius: 4px 4px 0 0; overflow: hidden; }
.card-progress span { display: block; height: 100%; width: 0; background: var(--amber); transition: width .7s var(--ease-out); }
.card-head { padding: 36px 44px 6px; }
.card-head h2 { font-size: clamp(26px, 3vw, 34px); margin: 10px 0 10px; outline: none; }
.card-desc { color: var(--slate); max-width: 620px; font-size: 15.5px; }
.mprec { display: none; }

.draft { display: flex; align-items: center; gap: 12px; margin: 22px 44px 0; padding: 10px 10px 10px 14px; background: var(--amber-tint); border: 1px solid rgba(201, 150, 42, .35); border-radius: 4px; font-size: 14px; animation: rise .5s var(--ease-out); }
.draft svg { width: 18px; height: 18px; color: var(--amber); flex: none; }
.draft p { flex: 1; }

.steps { padding: 4px 44px 30px; }
.step { display: none; }
.step.is-active { display: block; }

.sec { padding: 28px 0 4px; }
.sec + .sec { margin-top: 18px; border-top: 1px solid var(--line); }
.sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.sec-num { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 6px; border: 1px solid rgba(201, 150, 42, .55); border-radius: 2px; font-family: var(--mono); font-size: 11.5px; color: #8A6413; background: var(--amber-tint); }
.sec-num--alt { color: var(--slate); border-color: var(--line-strong); background: var(--bone); }
.sec-title { font-size: 19px; }
.sec-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; padding: 12px 14px; background: var(--bone); border-left: 2px solid var(--amber); font-size: 13.5px; line-height: 1.5; }
.sec-note svg { width: 17px; height: 17px; color: var(--amber); flex: none; margin-top: 1px; }

.grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px 16px; }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-6 { grid-column: span 6; }
.field { min-width: 0; border: 0; margin: 0; padding: 0; }
.field.is-off { display: none; }
.field.reveal { animation: reveal .45s var(--ease-out); }
@keyframes reveal { from { opacity: 0; transform: translateY(-8px); } }
.lbl { display: block; font-size: 14px; font-weight: 500; margin-bottom: 9px; padding: 0; line-height: 1.35; }
.req { color: var(--amber); margin-left: 3px; font-weight: 600; }
.hint { font-size: 13px; color: var(--slate); margin-top: 8px; line-height: 1.45; }
.err { display: none; align-items: flex-start; gap: 6px; font-size: 13px; color: var(--danger); margin-top: 8px; }
.err svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.has-error .err { display: flex; animation: reveal .3s var(--ease-out); }
.has-error .input { border-color: var(--danger); background: var(--danger-tint); }
.has-error .chip-box, .has-error .ocard-box { border-color: rgba(180, 70, 47, .55); }
.sec.is-dim .grid > .field:not([data-wrap="sin_medidas"]) { opacity: .42; transition: opacity .35s var(--ease); }
.sec .grid > .field { transition: opacity .35s var(--ease); }

/* number + unit */
.unit-input { position: relative; }
.unit-input .input { padding-right: 46px; }
.unit { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 13px; color: var(--slate); pointer-events: none; }

/* stepper numérico */
.num-stepper { display: flex; }
.num-stepper .input { text-align: center; border-radius: 0; border-left: 0; border-right: 0; padding: 0 4px; min-width: 0; }
.ns-btn { width: 44px; flex: none; border: 1px solid var(--line-strong); background: var(--bone); font-size: 18px; line-height: 1; transition: background .15s, color .15s; }
.ns-btn:first-child { border-radius: var(--r) 0 0 var(--r); }
.ns-btn:last-child { border-radius: 0 var(--r) var(--r) 0; }
.ns-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.ns-btn:active { transform: scale(.94); }

/* moneda */
.money { display: flex; }
.seg { display: flex; border: 1px solid var(--line-strong); border-right: 0; border-radius: var(--r) 0 0 var(--r); overflow: hidden; }
.seg button { padding: 0 13px; border: 0; background: var(--bone); font-family: var(--mono); font-size: 12.5px; color: var(--slate); transition: background .2s, color .2s; }
.seg button.is-on { background: var(--ink); color: #fff; }
.money .input { border-radius: 0 var(--r) var(--r) 0; font-variant-numeric: tabular-nums; }

/* tarjetas de tipo de obra */
.opt-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ocard { position: relative; display: block; }
.ocard input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.ocard-box {
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 108px; padding: 16px;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 4px;
  transition: border-color .2s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), transform .2s var(--ease);
}
.ocard-box svg { width: 30px; height: 30px; color: var(--slate); transition: color .25s var(--ease), transform .35s var(--ease-out); }
.ocard-label { font-size: 14.5px; font-weight: 500; line-height: 1.25; }
.ocard:hover .ocard-box { border-color: var(--ink); }
.ocard:hover .ocard-box svg { transform: translateY(-2px); color: var(--ink); }
.ocard input:active ~ .ocard-box { transform: scale(.985); }
.ocard input:focus-visible ~ .ocard-box { outline: 2px solid var(--amber); outline-offset: 2px; }
.ocard input:checked ~ .ocard-box { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink), 0 10px 24px -14px rgba(26, 27, 29, .45); background: var(--amber-tint); }
.ocard input:checked ~ .ocard-box svg { color: var(--amber); transform: translateY(-2px); }
.ocard-check { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; transform: scale(0); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); pointer-events: none; }
.ocard-check svg { width: 10px; height: 10px; }
.ocard input:checked ~ .ocard-check { transform: scale(1); }

.otro { margin-top: 10px; max-width: 420px; }
.otro.is-off { display: none; }
.otro:not(.is-off) { animation: reveal .35s var(--ease-out); }

.count { font-family: var(--mono); font-size: 11.5px; color: var(--slate); text-align: right; margin-top: 6px; transition: color .2s; }
.count.is-ok { color: var(--ok); }

/* archivos */
.drop { display: block; border: 1.5px dashed var(--line-strong); border-radius: 4px; padding: 32px 20px; text-align: center; background: var(--bone); cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease); }
.drop:hover { border-color: var(--ink); }
.drop.is-over { border-color: var(--amber); background: var(--amber-tint); transform: scale(1.006); }
.drop-icon { width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; transition: transform .3s var(--ease-out); }
.drop-icon svg { width: 22px; height: 22px; color: var(--amber); }
.drop:hover .drop-icon { transform: translateY(-3px); }
.drop.is-over .drop-icon { animation: bob .9s var(--ease) infinite; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.drop-title { font-weight: 500; font-size: 15px; }
.drop-title span { color: var(--slate); font-weight: 400; }
.drop-title u { color: var(--ink); text-decoration-color: var(--amber); text-underline-offset: 3px; }
.drop-sub { font-size: 11.5px; color: var(--slate); margin-top: 6px; letter-spacing: .02em; }
.files { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.files:empty { display: none; }
.file { position: relative; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--paper); }
.file.is-new { animation: pop .4s var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: scale(.92); } }
.file-thumb { position: relative; aspect-ratio: 4 / 3; background: var(--bone-dim); display: grid; place-items: center; overflow: hidden; }
.file-thumb img, .file-thumb video { width: 100%; height: 100%; object-fit: cover; }
.file-ext { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); padding: 6px 9px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--paper); }
.file-badge { position: absolute; left: 6px; bottom: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(26, 27, 29, .78); color: #fff; display: grid; place-items: center; }
.file-badge svg { width: 12px; height: 12px; }
.file-meta { padding: 7px 9px 8px; display: grid; gap: 1px; }
.file-name { font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-size { font-family: var(--mono); font-size: 10.5px; color: var(--slate); }
.file-x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(26, 27, 29, .78); color: #fff; display: grid; place-items: center; opacity: 0; transform: scale(.85); transition: opacity .2s, transform .2s var(--ease-out), background .2s; }
.file-x svg { width: 12px; height: 12px; }
.file:hover .file-x, .file-x:focus-visible { opacity: 1; transform: none; }
.file-x:hover { background: var(--danger); }
.file-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; overflow: hidden; }
.file-bar span { display: block; height: 100%; width: 0; background: var(--amber); }
.file[data-st="uploading"] .file-bar span { width: 40%; animation: indet 1s var(--ease) infinite; }
.file[data-st="done"] .file-bar span { width: 100%; background: var(--ok); transition: width .3s; }
.file[data-st="error"] .file-bar span { width: 100%; background: var(--danger); }
@keyframes indet { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@media (hover: none) { .file-x { opacity: 1; transform: none; } }
.guide { margin-top: 16px; }
.guide .hint { margin-top: 0; }
.guide-list { list-style: none; padding: 0; margin: 9px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.guide-list li { display: flex; align-items: center; gap: 7px; font-size: 12.5px; padding: 5px 11px 5px 9px; border-radius: 99px; background: var(--bone); border: 1px solid var(--line); }
.guide-list li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }

/* revisión */
.rv-summary { display: flex; align-items: center; gap: 14px; margin: 26px 0 16px; padding: 14px 16px; border-radius: 4px; background: var(--ink-deep); color: #fff; font-size: 14px; }
.rv-summary b { font-family: var(--display); font-size: 22px; color: var(--amber); font-weight: 600; }
.rv-summary span { color: rgba(255, 255, 255, .75); }
.rv-list { display: grid; gap: 12px; }
.rv-sec { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; animation: rise .5s var(--ease-out) both; animation-delay: calc(var(--i) * 55ms); }
.rv-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; background: var(--bone); }
.rv-head h3 { font-size: 15.5px; display: flex; align-items: center; gap: 10px; }
.rv-head h3 .mono { font-size: 11px; color: var(--amber); font-weight: 500; letter-spacing: .06em; }
.rv-edit { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; font-size: 13px; font-weight: 500; padding: 6px 8px; border-radius: 2px; color: var(--ink); }
.rv-edit:hover { background: rgba(46, 46, 46, .07); }
.rv-edit svg { width: 14px; height: 14px; }
.rv-sec dl { display: grid; grid-template-columns: minmax(130px, 36%) minmax(0, 1fr); margin: 0; padding: 4px 16px 10px; }
.rv-sec dt, .rv-sec dd { padding: 8px 0; border-bottom: 1px solid var(--line); }
.rv-sec dt { font-size: 13px; color: var(--slate); padding-right: 14px; }
.rv-sec dd { margin: 0; font-size: 14.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.rv-sec dt:nth-last-child(2), .rv-sec dd:last-child { border-bottom: 0; }
.rv-empty { padding: 12px 16px; color: var(--slate); font-size: 13.5px; }
.consent-wrap { margin-top: 22px; }
.consent { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--line-strong); border-radius: 4px; cursor: pointer; font-size: 14px; line-height: 1.5; transition: border-color .2s, background .2s; }
.consent:hover { border-color: var(--ink); }
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cbox { width: 20px; height: 20px; flex: none; border: 1.5px solid var(--line-strong); border-radius: 3px; display: grid; place-items: center; margin-top: 1px; transition: all .2s var(--ease-out); }
.cbox svg { width: 12px; height: 12px; stroke-dasharray: 14; stroke-dashoffset: 14; transition: stroke-dashoffset .3s var(--ease-out); }
.consent input:checked + .cbox { background: var(--ink); border-color: var(--ink); color: var(--amber); }
.consent input:checked + .cbox svg { stroke-dashoffset: 0; }
.consent input:focus-visible + .cbox { outline: 2px solid var(--amber); outline-offset: 2px; }
.consent:has(input:checked) { border-color: var(--ink); background: var(--bone); }
.has-error .consent { border-color: var(--danger); background: var(--danger-tint); }

/* footer de la card */
.card-foot { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 16px 44px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 0 0 4px 4px; }
#prev.is-hidden { visibility: hidden; }
#next { min-width: 150px; }
.autosave { margin: 0 auto; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--slate); text-align: center; }
.autosave .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.autosave.is-saving .dot { background: var(--amber); animation: blink .8s var(--ease) infinite; }
@keyframes blink { 50% { opacity: .25; } }

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

/* enviando */
.sending { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(255, 255, 255, .9); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); border-radius: 4px; animation: fadeIn .25s var(--ease) both; opacity: 0; }
.sending[hidden] { display: none; }
.sending-in { text-align: center; padding: 24px; position: sticky; top: 40vh; }
.sending-in > svg { width: 120px; margin: 0 auto 16px; }
.sending .loop { stroke: var(--amber); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: loop 2.2s var(--ease) infinite; }
@keyframes loop { 0% { stroke-dashoffset: 1; } 55% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
.sending-title { font-family: var(--display); font-weight: 600; font-size: 20px; }

.sending.is-fallback { position: fixed; z-index: 60; border-radius: 0; background: rgba(26, 27, 29, .6); padding: 16px; overflow-y: auto; place-items: safe center; }
.sending.is-fallback .sending-in { position: static; background: var(--paper); border-radius: 4px; padding: 32px 24px; box-shadow: var(--shadow); max-width: 540px; animation: rise .4s var(--ease-out); }
.fallback { max-width: 480px; margin: 0 auto; display: grid; gap: 12px; justify-items: center; }
.fallback .eyebrow { color: var(--danger); }
.fallback h3 { font-size: 22px; }
.fallback .done-actions { margin-top: 8px; }

/* éxito */
.card.is-sent .card-head, .card.is-sent .steps, .card.is-sent .card-foot, .card.is-sent .draft { display: none; }
.done { padding: 60px 44px 52px; text-align: center; }
.done-mark { width: 84px; height: 84px; margin: 0 auto 22px; }
.done-mark circle { fill: var(--amber-tint); stroke: var(--amber); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .8s var(--ease) forwards .1s; }
.done-mark path { stroke: var(--ink); stroke-width: 3.2; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .5s var(--ease-out) forwards .75s; }
.done h2 { font-size: clamp(26px, 3.2vw, 36px); margin: 12px auto 12px; max-width: 620px; }
.done .card-desc { margin: 0 auto; }
.done > * { animation: rise .7s var(--ease-out) both; }
.done > :nth-child(2) { animation-delay: .5s; } .done > :nth-child(3) { animation-delay: .6s; } .done > :nth-child(4) { animation-delay: .7s; }
.done > :nth-child(5) { animation-delay: .8s; } .done > :nth-child(6) { animation-delay: .95s; } .done > :nth-child(7) { animation-delay: 1.05s; }
.done-mark { animation: none !important; }
.ref-box { display: inline-flex; align-items: center; gap: 14px; margin: 28px 0 8px; padding: 10px 10px 10px 18px; border: 1px dashed var(--amber); background: var(--amber-tint); border-radius: 4px; }
.ref-box .eyebrow { font-size: 10px; }
.ref-box b { font-family: var(--mono); font-size: 21px; letter-spacing: .08em; font-weight: 500; }
.ref-hint { font-size: 12.5px; color: var(--slate); }
.next-steps { list-style: none; padding: 0; margin: 36px auto 0; max-width: 780px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; text-align: left; border: 1px solid var(--line); border-radius: 4px; }
.next-steps li { padding: 18px 18px 20px; }
.next-steps li + li { border-left: 1px solid var(--line); }
.next-steps .mono { font-size: 11px; color: var(--amber); letter-spacing: .1em; }
.next-steps h3 { font-size: 16px; margin: 8px 0 6px; }
.next-steps p { font-size: 13.5px; color: var(--slate); line-height: 1.5; }
.done-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* ---------- footer ---------- */
.foot { background: var(--ink-deep); color: rgba(255, 255, 255, .62); padding: 34px 0; font-size: 13.5px; }
.foot-in { display: flex; align-items: center; gap: 20px 28px; flex-wrap: wrap; }
.foot .logo { height: 24px; opacity: .9; }
.foot-contact { margin-left: auto; display: flex; gap: 10px; font-size: 12.5px; }
.foot a { text-decoration: none; color: #fff; }
.foot a:hover { color: var(--amber-soft); }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .shell { grid-template-columns: minmax(0, 1fr); margin-top: -96px; }
  .side { display: none; }
  .mprec { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-family: var(--mono); font-size: 11.5px; color: var(--slate); }
  .mprec-bar { flex: 1; max-width: 220px; height: 4px; border-radius: 4px; background: var(--bone-dim); overflow: hidden; }
  .mprec-bar i { display: block; height: 100%; width: 0; background: var(--amber); transition: width .7s var(--ease-out); }
}
@media (max-width: 860px) {
  .hero { padding: 48px 0 136px; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top-in { height: 60px; gap: 12px; }
  .top-zone, .top-mail { display: none; }
  .logo { height: 26px; }
  .hero { padding: 40px 0 120px; }
  .hero-meta { gap: 10px 18px; font-size: 13.5px; }
  .shell { margin-top: -84px; padding-bottom: 56px; }
  .card-head { padding: 26px 20px 4px; }
  .steps { padding: 0 20px 24px; }
  .draft { margin: 18px 20px 0; flex-wrap: wrap; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .span-2 { grid-column: span 1; }
  .span-3, .span-4, .span-6 { grid-column: span 2; }
  [data-wrap="largo"], [data-wrap="ancho"], [data-wrap="profundidad"] { grid-column: span 1; }
  [data-wrap="cocinas"] { grid-column: span 1; }
  [data-wrap="cuit"], [data-wrap="localidad"], [data-wrap="contacto"] { grid-column: span 2; }
  .opt-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ocard-box { min-height: 96px; padding: 14px; }
  .chip-box { min-height: 40px; font-size: 14px; }
  .card-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); gap: 8px; }
  .autosave { display: none; }
  #prev { padding: 0 12px; }
  #next { flex: 1; min-width: 0; }
  .rv-sec dl { grid-template-columns: 1fr; }
  .rv-sec dt { border-bottom: 0; padding-bottom: 0; }
  .rv-sec dt:nth-last-child(2) { border-bottom: 0; }
  .done { padding: 44px 20px 40px; }
  .next-steps { grid-template-columns: 1fr; }
  .next-steps li + li { border-left: 0; border-top: 1px solid var(--line); }
  .ref-box { flex-wrap: wrap; justify-content: center; padding: 12px 14px; }
  .foot-contact { margin-left: 0; flex-wrap: wrap; }
}
