/* ==========================================================
   RÍO BLANCO — estilos
   Mobile first. Paleta derivada solo del logo.
   ========================================================== */

:root {
  /* Marca */
  --orange: #E5680C;          /* acento y acción (texto grande / planos / líneas) */
  --orange-ink: #B04F07;      /* naranjo oscurecido: texto pequeño sobre fondo claro (AA) */
  --orange-soft: #F2843A;     /* naranjo aclarado: texto pequeño sobre grafito (AA) */
  --graphite: #343339;        /* texto y fondos oscuros */
  --graphite-deep: #232226;   /* grafito profundo */
  --graphite-2: #403F46;      /* reglas sobre fondo oscuro */

  /* Blancos y hormigón */
  --white: #FFFFFF;
  --paper: #FBFAF7;           /* blanco de fondo */
  --cal: #F2EEE7;             /* hueso / cal cálida */
  --concrete: #D9D5CE;        /* gris hormigón para reglas */
  --muted: #5E5C63;           /* texto secundario sobre claro (AA) */
  --muted-dark: #B9B6BE;      /* texto secundario sobre grafito (AA) */

  /* Tipografía */
  --f-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --f-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Medidas */
  --gutter: 16px;
  --maxw: 1240px;
  --header-h: 64px;
  --rule: 2px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

@media (min-width: 720px) { :root { --gutter: 32px; --header-h: 76px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--f-body);
  font-size: 1.1875rem;
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
a, button, summary { touch-action: manipulation; } /* sin demora de doble toque en celular */
strong { font-weight: 700; }

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

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--graphite); color: var(--white); padding: .75rem 1rem; text-decoration: none;
}
.skip:focus { top: 8px; }

.ph { /* placeholder editable evidente */
  font-family: var(--f-mono); font-size: .85em;
  background: repeating-linear-gradient(-45deg, transparent 0 6px, rgba(229,104,12,.08) 6px 12px);
  outline: 1px dashed var(--orange-ink); padding: 0 .3em;
}

.noscript { font-family: var(--f-mono); font-size: .875rem; padding: 1rem; border: 1px dashed var(--concrete); }
.noscript--dark { border-color: var(--graphite-2); color: var(--muted-dark); }

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 52px; padding: .8rem 1.25rem;
  background: var(--graphite); color: var(--white);
  font-weight: 700; font-size: 1.125rem; text-decoration: none;
  border-radius: 0;
  position: relative;
  transition: background-color .2s;
}
/* esquina cortada, como un plano de la "A" del logo */
.btn::after {
  content: ""; position: absolute; right: 0; top: 0; width: 14px; height: 14px;
  background: var(--orange); clip-path: polygon(0 0, 100% 0, 100% 100%);
  transition: width .25s var(--ease), height .25s var(--ease);
}
.btn:hover { background: var(--graphite-deep); }
.btn:hover::after { width: 22px; height: 22px; }
.btn__icon { width: 20px; height: 20px; flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px;
  font-weight: 600; text-decoration: none;
  background: linear-gradient(var(--orange), var(--orange)) 0 100% / 100% 2px no-repeat;
  transition: background-size .25s var(--ease);
}
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

.tag {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.tag__main { font-family: var(--f-display); font-size: 1.69em; font-weight: 400; letter-spacing: .06em; color: var(--graphite); } /* Anton ya es negrita */
.tag__dot { width: 10px; height: 10px; background: var(--orange); clip-path: polygon(0 100%, 50% 0, 100% 100%); }

/* ==========================================================
   HEADER
   ========================================================== */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  background: transparent;
  transition: background-color .3s, box-shadow .3s, height .3s;
}
.header.is-scrolled {
  background: rgba(251, 250, 247, .96);
  box-shadow: 0 1px 0 var(--concrete);
}
/* El desenfoque va en una capa aparte: un backdrop-filter en el propio header lo vuelve el
   contenedor de los elementos "fixed" y el menú de celular quedaría recortado al alto del header. */
@supports (backdrop-filter: blur(4px)) {
  .header.is-scrolled { background: transparent; }
  .header::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: rgba(251, 250, 247, .88); backdrop-filter: blur(8px);
    opacity: 0; transition: opacity .3s;
  }
  .header.is-scrolled::before { opacity: 1; }
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header__logo { display: block; flex: none; }
.header__logo img { height: 38px; width: auto; transition: height .3s; }
@media (min-width: 720px) { .header__logo img { height: 46px; } .header.is-scrolled .header__logo img { height: 40px; } }
/* Portada: el logo del menú aparece recién desde la sección 01 (en el hero ya está el logo grande) */
.header__logo { transition: opacity .35s var(--ease), visibility .35s; }
.header.logo-off .header__logo { opacity: 0; visibility: hidden; }

.menu-btn {
  position: relative; z-index: 60;
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 44px; min-width: 44px; padding: 0 .5rem;
  background: none; border: 0; cursor: pointer;
}
.menu-btn__txt { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after {
  display: block; width: 24px; height: 2px; background: currentColor;
  transition: transform .3s var(--ease), opacity .2s;
}
.menu-btn__bars { position: relative; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { top: -7px; width: 24px; }
.menu-btn__bars::after { top: 7px; width: 14px; }
.menu-btn[aria-expanded="true"] { color: var(--white); }
.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { width: 24px; transform: translateY(-7px) rotate(-45deg); }

/* Menú móvil: panel grafito a pantalla completa */
.nav {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: center; gap: 2.5rem;
  padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem;
  background: var(--graphite);
  color: var(--white);
  visibility: hidden; opacity: 0;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  transition: clip-path .45s var(--ease), opacity .2s, visibility 0s .45s;
  overflow-y: auto; overscroll-behavior: contain; /* el scroll del menú no arrastra la página */
}
.nav.is-open {
  visibility: visible; opacity: 1;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transition: clip-path .45s var(--ease), opacity .2s, visibility 0s;
}
.nav__list { display: grid; gap: .25rem; }
.nav__list a {
  display: flex; align-items: baseline; gap: 1rem;
  padding: .4rem 0; text-decoration: none;
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2.6rem, 12vw, 4rem); line-height: 1; text-transform: uppercase;
  border-bottom: 1px solid var(--graphite-2);
}
.nav__cta {
  align-self: flex-start;
  display: inline-flex; align-items: center; min-height: 52px; padding: .8rem 1.25rem;
  background: var(--orange); color: var(--graphite-deep);
  font-weight: 800; text-decoration: none;
}

@media (min-width: 960px) {
  .menu-btn { display: none; }
  .nav {
    position: static; inset: auto; z-index: auto;
    flex-direction: row; align-items: center; gap: 2rem;
    padding: 0; background: none; color: inherit;
    visibility: visible; opacity: 1; clip-path: none; transition: none;
  }
  .nav__list { display: flex; gap: 1.75rem; }
  .nav__list a {
    font-family: var(--f-body); font-weight: 600; font-size: 1.0625rem;
    text-transform: none; border: 0; padding: .5rem 0; gap: .4rem;
    background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 2px no-repeat;
    transition: background-size .25s var(--ease);
  }
  .nav__list a:hover, .nav__list a.is-current { background-size: 100% 2px; }
  .nav__cta { min-height: 44px; padding: .55rem 1rem; font-size: .9rem; background: var(--graphite); color: var(--white); }
  .nav__cta:hover { background: var(--graphite-deep); }
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 2rem) 0 4rem;
  background:
    /* retícula visible: columnas finas de hormigón */
    linear-gradient(90deg, rgba(52,51,57,.06) 1px, transparent 1px) center top / calc(100% / 4) 100% repeat-x,
    var(--cal);
  overflow: hidden;
}
@media (min-width: 960px) {
  .hero { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 2rem) 0 4rem;
    background:
      linear-gradient(90deg, rgba(52,51,57,.06) 1px, transparent 1px) center top / calc(100% / 12) 100% repeat-x,
      var(--cal); }
}

.hero__grid { display: grid; gap: 3rem; }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 4rem; }
}

.hero__title {
  margin: 1rem 0 1.25rem;
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(3.4rem, 18vw, 8rem);
  line-height: 1; letter-spacing: .005em; text-transform: uppercase;
}
.hero__line { display: block; }
.hero__line--accent { color: var(--orange); }
@media (min-width: 960px) { .hero__title { font-size: min(9.5vw, 7.75rem); } }
/* Logo grande como título, con el eslogan en letra de máquina */
.hero__brand { width: min(100%, 560px); margin: 1.25rem 0 1.5rem; font: inherit; }
.hero__copy > .tag { display: block; width: min(100%, 560px); text-align: center; }
/* el triángulo va en la misma línea que el texto, aunque este se parta en dos en celular */
.hero__copy > .tag .tag__dot { display: inline-block; margin-right: .5rem; vertical-align: baseline; }
.hero__brand + .hero__lead { width: min(100%, 560px); max-width: none; text-align: center; } /* centrado bajo el logo */
.hero__logo { width: 100%; height: auto; }
.hero__slogan {
  display: block; margin-top: 1rem; text-align: center; /* centrado bajo el logo */
  font-family: var(--f-display); font-size: 1.56rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--graphite);
}
.hero__lead { max-width: 34ch; font-size: 1.25rem; color: var(--graphite); }
@media (min-width: 720px) { .hero__lead { font-size: 1.4rem; } }

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }

.hero__specs {
  display: grid; gap: 0; margin-top: 2.75rem; max-width: 520px;
  border-top: var(--rule) solid var(--graphite);
}
.hero__specs > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--concrete); }
.hero__specs dt { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }
.hero__specs dd { font-weight: 600; }

/* Reel vertical */
.reel {
  position: relative;
  width: min(100%, 360px);
  margin-inline: auto;
  padding: 44px 28px 0 0;
}
@media (min-width: 960px) { .reel { width: min(100%, 400px); margin-right: 0; } }

.reel__roof {
  position: absolute; left: -6px; top: 0; width: calc(100% - 16px); height: 64px;
  overflow: visible;
}
.reel__roof path { fill: none; stroke: var(--graphite); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linejoin: miter; }

.reel__plane {
  position: absolute; right: 0; top: 70px; bottom: 60px; width: 62%;
  background: var(--orange);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
}

.reel__frame {
  position: relative; z-index: 1;
  aspect-ratio: 9 / 16;
  background: var(--graphite) url("../assets/video/poster.jpg") center / cover;
  border: 6px solid var(--graphite);
  overflow: hidden;
}
.reel__video { width: 100%; height: 100%; object-fit: cover; }

.reel__controls {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  display: flex; justify-content: space-between; gap: .5rem;
}
.reel__btn {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; padding: 0 .9rem;
  background: rgba(35, 34, 38, .82); color: var(--white);
  border: 0; cursor: pointer;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  transition: background-color .2s;
}
.reel__btn:hover { background: var(--graphite-deep); }
.reel__btn[aria-pressed="true"] { background: var(--orange); color: var(--graphite-deep); }
.reel__btn svg { width: 20px; height: 20px; flex: none; }
.reel__btn--icon { width: 44px; padding: 0; justify-content: center; }

/* cota vertical a la derecha del marco */
.cota--v {
  position: absolute; right: 4px; top: 44px; bottom: 56px; width: 12px;
  border-block: 1px solid var(--graphite);
}
.cota--v::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--graphite); }
.cota--v span {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(90deg);
  background: var(--cal); padding: 2px 4px;
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em; white-space: nowrap;
}

.reel__cap { margin-top: .9rem; font-size: .85rem; color: var(--muted); max-width: 32ch; }

/* ==========================================================
   SECCIONES — cabecera tipo ficha técnica
   ========================================================== */
.section { padding: 5rem 0; }
@media (min-width: 960px) { .section { padding: 8rem 0; } }

.sec-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 2.5rem; }
.sec-head__rule { flex: 1; height: var(--rule); background: var(--graphite); transform-origin: left; }
.sec-head__label { color: var(--muted); }
/* más grandes y en negrita desde tablet; en celular, como antes */
@media (min-width: 720px) { .sec-head__label { font-size: 1.05rem; font-weight: 700; } }
.sec-head--dark .sec-head__rule { background: var(--muted-dark); }
.sec-head--dark .sec-head__label { color: var(--muted-dark); }

.h2, .about__title, .contact__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2.4rem, 9vw, 4.75rem); line-height: 1.05;
  text-transform: uppercase; text-wrap: balance;
}

/* ---------- 01 Nosotros ---------- */
.about__grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) {
  .about__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; align-items: start; }
}
.about__title em, .services__intro .h2 em { font-style: normal; color: var(--orange); }
.about__body p + p { margin-top: 1rem; }
.about__body p { max-width: 52ch; }

.ficha { margin-top: 2rem; border-top: var(--rule) solid var(--graphite); }
.ficha > div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--concrete); font-size: 1.0625rem; }
.ficha dt { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }

.steps { display: grid; gap: 0; margin-top: 4.5rem; counter-reset: s; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps__item { position: relative; padding: 1.25rem 1.25rem 1.5rem 0; }
.steps__item::before { /* regla que se traza */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--rule);
  background: var(--graphite); transform-origin: left;
}
.steps__item::after { /* marca de cota */
  content: ""; position: absolute; left: 0; top: -6px; width: 2px; height: 14px; background: var(--graphite);
}
.steps__n {
  display: inline-grid; place-items: center; width: 28px; height: 28px; margin-bottom: .8rem;
  border: 1px solid var(--graphite); font-size: .75rem;
}
.steps__item h3 { font-size: 1.3rem; font-weight: 800; line-height: 1.2; margin-bottom: .35rem; }
.steps__item p { color: var(--muted); font-size: 1.0625rem; max-width: 26ch; }
.steps__item:last-child .steps__n { background: var(--orange); border-color: var(--orange); color: var(--graphite-deep); }

/* ---------- 02 Servicios: índice tipo leyenda de plano, cada rubro lleva a sus trabajos ---------- */
.services { background: var(--cal); }
.services__intro { display: grid; gap: 1rem; max-width: 900px; margin-bottom: 3rem; }

/* Acordeón: el nombre del servicio abre su detalle (uno a la vez) */
.svc { border-top: var(--rule) solid var(--graphite); }
.svc__row { position: relative; }
.svc__row::after { /* regla inferior que se traza */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--graphite);
  opacity: .35; transform-origin: left;
}
.svc__h { font: inherit; }
.svc__btn {
  display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) 28px; align-items: center;
  column-gap: .75rem; row-gap: .15rem;
  width: 100%; padding: 1.1rem 0 1.2rem; border: 0; background: none; cursor: pointer; text-align: left;
}
.svc__btn:focus-visible { outline-offset: -3px; }
.svc__code { color: var(--orange-ink); position: relative; align-self: center; }
.svc__code::before { /* marca triangular del servicio abierto (eco del techo) */
  content: ""; position: absolute; left: -15px; top: 50%; margin-top: -5px; width: 9px; height: 9px; background: var(--orange); clip-path: polygon(0 100%, 50% 0, 100% 100%);
  transform: scale(0); transition: transform .25s var(--ease);
}
.svc__name {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.7rem, 7.5vw, 3rem); line-height: 1.05; text-transform: uppercase; text-wrap: balance;
  overflow-wrap: break-word; min-width: 0;
  transition: color .2s, transform .35s var(--ease);
}
.svc__zone { grid-column: 2; color: var(--muted); }
.svc__icon { grid-column: 3; grid-row: 1; position: relative; width: 28px; height: 28px; justify-self: end; }
.svc__icon::before, .svc__icon::after {
  content: ""; position: absolute; left: 5px; right: 5px; top: 50%; height: 2px; margin-top: -1px; background: var(--graphite);
  transition: transform .3s var(--ease), background-color .2s;
}
.svc__icon::after { transform: rotate(90deg); }
.svc__btn:hover .svc__name, .svc__btn:focus-visible .svc__name, .svc__row.is-open .svc__name { color: var(--orange-ink); }
.svc__row.is-open .svc__code::before { transform: scale(1); }
.svc__row.is-open .svc__icon::after { transform: rotate(0); }
.svc__row.is-open .svc__icon::before, .svc__row.is-open .svc__icon::after { background: var(--orange-ink); }

.svc__panel { display: grid; gap: 1.5rem; padding: 0 0 2rem; }
.svc__panel[hidden] { display: none; }
.svc__items { display: grid; gap: .6rem; max-width: 64ch; border-left: var(--rule) solid var(--orange); padding-left: 1.1rem; }
.svc__items li { position: relative; }
.svc__items p { color: var(--graphite); }
.svc__media { aspect-ratio: 4 / 3; background: var(--concrete); overflow: hidden;
  clip-path: polygon(0 0, 88% 0, 100% 12%, 100% 100%, 0 100%); /* esquina cortada como la "A" */ }
.svc__media img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 960px) {
  .svc__btn { grid-template-columns: 5.5rem minmax(0, 1fr) auto 32px; column-gap: 1.5rem; }
  .svc__zone { grid-column: 3; grid-row: 1; align-self: center; }
  .svc__icon { grid-column: 4; }
  .svc__btn:hover .svc__name { transform: translateX(.5rem); }
  .svc__panel { padding-left: 7rem; padding-bottom: 2.5rem; }
  .svc__panel.has-media { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; align-items: start; }
}

/* ---------- 03 Trabajos ---------- */
.works__intro { display: grid; gap: 1rem; margin-bottom: 3rem; }
.works__hint { font-family: var(--f-mono); font-size: .78rem; color: var(--muted); max-width: 38ch; }
@media (min-width: 960px) {
  .works__intro { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 4rem; }
}

.works__list { display: grid; gap: 5rem; }
@media (min-width: 960px) { .works__list { gap: 8rem; } }

.work { display: grid; gap: 1.5rem; }
.work__meta { display: grid; gap: .6rem; align-content: start; }
.work__n { color: var(--orange-ink); }
.work__cat { color: var(--muted); }
.work__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.9rem, 7vw, 3rem); line-height: 1; text-transform: uppercase; text-wrap: balance;
}
.work__desc { max-width: 42ch; color: var(--graphite); }
.work__line { display: flex; gap: .75rem; align-items: center; }
.work__line::before { content: ""; width: 32px; height: var(--rule); background: var(--orange); }

@media (min-width: 960px) {
  .work { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; align-items: end; }
  .work__media { grid-column: 1 / span 7; }
  .work__meta { grid-column: 9 / span 4; padding-bottom: 1rem; }
  .work:nth-child(even) .work__media { grid-column: 6 / span 7; grid-row: 1; }
  .work:nth-child(even) .work__meta { grid-column: 1 / span 4; grid-row: 1; }
  .work--pair .work__media { grid-column: 1 / -1; }
  .work--pair .work__meta { grid-column: 1 / span 5; grid-row: 2; }
  .work--pair:nth-child(even) .work__media { grid-column: 1 / -1; grid-row: 1; }
  .work--pair:nth-child(even) .work__meta { grid-column: 8 / span 5; grid-row: 2; }
  .work--slider .work__media { grid-column: 1 / span 6; }
  .work--slider .work__meta { grid-column: 8 / span 5; }
}

/* placeholder mientras se decide el modo */
.work__ph { aspect-ratio: var(--ar, 4 / 3); background: var(--cal); }

/* Comparador deslizable (fotos alineadas) */
.cmp {
  position: relative; overflow: hidden;
  width: min(100%, var(--cmp-max, 100%));
  aspect-ratio: var(--ar, 4 / 5);
  background: var(--graphite);
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none; -webkit-user-select: none;
}
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cmp__after { will-change: clip-path; }
.cmp__divider { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.cmp__divider line { stroke: var(--white); stroke-width: 2; vector-effect: non-scaling-stroke; }
.cmp__divider .shadow { stroke: rgba(0,0,0,.35); stroke-width: 4; }
.cmp__knob {
  position: absolute; top: 50%; left: 50%;
  width: 52px; height: 52px; margin: -26px 0 0 -26px;
  display: grid; place-items: center;
  background: var(--orange); color: var(--graphite-deep);
  border: 0; border-radius: 0; cursor: ew-resize; touch-action: none;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  transition: transform .15s;
}
.cmp__knob svg { width: 26px; height: 26px; }
.cmp__knob:focus-visible { outline: none; }
.cmp__knob:focus-visible + .cmp__focus,
.cmp.is-dragging .cmp__focus { opacity: 1; }
.cmp__focus { /* anillo de foco visible (el knob está recortado) */
  position: absolute; top: 50%; left: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px;
  border: 3px solid var(--white); transform: rotate(45deg); pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 2px var(--graphite);
}
.cmp.is-dragging .cmp__knob { transform: scale(1.08); }
.cmp__label {
  position: absolute; top: 12px; z-index: 2;
  padding: .3rem .55rem;
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--graphite); color: var(--white); pointer-events: none;
}
.cmp__label--a { left: 12px; }
.cmp__label--b { right: 12px; background: var(--orange); color: var(--graphite-deep); }

/* Díptico (fotos tomadas desde ángulos distintos) */
.pair { display: grid; gap: 1rem; }
.pair__item { position: relative; margin: 0; }
.pair__item img { width: 100%; height: auto; aspect-ratio: var(--ar); object-fit: cover; background: var(--cal); }
.pair__item--a { width: 72%; }
.pair__tag { display: flex; align-items: center; gap: .6rem; margin-top: .5rem; color: var(--muted); }
.pair__tag b { font-family: var(--f-mono); font-weight: 500; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: .25rem .5rem; background: var(--graphite); color: var(--white); }
.pair__item--b .pair__tag b { background: var(--orange); color: var(--graphite-deep); }
.pair__arrow { display: none; }

@media (min-width: 720px) {
  .pair { grid-template-columns: minmax(0, 4fr) auto minmax(0, 8fr); align-items: end; gap: 1.25rem; }
  .pair__item--a { width: 100%; }
  .pair__arrow {
    display: block; align-self: center; width: 64px; height: 24px; color: var(--orange);
  }
  .pair__arrow line, .pair__arrow path { stroke: currentColor; stroke-width: 2; fill: none; vector-effect: non-scaling-stroke; }
}

/* ---------- 03 Trabajos (portada): destacados + CTA ---------- */
.feat__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 1rem;
  margin-top: 2.5rem;
}
.card__link { display: grid; gap: .45rem; text-decoration: none; color: inherit; }
.card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--cal); margin-bottom: .5rem; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card__media::after { /* esquina naranja que crece al pasar */
  content: ""; position: absolute; right: 0; top: 0; width: 18px; height: 18px;
  background: var(--orange); clip-path: polygon(0 0, 100% 0, 100% 100%);
  transition: width .3s var(--ease), height .3s var(--ease);
}
.card__link:hover .card__media img { transform: scale(1.035); }
.card__link:hover .card__media::after, .card__link:focus-visible .card__media::after { width: 34px; height: 34px; }
.card__n { color: var(--orange-ink); }
.card__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.35rem, 5.6vw, 2.1rem); line-height: 1; text-transform: uppercase; text-wrap: balance;
}
.card__more { color: var(--muted); }

.card--cta { grid-column: auto; }
.cta-block {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: .75rem;
  min-height: 260px; height: 100%; padding: 4.5rem 1.5rem 1.5rem;
  background: var(--graphite); color: var(--white); text-decoration: none; overflow: hidden;
}
.cta-block__roof { position: absolute; left: 0; top: 1.25rem; width: 100%; height: 56px; overflow: visible; }
.cta-block__roof path { fill: none; stroke: var(--orange); stroke-width: 2; vector-effect: non-scaling-stroke; }
.cta-block__k { color: var(--orange-soft); }
.cta-block__big {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.6rem, 6vw, 2.2rem); line-height: 1; text-wrap: balance;
}
.cta-block__big b { display: block; font-weight: 400; font-size: 2.6em; line-height: .85; color: var(--orange); }
.cta-block__go {
  justify-self: start; align-self: flex-start; margin-top: .5rem; font-weight: 700;
  background: linear-gradient(var(--orange), var(--orange)) 0 100% / 100% 2px no-repeat; padding-bottom: .2rem;
}
.cta-block:hover { background: var(--graphite-deep); }
.cta-block:focus-visible { outline-offset: 4px; }
/* Variante imagen ("Conoce nuestros proyectos"): mismo formato 4:5 que las fotos de los proyectos vecinos, alineada arriba */
.card--cta:has(.cta-block--img) { align-self: start; }
.cta-block--img { padding: 0; height: auto; min-height: 0; aspect-ratio: 4 / 5; }
.cta-block--img, .cta-block--img:hover { background: var(--graphite); }
.cta-block--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cta-block--img:hover img { transform: scale(1.035); }

@media (min-width: 960px) {
  .feat__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin-top: 3.5rem; }
  .cta-block { padding: 6rem 1.75rem 1.75rem; }
}

/* ==========================================================
   PÁGINA DE TRABAJOS
   ========================================================== */
.page-trabajos { --subnav-h: 52px; }

.page-head {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 2.5rem) 0 5.5rem;
  background:
    linear-gradient(90deg, rgba(52,51,57,.06) 1px, transparent 1px) center top / calc(100% / 4) 100% repeat-x,
    var(--cal);
}
@media (min-width: 960px) {
  .page-head { padding: calc(var(--header-h) + 5rem) 0 7rem;
    background:
      linear-gradient(90deg, rgba(52,51,57,.06) 1px, transparent 1px) center top / calc(100% / 12) 100% repeat-x,
      var(--cal); }
}
.page-head__grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .page-head__grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: end; gap: 4rem; } }
.page-head__title {
  margin: 1rem 0 1.25rem;
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(3.2rem, 16vw, 7.25rem); line-height: 1; letter-spacing: .005em; text-transform: uppercase;
}
.page-head__lead { max-width: 44ch; font-size: 1.25rem; }
.page-head__specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: var(--rule) solid var(--graphite); }
.page-head__specs > div { padding: .75rem .75rem .25rem 0; border-right: 1px solid var(--concrete); }
.page-head__specs > div + div { padding-left: .9rem; }
.page-head__specs > div:last-child { border-right: 0; }
.page-head__specs dt { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.page-head__specs dd { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.6rem, 11vw, 3.75rem); line-height: 1; }
.page-head__specs > div:first-child dd { color: var(--orange-ink); }
.page-head__roof { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 70px; }
.page-head__roof path { fill: none; stroke: var(--graphite); stroke-width: 2; vector-effect: non-scaling-stroke; }

/* Índice de rubros: pegado bajo el header */
.rubnav__sentinel { height: 1px; margin-bottom: -1px; }
.rubnav {
  position: sticky; top: var(--header-h); z-index: 30;
  height: var(--subnav-h);
  background: rgba(251, 250, 247, .97);
  border-bottom: 1px solid var(--concrete);
  transition: box-shadow .3s;
}
@supports (backdrop-filter: blur(4px)) { .rubnav { background: rgba(251, 250, 247, .9); backdrop-filter: blur(8px); } }
.rubnav.is-stuck { box-shadow: 0 1px 0 var(--concrete), 0 8px 18px -14px rgba(35, 34, 38, .45); }
.rubnav__inner { height: 100%; display: flex; align-items: center; gap: 1.25rem; padding-inline: 0; }
.rubnav__k { display: none; flex: none; color: var(--muted); }
.rubnav__list {
  flex: 1; min-width: 0; height: 100%;
  display: flex; align-items: stretch; gap: 1.4rem;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  scrollbar-width: none; padding-inline: var(--gutter);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 2.5rem), transparent);
          mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 2.5rem), transparent);
}
.rubnav__list::-webkit-scrollbar { display: none; }
.rubnav__list li { display: flex; flex: none; scroll-snap-align: start; scroll-margin-inline: var(--gutter); }
.rubnav__list li:last-child { padding-right: 2.5rem; }
.rubnav__a {
  display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
  font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--muted);
  background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 3px no-repeat;
  transition: background-size .3s var(--ease), color .2s;
}
.rubnav__c {
  font-family: var(--f-mono); font-size: .62rem; font-weight: 500; line-height: 1;
  min-width: 1.35rem; padding: .2rem .3rem; text-align: center;
  border: 1px solid currentColor; color: var(--muted); opacity: .8;
}
.rubnav__a:hover { color: var(--graphite); }
.rubnav__a.is-current { color: var(--graphite); background-size: 100% 3px; }
.rubnav__a.is-current .rubnav__c { background: var(--graphite); border-color: var(--graphite); color: var(--white); opacity: 1; }
.rubnav__a:focus-visible { outline-offset: -3px; }
@media (min-width: 1100px) {
  .rubnav__inner { padding-inline: var(--gutter); }
  .rubnav__k { display: block; padding-right: 1.25rem; border-right: 1px solid var(--concrete); }
  .rubnav__list { padding-inline: 0; gap: 1.6rem;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2rem), transparent);
            mask-image: linear-gradient(90deg, #000 calc(100% - 2rem), transparent); }
}

/* Secciones de rubro */
.rubro {
  padding: 4.5rem 0 5rem;
  /* html ya tiene scroll-padding-top = alto del header; aquí se suma la barra de rubros */
  scroll-margin-top: calc(var(--subnav-h) - 1px);
}
.rubro--alt { background: var(--cal); }
@media (min-width: 960px) { .rubro { padding: 6.5rem 0 7rem; } }
.rubro__head { margin-bottom: 3rem; }
.rubro__head .sec-head { margin-bottom: 1.5rem; }
.rubro__intro { display: grid; gap: 1.25rem; }
.rubro__intro > * { min-width: 0; }
.rubro__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2.6rem, 12vw, 6.25rem); line-height: 1.02; text-transform: uppercase; text-wrap: balance;
  overflow-wrap: break-word; color: #000;
}
.rubro__resumen { /* misma letra que la etiqueta "INT-01 · Interior" */
  max-width: 52ch; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.rubro__count { display: flex; align-items: center; gap: .75rem; margin-top: .9rem; color: var(--orange-ink); }
.rubro__count::before { content: ""; width: 32px; height: var(--rule); background: var(--orange); }
@media (min-width: 960px) {
  .rubro__head { margin-bottom: 4.5rem; }
  .rubro__intro { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 4rem; }
}

.rubro__list { display: grid; gap: 4rem; }
@media (min-width: 960px) { .rubro__list { gap: 6rem; } }

/* Proyecto */
.proj { display: grid; gap: 1.5rem; scroll-margin-top: calc(var(--subnav-h) + 1.5rem); }
.proj + .proj { padding-top: 4rem; border-top: 1px solid var(--concrete); }
.rubro--alt .proj + .proj { border-top-color: rgba(52, 51, 57, .18); }
.proj__meta { display: grid; gap: .65rem; align-content: start; }
.proj__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.9rem, 7.5vw, 2.75rem); line-height: 1; text-transform: uppercase; text-wrap: balance;
  color: var(--orange);
}
.proj__desc { max-width: 46ch; display: grid; gap: .75rem; }
.proj__desc-more { display: grid; gap: .75rem; }
.proj__desc-more[hidden] { display: none; }
.proj__desc-list { display: grid; gap: .5rem; }
.proj__desc-list li { position: relative; padding-left: 1.1rem; }
.proj__desc-list li::before { /* viñeta triangular (eco del techo) */
  content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px;
  background: var(--orange); clip-path: polygon(0 100%, 50% 0, 100% 100%);
}
.proj__desc-btn {
  justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--graphite);
  text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.proj__desc-btn:hover { color: var(--orange-ink); }
.proj__all { justify-self: start; margin-top: 1rem; padding: 0; border: 0; cursor: pointer; font-size: 1rem; color: var(--graphite); }

.proj__media { display: grid; gap: 1.5rem; min-width: 0; }
.proj__main { position: relative; aspect-ratio: var(--fr, 4 / 5); background: var(--graphite); overflow: hidden; }
.proj__main.is-port { width: min(100%, calc(74svh * .8)); }
.proj__empty { /* proyecto publicado antes de tener fotos */
  aspect-ratio: 3 / 2; display: grid; place-items: center; color: var(--muted);
  border: 1px dashed var(--concrete);
  background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(52, 51, 57, .035) 10px 20px);
}
.shot, .gal__btn, .pair__open {
  display: block; width: 100%; height: 100%; padding: 0; border: 0; margin: 0;
  background: none; cursor: zoom-in; position: relative; overflow: hidden;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.shot:hover img { transform: scale(1.02); }
.shot:focus-visible, .gal__btn:focus-visible, .pair__open:focus-visible { outline-offset: -4px; outline-color: var(--orange); }
.shot::after { /* marca "ampliar": esquina naranja */
  content: ""; position: absolute; right: 0; top: 0; width: 22px; height: 22px;
  background: var(--orange); clip-path: polygon(0 0, 100% 0, 100% 100%);
  transition: width .3s var(--ease), height .3s var(--ease);
}
.shot:hover::after, .shot:focus-visible::after { width: 36px; height: 36px; }

.proj__cmp { display: grid; gap: .6rem; }
.proj__cmp-media { min-width: 0; }
.proj__cmp .cmp { width: min(100%, var(--cmp-max, 100%)); }
.proj__cmp-cap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; max-width: var(--cmp-max, 100%); }
.proj__cmp--dupla .proj__cmp-cap { max-width: none; }
.proj__cmp-k { color: var(--muted); }
.proj__zooms { display: inline-flex; gap: 1rem; }
.zoom {
  min-height: 44px; padding: 0; border: 0; background: none; cursor: zoom-in; color: var(--graphite);
  text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.zoom:hover { color: var(--orange-ink); }
.pair__open img { transition: transform .6s var(--ease); }
.pair__open:hover img { transform: scale(1.02); }

/* Galería: proporción uniforme por proyecto (vertical 4:5 u horizontal 4:3) */
.gal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.gal__item { min-width: 0; }
.gal__btn { aspect-ratio: 4 / 5; background: var(--concrete); }
.gal--land .gal__btn { aspect-ratio: 4 / 3; }
.gal__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .3s; }
.gal__btn:hover img { transform: scale(1.04); }
.gal__btn::after {
  content: ""; position: absolute; right: 0; top: 0; width: 0; height: 0;
  background: var(--orange); clip-path: polygon(0 0, 100% 0, 100% 100%);
  transition: width .25s var(--ease), height .25s var(--ease);
}
.gal__btn:hover::after, .gal__btn:focus-visible::after { width: 26px; height: 26px; }
.gal__tag {
  position: absolute; left: 8px; top: 8px; padding: .25rem .5rem;
  background: var(--graphite); color: var(--white); font-size: .66rem;
}

/* Móvil: la foto va justo después del título; la descripción, debajo */
@media (max-width: 959px) {
  .proj { gap: 0; }
  .proj__meta { display: contents; }
  .proj__title { order: 2; margin-bottom: 1.25rem; }
  .proj__media { order: 3; }
  .proj__desc { order: 4; margin-top: 1.5rem; }
  .proj__all { order: 5; margin-top: 1rem; }
}

@media (min-width: 720px) {
  .gal { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .gal--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .proj { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; align-items: start; }
  .proj + .proj { padding-top: 6rem; }
  .proj__meta { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + var(--subnav-h) + 2rem); padding-right: 1rem; }
  .proj__meta.is-long { position: static; }
  .proj__media { grid-column: 5 / -1; }
  .proj__title { font-size: clamp(2rem, 2.9vw, 2.75rem); }
}

/* Botón claro para fondos grafito */
.btn--light { background: var(--white); color: var(--graphite); }
.btn--light:hover { background: var(--cal); }
.contact__btn { margin-top: 2rem; }

/* ==========================================================
   LIGHTBOX (dialog nativo)
   ========================================================== */
html.lb-open { overflow: hidden; }
.lb {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--graphite-deep); color: var(--white);
  overscroll-behavior: contain;
}
.lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.lb::backdrop { background: rgba(35, 34, 38, .7); }
.lb__bar {
  display: flex; align-items: center; gap: 1rem;
  min-height: 60px; padding: .4rem calc(var(--gutter) - .5rem) .4rem var(--gutter);
  border-bottom: 1px solid var(--graphite-2);
}
.lb__count { flex: none; color: var(--orange-soft); font-size: .8rem; }
.lb__title {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--f-display); font-weight: 400; font-size: 1.15rem; text-transform: uppercase;
}
.lb__close, .lb__nav {
  display: inline-grid; place-items: center; width: 52px; height: 52px; padding: 0;
  border: 0; background: transparent; color: var(--white); cursor: pointer;
}
.lb__close svg, .lb__nav svg { width: 24px; height: 24px; }
.lb__close:hover { color: var(--orange-soft); }
.lb__close:focus-visible, .lb__nav:focus-visible { outline-color: var(--orange); outline-offset: -3px; }
.lb__stage {
  position: relative; margin: 0; min-height: 0;
  display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center;
  padding: 1rem var(--gutter) 1.25rem;
  touch-action: pan-y pinch-zoom;
}
.lb__img {
  width: 100%; height: 100%; min-height: 0; object-fit: contain;
  transition: opacity .25s;
  -webkit-user-select: none; user-select: none;
}
.lb.is-loading .lb__img { opacity: .35; }
.lb__cap {
  max-width: 62ch; padding-top: .9rem; text-align: center;
  font-size: 1.0625rem; line-height: 1.45; color: var(--muted-dark);
}
.lb__nav {
  position: absolute; top: 50%; margin-top: -26px;
  background: rgba(35, 34, 38, .78);
}
.lb__nav--prev { left: 6px; }
.lb__nav--next { right: 6px; }
.lb__nav:hover { background: var(--orange); color: var(--graphite-deep); }
.lb__nav[hidden] { display: none; }
.lb__status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 960px) {
  .lb__stage { padding: 1.5rem 6rem 1.5rem; }
  .lb__nav { width: 60px; height: 60px; margin-top: -30px; }
  .lb__nav--prev { left: var(--gutter); }
  .lb__nav--next { right: var(--gutter); }
}

/* ---------- 04 Contacto ---------- */
.contact { position: relative; background: var(--graphite); color: var(--white); overflow: hidden; padding-top: 7rem; }
.contact__roof { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 90px; }
.contact__roof path { fill: none; stroke: var(--orange); stroke-width: 2; vector-effect: non-scaling-stroke; }
.contact__grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .contact__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: start; } }
.contact__lead { margin-top: 1.25rem; color: var(--muted-dark); max-width: 40ch; }

.channels { border-top: var(--rule) solid var(--white); }
.channels__item { display: grid; gap: .2rem; padding: 1.1rem 0 1.25rem; border-bottom: 1px solid var(--graphite-2); }
.channels__k { color: var(--orange-soft); }
.channels__v {
  justify-self: start; display: inline-block; max-width: 100%;
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.35rem, 6vw, 2.4rem); line-height: 1.05;
  text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 3px no-repeat;
  padding-bottom: .15rem;
  transition: background-size .35s var(--ease), color .2s;
}
.channels__v::after { content: " ↗"; font-stretch: 100%; font-weight: 400; font-size: .5em; vertical-align: .6em; color: var(--orange-soft); }
.channels__v:hover, .channels__v:focus-visible { background-size: 100% 3px; }
.channels__v:focus-visible { outline-color: var(--white); }
.channels__v + .channels__v { margin-top: .35rem; }
/* número de WhatsApp con "Conversa con …" debajo, alineado a la izquierda con el número */
.channels__tel { justify-self: start; display: grid; justify-items: start; max-width: 100%; }
.channels__tel + .channels__tel, .channels__tel + .channels__v, .channels__v + .channels__tel { margin-top: .9rem; }
.channels__who { color: var(--muted-dark); font-size: .7rem; font-weight: 700; }
@media (min-width: 720px) {
  .channels__item { grid-template-columns: 10rem 1fr; align-items: baseline; gap: 1.5rem; }
  .channels__item { row-gap: .35rem; }
  .channels__v + .channels__v { grid-column: 2; margin-top: 0; }
  .channels__tel + .channels__tel, .channels__tel + .channels__v, .channels__v + .channels__tel { grid-column: 2; margin-top: .6rem; }
}
/* computador: un poco más chicas que el tope de 2.4rem */
@media (min-width: 960px) {
  .channels__v { font-size: 2rem; }
}

/* ---------- Footer ---------- */
.footer { background: var(--graphite-deep); color: var(--muted-dark); padding: 3rem 0 6rem; }
.footer__inner { display: grid; gap: 2rem; }
.footer__logo { width: 150px; height: auto; }
.footer__nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.footer__nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--white); }
.footer__nav a:hover { color: var(--orange-soft); }
.footer__legal { font-size: .7rem; line-height: 1.8; }
@media (min-width: 960px) {
  .footer { padding-bottom: 3rem; }
  .footer__inner { grid-template-columns: auto 1fr; align-items: center; }
  .footer__nav { justify-content: flex-end; }
  .footer__legal { grid-column: 1 / -1; border-top: 1px solid var(--graphite-2); padding-top: 1.5rem; }
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: max(16px, calc(env(safe-area-inset-bottom) + 8px)); z-index: 40;
  display: inline-flex; align-items: center; gap: .6rem;
  height: 56px; min-width: 56px; padding: 0 16px;
  background: var(--graphite); color: var(--white);
  text-decoration: none; font-weight: 700;
  box-shadow: 4px 4px 0 var(--orange);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.wa-float svg { width: 26px; height: 26px; flex: none; }
.wa-float__txt { display: none; }
.wa-float:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--orange); }
.wa-float:focus-visible { outline-color: var(--orange); }
@media (min-width: 720px) {
  .wa-float { right: 24px; bottom: 24px; }
  .wa-float__txt { display: inline; }
}

/* ==========================================================
   MOVIMIENTO con intención (solo con JS y sin reduced-motion)
   ========================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* Hero: el techo se traza y el titular se levanta como un plano */
  .js .reel__roof { animation: trace 1.6s .3s var(--ease) both; }
  .js .reel__plane { animation: plane .9s .9s var(--ease) both; }
  .js .hero__line { animation: rise .9s var(--ease) both; }
  .js .hero__logo { animation: rise .9s var(--ease) both; }
  .js .hero__line--accent { animation-delay: .12s; }

  /* Reglas de cabecera: se trazan como en un plano */
  .js [data-reveal="line"] { transform: scaleX(0); transition: transform 1.1s var(--ease); }
  .js [data-reveal="line"].is-in { transform: scaleX(1); }

  /* Titulares: se descubren desde la base */
  .js [data-reveal="text"] { clip-path: inset(0 0 100% 0); transform: translateY(.4em); transition: clip-path .9s var(--ease), transform .9s var(--ease); }
  .js [data-reveal="text"].is-in { clip-path: inset(-.35em -.1em -10% -.1em); transform: none; } /* margen arriba: tildes de mayúsculas (Ó, É) */

  /* Pasos: la regla se dibuja en secuencia */
  .js [data-reveal="step"]::before { transform: scaleX(0); transition: transform .8s var(--ease) var(--d, 0s); }
  .js [data-reveal="step"] > * { opacity: 0; transition: opacity .6s var(--ease) calc(var(--d, 0s) + .35s); }
  .js [data-reveal="step"].is-in::before { transform: scaleX(1); }
  .js [data-reveal="step"].is-in > * { opacity: 1; }

  /* Servicios: la regla inferior de cada fila se traza */
  .js [data-reveal="row"]::after { transform: scaleX(0); transition: transform .9s var(--ease); }
  .js [data-reveal="row"].is-in::after { transform: scaleX(1); }

  /* Trazos SVG */
  .js [data-reveal="trace"] { clip-path: inset(-10px 100% -10px -10px); transition: clip-path 1.8s var(--ease); }
  .js [data-reveal="trace"].is-in { clip-path: inset(-10px -10px -10px -10px); }

  /* Fotos de trabajos: se abren en diagonal, como los planos de la "A" */
  /* Arranca como una cuña de 1px a lo ancho del borde superior y baja como un plano del techo.
     (No parte de área cero: así el lazy-load del navegador sigue "viendo" las fotos de adentro,
     incluida la mitad derecha del comparador, y las descarga antes de que se abran.) */
  .js [data-reveal="cut"] { clip-path: polygon(0 0, 100% 0, 100% 1px, 0 0); transition: clip-path 1.2s var(--ease); }
  .js [data-reveal="cut"].is-in { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}

@keyframes trace { from { clip-path: inset(-10px 100% -10px -10px); } to { clip-path: inset(-10px -10px -10px -10px); } }
@keyframes rise { from { transform: translateY(30%); clip-path: inset(0 0 100% 0); } to { transform: none; clip-path: inset(-.3em 0 -10% 0); } }
@keyframes plane { from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); } to { clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Celular: descripciones y textos corridos un poco más chicos (computador sin cambios). Va al final para ganar a las reglas anteriores */
@media (max-width: 719px) {
  body, .hero__lead, .page-head__lead, .ficha > div, .steps__item p { font-size: .9375rem; } /* 15 px */
}

/* Celular: "Cómo trabajamos" como línea de tiempo vertical continua que une A → D (computador sin cambios) */
@media (max-width: 719px) {
  .steps__item { padding: 0 0 2.25rem 3.25rem; }
  .steps__item:last-child { padding-bottom: 0; }
  .steps__item::before { left: 13px; right: auto; top: 0; bottom: 0; width: var(--rule); height: auto; transform-origin: top; }
  .steps__item:last-child::before { bottom: auto; height: 14px; } /* termina en la marca D */
  .steps__item::after { display: none; }
  .steps__n { position: absolute; left: 0; top: 0; z-index: 1; margin: 0; background: var(--paper); }
  .steps__item h3 { padding-top: .1rem; }
}
@media (max-width: 719px) and (prefers-reduced-motion: no-preference) {
  .js [data-reveal="step"]::before { transform: scaleY(0); }
  .js [data-reveal="step"].is-in::before { transform: scaleY(1); }
}
