:root {
  --hormigon: #E3E1DC;
  --hormigon-2: #D3D0C9;
  --tinta: #22201D;
  --tinta-2: #57524B;
  --marron: #7E644B;
  --marron-osc: #5E4A37;
  --cinta: #E2A72E;
  --blanco: #F7F6F3;
  --wa: #1F8F4E;
  --ancho: 1180px;
  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--hormigon); color: var(--tinta);
  font-family: var(--display); font-variation-settings: "wdth" 100;
  font-size: 1.0625rem; line-height: 1.55;
}
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--marron); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--tinta); color: var(--blanco); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(20px, 4vw, 48px);
  background: rgba(227, 225, 220, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hormigon-2);
}
.brand { display: block; line-height: 0; background: #fff; border-radius: 4px; padding: 2px 6px; box-shadow: 0 0 0 1px var(--hormigon-2); }
.brand img { height: 44px; width: auto; }
.top nav { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 28px); }
.top nav a { text-decoration: none; font-weight: 500; }
.top nav a:hover { color: var(--marron); }
.nav-cta { background: var(--tinta); color: var(--blanco) !important; padding: 8px 16px; border-radius: 4px; }
.nav-cta:hover { background: var(--marron); }

/* Hero */
.hero {
  max-width: var(--ancho); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center;
  padding: clamp(28px, 4.5vw, 56px) clamp(20px, 4vw, 48px) clamp(40px, 6vw, 72px); row-gap: clamp(20px, 3vw, 36px);
}
.since { margin: 0 0 14px; color: var(--marron-osc); font-weight: 600; }
.hero h1 {
  margin: 0; font-weight: 800; font-variation-settings: "wdth" 75;
  font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: .95; letter-spacing: -.01em; max-width: 12ch;
}
.lead { font-size: 1.15rem; color: var(--tinta-2); max-width: 46ch; margin: 20px 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border-radius: 4px; font: inherit; font-weight: 700;
  text-decoration: none; cursor: pointer; border: 2px solid var(--tinta);
}
.btn-solid { background: var(--marron); border-color: var(--marron); color: var(--blanco); }
.btn-solid:hover { background: var(--marron-osc); border-color: var(--marron-osc); }
.btn-line { background: transparent; color: var(--tinta); }
.btn-line:hover { background: var(--tinta); color: var(--blanco); }

.hero-drawing { width: 100%; max-width: 440px; justify-self: end; }
.hero-plan { position: relative; margin: 0 0 8px; }

.plan { display: block; width: 100%; height: auto; fill: none; stroke-linecap: square; }
.plan .ground { stroke: var(--tinta); stroke-width: 3; }
.plan .hatch { stroke: var(--tinta-2); stroke-width: 1.2; }
.plan .draw { stroke: var(--marron); stroke-width: 2.5; }
.plan .dim { stroke: var(--tinta-2); stroke-width: 1.2; }
.plan .dim-t { fill: var(--tinta); stroke: none; font-family: var(--display); font-size: 15px; font-weight: 600; }
.tape {
  position: absolute; left: -6%; right: -6%; bottom: 62%; height: 18px; transform: rotate(-4deg);
  background: repeating-linear-gradient(135deg, var(--cinta) 0 18px, var(--tinta) 18px 36px);
  opacity: .92;
}
@media (prefers-reduced-motion: no-preference) {
  .plan .draw path { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: trazo 2.2s cubic-bezier(.6,.1,.3,1) forwards; }
  .plan .draw path:nth-child(n+3) { animation-delay: .5s; }
  .plan .draw path:nth-child(n+6) { animation-delay: .9s; }
  .tape { transform-origin: left; animation: cinta .7s 1.6s ease-out both; }
  @keyframes trazo { to { stroke-dashoffset: 0; } }
  @keyframes cinta { from { transform: rotate(-4deg) scaleX(0); } to { transform: rotate(-4deg) scaleX(1); } }
}

/* Contadores del hero: rótulo de plano */
.hero-stats {
  margin: 0;
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  background: var(--blanco); border: 2px solid var(--tinta);
}
.hero-stats > div {
  display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px;
  padding: clamp(14px, 2vw, 22px) clamp(14px, 2vw, 24px);
  border-left: 1px solid var(--tinta);
}
.hero-stats > div:nth-child(odd) { border-left: 0; }
.hero-stats > div:nth-child(n+3) { border-top: 1px solid var(--tinta); }
.hero-stats dt { color: var(--tinta-2); font-size: .92rem; line-height: 1.3; }
.hero-stats dd { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }
.stat-n {
  font-weight: 800; font-variation-settings: "wdth" 75; font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: .95; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--tinta);
}
.stat-u { font-weight: 700; font-size: clamp(1rem, 1.6vw, 1.3rem); color: var(--marron); }
.stat-iso { background: var(--tinta); }
.stat-iso dt { color: #CFC9C0; }
.stat-iso .stat-n { color: var(--cinta); white-space: nowrap; font-size: clamp(1.6rem, 2.4vw, 2.1rem); }

/* Secciones */
.section { padding: clamp(64px, 9vw, 112px) clamp(20px, 4vw, 48px); }
.section > * { max-width: var(--ancho); margin-left: auto; margin-right: auto; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 48px; }
.section h2 {
  margin: 0; font-weight: 800; font-variation-settings: "wdth" 75;
  font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1;
}
.section-head p { margin: 0; color: var(--tinta-2); max-width: 48ch; }

/* Servicios */
.services { background: var(--tinta); color: var(--blanco); }
.services .section-head p { color: #BDB7AE; }
.service-list { list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; border-top: 1px solid #45413B; }
.service-list li {
  display: grid; grid-template-columns: 56px 1fr; gap: 24px; align-items: start;
  padding: 28px 0; border-bottom: 1px solid #45413B;
}
.service-list svg { width: 48px; height: 48px; fill: none; stroke: var(--cinta); stroke-width: 2.2; stroke-linejoin: round; }
.service-list li > div { display: grid; grid-template-columns: minmax(220px, 1fr) 1.4fr; gap: 8px 48px; }
.service-list h3 { margin: 0; font-size: 1.45rem; font-weight: 700; font-variation-settings: "wdth" 110; line-height: 1.2; }
.service-list p { margin: 0; color: #CFC9C0; max-width: 56ch; }

/* Obras */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
  padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--tinta-2);
  background: transparent; color: var(--tinta);
}
.filters button:hover { border-color: var(--marron); color: var(--marron); }
.filters button[aria-pressed="true"] { background: var(--tinta); border-color: var(--tinta); color: var(--blanco); }
.work-grid { list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.work {
  display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 0; margin: 0;
  background: none; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer;
}
.work img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: var(--hormigon-2); margin-bottom: 10px; transition: filter .2s; }
.work:hover img { filter: brightness(.9); }
.work:hover strong { color: var(--marron); }
.work-cat { color: var(--marron-osc); font-weight: 600; font-size: .9rem; }
.work strong { font-size: 1.2rem; font-weight: 700; font-variation-settings: "wdth" 105; line-height: 1.25; }
.work-meta { color: var(--tinta-2); font-size: .95rem; }
.works-more { margin-top: 40px; display: flex; justify-content: center; }
.btn[hidden] { display: none; }

.work-dialog {
  width: min(880px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0;
  border: 0; border-radius: 6px; background: var(--blanco); color: var(--tinta); overflow-y: auto;
}
.work-dialog::backdrop { background: rgba(20, 18, 16, .72); }
.work-dialog > img { display: block; width: 100%; max-height: 56vh; object-fit: cover; }
.wd-close {
  position: sticky; top: 12px; float: right; margin: 12px 12px -56px 0; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--tinta); color: var(--blanco); font-size: 1.6rem; line-height: 1;
}
.wd-body { padding: clamp(20px, 4vw, 40px); }
.wd-cat { margin: 0; color: var(--marron-osc); font-weight: 600; }
.wd-body h3 { margin: 6px 0 12px; font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; font-variation-settings: "wdth" 85; line-height: 1.05; }
.wd-meta { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--tinta-2); }
.wd-desc { max-width: 68ch; margin-bottom: 28px; }
.wd-desc h4 { margin: 24px 0 6px; font-size: 1.15rem; font-variation-settings: "wdth" 105; }
.wd-desc p { margin: 0 0 10px; color: var(--tinta-2); }

/* Clientes */
.clients { background: var(--blanco); }
.client-grid {
  list-style: none; padding: 0; margin-top: 0; margin-bottom: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px;
}
.client-grid li {
  display: flex; align-items: center; justify-content: center;
  height: 96px; padding: 14px 18px; background: #fff;
  border: 1px solid var(--hormigon-2); border-radius: 4px;
}
.client-grid img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Contacto */
.contact { background: var(--marron); color: var(--blanco); display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px 72px; }
.contact > * { margin: 0; max-width: none; }
.contact { padding-left: max(clamp(20px, 4vw, 48px), calc((100% - var(--ancho)) / 2)); padding-right: max(clamp(20px, 4vw, 48px), calc((100% - var(--ancho)) / 2)); }
.contact-intro p { color: #EFE7DE; max-width: 40ch; margin-top: 20px; }
.contact-data { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 28px 0 0; }
.contact-data dt { color: #E3D6C8; }
.contact-data dd { margin: 0; font-weight: 600; font-size: 1.1rem; }
.contact-data a { color: var(--blanco); text-underline-offset: 4px; word-break: break-all; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; align-content: start; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 400; color: var(--tinta); background: var(--blanco);
  border: 2px solid transparent; border-radius: 4px; padding: 12px 14px; width: 100%;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--cinta); }
.contact-form .btn-solid { background: var(--tinta); border-color: var(--tinta); }
.contact-form .btn-solid:hover { background: #000; border-color: #000; }
.form-error { margin: 0; min-height: 1em; color: #FFE1A6; font-weight: 600; }
.form-error:empty { display: none; }
.form-note { margin: 0; font-size: .9rem; color: #EFE7DE; }
.contact :focus-visible { outline-color: var(--cinta); }

/* Footer */
.foot { padding: 36px clamp(20px, 4vw, 48px) 104px; text-align: center; color: var(--tinta-2); font-size: .95rem; }
.social { display: flex; justify-content: center; gap: 24px; margin-bottom: 12px; }
.social a { font-weight: 600; color: var(--tinta); text-underline-offset: 4px; }
.social a:hover { color: var(--marron); }

/* WhatsApp flotante */
.wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px; border-radius: 999px;
  background: var(--wa); color: #fff; text-decoration: none; font-weight: 700;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.wa svg { width: 28px; height: 28px; fill: #fff; }
.wa:hover { background: #17733E; }
.wa:focus-visible { outline-color: var(--tinta); }

/* Responsive */
@media (max-width: 900px) {
  .hero-drawing { justify-self: start; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .hero, .section-head, .contact { grid-template-columns: 1fr; }
  .hero-plan { max-width: 520px; }
  .service-list li > div { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .top nav a:not(.nav-cta) { display: none; }
  .contact-form { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .client-grid li { height: 72px; padding: 10px; }
  .service-list li { grid-template-columns: 40px 1fr; gap: 16px; }
  .service-list svg { width: 36px; height: 36px; }
  .wa span { display: none; }
  .wa { padding: 14px; }
}

/* Página de obras */
.works-page { padding-top: clamp(40px, 6vw, 72px); }
.works-page h1 {
  margin: 0; font-weight: 800; font-variation-settings: "wdth" 75;
  font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1;
}
.back-wrap { margin-top: 0; margin-bottom: 28px; }
.back { font-weight: 600; color: var(--marron-osc); text-underline-offset: 4px; }
.back:hover { color: var(--tinta); }
.filters .n { font-weight: 500; opacity: .65; margin-left: 2px; }
.works-count { margin-top: -8px; margin-bottom: 28px; color: var(--tinta-2); }
.works-cta { background: var(--marron); color: var(--blanco); text-align: center; }
.works-cta h2 { margin: 0; }
.works-cta p { margin: 16px auto 28px; max-width: 46ch; color: #EFE7DE; }
.works-cta .btn-solid { background: var(--tinta); border-color: var(--tinta); }
.works-cta .btn-solid:hover { background: #000; border-color: #000; }
.top nav a[aria-current="page"] { color: var(--marron); text-decoration: underline; text-underline-offset: 6px; }
