:root {
  font: 100%/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #202629;
  background: #f4f5f6;
  --ink: #202629;
  --muted: #555e64;
  --line: #d9dfe2;
  --red: #ac192b;
  --yellow: #ffc329;
  --green: #156044;
}

*, *::after, *::before { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button:not(:disabled) { cursor: pointer; }
a { color: var(--red); text-underline-offset: .17em; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible,
select:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid #9e1430; outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
main { padding-bottom: 1rem; }

.sq-wrap { width: min(100% - 1.75rem, 69rem); margin-inline: auto; }
.sq-site-header { position: sticky; top: 0; z-index: 20; padding-block: .6rem; background: #fff; }
.sq-site-header__bar { width: min(100% - 1.5rem, 82.5rem); min-height: 4rem; margin-inline: auto; display: flex; align-items: center; gap: 1.25rem; border-block: 1px solid #ccc; }
.sq-site-logo { flex: 0 0 auto; display: block; }
.sq-site-logo img { display: block; width: 120px; height: auto; }
.sq-site-menu { display: flex; align-items: center; flex: 1; gap: 1rem; }
.sq-site-menu ul { padding: 0; margin: 0; list-style: none; }
.sq-site-menu .sq-site-menu__list { display: flex; flex: 1; justify-content: center; gap: clamp(.45rem, 1.3vw, 1.4rem); }
.sq-site-menu__list > li { display: flex; align-items: center; position: relative; }
.sq-site-menu__list > li > a, .sq-site-menu__cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #151719;
  text-decoration: none;
  font-size: .84rem;
  font-weight: 750;
  letter-spacing: .075em;
}
.sq-site-menu__list > li > a { text-transform: uppercase; }
.sq-site-menu a:hover, .sq-site-menu a:focus-visible { color: var(--red); }
.sq-site-menu__cta { justify-content: center; padding: .55rem 1rem; border-radius: .33rem; background: var(--yellow); white-space: nowrap; }
.sq-site-menu-toggle, .sq-site-submenu summary {
  display: inline-grid;
  min-height: 44px;
  place-items: center;
  color: #151719;
  background: none;
  border: 0;
  cursor: pointer;
}
.sq-site-menu-toggle { display: none; width: 44px; margin-left: auto; font-size: 1.4rem; }
.sq-site-submenu summary { width: 28px; list-style: none; font-size: .65rem; }
.sq-site-submenu summary::-webkit-details-marker { display: none; }
.sq-site-submenu[open] summary i { transform: rotate(180deg); }
.sq-site-submenu ul { position: absolute; top: 100%; left: 0; min-width: 13rem; max-width: 18rem; padding: .35rem; border: 1px solid var(--line); border-radius: .42rem; background: #fff; box-shadow: 0 8px 24px #15191c18; }
.sq-site-submenu a { display: block; padding: .6rem .75rem; color: var(--ink); font-size: .89rem; font-weight: 650; text-decoration: none; }
#sq-wizard { scroll-margin-top: 6.25rem; }
#sq-count { margin-left: .3rem; color: var(--red); }
.sq-hero { display: grid; overflow: hidden; margin: 1rem 0; border-radius: .9rem; background: #191e21; color: #fff; }
.sq-hero > div { padding: clamp(1.25rem, 4vw, 2.8rem); align-self: center; }
.sq-eyebrow { color: var(--yellow); font-size: .85rem; font-weight: 750; margin-bottom: .55rem; }
.sq-hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.08; letter-spacing: -.035em; margin-bottom: .65rem; }
.sq-hero p:last-child { color: #e0e5e8; margin-bottom: 0; max-width: 36rem; }
.sq-hero img { width: 100%; height: clamp(9rem, 31vw, 14rem); object-fit: cover; object-position: center 57%; }
.sq-card { padding: clamp(1rem, 3vw, 2.15rem); background: #fff; border: 1px solid var(--line); border-radius: .85rem; }
.sq-progress { border-bottom: 1px solid var(--line); margin-bottom: 1.55rem; padding-bottom: .9rem; }
.sq-progress > div { display: flex; justify-content: space-between; align-items: center; gap: .5rem .75rem; color: var(--muted); font-size: .9rem; font-weight: 650; }
.sq-progress__top { flex-wrap: wrap; }
.sq-progress__top button { font-size: .82rem; }
.sq-progress__track { margin: .55rem 0 .75rem; }
.sq-progress progress { display: block; flex: 1; width: 100%; height: .55rem; accent-color: var(--red); border: 0; border-radius: 1rem; overflow: hidden; background: #edf0f2; }
.sq-progress progress::-webkit-progress-bar { background: #edf0f2; }
.sq-progress progress::-webkit-progress-value { background: var(--red); }
.sq-progress nav { display: flex; flex-wrap: wrap; gap: .1rem .8rem; }
.sq-progress nav button { background: none; border: 0; padding: .35rem 0; color: var(--muted); font-size: .83rem; }
.sq-progress nav button[aria-current] { color: var(--red); font-weight: 750; }
.sq-progress nav button:disabled { opacity: .62; }
.sq-panel-title { font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.18; letter-spacing: -.025em; margin-bottom: .4rem; }
.sq-help { color: var(--muted); margin: 0 0 1rem; }
.sq-equip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin-bottom: 1.2rem; }
.sq-choice { min-width: 0; display: grid; grid-template-columns: 1.05rem minmax(0, 1fr); align-content: start; align-items: center; gap: .45rem; border: 1px solid var(--line); border-radius: .55rem; padding: .65rem; cursor: pointer; }
.sq-choice:has(input:checked) { border-color: var(--red); background: #fff7f7; }
.sq-choice img, .sq-choice__icon { grid-column: 1 / -1; display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: .35rem; }
.sq-choice img { object-fit: cover; }
.sq-choice__icon { display: grid; place-items: center; background: #eef0f2; color: #555e64; font-size: 1.55rem; }
.sq-choice span { font-weight: 700; font-size: .88rem; }
.sq-choice input, .sq-check input { width: 1rem; height: 1rem; margin: 0; accent-color: var(--red); }
.sq-fields { display: grid; gap: .9rem 1rem; }
.sq-field { min-width: 0; }
.sq-field > label { display: block; font-size: .92rem; font-weight: 700; margin-bottom: .32rem; }
.sq-field small { display: block; color: var(--muted); margin-top: .2rem; }
.sq-field input:not([type="checkbox"]), .sq-field textarea, .sq-field select {
  min-width: 0; width: 100%; padding: .65rem .7rem; min-height: 44px; border-radius: .4rem; border: 1px solid #b5bec4; background: #fff; color: var(--ink);
}
.sq-field textarea { min-height: 5.25rem; resize: vertical; }
.sq-field input:disabled { background: #eef0f2; }
.sq-field [aria-invalid="true"] { border-color: var(--red) !important; }
.sq-check { display: flex; gap: .55rem; align-items: start; color: var(--ink); font-size: .9rem; margin: .55rem 0; }
.sq-check input { flex: 0 0 auto; margin-top: .12rem; }
.sq-block { min-width: 0; margin: 1rem 0; padding: .85rem; border: 1px solid var(--line); border-radius: .55rem; }
.sq-block legend { font-weight: 750; padding-inline: .35rem; }
details.sq-block > summary { font-weight: 750; cursor: pointer; padding-block: .2rem; }
details.sq-block > div { margin-top: 1rem; }
.sq-button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; padding: .48rem .85rem; border: 1px solid transparent; border-radius: .42rem; font-weight: 720; text-decoration: none; color: var(--ink); text-align: center; }
.sq-button--primary { background: var(--yellow); }
.sq-button--plain { background: #fff; border-color: #bfc7cc; }
.sq-button--whatsapp { background: var(--green); color: #fff; }
.sq-button:hover:not(:disabled) { filter: brightness(.94); }
.sq-button:disabled { opacity: .6; }
.sq-controls, .sq-actions, .sq-draft { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.sq-controls { justify-content: space-between; margin-top: 1.5rem; }
.sq-controls #sq-next { margin-left: auto; }
.sq-draft { border-top: 1px solid var(--line); padding-top: .85rem; margin-top: 1.2rem; column-gap: 1rem; }
.sq-text-button { padding: .25rem 0; border: 0; color: var(--red); background: none; text-decoration: underline; text-underline-offset: .16em; font-weight: 650; }
.sq-draft span, .sq-footer, .sq-status { font-size: .85rem; color: var(--muted); }
.sq-status { margin: .45rem 0 0; }
.sq-error { padding: .65rem .75rem; border-left: 3px solid var(--red); background: #fff0f1; color: #861324; margin: .75rem 0; }
.sq-notice { border-left: 3px solid #d79b08; background: #fff8e7; padding: .65rem .8rem; margin: .8rem 0; }
.sq-summary { width: 100%; min-height: 10rem; max-height: 24rem; padding: .8rem; color: var(--ink); border: 1px solid var(--line); border-radius: .45rem; background: #fafbfc; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.sq-result { display: grid; gap: 1rem; }
.sq-result h3 { margin: 0; }
.sq-attachments, .sq-history-items { padding-left: 1.35rem; }
.sq-attachments li { overflow-wrap: anywhere; margin-block: .3rem; }
.sq-attachments button { margin-inline-start: .55rem; }
.sq-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .3rem 1rem; padding: .75rem 0 1.65rem; }
.sq-footer > div { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.sq-dialog { width: min(100% - 2rem, 33rem); max-height: 90dvh; border: 1px solid var(--line); border-radius: .8rem; padding: clamp(1rem, 3vw, 1.5rem); color: var(--ink); }
.sq-dialog::backdrop { background: #172024a0; }
.sq-dialog__head { display: flex; align-items: start; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.sq-dialog__head h2 { margin: 0; line-height: 1.15; }
.sq-map { margin-top: .7rem; }
.sq-map__viewport { position: relative; overflow: hidden; width: 100%; height: 18rem; margin: .5rem 0; background: #e6ebe8; border: 1px solid var(--line); border-radius: .45rem; cursor: crosshair; }
.sq-map__tile { position: absolute; width: 256px; height: 256px; pointer-events: none; }
.sq-map__pin { position: absolute; pointer-events: none; color: #a30e2b; font-size: 1.65rem; transform: translate(-50%, -100%); text-shadow: 0 1px 3px #fff; }
.sq-map__message { margin-bottom: .45rem; color: var(--muted); font-size: .87rem; }

@media (max-width: 991px) {
  .sq-site-header { padding-block: .3rem; border-bottom: 1px solid var(--line); }
  .sq-site-header__bar { flex-wrap: wrap; justify-content: space-between; border: 0; }
  .sq-site-header--ready .sq-site-menu-toggle { display: inline-grid; }
  .sq-site-header--ready .sq-site-menu { display: none; position: absolute; inset: 100% 0 auto; max-height: calc(100dvh - 75px); overflow: auto; padding: .55rem .9rem 1rem; border-bottom: 1px solid var(--line); box-shadow: 0 8px 24px #15191c18; }
  .sq-site-header--ready .sq-site-menu.is-open { display: flex; }
  .sq-site-menu { width: 100%; flex: 0 0 100%; flex-direction: column; align-items: stretch; gap: .45rem; background: #fff; }
  .sq-site-menu .sq-site-menu__list { display: block; }
  .sq-site-menu__list > li { display: grid; grid-template-columns: minmax(0, 1fr) min-content; border-bottom: 1px solid var(--line); }
  .sq-site-submenu { display: contents; }
  .sq-site-submenu summary { width: 44px; font-size: .85rem; }
  .sq-site-submenu ul { grid-column: 1 / -1; position: static; max-width: none; border: 0; border-radius: 0; box-shadow: none; }
}

@media (min-width: 620px) {
  .sq-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sq-field--wide { grid-column: 1 / -1; }
  .sq-equip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sq-choice span { font-size: .98rem; }
}
@media (min-width: 850px) {
  .sq-hero { grid-template-columns: 1.2fr 1fr; margin-block: 1.4rem; }
  .sq-hero img { height: 100%; max-height: 20rem; }
  .sq-equip-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media print {
  .sq-site-header, .sq-hero, .sq-footer, .sq-progress, .sq-controls, .sq-draft, .sq-actions, .sq-status { display: none; }
  .sq-card { border: 0; padding: 0; }
}
