/* ==========================================================================
   Cordel — theme (fictional brand, demo). Slug: cordel-construccion
   "Concrete and ink": a warm light concrete surface, ink text, slate as the secondary voice and a muted
   site yellow used sparingly (buttons, rules, small markers), always with ink text on it. Fine blueprint
   rules, small index numbers and a taut "cordel" line between two pins as the signature motif.
   Fonts: Archivo 600/700 (headings) + Work Sans 400/500 (body). Uses the premium layer and the image pipeline.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/work-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/work-sans-latin-500-normal.woff2") format("woff2");
}
/* Metric-matched local fallbacks (Arial Bold / Arial). size-adjust is the ratio of each font's advance width
   to the fallback's over this page's headings and body copy (measured at 1000px); vertical overrides are the
   web font's ascent and descent divided by size-adjust. */
@font-face {
  font-family: "Archivo Fallback";
  font-weight: 700;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Helvetica Bold");
  size-adjust: 98.4%;
  ascent-override: 89.3%;
  descent-override: 21.4%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Work Sans Fallback";
  font-weight: 400;
  src: local("Arial"), local("Liberation Sans"), local("Helvetica");
  size-adjust: 110.3%;
  ascent-override: 84.3%;
  descent-override: 22%;
  line-gap-override: 0%;
}

:root {
  /* Palette (as briefed) */
  --cd-concrete: #ecebe6;
  --cd-ink: #16191c;
  --cd-slate: #3b4a54;
  --cd-yellow: #d9a21b;

  /* Derived. Yellow is a fill and a marker, never body text on light; ink text on yellow is 7.7:1. */
  --cd-paper: #f6f5f1;            /* cards on concrete; ink 16.2:1, slate 8.4:1 */
  --cd-concrete-deep: #e1e0da;    /* quiet band; ink 13.3:1, slate 6.9:1 */
  --cd-slate-light: #b9c1c7;      /* muted text on ink: 9.7:1 */
  --cd-rule: rgb(22 25 28 / 0.22);
  --cd-rule-dark: rgb(236 235 230 / 0.24);
  --cd-field: #66727b;            /* control borders: 4.9:1 on white, 4.1:1 on concrete (UI >= 3:1) */

  --color-bg: var(--cd-concrete);
  --color-surface: var(--cd-paper);
  --color-text: var(--cd-ink);                 /* 14.8:1 on concrete */
  --color-text-muted: var(--cd-slate);         /* 7.7:1 on concrete */
  --color-border: var(--cd-rule);
  --color-border-strong: var(--cd-field);
  --color-accent: var(--cd-yellow);
  --color-accent-ink: var(--cd-ink);           /* focus rings and links on light surfaces */
  --color-on-accent: var(--cd-ink);

  --color-dark-bg: var(--cd-ink);
  --color-dark-surface: #20252a;
  --color-dark-text: var(--cd-concrete);       /* 14.8:1 on ink */
  --color-dark-muted: var(--cd-slate-light);
  --color-dark-border: var(--cd-rule-dark);

  --color-error: #a3201b;                      /* 6.3:1 on concrete */
  --color-success: #1f6b42;

  --font-display: "Archivo", "Archivo Fallback", "Arial Narrow", Arial, sans-serif;
  --font-body: "Work Sans", "Work Sans Fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --text-base: 1.0625rem;
  --leading-normal: 1.6;

  --cd-radius: 2px;                            /* the largest radius anywhere */
  --section-space: clamp(4rem, 2.4rem + 6vw, 7rem);
  --hero-space: 0px;
  --hero-bg: var(--cd-concrete);
  --header-bg: var(--cd-concrete);
  --header-border: var(--cd-rule);
  --button-font: var(--font-display);
  --button-size: 0.9375rem;
  --button-weight: 700;
  --button-tracking: 0.05em;
  --button-transform: uppercase;
  --button-radius: var(--cd-radius);
  --button-padding: 0.75rem 1.5rem;
  --card-radius: var(--cd-radius);
  --footer-bg: var(--cd-ink);
  --footer-text: var(--cd-slate-light);
  --footer-border: transparent;
  --field-radius: var(--cd-radius);
  --bar-h: calc(4.5rem + env(safe-area-inset-bottom, 0px));
}

/* Ink contexts: yellow is the accent for focus rings and markers; muted text switches to the light slate. */
.on-dark,
.section--dark {
  --color-accent-ink: var(--cd-yellow);        /* 7.7:1 on ink */
  --color-text-muted: var(--cd-slate-light);
  --color-border: var(--cd-rule-dark);
}

body {
  font-weight: 400;
}
strong,
b {
  font-weight: 500;
}

/* ---- Type ---- */
h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.08;
}
h2 {
  font-size: clamp(2rem, 1.35rem + 2.8vw, 3.25rem);
  line-height: 1.05;
}
h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  justify-self: start;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.14em;
}
/* Small index number with a short yellow rule: 01, 02, ... */
.idx {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.section--dark .idx {
  color: var(--cd-concrete);
}
.idx::after {
  content: "";
  width: 1.5rem;
  height: 3px;
  background: var(--cd-yellow);
}
.lead {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.55;
}
.section__header {
  gap: var(--space-3);
  margin-bottom: var(--space-7);
  max-width: 44rem;
}

/* ---- Buttons: yellow with ink text; hover turns ink with concrete text. Ghost = ink outline. ---- */
.button {
  min-height: 48px;
  border-width: 2px;
  border-color: var(--cd-yellow);
}
.button:hover {
  background: var(--cd-ink);
  border-color: var(--cd-ink);
  color: var(--cd-concrete);                   /* 14.8:1 */
}
.on-dark .button:hover,
.section--dark .button:hover {
  background: var(--cd-concrete);
  border-color: var(--cd-concrete);
  color: var(--cd-ink);
}
.button--ghost {
  background: transparent;
  border-color: var(--cd-ink);
  color: var(--cd-ink);
}
.button--ghost:hover {
  background: var(--cd-ink);
  border-color: var(--cd-ink);
  color: var(--cd-concrete);
}

/* ---- Header ---- */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}
.wordmark svg {
  width: 2.75rem;
  height: auto;
}
.wordmark__line {
  stroke: var(--cd-ink);
  stroke-width: 1.5;
}
.wordmark__pin {
  fill: var(--cd-yellow);
  stroke: var(--cd-ink);
  stroke-width: 1.5;
}
.site-nav .button {
  min-height: 44px;
  padding: 0.5rem 1.125rem;
}
@media (min-width: 52rem) {
  .site-nav ul {
    gap: clamp(1rem, 2vw, 1.75rem);
  }
  .site-nav a:not(.button) {
    white-space: nowrap;
    font-size: 0.9375rem;
    font-weight: 500;
  }
}

/* ---- Cordel: a thin taut line between two small pins (mason's string). Decorative (aria-hidden). ---- */
.cordel {
  display: flex;
  align-items: center;
  height: 0.75rem;
  color: var(--cd-slate);
}
.cordel__pin {
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
}
.cordel__pin circle {
  fill: var(--cd-yellow);
  stroke: var(--cd-ink);
  stroke-width: 1.5;
}
.cordel__line {
  flex: 1;
  min-width: 0;
  height: 2px;
  overflow: visible;
}
.cordel__line line {
  stroke: currentColor;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.section--dark .cordel {
  color: var(--cd-slate-light);
}
.container > .cordel:first-child {
  margin-bottom: var(--space-7);
}
/* One-time draw-in (hero only). The drawn line is the resting state, so reduced motion and no-CSS-animation
   users simply see it finished. */
.cordel--draw .cordel__line {
  transform-origin: left center;
  animation: cordel-draw 1000ms cubic-bezier(0.3, 0.6, 0.3, 1) 250ms both;
}
@keyframes cordel-draw {
  from {
    transform: scaleX(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cordel--draw .cordel__line {
    animation: none;
  }
}
@media (forced-colors: active) {
  .cordel__line line,
  .cordel__pin circle,
  .wordmark__line,
  .wordmark__pin {
    stroke: CanvasText;
  }
  .cordel__pin circle,
  .wordmark__pin {
    fill: Canvas;
  }
}

/* ---- "Illustrative image" label: concrete tag, ink text, yellow marker ---- */
.img-tag {
  position: absolute;
  z-index: 2;
  right: 0.75rem;
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.625rem;
  border-radius: 1px;
  background: rgb(236 235 230 / 0.95);
  color: var(--cd-ink);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.03em;
  pointer-events: none;
  user-select: none;
}
.img-tag::before {
  content: "";
  flex: none;
  width: 0.375rem;
  height: 0.375rem;
  background: var(--cd-yellow);
  box-shadow: 0 0 0 1px var(--cd-ink);
}
@media (forced-colors: active) {
  .img-tag {
    border: 1px solid CanvasText;
    background: Canvas;
    color: CanvasText;
  }
}

/* ---- Hero: copy on concrete, large photo beside it (below it on phones) ---- */
.hero {
  padding-block: var(--space-7) var(--space-8);
}
.hero__grid {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}
.hero .hero__content {
  gap: var(--space-4);
  max-width: 34rem;
}
.hero h1 {
  font-size: clamp(2.625rem, 1.35rem + 5.6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero__actions {
  margin-top: var(--space-2);
}
.hero__note {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}
.hero .cordel {
  width: 100%;
  margin-top: var(--space-3);
}
.hero__media {
  position: relative;
  margin: 0;
}
.hero__media .ph {
  aspect-ratio: 4 / 3;
  border-radius: var(--cd-radius);
}
@media (min-width: 60rem) {
  .hero {
    padding-block: var(--space-8);
  }
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: var(--space-8);
  }
  /* Blueprint frame: a hairline rectangle offset behind the photo */
  .hero__media::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid var(--cd-ink);
    border-radius: var(--cd-radius);
    transform: translate(0.75rem, 0.75rem);
    pointer-events: none;
  }
  .hero__media .ph {
    position: relative;
    z-index: 1;
  }
}

/* ---- Trust strip: four commitments between two ink rules ---- */
.trust {
  border-block: 1px solid var(--cd-ink);
  background: var(--cd-paper);
}
.trust__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.trust__item {
  display: grid;
  align-content: start;
  gap: 0.375rem;
  padding: var(--space-5) 0;
  border-top: 1px solid var(--cd-rule);
}
.trust__item:first-child {
  border-top: 0;
}
.trust__item h3 {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.0625rem;
}
.trust__item h3::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--cd-yellow);
  box-shadow: 0 0 0 1px var(--cd-ink);
}
.trust__item p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}
@media (min-width: 40rem) {
  .trust__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-6);
  }
  .trust__item:nth-child(2) {
    border-top: 0;
  }
}
@media (min-width: 64rem) {
  .trust__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 0;
  }
  .trust__item {
    padding: var(--space-6) var(--space-5);
    border-top: 0;
    border-left: 1px solid var(--cd-rule);
  }
  .trust__item:first-child {
    padding-left: 0;
    border-left: 0;
  }
}

/* ---- Services: six numbered cards on a blueprint grid of hairlines ---- */
.feature-grid {
  gap: 0;
  border-top: 1px solid var(--cd-ink);
  border-left: 1px solid var(--cd-rule);
}
.feature {
  position: relative;
  gap: var(--space-2);
  padding: var(--space-6) var(--space-5) var(--space-6);
  border: 0;
  border-right: 1px solid var(--cd-rule);
  border-bottom: 1px solid var(--cd-rule);
  background: var(--cd-paper);
}
.feature .idx {
  margin-bottom: var(--space-3);
}
.feature h3 {
  font-size: 1.3125rem;
  line-height: 1.2;
}
.feature p {
  color: var(--color-text-muted);
  font-size: 1rem;
}
.services__note {
  margin-top: var(--space-5);
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* ---- Process (ink): photo beside five numbered steps ---- */
.process-band .section__header {
  margin-bottom: var(--space-6);
}
.process-layout {
  display: grid;
  gap: var(--space-7);
  align-items: start;
}
@media (min-width: 60rem) {
  .process-layout {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: var(--space-8);
  }
  .process-layout__aside {
    position: sticky;
    top: 6rem;
  }
}
.process-photo {
  position: relative;
  margin: var(--space-6) 0 0;
}
.process-photo .ph {
  aspect-ratio: 4 / 3;
  border-radius: var(--cd-radius);
}
@media (min-width: 60rem) {
  .process-photo .ph {
    aspect-ratio: 1 / 1;
  }
}
.process {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--cd-rule-dark);
}
.process__step {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  column-gap: var(--space-4);
  row-gap: var(--space-2);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--cd-rule-dark);
}
.process__step::before {
  grid-row: 1 / span 2;
  color: var(--cd-yellow);                     /* 7.7:1 on ink */
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.process__step h3 {
  font-size: 1.375rem;
}
.process__step p {
  color: var(--cd-slate-light);
}

/* ---- Quote scope checklist ---- */
.budget {
  background: var(--cd-concrete-deep);
}
.budget-layout {
  display: grid;
  gap: var(--space-7);
  align-items: start;
}
@media (min-width: 60rem) {
  .budget-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: var(--space-8);
  }
  .budget-layout__aside {
    position: sticky;
    top: 6rem;
  }
}
.budget .section__header {
  margin-bottom: var(--space-6);
}
.checklist {
  border-top: 1px solid var(--cd-ink);
}
.checklist li {
  position: relative;
  display: grid;
  gap: 0.25rem;
  padding: var(--space-4) 0 var(--space-4) 2.75rem;
  border-bottom: 1px solid var(--cd-rule);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: var(--space-4);
  width: 1.5rem;
  height: 1.5rem;
  border: 1.5px solid var(--cd-ink);
  background: var(--cd-yellow);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: calc(var(--space-4) + 0.3125rem);
  width: 0.5rem;
  height: 0.3125rem;
  border-left: 2px solid var(--cd-ink);
  border-bottom: 2px solid var(--cd-ink);
  transform: rotate(-45deg);
}
.checklist strong {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}
.checklist span {
  color: var(--color-text-muted);
}
.budget__note {
  max-width: none;
  margin-top: var(--space-5);
  color: var(--color-text-muted);
  font-size: 0.875rem;
}
.budget-photo {
  position: relative;
  margin: 0;
}
.budget-photo .ph {
  aspect-ratio: 4 / 3;
  border-radius: var(--cd-radius);
}
@media (min-width: 60rem) {
  .budget-photo .ph {
    aspect-ratio: 4 / 5;
  }
}

/* ---- Projects: three identical cards (photo, title, three facts), aligned by subgrid ---- */
.projects {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 var(--space-5);
  max-width: 36rem;
  margin-bottom: calc(-1 * var(--space-5));
}
@media (min-width: 60rem) {
  .projects {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
  }
}
.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 0;
  margin-bottom: var(--space-5);
  overflow: hidden;
  border: 1px solid var(--cd-rule);
  border-radius: var(--cd-radius);
  background: var(--cd-paper);
}
@supports (grid-template-rows: subgrid) {
  .project {
    grid-row: span 3;
    grid-template-rows: subgrid;
  }
}
.project__img {
  position: relative;
  margin: 0;
}
.project__img .ph {
  aspect-ratio: 4 / 3;
}
.project h3 {
  align-self: start;
  padding: var(--space-5) var(--space-5) var(--space-3);
  font-size: 1.3125rem;
}
.project__facts {
  align-self: start;
  display: grid;
  margin: 0 var(--space-5) var(--space-5);
  border-top: 1px solid var(--cd-ink);
}
.project__facts > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.125rem var(--space-3);
  padding-block: 0.625rem;
  border-bottom: 1px solid var(--cd-rule);
  font-size: 0.9375rem;
}
.project__facts dt {
  color: var(--color-text-muted);
}
.project__facts dd {
  margin: 0;
  font-weight: 500;
}
.projects__note {
  max-width: none;
  margin-top: var(--space-6);
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* ---- Coverage ---- */
.coverage {
  background: var(--cd-paper);
  border-block: 1px solid var(--cd-rule);
}
.coverage-layout {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}
@media (min-width: 60rem) {
  .coverage-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-8);
  }
}
.coverage .section__header {
  margin-bottom: var(--space-5);
}
.comunas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.comunas li {
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--cd-ink);
  border-radius: var(--cd-radius);
  font-size: 0.9375rem;
  font-weight: 500;
}
.coverage__note {
  margin-top: var(--space-4);
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}
.coverage-photo {
  position: relative;
  margin: 0;
}
.coverage-photo .ph {
  aspect-ratio: 4 / 3;
  border-radius: var(--cd-radius);
}

/* ---- Testimonials placeholder ---- */
.placeholder-block {
  max-width: 44rem;
  border: 2px dashed var(--cd-field);
  border-radius: var(--cd-radius);
  text-align: left;
}
.placeholder-block p {
  margin-inline: 0;
}
.placeholder-block__label {
  color: var(--cd-ink);
}

/* ---- Contact: details and photo beside a clean form ---- */
.contact-band {
  background: var(--cd-concrete-deep);
}
.contact {
  gap: var(--space-7);
}
@media (min-width: 60rem) {
  .contact {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: var(--space-8);
  }
}
.contact__intro {
  gap: var(--space-4);
  align-content: start;
}
.contact__details {
  display: grid;
  margin: 0;
}
.contact__details > div {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: var(--space-3);
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--cd-rule);
}
.contact__details > div:first-child {
  border-top: 1px solid var(--cd-ink);
}
.contact__details dt {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}
.contact__details dd {
  margin: 0;
  font-weight: 500;
}
.contact__photo {
  position: relative;
  margin: var(--space-2) 0 0;
}
.contact__photo .ph {
  aspect-ratio: 4 / 3;
  border-radius: var(--cd-radius);
}
.contact-form--light {
  --field-border: var(--cd-field);
  padding: var(--space-5);
  border: 1px solid var(--cd-rule);
  border-radius: var(--cd-radius);
  background: var(--cd-concrete);
}
@media (min-width: 48rem) {
  .contact-form--light {
    padding: var(--space-6);
  }
}
.field label small {
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0;
}
.field select {
  width: 100%;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  border: var(--border-width) solid var(--field-border);
  border-radius: var(--field-radius);
  background: #fff;
  color: var(--field-text);
}
.field select:focus-visible {
  outline-offset: 0;
  border-color: var(--cd-ink);
}
.form-note {
  max-width: none;
  padding-top: var(--space-3);
  border-top: 1px solid var(--cd-rule);
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* ---- FAQ: heading beside a hairline accordion ---- */
.faq-layout {
  display: grid;
  gap: var(--space-6);
  align-items: start;
}
.faq-layout .section__header {
  margin-bottom: 0;
}
@media (min-width: 60rem) {
  .faq-layout {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: var(--space-8);
  }
}
.faq {
  border-top: 1px solid var(--cd-ink);
}
.faq details {
  border-bottom: 1px solid var(--cd-rule);
}
.faq summary {
  align-items: center;
  padding: var(--space-4) 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.35;
}
/* Square plus that becomes a minus: two bars drawn with gradients. */
.faq summary::after {
  content: "";
  flex: none;
  width: 1rem;
  height: 1rem;
  background:
    linear-gradient(var(--cd-ink), var(--cd-ink)) center / 100% 2px no-repeat,
    linear-gradient(var(--cd-ink), var(--cd-ink)) center / 2px 100% no-repeat;
  transition: background-size var(--duration) var(--ease);
}
.faq details[open] summary::after {
  transform: none;
  background-size: 100% 2px, 2px 0;
}
.faq details p {
  max-width: 60ch;
  padding-bottom: var(--space-4);
}

/* ---- Footer ---- */
.site-footer {
  border-top: 0;
}
.site-footer a:hover {
  color: var(--cd-concrete);
}

/* ---- Mobile action bar: WhatsApp + quote request. Fixed, fixed height (no layout shift), phones only.
   presupuesto.js adds .bar-hidden while the contact section is on screen so it never covers the form. ---- */
.action-bar {
  display: none;
}
@media (max-width: 47.99rem) {
  .action-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 30;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 0.5rem;
    align-items: center;
    box-sizing: border-box;
    height: var(--bar-h);
    padding: 0 var(--gutter) env(safe-area-inset-bottom, 0px);
    border-top: 3px solid var(--cd-yellow);
    background: var(--cd-ink);
    --color-accent-ink: var(--cd-yellow);
    transition: transform 200ms var(--ease), visibility 200ms;
  }
  .action-bar .button {
    min-height: 3rem;
    padding: 0.5rem 0.5rem;
    font-size: 0.8125rem;
    letter-spacing: 0.03em;
    text-align: center;
    line-height: 1.15;
  }
  .action-bar .button--ghost {
    border-color: var(--cd-concrete);
    color: var(--cd-concrete);
  }
  .action-bar .button--ghost:hover {
    background: var(--cd-concrete);
    border-color: var(--cd-concrete);
    color: var(--cd-ink);
  }
  .action-bar .button:not(.button--ghost):hover {
    background: var(--cd-concrete);
    border-color: var(--cd-concrete);
    color: var(--cd-ink);
  }
  .bar-hidden .action-bar {
    transform: translateY(100%);
    visibility: hidden;
  }
  /* Room for the bar below the footer, and for focused elements above it */
  .site-footer {
    padding-bottom: var(--bar-h);
  }
  :root:has(.action-bar) {
    scroll-padding-bottom: calc(var(--bar-h) + 1rem);
  }
}
@media (forced-colors: active) {
  .action-bar {
    border: 2px solid CanvasText;
  }
}

/* ==========================================================================
   Premium layer tuning (precise, calm variant): short ease-out reveals, small rise, no bounce or parallax.
   Transform and opacity only; the layer disables all of it under prefers-reduced-motion.
   ========================================================================== */
[data-premium] {
  --ease: cubic-bezier(0.3, 0.6, 0.3, 1);
  --duration: 160ms;
  --reveal-duration: 460ms;
  --reveal-distance: 10px;
  --selection-bg: var(--cd-yellow);
  --selection-text: var(--cd-ink);             /* 7.7:1 */
  --shadow-sm: none;
  --shadow-md: none;
}
[data-premium] h1,
[data-premium] h2 {
  letter-spacing: -0.015em;
}
[data-premium] .hero h1 {
  letter-spacing: -0.02em;
}
[data-premium] .section--dark {
  background-image: none;                      /* flat ink, no grain */
}
[data-premium] .button::before {
  display: none;
}
[data-premium] .field :is(input, textarea, select):hover {
  border-color: var(--cd-ink);
}
[data-premium] .field select:focus-visible {
  outline-offset: 4px;
  box-shadow: 0 1px 0 0 var(--cd-ink);
}
[data-premium] .project {
  transition: opacity var(--reveal-duration) var(--ease), transform var(--duration) var(--ease);
}
@media (hover: hover) {
  [data-premium] .project.is-in:hover,
  [data-premium] .project:not([data-reveal]):hover {
    transform: translateY(-3px);
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-premium] .project:hover {
    transform: none !important;
  }
  .action-bar {
    transition: none;
  }
}

/* Generated by scripts/images.mjs: image placeholders (dominant colour + 24px WebP). */
.ph-cordel-07-cordel{background-color:#977d67;background-image:url(data:image/webp;base64,UklGRuAAAABXRUJQVlA4INQAAAAwBQCdASoYABIAPu1srFEppaQiqAqpMB2JQBOmargmYtxMp71R8USn8PWX453cri5PAADON788MDa3GQU2jT/Tiaw5aIl1gvsx3JN7K2tGVpKGp8mWSuRhZQ9WVurkzNdLcpUbae6poJ4YzKZhl7gE4TYLjkQuJ19hkAFiG8BocuOOTALu3A6KuZD7vwAuT6qRar8xnlhBSfhIjkwmMUXUJiMwRXO+pQLjcOU3u6xKbGmaerJ5gS8efAH6UWVIkLllJPetpdN2DAPYT+MYxPALJ0gAAA==)}
.ph-cordel-05-terminaciones{background-color:#a1968f;background-image:url(data:image/webp;base64,UklGRtwAAABXRUJQVlA4INAAAADQBACdASoYABgAPu1sq1EppaOiqAqpMB2JYwAFEAESflWaomx7soWxeNJiTqeqAAD+SoeUKyeeZP+oJBWBwfItm93I/FkphW44oohVO6VCZAzcDIVdCSqFYhg391s7BXri0HFqguMMT7je3vfvpnLjVxYReIvuP3jhjmctxtPzXtmPsQ2o7XW/ZxYmaOPc9j8+lXAYD72+FPpQQZz6uEgjTwHU2g1kxcz+cyV0odaLPL+nLRiCaVgiZdv5sHkqR8LajIzPPBJLIAh2WSCUsAAA)}
.ph-cordel-08-planos{background-color:#ada7a3;background-image:url(data:image/webp;base64,UklGRgYBAABXRUJQVlA4IPoAAABQBgCdASoYAB4APu1mqU2ppaQiMAgBMB2JQBjPKA6v8u35oDLloqcqeXv4yp4hbwxyGaIoUbaf2dKcwAD+CWS5sXHyeT8eAJOM70gS1sk5jM/5d4rEbEKv2hkzgkYKxeEYNQyFBuB/dAcgjYVx3/TFNm0fD1N1JsMfDZQrjy47sP3/3sdtURT5uQX0RI/U+B80L7sLe/7eoLAvLwOI8AzemhiMpukAIyRk8N6+36FQqnscb4auT3AUgjXg2708KKAr6Ub9I25PtZL++HvbVduCLIGA2qJ4gAQwZWSZ2C0bAoXZ18BbumWnZoOrtmBDdZtdORRsJ9fqKnAA)}
.ph-cordel-01-hero{background-color:#8c7257;background-image:url(data:image/webp;base64,UklGRsAAAABXRUJQVlA4ILQAAABQBQCdASoYABIAPu1sq1EppaOiqAqpMB2JYwDA4AoIiId9G8b6XvkgSBRbeSUoGLe+BAAA/RSB6E/byrNLQrhDAnDrYRZKrWnay7QWnMnrtMrADW53ZNcfY3GpH/E/654wmO7KiiiujXfNN2KEJR0+tjqhYG1xYKSfup7Zp4NZqf8TpGyVlkiosKFecTrAdbgA9JLYORF96CUOMF1XRSqi4ZIdWrdNaSln8p+4pv1Y4JBYsAA=)}
.ph-cordel-03-ampliacion{background-color:#767b7e;background-image:url(data:image/webp;base64,UklGRtIAAABXRUJQVlA4IMYAAABQBQCdASoYABIAPu1qq1EppaOiqAqpMB2JaACdMyG6gAT3jn4a4y6bN8talD5xT3Ksy4AA/Fpz3IuAO/WnanDdzkmp89rKd6rAlnFXiBDFx5IlC/6Q2DiR+xREGYhclqS3GKcN5pPSR50qjaTt9FZyY8L0etsGmerq2vnZe5T2imi6Y+Cc3w+0lNfrh3v/daYxzpDDERgZKKefuTR/HyUW0r7Eud+s6HcedjkWk9eQwKe9Kl5fkc9ZVoIpl7qCWZBvOGqAAAA=)}
.ph-cordel-06-quincho{background-color:#5e3d25;background-image:url(data:image/webp;base64,UklGRsQAAABXRUJQVlA4ILgAAAAQBQCdASoYABIAPu1sq1EppaOiqAqpMB2JQBYj6s8AAItovhxd1ez/xb+g+9YQ6pOAAP68gUV6hD9PwKy4RiBa1B2d94DrxD82iSEngzLdi7YokR0CBjhc6jOLjp1c7KgS5GTtlFN/AOaKiH6Bp9t4CAJ5KUraN7DIWeZbiIdzP2mfler9wLu4EOHo5BzkMQq0+Z0SJ7xrZVRi5I9MdevnoxRH1q5pTpZuUmEshOhgq8IRlacQAAAA)}
.ph-cordel-04-casa-nueva{background-color:#7e8083;background-image:url(data:image/webp;base64,UklGRuIAAABXRUJQVlA4INYAAABwBQCdASoYABIAPu1mrE+ppSQiMBgIATAdiWYAnSikOQAEhL2GpSKD8sbUPy9h7B5fgEjAAPcInNzqxuwrakKe+iU3yV+Q9bBVFvUvjjEl7bgbERVdrCuNpMwwqG1kRROGXB6Wd/QlqRNxPnB6cFziD9XDw2kVtTvLHJnyBbA45R7Rg9LRKSaaJukATGsG1kOTsLBPA1uVbT9EpAhSEjlYTm0CwEOuZ0B64HR6YE+ZqBIB2VZ0WFeKIUzF2msGNMXUS//dtK7lN7Sp2F7rD+bkzSfExwAA)}
.ph-cordel-02-bano{background-color:#826f5d;background-image:url(data:image/webp;base64,UklGRqQAAABXRUJQVlA4IJgAAADwBACdASoYABIAPu1sq1EppaOiqAqpMB2JYwC7ABBKm07x74ygxIYcV4DRWY3cdAAA8f4PxRXG9gMAd29bIR1shH0ucpvQWt2vCUA0vkRhFI43YTLTxsxB5rEVvt82f3odmpjV1UDbKNSzoWrcZu0ChPe8hIVQYw+n1Q/26mrOX/3wVpPD1FHjynbemsfQSNcoOuS+pAIAAA==)}
