/* =============================================================
   Piedralba Construcciones — demo
   1. Tokens
   ============================================================= */
:root {
  --paper:    #F2F0EB;
  --paper-2:  #E8E5DE;
  --card:     #FBFAF7;
  --ink:      #12161B;
  --ink-2:    #424951;
  --mute:     #6C7279;
  --navy:     #101A26;
  --navy-2:   #1A2736;
  --accent:   #D9461F;
  --accent-d: #B23615;   /* texto pequeño sobre claro */
  --accent-l: #FF7A54;   /* sobre oscuro */
  --line:     rgba(18, 22, 27, .11);
  --line-inv: rgba(242, 240, 235, .14);

  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --sans:    "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:    "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --ease:   cubic-bezier(.32, .72, 0, 1);
  --r-out:  28px;
  --bezel:  6px;
  --r-in:   calc(var(--r-out) - var(--bezel));
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section: clamp(5rem, 11vw, 9.5rem);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; overflow-x: clip; }
body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a[href^="tel:"] { white-space: nowrap; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
ul, ol { list-style: none; padding: 0; }
address { font-style: normal; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); font-stretch: 112%; font-weight: 700; line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 100; padding: .6rem 1rem; background: var(--ink); color: var(--paper); border-radius: 10px; }
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Layout
   ============================================================= */
.wrap { width: min(100% - 2 * var(--gutter), 1240px); margin-inline: auto; }
.section { padding-block: var(--section); }
.section-alt { background: var(--paper-2); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head h2, .band h2, .contact h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); margin-top: 1.1rem; }
.lead { margin-top: 1.25rem; font-size: 1.15rem; color: var(--ink-2); max-width: 38rem; }
.link { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; transition: color .3s var(--ease); }
.link:hover { color: var(--accent-d); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .4rem .85rem; border-radius: 999px;
  font: 500 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2); background: rgba(18, 22, 27, .05); box-shadow: inset 0 0 0 1px var(--line);
}
.eyebrow .num { color: var(--accent-d); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.eyebrow-inv { color: rgba(242, 240, 235, .8); background: rgba(242, 240, 235, .06); box-shadow: inset 0 0 0 1px var(--line-inv); }
.eyebrow-inv .num { color: var(--accent-l); }

/* Doble bisel */
.shell { padding: var(--bezel); border-radius: var(--r-out); background: rgba(18, 22, 27, .045); box-shadow: inset 0 0 0 1px rgba(18, 22, 27, .06); }
.core { height: 100%; border-radius: var(--r-in); background: var(--card); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 2px rgba(18, 22, 27, .04), 0 18px 40px -24px rgba(18, 22, 27, .18); }
.core-dark { background: var(--navy); color: var(--paper); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 24px 50px -28px rgba(16, 26, 38, .6); }
.core-tint { background: #E3DFD6; }
.shell-inv { background: rgba(242, 240, 235, .06); box-shadow: inset 0 0 0 1px var(--line-inv); }

/* =============================================================
   4. Botones
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .9rem;
  padding: .55rem .6rem .55rem 1.4rem; min-height: 3.25rem; border-radius: 999px;
  font-weight: 500; font-size: 1rem; line-height: 1.2;
  color: #fff; background: var(--ink);
  transition: transform .5s var(--ease), background-color .5s var(--ease);
}
.btn:hover { background: #000; }
.btn:active { transform: scale(.98); }
.btn-ico { flex: none; display: grid; place-items: center; width: 2.15rem; height: 2.15rem; border-radius: 50%; background: var(--accent); transition: transform .5s var(--ease); }
.btn-ico svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover .btn-ico { transform: translate(2px, -2px) scale(1.06); }
.btn-ghost { padding-inline: 1.4rem; color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1px rgba(18, 22, 27, .2); }
.btn-ghost:hover { background: rgba(18, 22, 27, .06); }
.btn-sm { min-height: 2.6rem; padding: .4rem 1.1rem; font-size: .92rem; }
.btn-block { width: 100%; justify-content: space-between; }

/* =============================================================
   5. Navegación
   ============================================================= */
.nav { position: fixed; top: .9rem; left: 0; right: 0; z-index: 50; padding-inline: var(--gutter); pointer-events: none; }
.nav-pill {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  width: min(100%, 1180px); margin-inline: auto; padding: .45rem .5rem .45rem 1.1rem;
  border-radius: 999px; background: rgba(247, 245, 240, .94);
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px -18px rgba(18, 22, 27, .35);
  transition: box-shadow .6s var(--ease);
}
@supports (backdrop-filter: blur(12px)) {
  .nav-pill { background: rgba(247, 245, 240, .72); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); }
}
.nav.is-scrolled .nav-pill { box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -20px rgba(18, 22, 27, .45); }

.logo { display: inline-flex; align-items: center; gap: .65rem; }
.logo-mark { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: square; }
.logo-mark path:last-child { stroke: var(--accent); }
.logo-text { display: grid; font: 700 1.08rem/1 var(--display); font-stretch: 112%; letter-spacing: -.02em; }
.logo-text small { margin-top: .22rem; font: 500 .56rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.logo-inv .logo-mark { stroke: var(--paper); }
.logo-inv .logo-text small { color: rgba(242, 240, 235, .55); }

.nav-links { display: none; gap: .25rem; }
.nav-links a { padding: .55rem .85rem; border-radius: 999px; font-size: .94rem; color: var(--ink-2); transition: background-color .4s var(--ease), color .4s var(--ease); }
.nav-links a:hover { color: var(--ink); background: rgba(18, 22, 27, .06); }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.nav-phone { display: none; padding-inline: .6rem; font: 500 .9rem var(--mono); letter-spacing: .02em; }
.nav-actions .btn { display: none; }

.burger { position: relative; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--ink); }
.burger span { position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; margin-left: -8px; background: var(--paper); transition: transform .6s var(--ease); }
.burger span:first-child { transform: translateY(-3.5px); }
.burger span:last-child { transform: translateY(3.5px); }
.burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 7rem var(--gutter) 2.5rem;
  background: var(--navy); color: var(--paper);
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
.menu nav { display: grid; gap: .2rem; }
.menu nav a {
  padding: .5rem 0; font: 700 clamp(1.9rem, 8vw, 2.6rem)/1.15 var(--display); font-stretch: 112%; letter-spacing: -.025em;
  border-bottom: 1px solid var(--line-inv);
  opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .7s var(--ease);
}
.menu.is-open nav a { opacity: 1; transform: none; }
.menu.is-open nav a:nth-child(2) { transition-delay: .05s; }
.menu.is-open nav a:nth-child(3) { transition-delay: .1s; }
.menu.is-open nav a:nth-child(4) { transition-delay: .15s; }
.menu.is-open nav a:nth-child(5) { transition-delay: .2s; }
.menu.is-open nav a:nth-child(6) { transition-delay: .25s; color: var(--accent-l); }
.menu-foot { font: 400 .85rem var(--mono); color: rgba(242, 240, 235, .65); }
.menu-foot a { color: var(--paper); }

/* =============================================================
   6. Hero
   ============================================================= */
.hero { padding-top: clamp(7rem, 14vw, 10.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
.hero-title { margin-top: 1.4rem; font-size: clamp(2.5rem, 6.1vw, 5rem); font-weight: 750; line-height: .98; letter-spacing: -.035em; max-width: 13ch; }
.hero-title em { font-style: normal; color: var(--accent); }
.hero-sub { margin-top: 1.6rem; max-width: 34rem; font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.2rem; }
.hero-note { margin-top: 1.3rem; font-size: .9rem; color: var(--mute); }

.plan { position: relative; display: flex; flex-direction: column; background: var(--navy); color: #E6EBF1; overflow: hidden; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 60px -30px rgba(16, 26, 38, .7); }
.plan::before, .work-img::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(230, 235, 241, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(230, 235, 241, .055) 1px, transparent 1px);
  background-size: 28px 28px;
}
.plan-head, .plan-foot { position: relative; display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; font: 400 .68rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(230, 235, 241, .6); }
.plan-foot { border-top: 1px solid var(--line-inv); }
.plan .dwg { position: relative; padding: .5rem 1rem 1rem; }

/* Dibujo técnico */
.dwg { width: 100%; height: auto; color: #E6EBF1; overflow: visible; }
.dwg :is(path, rect, line, circle) { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; }
.dwg .thin { opacity: .5; }
.dwg .d { stroke-dasharray: 4 5; opacity: .4; }
.dwg .a { stroke: var(--accent-l); }
.dwg text { font: 500 10px var(--mono); letter-spacing: .08em; fill: rgba(230, 235, 241, .7); stroke: none; transition: opacity .8s var(--ease) .9s; }
.dwg text.a { fill: var(--accent-l); stroke: none; }
.dwg.is-pending text { opacity: 0; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--line); }
.stats > div { display: flex; flex-direction: column-reverse; gap: .5rem; padding: 1.5rem 1rem 1.5rem 0; border-bottom: 1px solid var(--line); }
.stats dd { font: 700 clamp(2.2rem, 4.6vw, 3.6rem)/1 var(--display); font-stretch: 112%; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats dt { font-size: .88rem; color: var(--mute); max-width: 14rem; }

/* =============================================================
   7. Servicios
   ============================================================= */
.bento { display: grid; gap: 1rem; }
.svc .core { position: relative; display: flex; flex-direction: column; padding: clamp(1.6rem, 3vw, 2.4rem); overflow: hidden; }
.svc-n { font: 500 .72rem var(--mono); letter-spacing: .14em; color: var(--accent-d); }
.core-dark .svc-n { color: var(--accent-l); }
.svc h3 { margin-top: 1.1rem; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.svc p { margin-top: .9rem; max-width: 32rem; color: var(--ink-2); }
.core-dark p { color: rgba(242, 240, 235, .74); }
.ticks { display: grid; gap: .55rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .96rem; }
.core-dark .ticks { border-color: var(--line-inv); }
.ticks li { position: relative; padding-left: 1.4rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: .7rem; height: 1px; background: var(--accent); }
.core-dark .ticks li::before { background: var(--accent-l); }
.svc-dwg { margin-top: auto; padding-top: 2rem; max-width: 26rem; align-self: flex-end; }

/* =============================================================
   8. Obras
   ============================================================= */
.section-head-row { max-width: none; display: grid; gap: 1.75rem; align-items: end; }
.section-head-row > div:first-child { max-width: 44rem; }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.filters button { padding: .55rem 1rem; border-radius: 999px; font-size: .9rem; color: var(--ink-2); box-shadow: inset 0 0 0 1px rgba(18, 22, 27, .16); transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease); }
.filters button:hover { background: rgba(18, 22, 27, .06); }
.filters button.is-on { color: var(--paper); background: var(--ink); box-shadow: none; }

.works { display: grid; gap: 1rem; }
.work .core { display: flex; flex-direction: column; overflow: hidden; }
.work[hidden] { display: none; }
.work-img { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 1.25rem 1.5rem; background: var(--navy); overflow: hidden; }
.work-img:has(img) { padding: 0; }
.work-img:has(img)::before { content: none; }
.work-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.work:hover .work-img img { transform: scale(1.04); }
.tag { position: absolute; left: 1rem; top: 1rem; padding: .38rem .7rem; border-radius: 999px; font: 500 .64rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--navy); background: var(--paper); }
.work-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.5rem 1.4rem; }
.work-body h3 { font-size: 1.28rem; line-height: 1.15; letter-spacing: -.02em; }
.work-body p { margin-top: .7rem; font-size: .96rem; color: var(--ink-2); }
.specs { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: 1.4rem; }
.specs div { padding-top: .9rem; border-top: 1px solid var(--line); }
.specs dt { font: 400 .64rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.specs dd { margin-top: .25rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.works-empty { padding: 3rem 0; color: var(--mute); }

/* =============================================================
   9. Proceso
   ============================================================= */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.split-head .btn { margin-top: 2rem; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.25rem; padding: 1.75rem 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-n { font: 500 .8rem/1.9 var(--mono); letter-spacing: .1em; color: var(--accent-d); }
.steps h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.steps p { margin-top: .55rem; color: var(--ink-2); max-width: 34rem; }
.step-t { grid-column: 2; justify-self: start; margin-top: .6rem; padding: .32rem .7rem; border-radius: 999px; font: 500 .64rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }

/* =============================================================
   10. Compromisos (banda oscura)
   ============================================================= */
.band { margin-inline: clamp(.5rem, 1.2vw, 1rem); padding-block: var(--section); border-radius: clamp(1.5rem, 3vw, 2.5rem); background: var(--navy); color: var(--paper); }
.band-grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.pledges { margin-top: 2.5rem; }
.pledges li { display: grid; gap: .35rem; padding: 1.25rem 0; border-top: 1px solid var(--line-inv); }
.pledges strong { font: 700 1.15rem var(--display); font-stretch: 112%; letter-spacing: -.01em; }
.pledges span { color: rgba(242, 240, 235, .7); font-size: .98rem; }

.report .core { padding: clamp(1.4rem, 3vw, 2rem); color: var(--ink); }
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.report-head strong { display: block; margin-top: .3rem; font: 700 1.35rem var(--display); font-stretch: 112%; letter-spacing: -.02em; }
.report-k { font: 500 .64rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.report-ok { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .75rem; border-radius: 999px; font: 500 .68rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #1E5C3A; background: #DCEBDD; white-space: nowrap; }
.report-ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #2E8552; }
.report-obra { margin-top: .5rem; font-size: .92rem; color: var(--ink-2); }
.bars { display: grid; gap: 1rem; margin-top: 1.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.bars li { display: grid; grid-template-columns: 1fr auto; gap: .45rem 1rem; align-items: baseline; font-size: .92rem; }
.bars b { font: 500 .8rem var(--mono); font-variant-numeric: tabular-nums; }
.bars i { grid-column: 1 / -1; grid-row: 2; position: relative; height: 6px; border-radius: 99px; background: rgba(18, 22, 27, .08); overflow: hidden; }
.bars i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--ink); transform-origin: left; transform: scaleX(calc(var(--v) / 100%)); transition: transform 1.4s var(--ease) .3s; }
.bars li:nth-child(n+3) i::after { background: var(--accent); }
.js .report:not(.is-visible) .bars i::after { transform: scaleX(0); }
.report-foot { display: grid; gap: 1.1rem; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.report-foot p { margin-top: .4rem; font-size: .92rem; color: var(--ink-2); }

/* =============================================================
   11. Empresa y opiniones
   ============================================================= */
.about { display: grid; gap: 1rem clamp(2rem, 6vw, 5rem); }
.about .section-head { margin-bottom: 1rem; }
.about-body > p { font-size: 1.12rem; color: var(--ink-2); max-width: 36rem; }
.about-body > p + p { margin-top: 1.1rem; color: var(--ink); font-weight: 500; }
.creds { display: grid; gap: .1rem; margin-top: 2.2rem; }
.creds li { display: flex; gap: .9rem; align-items: flex-start; padding: .9rem 0; border-top: 1px solid var(--line); font-size: .98rem; }
.creds svg { flex: none; width: 20px; height: 20px; margin-top: .15rem; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.quotes { display: grid; gap: 1rem; margin-top: clamp(3.5rem, 8vw, 6rem); }
.quote .core { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: clamp(1.5rem, 2.6vw, 2rem); }
.quote blockquote { font-size: 1.1rem; line-height: 1.5; letter-spacing: -.005em; }
.quote blockquote::before { content: "“"; display: block; height: 2.2rem; font: 700 3.4rem/1 var(--display); color: var(--accent); }
.quote figcaption { display: grid; gap: .15rem; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: .9rem; }
.quote figcaption span { color: var(--mute); }

/* =============================================================
   12. FAQ
   ============================================================= */
.faq details { border-top: 1px solid rgba(18, 22, 27, .16); }
.faq details:last-child { border-bottom: 1px solid rgba(18, 22, 27, .16); }
.faq summary { position: relative; display: block; padding: 1.4rem 3rem 1.4rem 0; font: 600 clamp(1.08rem, 1.6vw, 1.25rem)/1.3 var(--display); font-stretch: 108%; letter-spacing: -.01em; cursor: pointer; list-style: none; transition: color .3s var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-d); }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: .6rem; top: 50%; width: 14px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { padding: 0 3rem 1.6rem 0; max-width: 40rem; color: var(--ink-2); }

/* =============================================================
   13. Contacto
   ============================================================= */
.contact { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact-list { margin-top: 2.5rem; }
.contact-list li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list span { font: 400 .68rem/1.9 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.contact-list a { font-weight: 500; transition: color .3s var(--ease); }
.contact-list a:hover { color: var(--accent-d); }

.form-shell .core { padding: clamp(1.4rem, 3.4vw, 2.5rem); }
.form { display: grid; gap: 1.1rem; }
.field-row { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .45rem; }
.field label { font-size: .88rem; font-weight: 500; }
.field label small { font-weight: 400; color: var(--mute); font-size: 1em; }
.field :is(input, select, textarea) {
  width: 100%; padding: .85rem 1rem; border: 0; border-radius: 14px;
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(18, 22, 27, .14);
  transition: box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 7rem; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2312161B' stroke-width='1.5'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 16px; padding-right: 2.75rem; }
.field :is(input, select, textarea):focus { outline: none; background-color: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.form.was-validated .field :is(input, select, textarea):invalid { box-shadow: inset 0 0 0 2px var(--accent); }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--ink); }
.form.was-validated .check input:invalid + span { color: var(--accent-d); }
.form-error { padding: .8rem 1rem; border-radius: 12px; font-size: .92rem; color: #7A2410; background: #F8DDD4; }
.form-note { font-size: .82rem; color: var(--mute); text-align: center; }
.form-done { display: grid; justify-items: start; gap: .8rem; padding: 2rem 0; }
.form-done[hidden], .form[hidden] { display: none; }
.form-done svg { width: 52px; height: 52px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.form-done h3 { font-size: 1.7rem; }
.form-done p { color: var(--ink-2); max-width: 30rem; }

/* =============================================================
   14. Footer y barra móvil
   ============================================================= */
.footer { margin-top: 0; padding: clamp(3.5rem, 7vw, 5.5rem) 0 6.5rem; background: var(--navy); color: rgba(242, 240, 235, .72); font-size: .94rem; }
.footer-top { display: grid; gap: 2.5rem; }
.footer-claim { margin-top: 1.2rem; max-width: 22rem; }
.footer h4 { margin-bottom: 1rem; font: 500 .66rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: rgba(242, 240, 235, .5); }
.footer-top a:not(.logo) { display: block; padding: .28rem 0; color: var(--paper); transition: color .3s var(--ease); }
.footer-top a:not(.logo):hover { color: var(--accent-l); }
.footer-top p { margin-top: .4rem; }
.footer .logo { color: var(--paper); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-inv); font-size: .84rem; }
.demo-note { font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: rgba(242, 240, 235, .5); }

.mbar { position: fixed; left: .6rem; right: .6rem; bottom: .6rem; z-index: 30; display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: .3rem; padding: .3rem; border-radius: 999px; background: rgba(16, 26, 38, .96); box-shadow: 0 16px 36px -14px rgba(16, 26, 38, .7); }
.mbar a { display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.9rem; border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--paper); }
.mbar svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.mbar .mbar-main { background: var(--accent); color: #fff; }

/* Página legal */
.legal { padding-top: clamp(7rem, 14vw, 10rem); padding-bottom: var(--section); }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-top: 1.2rem; }
.legal h2 { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line); font-size: 1.7rem; }
.legal h3 { margin-top: 1.8rem; font-size: 1.12rem; letter-spacing: -.01em; }
.legal p, .legal li { margin-top: .8rem; color: var(--ink-2); }
.legal ul { list-style: disc; padding-left: 1.2rem; }
.legal mark { padding: .05em .35em; border-radius: 4px; background: #F6E3A8; color: var(--ink); }

/* =============================================================
   15. Entrada al hacer scroll
   ============================================================= */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =============================================================
   16. Responsive (mobile-first)
   ============================================================= */
@media (min-width: 540px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .works { grid-template-columns: 1fr 1fr; }
  .report-foot { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 720px) {
  .mbar { display: none; }
  .footer { padding-bottom: 2.5rem; }
  .nav-actions .btn { display: inline-flex; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stats > div { padding-left: 1.5rem; border-left: 1px solid var(--line); border-bottom: 0; }
  .stats > div:first-child { padding-left: 0; border-left: 0; }
  .bento { grid-template-columns: repeat(12, 1fr); }
  .svc-a, .svc-d { grid-column: span 7; }
  .svc-b, .svc-c { grid-column: span 5; }
  .ticks-row { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .steps li { grid-template-columns: 3.5rem 1fr auto; align-items: start; }
  .step-t { grid-column: auto; margin-top: .35rem; }
  .footer-top { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .burger { display: none; }
  .menu { display: none; }
  .hero-grid { grid-template-columns: 1.08fr .92fr; }
  .works { grid-template-columns: repeat(3, 1fr); }
  .section-head-row { grid-template-columns: 1fr auto; }
  .split { grid-template-columns: .85fr 1.15fr; }
  .split-head { position: sticky; top: 7rem; align-self: start; margin-bottom: 0; }
  .band-grid { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr 1fr; align-items: start; }
  .contact { grid-template-columns: .9fr 1.1fr; }
  .contact-copy { position: sticky; top: 7rem; }
}
@media (min-width: 1280px) {
  .nav-phone { display: block; }
}

/* =============================================================
   17. Movimiento reducido: sin desplazamientos, solo fundidos
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; }
  .work:hover .work-img img { transform: none; }
}
