@font-face {
  font-family: "Cormorant";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("assets/fonts/cormorant.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant";
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url("assets/fonts/cormorant-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("assets/fonts/jost.woff2") format("woff2");
}

:root {
  --white: #ffffff;
  --lino: #f7f6f3;
  --beige: #ddd3c4;
  --arena: #b5a898;
  --taupe: #9a928a;
  --carbon: #222020;
  --line: #e8e5e0;
  --serif: "Cormorant", "Times New Roman", serif;
  --sans: "Jost", system-ui, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--carbon);
  font: 300 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { font-family: var(--serif); font-weight: 300; margin: 0; line-height: 1.02; letter-spacing: -.01em; }
em { font-style: italic; color: var(--taupe); }

.eyebrow {
  font: 400 11px/1.4 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--taupe);
  margin: 0 0 18px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--pad);
  background: rgb(255 255 255 / .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark { width: 40px; height: 37px; color: var(--carbon); }
.brand-word {
  font: 400 13px/1.1 var(--sans); letter-spacing: .24em; text-transform: uppercase;
}
.brand-word small { display: block; font-size: 9px; letter-spacing: .3em; color: var(--taupe); margin-top: 4px; }
.nav { display: flex; gap: clamp(14px, 2.4vw, 36px); list-style: none; margin: 0; padding: 0; }
.nav a {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  background: linear-gradient(currentColor 0 0) 0 100% / 0 1px no-repeat;
  transition: background-size .4s var(--ease);
  padding-bottom: 3px;
}
.nav a:hover, .nav a:focus-visible { background-size: 100% 1px; }
.nav-cta { border: 1px solid var(--carbon); padding: 8px 16px !important; background: none !important; transition: background-color .3s, color .3s !important; }
.nav-cta:hover { background-color: var(--carbon) !important; color: var(--white); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 110px) var(--pad) 0; }
.hero-intro {
  display: grid; grid-template-columns: 1.4fr 1fr; align-items: end; gap: 40px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.hero-intro .eyebrow { grid-column: 1 / -1; margin: 0; }
h1 { font-size: clamp(56px, 10vw, 156px); }
.lede { font-size: 17px; max-width: 34ch; margin: 0 0 14px; color: #555; }

.hero-figure { margin: 0; }
.stage { position: relative; overflow: hidden; background: var(--lino); }
.stage img {
  width: 100%;
  animation: settle 1.8s var(--ease) both;
  @media (prefers-reduced-motion: reduce) { animation: none; }
}
@keyframes settle { from { scale: 1.06; opacity: 0; } }

.spot {
  position: absolute; left: var(--x); top: var(--y);
  translate: -50% -50%;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--white);
  background: rgb(255 255 255 / .22);
  backdrop-filter: blur(6px);
  color: var(--white); font: 400 11px var(--sans);
  cursor: pointer;
  transition: scale .35s var(--ease), background-color .35s, color .35s;
}
.spot::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 1px solid rgb(255 255 255 / .7);
  animation: pulse 2.6s var(--ease) infinite;
  @media (prefers-reduced-motion: reduce) { animation: none; opacity: 0; }
}
@keyframes pulse { from { scale: .7; opacity: 1; } to { scale: 1.5; opacity: 0; } }
.spot:hover, .spot:focus-visible { scale: 1.12; outline: none; }
.spot[aria-pressed="true"] { background: var(--white); color: var(--carbon); }

.ficha {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: start;
  padding: 26px 0 0; border-top: 1px solid var(--carbon); margin-top: 18px;
}
.ficha-n { font: 300 54px/0.9 var(--serif); }
.ficha-k { margin: 0; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--taupe); }
.ficha-t { font-size: clamp(24px, 2.6vw, 34px); margin: 4px 0 6px; }
.ficha-d { margin: 0; color: #555; max-width: 60ch; }
.ficha-hint { margin: 0; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--arena); }
.ficha.swap > * { animation: fadeUp .5s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; translate: 0 8px; } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vw, 160px) var(--pad); }
.section-alt { background: var(--lino); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: clamp(40px, 6vw, 80px); }
.section-sub { color: #555; max-width: 52ch; margin: 20px 0 0; }

.reveal {
  @media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
      animation: fadeUp linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}

/* ---------- Estimator ---------- */
.estimator {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.est-form { display: grid; gap: 40px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend, .field > label {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--taupe);
  margin-bottom: 14px; padding: 0;
}
.field > label { display: flex; justify-content: space-between; align-items: baseline; }
.field output { font: 300 28px var(--serif); color: var(--carbon); letter-spacing: 0; text-transform: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 10px 18px; border: 1px solid var(--line);
  font-size: 14px; cursor: pointer; transition: border-color .3s, background-color .3s, color .3s;
}
.chips label:hover span { border-color: var(--carbon); }
.chips input:checked + span { background: var(--carbon); border-color: var(--carbon); color: var(--white); }
.chips input:focus-visible + span { outline: 1px solid var(--carbon); outline-offset: 3px; }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer;
  --p: 50%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 1px; background: linear-gradient(var(--carbon) 0 0) 0 / var(--p) 100% no-repeat, var(--beige);
}
input[type="range"]::-moz-range-track { height: 1px; background: var(--beige); }
input[type="range"]::-moz-range-progress { height: 1px; background: var(--carbon); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; margin-top: -7.5px;
  background: var(--white); border: 1px solid var(--carbon); border-radius: 0; rotate: 45deg;
  transition: scale .2s;
}
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; background: var(--white); border: 1px solid var(--carbon); border-radius: 0; rotate: 45deg;
}
input[type="range"]:active::-webkit-slider-thumb { scale: 1.3; }
input[type="range"]:focus-visible { outline: 1px dashed var(--taupe); outline-offset: 6px; }

.switch { display: flex; align-items: center; gap: 14px; font-size: 14px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 40px; height: 20px; border: 1px solid var(--carbon); position: relative; transition: background-color .3s; }
.switch span::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; background: var(--carbon);
  transition: translate .3s var(--ease), background-color .3s;
}
.switch input:checked + span { background: var(--carbon); }
.switch input:checked + span::after { translate: 20px 0; background: var(--white); }
.switch input:focus-visible + span { outline: 1px dashed var(--taupe); outline-offset: 4px; }

.est-result {
  position: sticky; top: 100px;
  border: 1px solid var(--carbon); padding: clamp(28px, 3vw, 44px);
}
.est-total { font: 300 clamp(36px, 4.2vw, 58px)/1 var(--serif); margin: 0 0 28px; font-variant-numeric: tabular-nums; }
.est-total i { font-style: normal; color: var(--arena); margin: 0 .2em; }
.est-lines { margin: 0 0 28px; }
.est-lines div { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.est-lines dt { color: #666; }
.est-lines dd { margin: 0; font-weight: 400; font-variant-numeric: tabular-nums; }
.milestones { display: flex; gap: 4px; margin-bottom: 28px; }
.milestones div { flex: var(--w); border-top: 3px solid var(--carbon); padding-top: 8px; font-size: 11px; }
.milestones div:nth-child(2) { border-color: var(--taupe); }
.milestones div:nth-child(3) { border-color: var(--beige); }
.milestones b { display: block; font-weight: 500; }
.milestones span { color: var(--taupe); letter-spacing: .08em; text-transform: uppercase; }
.fine { font-size: 11px; color: var(--taupe); margin: 16px 0 0; }

.btn {
  display: inline-flex; justify-content: center; width: 100%;
  padding: 16px 28px; background: var(--carbon); color: var(--white);
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--carbon); transition: background-color .35s, color .35s;
}
.btn:hover, .btn:focus-visible { background: var(--white); color: var(--carbon); }
.btn-ghost { width: auto; background: transparent; color: var(--carbon); margin-top: 40px; }
.btn-ghost:hover { background: var(--carbon); color: var(--white); }

/* ---------- BIM ---------- */
.bim-formats { display: flex; gap: 0; list-style: none; padding: 0; margin: 0 0 32px; border-bottom: 1px solid var(--line); }
.bim-formats button {
  background: none; border: 0; padding: 14px 22px; margin-bottom: -1px; cursor: pointer;
  font: 400 12px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--taupe);
  border-bottom: 1px solid transparent; transition: color .3s, border-color .3s;
}
.bim-formats button[aria-selected="true"] { color: var(--carbon); border-color: var(--carbon); }
.bim-sheet { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.bim-model {
  position: relative; background: var(--white); aspect-ratio: 1; display: grid; place-items: center;
  border: 1px solid var(--line);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 24px 24px;
}
.bim-model svg { width: 70%; color: var(--carbon); }
.lod { position: absolute; top: 14px; left: 14px; font-size: 10px; letter-spacing: .2em; background: var(--carbon); color: var(--white); padding: 4px 8px; }
.spec { margin: 0; }
.spec div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.spec div:last-child { border-bottom: 1px solid var(--line); }
.spec dt { color: var(--taupe); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; padding-top: 2px; }
.spec dd { margin: 0; }

/* ---------- Atelier ---------- */
.atelier { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 7vw, 120px); align-items: center; }
.atelier-img { margin: 0; }
.atelier-img img { filter: grayscale(1) contrast(1.02); }
.atelier-img figcaption { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--taupe); margin-top: 12px; }
.atelier-text h2 { font-size: clamp(44px, 6vw, 84px); margin-bottom: 32px; }
.atelier-text p { color: #555; max-width: 48ch; }
.process { list-style: none; padding: 0; margin: 36px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.process li { background: var(--white); padding: 18px; display: flex; gap: 14px; align-items: baseline; font-size: 14px; transition: background-color .3s; }
.process li:hover { background: var(--lino); }
.process b { font: 400 22px var(--serif); color: var(--arena); min-width: 28px; }
.stats { display: flex; gap: clamp(24px, 4vw, 56px); margin: 0; }
.stats dt { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe); order: 2; }
.stats div { display: flex; flex-direction: column; }
.stats dd { margin: 0; font: 300 52px/1 var(--serif); }

/* ---------- Contact / Footer ---------- */
.contact { text-align: center; padding: clamp(100px, 14vw, 180px) var(--pad); border-top: 1px solid var(--line); }
.contact-mark { width: 88px; height: 82px; margin: 0 auto 36px; display: block; }
.contact h2 { font-size: clamp(40px, 6vw, 84px); margin-bottom: 28px; }
.contact-mail { font: 300 clamp(20px, 2.4vw, 28px) var(--serif); font-style: italic; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.site-footer {
  display: flex; justify-content: space-between; padding: 28px var(--pad);
  border-top: 1px solid var(--line); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe);
}

.legal-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.legal-links a { text-decoration: none; transition: color .3s; }
.legal-links a:hover, .legal-links a[aria-current="page"] { color: var(--carbon); }

/* ---------- Subpáginas ---------- */
.page { padding: clamp(56px, 9vw, 120px) var(--pad) clamp(80px, 10vw, 140px); }
.page-head { max-width: 900px; margin-bottom: clamp(48px, 7vw, 96px); animation: fadeUp .8s var(--ease) both;
  @media (prefers-reduced-motion: reduce) { animation: none; } }
.page-head h1 { font-size: clamp(52px, 8vw, 120px); }
.updated { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--arena); margin: 24px 0 0; }
mark.dato { background: var(--lino); color: var(--taupe); padding: 1px 6px; border: 1px dashed var(--arena); }

.legal-body { display: grid; grid-template-columns: 220px 1fr; gap: clamp(32px, 7vw, 120px); align-items: start; }
.toc { position: sticky; top: 110px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; border-left: 1px solid var(--line); }
.toc li { counter-increment: t; }
.toc a {
  display: block; padding: 8px 0 8px 18px; margin-left: -1px; border-left: 1px solid transparent;
  font-size: 13px; text-decoration: none; color: var(--taupe); transition: color .3s, border-color .3s;
}
.toc a::before { content: counter(t, upper-roman) "  "; font-family: var(--serif); color: var(--arena); }
.toc a:hover { color: var(--carbon); border-color: var(--carbon); }

.legal article { max-width: 720px; }
.legal section { padding: 0 0 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.legal section:last-child { border: 0; }
.legal h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 20px; }
.legal p, .legal li, .legal td { color: #4a4846; }
.legal a { text-underline-offset: 4px; text-decoration-thickness: 1px; }
.legal strong { font-weight: 500; color: var(--carbon); }
.data { margin: 0; }
.data div { display: grid; grid-template-columns: 140px 1fr; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.data dt { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--taupe); padding-top: 3px; }
.data dd { margin: 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 20px; }
.legal th { text-align: left; font-weight: 400; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--taupe); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--carbon); }
.legal td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.callout { font: 300 clamp(22px, 2.4vw, 30px)/1.35 var(--serif); color: var(--carbon) !important; border-left: 2px solid var(--carbon); padding-left: 24px; margin: 0; }
.browser-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.browser-list a { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); text-decoration: none; font-size: 14px; transition: border-color .3s; }
.browser-list a:hover { border-color: var(--carbon); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(40px, 8vw, 140px); align-items: start; }
.contact-info dl { margin: 0; }
.contact-info div { padding: 18px 0; border-top: 1px solid var(--line); }
.contact-info dt { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe); margin-bottom: 6px; }
.contact-info dd { margin: 0; font: 300 22px/1.4 var(--serif); }
.contact-info a { text-decoration: none; background: linear-gradient(currentColor 0 0) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.contact-info a:hover { background-size: 100% 1px; }
.contact-info-mark { width: 72px; height: 66px; margin-top: 48px; color: var(--beige); }

.cform { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 28px; }
.cform fieldset, .cfield-full { grid-column: 1 / -1; }
.cfield { display: flex; flex-direction: column; }
.cfield label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe); margin-bottom: 8px; }
.opt { text-transform: none; letter-spacing: 0; color: var(--arena); font-style: italic; margin-left: 6px; }
.cfield input, .cfield textarea {
  font: 300 17px var(--sans); color: var(--carbon); background: transparent;
  border: 0; border-bottom: 1px solid var(--beige); padding: 10px 0; border-radius: 0;
  transition: border-color .3s;
}
.cfield textarea { resize: vertical; min-height: 130px; }
.cfield textarea::placeholder { color: var(--arena); }
.cfield input:focus, .cfield textarea:focus { outline: none; border-color: var(--carbon); }
.cfield input:autofill { box-shadow: inset 0 0 0 100px var(--lino); }
.err { display: none; margin: 8px 0 0; font-size: 13px; color: #9b3b2e; }
.err::before { content: "— "; }
.cfield :is(input, textarea):user-invalid,
.submitted .cfield :is(input, textarea):invalid { border-color: #9b3b2e; }
.cfield :is(input, textarea):user-invalid ~ .err,
.submitted .cfield :is(input, textarea):invalid ~ .err { display: block; }
.cfield :is(input, textarea):user-valid { border-color: var(--carbon); }

.check { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; color: #555; cursor: pointer; }
.check input { appearance: none; flex: none; width: 18px; height: 18px; margin: 2px 0 0; border: 1px solid var(--carbon); display: grid; place-items: center; cursor: pointer; }
.check input::after { content: ""; width: 8px; height: 8px; background: var(--carbon); scale: 0; transition: scale .2s var(--ease); }
.check input:checked::after { scale: 1; }
.check input:focus-visible { outline: 1px dashed var(--taupe); outline-offset: 3px; }
.submitted .check input:invalid { border-color: #9b3b2e; }
.check a { text-underline-offset: 3px; }
.cform .btn { width: auto; min-width: 240px; }
.form-status { margin: 16px 0 0; font-size: 14px; color: var(--taupe); min-height: 1.5em; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav li:not(:last-child) { display: none; }
  .hero-intro, .estimator, .bim-sheet, .atelier { grid-template-columns: 1fr; }
  .ficha { grid-template-columns: auto 1fr; }
  .ficha-hint { display: none; }
  .est-result { position: static; }
  .spec div { grid-template-columns: 1fr; gap: 2px; }
  .spot { width: 26px; height: 26px; font-size: 10px; }
  .legal-body, .contact-grid, .cform { grid-template-columns: 1fr; }
  .toc { position: static; }
  .data div { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; gap: 14px; }
  .legal-links { flex-wrap: wrap; gap: 16px; }
}
