/* ============================================================================
   Cal y Canto — construcción y arquitectura
   Plantilla de demostración · Studio ArtTec

   ONE stylesheet for all five pages. The other five templates inline their CSS
   because they are one document each; this one cannot. Five inline copies of
   ~30 KB is not mainly a weight problem, it is a DRIFT problem: the header,
   mobile menu, focus trap, ribbon and footer have to be identical across five
   files or the shared test baseline starts passing on page 1 and failing on
   page 4 for reasons invisible in a diff.

   Handing this template to a client means copying EVERYTHING in this folder
   except index.html, plus ../_shared/. Not just site.html — see CLAUDE.md.

   Lane: a set of construction drawings. Drawn grid, ruler gutter with tick
   marks, title block, and one site-marking orange used four ways only.
   ========================================================================== */

/* ---- tokens -------------------------------------------------------------- */
:root {
  /* Ground. DO NOT WARM THIS. Impeccable's isCreamColor fires when
     min(r,g,b) >= 209 AND r >= g >= b AND 6 <= r-b <= 48. #E9EAE8 is
     (233,235,232): r < g, so clause two fails and it cannot fire. Something
     like #EDEAE3 (237,234,227) matches all three and would trip it. */
  --concrete:      #E9EAE8;
  --concrete-2:    #DCDEDB;
  --concrete-3:    #CFD2CE;

  --graphite-900:  #15181A;
  --graphite-700:  #2E3438;
  --graphite-500:  #4F585C;   /* 4.8:1 on --concrete-2, 6.4:1 on --concrete.
                                 #5C6569 measured 4.39:1 on the raised surface — under AA. */

  --blueprint:     #17456B;   /* 8.9:1 — hairlines, ticks, section numbers, links */
  --blueprint-dim: rgba(23, 69, 107, 0.22);
  --blueprint-ghost: rgba(23, 69, 107, 0.08);   /* the drawn grid */

  /* THE accent. Four uses and no more: aria-current marker, focus ring,
     primary button, estimator range bar. It is a surveyor's mark — it points
     at things. As decoration the whole lane collapses. */
  --marca:         #FF4D12;
  --marca-dim:     rgba(255, 77, 18, 0.12);

  --ok:            #1B7F4E;
  --bad:           #C42B1C;
  --wa:            #25D366;
  --wa-ink:        #0B1F12;

  --page:          var(--concrete);
  --surface:       var(--concrete-2);
  --text-primary:  var(--graphite-900);
  --text-secondary: var(--graphite-700);
  --text-muted:    var(--graphite-500);

  --r-sm: 0px;
  --r-md: 6px;
  --r-pill: 999px;

  /* Closed ramp. micro at 12px is the floor. */
  --t-hero:       clamp(2.35rem, 4.4vw, 3.9rem);
  --t-heading:    clamp(1.75rem, 3vw, 2.5rem);
  --t-stat:       clamp(1.8rem, 3vw, 2.5rem);
  --t-navMobile:  clamp(1.5rem, 5vw, 1.9rem);
  --t-subheading: clamp(1.1rem, 1.7vw, 1.35rem);
  --t-lede:       clamp(1.05rem, 1.5vw, 1.25rem);
  --t-body:       clamp(1rem, 1vw, 1.0625rem);
  --t-bodySmall:  0.9rem;
  --t-label:      0.8rem;
  --t-micro:      0.75rem;

  --f-display: 'Anybody', 'Saira', system-ui, sans-serif;
  --f-text:    'Chivo', system-ui, sans-serif;

  --gap: clamp(1.25rem, 3vw, 2.25rem);
  --bay: clamp(3.5rem, 8vw, 7rem);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --rail: 68px;              /* the ruler gutter */
  --wrap: 78rem;

  --ease: cubic-bezier(0.62, 0.05, 0.15, 1);   /* mirrors motion.config.js */
  --dur: 0.3s;
}

/* ---- reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text-primary);
  font-family: var(--f-text);
  font-size: var(--t-body);
  line-height: 1.68;
  /* Every number in this template is a measurement. Figures that shift width
     between rows would undo the drawing metaphor. */
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--f-display); margin: 0; letter-spacing: -0.015em; }
h1 { font-size: var(--t-hero); font-weight: 800; line-height: 0.98; text-wrap: balance; }
h2 { font-size: var(--t-heading); font-weight: 800; line-height: 1.04; text-wrap: balance; }
h3 { font-size: var(--t-subheading); font-weight: 700; line-height: 1.25; }
p { margin: 0 0 1em; }
a { color: var(--blueprint); }
button { font: inherit; }

::selection { background: var(--marca); color: var(--graphite-900); }

:focus-visible {
  outline: 2px solid var(--marca);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--graphite-900); color: var(--concrete);
  padding: 0.75rem 1.25rem; font-weight: 600;
}
.skip:focus { left: 0; }

.u-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: min(100%, var(--wrap)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---- header -------------------------------------------------------------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(233, 234, 232, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--blueprint-dim);
}
.hdr__in { display: flex; align-items: center; gap: var(--gap); min-height: 62px; }

.brand {
  font-family: var(--f-display); font-weight: 800; font-size: 1.05rem;
  letter-spacing: -0.02em; color: var(--text-primary); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap;
}
/* The mark is a drawn corner — a cartouche tick, not a logo. */
.brand i {
  width: 14px; height: 14px; display: block;
  border-left: 2px solid var(--marca); border-bottom: 2px solid var(--marca);
}

.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.9rem); }
.nav a {
  font-size: var(--t-bodySmall); font-weight: 600; color: var(--text-secondary);
  text-decoration: none; padding: 0.4rem 0; position: relative;
  transition: color var(--dur) var(--ease);
}
.nav a:hover { color: var(--text-primary); }

/* The current page. Static markup, never JS — it has to survive the no-JS
   check, and it is the single clearest signal that this is a five-page site. */
.nav a[aria-current="page"] { color: var(--text-primary); font-weight: 700; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--marca);
}

.burger {
  display: none; margin-left: auto;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1px solid var(--blueprint-dim); border-radius: var(--r-md);
  cursor: pointer; flex-direction: column; gap: 4px; align-items: center; justify-content: center;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--text-primary); }

/* ---- the ruler gutter ---------------------------------------------------- */
/* Runs down every page and every section: the cross-page unifier. CSS only —
   deliberately no scroll-driven motion, which would cost five ScrollTriggers a
   page for a decorative rule. */
.bay { position: relative; padding-block: var(--bay); }
.bay__in { position: relative; }

.rail {
  position: absolute; left: 0; top: 0; bottom: 0; width: var(--rail);
  border-right: 1px solid var(--blueprint-dim);
  /* tick marks every 24px, longer every 5th — a real rule, not a gradient */
  background-image: repeating-linear-gradient(
    to bottom,
    var(--blueprint-dim) 0 1px,
    transparent 1px 24px
  );
  background-position: right top; background-size: 8px 100%; background-repeat: repeat-y;
  display: none;
}
.rail__label {
  position: sticky; top: 84px; display: block;
  font-family: var(--f-text); font-size: var(--t-micro); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--blueprint);
  writing-mode: vertical-rl; padding: 0.75rem 0 0 0.25rem; white-space: nowrap;
}
@media (min-width: 1000px) {
  .rail { display: block; }
  .has-rail { padding-left: calc(var(--rail) + var(--gap)); }
}

/* The drawn grid: the 12 column lines, actually drawn. The content sits ON
   them, so the drawing and the layout are the same object. */
.drawn { position: relative; }
.drawn::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(
    to right, var(--blueprint-ghost) 0 1px, transparent 1px calc(100% / 12)
  );
  background-size: 100% 100%;
}

/* .eyebrow deliberately does not exist. A tracked uppercase label sitting as
   its own block above a heading is a banned pattern — the heading carries its
   own weight, and the .drawn sections name themselves in the ruler gutter. */
.lede { font-size: var(--t-lede); color: var(--text-secondary); max-width: 56ch; }
.fine { font-size: var(--t-bodySmall); color: var(--text-muted); max-width: 62ch; }

/* ---- buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0.7rem 1.35rem;
  font-family: var(--f-text); font-size: var(--t-bodySmall); font-weight: 600;
  border-radius: var(--r-md); border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.btn--primary { background: var(--marca); color: var(--graphite-900); border-color: var(--marca); }
.btn--primary:hover { background: #E23F08; border-color: #E23F08; color: var(--graphite-900); }
.btn--ghost { background: transparent; color: var(--text-primary); border-color: var(--graphite-900); }
.btn--ghost:hover { background: var(--graphite-900); color: var(--concrete); }

/* ---- hero (site.html) ---------------------------------------------------- */
.hero { position: relative; margin-top: 62px; background: var(--graphite-900); overflow: hidden; }
.hero__media { position: relative; height: clamp(320px, 48vh, 520px); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* The title block, anchored bottom-right exactly where a drawing sheet puts its
   cartouche. The strongest lane signal in the template. */
.hero__block {
  position: relative; margin-top: -1px;
  background: var(--concrete);
  border-top: 2px solid var(--marca);
}
.hero__grid { display: grid; gap: var(--gap); padding-block: clamp(2rem, 5vw, 3.25rem); }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); align-items: end; }
}
/* CSS ships this at its final state; gsap.from() returns TO it. Never put the
   "from" state here — the no-JS check asserts content is not hidden. */
.hero__rule { height: 3px; background: var(--graphite-900); margin: 1.25rem 0 0; transform-origin: left center; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.fact__n { font-family: var(--f-display); font-size: var(--t-stat); font-weight: 700; line-height: 1; }
.fact__l { font-size: var(--t-micro); font-weight: 600; letter-spacing: 0.12em;
           text-transform: uppercase; color: var(--text-muted); margin: 0.35rem 0 0; }

/* ---- the numbered ledger (site.html) ------------------------------------- */
.ledger { border-top: 1px solid var(--blueprint-dim); }
.ledger__row {
  display: grid; gap: 0.35rem var(--gap); align-items: start;
  padding: clamp(1.25rem, 3vw, 2rem) 0;
  border-bottom: 1px solid var(--blueprint-dim);
}
@media (min-width: 800px) {
  .ledger__row { grid-template-columns: 10.5rem minmax(0, 1fr) minmax(0, 1.5fr); align-items: baseline; }
}
.ledger__no { font-family: var(--f-text); font-size: var(--t-label); font-weight: 600;
              letter-spacing: 0.04em; color: var(--blueprint); white-space: nowrap; }
.ledger__t { font-family: var(--f-display); font-size: var(--t-subheading); font-weight: 700; }
.ledger__d { margin: 0; color: var(--text-secondary); font-size: var(--t-bodySmall); max-width: 68ch; }

/* ---- cards / media ------------------------------------------------------- */
.shot { border: 1px solid var(--blueprint-dim); border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.shot img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

.grid2 { display: grid; gap: var(--gap); }
@media (min-width: 860px) { .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grid3 { display: grid; gap: var(--gap); }
@media (min-width: 720px) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---- CTA band ------------------------------------------------------------ */
.band {
  background: var(--graphite-900); color: var(--concrete);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.band h2 { color: var(--concrete); }
.band p { color: var(--concrete-3); }
.band__in { display: grid; gap: var(--gap); align-items: center; }
@media (min-width: 860px) { .band__in { grid-template-columns: minmax(0, 1fr) auto; } }

/* ---- footer -------------------------------------------------------------- */
.ftr { border-top: 1px solid var(--blueprint-dim); padding-block: 2rem; background: var(--surface); }
.ftr__in { display: flex; flex-wrap: wrap; gap: 0.5rem var(--gap); justify-content: space-between;
           font-size: var(--t-bodySmall); color: var(--text-muted); }
.ftr__in a { color: var(--blueprint); }

/* ---- WhatsApp float + honesty ribbon ------------------------------------- */
.wa {
  position: fixed; right: 1.1rem; bottom: 3.4rem; z-index: 45;
  width: 52px; height: 52px; border-radius: var(--r-pill);
  background: var(--wa); color: var(--wa-ink);
  display: grid; place-items: center; box-shadow: 0 6px 20px rgba(21,24,26,.22);
}
.wa svg { width: 28px; height: 28px; fill: currentColor; }

.ribbon {
  position: fixed; left: 0; bottom: 0; z-index: 46;
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--graphite-900); color: var(--concrete);
  padding: 0.5rem 0.95rem; font-size: var(--t-micro);
  border-top-right-radius: var(--r-md);
}
.ribbon a { color: var(--marca); font-weight: 600; }
@media (max-width: 560px) { .ribbon b { display: none; } }

/* ---- forms --------------------------------------------------------------- */
.form { display: grid; gap: 1.1rem; max-width: 34rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-size: var(--t-label); font-weight: 600; letter-spacing: 0.04em; }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--t-body); color: var(--text-primary);
  background: #fff; border: 1px solid var(--graphite-500); border-radius: var(--r-md);
  padding: 0.7rem 0.85rem; min-height: 46px;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field__err { font-size: var(--t-bodySmall); color: var(--bad); display: none; }
/* Never colour alone: the invalid state also thickens the rule and shows text. */
.field.is-bad input, .field.is-bad select, .field.is-bad textarea { border-color: var(--bad); border-width: 2px; }
.field.is-bad .field__err { display: block; }

.done {
  display: none; border: 2px solid var(--ok); border-radius: var(--r-md);
  padding: 1.25rem 1.35rem; background: #fff; max-width: 34rem;
}
.done.is-on { display: block; }
.done__stamp {
  display: inline-block; margin-bottom: 0.75rem;
  font-family: var(--f-display); font-size: var(--t-label); font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ok); border: 2px solid var(--ok); border-radius: var(--r-md);
  padding: 0.3rem 0.7rem; transform: rotate(-3deg);
}

/* ---- mobile -------------------------------------------------------------- */
/* 1000px, not 900: shoot.mjs records at 1280x800 and the five nav links ARE the
   thing the loop exists to prove. They must never collapse there. */
@media (max-width: 999px) {
  .burger { display: flex; }
  .nav {
    position: fixed; inset: 62px 0 0 0; margin: 0;
    background: var(--concrete); border-top: 1px solid var(--blueprint-dim);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: 0; padding: var(--gutter);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
    overflow-y: auto;
  }
  .hdr.is-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { font-family: var(--f-display); font-size: var(--t-navMobile); font-weight: 700;
           padding: 0.6rem 0; width: 100%; border-bottom: 1px solid var(--blueprint-dim); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { color: var(--marca); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
      transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ============================================================================
   COMPONENTES POR PÁGINA
   ========================================================================== */

/* ---- listas (servicios, proceso) ----------------------------------------- */
.list { margin: 1rem 0 0; padding: 0; list-style: none; }
.list li {
  position: relative; padding: 0.5rem 0 0.5rem 1.75rem;
  border-bottom: 1px solid var(--blueprint-dim); font-size: var(--t-bodySmall);
}
/* A drawn tick, not an emoji or an icon font. */
.list li::before {
  content: ""; position: absolute; left: 2px; top: 1.05rem;
  width: 9px; height: 5px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}
.list--no li::before {
  width: 10px; height: 0; border-left: 0; border-bottom: 2px solid var(--text-muted);
  transform: none; top: 1.25rem;
}

/* ---- preguntas (servicios) ----------------------------------------------- */
.qa__i { padding: 1.1rem 0; border-bottom: 1px solid var(--blueprint-dim); }
.qa__i h3 { margin-bottom: 0.4rem; max-width: 60ch; }
.qa__i p { margin: 0; color: var(--text-secondary); font-size: var(--t-bodySmall); max-width: 58ch; }

/* ---- el estimador (servicios) -------------------------------------------- */
.est { display: grid; gap: var(--gap); margin-top: 2rem; }
@media (min-width: 900px) { .est { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); align-items: start; } }

.est__controls { display: grid; gap: 1.75rem; }
.est__field { display: grid; gap: 0.6rem; }
.est__field > label, .est__legend {
  font-size: var(--t-label); font-weight: 600; letter-spacing: 0.04em;
}
.est__field output {
  font-family: var(--f-display); font-size: var(--t-subheading); font-weight: 700;
}

/* One range control, styled once, reused by the wipe on obras.html. */
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 30px; background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; background: var(--concrete-3); border-radius: var(--r-pill);
}
input[type="range"]::-moz-range-track {
  height: 4px; background: var(--concrete-3); border-radius: var(--r-pill);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; margin-top: -9px;
  background: var(--graphite-900); border: 3px solid var(--concrete); border-radius: var(--r-pill);
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  background: var(--graphite-900); border: 3px solid var(--concrete); border-radius: var(--r-pill);
}

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; overflow-x: auto; }
.chip {
  min-height: 44px; padding: 0.65rem 1rem;
  font-family: var(--f-text); font-size: var(--t-bodySmall); font-weight: 600;
  color: var(--text-secondary); background: transparent;
  border: 1px solid var(--graphite-500); border-radius: var(--r-pill);
  cursor: pointer; white-space: nowrap;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.chip:hover:not([aria-pressed="true"]) { color: var(--text-primary); border-color: var(--graphite-900); }
/* Selected is a real fill change, never opacity — a faded "selected" reads as
   disabled, which is the defect the /plantillas device toggle used to have. */
.chip[aria-pressed="true"] {
  color: #fff; background: var(--graphite-900); border-color: var(--graphite-900);
}

.est__out { border: 1px solid var(--graphite-900); border-radius: var(--r-md); padding: 1.5rem; background: #fff; }
.est__label { font-size: var(--t-micro); font-weight: 600; letter-spacing: 0.14em;
              text-transform: uppercase; color: var(--text-muted); margin: 0; }
.est__range { font-family: var(--f-display); font-size: var(--t-stat); font-weight: 800;
              line-height: 1.1; margin: 0.5rem 0 0; }
.est__range i { font-style: normal; font-size: var(--t-body); font-weight: 400;
                color: var(--text-muted); margin: 0 0.35rem; }
.est__track { height: 6px; background: var(--concrete-3); margin-top: 1rem; border-radius: var(--r-pill); overflow: hidden; }
/* Accent use #4 of 4. */
.est__bar { height: 100%; width: 100%; background: var(--marca);
            transform: scaleX(0.3); transform-origin: left center;
            transition: transform var(--dur) var(--ease); }

/* ---- ficha técnica + limpiador plano/obra (obras) ------------------------ */
.ficha { display: grid; gap: var(--gap); margin-top: 2rem; }
@media (min-width: 900px) { .ficha { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; } }

.wipe { position: relative; --wipe: 50%; border: 1px solid var(--graphite-900); overflow: hidden; background: var(--concrete-2); }
.wipe__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.wipe__plan {
  position: absolute; inset: 0; color: var(--blueprint); background: var(--concrete-2);
  /* The wipe itself. A drag must track the pointer 1:1, so this is a plain
     custom property updated on input — deliberately no easing, no GSAP. */
  clip-path: inset(0 calc(100% - var(--wipe)) 0 0);
}
.wipe__plan svg { width: 100%; height: 100%; display: block; }
.wipe__range { position: absolute; left: 0; right: 0; bottom: 0.25rem; width: 100%; }
.wipe__tag {
  position: absolute; top: 0.5rem; font-size: var(--t-micro); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--graphite-900); color: var(--concrete); padding: 0.2rem 0.5rem;
}
.wipe__tag--l { left: 0.5rem; }
.wipe__tag--r { right: 0.5rem; }

.dl { margin: 1.25rem 0 0; }
.dl > div { display: flex; gap: var(--gap); justify-content: space-between;
            padding: 0.6rem 0; border-bottom: 1px solid var(--blueprint-dim); }
.dl dt { font-size: var(--t-label); font-weight: 600; letter-spacing: 0.06em;
         text-transform: uppercase; color: var(--text-muted); margin: 0; }
.dl dd { margin: 0; font-weight: 600; text-align: right; }

/* ---- tarjetas de obra (obras) -------------------------------------------- */
.obra {
  display: grid; gap: 0.5rem; padding: 0; text-align: left;
  background: transparent; border: 0; cursor: pointer;
}
.obra__shot { display: block; border: 1px solid var(--blueprint-dim); overflow: hidden; background: var(--surface); }
.obra__shot img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%;
                  transition: transform 0.5s var(--ease); }
.obra:hover .obra__shot img { transform: scale(1.03); }
.obra__n { font-family: var(--f-display); font-size: var(--t-subheading); font-weight: 700; }
.obra__m { font-size: var(--t-bodySmall); color: var(--text-muted); }
.obra[aria-pressed="true"] .obra__shot { border-color: var(--marca); border-width: 2px; }
.obra[aria-pressed="true"] .obra__n { color: var(--marca); }

/* ---- cronograma (proceso) ------------------------------------------------ */
.gantt { border-top: 1px solid var(--blueprint-dim); }
.gantt__row {
  display: grid; gap: 0.5rem var(--gap); align-items: center;
  padding: 1rem 0; border-bottom: 1px solid var(--blueprint-dim);
}
@media (min-width: 780px) {
  .gantt__row { grid-template-columns: 15rem minmax(0, 1fr) 3.5rem; }
}
.gantt__t b { display: block; font-family: var(--f-display); font-size: var(--t-subheading); font-weight: 700; }
.gantt__t span { font-size: var(--t-bodySmall); color: var(--text-muted); }
.gantt__track { height: 12px; background: var(--concrete-3); }
/* CSS ships each bar at its real width; the 'cronograma' signature runs
   gsap.from({scaleX:0}) so with no JS the chart is simply complete. */
.gantt__bar { height: 100%; background: var(--blueprint); transform-origin: left center; }
.gantt__p { font-family: var(--f-display); font-weight: 700; text-align: right; }

/* ---- facts used inline (proceso) ----------------------------------------- */
.fact__n, .fact__l { display: block; }
