/* Shared foundation for the three prototypes.
 * Each theme defines these tokens on :root and owns its own composition.
 *   --bg --surface --surface-2 --text --muted --line --line-strong
 *   --accent --accent-hover --on-accent --focus --danger --danger-bg --ok --ok-bg
 *   --font-body --font-display --radius-s --radius-m --container
 * z-index scale: header 20, mobile bar 30, review panel 40, dialog (top layer).
 */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
dialog { color: inherit; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--text); color: var(--bg); padding: .75rem 1rem; border-radius: var(--radius-s);
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* ---------- prototype bar ---------- */
.proto-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem;
  padding: .5rem 1rem; font-family: var(--font-body); font-size: .8125rem; line-height: 1.4;
  background: var(--surface-2); color: var(--muted); border-bottom: 1px solid var(--line);
}
.proto-bar p { margin-right: auto; }
.proto-bar strong { color: var(--text); }
.proto-bar a, .proto-bar button {
  color: var(--text); background: none; border: 0; padding: .25rem 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.proto-bar .review-toggle[aria-pressed="true"] { font-weight: 700; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.375rem; border: 1px solid transparent;
  border-radius: var(--radius-s); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .18s ease-out, border-color .18s ease-out, transform .12s ease-out;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: .7; cursor: progress; }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--text); }
.btn-link {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 48px;
  font-weight: 600; color: var(--text); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.btn-link:hover { text-decoration-thickness: 2px; }
.btn .ph, .btn-link .ph { font-size: 1.25em; }

/* ---------- own-photo placeholder (plan section 5, option 1) ---------- */
.slot { margin: 0; }
.slot-frame {
  display: grid; place-content: center; justify-items: center; gap: .35rem;
  aspect-ratio: 4 / 3; padding: 1.5rem; text-align: center;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--line) 55%, transparent) 14px 15px),
    var(--surface-2);
  border: 1px dashed var(--line-strong); border-radius: var(--radius-m); color: var(--muted);
}
.slot-frame .ph { font-size: 1.75rem; }
.slot-title { font-size: .8125rem; font-weight: 600; letter-spacing: .02em; }
.slot-label { font-size: 1rem; color: var(--text); max-width: 28ch; }
.slot figcaption { margin-top: .5rem; font-size: .875rem; color: var(--muted); }

/* ---------- review mode ---------- */
.review .pend {
  background: #fff1b8; color: #1d1d1b; box-shadow: 0 0 0 2px #d97706; border-radius: 2px;
}
.review [data-pending] { outline: 2px dashed #d97706; outline-offset: 4px; }
.review [data-review-n] { position: relative; }
.review [data-review-n]::before {
  content: attr(data-review-n); position: absolute; top: -.7rem; left: -.7rem; z-index: 2;
  min-width: 1.4rem; height: 1.4rem; padding: 0 .3rem; border-radius: 1rem;
  background: #b45309; color: #fff; font: 700 .75rem/1.4rem system-ui, sans-serif; text-align: center;
}
.flash { animation: flash 1.2s ease-out; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 6px #f59e0b; } 100% { box-shadow: 0 0 0 0 transparent; } }
.review-panel {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 40; width: min(380px, calc(100% - 2rem));
  max-height: min(60vh, 520px); overflow: auto; padding: 1rem 1.125rem;
  background: #fffdf5; color: #1d1d1b; border: 1px solid #e9d8a6; border-radius: 10px;
  box-shadow: 0 12px 32px rgb(60 40 0 / .18); font: .875rem/1.45 system-ui, sans-serif;
}
.review-panel h2 { font: 700 .9375rem/1.3 system-ui, sans-serif; margin-bottom: .5rem; }
.review-panel ol { padding-left: 1.25rem; display: grid; gap: .35rem; }
.review-panel button {
  background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: #1d1d1b;
  text-decoration: underline; text-underline-offset: 2px;
}

/* ---------- lightbox ---------- */
dialog.lightbox {
  width: min(100vw - 2rem, 1100px); height: min(100dvh - 2rem, 920px); max-width: none; max-height: none;
  padding: 0; border: 0; border-radius: var(--radius-m); background: #121619; color: #f3f1ec;
  display: none; grid-template-rows: auto 1fr; overflow: hidden;
}
dialog.lightbox[open] { display: grid; }
dialog.lightbox::backdrop { background: rgb(10 14 16 / .78); }
.lb-head { display: flex; align-items: center; gap: 1rem; padding: .75rem 1rem .75rem 1.25rem; }
.lb-title { font: 600 1rem/1.3 var(--font-body); margin-right: auto; }
.lb-count { font-size: .875rem; color: #c9c6be; font-variant-numeric: tabular-nums; }
.lb-close, .lb-prev, .lb-next {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgb(255 255 255 / .22); background: rgb(18 22 25 / .72); color: #fff; cursor: pointer;
  font-size: 1.25rem;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgb(255 255 255 / .14); }
.lb-figure { margin: 0; display: grid; grid-template-rows: 1fr auto; min-height: 0; padding: 0 4.5rem 1rem; }
.lb-img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.lb-caption { padding-top: .75rem; font-size: .9375rem; text-align: center; color: #dedbd3; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: .75rem; }
.lb-next { right: .75rem; }
@media (max-width: 640px) {
  .lb-figure { padding: 0 .5rem 5rem; }
  .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; }
  .lb-prev { left: calc(50% - 56px); }
  .lb-next { right: calc(50% - 56px); }
}

/* ---------- lead form ---------- */
.lead-form { display: grid; gap: 1.5rem; }
/* The form needs JavaScript to deliver anything: without it, <noscript> offers the channels. */
html:not(.js) .lead-form { display: none; }
.form-noscript { display: grid; gap: 1rem; }
.form-noscript .actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.field { display: grid; gap: .4rem; }
.field label, .field legend { font-weight: 600; font-size: 1rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius-s); font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--text);
}
.field [aria-invalid="true"] { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.hint { font-size: .9375rem; color: var(--muted); }
.error { font-size: .9375rem; font-weight: 600; color: var(--danger); }
.error::before { content: "\26A0\FE0E  "; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: .5rem; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: .5rem; }
.choice {
  display: flex; align-items: center; gap: .65rem; min-height: 48px; padding: .6rem .85rem;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-s); cursor: pointer;
  transition: border-color .15s ease-out, background-color .15s ease-out;
}
.choice:hover { border-color: var(--text); }
.choice input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--accent); flex: none; }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.field.has-error .choice { border-color: var(--danger); }
details.more { border-top: 1px solid var(--line); padding-top: 1rem; }
details.more summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.more-grid { display: grid; gap: 1rem; margin-top: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.privacy-note { font-size: .9375rem; color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.lead-form.is-sending .field, .lead-form.is-sending details { opacity: .65; pointer-events: none; }
.form-alert { padding: 1rem 1.125rem; border-radius: var(--radius-s); border: 1px solid; display: grid; gap: .75rem; }
.form-alert[hidden] { display: none; }
.form-alert.is-invalid, .form-alert.is-error { background: var(--danger-bg); border-color: var(--danger); }
.form-alert.is-network { background: var(--surface-2); border-color: var(--line-strong); }
.alert-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; }
.demo-panel {
  display: grid; gap: .4rem; padding: .9rem 1rem; font-size: .9375rem;
  background: var(--surface-2); border: 1px dashed var(--line-strong); border-radius: var(--radius-s);
}
.demo-choice { display: flex; align-items: center; gap: .5rem; min-height: 32px; cursor: pointer; }
.demo-choice input { accent-color: var(--text); }
.form-success {
  display: grid; gap: .75rem; padding: 1.5rem; border-radius: var(--radius-m);
  background: var(--ok-bg); border: 1px solid var(--ok);
}
.form-success[hidden] { display: none; }
.form-success h2 { display: flex; align-items: center; gap: .5rem; font-size: 1.5rem; }
.form-success h2 .ph { color: var(--ok); }
.form-success:focus { outline: none; }

/* ---------- mobile contact bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 767px) {
  .mobile-bar {
    position: fixed; inset: auto 0 0 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr;
    gap: 1px; background: var(--line); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 56px;
    background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600;
  }
  .mobile-bar a:first-child { background: var(--accent); color: var(--on-accent); }
  .mobile-bar .ph { font-size: 1.35rem; }
  body.has-mobile-bar { padding-bottom: 57px; }
  html.typing .mobile-bar { display: none; }
}

/* ---------- motion: enhancement over visible content ---------- */
.reveal { transition: opacity .24s ease-out, transform .24s ease-out; transition-delay: calc(var(--i, 0) * 60ms); }
.motion .reveal:not(.is-in) { opacity: 0; transform: translateY(8px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Prototype A · Oficio — the visual system of plan section 4, applied literally.
 * Ivory #F7F4EE, deep blue #162D3B, copper #A84821 (white text 5.81:1),
 * secondary text #52616B. Inter 400/500/600/700. Radius rule: controls 6px,
 * containers 10px. One accent (copper) for primary actions only.
 */
:root {
  --bg: #F7F4EE;
  --surface: #FFFFFF;
  --surface-2: #EFE9DF;
  --text: #162D3B;
  --muted: #52616B;
  --line: #DED7CB;
  --line-strong: #8C8A84;
  --accent: #A84821;
  --accent-hover: #8F3B19;
  --on-accent: #FFFFFF;
  --focus: #162D3B;
  --danger: #B42318;
  --danger-bg: #FCEEEC;
  --ok: #1E6B45;
  --ok-bg: #ECF5EF;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-s: 6px;
  --radius-m: 10px;
  --container: 74rem;
  --section: clamp(3.5rem, 2rem + 5vw, 6rem);
  --shadow: 0 1px 2px rgb(22 45 59 / .06), 0 8px 24px rgb(22 45 59 / .08);
}
@media (min-width: 1024px) { body { font-size: 1.125rem; } }

h1, h2, h3 { font-weight: 700; letter-spacing: -.02em; line-height: 1.12; }
h2 { font-size: clamp(1.625rem, 1.15rem + 1.6vw, 2.25rem); }
h3 { font-size: 1.1875rem; letter-spacing: -.01em; line-height: 1.3; font-weight: 600; }
.lead { font-size: clamp(1.125rem, 1rem + .4vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.narrow { --container: 47.5rem; }
section > .container > h2, section.container > h2 { margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); max-width: 26ch; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20; background: rgb(247 244 238 / .96);
  border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand { display: grid; text-decoration: none; line-height: 1.2; flex: none; }
.brand-name { font-weight: 700; font-size: 1rem; letter-spacing: -.01em; }
.brand-web { font-size: .8125rem; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 1.75rem; margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.nav-list > li > a, .nav-sub summary {
  display: inline-flex; align-items: center; gap: .3rem; min-height: 44px;
  text-decoration: none; font-weight: 500; font-size: 1rem; cursor: pointer; white-space: nowrap;
}
.nav-list a[aria-current="page"], .nav-sub summary.is-active {
  text-decoration: underline; text-decoration-color: var(--accent-ink); text-decoration-thickness: 2px; text-underline-offset: 8px;
}
.nav-list > li > a:hover, .nav-sub summary:hover { color: var(--accent-ink); }
.nav-sub { position: relative; }
.nav-sub summary { list-style: none; }
.nav-sub summary::-webkit-details-marker { display: none; }
.nav-sub summary .ph { font-size: .9rem; transition: transform .18s ease-out; }
.nav-sub[open] summary .ph { transform: rotate(180deg); }
.nav-sub ul {
  position: absolute; top: calc(100% + .5rem); left: -1rem; min-width: 17rem; list-style: none;
  padding: .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  box-shadow: var(--shadow);
}
.nav-sub ul a { display: block; padding: .65rem .75rem; border-radius: var(--radius-s); text-decoration: none; }
.nav-sub ul a:hover, .nav-sub ul a[aria-current="page"] { background: var(--surface-2); }
.nav-phone { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav-phone .ph { font-size: 1.2rem; color: var(--accent-ink); }
.menu-toggle {
  display: none; align-items: center; gap: .4rem; min-height: 44px; padding: .4rem .8rem; margin-left: auto;
  background: none; border: 1px solid var(--line-strong); border-radius: var(--radius-s); font-weight: 600; cursor: pointer;
}
.menu-toggle .ph { font-size: 1.25rem; }
@media (max-width: 1240px) {
  .nav-phone span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (max-width: 1099px) {
  .header-inner { flex-wrap: wrap; gap: .75rem 1rem; padding-block: .6rem; }
  .brand { flex: 1 1 0; min-width: 0; }
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav { display: none; }
  .site-nav { width: 100%; flex-direction: column; align-items: stretch; gap: 1rem; padding-bottom: 1.25rem; margin-left: 0; }
  .js .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list > li > a, .nav-sub summary { width: 100%; min-height: 52px; }
  .nav-sub ul { position: static; box-shadow: none; border: 0; padding: 0 0 .75rem; min-width: 0; background: none; }
  .nav-phone span { position: static; width: auto; height: auto; clip: auto; }
  .nav-cta { width: 100%; }
}

/* ---------- breadcrumb & page head ---------- */
.guide-home-hook { background: var(--surface-2); border-block: 1px solid var(--line); padding-block: 2rem; }
.guide-home-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.guide-home-inner h2 { margin: 0 0 .5rem; }
.guide-home-inner p:last-child { color: var(--muted); max-width: 55ch; }
.guide-home-inner .btn { flex: none; }
@media (max-width: 650px) { .guide-home-inner { display: block; } .guide-home-inner .btn { margin-top: 1.25rem; width: 100%; } }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; font-size: .875rem; color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--line-strong); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-head { padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.page-head h1 { font-size: clamp(2.125rem, 1.4rem + 2.6vw, 3.25rem); margin-bottom: 1rem; max-width: 22ch; }
.quick-alt { margin-top: 1rem; color: var(--muted); }
.quick-alt a { color: var(--text); font-weight: 600; }

/* ---------- shared bits ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.75rem; }
.eyebrow { display: flex; align-items: center; gap: .75rem; font-weight: 600; color: var(--accent-ink); font-size: .9375rem; margin-bottom: 1.25rem; }
.eyebrow::before { content: ""; width: 2rem; height: 2px; background: currentColor; }
.kicker { font-size: .875rem; font-weight: 600; color: var(--muted); margin-bottom: .35rem; }
.btn-link .ph-arrow-right { transition: transform .18s ease-out; }
.btn-link:hover .ph-arrow-right { transform: translateX(3px); }
figure { margin: 0; }
figcaption { font-size: .875rem; color: var(--muted); margin-top: .5rem; }

/* ---------- home: hero ---------- */
.hero { padding-block: clamp(2rem, 1rem + 3vw, 4rem) var(--section); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.125rem, 1.2rem + 3vw, 3.25rem); line-height: 1.06; letter-spacing: -.03em; margin-bottom: 1.25rem; max-width: 20ch; }
.hero-desc { font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem); color: var(--muted); max-width: 44ch; margin-bottom: 2rem; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; max-height: min(72vh, 640px); object-fit: cover; border-radius: var(--radius-m); }

/* ---------- home: oficio ---------- */
.oficio { background: var(--surface-2); padding-block: var(--section); }
.oficio-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.oficio-photo .slot-frame { aspect-ratio: 4 / 5; background-color: var(--bg); }
.oficio-text h2 { margin-bottom: 1.25rem; max-width: 20ch; }
.oficio-text p { max-width: 54ch; margin-bottom: 1rem; }
.gremi { color: var(--muted); }

/* ---------- home: works ---------- */
.works { padding-block: var(--section); }
.works-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(1.5rem, 1rem + 2vw, 3rem); align-items: start; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.ba img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-s); }
.ba figcaption { font-weight: 600; color: var(--text); }
.work-text { margin-top: 1.25rem; }
.work-text h3, .work-mini h3, .case-row-text h3, .related-case h3 { margin-bottom: .4rem; }
.work-text h3 a, .work-mini h3 a, .case-row-text h3 a, .related-case h3 a { text-decoration: none; }
.work-text h3 a:hover, .work-mini h3 a:hover, .case-row-text h3 a:hover, .related-case h3 a:hover { text-decoration: underline; }
.work-text p, .work-mini p { color: var(--muted); }
.work-side { display: grid; gap: 1.5rem; }
.work-mini { display: grid; grid-template-columns: 9rem 1fr; gap: 1.25rem; align-items: start; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.work-mini img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-s); }

/* ---------- home: services ---------- */
.services { padding-block: var(--section); background: var(--surface-2); }
.services-grid { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto 1fr; gap: 1.25rem; align-items: start; }
.service-help { display: grid; gap: .5rem; align-self: end; padding: .5rem .25rem; }
.service-help p { color: var(--muted); max-width: 40ch; }
.service-card {
  display: flex; flex-direction: column; gap: .6rem; padding: 1.75rem; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  transition: border-color .18s ease-out, box-shadow .18s ease-out;
}
.service-card:hover { border-color: var(--text); box-shadow: var(--shadow); }
.service-card p { color: var(--muted); }
.service-lead { grid-row: span 3; align-self: stretch; }
.service-lead .slot { margin-bottom: .75rem; }
.card-link { margin-top: auto; padding-top: .75rem; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--accent-ink); }

/* ---------- home: preparation ---------- */
.prep { padding-block: var(--section); }
.prep-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.prep-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-m); }
.prep-grid h2 { margin-bottom: 2rem; max-width: 22ch; }
.prep-list { list-style: none; counter-reset: prep; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; }
.prep-list li { counter-increment: prep; padding-top: 1rem; border-top: 2px solid var(--text); }
.prep-list li::before { content: counter(prep); display: block; font-weight: 700; color: var(--accent-ink); margin-bottom: .35rem; font-variant-numeric: tabular-nums; }
.prep-list p { color: var(--muted); margin-top: .35rem; }

/* ---------- home: process ---------- */
.process { padding-block: var(--section); background: var(--surface); border-block: 1px solid var(--line); }
.process-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative; }
.process-list li { position: relative; }
.step-n {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-bottom: 1rem; border-radius: 50%;
  border: 2px solid var(--text); background: var(--surface); font-weight: 700; position: relative; z-index: 1;
}
.process-list li:not(:last-child)::after {
  content: ""; position: absolute; top: 1.375rem; left: 3.25rem; right: -1.5rem; height: 2px; background: var(--line);
}
.process-list p { color: var(--muted); margin-top: .4rem; }

/* ---------- home: reviews (reserved) ---------- */
.reviews { margin-block: var(--section) 0; padding: 2rem; border: 1px dashed var(--line-strong); border-radius: var(--radius-m); }
.reviews h2 { font-size: 1.375rem; margin-bottom: .5rem !important; }
.reviews p { color: var(--muted); max-width: 60ch; }

/* ---------- home: other services ---------- */
.others { padding-block: var(--section); }
.others-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; }
.others-list li { padding-block: 1.5rem; border-top: 1px solid var(--line); display: grid; gap: .35rem; align-content: start; }
.others-list p { color: var(--muted); }
.others-list a { font-weight: 600; justify-self: start; }

/* ---------- FAQ + final CTA ---------- */
.faq-contact, .svc-faq { padding-block: var(--section); background: var(--surface-2); }
.faq-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary {
  list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0;
  font-weight: 600; cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--accent-ink); transition: transform .18s ease-out; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 1.25rem; color: var(--muted); max-width: 62ch; }
.final-cta {
  position: sticky; top: 6.5rem; display: grid; gap: 1.1rem; padding: 2rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
}
.final-cta h2 { font-size: 1.625rem; }
.final-cta p { color: var(--muted); }
.final-cta .actions { flex-direction: column; align-items: stretch; gap: .25rem; }
.final-cta .btn { width: 100%; }
.also { font-weight: 600; margin-top: .5rem; }
.also-list { list-style: none; display: grid; gap: .35rem; }
.also-list a { font-weight: 500; }

/* ---------- service page ---------- */
.svc-hero { padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem) var(--section); }
.svc-hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.svc-hero h1 { font-size: clamp(2.125rem, 1.3rem + 2.8vw, 3.25rem); margin-bottom: 1.25rem; max-width: 18ch; }
.svc-hero .lead { margin-bottom: 2rem; }
.svc-hero-photo .slot-frame { aspect-ratio: 4 / 5; }
.svc-includes { padding-bottom: var(--section); }
.check-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 3rem; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.check-list .ph { color: var(--accent-ink); font-size: 1.25rem; margin-top: .2rem; flex: none; }
.svc-factors { padding-block: var(--section); background: var(--surface); border-block: 1px solid var(--line); }
.factor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.25rem; margin: 0; }
.factor-grid div { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--bg); }
.factor-grid dt { font-weight: 600; margin-bottom: .4rem; }
.factor-grid dd { margin: 0; color: var(--muted); }
.svc-photos { padding-block: var(--section); }
.svc-photo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1.5rem; }
.related-case { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.related-case .ba { max-width: 32rem; }
.related-empty { margin-top: 3rem; padding: 1.5rem; border: 1px dashed var(--line-strong); border-radius: var(--radius-m); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }

/* ---------- works page ---------- */
.cases { padding-bottom: var(--section); }
.case-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center; padding-block: 2.5rem; border-top: 1px solid var(--line); }
.case-row .ba { max-width: 34rem; }
.case-row-text p { color: var(--muted); max-width: 46ch; }
.muni { display: flex; align-items: center; gap: .4rem; margin-top: .75rem; font-size: .9375rem; }
.albums { padding-block: var(--section); background: var(--surface-2); }
.albums h2 { margin-bottom: .75rem !important; }
.albums-note { color: var(--muted); max-width: 62ch; margin-bottom: 2rem; }
.album-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: 1.5rem; }
.album-card { display: grid; gap: .5rem; align-content: start; }
.album-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-s); margin-bottom: .5rem; }
.album-card p { color: var(--muted); font-size: .9375rem; }
.album-card .btn-link { min-height: 40px; }

/* ---------- case page ---------- */
.case-head { padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem) var(--section); }
.case-head-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.case-head h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.125rem); margin-bottom: 1rem; max-width: 20ch; }
.case-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 1rem 2.5rem; margin: 2rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.case-facts dt { font-size: .875rem; color: var(--muted); }
.case-facts dd { margin: .2rem 0 0; font-weight: 600; }
.case-review { margin-top: 1.5rem; font-size: .9375rem; color: var(--muted); }
.case-hero-photo img { width: 100%; aspect-ratio: 4 / 5; max-height: 640px; object-fit: cover; border-radius: var(--radius-m); }
.case-step { padding-block: 0 var(--section); }
.case-step h2 { margin-bottom: 1rem !important; }
.step-text { font-size: 1.1875rem; max-width: 62ch; margin-bottom: 2rem; }
.case-prep { background: var(--surface-2); padding-block: var(--section); margin-bottom: var(--section); }
.case-prep .step-text { margin-bottom: 0; }
.case-gallery { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 1.5rem; }
.case-gallery figure { flex: 1 1 15rem; max-width: 24rem; }
.case-gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-s); }
.case-cta { padding-block: var(--section); background: var(--surface); border-top: 1px solid var(--line); }
.case-cta-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: start; }
.case-cta h2 { margin-bottom: .75rem !important; }
.case-cta p { color: var(--muted); margin-bottom: 1.5rem; }
.h-small { font-size: 1.125rem !important; }

/* ---------- company ---------- */
.people { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 1rem + 3vw, 4rem); padding-bottom: var(--section); }
.person { display: grid; gap: 1.5rem; align-content: start; }
.person-photo .slot-frame { aspect-ratio: 4 / 3; }
.person h3 { font-size: 1.5rem; }
.role { font-weight: 600; color: var(--accent-ink); margin: .2rem 0 .75rem; }
.person-text p:not(.role) { color: var(--muted); max-width: 52ch; }
.person-text .gremi { margin-top: .75rem; }
.principles { padding-block: var(--section); border-top: 1px solid var(--line); }
.principle-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 3rem; }
.principle-list li { padding-top: 1rem; border-top: 2px solid var(--text); }
.principle-list p { color: var(--muted); margin-top: .4rem; }
.area { padding-block: var(--section); border-top: 1px solid var(--line); }
.area p { max-width: 62ch; margin-bottom: 1.5rem; color: var(--muted); }
.town-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.town-list li { padding: .4rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); font-size: .9375rem; }
.closing { padding-block: var(--section); border-top: 1px solid var(--line); }
.closing h2 { margin-bottom: 1.5rem !important; }

/* ---------- contact ---------- */
.contact-layout { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; padding-bottom: var(--section); }
.contact-main { padding: clamp(1.25rem, .75rem + 2vw, 2.25rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); }
.contact-aside { position: sticky; top: 6.5rem; display: grid; gap: 1.25rem; }
.contact-aside h2 { font-size: 1.25rem; margin: 0 !important; }
.channel-list { list-style: none; display: grid; gap: 1rem; }
.channel-list li { display: grid; gap: .15rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.channel-label { display: flex; align-items: center; gap: .4rem; font-size: .9375rem; color: var(--muted); }
.channel-label .ph { color: var(--accent-ink); font-size: 1.1rem; }
.channel-list a { font-size: 1.25rem; font-weight: 600; text-decoration: none; }
.channel-list a:hover { text-decoration: underline; }
.hours { color: var(--muted); font-size: .9375rem; }
.next-steps { padding-left: 1.25rem; display: grid; gap: .6rem; color: var(--muted); }

/* ---------- legal & 404 ---------- */
.legal { padding-bottom: var(--section); }
.legal-list { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem 2rem; margin: 0 0 2.5rem; }
.legal-list dt { font-weight: 600; }
.legal-list dd { margin: 0; color: var(--muted); }
.legal h2 { font-size: 1.375rem; margin-bottom: .75rem !important; }
.notfound { padding-bottom: var(--section); }
.notfound-links { list-style: none; display: grid; gap: .6rem; margin-top: 1.5rem; }
.notfound-links a { font-weight: 600; font-size: 1.125rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--line); padding-block: 3.5rem 1.5rem; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem 3rem; margin-bottom: 2.5rem; }
.footer-brand { font-weight: 700; font-size: 1.0625rem; margin-bottom: .5rem; }
.footer-about p:not(.footer-brand) { color: var(--muted); max-width: 40ch; }
.site-footer h2 { font-size: .9375rem; margin-bottom: .75rem; letter-spacing: 0; }
.site-footer ul { list-style: none; display: grid; gap: .45rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
/* Phones: stacked footer links get a finger-sized row instead of 20 px of text. */
@media (max-width: 767px) {
  .site-footer ul { gap: 0; }
  .site-footer li a { display: inline-flex; align-items: center; min-height: 44px; }
}
.footer-bottom { padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }

/* ---------- mobile collapse (< 768px), tablet tweaks ---------- */
@media (max-width: 1023px) {
  .hero-grid, .oficio-grid, .works-grid, .prep-grid, .faq-grid, .svc-hero-grid, .case-head-grid,
  .contact-layout, .case-cta-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr 1fr; }
  .process-list li:not(:last-child)::after { display: none; }
  .final-cta, .contact-aside { position: static; }
  .hero-photo img, .case-hero-photo img { aspect-ratio: 4 / 3; max-height: 52vh; }
  .oficio-photo .slot-frame, .svc-hero-photo .slot-frame { aspect-ratio: 16 / 9; }
  .prep-photo img { aspect-ratio: 16 / 10; }
}
@media (max-width: 767px) {
  .services-grid, .prep-list, .others-list, .check-list, .process-list, .case-row, .related-case,
  .people, .principle-list, .footer-grid { grid-template-columns: 1fr; }
  .service-lead { grid-row: auto; }
  .case-facts { grid-template-columns: 1fr 1fr; }
  .legal-list { grid-template-columns: 1fr; gap: .25rem; }
  .legal-list dd { margin-bottom: 1rem; }
  .work-mini { grid-template-columns: 6.5rem 1fr; }
  .actions .btn { width: 100%; }
}

/* ---------- iteration 2: own photos in services, gallery, video ---------- */
.svc-hero-photo img { width: 100%; aspect-ratio: 4 / 5; max-height: min(70vh, 620px); object-fit: cover; border-radius: var(--radius-m); }
.svc-photo-row figure img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-s); }
.svc-photo-row .slot-frame { aspect-ratio: 3 / 4; }
.case-video { max-width: 22rem; margin-bottom: 1.5rem; }
.case-video video { width: 100%; height: auto; border-radius: var(--radius-m); background: var(--text); }
.service-lead { grid-row: 1 / -1; }
@media (max-width: 1023px) { .svc-hero-photo img { aspect-ratio: 4 / 3; max-height: 52vh; } }
.service-lead img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-s); margin-bottom: .75rem; }

/* ---------- public site: real reviews ---------- */
.reviews-live { padding-block: var(--section); background: var(--surface); border-block: 1px solid var(--line); }
.reviews-live h2 { margin-bottom: .5rem; }
.rating { color: var(--muted); margin-bottom: 2rem; }
.rating strong { color: var(--text); }
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.5rem; }
.quote { margin: 0; padding: 1.5rem; background: var(--bg); border-radius: var(--radius-m); display: grid; gap: .75rem; align-content: space-between; }
.quote blockquote { margin: 0; }
.quote figcaption { font-weight: 600; color: var(--text); margin: 0; }
.oficio-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-m); }
.town-list a { text-decoration: none; }
.town-list a:hover { text-decoration: underline; }

/* GEO: company facts block */
/* Reference sheet at the end of /empresa, after how and where we work. */
.facts-block { padding-block: var(--section); border-top: 1px solid var(--line); }
.facts-block h2 { margin-bottom: 1.25rem; }

/* ================================================================
 * Proposal 2026-11 «oficio a la vista» (design-taste-frontend-v1, adapted):
 * asymmetric composition, own photos with concrete captions, few cards,
 * motion only on content that is already visible.
 * ================================================================ */
:root {
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Cabinet Grotesk", "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
}
h1, h2 { font-weight: 800; letter-spacing: -.025em; }
h3 { font-family: var(--font-body); font-weight: 600; letter-spacing: -.01em; }
.sec-head { max-width: 40rem; margin-bottom: clamp(1.75rem, 1rem + 2vw, 3rem); }
.sec-head h2 { margin-bottom: .75rem; }
.sec-head p:not(.eyebrow) { color: var(--muted); }

/* hero: copy on the left, the work bleeding off the right edge */
.hero-o { padding-block: clamp(1.75rem, 1rem + 2.5vw, 3.5rem) calc(var(--section) + 1rem); overflow-x: clip; }
.hero-o-grid {
  width: min(100% - 2rem, var(--container)); margin-inline: auto;
  display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center;
}
.hero-o h1 { font-size: clamp(2.375rem, 1.4rem + 3.4vw, 4rem); line-height: 1.02; margin-bottom: 1.25rem; max-width: 14ch; }
.hero-o .hero-desc { font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem); color: var(--muted); max-width: 42ch; margin-bottom: 1.75rem; }
.hero-call { margin-top: .75rem; color: var(--muted); }
.hero-call a { color: var(--text); font-weight: 600; }
.hero-proof { list-style: none; display: grid; gap: .5rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .9375rem; }
.hero-proof li { display: flex; gap: .55rem; align-items: baseline; }
.hero-proof .ph { color: var(--accent-ink); flex: none; transform: translateY(.15em); }
.hero-proof a { font-weight: 600; }
.hero-o-media {
  position: relative;
  margin-right: calc((100vw - min(100vw - 2rem, var(--container))) / -2);
}
.hero-o-main img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius-m) 0 0 var(--radius-m); }
/* The first screen shows the finished work only; before/after pairs live in Trabajos and the cases. */

/* own works: one large, two details */
.obras { padding-block: var(--section); }
.obras-grid { display: grid; grid-template-columns: 7fr 5fr; grid-template-rows: auto auto; gap: 1.5rem clamp(1.5rem, 1rem + 2vw, 3rem); margin-bottom: 1.5rem; }
.obra-lead { grid-row: span 2; }
.obra img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-s); margin-bottom: .85rem; }
.obra-lead img { aspect-ratio: 4 / 5; max-height: 42rem; }
.obra h3 { font-size: 1.1875rem; margin-bottom: .35rem; }
.obra h3 a { text-decoration: none; }
.obra h3 a:hover { text-decoration: underline; }
.obra p:not(.kicker) { color: var(--muted); max-width: 48ch; }

.prep-lead { color: var(--muted); max-width: 52ch; margin: -1rem 0 2rem; }
.prep .btn-link { margin-top: 1.5rem; }

/* other finishes: zig-zag, smaller than painting */
.espec { padding-block: var(--section); background: var(--surface-2); }
.espec-row { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(1.25rem, 1rem + 2vw, 3rem); align-items: center; padding-block: 1.25rem; border-top: 1px solid var(--line); }
.espec-alt { grid-template-columns: 7fr 4fr; }
.espec-alt img { order: 2; }
.espec-row img { width: 100%; aspect-ratio: 4 / 3; max-height: 16rem; object-fit: cover; border-radius: var(--radius-s); }
.espec-row h3 { font-size: 1.375rem; margin-bottom: .4rem; }
.espec-row h3 a { text-decoration: none; }
.espec-row p { color: var(--muted); max-width: 52ch; }
.espec-more, .guide-line { margin-top: 1.5rem; color: var(--muted); max-width: 70ch; }
.espec-more a, .guide-line a { color: var(--text); font-weight: 600; }

/* contact: channels in the first screen, compact job types */
.contact-quick { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.contact-quick .btn { gap: .5rem; }

@media (max-width: 1023px) {
  .hero-o-grid { grid-template-columns: 1fr; }
  .hero-o-media { margin-top: .5rem; }
  .hero-o-main img { aspect-ratio: 4 / 3; }
  .obras-grid { grid-template-columns: 1fr 1fr; }
  .obra-lead { grid-column: 1 / -1; grid-row: auto; }
  .obra-lead img { aspect-ratio: 4 / 3; }
}
@media (max-width: 767px) {
  .hero-o h1 { max-width: none; }
  /* The fixed bar already offers WhatsApp and a call: one primary action in the hero. */
  .has-mobile-bar .hero-o .actions [data-track="whatsapp_click"], .has-mobile-bar .hero-o .hero-call { display: none; }
  .espec-row, .espec-alt { grid-template-columns: 1fr; }
  .espec-alt img { order: 0; }
  .contact-quick .btn { flex: 1 1 10rem; padding-inline: .75rem; }
  .choice-grid { grid-template-columns: 1fr 1fr; }
  .choice { padding: .55rem .65rem; gap: .5rem; font-size: .9375rem; line-height: 1.25; }
}
@media (max-width: 359px) {
  .choice-grid { grid-template-columns: 1fr; }
}
.choice span { font-weight: 500; }
@media (max-width: 479px) {
  .quick-num { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .contact-quick .btn { flex: 1 1 0; }
}

/* ================================================================
 * 2026-11 «oficio a la vista» applied to inner pages (services, cases,
 * towns, company, legal): same asymmetric hero and fewer boxes.
 * ================================================================ */
.svc-hero, .case-head { overflow-x: clip; }
.svc-hero-grid, .case-head-grid { grid-template-columns: 7fr 5fr; }
.svc-hero h1, .case-head h1 { font-size: clamp(2.25rem, 1.3rem + 3vw, 3.5rem); line-height: 1.04; }
.page-head h1 { font-size: clamp(2.25rem, 1.3rem + 3vw, 3.5rem); line-height: 1.04; }
/* Inner pages: most own photos are narrow portrait phone shots, so they stay
 * in a portrait column instead of bleeding (they would blur when enlarged). */
.svc-hero-photo img, .case-hero-photo img { aspect-ratio: 4 / 5; max-height: min(74vh, 640px); border-radius: var(--radius-m); }
.factor-grid div { background: none; border: 0; border-top: 2px solid var(--text); border-radius: 0; padding: 1rem 0 0; }
.svc-includes h2, .svc-factors h2, .svc-photos h2, .case-step h2, .principles h2, .area h2, .facts-block h2 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); }
@media (max-width: 1023px) {
  .svc-hero-grid, .case-head-grid { grid-template-columns: 1fr; }
  .svc-hero-photo img, .case-hero-photo img { aspect-ratio: 4 / 3; max-height: 56vh; }
}


/* ================================================================
 * Palette C «grafito y amarillo cinta de pintor» (Omar, 2026-11-06).
 * Yellow is for fills, buttons and lines; text and icons use the ochre ink.
 * Contrast (WCAG): text 15.8, button text 9.8, ink 4.9 to 6.1, muted 5.6+.
 * ================================================================ */
:root {
  --bg: #F1EEE7;
  --surface: #FBFAF7;
  --surface-2: #E6E1D6;
  --text: #151515;
  --muted: #5A5650;
  --line: #D6D0C4;
  --line-strong: #8C877E;
  --accent: #E8B72F;
  --accent-hover: #D6A41C;
  --accent-ink: #7A5A06;
  --on-accent: #151515;
  --focus: #151515;
  --shadow: 0 1px 2px rgb(21 21 21 / .06), 0 8px 24px rgb(21 21 21 / .08);
}
.site-header { background: rgb(241 238 231 / .94); }
.eyebrow { color: var(--text); }
.eyebrow::before { background: var(--accent); height: 3px; }
.nav-list a[aria-current="page"], .nav-sub summary.is-active { text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
.prep-list li, .principle-list li, .factor-grid div { border-top-color: var(--text); }
.btn-secondary:hover { border-color: var(--text); background: var(--surface); }

/* ================================================================
 * Motion: quiet, content visible by default (revised 2026-11-26).
 * Headings, text and buttons of the first screen never animate, so the
 * visitor can read and act at once. Photos fade in briefly and sections
 * rise a little on scroll. No blur and no word-by-word entrance: they
 * delayed the call to action and read as a template.
 * Nothing moves for people who ask for reduced motion.
 * ================================================================ */
@media (prefers-reduced-motion: no-preference) {
  .hero-o-main img, .svc-hero-photo img, .case-hero-photo img { animation: bcnFade .5s ease-out both; }
  .reveal { transition: opacity .5s ease-out, transform .5s ease-out; transition-delay: calc(var(--i, 0) * 60ms); }
  .motion .reveal:not(.is-in) { opacity: 0; transform: translateY(12px); }
}
@keyframes bcnFade { from { opacity: 0; } to { opacity: 1; } }
/* Selected job type: yellow alone is too faint on a light card (WCAG 1.4.11). */
.choice:has(input:checked) { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); background: #FBF1D3; }
/* ---------- orientative prices (service pages and /precios-pintura) ---------- */
.price-note { margin-top: 2rem; padding-top: 1.25rem; border-top: 2px solid var(--text); max-width: 46rem; }
.price-note h3 { font-size: 1.125rem; margin-bottom: .75rem; }
.price-note ul { list-style: none; margin: 0 0 .75rem; padding: 0; }
.price-note li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.price-note p { color: var(--muted); font-size: .9375rem; }
.price-section { padding-block: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.price-section h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem); margin-bottom: 1rem; }
.price-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.price-table caption { text-align: left; color: var(--muted); font-size: .9375rem; caption-side: bottom; padding-top: .75rem; }
.price-table th, .price-table td { text-align: left; padding: .75rem .75rem .75rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table thead th { font-weight: 600; border-bottom: 2px solid var(--text); }
.price-table td:not(:first-child), .price-table thead th:not(:first-child) { white-space: nowrap; }
.price-updated { color: var(--muted); font-size: .9375rem; }
.price-steps { padding-left: 1.25rem; display: grid; gap: .5rem; max-width: 60ch; }
@media (max-width: 599px) {
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .price-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
  .price-table th, .price-table td { border: 0; padding: 0; }
  .price-table th[scope="row"] { grid-column: 1 / -1; font-weight: 600; }
  .price-table td::before { content: attr(data-label) " "; color: var(--muted); font-size: .875rem; display: block; }
  .price-table td:not(:first-child) { white-space: normal; }
}
.facts-block .entity { max-width: 65ch; margin-bottom: 1.5rem; }
