/* CMA · Cotización contextual, formulario y ventana modal. */
html.cma-modal-open,html.cma-modal-open body{overflow:hidden;overscroll-behavior:none}
.quote-contact-card{position:relative;border-top:4px solid #1c1f23}
.quote-widget{color:#1c1f23;text-align:left;min-width:0}
.quote-widget *, .quote-dialog *{box-sizing:border-box}
.quote-form-heading .eyebrow{font-size:9px!important;letter-spacing:.08em;margin-bottom:18px!important;color:#636973}
.quote-heading-row{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.quote-heading-row h3{font-size:31px;line-height:1.12;letter-spacing:-.045em;margin:0;outline:none}
.quote-step-count{font:10px/1.7 ui-monospace,Consolas,monospace;color:#6a727b;padding-top:4px;white-space:nowrap}
.quote-form-intro{font-size:13px;line-height:1.7;color:#5d6570;margin-top:13px}
.quote-progress{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:23px 0 25px;padding:0;list-style:none}
.quote-progress li{display:flex;align-items:center;gap:9px;padding:0 0 13px;border-bottom:2px solid #e5e8eb;font-size:11px;color:#727982;font-weight:700;line-height:1.3}
.quote-progress li>span{width:25px;height:25px;display:grid;place-items:center;border:1px solid #d6dce1;color:#6b727c;font:9px/1 ui-monospace,Consolas,monospace;background:#fff}
.quote-progress li.is-current,.quote-progress li.is-complete{border-color:var(--red);color:#232a31}
.quote-progress li.is-current>span,.quote-progress li.is-complete>span{border-color:var(--red);background:var(--red);color:#fff}
.quote-form fieldset{margin:0;padding:0;border:0;min-width:0}
.quote-form legend,.quote-field>label{font-size:12px;font-weight:700;line-height:1.5;letter-spacing:-.01em;color:#282f37;margin-bottom:9px;padding:0}
.quote-form legend>span,.quote-field>label>span:not(.quote-optional){color:var(--red)}
.quote-service-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.quote-service-choice-wide{grid-column:1/-1}
.quote-modal-brand-image{display:block;width:112px;height:auto;max-width:100%}
.quote-service-choice{position:relative;display:flex;gap:10px;align-items:center;justify-content:flex-start;min-height:59px;padding:12px 13px;border:1px solid #d9dee4;border-radius:3px;background:#fff;color:#4a525c;font-size:12px;font-weight:700;cursor:pointer;box-shadow:0 2px 0 #eff1f3;transition:border-color .2s,background .2s,color .2s,box-shadow .2s}
.quote-service-choice .icon{width:23px;height:23px;color:#727c87;flex:none}
.quote-service-choice input{position:absolute;width:1px;height:1px;opacity:0;margin:0}
.quote-service-choice:hover{border-color:#aeb6c0;background:#fafbfc}
.quote-service-choice.is-selected{border-color:var(--red);background:#fff5f5;color:#a71b27;box-shadow:0 2px 0 #edbbc0}
.quote-service-choice.is-selected .icon{color:var(--red)}
.quote-service-choice:focus-within{outline:2px solid var(--red);outline-offset:3px}
.quote-field{margin-top:19px;min-width:0}
.quote-field>label{display:flex;gap:5px;align-items:center;flex-wrap:wrap}
.quote-optional{font-size:10px!important;font-weight:400;color:#626d78;margin-left:auto}
.quote-field input,.quote-field textarea,.quote-field select{display:block;width:100%;max-width:100%;min-width:0;min-height:47px;background:#f7f8f9;border:1px solid #dce1e6;border-radius:3px;padding:12px 13px;font:400 14px/1.5 Roboto,Arial,sans-serif;color:#232a32;box-shadow:inset 0 1px 2px rgba(24,32,40,.025);transition:border-color .2s,box-shadow .2s,background .2s}
.quote-field textarea{min-height:110px;resize:vertical;max-height:300px}
.quote-field input::placeholder,.quote-field textarea::placeholder{color:#69737f;opacity:1}
.quote-field input:focus,.quote-field textarea:focus,.quote-field select:focus{outline:none;border-color:var(--red);background:#fff;box-shadow:0 0 0 3px rgba(206,32,46,.09)}
.quote-field [aria-invalid=true]{border-color:#b81727;background:#fff8f8}
.quote-field-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
.quote-field-meta{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-top:7px;color:#6e7680;font-size:10px;line-height:1.6}
.quote-field-meta>span:last-child{white-space:nowrap;font:9px/1.8 ui-monospace,Consolas,monospace}
.quote-field-error{font-size:11px;line-height:1.6;margin:7px 0 0;color:#ad1525;font-weight:700}
.quote-attachment-note{display:flex;gap:10px;align-items:flex-start;background:#f4f5f6;border-left:2px solid #b4bdc6;padding:12px 13px;margin-top:20px;color:#59636d;font-size:11px;line-height:1.7}
.quote-attachment-note .icon{width:18px;height:18px;flex:none;margin-top:1px}
.quote-form-actions{display:flex;align-items:center;justify-content:flex-end;gap:16px;margin-top:24px;padding-top:20px;border-top:1px solid #e5e8eb}
.quote-widget .quote-form-actions .button{flex:1;justify-content:center;min-height:50px;font-size:13px;gap:13px;text-align:center;padding:14px 19px}
.quote-back-button,.quote-edit-button{background:none;color:#59636e;font-size:12px;font-weight:700;min-height:44px;padding:8px 0;white-space:nowrap}
.quote-back-button:hover,.quote-edit-button:hover{color:var(--red)}
.quote-form-footnote{font-size:10px;line-height:1.6;color:#68717a;text-align:center;margin-top:15px}
.quote-project-pill{display:flex;align-items:center;gap:9px;background:#f3f5f6;border:1px solid #e3e6e9;padding:11px 12px;font-size:11px;line-height:1.4;color:#454f58}
.quote-project-pill>.icon{width:17px;height:17px;color:var(--red)}
.quote-project-pill>button{margin-left:auto;background:transparent;color:var(--red);font-size:11px;font-weight:700;padding:5px;min-height:30px}
.quote-consent-wrap{margin-top:21px}
.quote-consent{display:flex;align-items:flex-start;gap:11px;font-size:11px;line-height:1.8;color:#5a646e;cursor:pointer}
.quote-consent input{width:17px;height:17px;flex:none;accent-color:var(--red);margin:3px 0 0}
.quote-consent a{color:#a81725;text-decoration:underline;text-underline-offset:3px}
.quote-validation-summary{margin-top:15px;padding:10px 13px;border-left:3px solid #b81727;background:#fff2f3;font-size:11px;color:#951324;line-height:1.6}
.quote-direct-options{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;column-gap:14px;border-top:1px solid #e6e9ec;padding-top:14px;margin-top:22px}
.quote-direct-options .quote-direct-link{font-size:10px;min-height:38px;gap:7px}
.quote-direct-options .quote-direct-link .icon{width:16px;height:16px}
.quote-direct-options .copy-email{width:auto;min-height:38px;font-size:10px;margin:0;gap:6px}
.quote-direct-options .copy-email .icon{width:14px;height:14px}
.quote-inline-notice{font-size:11px;line-height:1.7;color:#526170;margin:0}
.quote-inline-notice:not(:empty){margin-top:10px}
.quote-ready-icon{display:grid;place-items:center;background:#f5f6f7;border:1px solid #dfe4e8;width:54px;height:54px;box-shadow:0 3px 0 #e4e8ed;color:var(--red);margin-bottom:19px}
.quote-ready-icon .icon{width:27px;height:27px}
.quote-ready h4{font-size:25px;line-height:1.15;letter-spacing:-.035em;margin:0 0 13px;color:#20272e;outline:none}
.quote-ready>p:not(.quote-copy-status){font-size:13px;line-height:1.8;color:#5a6470}
.quote-recipient{display:flex;align-items:center;gap:13px;padding:16px 0;margin-top:14px;border-block:1px solid #e3e7eb}
.quote-recipient>.icon{width:22px;height:22px;color:var(--red)}
.quote-recipient span{display:block;font:8px/1.7 ui-monospace,Consolas,monospace;letter-spacing:.1em;color:#6e7780;margin-bottom:3px}
.quote-recipient strong{font-size:13px;font-weight:700;color:#26303a;overflow-wrap:anywhere}
.quote-review{margin:19px 0}
.quote-review summary{cursor:pointer;font-size:11px;line-height:1.6;font-weight:700;color:#596572;padding-block:5px}
.quote-review textarea{margin-top:12px;width:100%;padding:13px;min-height:180px;max-height:320px;resize:vertical;border:1px solid #dce2e7;background:#f6f8f9;border-radius:2px;color:#394450;font:12px/1.7 Roboto,Arial,sans-serif}
.quote-ready-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.quote-widget .quote-ready-actions .button{justify-content:center;font-size:12px;gap:10px;min-height:48px;flex:1;padding:13px 16px}
.quote-copy-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #d8dee4;background:#fff;min-height:48px;padding:12px;font-size:11px;font-weight:700;color:#4d5964}
.quote-copy-button .icon{width:16px;height:16px}
.quote-copy-button:hover{background:#f5f7f8;border-color:#a8b4bd}
.quote-whatsapp{display:inline-flex;align-items:center;gap:8px;font-size:11px;font-weight:700;color:#1c6551;min-height:42px;margin-top:8px}
.quote-whatsapp .icon{width:19px;height:19px}
.quote-copy-status{font-size:11px;color:#495969;line-height:1.7;min-height:18px;margin-top:13px}
.quote-edit-button{font-size:11px}

/* Ventana nativa: por encima del robot, con foco contenido y cierre con Escape. */
.quote-dialog{width:min(1090px,calc(100% - 48px));max-width:none;max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);margin:auto;padding:0;border:1px solid rgba(255,255,255,.35);border-radius:6px;background:#fff;color:#20272e;overflow:hidden;box-shadow:0 35px 100px rgba(0,0,0,.32);font-family:Roboto,Arial,sans-serif}
.quote-dialog:not([open]){display:none}
.quote-dialog[open]{display:block;animation:quote-appear .24s ease-out}
.quote-dialog::backdrop{background:rgba(10,15,21,.66);backdrop-filter:blur(6px)}
.quote-modal-shell{display:grid;grid-template-columns:minmax(0,.83fr) minmax(0,1.17fr);min-height:min(690px,calc(100dvh - 48px))}
.quote-modal-aside{display:flex;flex-direction:column;min-width:0;padding:35px 33px 29px;color:#fff;background:radial-gradient(ellipse at 0 100%,rgba(206,32,46,.13),transparent 60%),#1c2229;max-height:calc(100dvh - 48px);overflow:auto;scrollbar-width:thin;scrollbar-color:#5c656f #1c2229}
.quote-modal-brand{font-size:30px;font-weight:700;line-height:1;letter-spacing:-.06em;display:flex;align-items:center;gap:15px;margin-bottom:35px}
.quote-modal-brand>span{font-size:8px;line-height:1.7;letter-spacing:.1em;font-weight:400;max-width:115px;color:#b0b9c3;border-left:1px solid #4a545e;padding-left:14px}
.quote-modal-eyebrow{font:9px/1.7 ui-monospace,Consolas,monospace;letter-spacing:.12em;color:#ff7c85;margin-bottom:15px}
.quote-modal-context h2{font-size:clamp(31px,3.25vw,44px);line-height:1.05;letter-spacing:-.05em;margin:0 0 20px;outline:none}
.quote-modal-context h2>span{display:block}
.quote-modal-context h2>span:last-child{color:#b9c4cf}
.quote-modal-context>p:last-child{font-size:13px;line-height:1.8;color:#bdc5ce;max-width:320px}
.quote-modal-visual{position:relative;background:#eff1f2;border:1px solid #ccd2d7;box-shadow:4px 5px 0 #0f141a,0 17px 30px rgba(0,0,0,.26);margin:29px 4px 27px 0;aspect-ratio:1.62;overflow:hidden;transform:perspective(1000px) rotateY(-3deg) rotateX(2deg)}
.quote-modal-visual img{width:100%;height:100%;object-fit:contain;display:block}
.quote-modal-visual.is-photo img{object-fit:cover}
.quote-modal-visual figcaption{position:absolute;left:10px;bottom:10px;background:rgba(22,29,36,.87);color:#fff;padding:6px 8px;font:7px/1.5 ui-monospace,Consolas,monospace;letter-spacing:.055em}
.quote-modal-points{display:grid;gap:10px;padding:0;margin:0;list-style:none}
.quote-modal-points li{display:flex;align-items:flex-start;gap:10px;font-size:11px;line-height:1.6;color:#d2d8df}
.quote-modal-points .icon{width:15px;height:15px;flex:none;color:#ff7c85;margin-top:1px}
.quote-modal-signoff{font:8px/1.7 ui-monospace,Consolas,monospace;letter-spacing:.095em;color:#a5afb9;padding-top:30px;margin-top:auto;display:flex;align-items:center;gap:10px}
.quote-modal-signoff>span{width:7px;height:7px;background:var(--red)}
.quote-modal-main{min-width:0;padding:28px 34px 26px;background:#fff;max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c6ccd2 #fff}
.quote-modal-topline{display:flex;align-items:center;gap:10px;color:#737c86;font:8px/1.8 ui-monospace,Consolas,monospace;letter-spacing:.1em;border-bottom:1px solid #e4e8ec;padding:0 43px 15px 0;margin-bottom:25px}
.quote-modal-topline .icon{width:15px;height:15px;color:var(--red)}
.quote-modal-main .quote-heading-row h3{font-size:34px}
.quote-modal-main .quote-progress{margin-block:23px 24px}
.quote-modal-main .quote-direct-options{margin-top:23px}
.quote-close{position:absolute;z-index:10;right:15px;top:15px;width:40px;height:40px;display:grid;place-items:center;border:1px solid #dce2e7;border-radius:3px;background:#fff;color:#3c4854;box-shadow:0 3px 9px rgba(0,0,0,.04)}
.quote-close .icon{width:18px;height:18px}
.quote-close:hover{color:var(--red);border-color:var(--red);background:#fff8f8}
.quote-dialog :focus-visible{outline:2px solid var(--red);outline-offset:3px}
.quote-dialog .quote-service-choice input:focus-visible{outline:none}
@keyframes quote-appear{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:none}}
@media(min-width:900px){.contact-layout{align-items:start}}
@media(max-width:950px) and (min-width:761px){
  .quote-modal-shell{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}
  .quote-modal-aside{padding:30px 24px}
  .quote-modal-main{padding:27px 25px}
  .quote-modal-main .quote-heading-row h3{font-size:30px}
  .quote-modal-context h2{font-size:33px}
  .quote-service-choice{padding:11px 10px;gap:8px;font-size:11px}
}
@media(max-width:760px){
  .quote-dialog{width:calc(100% - 24px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);border-radius:6px}
  .quote-modal-shell{display:block;min-height:0;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain}
  .quote-modal-aside{max-height:none;padding:25px 25px 24px;overflow:visible}
  .quote-modal-brand{font-size:21px;margin-bottom:19px;gap:12px}
  .quote-modal-brand>span{font-size:7px;max-width:none}
  .quote-modal-eyebrow{font-size:8px;margin-bottom:10px}
  .quote-modal-context h2{font-size:31px;line-height:1.03;margin-bottom:0}
  .quote-modal-context h2>span:last-child{color:#c2ccd5}
  .quote-modal-context>p:last-child,.quote-modal-visual,.quote-modal-points,.quote-modal-signoff{display:none}
  .quote-modal-main{padding:26px 24px;max-height:none;overflow:visible}
  .quote-modal-topline{display:none}
  .quote-modal-main .quote-heading-row h3{font-size:29px}
  .quote-modal-main .quote-form-heading .eyebrow{display:none}
  .quote-close{right:12px;top:12px}
  .quote-field input,.quote-field textarea,.quote-field select{font-size:16px}
  .quote-field textarea{min-height:120px}
  .quote-form-actions{position:sticky;bottom:0;background:#fff;padding-bottom:12px;z-index:4}
  .quote-modal-main .quote-form-actions{padding-bottom:max(12px,env(safe-area-inset-bottom))}
  .quote-service-choice{min-height:57px;padding:12px 10px;gap:9px;font-size:12px}
  .quote-service-choice .icon{width:21px;height:21px}
  .quote-heading-row h3{font-size:30px}
  .quote-field-grid{gap:12px}
}
@media(max-width:390px){
  .quote-modal-main{padding-inline:20px}
  .quote-heading-row{gap:12px}
  .quote-heading-row h3,.quote-modal-main .quote-heading-row h3{font-size:27px}
  .quote-service-choice{font-size:11px;gap:7px}
  .quote-field-grid{grid-template-columns:1fr;gap:0}
  .quote-ready-actions{display:grid;grid-template-columns:1fr}
  .quote-widget .quote-ready-actions .button{width:100%}
}
@media(prefers-reduced-motion:reduce){
  .quote-dialog[open]{animation:none}
  .quote-modal-visual{transform:none}
  .quote-field input,.quote-field textarea,.quote-field select,.quote-service-choice{transition:none}
}
@media print{.quote-dialog,.quote-form-actions,.quote-ready-actions{display:none!important}}
