:root {
  color-scheme: light;
  --header-height: 94px;
  scroll-padding-top: calc(var(--header-height) + 12px);
  --ink: #292521;
  --muted: #625a4f;
  --charcoal: #23211e;
  --brown: #2d211b;
  --yellow: #ffc329;
  --yellow-hover: #f5ad16;
  --orange: #a64b13;
  --orange-dark: #873a0d;
  --line: #e7ddd0;
  --pale: #faf6ef;
  --warm: #fff0cd;
  --warm-border: #efcf91;
  --on-dark-muted: #e5dacc;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, figure, dl, dd { margin: 0; }
p { line-height: 1.65; }
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  border-bottom: 2px solid #af701d;
  background: linear-gradient(110deg, #392a22, var(--brown));
  color: var(--charcoal);
}
.site-header::before {
  position: absolute;
  inset-block: 14px 12px;
  inset-inline-end: clamp(52px, 12vw, 180px);
  width: min(60%, 580px);
  background:
    linear-gradient(var(--yellow), var(--yellow)) 7% 100% / 8% 29% no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) 22% 100% / 8% 44% no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) 37% 100% / 8% 36% no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) 52% 100% / 8% 59% no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) 67% 100% / 8% 51% no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) 82% 100% / 8% 70% no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) 97% 100% / 8% 88% no-repeat,
    repeating-linear-gradient(to top, #ffffff60 0 1px, transparent 1px 25%);
  mask-image: linear-gradient(90deg, transparent, #000 32%, #000 76%, transparent);
  opacity: .19;
  pointer-events: none;
  content: '';
}
.site-header :is(.brand, summary):focus-visible { outline-color: var(--yellow); }
.header-inner, .brand, .actions, .eyebrow {
  display: flex;
  align-items: center;
}
.header-inner { position: relative; z-index: 1; min-height: var(--header-height); justify-content: space-between; gap: 20px; }
.brand {
  flex-shrink: 0;
  gap: 10px;
  font-size: 1.45rem;
  font-weight: 850;
  letter-spacing: -.055em;
}
.header-inner .brand { font-size: clamp(1.6rem, 3.8vw, 2rem); }
.header-inner .brand :is(img, .brand-mark) { width: clamp(46px, 7vw, 56px); height: auto; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .brand-mark .roller-tread { animation: move-brand-tread .9s linear infinite; }
}
@keyframes move-brand-tread {
  to { stroke-dashoffset: -5px; }
}
.site-header .brand-name { color: #ff9a54; }
.site-header .brand-name span {
  color: var(--yellow);
  -webkit-text-stroke: 1.15px #634009;
  paint-order: stroke fill;
}
.brand-name { line-height: .95; }
.brand-name span { display: block; }
.site-menu { position: relative; }
.site-menu summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding-inline: 16px;
  border: 1px solid var(--warm-border);
  border-radius: 999px;
  background: #fffaf0;
  color: var(--charcoal);
  font-size: .9rem;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu summary:hover, .site-menu[open] summary {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--charcoal);
}
.menu-icon {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 -6px currentColor, 0 6px currentColor;
  color: var(--orange-dark);
}
.site-menu summary:hover .menu-icon, .site-menu[open] .menu-icon { color: inherit; }
.site-nav {
  position: absolute;
  z-index: 2;
  inset-block-start: calc(100% + 8px);
  inset-inline-end: 0;
  display: grid;
  width: min(220px, calc(100vw - 36px));
  max-height: calc(100dvh - var(--header-height));
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px #23211e24;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding-inline: 12px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 650;
  color: var(--muted);
}
.nav-link svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--orange-dark);
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--orange-dark); background: var(--warm); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 21px;
  min-height: 50px;
  border: 1px solid var(--yellow);
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}
.button:hover { background: var(--yellow-hover); border-color: var(--yellow-hover); }
.button-small { min-height: 42px; padding: 9px 14px; font-size: .875rem; }
.button-outline { background: #fff; border-color: #c08e45; color: var(--orange-dark); }
.button-outline:hover { background: var(--warm); border-color: var(--orange); }
.button:disabled { opacity: .6; cursor: default; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }

.hero { background: linear-gradient(115deg, #fffbf3, #fff0d6); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.07fr; gap: clamp(35px, 5.2vw, 82px); align-items: center; padding-block: 74px; }
.eyebrow { gap: 9px; color: var(--orange-dark); font-size: .82rem; font-weight: 800; letter-spacing: .095em; }
.eyebrow span { width: 17px; height: 3px; background: var(--yellow); border-radius: 6px; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.045em; }
h1 { margin-top: 17px; font-size: clamp(3rem, 5.3vw, 5.15rem); font-weight: 800; }
h1 em { color: var(--orange); font-style: normal; }
.hero h1 em { display: block; }
@media (min-width: 721px) {
  .hero h1 { font-size: clamp(2.15rem, 4.65vw, 4.65rem); }
}
.intro { color: var(--muted); font-size: 1.125rem; margin-top: 23px; max-width: 62ch; }
.actions { flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-copy .intro strong { color: var(--ink); font-weight: 750; }
.hero-copy .intro .hero-brand-word {
  padding: .02em .18em;
  border-radius: .16em;
  background: var(--muted);
  color: #fff;
  text-decoration: underline #ffc329af;
  text-decoration-thickness: .09em;
  text-underline-offset: .13em;
}
.hero-copy .intro .hero-brand-word:not(.hero-brand-word-obra) {
  background: #51493f;
  color: var(--yellow);
}
.hero-copy .intro .hero-brand-word-obra { text-decoration-color: #ffffffa6; }
.audience { display: flex; align-items: flex-start; gap: 8px; margin-top: 19px; color: var(--muted); font-size: .875rem; }
.audience svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--orange-dark);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.audience strong { color: var(--ink); }
.hero-visual {
  min-height: 410px;
  display: flex;
  align-items: center;
  padding: 22px;
  border-radius: 18px;
  background: #e8d5b5 url('/assets/excavacion.webp') center 40% / cover no-repeat;
  box-shadow: 0 18px 34px #23211e20;
}
.work-card { width: 100%; padding: 21px; background: #fff; border-radius: 12px; box-shadow: 0 8px 26px #23211e30; }
.work-head, .work-result { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.work-label { font-size: .75rem; font-weight: 800; letter-spacing: .08em; color: var(--muted); }
.work-name { font-size: 1.08rem; line-height: 1.35; font-weight: 800; }
.sample { flex-shrink: 0; padding: 4px 8px; border-radius: 5px; background: var(--pale); color: var(--muted); font-size: .75rem; font-weight: 700; }
.work-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-block: 18px 14px; }
.work-metrics dt { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: .875rem; }
.work-metrics dt svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--orange-dark);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.work-metrics dd { margin-top: 3px; font-size: clamp(1.05rem, 2vw, 1.4rem); font-weight: 800; }
.work-margin dd {
  display: inline-block;
  padding-inline: 5px;
  border-radius: 5px;
  background: var(--yellow);
  color: var(--charcoal);
  white-space: nowrap;
}
.work-result { margin-top: 11px; color: var(--muted); font-size: .875rem; }
.work-result strong { color: var(--ink); }

h2 { font-size: clamp(1.85rem, 3.4vw, 2.85rem); }
.section-intro { margin-top: 14px; color: var(--muted); }
.copy-key { color: var(--orange-dark); font-weight: 750; }
.profitability .copy-key, .service-featured .copy-key, .contact-intro .copy-key { color: var(--yellow); }

.management { padding-block: clamp(42px, 6vw, 78px); }
.management-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: end;
  gap: 12px 26px;
  margin-top: 11px;
}
.management-heading p { max-width: 46ch; color: var(--muted); }
.management-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.management-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  align-items: start;
  gap: 12px;
  padding: clamp(15px, 2.8vw, 24px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--pale);
}
.management-card svg {
  width: 43px;
  height: 43px;
  padding: 9px;
  border-radius: 9px;
  background: var(--warm);
  fill: none;
  stroke: var(--orange-dark);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.management-card h3 { font-size: 1.2rem; letter-spacing: -.025em; }
.management-card p { margin-top: 7px; color: var(--muted); }
.management-primary {
  grid-row: span 2;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  border-color: var(--warm-border);
  background: linear-gradient(140deg, #fff8e6, var(--warm));
}
.management-primary svg { background: var(--yellow); stroke: var(--charcoal); }
.management-primary h3 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
.management-primary .management-equation {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
  color: var(--orange-dark);
  font-size: .875rem;
  font-weight: 700;
}
.management-equation span, .management-equation strong { padding: 4px 7px; border-radius: 5px; background: #fff; }
.management-equation strong { background: var(--brown); color: var(--yellow); }

.calculator-page { background: var(--pale); }
.calculator-main { max-width: 1080px; padding-block: 60px 75px; }
.calculator-main h1 { font-size: clamp(2.5rem, 5vw, 4.3rem); }
.calculator-main .intro { margin-top: 16px; }
.calculator-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 32px; }
.input-panel, .result-panel { border: 1px solid var(--line); border-radius: 14px; padding: clamp(18px, 3vw, 30px); }
.input-panel {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 30px #23211e0d;
}
.input-panel h2, .result-panel h2 { font-size: 1.5rem; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-head .button {
  background: var(--warm);
  border-color: var(--warm-border);
  border-radius: 9px;
}
.panel-head .button:hover { background: #ffe5ae; border-color: var(--orange); }
.panel-note { color: var(--muted); margin-block: 10px 22px; font-size: .9375rem; }
.revenue-field {
  padding: clamp(12px, 2.5vw, 18px);
  border: 1px solid var(--warm-border);
  border-radius: 12px;
  background: var(--warm);
}
.field label { display: flex; align-items: center; gap: 5px; margin-bottom: 7px; font-size: .925rem; font-weight: 700; }
.field label svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--orange-dark);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.revenue-field label { color: var(--orange-dark); }
.input-shell {
  display: flex;
  align-items: center;
  min-height: 48px;
  border: 1px solid #a89a87;
  border-radius: 10px;
  background: #fffbf3;
}
.revenue-field .input-shell { background: #fff; }
.input-shell:focus-within { outline: 2px solid var(--orange); outline-offset: 1px; background: #fff; }
.input-shell:has([aria-invalid="true"]) { border-color: #b12238; }
.input-shell input {
  flex: 1;
  align-self: stretch;
  min-width: 0;
  padding: 11px 12px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-variant-numeric: tabular-nums;
  outline: none;
}
.input-shell input::placeholder { color: var(--muted); opacity: 1; }
.revenue-field input { font-size: 1.25rem; font-weight: 750; }
.input-shell span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-right: 8px;
  border-radius: 6px;
  background: #f5e9d8;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 700;
}
.revenue-field .input-shell span { color: var(--orange-dark); }
.input-panel fieldset { margin: 24px 0 0; padding: 0; min-width: 0; border: 0; }
.input-panel legend {
  width: 100%;
  margin-bottom: 15px;
  padding: 0 0 11px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}
.expense-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-error { margin-top: 15px; color: #a0182c; }
.result-panel { background: var(--brown); border-color: var(--brown); color: #fff; }
.result-panel dl { margin-top: 15px; }
.result-panel dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; padding-block: 14px; border-bottom: 1px solid #ffffff36; }
.result-panel dt, .result-panel p { color: var(--on-dark-muted); }
.result-panel dd { font-size: 1.28rem; font-weight: 750; overflow-wrap: anywhere; }
.result-panel dl > .percentage {
  margin-top: 12px;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  background: var(--yellow);
  color: var(--charcoal);
}
.result-panel .percentage dt { color: inherit; font-weight: 700; }
.result-panel .percentage dd { font-size: 1.85rem; }
.result-panel p { margin-top: 15px; font-size: .875rem; }

@media (max-width: 960px) {
  .wrap { width: calc(100% - 56px); }
  .hero-grid { gap: 28px; }
  .hero-visual { min-height: 360px; padding: 14px; }
  .work-card { padding: 14px; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 36px); }
  :root { --header-height: 76px; }
  .header-inner { gap: 10px; }
  .site-header::before { inset-inline-end: 10px; width: 66%; }
  .hero-grid { grid-template-columns: 1fr; }
  .calculator-grid { grid-template-columns: minmax(0, 1fr); margin-top: 24px; }
  .calculator-main { padding-block: 34px 46px; }
  .calculator-main h1 { font-size: clamp(2rem, 7vw, 3rem); }
  .input-panel .button { min-height: 44px; }
  .hero-grid { padding-block: 43px; }
  .hero-visual {
    min-height: 305px;
    padding: 12px;
    background-position: 76% 25%;
  }
}
@media (max-width: 480px) {
  .expense-grid { gap: 10px; }
  .expense-grid .input-shell input { padding-inline: 8px; }
  .expense-grid .input-shell span { width: 22px; height: 24px; margin-right: 5px; }
  .panel-head { flex-wrap: wrap; }
  .result-panel .percentage { display: grid; }
}
@media (max-width: 420px) {
  .work-head { align-items: start; flex-direction: column; }
  .work-metrics { gap: 7px; margin-top: 12px; }
  .work-metrics dt { flex-direction: column; align-items: flex-start; gap: 3px; font-size: .8rem; }
}

.stats-link {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin-top: 12px;
  padding: 6px 10px;
  border: 1px solid var(--warm-border);
  border-radius: 8px;
  background: var(--pale);
  color: var(--orange-dark);
  font-size: .9rem;
  font-weight: 750;
}
.stats-link:hover {
  border-color: var(--orange);
  background: var(--warm);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.stats-link svg {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 5px;
  border-radius: 6px;
  background: var(--yellow);
  fill: none;
  stroke: var(--charcoal);
  stroke-width: 1.8;
  stroke-linecap: round;
}
.profitability {
  padding-block: clamp(42px, 6vw, 78px);
  background: var(--brown);
  color: #fff;
}
.profitability .eyebrow { color: var(--yellow); }
.profitability .eyebrow span { background: var(--yellow); }
.profitability h2 { margin-top: 10px; }
.profitability .section-intro { max-width: 67ch; color: var(--on-dark-muted); }
.stats-demo {
  margin-top: 26px;
  padding: clamp(14px, 3vw, 32px);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: clamp(12px, 2vw, 18px);
  border-radius: 11px;
  background: var(--brown);
  color: #fff;
}
.demo-company { display: flex; align-items: center; gap: 10px; }
.demo-company strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.demo-company span { display: block; margin-top: 3px; color: var(--on-dark-muted); font-size: .875rem; }
.demo-company svg, .demo-month-field svg {
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.demo-company svg {
  flex: 0 0 39px;
  width: 39px;
  height: 39px;
  padding: 8px;
  border-radius: 8px;
  background: var(--yellow);
  stroke: var(--charcoal);
}
.stats-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.stats-totals > div { padding: clamp(9px, 2vw, 18px); border-radius: 10px; background: var(--pale); }
.stats-totals > .stats-result { background: var(--warm); color: var(--orange-dark); }
.stats-totals > .stats-margin { background: var(--yellow); color: var(--charcoal); }
.stats-totals dt { font-size: .875rem; }
.stats-totals dd { margin-top: 4px; font-size: clamp(1.05rem, 3vw, 1.65rem); font-weight: 800; }
.stats-jobs details { border-top: 1px solid var(--line); }
.stats-jobs summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 1em;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 4px;
  cursor: pointer;
  list-style: none;
  font-size: .9rem;
  font-weight: 650;
}
.stats-jobs summary::-webkit-details-marker { display: none; }
.stats-jobs summary:hover, .stats-jobs details[open] summary { background: var(--pale); }
.stats-jobs summary::after { content: ''; width: .44em; height: .44em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; justify-self: center; transform: rotate(45deg); }
.stats-jobs details[open] summary::after { transform: rotate(225deg); }
.stats-jobs summary strong {
  min-width: 4.5em;
  padding: 4px 6px;
  border-radius: 6px;
  background: var(--warm);
  color: var(--orange-dark);
  text-align: center;
  white-space: nowrap;
}
.stats-jobs .loss { color: #98182c; }
.stats-jobs summary .loss { background: #ffe4e7; color: #98182c; }
.job-detail { padding: 6px 8px 12px; font-size: .875rem; }
.job-detail > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding-block: 4px; }
.job-detail dd { font-weight: 650; }
.job-detail .job-result { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); font-weight: 800; }
.digital-services { padding-block: clamp(40px, 6vw, 72px); background: var(--pale); }
.services-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
}
.services-intro .section-intro { max-width: 62ch; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.service-card { padding: clamp(15px, 2.5vw, 24px); border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.service-card svg {
  display: block;
  width: 39px;
  height: 39px;
  padding: 8px;
  border-radius: 8px;
  background: var(--warm);
  fill: none;
  stroke: var(--orange-dark);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card h3 { margin-top: 12px; font-size: 1.2rem; }
.service-card p { margin-top: 7px; color: var(--muted); }
.service-question { color: var(--orange-dark); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.service-question:hover { color: var(--ink); }
.service-featured { border-color: var(--brown); background: var(--brown); color: #fff; }
.service-featured svg { background: var(--yellow); stroke: var(--charcoal); }
.service-featured p { color: var(--on-dark-muted); }
.service-brand span {
  color: #fff;
  text-decoration: underline #ffffff80;
  text-decoration-thickness: .09em;
  text-underline-offset: .15em;
}
.service-brand span:last-child { color: var(--yellow); text-decoration-color: #ffc329a6; }


@media (max-width: 720px) {
  .management-heading, .management-grid { grid-template-columns: minmax(0, 1fr); }
  .management-primary { grid-row: auto; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: minmax(0, 1fr); }
}

.demo-control {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  max-width: 100%;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}
.demo-control select {
  max-width: 100%;
  min-height: 44px;
  padding: 8px 34px 8px 10px;
  border: 1px solid #a89a87;
  border-radius: 8px;
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 6 5 5 5-5' fill='none' stroke='%23625a4f' stroke-width='2'/%3E%3C/svg%3E") right 10px center / 14px no-repeat;
  color: var(--ink);
  font: inherit;
}
.demo-month-control {
  justify-content: flex-end;
  margin-inline-start: auto;
  color: var(--on-dark-muted);
}
.demo-month-field { position: relative; max-width: 100%; }
.demo-month-field svg {
  position: absolute;
  top: 50%;
  left: 10px;
  width: 18px;
  height: 18px;
  stroke: var(--orange-dark);
  transform: translateY(-50%);
  pointer-events: none;
}
.demo-month-control select { padding-left: 35px; border-color: var(--warm-border); }
.demo-month-control select:focus-visible { outline-color: var(--yellow); }
.demo-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-block: 18px 22px;
}
.demo-tabs button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 64px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--pale);
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}
.demo-tabs svg {
  box-sizing: content-box;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  padding: 6px;
  border-radius: 8px;
  background: var(--warm);
  fill: none;
  stroke: var(--orange-dark);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.demo-tabs button:hover { border-color: var(--orange); background: var(--warm); }
.demo-tabs [aria-selected="true"] { border-color: var(--brown); background: var(--brown); color: #fff; }
.demo-tabs [aria-selected="true"]:hover { background: var(--ink); }
.demo-tabs [aria-selected="true"] svg { background: var(--yellow); stroke: var(--charcoal); }
.demo-view h3 { font-size: clamp(1.25rem, 3vw, 1.65rem); }
.demo-view-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.demo-note { margin-top: 7px; color: var(--muted); font-size: .925rem; }
.stats-totals small { display: block; margin-top: 5px; font-size: .875rem; font-weight: 650; }
.stats-totals dd { overflow-wrap: anywhere; }
.stats-jobs { margin-top: 12px; }
.stats-jobs details:last-child { border-bottom: 1px solid var(--line); }
.stats-jobs summary small { margin-left: 8px; color: #98182c; font-weight: 750; }
.stats-jobs .losing-work summary { background: #fff4f5; color: #98182c; }
.job-detail .job-resources { grid-template-columns: minmax(0, 1fr); margin-top: 5px; }
.job-detail .job-resources dd { color: var(--muted); font-weight: 500; }
.demo-chart {
  margin-top: 14px;
  padding: clamp(10px, 2.5vw, 22px);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.demo-chart figcaption, .demo-conclusions h4 { margin: 0; font-size: 1rem; font-weight: 800; }
.trend-toolbar, .trend-controls, .trend-switch { display: flex; align-items: center; }
.trend-toolbar { justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.trend-period { color: var(--muted); font-size: .875rem; font-weight: 650; }
.trend-controls { flex-wrap: wrap; gap: 8px; }
.trend-switch { padding: 2px; border: 1px solid var(--line); border-radius: 9px; background: var(--pale); }
.trend-switch button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.trend-switch button:hover { color: var(--ink); }
.trend-switch [aria-pressed="true"] { background: var(--warm); color: var(--orange-dark); }
.trend-switch svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.trend-svg { display: block; width: min(100%, 780px); height: auto; margin: 8px auto; }
.trend-svg text { fill: var(--muted); font: 14px system-ui, sans-serif; }
.trend-gridline { stroke: #c9b9a2; }
.trend-svg polyline { fill: none; stroke: var(--orange-dark); stroke-width: 3; }
.trend-svg circle { fill: var(--yellow); stroke: var(--orange-dark); stroke-width: 2; }
.trend-bar { fill: var(--orange); }
.trend-svg .forecast-segment { stroke-dasharray: 6 5; }
.trend-svg .forecast-point { fill: #fff; stroke-width: 3; }
.trend-svg .forecast-label { fill: var(--orange-dark); font-weight: 800; }
.trend-values { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 4px; text-align: center; }
.trend-values > div { padding: 6px 2px; border-radius: 6px; background: var(--pale); font-size: .875rem; }
.trend-values dt { color: var(--muted); overflow-wrap: anywhere; }
.trend-values dd { margin-top: 3px; font-weight: 750; }
.trend-values > .forecast-label { background: var(--warm); color: var(--orange-dark); }
.trend-values .forecast-label dt { color: inherit; font-weight: 700; }
.demo-conclusions { margin-top: 16px; }
.conclusions-header { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.conclusions-header p { color: var(--muted); font-size: .875rem; }
.conclusion-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.conclusion-card { padding: clamp(9px, 2vw, 14px); border-radius: 9px; background: var(--pale); }
.conclusion-card dt { font-size: .875rem; font-weight: 650; }
.conclusion-card dd strong { display: block; margin-top: 4px; font-size: 1.15rem; overflow-wrap: anywhere; }
.conclusion-card dd span { display: block; margin-top: 4px; font-size: .9rem; }
.conclusion-margin { background: var(--warm); color: var(--orange-dark); }
.conclusion-loss { background: #ffe4e7; color: #831024; }
.demo-cta { margin-top: 20px; }

@media (max-width: 720px) {
  .demo-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .stats-totals, .conclusion-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-tabs button { flex-direction: column; align-items: flex-start; gap: 5px; }
}

.contact-section {
  padding-block: clamp(42px, 6vw, 76px);
  border-block: 1px solid var(--line);
  background: #fffaf0;
}
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 36px #23211e12;
}
.contact-intro {
  padding: clamp(22px, 5vw, 56px);
  background:
    linear-gradient(160deg, var(--brown) 18%, #2d211beb 52%, #2d211bad 100%),
    var(--brown) url('/assets/excavacion.webp') 72% center / cover no-repeat;
  color: #fff;
}
.contact-intro .eyebrow { color: var(--yellow); }
.contact-intro h2 { margin-top: 12px; }
.contact-intro h2 + p { max-width: 33ch; margin-top: 14px; color: var(--on-dark-muted); }
.contact-form {
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
  padding: clamp(18px, 4vw, 48px);
}
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.contact-form label { display: grid; gap: 7px; min-width: 0; font-weight: 750; }
.contact-form label > span { display: flex; align-items: center; gap: 7px; }
.contact-form label svg {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--orange-dark);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-form input:not([type="hidden"]), .contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #a89a87;
  border-radius: 9px;
  background: var(--pale);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}
.contact-form input:focus, .contact-form textarea:focus { background: #fff; outline: 2px solid var(--orange-dark); outline-offset: 2px; }
.contact-form textarea { resize: vertical; }
.contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.contact-note { flex: 1 1 16ch; color: var(--muted); font-size: .9rem; }
.contact-confirmation, .blog-main { padding-block: clamp(36px, 5vw, 66px); }
.contact-confirmation .button { margin-top: 22px; }
.blog-hero {
  padding-block: clamp(32px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, #fffaf0, var(--warm));
}
.blog-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(22px, 5vw, 62px);
}
.blog-hero h1 { font-size: clamp(2.35rem, 5vw, 4.65rem); }
.blog-hero-inner > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 12px 30px #23211e23;
}
.blog-search { max-width: 470px; margin-top: 20px; }
.blog-search label { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 750; }
.blog-search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-inline: 12px;
  border: 1px solid #a89a87;
  border-radius: 9px;
  background: #fff;
}
.blog-search-field:focus-within { outline: 2px solid var(--orange-dark); outline-offset: 2px; }
.blog-search-field svg { width: 21px; height: 21px; flex-shrink: 0; fill: none; stroke: var(--orange-dark); stroke-width: 1.8; stroke-linecap: round; }
.blog-search-field input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 6px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}
.blog-search-field input::placeholder { color: var(--muted); opacity: 1; }
.blog-section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.blog-filters:not([hidden]) { display: flex; flex-wrap: wrap; gap: 6px; }
.blog-filters button {
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
}
.blog-filters button:hover { border-color: var(--orange); }
.blog-filters [aria-pressed="true"] { border-color: var(--brown); background: var(--brown); color: #fff; }
.blog-results { margin-top: 8px; color: var(--muted); font-size: .9rem; }
.blog-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.blog-index a:not([hidden]) {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 9px;
  padding: clamp(14px, 2.5vw, 23px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--pale);
}
.blog-index a.blog-card-featured { border-color: var(--warm-border); background: var(--warm); }
.blog-index a:hover { border-color: var(--orange); }
.blog-index a span { color: var(--orange-dark); font-size: .875rem; font-weight: 750; }
.blog-index a strong { font-size: 1.2rem; line-height: 1.25; }
.blog-index a p, .blog-entry p { color: var(--muted); }
.blog-index a .blog-read, .blog-resources a { text-decoration: underline; text-underline-offset: 3px; }
.blog-entries { max-width: 760px; margin-inline: auto; }
.blog-entry {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 18px;
}
.blog-entry h2 { font-size: clamp(1.5rem, 3.5vw, 2.35rem); }
.blog-entry p { margin-top: 12px; }
.blog-entry img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; object-position: center 40%; margin-top: 14px; border-radius: 12px; }
.blog-entry .blog-example { padding: 13px 15px; border-left: 3px solid var(--yellow); border-radius: 0 7px 7px 0; background: var(--pale); color: var(--ink); }
.blog-entry .button { margin-top: 15px; }
.blog-resources {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 9px 22px;
  margin-top: 32px;
  padding: clamp(14px, 3vw, 23px);
  border-radius: 12px;
  background: var(--warm);
  color: var(--orange-dark);
}
.blog-resources h2 { color: var(--ink); font-size: 1.2rem; }
.blog-resources a { font-weight: 700; }

@media (max-width: 720px) {
  .contact-inner, .blog-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .blog-hero-inner > img { max-height: 240px; }
  .blog-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .contact-fields, .blog-index { grid-template-columns: minmax(0, 1fr); }
}

.site-footer {
  border-top: 2px solid var(--yellow);
  background: var(--brown);
  color: #fff;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 58px);
  padding-block: clamp(28px, 5vw, 48px);
}
.footer-inner .brand { display: inline-flex; }
.footer-inner .brand img { flex: none; width: auto; height: 1.9em; }
.footer-inner .brand-name { color: #ff9a54; }
.footer-inner .brand-name span { color: var(--yellow); }
.footer-inner p { max-width: 46ch; margin-top: 14px; color: var(--on-dark-muted); }
.footer-inner p strong { color: #fff; }
.footer-nav h2 { font-size: 1.05rem; letter-spacing: -.02em; }
.footer-nav ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.footer-nav a { color: var(--on-dark-muted); line-height: 1.4; }
.footer-nav a:hover { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:focus-visible { outline-color: var(--yellow); }

@media (max-width: 720px) {
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner > div { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}

.latest-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
}
.footer-news {
  padding-block: clamp(23px, 4vw, 36px);
  border-bottom: 1px solid #ffffff36;
}
.footer-news h2 { font-size: clamp(1.3rem, 3vw, 1.65rem); }
.footer-news-all { color: var(--yellow); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.footer-news-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.footer-news-list a {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 12px;
  border-top: 2px solid #ffc32985;
  border-radius: 5px 5px 8px 8px;
  background: #ffffff10;
}
.footer-news-thumb { display: block; width: 58px; height: 58px; border-radius: 6px; object-fit: cover; object-position: center 42%; }
.footer-news-copy { display: grid; gap: 4px; }
.footer-news-list .latest-topic { color: var(--yellow); font-size: .9rem; font-weight: 750; }
.footer-news-list strong { line-height: 1.3; }
.footer-news-list a:hover { background: #ffffff1e; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 680px) {
  .footer-news-list { grid-template-columns: minmax(0, 1fr); }
}

.forecast-layout:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
  gap: 14px;
  margin-top: 16px;
  align-items: start;
}
.forecast-layout .demo-chart { margin-top: 0; background: var(--pale); }
.forecast-layout .trend-values > div { background: #fff; }
.forecast-layout .trend-values > .forecast-label { background: var(--warm); }
.forecast-balance {
  padding: clamp(14px, 2.8vw, 22px);
  border-radius: 12px;
  background: var(--brown);
  color: #fff;
}
.forecast-result dt { color: var(--on-dark-muted); font-weight: 700; }
.forecast-result dd { margin-top: 5px; color: var(--yellow); font-size: clamp(1.7rem, 3.8vw, 2.7rem); font-weight: 850; }
.forecast-result small { display: block; margin-top: 6px; color: var(--on-dark-muted); font-size: .9rem; font-weight: 650; }
.forecast-balance > div:not(.forecast-result) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding-top: 9px;
  margin-top: 10px;
  border-top: 1px solid #ffffff36;
  font-size: .9rem;
}
.forecast-balance > div:not(.forecast-result) dd { font-weight: 750; }
.cost-breakdown {
  margin-top: 14px;
  padding: clamp(12px, 2.5vw, 22px);
  border: 1px solid var(--warm-border);
  border-radius: 12px;
  background: var(--pale);
}
.cost-breakdown h4 { margin: 0; font-size: 1.05rem; }
.cost-breakdown p { margin-top: 5px; color: var(--muted); }
.cost-table { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: .875rem; }
.cost-table th, .cost-table td { padding: 8px 4px; border-top: 1px solid var(--line); text-align: right; }
.cost-table th:first-child { text-align: left; }
.cost-table thead th { color: var(--muted); }
.cost-table td { white-space: nowrap; }
.cost-table .cost-increase { color: #831024; font-weight: 800; }

@media (max-width: 720px) {
  .forecast-layout:not([hidden]) { grid-template-columns: minmax(0, 1fr); }
}

.input-panel .panel-head { flex-wrap: wrap; }
.calculator-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.panel-head #clear-amounts { background: #fff; border-color: var(--line); }
.panel-head #clear-amounts:hover:not(:disabled) { background: var(--pale); border-color: var(--orange); }
.result-panel .export-pdf { min-height: 44px; margin-top: 16px; gap: 8px; }
.export-pdf svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-gallery {
  padding-block: clamp(30px, 4vw, 52px);
  border-top: 1px solid var(--line);
  background: linear-gradient(160deg, #fff, var(--pale));
}
.tool-gallery em { color: var(--orange-dark); font-style: normal; }
.tool-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
  margin-top: 20px;
}
.tool-gallery-grid figure {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px #23211e0d;
}
.tool-gallery-grid a { display: block; border-radius: 15px 15px 0 0; }
.tool-gallery-grid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
  background: var(--warm);
}
.tool-gallery-grid figcaption { padding: 12px 14px 14px; }
.tool-gallery-grid figcaption strong { display: block; margin-bottom: 5px; }
.tool-gallery-grid figcaption span { color: var(--muted); line-height: 1.5; }

.gallery-open { margin-top: 16px; cursor: pointer; }
.gallery-open[hidden] { display: none; }
.gallery-demo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 22px;
  margin-top: 24px;
  padding: clamp(14px, 2.5vw, 22px);
  border: 1px solid var(--warm-border);
  border-radius: 12px;
  background: var(--warm);
}
.gallery-demo p { max-width: 65ch; }
@media (max-width: 960px) {
  .tool-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .tool-gallery-grid { grid-template-columns: minmax(0, 1fr); }
}

.gallery-viewer {
  width: min(840px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: clamp(10px, 2vw, 18px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  overscroll-behavior: contain;
}
.gallery-viewer::backdrop { background: #23211ec7; }
.gallery-viewer img {
  display: block;
  width: 100%;
  height: auto;
  max-height: max(130px, calc(100dvh - 155px));
  object-fit: contain;
  border-radius: 9px;
  background: var(--pale);
}
.gallery-viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-block: 4px 10px;
}
.gallery-viewer-bar:last-child { padding-block: 10px 0; }
.gallery-viewer-bar p { font-size: .9rem; font-weight: 700; }
.gallery-viewer-bar button { min-height: 44px; cursor: pointer; }
.gallery-viewer-step {
  border-color: var(--brown);
  background: var(--brown);
  color: #fff;
}
.gallery-viewer-step:hover {
  border-color: #392a22;
  background: #392a22;
}
.gallery-viewer-close {
  width: 44px;
  padding: 0;
  font-size: 1.4rem;
  line-height: 1;
}

.excel-section {
  padding-block: clamp(36px, 6vw, 72px);
  border-block: 1px solid var(--line);
  background: var(--pale);
}
.excel-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
}
.excel-benefits {
  display: grid;
  gap: 12px;
  padding-inline-start: 1.3em;
  margin: 20px 0 0;
  color: var(--muted);
  line-height: 1.55;
}
.excel-benefits li::marker { color: var(--orange-dark); }
.excel-benefits strong { color: var(--ink); }
.excel-export {
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--warm-border);
  border-radius: 16px;
  background: #fff;
}
.excel-export h3 { margin-top: 12px; font-size: 1.45rem; }
.excel-export p { margin-block: 10px 16px; color: var(--muted); }
@media (max-width: 720px) {
  .excel-inner { grid-template-columns: minmax(0, 1fr); }
}
