:root {
  color-scheme: light;
  --bg: #f3f5f1;
  --ink: #172218;
  --muted: #4b5b4e;
  --surface: #fff;
  --line: #dce4d8;
  --green: #c2e653;
  --deep: #293c20;
  --layout-gutter: 1.25rem;
  --card-padding: 1.1rem;
  --card-radius: .85rem;
  --control-height: 2.65rem;
  scrollbar-gutter: stable both-edges;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid #548200; outline-offset: 3px; }
.layout-width { max-width: 1140px; margin-inline: auto; padding-inline: var(--layout-gutter); }
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; min-height: 66px; padding-block: .65rem; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; font-size: 1.05rem; font-weight: 750; }
.brand img { display: block; width: 93px; height: auto; }
.brand-mark { position: relative; }
.brand-badge { padding: .25rem .55rem; border-radius: .38rem; background: #daf1e1; color: #102b3d; font-size: .86rem; line-height: 1.25; }
.tag { padding: .15rem .5rem; border-radius: .4rem; background: #eaf2d5; color: #344721; font-size: .75rem; font-weight: 750; letter-spacing: .07em; }
.account { display: flex; align-items: center; gap: .5rem; margin-inline-start: auto; min-width: 0; }
.account select { max-width: min(44vw, 250px); margin: 0; padding: .42rem .5rem; }
.shell { position: sticky; top: 0; z-index: 2; background: #fff; border-bottom: 1px solid var(--line); }
.nav { display: flex; flex-wrap: wrap; gap: .25rem; padding-block: .25rem; }
.nav button { border: 0; background: transparent; min-height: var(--control-height); padding: .52rem .75rem; border-radius: .45rem; color: var(--muted); font-weight: 650; }
.nav button[aria-current="page"] { background: #e9f2df; color: var(--ink); }
.content { padding-block: 2rem 3rem; min-width: 0; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(1.7rem, 5vw, 2.5rem); letter-spacing: -.04em; line-height: 1.12; margin-bottom: .55rem; overflow-wrap: anywhere; }
h2 { font-size: 1.125rem; margin-bottom: .85rem; }
h3 { font-size: 1rem; margin-bottom: .65rem; }
p, td, legend { overflow-wrap: break-word; }
.eyebrow { color: #4a602f; letter-spacing: .09em; text-transform: uppercase; font-size: .75rem; font-weight: 800; margin-bottom: .55rem; }
.muted { color: var(--muted); }
.card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--card-radius); padding: var(--card-padding); margin-block: 1rem; }
.card > :last-child { margin-bottom: 0; }
.login { max-width: 420px; margin: clamp(1rem, 7vh, 5rem) auto; padding: clamp(1.15rem, 5vw, 2rem); }
.login h1 { font-size: 1.95rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: .75rem; align-items: end; }
.grid > * { min-width: 0; }
.grid .wide { grid-column: 1 / -1; }
.grid .muted { margin: 0; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: .75rem; margin-block: 1rem; }
.metric { display: grid; align-content: start; gap: .2rem; margin: 0; text-align: left; color: var(--ink); font-size: .95rem; }
.metric strong { font-size: clamp(1.35rem, 3vw, 1.8rem); font-variant-numeric: tabular-nums; line-height: 1.2; overflow-wrap: anywhere; }
button.metric { width: 100%; }
button.metric:hover { border-color: #a7bd86; background: #f7faef; }
label { display: block; font-weight: 650; font-size: .9rem; }
input, select, textarea { display: block; width: 100%; min-height: var(--control-height); margin-top: .27rem; padding: .5rem .62rem; background: white; color: var(--ink); border: 1px solid #aebcac; border-radius: .42rem; min-width: 0; font-size: .95rem; font-weight: 400; }
.login label { margin-block: .8rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: var(--control-height); max-width: 100%; padding: .45rem .75rem; border: 1px solid transparent; border-radius: .45rem; color: #1b2a0c; background: var(--green); font-size: .95rem; font-weight: 750; line-height: 1.35; text-align: center; text-decoration: none; overflow-wrap: anywhere; }
.button:hover { filter: brightness(.94); }
.button:disabled { opacity: .6; cursor: wait; }
.button.quiet { background: #fff; border-color: var(--line); color: var(--deep); }
.login .button { width: 100%; margin-top: .4rem; }
.table-wrap { max-width: 100%; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: .66rem .5rem; }
th { color: var(--muted); font-size: .82rem; vertical-align: bottom; }
td { vertical-align: top; }
.table-label { display: none; }
.table-purchases :is(th,td):nth-last-child(-n + 2) { white-space: nowrap; }
.items td:nth-child(2) { min-width: 6.5rem; overflow-wrap: normal; }
td button { text-align: left; }
.meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-block: .75rem; color: var(--muted); }
.meta div { min-width: min(100%, 165px); }
dt { font-size: .8rem; font-weight: 700; }
dd { margin: 0; overflow-wrap: anywhere; }
.message:not(:empty) { position: fixed; bottom: 1rem; right: 1rem; left: auto; width: min(calc(100% - 2rem), 420px); padding: .7rem .85rem; background: #eaf2d9; color: #263f15; border: 1px solid #bbd397; border-radius: .55rem; box-shadow: 0 4px 12px #1423161c; }
.message[data-error="true"] { background: #fff1eb; border-color: #dfa996; color: #752d21; }
.commercial-section { margin-block: 1rem; }
#commercial-title { scroll-margin-top: 4.25rem; }
.commercial-section fieldset { min-width: 0; margin: 0 0 1rem; padding: var(--card-padding); border: 1px solid var(--line); border-radius: var(--card-radius); }
.commercial-section fieldset > .grid + .grid,
.commercial-section fieldset > .grid + .commercial-actions { margin-top: .75rem; }
.commercial-section legend { padding-inline: .3rem; font-weight: 750; overflow-wrap: anywhere; }
.commercial-section fieldset p { margin-bottom: .45rem; }
.material-composition { margin-block: .85rem; }
.commercial-section .component-row { padding: .85rem; background: #f8faf5; }
.commercial-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; min-width: 0; }
.table-wrap + p + .commercial-actions { margin-top: .85rem; }
.commercial-actions select { width: auto; max-width: 100%; margin: 0; }
.commercial-proposal th:not(:first-child), .commercial-proposal td:not(:first-child) { white-space: nowrap; }
.commercial-total { margin: 1rem 0; }
.commercial-summary { border-top: 1px solid var(--line); padding-top: .75rem; }
.commercial-summary dd { color: var(--ink); font-weight: 700; }
.stock-number { white-space: nowrap; }
.window-sketch { width: 12rem; max-width: 100%; margin: .4rem 0; break-inside: avoid; }
.window-sketch svg { display: block; width: 100%; height: auto; }
.window-sketch figcaption { font-size: .75rem; white-space: normal; }
.obra-document-print { display: none; }
.company-profile fieldset { min-width: 0; margin: 0 0 1rem; padding: var(--card-padding); border: 1px solid var(--line); border-radius: var(--card-radius); }
.company-profile legend { padding-inline: .3rem; font-weight: 750; }
.proposal-company { display: flex; flex-wrap: wrap; align-items: start; gap: .75rem 1.25rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); break-inside: avoid; }
.proposal-company > div { flex: 1 1 18rem; min-width: 0; }
.proposal-company .company-logo { margin: 0; }
.proposal-company p { margin: 0 0 .25rem; overflow-wrap: anywhere; }
.proposal-company-name { font-size: 1.35rem; font-weight: 750; }
.proposal-reference { break-inside: avoid; }
.entry-navigation { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.15rem; margin-inline-start: auto; font-weight: 650; }
.entry-navigation a:not(.button), .entry-link, .entry-back a { text-underline-offset: .2em; }
.entry-page.layout-width { max-width: none; padding: 0; }
.topbar:has(.entry-navigation:not([hidden])) { background: #11191c; color: #f6f9fa; border-color: #33464b; }
.topbar:has(.entry-navigation:not([hidden])) .topbar-inner, .entry-hero > .layout-width { max-width: 1440px; }
.topbar:has(.entry-navigation:not([hidden])) .brand img { width: clamp(104px, 12vw, 158px); }
.topbar:has(.entry-navigation:not([hidden])) .brand-badge { font-size: 1rem; }
.topbar:has(.entry-navigation:not([hidden])) .brand-mark::after {
  /* The crop ends in the gap before ON, preserving the original green. */
  content: ""; position: absolute; inset: 0; background: url("logotipo.png") center / contain no-repeat;
  filter: brightness(0) invert(1); clip-path: inset(0 41.5% 0 0);
}
.entry-navigation a:not(.button) { text-decoration: none; }
.entry-navigation a:not(.button):hover { text-decoration: underline; }
.entry-navigation .button { background: transparent; color: inherit; border-color: #9caaad; }
.entry-hero, .entry-signup { padding-block: clamp(2rem, 6vw, 5.5rem); }
.entry-signup { background: #e9f0e5; border-block: 1px solid var(--line); }
.entry-hero {
  --hero-accent: #b5e54a;
  background-color: #141e22;
  background-image: linear-gradient(90deg, #141e22 34%, #141e2200 90%),
    repeating-linear-gradient(0deg, #a5c9d00d 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, #a5c9d00d 0 1px, transparent 1px 24px);
  color: #f6f9fa;
}
.entry-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(1rem, 5vw, 4.25rem); }
.entry-hero .entry-split { grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); }
.entry-hero h1 { font-size: clamp(2.15rem, 4.7vw, 4.45rem); line-height: 1.04; max-width: 15ch; text-wrap: balance; }
.entry-hero .eyebrow { color: var(--hero-accent); }
.entry-hero :is(.entry-lead, .entry-note) { color: #c1cdd0; }
.entry-hero .entry-lead { font-size: clamp(1rem, 1.6vw, 1.3rem); margin-block: 1.05rem 1.4rem; }
.entry-update { max-width: 43ch; border-left: 3px solid var(--hero-accent); padding: .6rem .85rem; margin: 0 0 1.25rem; background: #ffffff12; color: #e3edf0; font-size: .94rem; line-height: 1.5; }
.entry-update strong { color: #f7fcf3; }
.entry-hero .button { background: var(--hero-accent); padding-inline: 1rem; }
:is(.entry-hero, .topbar:has(.entry-navigation:not([hidden]))) :focus-visible { outline-color: #b5e54a; }
.entry-page h2 { font-size: clamp(1.55rem, 3.5vw, 2.4rem); line-height: 1.15; letter-spacing: -.035em; }
.entry-page h3 { font-size: 1.2rem; }
.entry-lead { max-width: 40ch; color: var(--muted); font-size: 1.08rem; }
.entry-link { font-weight: 700; }
.entry-note { color: var(--muted); font-size: .86rem; margin: .75rem 0 0; }
.entry-section { padding-block: clamp(1.8rem, 5vw, 4.25rem); }
.entry-tabs { margin-bottom: 1rem; }
.entry-tabs [aria-pressed="true"] { background: var(--green); border-color: #a7c744; }
.entry-screen { gap: 1rem 2rem; align-items: center; }
.entry-screen p { color: var(--muted); margin-bottom: 0; }
.entry-demo { background: #fff; border: 1px solid #b8cab2; border-radius: var(--card-radius); overflow: hidden; box-shadow: 0 12px 32px #24452112; }
.entry-demo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem .75rem; padding: .72rem .9rem; background: #243923; color: #fff; }
.entry-demo-bar span { color: #deedda; font-size: .78rem; }
.entry-demo-content { padding: clamp(.85rem, 3vw, 1.5rem); }
.entry-hero-demo { background: #172327; border-color: #4e6269; box-shadow: 0 20px 52px #060d1180; }
.entry-hero-demo .entry-demo-bar { background: #111b1f; border-bottom: 1px solid #3b4d53; padding-block: 0; }
.entry-hero-demo .entry-demo-bar strong { padding-block: .7rem; }
.entry-hero-demo h2 { font-size: clamp(1.35rem, 2.4vw, 2rem); margin-bottom: .3rem; }
.entry-demo-modules { display: flex; flex-wrap: wrap; gap: 0 clamp(.6rem, 2vw, 1.4rem); list-style: none; margin: 0; padding: 0; color: #c1cdd0; font-size: .86rem; }
.entry-demo-modules li { padding-block: .55rem; border-bottom: 2px solid transparent; }
.entry-demo-modules li:first-child { border-color: var(--hero-accent); color: #f6f9fa; font-weight: 700; }
.entry-demo-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; }
.entry-demo-meta p { margin: 0; color: #c1cdd0; }
.entry-demo-meta .tag { background: #263621; color: #d5f484; letter-spacing: 0; }
.entry-demo-sections { border-bottom: 1px solid #3b4d53; margin-top: .6rem; }
.entry-drawing {
  padding: .75rem .25rem .25rem;
  background-image: repeating-linear-gradient(0deg, #a5c9d011 0 1px, transparent 1px 18px),
    repeating-linear-gradient(90deg, #a5c9d011 0 1px, transparent 1px 18px);
}
.entry-drawing .window-sketch { width: min(100%, 29rem); margin: 0 auto; text-align: center; color: #c1cdd0; }
.entry-dimensions { stroke: var(--hero-accent); }
.entry-dimension-labels { fill: #f6f9fa; font-weight: 650; }
.entry-example-list { margin: 0; }
.entry-example-list div { display: grid; grid-template-columns: minmax(5.5rem, .6fr) minmax(0, 1fr); align-items: baseline; gap: .75rem; border-top: 1px solid var(--line); padding-block: .45rem; }
.entry-example-list dt { color: var(--muted); }
.entry-example-list dd { font-size: .9rem; font-weight: 650; }
.entry-steps { margin: 1.25rem 0 0; padding-left: 1.35rem; }
.entry-steps li + li { margin-top: .45rem; }
.entry-form { margin: 0; padding: clamp(1rem, 4vw, 1.8rem); box-shadow: 0 8px 24px #2445210d; }
.entry-form label, .entry-pdv-link { margin-bottom: .75rem; }
.entry-pdv-link summary { cursor: pointer; font-size: .87rem; color: var(--deep); }
.entry-pdv-link label { margin-block: .5rem 0; }
.entry-form button { width: 100%; }
.entry-feedback:empty { margin: 0; }
.entry-feedback:not(:empty) { background: #edf5e7; padding: .6rem .75rem; border-radius: .4rem; }
.entry-feedback[data-error="true"] { background: #fff1eb; color: #752d21; }
.entry-customer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1.25rem; margin: 0; }
.entry-customer h2 { font-size: 1.35rem; margin-bottom: .25rem; }
.entry-customer p { margin-bottom: 0; }
.entry-back { margin-top: .8rem; text-align: center; font-size: .9rem; }
@media (max-width: 700px) {
  .entry-split, .entry-hero .entry-split { grid-template-columns: minmax(0, 1fr); }
  .entry-navigation { margin-inline-start: 0; gap: .4rem .8rem; }
}
@media print {
  body.printing-obra-document > :not(main), body.printing-obra-document main > :not(.obra-document-print) { display: none !important; }
  body.printing-obra-document .obra-document-print { display: block; color: #111; background: #fff; }
  body.printing-obra-document .table-wrap { overflow: visible; }
  body.printing-obra-document tr { break-inside: avoid; }
  body:has(.commercial-proposal) > :not(main), main:has(.commercial-proposal) > :not(.commercial-section),
  .commercial-section > :not(.commercial-proposal), .commercial-internal { display: none !important; }
  .content, .commercial-section, .commercial-proposal { background: #fff; color: #111; border: 0; margin: 0; padding: 0; }
  .commercial-proposal .table-wrap { overflow: visible; }
  .commercial-proposal tr { break-inside: avoid; }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media screen and (max-width: 1100px) {
  .responsive-table.table-wrap { overflow: visible; }
  .responsive-table table, .responsive-table tbody, .responsive-table tr { display: block; }
  .responsive-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .responsive-table tbody { display: grid; gap: .75rem; }
  .responsive-table tr { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: .65rem; padding: .8rem; border: 1px solid var(--line); border-radius: .6rem; }
  .responsive-table td { min-width: 0; border: 0; padding: 0; white-space: normal !important; overflow-wrap: anywhere; }
  .responsive-table td:has(details) { grid-column: 1 / -1; }
  .table-label { display: block; color: var(--muted); font-size: .82rem; font-weight: 700; }
}
@media screen and (max-width: 540px) {
  :root { --layout-gutter: .8rem; --card-padding: .9rem; scrollbar-gutter: stable; }
  .topbar-inner { gap: .5rem; }
  .account { margin-inline-start: 0; }
  .shell { position: static; }
  .content { padding-block: 1.4rem 2rem; }
  .nav button { padding: .45rem .55rem; }
}
.pilot-checkbox { display: flex; gap: .6rem; align-items: center; }
.pilot-checkbox input { width: 1rem; min-width: 1rem; margin: 0; }

.operation-tabs { display: flex; flex-wrap: wrap; gap: .45rem; margin-block: 1rem; }
.operation-tabs .button { white-space: normal; }
.operation-action { margin-block: .75rem; }
.operation-action > summary { cursor: pointer; width: fit-content; white-space: normal; }
.operation-action > summary::-webkit-details-marker { display: none; }
.operation-action[open] > summary { background: var(--green); }
.operation-action[open] > summary:not(:last-child) { margin-bottom: .75rem; }
.operation-action [data-obra-document] { margin-top: .85rem; }
.quotation-items { min-width: 0; margin: .85rem 0; padding: .75rem; border: 1px solid var(--line); border-radius: .6rem; }
.quotation-items label + label { margin-top: .5rem; }
.quotation-items legend { padding-inline: .3rem; font-weight: 700; }
.quotation-items input { min-height: 1rem; }
.operation-action .grid { margin-top: .8rem; }
.operation-action .grid input[type="hidden"], .grid input[type="hidden"] { display: none; }
td .operation-action { margin: 0; }
td .operation-action > summary { white-space: nowrap; }
td .operation-action[open] { min-width: min(100%, 12rem); }
td .grid { grid-template-columns: 1fr; }
.company-logo { display: block; max-width: 180px; max-height: 90px; object-fit: contain; margin-bottom: .75rem; }
[data-form="orcamento"] > label { max-width: 15rem; margin-block: .9rem; }
